/* ==========================================================================
   Antonio & Lina, stile "acquerello bucolico primaverile"
   ========================================================================== */
:root {
  --paper: #f8f5ee;
  --paper-2: #f1efe4;
  --ink: #3f4636;
  --ink-soft: #6c7260;
  --sage: #7f8c62;
  --sage-dark: #5f6b46;
  --blush: #e7c3b6;
  --blush-soft: #f4e3dc;
  --sky: #d9e5ec;
  /* giallo caldo della facciata di Villa Giulia: --gold per decorazioni, --gold-ink per i testi (più scuro, leggibile) */
  --gold: #e8ae1f;
  --gold-ink: #a87908;
  --line: rgba(127, 140, 98, .25);
  --radius: 18px;
  --shadow: 0 10px 40px -18px rgba(63, 70, 54, .35);
  /* Tipografia ripresa dal SAVE THE DATE: maiuscoletto serif spaziato (EB Garamond).
     --title è il font dei titoli di sezione: si cambia qui con il font scelto dagli sposi. */
  --title: "EB Garamond", Georgia, serif;
  /* Titoli delle sezioni: Gilda Display (scelta degli sposi, n. 6) */
  --heading: "Gilda Display", Georgia, serif;
  --wash: #e6ecd9;
  --script: var(--title);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 19px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grana carta acquerello */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, footer, header { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; }
h2 { font: 400 clamp(2.1rem, 5.6vw, 3.1rem)/1.15 var(--heading); letter-spacing: .02em; color: var(--sage-dark); text-align: center; margin-bottom: 40px; }
h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--sage-dark); }
p { margin: 0 0 .8em; }

.eyebrow {
  font: 600 .82rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase;
  color: var(--sage); text-align: center; margin-bottom: .9rem;
}
.script { font-family: var(--script); }
.lead { text-align: center; font-size: 1.15rem; color: var(--ink-soft); }
.center { text-align: center; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 680px; }
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.sep + .deco + .wrap, .sep + .wrap { padding-top: clamp(60px, 8vw, 110px); }
.section > .wrap { position: relative; z-index: 1; }
.section--wash { background: var(--wash); }

