/* ============ TOKENS ============ */
:root {
  color-scheme: only light;
  --olive: #444a30;
  --olive-deep: #343924;
  --sage: #b5bb9a;
  --sage-soft: #d3d6bf;
  --cream: #f2efe2;
  --sand: #e6dcc0;
  --terra: #b8603e;
  --terra-deep: #944a2e;
  --ink: #2b2f1f;

  --f-script: "Lobster", cursive;
  --f-display: "Italiana", serif;
  --f-serif: "Cormorant Garamond", serif;
  --f-label: "Cormorant Garamond", serif;

  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--f-serif);
  font-size: clamp(1.1rem, 1.05rem + .25vw, 1.3rem);
  line-height: 1.55;
  color: var(--olive);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--terra); color: var(--cream); }

/* grid paper texture (dal save the date) */
.grid-bg {
  background-color: var(--cream);
  background-image:
    linear-gradient(var(--sage-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--sage-soft) 1px, transparent 1px);
  background-size: 104px 104px;
  background-position: -1px -1px;
}

/* ============ TYPE ============ */
.eyebrow {
  font-family: var(--f-label);
  font-size: 0.97rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
; font-weight: 700; }
.h-display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: .98;
  font-size: clamp(2.8rem, 2rem + 5vw, 7rem);
  letter-spacing: -.01em;
}
.h-script { font-family: var(--f-script); font-weight: 400; line-height: 1; }
.it { font-style: italic; }
.terra { color: var(--terra); }

/* ============ PRELOADER ============ */
.pre {
  position: fixed; inset: 0; z-index: 100;
  background: var(--olive-deep); color: var(--cream);
  display: grid; place-items: center;
}
.pre__stamp { width: min(46vw, 280px); aspect-ratio: 1; position: relative; }
.pre__stamp svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.pre__date {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-display); font-size: clamp(1.6rem, 6vw, 2.4rem); letter-spacing: .04em;
}
@keyframes spin { to { transform: rotate(360deg); } }
.no-js .pre { display: none; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 clamp(14px, 2.4vw, 36px);
  display: flex; justify-content: space-between; align-items: center; color: var(--cream);
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-140%); }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; position: relative; z-index: 3; }
.nav__seal { position: relative; width: 62px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: var(--cream);
  background: rgba(52, 57, 36, .62); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(242, 239, 226, .25), 0 10px 30px -12px rgba(0,0,0,.5); }
.nav__seal svg { position: absolute; inset: 2px; width: calc(100% - 4px); animation: spin 18s linear infinite; opacity: .8; }
.nav__seal b { font-family: var(--f-script); font-weight: 400; font-size: 1.35rem; line-height: 1; position: relative; }
.nav__seal i { font-style: normal; color: var(--sage); font-size: .85em; margin: 0 .04em; }
.nav__brand:hover .nav__seal svg { animation-duration: 3s; }
.nav__date { font-family: var(--f-label); font-weight: 700; letter-spacing: .16em; font-size: .95rem; padding: .5em .95em; border-radius: 999px; background: rgba(52, 57, 36, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(242, 239, 226, .2); }

.nav__pill {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px; overflow: hidden;
  background: rgba(52, 57, 36, .62); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(242, 239, 226, .22), 0 14px 40px -14px rgba(0, 0, 0, .55);
}
.nav__pill a { position: relative; z-index: 1; padding: .72em 1.25em; border-radius: 999px; text-decoration: none; color: var(--cream);
  font-family: var(--f-label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; white-space: nowrap; transition: color .35s var(--ease); }
.nav__pill a.is-active, .nav__pill a:hover { color: var(--olive-deep); }
.nav__pill a.nav__gift::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--terra); margin-right: .55em; vertical-align: .12em; box-shadow: 0 0 0 0 rgba(184, 96, 62, .8); animation: ping 2.2s infinite; }
.nav__pill a.nav__gift:hover::before, .nav__pill a.nav__gift.is-active::before { background: var(--terra-deep); }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(184, 96, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 96, 62, 0); } }
.nav__blob { position: absolute; z-index: 0; left: 0; top: 6px; height: calc(100% - 12px); width: 0; border-radius: 999px; background: var(--cream); opacity: 0;
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s; }
.nav__progress { position: absolute; left: 14px; bottom: 0; height: 3px; width: calc((100% - 28px) * var(--p, 0)); background: var(--terra); border-radius: 3px; }

