/* ==========================================================
   Adelaide & Paolo — 50 anni
   ========================================================== */
:root {
  --ink: #2b2420;
  --ink-soft: #5d5148;
  --muted: #8a7c70;
  --paper: #fbf7ef;
  --cream: #f4ecdc;
  --line: #e4d6bb;
  --gold: #b08d57;
  --gold-light: #e0c48e;
  --gold-deep: #8a6a3a;
  --night: #3d302d;
  --night-2: #5a4741;
  --blush: #f3e1d9;
  --blush-deep: #e6c4b8;
  --rose: #c48b7f;
  --wax: #a8484f;
  --wax-dark: #7a2e35;
  --env: #f3e7d3;
  --env-dark: #e6d5b9;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(90, 62, 50, .05), 0 18px 40px -18px rgba(90, 62, 50, .28);
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(224, 196, 142, .22), transparent 70%),
    radial-gradient(900px 700px at 100% 30%, rgba(243, 225, 217, .55), transparent 70%),
    radial-gradient(900px 700px at 0% 70%, rgba(243, 225, 217, .45), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 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");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px;
  padding: .7em 1.6em;
  border-radius: 999px;
  border: 1px solid var(--gold);
  font-size: 1.05rem; font-weight: 600; letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: linear-gradient(180deg, #cdab73, #a07c45);
  color: #fffaf0;
  border-color: #a07c45;
  box-shadow: 0 8px 22px -10px rgba(138, 106, 58, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--gold:hover { box-shadow: 0 12px 28px -10px rgba(138, 106, 58, .75), inset 0 1px 0 rgba(255, 255, 255, .25); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--gold-deep); }
.btn--ghost:hover { background: rgba(176, 141, 87, .1); }
.btn--sm { min-height: 40px; padding: .45em 1.2em; font-size: .95rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--gold-deep); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(176, 141, 87, .4);
}
.link:hover { border-bottom-color: var(--gold-deep); }

/* ==========================================================
   INTRO / BUSTA
   ========================================================== */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(520px 360px at 50% 42%, rgba(232, 190, 170, .22), transparent 70%),
    radial-gradient(900px 600px at 50% 40%, var(--night-2), var(--night) 72%);
  overflow: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.intro::before { /* polvere dorata */
  content: ""; position: absolute; inset: -50%;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(224, 196, 142, .7), transparent 60%),
    radial-gradient(1px 1px at 70% 20%, rgba(224, 196, 142, .55), transparent 60%),
    radial-gradient(1.2px 1.2px at 40% 80%, rgba(224, 196, 142, .5), transparent 60%),
    radial-gradient(1px 1px at 85% 65%, rgba(224, 196, 142, .6), transparent 60%),
    radial-gradient(1.4px 1.4px at 10% 75%, rgba(224, 196, 142, .45), transparent 60%);
  background-size: 340px 340px;
  animation: drift 60s linear infinite;
  opacity: .8;
}
@keyframes drift { to { transform: translate3d(340px, 170px, 0); } }
.intro.is-gone { opacity: 0; visibility: hidden; }

.intro__stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.97); } }