/* bordo superiore ondulato: ogni sezione "sale" sulla precedente con una forma diversa */
/* passaggio tra sezioni: sfumatura morbida (fading) invece delle onde */
.section::before { content: ""; position: absolute; left: 0; right: 0; top: -80px; height: 81px; pointer-events: none; z-index: 1; }
#programma::before { top: -150px; height: 151px; }
#programma::before, #regali::before, #courtesy::before { background: linear-gradient(180deg, rgba(230, 236, 217, 0), #e6ecd9); }
#ospiti::before, #faq::before { background: linear-gradient(180deg, rgba(248, 245, 238, 0), #f8f5ee); }
/* separatore: rose rosse rampicanti, come quelle della barchessa */
/* separatore floreale (acquerello fornito): a cavallo tra due sezioni */
.sep { position: absolute; left: 50%; top: 0; width: min(780px, 94%); height: auto; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
.sep--flip { transform: translate(-50%, -50%) scaleX(-1); }
#rsvp::before { display: none; }

.sub { text-align: center; margin: 56px 0 26px; color: var(--sage-dark); font: 400 clamp(1.5rem, 3.6vw, 1.9rem)/1.2 var(--heading); }

/* rami grandi, discreti, agli angoli */
.deco { position: absolute; z-index: 0; width: 210px; height: 286px; opacity: .5; pointer-events: none; }
.deco--tr { top: 0; right: 0; transform: rotate(180deg); }
.deco--bl { bottom: 0; left: 0; }
@media (max-width: 900px) { .deco { width: 120px; height: 164px; opacity: .4; } }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; border: 1px solid var(--sage); background: var(--sage); color: #fff;
  font: 500 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  padding: 17px 34px; border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: background .3s, transform .3s, box-shadow .3s;
  box-shadow: 0 8px 24px -12px var(--sage-dark);
}
.btn:hover { background: var(--sage-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--sage-dark); box-shadow: none; }
.btn--ghost:hover { background: var(--sage); color: #fff; }
.btn--full { width: 100%; margin-top: 10px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link { font: 500 .8rem var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--sage-dark); text-decoration: none; border-bottom: 1px solid var(--blush); padding-bottom: 2px; }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px; padding: 14px 24px;
  transition: background .4s, box-shadow .4s, transform .4s;
}
.nav::before { /* sfondo sfocato su pseudo-elemento: un backdrop-filter sul .nav romperebbe il menu fixed */
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity .4s;
  background: rgba(248, 245, 238, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line);
}
.nav.is-solid::before { opacity: 1; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font: 500 .82rem var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--sage-dark); transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--gold-ink); }
.lang { display: flex; align-items: center; gap: 4px; font: 500 .82rem var(--sans); letter-spacing: .1em; color: var(--sage-dark); }
.lang button { background: none; border: 0; padding: 6px; cursor: pointer; font: inherit; letter-spacing: .12em; color: inherit; opacity: .55; }
.lang button.is-active { opacity: 1; color: var(--sage-dark); font-weight: 500; }
.nav__burger { display: none; background: none; border: 0; width: 44px; height: 44px; margin-right: -8px; -webkit-tap-highlight-color: transparent; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--sage-dark); transition: transform .3s, top .3s; }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------------- Hero ---------------- */
/* Copertina: illustrazione a tutta altezza. Nomi, data e luogo sopra il medaglione, countdown e pulsante sotto. */
.hero { --h: max(100svh, 760px); --w: min(100%, calc(var(--h) * .747)); height: var(--h); position: relative; overflow: hidden; background: var(--paper); }
.hero__layer { position: absolute; top: 0; bottom: 0; left: 50%; width: var(--w); translate: -50% 0; }
.hero__cover { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
@media (min-width: 901px) {
  /* desktop: l'illustrazione sfuma ai lati nel fondo carta */
  .hero__layer { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(230, 236, 217, 0), #e6ecd9); z-index: 1; pointer-events: none; }
.hero__inner { position: relative; z-index: 2; height: 100%; width: var(--w); margin: 0 auto; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: clamp(84px, 12svh, 110px) 20px clamp(48px, 7svh, 72px); text-align: center; }
.hero__names { margin: 0; line-height: 0; }
.hero__names img { width: min(72vw, 420px); height: auto; margin: 0 auto; }
.hero__date { font: 700 clamp(1rem, 2.4vw, 1.25rem) var(--title); letter-spacing: .18em; text-transform: uppercase; color: var(--sage-dark); margin: .9em 0 .25em; }
.hero__place { font: 700 .95rem var(--title); letter-spacing: .24em; text-transform: uppercase; color: var(--sage-dark); }
.hero__place span { color: var(--gold); }
.countdown { display: flex; justify-content: center; gap: clamp(14px, 4vw, 36px); margin: 28px 0 30px; }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 58px; }
.countdown b { font: 500 clamp(1.8rem, 5vw, 2.6rem)/1 var(--title); color: var(--sage-dark); font-variant-numeric: tabular-nums; }
.countdown small { font: .66rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }

/* ---------------- Photos (segnaposto) ---------------- */
.photo {
  background: linear-gradient(135deg, var(--blush-soft), var(--sky)); position: relative; overflow: hidden;
  display: grid; place-items: center; color: var(--ink-soft); font: .7rem var(--sans); letter-spacing: .3em; text-transform: uppercase;
  background-size: cover; background-position: center;
}
.photo--round { aspect-ratio: 1; border-radius: 50%; box-shadow: var(--shadow); }


/* ---------------- Program ---------------- */
.day { animation: fade .6s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
.day__intro { text-align: center; max-width: 560px; margin: 0 auto 40px; font-style: italic; font-size: 1.2rem; color: var(--ink-soft); }
.timeline { list-style: none; padding: 0; margin: 0 auto 50px; max-width: 620px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 82px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold), var(--sage)); }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 36px; padding: 0 0 28px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 77px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--wash); border: 1.5px solid var(--sage); }
.timeline time { font: 600 1.1rem var(--title); color: var(--gold-ink); text-align: right; }
.timeline h4 { margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--ink-soft); }