.nav__right { display: flex; align-items: center; gap: 10px; position: relative; z-index: 3; }
.nav__days { font-family: var(--f-label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; padding: .62em 1.1em; border-radius: 999px;
  background: rgba(52, 57, 36, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(242, 239, 226, .2); }
.nav__days b { font-family: var(--f-display); font-weight: 400; font-size: 1.25em; letter-spacing: 0; color: var(--sage); }
.nav__cta { padding: .9em 1.6em; }
.nav__burger { display: none; width: 52px; height: 52px; position: relative; border-radius: 50%; background: rgba(52, 57, 36, .7); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(242,239,226,.25); color: var(--cream); }
.nav__burger i { position: absolute; left: 16px; right: 16px; height: 1.6px; background: currentColor; transition: transform .45s var(--ease); }
.nav__burger i:nth-child(1) { top: 21px; } .nav__burger i:nth-child(2) { top: 29px; }
.nav.is-open .nav__burger i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__burger i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* menu mobile a tutto schermo */
.menu { position: fixed; inset: 0; z-index: 2; background: var(--olive-deep); color: var(--cream); display: none; flex-direction: column; justify-content: center; padding: 110px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 46px) 40px); transition: clip-path .8s var(--ease); background-image: linear-gradient(rgba(181,187,154,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(181,187,154,.08) 1px, transparent 1px); background-size: 72px 72px; }
.menu ol { list-style: none; display: grid; gap: 4px; }
.menu li a { display: flex; align-items: baseline; gap: 14px; text-decoration: none; font-family: var(--f-display); font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.15; transform: translateY(30px); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.menu li a small { font-family: var(--f-label); font-weight: 700; font-size: .9rem; letter-spacing: .2em; color: var(--sage); }
.menu li:nth-child(5) a { color: var(--sage); font-family: var(--f-script); }
.nav.is-open .menu { clip-path: circle(150% at calc(100% - 46px) 40px); }
.nav.is-open .menu li a { transform: none; opacity: 1; }
.nav.is-open .menu li:nth-child(1) a { transition-delay: .25s; } .nav.is-open .menu li:nth-child(2) a { transition-delay: .31s; } .nav.is-open .menu li:nth-child(3) a { transition-delay: .37s; }
.nav.is-open .menu li:nth-child(4) a { transition-delay: .43s; } .nav.is-open .menu li:nth-child(5) a { transition-delay: .49s; } .nav.is-open .menu li:nth-child(6) a { transition-delay: .55s; }
.menu__foot { margin-top: 36px; display: grid; gap: 16px; justify-items: start; }
.menu__foot p { color: var(--sage); font-style: italic; }

@media (max-width: 1180px) { .nav__days { display: none; } .nav__date { display: none; } }
@media (max-width: 960px) {
  .nav__pill, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .menu { display: flex; }
}

/* ============ BUTTONS ============ */
.btn {
  --bg: var(--terra); --fg: var(--cream);
  display: inline-flex; align-items: center; gap: .7em;
  padding: .95em 1.7em; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-label); font-size: 0.94rem; letter-spacing: 0.20em; text-transform: uppercase;
  text-decoration: none; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), color .35s var(--ease);
; font-weight: 700; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--olive-deep);
  transform: translateY(101%); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transition: transform .5s var(--ease), border-radius .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn--ghost { --bg: rgba(242, 239, 226, .1); --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover { color: var(--olive); }
.btn--sage { --bg: var(--sage); --fg: var(--olive-deep); }
.btn--sage::before { background: var(--cream); }
.btn--big { font-size: 1rem; padding: 1.2em 2.4em; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh; background: var(--olive); color: var(--cream);
  display: grid; align-items: center; overflow: hidden;
  padding: 120px var(--gutter) 130px;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 80px); align-items: center; width: 100%; max-width: 1500px; margin-inline: auto; }
.hero__kicker { color: var(--sage); margin-bottom: 1.2rem; }
.hero__names { font-family: var(--f-script); font-size: clamp(4.2rem, 2rem + 11vw, 12.5rem); line-height: .86; }
.hero__names .line { display: block; overflow: hidden; padding: .06em .1em .12em 0; }
.hero__names .line > span { display: inline-block; will-change: transform; }
.hero__names .amp { color: var(--sage); font-size: .7em; margin-right: .1em; }
.hero__sub { font-style: italic; font-size: clamp(1.2rem, 1rem + 1vw, 1.9rem); margin-top: 1.2rem; }
.hero__meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2.4rem; }