.intro__address { text-align: center; color: #e9dcc0; transition: opacity .5s ease; }
.intro__to { display: block; font-family: var(--script); font-size: clamp(2rem, 3.6vw, 2.6rem); color: var(--gold-light); line-height: 1.2; }
.intro__hint {
  display: block; margin-top: 6px;
  font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(233, 220, 192, .7);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.intro.is-opening .intro__address { opacity: 0; }

.intro__skip {
  position: absolute; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  background: none; border: 0; cursor: pointer;
  color: rgba(233, 220, 192, .55);
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  padding: 10px;
}
.intro__skip:hover { color: var(--gold-light); }

/* ---- La busta ---- */
.envelope {
  --w: min(94vw, 700px, calc(100svh - 170px));
  container-type: inline-size;
  position: relative;
  width: var(--w);
  aspect-ratio: 10 / 6.6;
  padding: 0; border: 0; background: none;
  cursor: pointer;
  perspective: 1400px;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.envelope:hover { transform: translateY(-4px) rotate(-.4deg); }
.intro.is-opening .envelope { cursor: default; transform: translateY(20%); }

.envelope > span { position: absolute; display: block; }

.envelope__back {
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--env-dark), #d6c29c);
}

.envelope__letter {
  left: 5%; right: 5%; top: 5%; height: 90%;
  z-index: 2;
  background: #fffdf7;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(176, 141, 87, .25), 0 2px 10px rgba(0, 0, 0, .12);
  transition: transform 1.2s cubic-bezier(.3, .7, .2, 1) .55s, height 1.2s cubic-bezier(.3, .7, .2, 1) .55s;
}
.letter__inner {
  position: absolute; inset: 7px;
  border: 1px solid rgba(176, 141, 87, .45);
  border-radius: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 7%;
  text-align: center;
  color: var(--ink);
}
.letter__kicker { font-size: clamp(.6rem, 2.1cqw, 1rem); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.letter__names { font-family: var(--script); font-size: clamp(1.9rem, 8.4cqw, 3.9rem); line-height: 1.25; margin-top: 2%; }
.letter__names em { font-style: normal; color: var(--gold); }
.letter__rule { width: 30%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 3% 0; }
.letter__meta { font-size: clamp(.95rem, 3.5cqw, 1.55rem); font-style: italic; color: var(--ink-soft); }
.letter__date { margin-top: 2%; font-size: clamp(.75rem, 2.5cqw, 1.15rem); letter-spacing: .3em; color: var(--gold-deep); font-weight: 600; }

.envelope__pocket {
  inset: 0; z-index: 3;
  border-radius: 6px;
  background:
    linear-gradient(to top right, transparent 49.6%, rgba(0, 0, 0, .06) 50%, transparent 50.6%) left bottom / 50.2% 100% no-repeat,
    linear-gradient(to top left, transparent 49.6%, rgba(0, 0, 0, .06) 50%, transparent 50.6%) right bottom / 50.2% 100% no-repeat,
    linear-gradient(175deg, var(--env), #e8d8b8);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}

.envelope__flap {
  left: 0; right: 0; top: 0; height: 62%;
  z-index: 4;
  transform-origin: top center;
  background: linear-gradient(180deg, #f3e8d2, var(--env-dark));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 6px 6px 0 0;
  transition: transform .8s cubic-bezier(.5, 0, .3, 1), z-index 0s linear .4s;
  backface-visibility: visible;
}
.envelope__flap::after { /* bordo interno */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 30%);
}

.envelope__seal {
  z-index: 5;
  left: 50%; top: 62%;
  width: clamp(64px, 17cqw, 116px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid !important; place-items: center;
  background:
    radial-gradient(circle at 35% 30%, #c7525a, var(--wax) 45%, var(--wax-dark) 100%);
  box-shadow:
    inset 0 0 0 5px rgba(0, 0, 0, .12),
    inset 0 0 0 7px rgba(255, 255, 255, .08),
    0 4px 10px rgba(0, 0, 0, .35);
  /* bordo irregolare della ceralacca */
  clip-path: polygon(50% 0, 61% 4%, 72% 2%, 80% 10%, 91% 13%, 94% 25%, 100% 35%, 97% 48%, 100% 60%, 94% 71%, 92% 84%, 80% 88%, 71% 98%, 60% 95%, 50% 100%, 39% 96%, 28% 99%, 20% 89%, 9% 86%, 6% 73%, 0 62%, 3% 50%, 0 37%, 6% 27%, 9% 14%, 20% 11%, 28% 2%, 39% 4%);
  transition: transform .5s cubic-bezier(.5, -0.4, .5, 1), opacity .4s ease;
  animation: sealBreath 3s ease-in-out infinite;
}
.envelope__seal span {
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
  width: 74%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid rgba(255, 220, 200, .25);
  font-family: var(--script);
  font-size: clamp(1.25rem, 4.6cqw, 2.3rem);
  color: #f6d3b0;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .15);
  line-height: 1;
}
.envelope__seal i { font-style: normal; font-size: .7em; margin: 0 .05em; opacity: .8; }
@keyframes sealBreath { 50% { transform: translate(-50%, -50%) scale(1.04); } }

/* --- apertura --- */
.intro.is-opening .envelope__seal {
  animation: none;
  transform: translate(-50%, -50%) scale(1.25);
  opacity: 0;
}
.intro.is-opening .envelope__flap {
  transform: rotateX(180deg);
  z-index: 1;
}
.intro.is-opening .envelope__letter {
  transform: translateY(-58%);
}

/* ==========================================================
   SITO
   ========================================================== */
.site { opacity: 0; transition: opacity 1.2s ease .2s; }
body.is-open .site { opacity: 1; }

/* ---------------- Hero ---------------- */
.hero {
  --hero-h: clamp(340px, 64vh, 660px);   /* altezza della fascia con la foto */
  position: relative;
  padding: 0 16px 96px;
  text-align: center;
  overflow: hidden;
}
/* foto in alto, morbida e calda, con un lento avvicinamento */
.hero__bg, .hero__veil {
  position: absolute; left: 0; right: 0; top: 0;
  height: var(--hero-h);
}
.hero__bg, .hero__veil {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0, 0, 0, .55) 72%, transparent 94%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0, 0, 0, .55) 72%, transparent 94%);
}
.hero__bg {
  background: var(--hero-img) var(--hero-pos, center) / cover no-repeat;
  filter: sepia(.3) saturate(.85) brightness(1.06) contrast(.92);
  animation: heroDrift 40s ease-in-out infinite alternate;
  transform-origin: 55% 35%;
}
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero__veil {
  background:
    radial-gradient(ellipse 85% 90% at 50% 35%, transparent 55%, rgba(251, 247, 239, .45) 100%),
    linear-gradient(180deg, rgba(251, 247, 239, .2) 0%, rgba(251, 247, 239, 0) 22%, rgba(251, 247, 239, 0) 50%, rgba(251, 247, 239, .55) 85%),
    rgba(246, 232, 222, .12);
}
.hero__frame {
  position: relative; z-index: 1;
  margin: calc(var(--hero-h) - clamp(120px, 20vh, 200px)) auto 0;
  width: min(100%, 720px);
  padding: clamp(44px, 7vw, 76px) clamp(20px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 252, 246, .84);
  -webkit-backdrop-filter: blur(10px) saturate(1.05); backdrop-filter: blur(10px) saturate(1.05);
  box-shadow: var(--shadow);
}
.hero__frame::before {
  content: ""; position: absolute; inset: 9px;
  border: 1px solid rgba(176, 141, 87, .32);
  border-radius: 21px;
  pointer-events: none;
}
.hero__names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.4rem, 13vw, 6.4rem);
  line-height: 1.05;
  margin: 18px 0 6px;
  color: var(--ink);
  display: flex; flex-direction: column; align-items: center;
}
.hero__amp { font-size: .55em; color: var(--gold); line-height: .9; }
@media (min-width: 720px) {
  .hero__names { flex-direction: row; justify-content: center; gap: .25em; align-items: baseline; }
}

.wreath { position: relative; width: 112px; height: 112px; margin: 14px auto 22px; color: var(--gold); }
.wreath__svg { width: 100%; height: 100%; display: block; }
.wreath__num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.3rem; font-weight: 500; font-style: italic; color: var(--gold-deep);
  padding-bottom: 4px;
}

/* rametto d'ulivo usato come divisore */
.sprig { display: block; width: 210px; max-width: 70%; height: auto; margin: 14px auto 0; color: var(--gold); opacity: .9; }

/* petali che scendono piano */
.hero__petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.petal {
  position: absolute; top: -40px;
  width: var(--s, 14px); height: calc(var(--s, 14px) * .8);
  background: var(--c, var(--blush-deep));
  border-radius: 80% 0 80% 0;
  opacity: .6;
  animation: petalFall var(--d, 14s) linear var(--delay, 0s) infinite;
  will-change: transform;
}
.petal--once { position: fixed; z-index: 150; animation-iteration-count: 1; animation-fill-mode: both; }
@keyframes petalFall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: .8; }
  50% { transform: translate3d(var(--sway, 40px), 55vh, 0) rotate(200deg); }
  92% { opacity: .7; }
  100% { transform: translate3d(calc(var(--sway, 40px) * -0.5), 110vh, 0) rotate(380deg); opacity: 0; }
}

