:root {
  --paper: #fffdfa;
  --paper-warm: #fbf5ee;
  --ink: #3f2a20;
  --muted: #735f53;
  --burgundy: #8b263c;
  --sage: #87916e;
  --line: rgba(63, 42, 32, 0.16);
  --shadow: 0 24px 70px rgba(69, 40, 30, 0.12);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 250, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.hero-script,
.venue h2,
.gift-price {
  font-family: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  color: var(--burgundy);
  font-weight: 400;
}

.brand {
  font-size: 32px;
  line-height: 1;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  word-spacing: 0.18em;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--burgundy);
}

.hero {
  position: relative;
  min-height: calc(100vh - 65px);
  overflow: hidden;
  background: var(--ink);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(26, 17, 13, 0.58), rgba(26, 17, 13, 0.18) 52%, rgba(26, 17, 13, 0.42)),
    linear-gradient(0deg, rgba(26, 17, 13, 0.72), rgba(26, 17, 13, 0.06) 42%, rgba(26, 17, 13, 0.18));
}

.hero-photo {
  width: 100%;
  height: calc(100vh - 65px);
  min-height: 620px;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  right: clamp(18px, 6vw, 88px);
  bottom: clamp(30px, 7vw, 86px);
  z-index: 1;
  width: min(440px, calc(100% - 36px));
  color: var(--paper);
  text-align: right;
}

.hero-card .eyebrow {
  color: rgba(255, 253, 250, 0.82);
}