.hero__arch {
  position: relative; justify-self: end; width: min(100%, 440px); aspect-ratio: 3 / 4.1;
  border-radius: 999px 999px 18px 18px; overflow: hidden; background: var(--olive-deep);
}
.hero__arch img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 30%; will-change: transform; }
.hero__arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(52, 57, 36, .55)); }

.stamp {
  position: absolute; width: clamp(130px, 17vw, 230px); aspect-ratio: 1;
  right: clamp(-10px, 3vw, 40px); bottom: -2vw; z-index: 3; color: var(--olive);
}
.stamp__disc { position: absolute; inset: 0; border-radius: 50%; background: var(--cream); }
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.stamp__date {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  font-family: var(--f-display); line-height: 1.05;
}
.stamp__date b { font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 2.2rem); }
.stamp__date small { font-size: clamp(.9rem, 1.3vw, 1.3rem); }

.olive-branch { position: absolute; left: -3%; bottom: 12%; width: min(34vw, 380px); opacity: .5; color: var(--sage); pointer-events: none; }

.marquee { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; border-top: 1px solid rgba(181, 187, 154, .35); padding-block: 14px; color: var(--cream); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span {
  font-family: var(--f-display); font-size: clamp(1.3rem, 2.6vw, 2.2rem); letter-spacing: .08em; white-space: nowrap; padding-inline: 1.2rem;
}
.marquee__track span:nth-child(even) { color: var(--sage); font-family: var(--f-script); font-size: 1.1em; letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 860px) {
  .hero { padding-top: 100px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__arch { justify-self: center; width: min(78%, 360px); order: -1; max-height: 42svh; aspect-ratio: auto; height: 42svh; }
  .stamp { right: 4%; bottom: auto; top: 30svh; width: 120px; }
  .hero__names { font-size: clamp(4rem, 19vw, 7rem); }
}

/* ============ MANIFESTO ============ */
.manifesto { padding: clamp(100px, 16vw, 240px) var(--gutter); text-align: center; position: relative; }
.manifesto__inner { max-width: 1100px; margin-inline: auto; }
.manifesto .eyebrow { color: var(--terra); margin-bottom: 2rem; }
.reveal-words { font-family: var(--f-display); font-size: clamp(2rem, 1.2rem + 3.6vw, 4.6rem); line-height: 1.12; }
.reveal-words .w { opacity: .14; transition: none; display: inline-block; white-space: pre; }
.reveal-words em { font-family: var(--f-script); font-style: normal; color: var(--terra); }
.manifesto__sign { margin-top: 3rem; font-style: italic; }

/* ============ STORIA ============ */
.storia { background: var(--olive-deep); color: var(--cream); position: relative; overflow: hidden; }
.storia__head { padding: clamp(80px, 10vw, 140px) var(--gutter) 40px; max-width: 1500px; margin-inline: auto; }
.storia__head .eyebrow { color: var(--sage); margin-bottom: 1.2rem; }
.storia__pin { height: 100svh; display: flex; align-items: center; }
.storia__track { display: flex; gap: clamp(24px, 4vw, 64px); padding-inline: var(--gutter); will-change: transform; }
.chap { flex: 0 0 auto; width: clamp(280px, 34vw, 480px); }
.chap__img { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 240px 240px 14px 14px; position: relative; background: var(--olive); }
.chap:nth-child(even) .chap__img { border-radius: 14px 14px 240px 240px; }
.chap:nth-child(even) { margin-top: 8svh; }
.chap:nth-child(odd) { margin-bottom: 8svh; }
.chap__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.chap:hover .chap__img img { transform: scale(1.06); }
.chap__n { font-family: var(--f-label); color: var(--sage); letter-spacing: 0.20em; font-size: 0.92rem; margin-top: 1.1rem; ; font-weight: 700; }
.chap h3 { font-family: var(--f-script); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.05; margin: .2rem 0 .4rem; }
.chap p { font-size: 1.05rem; opacity: .85; max-width: 34ch; }
.chap--end { display: grid; align-content: center; width: clamp(280px, 40vw, 520px); }
.chap--end h3 { font-size: clamp(2.6rem, 5vw, 5rem); color: var(--sage); }

/* ============ PROGRAMMA ============ */
.programma { padding: clamp(80px, 12vw, 180px) var(--gutter); }
.sec-head { max-width: 1500px; margin: 0 auto clamp(40px, 6vw, 90px); display: grid; gap: 1rem; }
.sec-head .eyebrow { color: var(--terra); }
.scene {
  max-width: 1500px; margin: 0 auto clamp(40px, 7vw, 110px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 22px; overflow: hidden; background: var(--sage);
  box-shadow: 0 40px 80px -50px rgba(52, 57, 36, .6);
}
.scene:nth-of-type(even) .scene__media { order: 2; }
.scene__media { position: relative; min-height: 420px; overflow: hidden; background: var(--olive-deep); }
.scene__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .9s var(--ease), transform 1.4s var(--ease); }
.scene:hover .scene__media img { filter: grayscale(0) sepia(.18) saturate(1.1); transform: scale(1.04); }
.scene__body { padding: clamp(28px, 4.5vw, 72px); display: flex; flex-direction: column; gap: 1rem; color: var(--olive-deep); }
.scene__no { font-family: var(--f-label); letter-spacing: 0.20em; font-size: 0.94rem; ; font-weight: 700; }
.scene__time { font-family: var(--f-display); font-size: clamp(3.4rem, 2rem + 5vw, 7rem); line-height: .9; }
.scene__title { font-family: var(--f-script); font-size: clamp(2rem, 1.4rem + 2vw, 3.4rem); color: var(--olive); }
.scene__place { font-family: var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; font-size: 1.02rem; ; font-weight: 700; }
.scene__desc { max-width: 46ch; }
.scene__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: .6rem; }
.scene--dark { background: var(--olive); color: var(--cream); }
.scene--dark .scene__body { color: var(--cream); }
.scene--dark .scene__title { color: var(--sage); }
.scene--dark .btn--ghost::before { background: var(--cream); }

.timeline { list-style: none; margin-top: .4rem; border-top: 1px solid currentColor; }
.timeline li { display: flex; gap: 1.2rem; padding: .55rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); font-size: 1.05rem; }
.timeline b { font-family: var(--f-display); font-weight: 400; min-width: 3.4rem; letter-spacing: .06em; }