/* citazione */
.quote { text-align: center; padding: clamp(40px, 8vw, 80px) 16px 0; }
.quote blockquote { margin: 18px auto 0; max-width: 34ch; }
.quote p { font-size: clamp(1.35rem, 4vw, 1.75rem); font-style: italic; line-height: 1.5; color: var(--ink-soft); }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }

.hero__lead { font-size: clamp(1.25rem, 3.6vw, 1.55rem); max-width: 30ch; margin: 0 auto; color: var(--ink-soft); }
.hero__lead strong { color: var(--ink); font-weight: 600; }

.hero__date {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px;
  margin: 28px 0 0;
  font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep);
}
.hero__date strong {
  font-weight: 600; letter-spacing: .08em; color: var(--ink);
  font-size: 1.35rem; text-transform: none;
  padding: 2px 18px; border-left: 1px solid var(--gold); border-right: 1px solid var(--gold);
}

@media (max-width: 520px) {
  .hero__date { flex-direction: column; gap: 4px; }
  .hero__date strong { border: 0; padding: 2px 0; font-size: 1.5rem; }
}
.countdown { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.countdown div { min-width: 76px; padding: 8px 6px; border-radius: 16px; background: linear-gradient(180deg, #fbf1ea, var(--cream)); border: 1px solid var(--line); }
.countdown b { display: block; font-size: 1.7rem; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--gold); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--gold);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } }

