
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/BarlowSemiCondensed-Bold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/BarlowSemiCondensed-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/Barlow-Regular.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/Barlow-Medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/Barlow-SemiBold.woff2") format("woff2"); }
/* Concetto: una notte di trasferta. Fondo blu notte come l'icona, la V di luce come unico punto caldo,
   la mezzeria tratteggiata come filo che lega le sezioni. */
:root {
  --night: #0A1528;
  --deep: #0F1D36;
  --raise: #142543;
  --line: #24365A;
  --ink: #EEF2F7;
  --muted: #A9B4C7;
  --ember: #FF7448;
  --amber: #FFC27A;
  --on-ember: #1B0C05;
  --display: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, system-ui, sans-serif;
  --max: 1120px;
  --read: 62ch;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Fascia "in sviluppo" */
.stato {
  background: var(--deep);
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.stato .wrap { padding-block: 8px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.stato strong { color: var(--amber); font-weight: 600; }

/* Intestazione */
.testa .wrap { padding-block: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marchio { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.marchio img { width: 40px; height: 40px; border-radius: 10px; }
.parola { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.01em; line-height: 1; }
.parola span { color: var(--ember); }

.bottone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--ember); color: var(--on-ember);
  font-family: var(--display); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.02em;
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(255,116,72,0.5);
  transition: box-shadow .2s ease, transform .2s ease;
}
.bottone:hover { color: var(--on-ember); box-shadow: 0 0 28px 2px rgba(255,116,72,0.45); transform: translateY(-1px); }
.bottone.piccolo { min-height: 44px; padding: 10px 18px; font-size: 1rem; }
.bottone.chiaro { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.bottone.chiaro:hover { border-color: var(--amber); color: var(--ink); }

/* Apertura */
.apertura .wrap { padding-block: 24px 64px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px; align-items: center; }
.apertura h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.01em;
  margin: 0 0 22px; text-wrap: balance;
}
.apertura h1 em { font-style: normal; color: var(--ember); }
.apertura p.lead { font-size: 1.25rem; color: var(--muted); max-width: 34ch; margin: 0 0 30px; }
.apertura .azioni { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.apertura .nota { font-size: 0.9375rem; color: var(--muted); }
.luce { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.luce img { width: 100%; height: 100%; object-fit: contain; -webkit-mask-image: radial-gradient(circle, #000 56%, transparent 71%); mask-image: radial-gradient(circle, #000 56%, transparent 71%); }
.luce::after {
  content: ""; position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,116,72,0.18), rgba(255,116,72,0) 70%);
  z-index: -1;
}

/* Mezzeria: separatore tratteggiato */
.mezzeria { height: 4px; background: repeating-linear-gradient(90deg, var(--line) 0 34px, transparent 34px 58px); border: 0; margin: 0; }

section { scroll-margin-top: 16px; }
.sezione .wrap { padding-block: 72px; }
.sezione.scura { background: var(--deep); }
.occhiello { font-family: var(--display); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--amber); margin: 0 0 10px; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.04; margin: 0 0 18px; text-wrap: balance; max-width: 28ch; }
h3 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; margin: 0 0 8px; }
.testo { max-width: var(--read); color: var(--muted); }
.testo p { margin: 0 0 14px; }

/* Come funziona: tre tappe su una strada */
.tappe { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
.tappe::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--ember) 0 26px, transparent 26px 46px); opacity: 0.55;
}
.tappa { position: relative; min-width: 0; }
.tappa .numero {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night); border: 2px solid var(--ember); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 1.6rem; margin-bottom: 18px; position: relative;
}
.sezione.scura .tappa .numero { background: var(--deep); }
.tappa p { color: var(--muted); margin: 0 0 14px; }
.battuta {
  background: var(--raise); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px;
  padding: 12px 14px; font-size: 0.975rem; color: var(--ink); line-height: 1.45;
}
.battuta small { display: block; color: var(--muted); font-size: 0.8125rem; margin-bottom: 4px; letter-spacing: 0.04em; text-transform: uppercase; }

/* Punti */
.punti { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.punti li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--muted); }
.punti li strong { color: var(--ink); font-weight: 600; }
.punti svg { margin-top: 3px; }