@media (max-width: 860px) {
  .scene { grid-template-columns: 1fr; }
  .scene:nth-of-type(even) .scene__media { order: 0; }
  .scene__media { min-height: 260px; }
}

/* ============ COME ARRIVARE ============ */
.arrivare { background: var(--sage); color: var(--olive-deep); padding: clamp(80px, 12vw, 180px) var(--gutter); }
.arrivare .sec-head .eyebrow { color: var(--olive); }
.tabs { max-width: 1500px; margin: 0 auto; }
.tabs__nav { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(242, 239, 226, .55); gap: 4px; margin-bottom: 28px; flex-wrap: wrap; }
.tabs__btn { padding: .8em 1.5em; border-radius: 999px; font-family: var(--f-label); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.90rem; transition: background .4s var(--ease), color .4s var(--ease); ; font-weight: 700; }
.tabs__btn[aria-selected="true"] { background: var(--olive-deep); color: var(--cream); }
.tabs__panel { display: none; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 64px); }
.tabs__panel.is-active { display: grid; animation: rise .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.tabs__info h3 { font-family: var(--f-script); font-weight: 400; font-size: clamp(2rem, 3vw, 3rem); margin-bottom: .2rem; }
.tabs__info address { font-style: normal; letter-spacing: .04em; margin-bottom: 1.4rem; opacity: .85; }
.howto { list-style: none; display: grid; gap: 14px; margin-bottom: 1.6rem; }
.howto li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.howto svg { width: 28px; height: 28px; }
.howto b { font-family: var(--f-label); font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; font-size: 0.97rem; display: block; }
.map { border-radius: 18px; overflow: hidden; min-height: 420px; background: var(--sage-soft); box-shadow: 0 30px 60px -40px rgba(52, 57, 36, .8); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.5) sepia(.15) contrast(.95); }
@media (max-width: 860px) { .tabs__panel.is-active { grid-template-columns: 1fr; } }