/* ---------------- Sections ---------------- */
.section { padding: clamp(56px, 10vw, 110px) 16px; }
.section__head { text-align: center; margin-bottom: clamp(32px, 6vw, 56px); }
.section__head h2 {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4rem); color: var(--ink); margin-top: 6px;
}
.section__sub { margin-top: 14px; color: var(--ink-soft); font-style: italic; }

.card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------------- Gallery ---------------- */
.section--memories { background: linear-gradient(180deg, transparent, rgba(243, 225, 217, .45) 22%, rgba(244, 236, 220, .6) 78%, transparent); }
.gallery {
  max-width: 1080px; margin: 0 auto;
  display: grid; gap: clamp(18px, 4vw, 40px);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .gallery { gap: 14px; } }
.polaroid {
  position: relative;
  margin: 0;
  transform: rotate(var(--r, 0deg));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
/* nastrino di carta che "tiene" la foto */
.polaroid::before {
  content: ""; position: absolute; z-index: 2;
  top: -10px; left: 50%; width: 38%; height: 22px;
  transform: translateX(-50%) rotate(var(--t, -3deg));
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 6px, transparent 6px 12px),
    rgba(232, 200, 188, .72);
  box-shadow: 0 1px 2px rgba(90, 62, 50, .12);
  pointer-events: none;
}
.polaroid button {
  display: block; width: 100%;
  padding: clamp(6px, 1.6vw, 12px) clamp(6px, 1.6vw, 12px) clamp(22px, 5vw, 42px);
  background: #fffefb; border: 0; border-radius: 3px; cursor: zoom-in;
  box-shadow: 0 2px 4px rgba(90, 62, 50, .06), 0 16px 34px -14px rgba(90, 62, 50, .38);
}
.polaroid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.9) contrast(1.02) sepia(.06); border-radius: 2px; }
.polaroid:hover { transform: rotate(0) scale(1.03); z-index: 1; }