.hero-script {
  margin: 0 0 12px;
  color: var(--paper);
  font-size: 72px;
  line-height: 0.95;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

.hero-meta,
.hero-place {
  margin: 0;
  color: rgba(255, 253, 250, 0.9);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  word-spacing: 0.15em;
}

.hero-place {
  margin-top: 6px;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button.primary {
  color: var(--paper);
  background: var(--burgundy);
}

.button.secondary,
.icon-button {
  color: var(--burgundy);
  background: rgba(255, 253, 250, 0.82);
  border-color: rgba(139, 38, 60, 0.34);
}

.hero .button.secondary {
  color: var(--paper);
  background: rgba(255, 253, 250, 0.12);
  border-color: rgba(255, 253, 250, 0.5);
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.section-pad {
  padding: clamp(64px, 9vw, 124px) clamp(18px, 5vw, 72px);
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--burgundy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  word-spacing: 0.16em;
}

.intro {
  position: relative;
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: clamp(26px, 6vw, 90px);
  padding-bottom: clamp(150px, 17vw, 210px);
  border-top: 1px solid var(--line);
}

.intro::after,
.info-section::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 150px;
  pointer-events: none;
  content: "";
  background: url("assets/floral-border.svg") center bottom / 100% 100% no-repeat;
}

.intro-text {
  max-width: 850px;
}

.intro-text p,
.section-heading p,
.venue-copy p {
  max-width: 650px;
  font-size: 18px;
}

.section-heading p {
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.timeline-section {
  background: var(--paper-warm);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1120px;
  padding: 1px;
  margin: 0 auto;
  list-style: none;
  background: var(--line);
  box-shadow: var(--shadow);
}

.timeline li {
  min-height: 165px;
  padding: 28px 24px;
  text-align: center;
  background: var(--paper);
}

.timeline time {
  display: block;
  margin-bottom: 20px;
  color: var(--burgundy);
  font-family: "Great Vibes", Georgia, serif;
  font-size: 48px;
  line-height: 1;
}

.timeline span {
  display: block;
  max-width: 250px;
  margin: 0 auto;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.26;
  word-spacing: 0.12em;
}

.venue {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
  padding: clamp(72px, 10vw, 140px) 18px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(rgba(35, 24, 18, 0.28), rgba(35, 24, 18, 0.48)),
    url("assets/ca-milone-panoramica.webp") center / cover no-repeat;
}

.venue-content {
  width: min(100%, 720px);
  padding: clamp(30px, 5vw, 58px);
  color: var(--paper);
}

.venue .eyebrow {
  color: rgba(255, 253, 250, 0.82);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.venue h2 {
  margin-bottom: 8px;
  color: var(--paper);
  font-size: 92px;
  font-weight: 400;
  line-height: 0.9;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.32);
}

.venue p {
  margin-bottom: 24px;
  color: rgba(255, 253, 250, 0.9);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
}

.venue .button.secondary {
  color: var(--paper);
  background: rgba(255, 253, 250, 0.12);
  border-color: rgba(255, 253, 250, 0.54);
}

.iban-box span,
.iban-box small {
  color: var(--muted);
}

.rsvp-section {
  background: var(--burgundy);
  color: var(--paper);
}

.rsvp-section p,
.rsvp-section .eyebrow {
  color: rgba(255, 253, 250, 0.78);
}

.rsvp-form {
  display: grid;
  gap: 18px;
  max-width: 760px;
  padding: clamp(22px, 4vw, 42px);
  margin: 0 auto;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 253, 250, 0.35);
  box-shadow: var(--shadow);
}

label,
legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

textarea {
  resize: vertical;
}

fieldset {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
}

fieldset legend {
  padding: 0 6px;
}

fieldset .radio-row:first-of-type {
  margin-top: 2px;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 26px;
  font-weight: 600;
}

.radio-row input {
  width: auto;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hidden {
  display: none;
}

.gift-section {
  position: relative;
  background:
    linear-gradient(rgba(20, 40, 38, 0.54), rgba(20, 40, 38, 0.62)),
    url("assets/thailand-honeymoon.jpg") center / cover no-repeat;
}

.gift-section .section-heading {
  color: var(--paper);
}

.gift-section .eyebrow,
.gift-section h2,
.gift-section .section-heading p {
  color: var(--paper);
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.38);
}

.gift-section .section-heading em {
  display: block;
  margin-top: 10px;
}

.gift-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gift-card,
.faq-grid article {
  padding: 24px;
  text-align: center;
  background: rgba(255, 253, 250, 0.93);
  border: 1px solid var(--line);
}

.gift-price {
  display: block;
  margin-bottom: 16px;
  font-size: 42px;
  line-height: 1;
}

.gift-card .button {
  width: 100%;
  margin-top: 10px;
}

.iban-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1120px;
  margin: 28px auto 0;
  padding: 22px;
  text-align: left;
  background: rgba(255, 253, 250, 0.94);
  border: 1px solid rgba(255, 253, 250, 0.5);
}

.iban-box strong {
  display: block;
  margin: 5px 0;
  color: var(--ink);
  font-size: 24px;
}

.info-section {
  position: relative;
  padding-bottom: clamp(140px, 16vw, 205px);
  background: var(--paper);
}

.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer {
  padding: 28px;
  text-align: center;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
  color: var(--paper);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-card {
    right: 24px;
    bottom: 44px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .timeline,
  .gift-grid,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .brand {
    font-size: 29px;
  }

  .hero,
  .hero-photo {
    min-height: 650px;
  }

  .hero-photo {
    height: 650px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(26, 17, 13, 0.76), rgba(26, 17, 13, 0.12) 62%, rgba(26, 17, 13, 0.22));
  }

  .hero-card {
    right: 18px;
    bottom: 30px;
    left: 18px;
    width: auto;
    text-align: center;
  }

  .hero-script {
    font-size: 58px;
  }

  .hero-meta {
    font-size: 19px;
  }

  .hero-place {
    font-size: 15px;
  }

  .hero-actions {
    justify-content: center;
  }

  h2 {
    font-size: 44px;
  }

  .timeline,
  .gift-grid,
  .faq-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .timeline li {
    min-height: auto;
  }

  .venue {
    min-height: 540px;
  }

  .venue-content {
    padding: 28px 18px;
  }

  .venue h2 {
    font-size: 62px;
  }

  .venue p {
    font-size: 19px;
  }

  .iban-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .icon-button {
    width: 100%;
  }
}