/* ============ INFO ============ */
.info { padding: clamp(80px, 12vw, 180px) var(--gutter); }
.info__grid { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.card { border-radius: 22px; padding: clamp(26px, 3.5vw, 52px); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1rem; }
.card h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 1.3rem + 2vw, 3.3rem); line-height: 1; }
.card h3 em { font-family: var(--f-script); font-style: normal; }
.card .eyebrow { opacity: .75; }
.card--dress { grid-column: span 7; background: var(--cream); box-shadow: inset 0 0 0 1px var(--sage); }
.card--kids { grid-column: span 5; background: var(--terra); color: var(--cream); }
.card--gift { grid-column: span 12; background: var(--olive); color: var(--cream); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 72px); }
.card--gift .eyebrow, .card--kids .eyebrow { color: var(--cream); }
@media (max-width: 960px) {
  .card--dress, .card--kids, .card--gift { grid-column: 1 / -1; }
  .card--gift { grid-template-columns: 1fr; }
}
.swatches { display: flex; gap: 12px; flex-wrap: wrap; margin-top: .4rem; }
.sw { display: grid; gap: 8px; justify-items: center; font-family: var(--f-label); letter-spacing: 0.12em; font-size: 0.88rem; text-transform: uppercase; ; font-weight: 700; }
.sw i { display: block; width: clamp(60px, 8vw, 96px); aspect-ratio: 1 / 1.25; border-radius: 999px 999px 10px 10px; transition: transform .6s var(--ease); }
.sw:hover i { transform: translateY(-8px) rotate(-3deg); }
.small-note { font-style: italic; opacity: .75; font-size: 1rem; }

.iban {
  background: rgba(242, 239, 226, .08); box-shadow: inset 0 0 0 1px rgba(242, 239, 226, .35);
  border-radius: 16px; padding: 18px 20px; display: grid; gap: 12px;
}
.iban dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 1rem; }
.iban dt { font-family: var(--f-label); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.88rem; opacity: .7; padding-top: .25em; ; font-weight: 700; }
.iban dd { word-break: break-word; }
.iban__num { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(.95rem, 2.8vw, 1.15rem); letter-spacing: .06em; }
.copy { align-self: start; }
.copy.is-done { --bg: var(--sage); --fg: var(--olive-deep); }
.gift-old { border-top: 1px dashed rgba(242, 239, 226, .4); padding-top: 1rem; margin-top: .4rem; }
.gift-old b { font-family: var(--f-script); font-weight: 400; font-size: 1.5rem; display: block; color: var(--sage); }

/* ============ COUNTDOWN ============ */
.count { background: var(--terra); color: var(--cream); text-align: center; padding: clamp(70px, 10vw, 150px) var(--gutter); overflow: hidden; position: relative; }
.count .eyebrow { margin-bottom: 1.4rem; }
.count__row { display: flex; justify-content: center; gap: clamp(12px, 3vw, 56px); flex-wrap: wrap; }
.count__cell { display: grid; }
.count__cell b { font-family: var(--f-display); font-weight: 400; font-size: clamp(3.6rem, 2rem + 9vw, 10rem); line-height: .95; font-variant-numeric: tabular-nums; }
.count__cell small { font-family: var(--f-label); letter-spacing: 0.20em; text-transform: uppercase; font-size: 0.88rem; opacity: .85; ; font-weight: 700; }
.count__line { font-family: var(--f-script); font-size: clamp(1.6rem, 3vw, 2.6rem); margin-top: 1.6rem; }

/* ============ RSVP CTA ============ */
.cta { padding: clamp(100px, 14vw, 220px) var(--gutter); text-align: center; position: relative; overflow: hidden; }
.cta h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(3.2rem, 1.5rem + 9vw, 11rem); line-height: .92; color: var(--olive); }
.cta h2 em { font-family: var(--f-script); font-style: normal; color: var(--terra); }
.cta p { margin: 1.6rem auto 2.4rem; max-width: 46ch; font-style: italic; }
.cta__photos { position: absolute; inset: 0; pointer-events: none; }
.cta__photos img { position: absolute; width: clamp(90px, 15vw, 220px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 10px 10px; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .5); }
.cta__photos img:nth-child(1) { left: 5%; top: 12%; transform: rotate(-8deg); }
.cta__photos img:nth-child(2) { right: 6%; top: 8%; transform: rotate(6deg); }
.cta__photos img:nth-child(3) { left: 12%; bottom: 6%; transform: rotate(5deg); }
.cta__photos img:nth-child(4) { right: 12%; bottom: 8%; transform: rotate(-5deg); }
.cta__inner { position: relative; z-index: 1; }
@media (max-width: 700px) { .cta__photos img { opacity: .35; } }

