/* ==========================================================
   Modi Nuovi · 40 anni — Landing dicembre 2026 (prototipo)
   Mobile first · Montserrat · palette del brand
   ========================================================== */

:root {
  --navy: #061F37;
  --navy-2: #0B2A48;
  --navy-3: #0E3459;
  --green: #1EF06C;
  --yellow: #F0F032;
  --white: #FFFFFF;
  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .66);
  --faint: rgba(255, 255, 255, .52);
  --line: rgba(255, 255, 255, .12);
  --grad: linear-gradient(90deg, var(--green), var(--yellow));

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
  /* Ritmo verticale: metà dello spazio tra due sezioni (lo spazio pieno è il doppio) */
  --space: clamp(48px, 7vw, 104px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, blockquote, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .9em;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow .dash { width: 2.4em; height: 1px; background: currentColor; opacity: .6; }

.h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--white);
}

.spark { color: var(--yellow); }

/* ---------- Topbar ---------- */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 32px) var(--gutter);
}
.topbar__logo img { width: clamp(92px, 9vw, 128px); }
.topbar__tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .55em 1.1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.topbar__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.topbar__tag--count { border-color: rgba(30, 240, 108, .45); color: var(--text); }
.topbar__tag--count .cd { text-transform: none; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--muted); }
.topbar__tag--count .cd b { font-weight: 800; color: var(--green); }
@media (max-width: 560px) {
  .topbar { align-items: flex-start; }
  .topbar__tags { flex-direction: column; align-items: flex-end; }
  .topbar__tag { font-size: .62rem; letter-spacing: .16em; padding: .55em .9em; }
}

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: clamp(96px, 14vw, 140px) var(--gutter) var(--space);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 45% at 30% 40%, rgba(30, 240, 108, .10), transparent 70%),
    radial-gradient(40% 35% at 75% 80%, rgba(240, 240, 50, .06), transparent 70%),
    var(--navy);
}
.hero__sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__inner { display: grid; gap: clamp(8px, 3vw, 40px); width: 100%; max-width: var(--maxw); margin: 0 auto; }

.hero__visual { display: grid; place-items: center; }
.compass {
  position: relative;
  width: min(64vw, 400px);
  aspect-ratio: 1144 / 1375;
}
.compass__img {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 0 24px rgba(30, 240, 108, .18));
}
.compass__glow {
  position: absolute;
  left: 47.9%; top: 51.5%;
  width: 70%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 240, 108, .16), transparent 65%);
  filter: blur(10px);
}
.compass__orbit {
  position: absolute;
  left: 47.9%; top: 51.5%;
  width: 104%;
  transform: translate(-50%, -50%);
  overflow: visible;
}
.orbit-dash { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: .35; stroke-dasharray: .6 2.4; }
.orbit-arc {
  fill: none;
  stroke: url(#g-orbit);
  stroke-width: .8;
  stroke-linecap: round;
  stroke-dasharray: 14 86;
  transform-origin: 100px 100px;
  animation: orbit 14s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }

.twinkle {
  position: absolute;
  color: var(--yellow);
  font-size: clamp(10px, 1.4vw, 18px);
  animation: twinkle 3.2s ease-in-out infinite;
}
.t1 { left: 8%; top: 10%; }
.t2 { right: 4%; top: 30%; animation-delay: 1.1s; color: var(--green); }
.t3 { left: 18%; bottom: 6%; animation-delay: 2.2s; font-size: clamp(8px, 1vw, 13px); }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }

.hero__copy { align-self: center; max-width: 36rem; }
.hero__copy .eyebrow { margin-bottom: 1.4rem; }
.hero__title {
  font-size: clamp(2.35rem, 6.2vw, 5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
  color: var(--white);
  text-wrap: balance;
}
.hero__lead {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 600;
  color: var(--white);
}
.hero__text { margin-top: .7rem; color: var(--muted); max-width: 30rem; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
}
.scroll-cue svg {
  width: 40px; height: 40px; padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: border-color .3s, transform .3s var(--ease);
}
.scroll-cue:hover svg, .scroll-cue:focus-visible svg { border-color: var(--green); transform: translateY(3px); }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .compass { width: min(44vw, 600px); }
  .hero__copy { padding-left: clamp(0px, 2vw, 32px); }
}