:root {
  /* macchie d'acquerello verdi per i riquadri (tre varianti) */
  --wash-a: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20330%20290'%20preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter%20id='w'%20x='-15%25'%20y='-15%25'%20width='130%25'%20height='130%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.016'%20numOctaves='3'%20seed='7'/%3E%3CfeDisplacementMap%20in='SourceGraphic'%20scale='30'/%3E%3CfeGaussianBlur%20stdDeviation='1.6'/%3E%3C/filter%3E%3C/defs%3E%3Crect%20x='24'%20y='26'%20width='282'%20height='238'%20rx='70'%20fill='%23dbe5cb'%20filter='url(%23w)'/%3E%3Crect%20x='56'%20y='50'%20width='214'%20height='176'%20rx='56'%20fill='%23e9f0dc'%20fill-opacity='.55'%20filter='url(%23w)'/%3E%3C/svg%3E");
  --wash-b: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20330%20290'%20preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter%20id='w'%20x='-15%25'%20y='-15%25'%20width='130%25'%20height='130%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.016'%20numOctaves='3'%20seed='19'/%3E%3CfeDisplacementMap%20in='SourceGraphic'%20scale='34'/%3E%3CfeGaussianBlur%20stdDeviation='1.6'/%3E%3C/filter%3E%3C/defs%3E%3Crect%20x='24'%20y='26'%20width='282'%20height='238'%20rx='64'%20fill='%23d6e1c5'%20filter='url(%23w)'/%3E%3Crect%20x='56'%20y='50'%20width='214'%20height='176'%20rx='50'%20fill='%23e7eed8'%20fill-opacity='.55'%20filter='url(%23w)'/%3E%3C/svg%3E");
  --wash-c: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20330%20290'%20preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter%20id='w'%20x='-15%25'%20y='-15%25'%20width='130%25'%20height='130%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.016'%20numOctaves='3'%20seed='31'/%3E%3CfeDisplacementMap%20in='SourceGraphic'%20scale='28'/%3E%3CfeGaussianBlur%20stdDeviation='1.6'/%3E%3C/filter%3E%3C/defs%3E%3Crect%20x='24'%20y='26'%20width='282'%20height='238'%20rx='76'%20fill='%23dde7cf'%20filter='url(%23w)'/%3E%3Crect%20x='56'%20y='50'%20width='214'%20height='176'%20rx='62'%20fill='%23ebf1df'%20fill-opacity='.55'%20filter='url(%23w)'/%3E%3C/svg%3E");
}
.cards { display: grid; grid-template-columns: 1fr 1.55fr 1fr; gap: 70px 84px; margin: 40px 0 70px; padding: 0 30px; align-items: center; }
.card--wide p + p { margin-top: .55em; }
/* la macchia è più grande del testo: lo scritto resta sempre al centro, lontano dai bordi */
.card, .hotel { position: relative; isolation: isolate; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 30px 8px; text-align: center; min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.card::before, .hotel::before { content: ""; position: absolute; inset: -40px -34px; z-index: -1; pointer-events: none; background: var(--wash-a) center / 100% 100% no-repeat; }
.card:nth-child(3n+2)::before, .hotel:nth-child(3n+2)::before { background-image: var(--wash-b); }
.card:nth-child(3n)::before, .hotel:nth-child(3n)::before { background-image: var(--wash-c); }
.card h4 { margin-bottom: 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.card h4 .ico { width: 28px; height: 28px; }
.card p { margin: 0; font-size: 1.04rem; }
.map { border-radius: 4px; overflow: hidden; box-shadow: none; background: rgba(255,255,255,.5); border: 1px solid rgba(127,140,98,.45); }
.map iframe { width: 100%; height: 340px; border: 0; display: block; filter: saturate(.7) sepia(.12); }
.map a { display: block; text-align: center; padding: 14px; font: 500 .76rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-dark); text-decoration: none; }

/* ---------------- Guests ---------------- */
.hotel-group + .hotel-group { margin-top: 60px; }
.hotel-group__title { text-align: center; font: 400 1.45rem/1.2 var(--heading); letter-spacing: .01em; text-transform: none; color: var(--sage-dark); margin-bottom: 8px; }
.hotel-group__note { text-align: center; max-width: 520px; margin: 0 auto 22px; color: var(--ink-soft); font-style: italic; font-size: 1.05rem; }
.hotels { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 280px)); justify-content: center; gap: 64px 80px; padding: 34px 20px 10px; }
.hotel { padding: 26px 6px; min-height: 150px; }
.hotel h5 { font: 400 1.4rem/1.2 var(--heading); color: var(--sage-dark); margin: 12px 0 14px; }
.tag { font: 600 .68rem var(--sans); letter-spacing: .2em; text-transform: uppercase; background: rgba(255,255,255,.55); color: var(--sage-dark); padding: 6px 14px; border-radius: 999px; }
.link--arrow { align-self: center; }
.travel, .faq { max-width: 720px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 1.2rem; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 300 1.6rem var(--sans); color: var(--sage); transition: transform .3s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 20px; color: var(--ink-soft); margin: 0; }
details p + p { margin-top: -8px; }