/* ============ FOOTER ============ */
.foot { background: var(--olive-deep); color: var(--cream); padding: 70px var(--gutter) 40px; text-align: center; }
.foot__logo { font-family: var(--f-script); font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; }
.foot__logo span { color: var(--sage); }
.foot p { margin-top: .6rem; color: var(--sage); font-style: italic; }
.foot small { display: block; margin-top: 2rem; opacity: .5; font-family: var(--f-label); letter-spacing: 0.20em; text-transform: uppercase; font-size: 0.88rem; ; font-weight: 700; }

/* ============ REVEALS ============ */
.js [data-fade] { opacity: 0; transform: translateY(40px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  .js [data-fade] { opacity: 1; transform: none; }
  .reveal-words .w { opacity: 1; }
}

/* ============ DRESS CODE ============ */
.dress { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.dress__text { display: grid; gap: 1rem; max-width: 52ch; font-size: 1.25rem; }
.dress .swatches { justify-content: flex-end; gap: clamp(10px, 2vw, 22px); }
.dress .sw i { width: clamp(64px, 9vw, 120px); }
.sw { font-size: .95rem; }
@media (max-width: 860px) { .dress { grid-template-columns: 1fr; } .dress .swatches { justify-content: flex-start; } }

/* ============ BAMBINI ============ */
.kids { background: var(--terra); color: var(--cream); padding: clamp(90px, 13vw, 200px) var(--gutter); position: relative; overflow: hidden; }
.kids__ring { position: absolute; width: min(90vmin, 760px); right: -14vmin; top: 50%; translate: 0 -50%; color: rgba(242, 239, 226, .28); animation: spin 70s linear infinite; pointer-events: none; }
.kids__inner { position: relative; max-width: 1500px; margin-inline: auto; }
.kids .eyebrow { margin-bottom: 1.4rem; }
.kids__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(3.4rem, 1.5rem + 9vw, 10.5rem); line-height: .92; margin-bottom: clamp(32px, 5vw, 70px); }
.kids__title em { font-family: var(--f-script); font-style: normal; color: var(--sand); }
.kids__cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 90px); align-items: start; max-width: 1200px; }
.kids__cols .kids__lead { font-family: var(--f-display); font-size: clamp(1.7rem, 1.2rem + 1.8vw, 3rem); line-height: 1.1; }
.kids__cols p { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem); }
.kids__note { margin-top: 1.2rem; font-style: italic; opacity: .9; }
.kids__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(32px, 5vw, 64px); }
.kids__chips li { padding: .6em 1.3em; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(242, 239, 226, .7); font-family: var(--f-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .92rem; }
@media (max-width: 860px) { .kids__cols { grid-template-columns: 1fr; } }

/* ============ REGALO ============ */
.nav__links a.nav__gift { padding: .45em 1.1em; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; }
.nav__links a.nav__gift::after { display: none; }
.gift { background: var(--sand); color: var(--olive-deep); padding: clamp(90px, 13vw, 200px) var(--gutter); position: relative; overflow: hidden; }
.gift::before { content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(184, 96, 62, .13) 22px 24px); }
.gift__inner { position: relative; max-width: 1200px; margin-inline: auto; display: grid; gap: clamp(32px, 5vw, 64px); }
.gift__head { display: grid; gap: 1.2rem; }
.gift__head .eyebrow { color: var(--terra-deep); }
.gift__lead { max-width: 60ch; font-size: clamp(1.2rem, 1.1rem + .4vw, 1.5rem); }