/* ---------- 2 · Auguri ---------- */
.auguri { padding: var(--space) 0; }
.auguri__grid { display: grid; gap: clamp(56px, 8vw, 96px); }
.auguri__text .eyebrow { margin-bottom: 1.4rem; }

.quote { position: relative; }
.quote__mark {
  display: block;
  height: .5em;
  margin: 0 0 clamp(.9rem, 1.8vw, 1.5rem) -.04em;
  font-size: clamp(5rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9;
  pointer-events: none;
}
.quote__main {
  position: relative;
  font-size: clamp(1.55rem, 3.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.015em;
  color: var(--white);
  text-wrap: pretty;
}
.quote__sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 34rem;
}
.signature { display: flex; flex-direction: column; margin-top: 2.4rem; padding-left: 1.2rem; border-left: 2px solid var(--green); }
.signature strong { font-weight: 700; color: var(--white); }
.signature span { font-size: .85rem; color: var(--faint); letter-spacing: .04em; }

.photo__slot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: .4rem;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px),
    var(--navy-2);
  outline: 1px dashed rgba(255, 255, 255, .22);
  outline-offset: -14px;
  color: var(--faint);
  text-align: center;
}
.photo__slot svg { width: 44px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.photo__slot span { font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.photo__slot small { font-size: .75rem; }
.photo__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.photo figcaption { margin-top: 1.1rem; font-size: .95rem; color: var(--muted); }

@media (min-width: 900px) {
  .auguri__grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .photo { margin-top: clamp(64px, 8vw, 120px); }
}

/* Variante senza foto: citazione centrata e più ampia */
.auguri--solo .auguri__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.auguri--solo .auguri__text { max-width: 52rem; }
.auguri--solo .quote__mark { margin-left: auto; margin-right: auto; width: max-content; }
.auguri--solo .quote__sub { margin-left: auto; margin-right: auto; }
.auguri--solo .signature { align-items: center; padding: 1.2rem 0 0; border-left: 0; position: relative; }
.auguri--solo .signature::before { content: ""; position: absolute; top: 0; left: 50%; width: 40px; height: 2px; margin-left: -20px; background: var(--green); }

/* ---------- Tappa del mese (da gennaio) ---------- */
.tappa { padding: var(--space) 0; }
.tappa__grid { display: grid; gap: clamp(32px, 5vw, 48px); align-items: start; }
.tappa__year {
  font-size: clamp(6.5rem, 26vw, 12rem);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.05em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tappa__name { margin-top: 1rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 600; color: var(--white); max-width: 18rem; }
.tappa__count { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }

.tappa__story { max-width: 40rem; }
.tappa__story .eyebrow { margin-bottom: 1.4rem; }
.tappa__title {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--white);
  text-wrap: balance;
}
.tappa__body { display: grid; gap: 1.1rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); color: var(--muted); line-height: 1.75; }
.tappa__body strong { color: var(--white); font-weight: 600; }
.tappa__body .tappa__highlight {
  margin: .8rem 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--green);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.45;
}
.tappa__close {
  margin-top: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-style: italic;
  font-weight: 500;
  color: var(--white);
}
.tappa__count > span:last-child { white-space: nowrap; }
.tappa__dots { display: flex; gap: 4px; }
.tappa__dots i { width: clamp(8px, 1.2vw, 14px); height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); }
.tappa__dots i.on { background: var(--green); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 900px) {
  .tappa__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); }
  .tappa__side { position: sticky; top: 3rem; }
}