/* ---------------- RSVP ---------------- */
.section--rsvp { background: none; }
.day__date { text-align: center; font: 600 1rem var(--title); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin: -20px 0 14px; }
.rsvp { background: none; border-radius: 0; padding: 0; box-shadow: none; margin-top: 30px; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label, legend { font: .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
input, textarea {
  font: 1.08rem var(--serif); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 8px 2px; border-radius: 0; transition: border-color .2s;
  -webkit-appearance: none; appearance: none; width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--sage); }
textarea { resize: vertical; }
.is-invalid { border-color: #c27c6b !important; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice legend { width: 100%; }
.choice label { flex: 1 1 200px; margin: 0; position: relative; cursor: pointer; text-transform: none; letter-spacing: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; text-align: center;
  font: 1.05rem var(--serif); color: var(--ink); transition: all .25s; background: #fff;
}
.choice input:checked + span { border-color: var(--sage); background: #eef2e6; color: var(--sage-dark); box-shadow: inset 0 0 0 1px var(--sage); }
.choice input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 2px; }
.choice.is-invalid span { border-color: #c27c6b; }
.hp { position: absolute; left: -9999px; }
.form-msg { text-align: center; margin: 16px 0 0; min-height: 1.4em; font-style: italic; color: var(--sage-dark); }
.form-msg.is-error { color: #a4553f; }
.rsvp-closed { text-align: center; background: #fff; border-radius: 20px; padding: 30px; margin-top: 30px; box-shadow: var(--shadow); }
.if-yes { animation: fade .5s ease; }

/* ---------------- Gifts ---------------- */
.gift { margin: 30px 0; }
.gift__iban { margin-top: 24px; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: left; animation: fade .4s; }
.gift__iban p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 10px; }
.gift__iban small { width: 100%; font: .66rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--sage); }
.gift__iban b { font-weight: 500; font-variant-numeric: tabular-nums; word-break: break-all; }
.copy { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 4px 12px; font: .7rem var(--sans); letter-spacing: .1em; cursor: pointer; color: var(--sage-dark); }
.charity p { color: var(--ink-soft); }

/* ---------------- Footer ---------------- */
.footer { position: relative; text-align: center; padding: 70px 20px 60px; background: var(--paper); }
.footer__text { position: relative; }
.footer p.footer__names { margin: 0 0 10px; line-height: 0; }
.footer__names img { position: static; width: min(70vw, 300px); height: auto; margin: 0 auto; }
.footer p { font: .8rem var(--sans); letter-spacing: .14em; color: var(--ink-soft); }

/* ---------------- FAB mobile ---------------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  background: var(--sage); color: #fff; text-decoration: none; font: 500 .74rem var(--sans); letter-spacing: .2em;
  padding: 14px 22px; border-radius: 999px; box-shadow: 0 10px 30px -10px var(--sage-dark);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .4s; display: none;
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }


/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0; z-index: -1; height: 100vh; height: 100dvh;
    flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 90px 24px 160px; overflow-y: auto; overscroll-behavior: contain;
    background: radial-gradient(ellipse at top, #e6ecd9, transparent 62%), var(--paper);
    visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s linear .35s;
  }
  .nav__links.is-open { visibility: visible; opacity: 1; transition: opacity .35s ease; }
  .nav__links a {
    font: 500 1.15rem/1.6 var(--title); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-dark); text-align: center;
    padding: 8px 20px; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .4s;
  }
  .nav__links a.is-active { color: var(--gold-ink); }
  .nav__links.is-open a { opacity: 1; transform: none; }
  .nav__links.is-open a:nth-child(2) { transition-delay: .05s; } .nav__links.is-open a:nth-child(3) { transition-delay: .1s; }
  .nav__links.is-open a:nth-child(4) { transition-delay: .15s; } .nav__links.is-open a:nth-child(5) { transition-delay: .2s; }
  .nav__links.is-open a:nth-child(6) { transition-delay: .25s; }
  .nav.menu-open::before { opacity: 0; }
  .nav.menu-open ~ .fab { opacity: 0; pointer-events: none; }
  .nav .lang { margin-left: auto; }
  .nav__burger { display: block; }
  .cards { grid-template-columns: 1fr; gap: 96px; padding: 0 30px; margin: 56px 0 80px; }
  .sep { width: 100%; }
  .card::before, .hotel::before { inset: -34px -14px; }
  .card { padding: 30px 24px; }
    .fab { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
        .row { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 62px; }
  .timeline li { grid-template-columns: 52px 1fr; gap: 30px; }
  .timeline li::before { left: 57px; }
  .timeline time { font-size: 1rem; }
    .countdown div { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  }

html.no-scroll, html.no-scroll body { overflow: hidden; }

/* Icone SVG a linea */
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }
summary { display: flex; align-items: center; gap: 14px; }
summary .ico { width: 26px; height: 26px; color: var(--sage); }
.card h4 { display: flex; align-items: center; gap: 10px; }
.card h4 .ico { width: 22px; height: 22px; color: var(--sage); }
.map a { display: flex; align-items: center; justify-content: center; gap: 8px; }
.map a .ico { width: 18px; height: 18px; }
.link--arrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; }
.link--arrow .ico { width: 16px; height: 16px; transition: transform .3s; }
.link--arrow:hover .ico { transform: translateX(4px); }


/* hotel: link centrato, sottolineatura verde */
.hotel .link--arrow { align-self: center; justify-content: center; }
.link { border-bottom-color: rgba(127, 140, 98, .55); }

#courtesyBtn { margin-top: 12px; }

@media (max-width: 900px) { #courtesy .deco { display: none; } }

/* modulo RSVP: elenco a tendina e dati dell'accompagnatore */
select {
  font: 1.08rem var(--serif); color: var(--ink); background: transparent; width: 100%;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 24px 8px 2px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%237f8c62' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; background-size: 12px;
}
select:focus { outline: none; border-color: var(--sage); }
.plus-one { margin: 0 0 22px; padding: 0; border: 0; }
.plus-one legend { margin-bottom: 14px; }

/* contatti */
.courtesy__phone { font: 400 clamp(1.5rem, 4vw, 2rem)/1.2 var(--heading); color: var(--sage-dark); letter-spacing: .02em; margin: 6px 0 22px; }
.courtesy__alt { margin-top: 30px; }

.hero__bottom { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.hero__bottom .countdown { margin: 0 0 22px; }

/* velo crema dietro ai testi della copertina: si leggono sopra le rose, l'illustrazione resta visibile */
.hero__top, .hero__bottom { position: relative; }
.hero__top::before, .hero__bottom::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: -14%; right: -14%; background: radial-gradient(ellipse at center, rgba(252, 248, 241, .94) 0%, rgba(252, 248, 241, .82) 42%, rgba(252, 248, 241, 0) 72%); }
.hero__top::before { top: -34px; bottom: -22px; }
.hero__bottom::before { top: -30px; bottom: -34px; }

.btn { line-height: 1.35; text-align: center; }

/* hotel: secondo link (mappa) più discreto */
.hotel .link--sub { margin-top: 10px; font-size: .7rem; opacity: .85; border-bottom-color: transparent; }
.hotel .link--sub:hover { opacity: 1; border-bottom-color: rgba(127, 140, 98, .55); }