/* ---------------- Events ---------------- */
.events {
  max-width: 1080px; margin: 0 auto;
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .events { grid-template-columns: 1fr 1fr; } }
.event {
  text-align: center; overflow: hidden;
  display: flex; flex-direction: column;
}
.event__media { position: relative; aspect-ratio: 16 / 9; background: var(--cream); }
.event__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) sepia(.08);
}
.event__media::after { /* sfumatura morbida verso la card */
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(255, 253, 248, .55));
  pointer-events: none;
}
/* esterno e interno della chiesa si alternano in dissolvenza */
.event__media--fade img:nth-child(2) { opacity: 0; animation: crossfade 12s ease-in-out infinite; }
@keyframes crossfade { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
.event__badge {
  position: absolute; z-index: 1; left: 50%; bottom: -30px; transform: translateX(-50%);
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fffdf8; color: var(--gold);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px -6px rgba(90, 62, 50, .3);
}
.event__badge svg { width: 30px; height: 30px; }
.event__body {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 44px clamp(20px, 4vw, 40px) clamp(28px, 5vw, 40px);
}
.event .btn { margin-top: auto; }
.event__label { font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.event h3 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin: 8px 0 8px; }
.event__time { font-size: 1.6rem; font-style: italic; color: var(--gold-deep); margin-bottom: 6px; }
.event__where { color: var(--ink-soft); margin-bottom: 20px; }
.event__where .muted { font-size: 1rem; font-style: italic; }

.access { grid-column: 1 / -1; padding: clamp(24px, 4vw, 36px) clamp(16px, 4vw, 36px); scroll-margin-top: 24px; }
.access h4 { font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; text-align: center; margin-bottom: 18px; }
.access__grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 760px) { .access__grid { grid-template-columns: 1fr 1fr; } }
.access__opt { padding: 18px 20px; border-radius: 16px; background: linear-gradient(180deg, #fbf2ec, var(--cream)); }
.access__opt p { font-size: 1.08rem; margin: 8px 0 10px; }
.access__opt .link { font-size: 1rem; }
.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  color: #fffaf0; background: var(--gold-deep); padding: 3px 10px; border-radius: 999px;
}
.note { font-size: .98rem; font-style: italic; color: var(--ink-soft); margin-top: 6px; }

/* ---------------- Gift ---------------- */
.gift {
  max-width: 720px; margin: 0 auto;
  padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 48px);
  text-align: center;
  background:
    linear-gradient(#fffdf8, #fffdf8) padding-box,
    linear-gradient(135deg, var(--gold-light), var(--gold-deep)) border-box;
  border: 1.5px solid transparent;
}
.gift h2 { font-family: var(--script); font-weight: 400; font-size: clamp(2.4rem, 8vw, 3.4rem); margin: 6px 0 0; }
.gift .sprig { margin-bottom: 18px; }
.gift__lead { color: var(--ink-soft); max-width: 44ch; margin: 0 auto; }
.gift__lead strong { color: var(--ink); }
.gift__addr { margin-top: 8px; font-size: 1rem; }
.iban {
  margin: 24px auto 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px;
  padding: 14px 16px; border-radius: 16px; background: linear-gradient(180deg, #fbf2ec, var(--cream)); border: 1px dashed var(--gold);
  max-width: 560px;
}
.iban__label { font-size: .75rem; letter-spacing: .24em; font-weight: 700; color: var(--gold-deep); }
.iban code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(.92rem, 3.6vw, 1.1rem); letter-spacing: .04em; color: var(--ink);
  word-break: break-word;
}
.iban__hint { margin-top: 10px; font-size: .95rem; font-style: italic; }

/* ---------------- RSVP ---------------- */
.section--rsvp { background: linear-gradient(180deg, transparent, rgba(243, 225, 217, .5) 35%, rgba(244, 236, 220, .65) 75%, transparent); }
.rsvp, .rsvp-done { max-width: 620px; margin: 0 auto; padding: clamp(24px, 5vw, 44px); }
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 1.08rem; margin-bottom: 8px; padding: 0; }
.field label .muted { font-weight: 400; font-style: italic; }
.field input[type=text], .field input[type=tel], .field input[type=number], .field textarea {
  width: 100%;
  font: inherit; font-size: 1.1rem; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 141, 87, .2); }