/* ---------- 3 · Evento ---------- */
.evento {
  position: relative;
  padding: calc(var(--space) * 1.25) 0;
  margin: calc(var(--space) * -.25) 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 50%, var(--navy) 100%);
}
.evento__forty {
  position: absolute;
  left: 50%; top: 50%;
  z-index: -1;
  transform: translate(-50%, -52%);
  font-size: clamp(18rem, 62vw, 46rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .08);
  background: linear-gradient(90deg, rgba(30,240,108,.0), rgba(30,240,108,.10), rgba(240,240,50,.0));
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  transition: background-position 2.4s var(--ease);
  user-select: none;
}
.evento.is-in .evento__forty { background-position: 0 0; }
.evento__inner { display: grid; justify-items: center; max-width: 60rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  background: rgba(30, 240, 108, .08);
  border: 1px solid rgba(30, 240, 108, .35);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--green);
}
.status__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.status__dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--green); animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.evento__title {
  margin-top: 2rem;
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--white);
  text-wrap: balance;
}

.datetease {
  display: flex;
  align-items: baseline;
  gap: clamp(4px, 1vw, 10px);
  margin: clamp(2.4rem, 5vw, 3.6rem) 0;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.datetease__slot {
  display: inline-grid;
  place-items: center;
  width: 1em;
  padding: .12em 0 .16em;
  border-bottom: 2px solid var(--green);
  filter: blur(7px);
  opacity: .75;
}
.datetease__sep { color: var(--faint); padding: 0 .08em; }
.datetease__year { font-weight: 600; padding-left: .1em; }

/* Riquadro "Save the Date": stesso disegno della cartolina */
.std {
  width: 100%;
  max-width: 34rem;
  margin: clamp(2.2rem, 4.5vw, 3.2rem) 0 0;
  padding: clamp(1.4rem, 3.2vw, 2.2rem) clamp(1.4rem, 3.6vw, 2.6rem);
  border: 2px solid var(--green);
  border-radius: 14px;
  background: rgba(6, 31, 55, .55);
  text-align: center;
}
.std__title { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 700; line-height: 1.05; letter-spacing: -.015em; color: var(--white); }
.std__date { font-size: clamp(1.3rem, 3.2vw, 2.2rem); text-wrap: balance; font-weight: 700; line-height: 1.15; color: var(--green); }
.std__place { margin-top: .7rem; font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 500; color: var(--white); }
.std__time { margin-top: .2rem; font-size: .95rem; color: var(--muted); }
.std__note { margin: 1.6rem 0 clamp(2rem, 4vw, 2.8rem); font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 600; color: var(--green); }

.evento__copy { display: grid; gap: 1rem; max-width: 40rem; color: var(--muted); }
.evento__intro { max-width: 40rem; margin-top: 1.4rem; }
.evento__lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--text); }
.evento__soon { margin-top: .8rem; font-weight: 600; color: var(--white); }

/* Avanzamento della timeline (classi al posto degli stili in linea, bloccati dalla CSP) */
.done-1 { --done: 1; } .done-2 { --done: 2; } .done-3 { --done: 3; } .done-4 { --done: 4; } .done-5 { --done: 5; } .done-6 { --done: 6; } .done-7 { --done: 7; } .done-8 { --done: 8; } .done-9 { --done: 9; } .done-10 { --done: 10; } .done-11 { --done: 11; } .done-12 { --done: 12; }

/* ---------- Iscrizioni: anteprima sfocata del modulo ---------- */
.iscr { padding: var(--space) 0; }
.iscr__grid { display: grid; gap: clamp(2.4rem, 5vw, 3.2rem); align-items: center; }
.iscr__text .eyebrow { margin-bottom: 1.4rem; }
.iscr__desc { margin-top: 1.2rem; max-width: 30rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text); }