.ticket { display: grid; grid-template-columns: 1fr auto; background: var(--olive-deep); color: var(--cream); border-radius: 26px; position: relative; filter: drop-shadow(0 40px 40px rgba(52, 57, 36, .35)); transform: rotate(-1deg); }
.ticket::before, .ticket::after { content: ""; position: absolute; right: calc(clamp(210px, 22vw, 280px) - 14px); width: 28px; height: 28px; border-radius: 50%; background: var(--sand); z-index: 1; }
.ticket::before { top: -14px; } .ticket::after { bottom: -14px; }
.ticket__main { padding: clamp(24px, 4vw, 52px); display: grid; gap: 1.4rem; }
.ticket__label { font-family: var(--f-label); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .92rem; color: var(--sage); }
.ticket__route { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); flex-wrap: wrap; font-family: var(--f-display); font-size: clamp(1.6rem, 1rem + 2.6vw, 3.2rem); line-height: 1.05; }
.ticket__route i { font-style: normal; color: var(--terra); font-size: .8em; }
.ticket__dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; }
.ticket__dl .wide { grid-column: 1 / -1; }
.ticket__dl dt { font-family: var(--f-label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .85rem; color: var(--sage); margin-bottom: .2rem; }
.ticket__dl dd { font-size: 1.2rem; word-break: break-word; }
.ticket__dl .iban__num { font-size: clamp(1.1rem, .8rem + 1.6vw, 2rem); letter-spacing: .06em; }
.ticket__stub { width: clamp(210px, 22vw, 280px); border-left: 2px dashed rgba(181, 187, 154, .55); padding: 28px 24px; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; }
.ticket__stub p { font-family: var(--f-script); font-size: 1.6rem; color: var(--sage); }
@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr; transform: none; }
  .ticket::before, .ticket::after { right: auto; top: auto; bottom: calc(150px - 14px); }
  .ticket::before { left: -14px; } .ticket::after { right: -14px; left: auto; }
  .ticket__stub { width: auto; border-left: 0; border-top: 2px dashed rgba(181, 187, 154, .55); }
  .ticket__dl { grid-template-columns: 1fr; }
}
.gift__old { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: clamp(20px, 3vw, 36px); border: 2px dashed rgba(52, 57, 36, .4); border-radius: 22px; max-width: 900px; }
.gift__old svg { width: clamp(56px, 8vw, 90px); color: var(--terra); }
.gift__old h3 { font-family: var(--f-script); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.1; margin-bottom: .4rem; }

/* ============ FAQ ============ */
.faq { padding: clamp(80px, 12vw, 180px) var(--gutter); }
.faq__list { max-width: 1000px; margin: 0 auto; border-top: 1.5px solid var(--olive); }
.faq details { border-bottom: 1.5px solid var(--olive); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 1.3rem 0; font-family: var(--f-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.15; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; font-family: var(--f-serif); font-size: 1.8rem; line-height: 1; transition: transform .5s var(--ease), background .3s, color .3s; }
.faq summary:hover { color: var(--terra); }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--terra); color: var(--cream); box-shadow: none; }
.faq details p { padding: 0 60px 1.6rem 0; max-width: 70ch; font-size: 1.2rem; animation: rise .6s var(--ease) both; }
.faq details a { color: var(--terra); text-underline-offset: 4px; }

/* ============ v2 ============ */
.btn { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 1rem; padding: 1.05em 1.9em; }
.btn--big { font-size: 1.1rem; }
.eyebrow { font-size: 1rem; }
.hero__sub { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); }
.scene__desc, .howto span, .tabs__info address, .timeline li { font-size: 1.2rem; }
.scene__place { font-size: 1.1rem; }
.chap p { font-size: 1.2rem; }

/* ramo d'ulivo */
.olive-branch { position: absolute; left: 42%; bottom: 13%; width: min(30vw, 440px); color: var(--sage); opacity: .55; pointer-events: none; rotate: -4deg; z-index: 0; }
.olive-branch .stem { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.olive-branch g path:first-child { fill: currentColor; fill-opacity: .22; stroke: currentColor; stroke-width: .9; stroke-linejoin: round; }
.olive-branch .vein { fill: none; stroke: currentColor; stroke-width: .7; opacity: .75; }
.olive-branch .olive { fill: currentColor; fill-opacity: .55; stroke: currentColor; stroke-width: .8; }
.hero__grid { position: relative; z-index: 1; }
@media (max-width: 860px) { .olive-branch { left: -10%; bottom: 14%; width: 70vw; opacity: .3; } }

/* grana + cursore */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, 3%); } 80% { transform: translate(3%, 1%); } }
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; }
.cursor span { display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--cream); mix-blend-mode: difference; border: 0 solid var(--cream); box-sizing: border-box; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease); }
.cursor.is-link span { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: transparent; border-width: 1.5px; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* bambini: tocchi finali */
.kids__title { font-size: clamp(3rem, 1.4rem + 7.4vw, 9rem); }
.kids__title em { display: block; font-size: .72em; margin-top: .1em; }
.kids__cols p + p { margin-top: 1rem; }

/* easter egg */
.drink { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(30, 33, 20, .72); backdrop-filter: blur(8px); }
.drink[hidden] { display: none; }
.drink__card { background: var(--cream); color: var(--olive-deep); border-radius: 28px; padding: clamp(28px, 5vw, 56px); text-align: center; max-width: 520px; display: grid; gap: 14px; justify-items: center; animation: pop .8s var(--ease) both; box-shadow: 0 50px 100px -30px rgba(0,0,0,.6); border: 2px dashed var(--terra); }
.drink__card .eyebrow { color: var(--terra); }
.drink__card h3 { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.6rem, 8vw, 4rem); line-height: 1; color: var(--terra); }
.drink__card p { font-size: 1.5rem; line-height: 1.3; }
.drink__card small { font-style: italic; opacity: .7; font-size: 1.05rem; }
.drink__glass { font-size: 4rem; animation: clink 1.6s var(--ease) infinite; }
@keyframes pop { from { opacity: 0; transform: scale(.7) rotate(-6deg); } }
@keyframes clink { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(12deg) scale(1.12); } }