.field__err { display: none; color: var(--wax); font-size: .95rem; margin-top: 6px; }
.field.has-error .field__err { display: block; }
.field.has-error input[type=text] { border-color: var(--wax); }

.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice legend { width: 100%; }
.choice .field__err { width: 100%; }
.pill { position: relative; cursor: pointer; margin: 0 !important; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-weight: 500;
  transition: all .2s ease;
}
.pill span::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--gold); background: #fff; transition: all .2s ease;
}
.pill input[type=checkbox] + span::before { border-radius: 4px; }
.pill input:checked + span { border-color: var(--gold-deep); background: rgba(176, 141, 87, .12); color: var(--ink); }
.pill input:checked + span::before { background: var(--gold-deep); box-shadow: inset 0 0 0 3px #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.stepper button { width: 46px; border: 0; background: var(--cream); font-size: 1.4rem; cursor: pointer; color: var(--gold-deep); }
.stepper button:hover { background: #ecdfc4; }
.field .stepper input { border: 0; border-radius: 0; text-align: center; padding: 10px 4px; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

#rsvpBody, #yesFields { animation: fadeIn .4s ease; }
.field-row .field { min-width: 0; }

/* persone del gruppo */
.people__intro { margin: 4px 0 12px; font-style: italic; color: var(--ink-soft); }
.people { display: grid; gap: 14px; margin-bottom: 8px; }
.person {
  padding: 18px 18px 4px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbf3ee, #f8efe3);
  border: 1px solid var(--line);
  animation: fadeIn .35s ease;
}
.person--child { background: linear-gradient(180deg, #f7f1ea, #f3ece0); }
.person__title {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 12px;
}
.person .field { margin-bottom: 16px; }
.person .field label { font-size: 1rem; }
.person .field__err:empty { display: none !important; }
.people__err { margin: 0 0 18px; }
.people__err:empty { display: none; }
.people__err:not(:empty) { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  border: 1px solid var(--line); background: #fffdf8; color: var(--ink-soft);
  border-radius: 999px; padding: 4px 12px; font-size: .95rem; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--gold); background: #fff; }
@media (max-width: 420px) {
  .person { padding: 16px 14px 2px; }
  .person .field-row { grid-template-columns: 1fr; gap: 0; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rsvp__status { margin-top: 12px; text-align: center; min-height: 1.4em; font-style: italic; color: var(--ink-soft); }
.rsvp__status.is-error { color: var(--wax); }

.rsvp-done { text-align: center; animation: fadeIn .6s ease; }
.rsvp-done h3 { font-family: var(--script); font-weight: 400; font-size: 3rem; margin: 12px 0 8px; }
.rsvp-done p { color: var(--ink-soft); margin-bottom: 18px; }
.seal-mini {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #c7525a, var(--wax) 45%, var(--wax-dark));
  color: #f6d3b0; font-family: var(--script); font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25), inset 0 0 0 4px rgba(0, 0, 0, .12);
}
.seal-mini i { font-style: normal; font-size: .7em; }

/* ---------------- Footer ---------------- */
.footer { text-align: center; padding: 48px 16px 72px; }
.footer__with { margin-top: 20px; font-style: italic; color: var(--ink-soft); }
.footer__names { font-family: var(--script); font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.3; }
.footer__names em { font-style: normal; color: var(--gold); }

/* ---------------- Lightbox ---------------- */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  display: none; place-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(40, 30, 27, .88); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; object-fit: contain; border: 8px solid #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__close, .lightbox__nav {
  position: fixed; background: rgba(255, 255, 255, .1); border: 0; color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1;
  display: grid; place-items: center;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .22); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--night); color: #f3e7cf; padding: 10px 20px; border-radius: 999px;
  font-size: 1rem; transition: all .3s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .petal { display: none; }
}