.iscr__card {
  position: relative;
  width: 100%;
  max-width: 30rem;
  justify-self: center;
  border: 1px solid rgba(30, 240, 108, .35);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(11, 42, 72, .9), rgba(6, 31, 55, .9));
  box-shadow: 0 30px 80px -40px rgba(30, 240, 108, .35);
  overflow: hidden;
}
.iscr__form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
  filter: blur(5px);
  opacity: .8;
  user-select: none;
  pointer-events: none;
}
.iscr__formtitle { font-size: 1.15rem; font-weight: 700; color: var(--white); }
.iscr__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.iscr__field { display: grid; gap: .45rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.iscr__lbl { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.iscr__bar { display: block; width: 62%; height: .7rem; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.iscr__row .iscr__field:first-child .iscr__bar { width: 72%; }
.iscr__row .iscr__field:last-child .iscr__bar { width: 56%; }
.iscr__field--code { border-bottom: 2px solid var(--green); }
.iscr__code { display: flex; gap: .35em; font-size: 1.6rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--green); }
.iscr__code span { display: inline-grid; place-items: center; width: .9em; filter: blur(2px); }
.iscr__btn {
  justify-self: start;
  margin-top: .4rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  background: var(--green);
  font-size: .9rem; font-weight: 700;
  color: var(--navy);
}
.iscr__seal {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.3rem;
  border: 1px solid rgba(30, 240, 108, .5);
  border-radius: 999px;
  background: rgba(6, 31, 55, .85);
  backdrop-filter: blur(4px);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
}
.iscr__seal svg { color: var(--green); flex: none; }
@media (min-width: 900px) {
  .iscr__grid { grid-template-columns: 6fr 5fr; gap: clamp(3rem, 6vw, 6rem); }
  .iscr__card { justify-self: end; }
}

/* ---------- Iscrizioni aperte: modulo vero ---------- */
.btn-cta {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 1.8rem 1.4rem 0 0;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  background: var(--green);
  font-weight: 700; font-size: .95rem;
  color: var(--navy);
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(30, 240, 108, .7); }
/* Iscrizioni aperte: titoli centrati sopra, modulo largo sotto */
.iscr--aperte .iscr__grid { grid-template-columns: 1fr !important; justify-items: center; gap: clamp(2rem, 4vw, 3rem); }
.iscr--aperte .iscr__text { text-align: center; max-width: 44rem; }
.iscr--aperte .iscr__desc { margin-left: auto; margin-right: auto; }
.iscr--aperte .iscr__card { max-width: 60rem; justify-self: center; }
.iscr--aperte .iscr__done { max-width: 46rem; }
.modulo { display: grid; gap: clamp(1.6rem, 3vw, 2.2rem); padding: clamp(1.4rem, 3.5vw, 2.6rem); }
.iscr__quando { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; margin-top: 1.1rem; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.iscr__quando strong { color: var(--green); }
.iscr__quando span { color: var(--white); }
.blocco { min-width: 0; margin: 0; padding: 0 0 clamp(1.4rem, 3vw, 2rem); border: 0; border-bottom: 1px solid var(--line); }
.blocco legend { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; padding: 0; font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 700; color: var(--white); }
.blocco__n { padding: .25rem .6rem; border: 1px solid rgba(30, 240, 108, .5); border-radius: 999px; font-size: .75rem; letter-spacing: .1em; color: var(--green); }
.blocco__campi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1rem; }
.blocco__campi--3 { grid-template-columns: repeat(3, 1fr); }
.blocco__nota { grid-column: 1 / -1; font-size: .85rem; color: var(--faint); }
.blocco__nota.is-ok { color: var(--green); }
.blocco__nota.is-err { color: #ffb3a8; }
.blocco__domanda { margin-bottom: .9rem; font-weight: 600; color: var(--text); }
.campo__obbl { color: var(--green); }
.campo__etichetta { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.campo--n { max-width: 24rem; }
.scelte { display: flex; flex-wrap: wrap; gap: .7rem; }
.scelta, .campo .scelta { position: relative; font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); }
.scelta input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scelta span { display: inline-flex; align-items: center; gap: .65rem; padding: .8rem 1.2rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; cursor: pointer; color: var(--text); transition: border-color .2s, background .2s; }
.scelta span::before { content: ""; flex: none; width: 1rem; height: 1rem; border: 2px solid var(--muted); border-radius: 50%; }
.scelta:hover span { border-color: rgba(30, 240, 108, .5); }
.scelta input:checked + span { border-color: var(--green); background: rgba(30, 240, 108, .08); color: var(--white); }
.scelta input:checked + span::before { border-color: var(--green); background: radial-gradient(circle, var(--green) 42%, transparent 48%); }
.scelta input:focus-visible + span { box-shadow: 0 0 0 3px rgba(30, 240, 108, .3); }
.scelte--piccole .scelta span { padding: .65rem 1rem; font-size: .92rem; }
.blocco--errore .scelta span { border-color: #ff8a7a; }
.blocco > .campo--wide { margin-top: 1.1rem; }
.persona { display: grid; gap: 1rem; margin-top: 1.3rem; padding: clamp(1rem, 2.5vw, 1.4rem); border: 1px solid var(--line); border-radius: 14px; background: rgba(6, 31, 55, .45); }
.persona__testa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.persona__titolo { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.persona__copia { padding: .4rem .9rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: none; font: inherit; font-size: .8rem; color: var(--text); cursor: pointer; }
.persona__copia:hover { border-color: var(--green); color: var(--white); }
.modulo [hidden] { display: none !important; }
.modulo__legenda { justify-self: center; margin-top: -.9rem; font-size: .8rem; color: var(--faint); }
.done__persone { display: grid; gap: .6rem; margin: 0; padding-left: 1.1rem; }
.done__sub { font-size: .85rem; color: var(--faint); }
.campo { display: grid; gap: .4rem; align-content: start; min-width: 0; }
.campo--wide { grid-column: 1 / -1; }
.campo label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.campo__opz { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--faint); }
.campo input, .campo select, .campo textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(6, 31, 55, .7);
  font: inherit; font-size: 1rem;
  color: var(--white);
}
.campo textarea { resize: vertical; min-height: 3.2rem; }
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30, 240, 108, .2); }
.campo__codice { font-size: 1.3rem !important; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--green) !important; }
.campo--errore input, .campo--errore select, .campo--errore textarea { border-color: #ff8a7a; }
.campo__err { font-size: .85rem; color: #ffb3a8; }
.campo--check label { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); }
.campo--check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; flex: none; accent-color: var(--green); }
.campo--check a { color: var(--green); }
.modulo__avviso { padding: .8rem 1rem; border-radius: 10px; background: rgba(255, 138, 122, .12); border: 1px solid rgba(255, 138, 122, .4); color: #ffd2cb; font-size: .92rem; }
.modulo__esca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modulo__invia { justify-self: center; margin-top: .6rem; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1rem; }
.modulo__invia:hover { filter: brightness(1.08); }
.js [data-accompagnatori][hidden] { display: none; }
.iscr__off { padding: 2rem; color: var(--text); }

.iscr__done { padding: clamp(1.8rem, 4vw, 2.6rem); text-align: center; outline: none; }
.done__check { width: 76px; height: 76px; margin: 0 auto 1.2rem; }
.done__check svg { width: 100%; height: 100%; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: traccia .8s var(--ease) forwards; }
.done__check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: traccia .45s .6s var(--ease) forwards; }
@keyframes traccia { to { stroke-dashoffset: 0; } }
.done__title { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; color: var(--green); }
.done__place { margin-top: .3rem; color: var(--white); }
.done__list { display: grid; gap: .6rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); text-align: left; }
.done__list div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; }
.done__list dt { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding-top: .2rem; }
.done__list dd { color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .blocco__campi--3 { grid-template-columns: 1fr 1fr; }
  .blocco__campi--3 .campo:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .blocco__campi, .blocco__campi--3 { grid-template-columns: 1fr; }
  .scelte { flex-direction: column; }
  .scelta span { width: 100%; }
  .done__list div { grid-template-columns: 1fr; gap: .1rem; }
}