/* storia su mobile (stesso scroll agganciato del desktop) */
@media (max-width: 860px) {
  .chap { width: 74vw; }
  .chap:nth-child(even) { margin-top: 5svh; }
  .chap:nth-child(odd) { margin-bottom: 5svh; }
  .chap--end { width: 78vw; }
  .storia__head { padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .storia__pin { height: auto; padding-bottom: 60px; }
  .storia__track { overflow-x: auto; scroll-snap-type: x mandatory; }
  .chap { scroll-snap-align: center; margin: 0 !important; }
}

/* tabs "come arrivare" su mobile */
@media (max-width: 640px) {
  .tabs__nav { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 22px; }
  .tabs__btn { text-align: center; padding: .85em .6em; font-size: .88rem; letter-spacing: .08em; line-height: 1.25; }
  .tabs__btn br { display: block; }
}

/* campioni colore su mobile */
@media (max-width: 700px) {
  .swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; }
  .dress .swatches { justify-content: stretch; }
  .sw { font-size: .72rem; letter-spacing: .04em; text-align: center; }
  .sw i, .dress .sw i { width: 100%; }
}

/* FAQ: titolo a sinistra, domande a destra */
.faq { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(30px, 6vw, 110px); align-items: start;
  padding-inline: max(var(--gutter), calc((100vw - 1500px) / 2)); }
.faq .sec-head { margin: 0; position: sticky; top: 120px; }
.faq__list { max-width: none; width: 100%; margin: 0; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq .sec-head { position: static; } .faq details p { padding-right: 0; } }
.tabs__btn br { display: none; }

@media (max-width: 640px) { .tabs__btn br { display: block; } }
@media (max-width: 700px) {
  .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sw { min-width: 0; align-content: start; font-size: .64rem; letter-spacing: .02em; overflow-wrap: anywhere; }
}

/* navbar sempre visibile + sfocatura progressiva.
   La sfocatura nasce da zero sul bordo alto (su iPhone sopra il bordo c'è la barra di stato, che non si può coprire:
   così non si vede nessuno stacco), cresce fino a metà navbar e poi sfuma lentamente. */
.nav-blur { position: fixed; top: 0; left: 0; right: 0; height: 170px; z-index: 49; pointer-events: none; }
.nav-blur i { position: absolute; inset: 0; }
.nav-blur i:nth-child(1) { backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 64px, transparent 170px); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 64px, transparent 170px); }
.nav-blur i:nth-child(2) { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 64px, transparent 154px); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 64px, transparent 154px); }
.nav-blur i:nth-child(3) { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 64px, transparent 139px); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 64px, transparent 139px); }
.nav-blur i:nth-child(4) { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 64px, transparent 123px); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 64px, transparent 123px); }
.nav-blur i:nth-child(5) { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 64px, transparent 108px); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 64px, transparent 108px); }
.nav-blur i:nth-child(6) { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 64px, transparent 92px); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 64px, transparent 92px); }
.nav-blur i:nth-child(7) { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 64px, transparent 76px); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 64px, transparent 76px); }
/* con il menu mobile aperto la sfocatura non serve */
body:has(.nav.is-open) .nav-blur { display: none; }

/* Mobile: tinta verde oliva sotto la navbar.
   Su iPhone Safari riempie la fascia della barra di stato con il colore dei pixel in cima alla pagina:
   se in cima c'è sempre l'oliva (che sfuma verso il basso), la fascia è sempre coerente col sito. */
@media (max-width: 960px) {
  .nav-blur::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgba(52, 57, 36, .96) 0, rgba(52, 57, 36, .86) 38px, rgba(52, 57, 36, .55) 80px, rgba(52, 57, 36, .22) 125px, rgba(52, 57, 36, 0) 170px);
  }
}