/* Prezzi */
.piani { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.piano { background: var(--night); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.piano.evidenza { border-color: var(--ember); box-shadow: 0 0 40px -12px rgba(255,116,72,0.5); }
.piano .nome { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.04em; text-transform: uppercase; }
.piano .prezzo { font-family: var(--display); font-weight: 700; font-size: 2.8rem; line-height: 1; font-variant-numeric: tabular-nums; }
.piano .prezzo span { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.piano p { margin: 0; color: var(--muted); }
.nota-prezzi { margin-top: 20px; color: var(--muted); font-size: 0.975rem; }

/* Chi c'è dietro */
.dietro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.firma { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.15rem; }

/* Domande */
.domande { margin-top: 28px; max-width: 760px; display: grid; gap: 10px; }
.domande details { background: var(--raise); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.domande summary { cursor: pointer; padding: 18px 0; font-family: var(--display); font-weight: 600; font-size: 1.25rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.domande summary::-webkit-details-marker { display: none; }
.domande summary::after { content: "+"; color: var(--ember); font-size: 1.6rem; line-height: 1; }
.domande details[open] summary::after { content: "–"; }
.domande details p { margin: 0 0 18px; color: var(--muted); }

/* Modulo */
.iscrizione .wrap { padding-block: 80px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.scheda { background: var(--deep); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.campo { display: grid; gap: 6px; margin-bottom: 16px; }
.campo label, .campo legend { font-weight: 600; font-size: 0.975rem; color: var(--ink); }
.campo input[type="email"], .campo select {
  font: inherit; color: var(--ink); background: var(--night); border: 1px solid var(--line); border-radius: 12px;
  min-height: 48px; padding: 10px 14px; width: 100%;
}
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.campo input:focus, .campo select:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(255,194,122,0.25); }
.consenso { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.9375rem; color: var(--muted); margin: 6px 0 20px; }
.consenso input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ember); }
.facoltativo { font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.avviso-anteprima { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--raise); border: 1px dashed var(--amber); color: var(--ink); font-size: 0.95rem; }
.aiuto { margin: 8px 0 0; font-size: 0.875rem; color: var(--muted); }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.avviso-errore { margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; background: var(--raise); border: 1px solid var(--ember); color: var(--ink); font-size: 0.95rem; }
.avviso-errore a { color: var(--amber); }
#fatto-passo2 h3 { margin: 0 0 8px; }
.bottone[disabled] { opacity: .6; cursor: progress; }
#iscrizione-email h3 { margin-bottom: 10px; }
#iscrizione-email .bottone { margin: 6px 0 10px; }

/* Ringraziamento */
.grazie .wrap { padding-block: 40px 80px; max-width: 760px; }
.grazie h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; margin: 0 0 14px; }
.offerta { margin: 28px 0; padding: 22px 24px; border-radius: 18px; background: var(--deep); border: 1px solid var(--ember); }
.offerta h2 { font-size: 1.8rem; margin-bottom: 8px; }
.condividi { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 12px; }
.condividi input { font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--night); border: 1px solid var(--line); border-radius: 12px; min-height: 48px; padding: 10px 12px; width: 100%; min-width: 0; }

/* Piede */
.piede { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.piede .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; }
.piede nav { display: flex; gap: 18px; flex-wrap: wrap; }
.piede a { color: var(--muted); }

@media (max-width: 860px) {
  .apertura .wrap, .iscrizione .wrap, .dietro { grid-template-columns: minmax(0, 1fr); }
  .apertura .wrap { padding-block: 8px 48px; }
  .luce { order: -1; max-width: 340px; }
  .tappe { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .tappe::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 4px; height: auto;
    background: repeating-linear-gradient(180deg, var(--ember) 0 26px, transparent 26px 46px); }
  .tappa { padding-left: 80px; }
  .tappa .numero { position: absolute; left: 0; top: 0; }
  .punti, .piani { grid-template-columns: minmax(0, 1fr); }
  .sezione .wrap { padding-block: 56px; }
}
@media (max-width: 420px) {
  .stato .wrap span:nth-child(2), .stato .wrap span:nth-child(4) { display: none; }
  .stato .wrap { gap: 4px 12px; }
  .parola { font-size: 1.4rem; }
  .testa .bottone.piccolo { padding: 10px 14px; }
}

/* Pagine legali */
.legale .testo { max-width: 68ch; }
.legale .testo h2 { font-size: 1.6rem; margin: 34px 0 10px; color: var(--ink); max-width: none; }
.legale h1 { margin-bottom: 18px; }