/* FAQ e assistenza sotto il modulo */
.aiuto { display: grid; gap: clamp(2rem, 4vw, 3rem); width: 100%; max-width: 60rem; margin-top: clamp(1rem, 3vw, 2rem); }
.aiuto__titolo { margin-bottom: 1rem; font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; color: var(--white); }
.faq__intro { margin-bottom: .6rem; padding: .9rem 1.1rem; border-left: 2px solid var(--green); background: rgba(30, 240, 108, .06); color: var(--text); font-size: .95rem; }
.faq__voce { border-bottom: 1px solid var(--line); }
.faq__voce summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 0;
  font-weight: 600; color: var(--text);
  cursor: pointer; list-style: none;
}
.faq__voce summary::-webkit-details-marker { display: none; }
.faq__voce summary::after { content: "+"; flex: none; font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--green); transition: transform .25s var(--ease); }
.faq__voce[open] summary::after { transform: rotate(45deg); }
.faq__voce summary:hover { color: var(--white); }
.faq__voce p { padding: 0 2rem 1.1rem 0; color: var(--muted); }
.assist { align-self: start; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid rgba(30, 240, 108, .4); border-radius: 18px; background: rgba(11, 42, 72, .5); }
.assist > p { color: var(--muted); }
.assist__lista { display: grid; gap: .8rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.assist__lista li { display: flex; align-items: center; gap: .8rem; overflow-wrap: anywhere; }
.assist__lista svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linejoin: round; }
.assist__lista a { font-weight: 600; color: var(--white); text-decoration: none; }
.assist__lista a:hover { color: var(--green); }
.assist__lista span { color: var(--text); }
.assist__orari { margin-top: 1rem; font-size: .9rem; color: var(--faint); }
@media (min-width: 900px) {
  .aiuto { grid-template-columns: 2fr 3fr; gap: clamp(3rem, 5vw, 4.5rem); }
}

