:root {
  --ink: #263b32;
  --ink-soft: #52655b;
  --sage: #b7c7b0;
  --sage-deep: #78917e;
  --paper: #f4f1e9;
  --paper-warm: #e9e5d9;
  --line: rgba(38, 59, 50, .22);
  --header-height: 72px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
.site-header { position: fixed; z-index: 5; top: 0; left: 0; right: 0; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; color: var(--ink); background: rgba(244, 241, 233, .9); border-bottom: 1px solid rgba(38, 59, 50, .12); backdrop-filter: blur(10px); }
.wordmark { font-family: var(--serif); font-size: 24px; letter-spacing: .1em; }
.wordmark span { color: var(--sage-deep); font-style: italic; font-size: 18px; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: var(--sage-deep); }
.menu-toggle { display: none; border: 0; background: none; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.menu-toggle span { display: inline-block; width: 20px; height: 1px; background: var(--ink); margin-left: 8px; vertical-align: middle; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid transparent; padding: 13px 22px; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.button-small { padding: 10px 16px; }
.button-outline { border-color: var(--ink); background: transparent; }
.button-outline:hover { background: var(--ink); color: var(--paper); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--sage-deep); }
.hero { min-height: calc(800px + var(--header-height)); padding-top: var(--header-height); display: grid; grid-template-columns: minmax(420px, .82fr) minmax(420px, 1.18fr); position: relative; overflow: hidden; background: var(--sage); }
.hero-photo { height: 100%; min-height: calc(800px - var(--header-height)); overflow: hidden; }
.hero-photo img { height: 100%; object-fit: cover; object-position: center; filter: saturate(.75); }
.hero-copy { align-self: center; max-width: 760px; padding: 110px clamp(55px, 9vw, 150px) 80px; }
.eyebrow { margin: 0 0 19px; color: var(--sage-deep); font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.hero .eyebrow { color: var(--ink-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: .98; margin: 0; }
h1 { font-size: clamp(62px, 8vw, 122px); letter-spacing: -.04em; }
.hero h1 { font-family: "Great Vibes", cursive; font-size: clamp(60px, 7.3vw, 112px); letter-spacing: 0; line-height: 1.05; white-space: nowrap; text-align: center; }
.hero h1 em { font-style: normal; color: inherit; }
h1 em, h2 em { color: var(--sage-deep); font-weight: 400; }
.hero-date { text-align: center; padding-left: .16em; font-family: var(--serif); font-size: clamp(32px, 3.4vw, 52px); letter-spacing: .16em; margin: 34px 0 0; }
.hero-date span { color: var(--sage-deep); padding: 0 9px; }
.scroll-cue { display: flex; align-items: center; gap: 12px; margin-top: 100px; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.scroll-line { width: 42px; height: 1px; background: var(--ink); }
.hero-stamp { position: absolute; right: 5vw; bottom: 36px; color: rgba(38,59,50,.65); font-family: var(--serif); font-size: 24px; letter-spacing: .15em; }
.hero-stamp span { color: var(--sage-deep); font-size: 17px; }
.section-narrow { max-width: 720px; margin: 0 auto; padding: 145px 24px 135px; text-align: center; }
.intro h2 { font-size: clamp(38px, 5vw, 67px); }
.intro-text { max-width: 410px; margin: 32px auto 0; color: var(--ink-soft); }
.intro, .countdown-section { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); }
.intro::before, .countdown-section::before { content: ""; position: absolute; z-index: 0; inset: 0; background: url("motivo_floreale.jpg") center / cover; opacity: .13; pointer-events: none; }
.intro > *, .countdown-section > * { position: relative; z-index: 1; }
.flourish { color: var(--sage-deep); font-size: 22px; margin-top: 38px; }
.details-section { padding: 155px clamp(40px, 10vw, 160px) 190px; background: var(--paper-warm); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 62px; }
.section-heading h2 { font-size: clamp(45px, 6vw, 76px); }
.details-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; max-width: 1180px; margin: auto; align-items: start; }
.detail-card { position: relative; min-height: 410px; padding: 0 clamp(28px, 5vw, 74px) 52px; background: var(--paper); }
.detail-card-accent { background: var(--sage); }
.detail-photo { width: calc(100% + clamp(56px, 10vw, 148px)); height: auto; margin-left: calc(-1 * clamp(28px, 5vw, 74px)); object-fit: cover; filter: saturate(.75); }
.detail-number { position: absolute; top: 52px; right: clamp(28px, 5vw, 74px); font-family: var(--serif); color: var(--sage-deep); font-size: 16px; }
.detail-card h3 { font-size: clamp(39px, 4vw, 59px); margin-bottom: 13px; }
.detail-card > p:not(.eyebrow):not(.detail-time) { color: var(--ink-soft); margin: 0; }
.detail-rule { display: block; width: 40px; height: 1px; background: var(--sage-deep); margin: 32px 0 18px; }
.detail-time { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 30px; }
.text-link { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.text-link span { color: var(--sage-deep); margin-left: 12px; }
.social-link { display: inline-flex; align-items: center; border-bottom: 0; padding-bottom: 0; }
.instagram-icon { position: relative; display: inline-block; width: 17px; height: 17px; margin: 0; border: 1.5px solid currentColor; border-radius: 5px; }
.instagram-icon::before { content: ""; position: absolute; width: 6px; height: 6px; top: 4px; left: 4px; border: 1.5px solid currentColor; border-radius: 50%; }
.instagram-icon::after { content: ""; position: absolute; width: 2px; height: 2px; top: 3px; right: 3px; background: currentColor; border-radius: 50%; }
.story-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: var(--ink); color: var(--paper); }
.story-image { min-height: 500px; }
.story-image img { height: 100%; object-fit: cover; object-position: center; opacity: .78; filter: saturate(.65); }
.story-copy { align-self: center; padding: 90px clamp(35px, 8vw, 130px); }
.story-copy .eyebrow { color: var(--sage); }
.story-copy h2 { font-size: clamp(49px, 6vw, 81px); }
.story-copy h2 em { color: var(--sage); }
.story-copy > p:not(.eyebrow) { max-width: 390px; color: rgba(244,241,233,.72); margin-top: 32px; }
.story-copy > p + p { margin-top: 15px; }
.countdown-section { padding: 110px 20px; text-align: center; }
.countdown-section .eyebrow { margin-bottom: 35px; }
.countdown { display: flex; justify-content: center; align-items: baseline; gap: clamp(12px, 3vw, 40px); }
.countdown div { display: flex; flex-direction: column; }
.countdown strong { font-family: var(--serif); font-size: clamp(42px, 6vw, 78px); font-weight: 400; line-height: 1; }
.countdown span { color: var(--ink-soft); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-top: 10px; }
.countdown i { color: var(--sage-deep); font-family: var(--serif); font-size: 38px; font-style: normal; }
.rsvp-section { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; padding: 130px 12vw; background: var(--sage); }
.rsvp-copy h2 { font-size: clamp(54px, 7vw, 91px); }
.rsvp-copy > p:not(.eyebrow) { max-width: 300px; color: var(--ink-soft); margin-top: 34px; }
.rsvp-copy .rsvp-deadline { margin-top: 20px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.rsvp-form { display: flex; flex-direction: column; align-self: center; }
.rsvp-form label { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; margin: 23px 0 8px; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 11px 0; outline: none; resize: vertical; }
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { border-color: var(--ink); }
.rsvp-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rsvp-numbers label { display: block; }
.rsvp-form .button { align-self: start; margin-top: 34px; }
.form-feedback { min-height: 24px; color: var(--ink-soft); font-size: 13px; margin: 17px 0 0; }
.button-light { border-color: var(--paper); }
.button-light:hover { background: var(--paper); color: var(--ink); }
.iban-section { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 165px 24px 145px; background: var(--ink); color: var(--paper); }
.iban-mark { font-family: var(--serif); font-size: 46px; line-height: 1; margin: 0; }
.iban-mark i { color: var(--sage); font-size: 32px; margin: 0 .15em; }
.iban-date { color: rgba(244,241,233,.62); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 26px 0 0; }
.iban-text { max-width: 530px; color: rgba(244,241,233,.72); font-size: 17px; line-height: 1.75; margin: 62px 0 28px; }
.iban-panel[hidden] { display: none; }
.iban-box { max-width: 420px; border: 1px solid rgba(244,241,233,.3); padding: 20px; margin-top: 28px; }
.iban-signature { font-family: var(--serif); font-style: italic; font-size: 23px; color: rgba(244,241,233,.62); margin: 78px 0 0; }
.iban-box span { display: block; color: var(--sage); font-size: 10px; letter-spacing: .15em; margin-bottom: 9px; }
.iban-box strong { font-size: 15px; letter-spacing: .04em; font-weight: 500; word-break: break-word; }
.iban-note { color: rgba(244,241,233,.62); font-size: 11px; margin: 14px 0 0; }
.delete-button { border: 1px solid #9a6861; background: transparent; color: #9a6861; padding: 8px 11px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.delete-button:hover { background: #9a6861; color: var(--paper); }
@media (max-width: 720px) {
  .site-header { padding: 22px 6vw; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 70px; left: 6vw; right: 6vw; flex-direction: column; align-items: stretch; gap: 0; padding: 18px; background: var(--paper); box-shadow: 0 10px 25px rgba(38,59,50,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a, .site-nav .button { padding: 13px 4px; }
  .site-nav .button { margin-top: 8px; }
  .hero { display: block; min-height: 0; padding-top: var(--header-height); }
  .hero-photo { min-height: calc(46vh - var(--header-height)); height: calc(46vh - var(--header-height)); }
  @supports (height: 100svh) {
    .hero-photo { min-height: calc(46svh - var(--header-height)); height: calc(46svh - var(--header-height)); }
  }
  .hero-copy { padding: 36px 7vw 70px; }
  h1 { font-size: clamp(44px, 14vw, 84px); white-space: nowrap; }
  .hero h1 { font-size: clamp(52px, 16vw, 96px); }
  .hero-date { font-size: clamp(24px, 7.5vw, 40px); margin-top: 22px; }
  .scroll-cue { margin-top: 65px; }
  .hero-stamp { bottom: 28px; }
  .section-narrow { padding: 100px 24px; }
  .details-section { padding: 90px 6vw; }
  .section-heading { display: block; margin-bottom: 38px; }
  .section-heading h2 { font-size: 51px; }
  .details-grid, .story-section, .rsvp-section { grid-template-columns: 1fr; }
  .detail-card { min-height: 370px; padding: 43px 30px; }
  .detail-card-accent { margin-top: 0; }
  .detail-number { top: 43px; right: 30px; }
  .story-image { min-height: 390px; }
  .story-copy { padding: 80px 9vw 95px; }
  .rsvp-section { gap: 55px; padding: 90px 9vw; }
  .iban-section { padding: 110px 7vw 100px; }
  .iban-text { font-size: 16px; margin-top: 48px; }
  .iban-signature { font-size: 21px; margin-top: 60px; }
}