/* ---------- 4 · Viaggio ---------- */
.viaggio { padding: var(--space) 0; }
.viaggio__head { display: grid; gap: 1.4rem; margin-bottom: clamp(48px, 7vw, 88px); }
.viaggio__head .eyebrow { margin-bottom: 1.4rem; }
.viaggio__intro { color: var(--muted); max-width: 32rem; }
@media (min-width: 900px) {
  .viaggio__head { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 4rem; }
}

.track { position: relative; }
.track__scroller {
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  /* sfumatura a destra: suggerisce che la linea continua */
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.track__scroller.is-end { -webkit-mask-image: none; mask-image: none; }
.track__inner { min-width: 720px; }
@media (min-width: 900px) {
  .track__scroller { -webkit-mask-image: none; mask-image: none; }
}
.track__scroller::-webkit-scrollbar { display: none; }
.track__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(56px, 1fr));
  padding-top: 8px;
}
.track__list::before { /* la linea del percorso */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 27px;
  height: 1px;
  --p: max(4%, calc(var(--done, 0) * 8.333%));
  background: linear-gradient(90deg, var(--green) 0%, var(--green) var(--p), rgba(255,255,255,.18) calc(var(--p) + 4%), rgba(255,255,255,.18) 100%);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease);
}
.track.is-in .track__list::before { transform: scaleX(1); }

.stop {
  display: grid;
  justify-items: center;
  gap: .9rem;
  width: 100%;
  padding: 10px 0 6px;
  background: none;
  border: 0;
  cursor: pointer;
  scroll-snap-align: start;
}
.stop__dot {
  position: relative;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .32);
  transition: border-color .3s, transform .3s var(--ease);
}
.stop__dot::after { /* lucchetto stilizzato: punto centrale */
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}
.stop__m {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color .3s;
}
.stop:hover .stop__dot, .stop:focus-visible .stop__dot, .stop.is-active .stop__dot { border-color: var(--white); transform: scale(1.15); }
.stop:hover .stop__m, .stop:focus-visible .stop__m, .stop.is-active .stop__m { color: var(--white); }
.stop:focus-visible { outline: none; }

.stop.is-next .stop__dot { border-color: var(--green); }
.stop.is-next .stop__dot::after { background: var(--green); }
.stop.is-next .stop__dot::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid var(--green); animation: ping 2.4s var(--ease) infinite;
}
.stop.is-next .stop__m { color: var(--green); }

/* Tappe già svelate (da gennaio 2027) */
.stop.is-open .stop__dot { background: var(--green); border-color: var(--green); }
.stop.is-open .stop__dot::after { background: var(--navy); inset: 6px; }
.stop.is-open .stop__m { color: var(--text); }
.stop.is-current .stop__dot { box-shadow: 0 0 0 6px rgba(30, 240, 108, .18); }
.stop__y { margin-top: -.5rem; font-size: .72rem; font-weight: 700; color: var(--green); letter-spacing: .06em; }

.track__ends {
  display: flex;
  justify-content: space-between;
  margin-top: .6rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--faint);
}
.track__info { margin-top: 2rem; min-height: 1.6em; color: var(--muted); }
.track__info strong { color: var(--white); font-weight: 600; }

/* ---------- 5 · Modì, la mascotte ---------- */
.mascotte { padding: var(--space) 0; }
.mascotte__grid {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
  padding-top: var(--space);
  border-top: 1px solid var(--line);
}
.mascotte__figure { position: relative; justify-self: center; width: min(56vw, 240px); }
.mascotte__halo {
  position: absolute; left: 50%; top: 55%;
  width: 120%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 240, 108, .18), transparent 62%);
}
.mascotte__img { position: relative; width: 100%; transform-origin: 50% 100%; animation: modi 5s ease-in-out infinite; }
@keyframes modi { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-2deg); } }
.mascotte__text .eyebrow { margin-bottom: 1.4rem; }
.mascotte__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--white);
}
.mascotte__desc { margin-top: 1.2rem; max-width: 34rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text); }

.savedate {
  display: inline-grid;
  gap: .3rem;
  margin-top: 1.8rem;
  padding: .9rem 1.3rem 1rem;
  border: 2px solid var(--green);
  border-radius: 12px;
  line-height: 1.1;
}
.savedate__label { font-size: 1rem; font-weight: 700; color: var(--white); }
.savedate__date { font-size: 1.25rem; font-weight: 700; color: var(--green); white-space: nowrap; }

@media (min-width: 900px) {
  .mascotte__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); }
  .mascotte__figure { width: min(24vw, 310px); justify-self: center; }
}

/* ---------- 6 · Chiusura ---------- */
.chiusura { padding: var(--space) 0 calc(var(--space) * 1.5); text-align: center; }
.chiusura__inner { display: grid; justify-items: center; }
.chiusura__title {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.025em;
  color: var(--white);
  text-wrap: balance;
}
.chiusura__text { margin-top: 1.2rem; color: var(--muted); }
.chiusura__wish {
  margin-top: 2.6rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Footer ---------- */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--line); }
.footer__row { display: grid; gap: 1.2rem; justify-items: start; }
.footer__logo { width: 104px; }
.footer__claim { font-size: .95rem; font-weight: 600; color: var(--white); }
.footer__link { font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--green); }
.footer__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; margin-top: 2rem; font-size: .75rem; color: var(--faint); }
.footer__docs { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.footer__docs a { color: var(--muted); text-decoration: none; }
.footer__docs a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .footer__row { grid-template-columns: auto 1fr auto; align-items: center; gap: 3rem; }
}

/* ---------- Barra anteprima (solo con chiave) ---------- */
body:has(.preview-bar) { padding-bottom: 3.2rem; }
.preview-bar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  padding: .6rem var(--gutter);
  background: var(--yellow); color: var(--navy);
  font-size: .8rem; text-align: center;
}

/* ---------- Pagina non trovata ---------- */
.notfound { display: grid; place-items: center; align-content: center; gap: 1rem; min-height: 100svh; padding: var(--gutter); text-align: center; }
.notfound img { width: 96px; opacity: .8; margin-bottom: 1rem; }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--white); }
.notfound p { color: var(--muted); }
.notfound a { margin-top: 1rem; font-weight: 600; color: var(--green); }

/* ---------- Animazioni di comparsa ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .compass { opacity: 0; transform: scale(.94); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease); }
.js .compass.is-in { opacity: 1; transform: none; }

/* ---------- Accessibilità: riduci movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .done__check circle, .done__check path { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .compass { opacity: 1; transform: none; }
  .track__list::before { transform: none; }
}
