/* Quiz pubblico, grazie e testi legali. Una domanda per schermata, prima il telefono.
   Token (per ruolo) e pezzi comuni in public.css. Su schermo grande: due pagine di un programma di sfilata,
   i 4 best seller fermi a sinistra (2x2), la colonna di testo a destra; cambia solo la domanda. */

.stage { min-height: 100vh; }
.col { display: flex; flex-direction: column; min-height: 100vh; max-width: 36rem; margin: 0 auto; padding: 0 var(--gut); }
.lineup--stage { display: none; }

/* Apertura */
.intro { padding: 1.75rem 0 2.5rem; }
.intro .lineup { margin-top: 1.5rem; }
.intro .slab { margin-top: 1.5rem; }
.fine { margin-top: 0.875rem; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); max-width: 46ch; }
.intro-more { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.6; max-width: 62ch; }
.deal { list-style: none; padding: 0; margin-top: 1.25rem; }
.deal li { display: grid; grid-template-columns: 1rem 1fr; gap: 0.75rem; padding: 0.875rem 0; border-top: 1px solid var(--line); }
.deal li::before { content: ""; width: 0.875rem; height: 0.875rem; margin-top: 0.3rem; background: var(--mark); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }
.deal li:last-child { border-bottom: 1px solid var(--line); }
.notice { margin-bottom: 1.5rem; padding: 0.75rem 0; border-top: 1px solid var(--mark); border-bottom: 1px solid var(--mark); font-weight: 600; }

/* Domande: numero d'uscita in un posto fisso, poi la domanda */
.flow { padding: 1.5rem 0 2rem; }
.exit { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 1.5rem; font-family: var(--wide); font-variant-numeric: tabular-nums lining-nums; }
.exit-n { display: inline-block; font-weight: 700; font-size: 4.5rem; line-height: 0.9; color: var(--mark); }
.exit-n.roll { animation: roll 300ms var(--ease) both; }
.exit-of { font-weight: 500; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--muted); }
@keyframes roll { from { clip-path: inset(0 0 100% 0); transform: translateY(0.3em); } to { clip-path: inset(0 0 0 0); transform: none; } }
.q-title { font: 500 1.5rem/1.22 var(--wide); letter-spacing: -0.005em; text-wrap: balance; max-width: 22ch; margin-bottom: 0.75rem; }
.q-help { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; max-width: 52ch; margin-bottom: 1.25rem; }
.q-title:focus { outline: none; }
#screen > .q-title:last-child, #screen > p:last-child { margin-bottom: 0; }
#screen > .q-title + .choice, #screen > .q-title + .field { margin-top: 1.25rem; }

/* Risposte: righe della scaletta separate da una linea, mai schede */
.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 3.75rem; padding: 0.875rem 0.25rem;
  border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent;
  color: var(--ink); font: 500 1.0625rem/1.3 var(--text); text-align: left; cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), padding 220ms var(--ease);
}
.choice::after {
  content: ""; flex: none; width: 1.25rem; height: 0.625rem; background: var(--muted);
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform 220ms var(--ease), background-color 160ms var(--ease);
}
.choice:last-of-type { border-bottom: 1px solid var(--line); }
.choice:hover { padding-left: 0.75rem; padding-right: 0.75rem; }
.choice:hover::after { background: var(--ink); transform: translateX(0.25rem); }
.choice.picked { background: var(--pick); color: var(--ink); padding-left: 0.75rem; padding-right: 0.75rem; border-top-color: var(--pick); }
.choice.picked::after { background: var(--ink); }
.choice:focus-visible { outline-offset: -2px; }

/* Campi di testo: una linea sola, grande */
.field {
  display: block; width: 100%; min-height: 3.5rem; margin-bottom: 1.5rem; padding: 0.75rem 0;
  border: 0; border-bottom: 2px solid var(--mark); border-radius: 0; background: transparent;
  color: var(--ink); font-size: 1.25rem;
}
.field:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }

.error {
  display: grid; grid-template-columns: 1.125rem 1fr; gap: 0.625rem; align-items: start;
  margin-bottom: 1.25rem; padding: 0.75rem 0; border-top: 1px solid var(--mark); border-bottom: 1px solid var(--mark);
  color: var(--ink); font-size: 0.9375rem; font-weight: 600; line-height: 1.45;
}
.error::before { content: ""; width: 1.125rem; height: 1.125rem; margin-top: 0.05rem; background: var(--mark); -webkit-mask: var(--alert) center / contain no-repeat; mask: var(--alert) center / contain no-repeat; }

.consent { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0 0 0.75rem; font-size: 0.875rem; line-height: 1.5; cursor: pointer; }
.legal-links { margin: 0 0 1.5rem; font-size: 0.8125rem; color: var(--muted); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.back {
  display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; margin-top: 1.25rem; padding: 0;
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 500 0.6875rem/1 var(--wide); letter-spacing: 0.14em; text-transform: uppercase;
}
.back::before { content: ""; width: 1.25rem; height: 0.625rem; background: currentColor; transform: scaleX(-1); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.back:hover { color: var(--ink); }

/* Grazie */
.done { padding: 2.5rem 0 3rem; }
.done h1 { font: 700 2rem/1.05 var(--wide); letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance; max-width: 16ch; }
.done p { margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.6; max-width: 58ch; }
.tones { display: grid; grid-template-columns: repeat(4, 1fr); height: 0.5rem; margin-top: 2.5rem; }
.tones span:nth-child(1) { background: var(--vanilla); box-shadow: inset 0 0 0 1px var(--line); }
.tones span:nth-child(2) { background: var(--tan); }
.tones span:nth-child(3) { background: var(--bronze); }
.tones span:nth-child(4) { background: var(--espresso); }

/* Testi legali (lettura) */
.legal { padding: 2.25rem 0 3rem; font-size: 1rem; line-height: 1.65; max-width: 68ch; }
.legal h1 { font: 700 2rem/1.05 var(--wide); text-transform: uppercase; margin-bottom: 1.5rem; }
.legal h2 { font: 500 1.0625rem/1.3 var(--wide); margin: 2.25rem 0 0.75rem; }
.legal h3 { font: 600 1rem/1.4 var(--text); margin: 1.5rem 0 0.5rem; }
.legal p, .legal ul, .legal ol { margin: 0 0 1rem; }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal li::marker { color: var(--mark); }
.legal .note { margin-bottom: 2.5rem; padding: 0.625rem 0; border-top: 1px solid var(--mark); border-bottom: 1px solid var(--mark); color: var(--mark); font-size: 0.8125rem; font-weight: 600; }

@media (min-width: 768px) {
  .intro { padding-top: 2.5rem; }
  .exit-n { font-size: 6rem; }
  .q-title { font-size: 1.875rem; }
  .done h1, .legal h1 { font-size: 2.75rem; }
}

/* Due pagine: a sinistra la scaletta ferma (il leggings da filmare grande a tutta altezza, i 3 best seller in colonna), testo a destra */
@media (min-width: 960px) {
  .stage--program { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .stage--program .lineup--stage {
    display: grid; position: sticky; top: 0; height: 100vh; padding: 1.5rem 0 1.5rem 1.5rem; gap: 0.5rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr));
  }
  .lineup--stage figure { min-height: 0; }
  .lineup--stage figure:first-child { grid-row: 1 / -1; }
  .lineup--stage picture { height: 100%; }
  .lineup--stage img { height: 100%; min-height: 0; object-position: 50% 30%; }
  .lineup--stage figure:first-child img { object-position: 50% 45%; }
  .stage--program .col { max-width: none; margin: 0; padding: 0 clamp(2rem, 5vw, 5rem); }
  .stage--program .col > main { max-width: 34rem; }
  .stage--program .intro .lineup { display: none; }
  .intro { padding-top: 12vh; }
  .flow { padding-top: 10vh; }
  /* la parola più lunga del titolo («BESTSELLERS.», ~9,5 em) deve stare nella colonna a ogni larghezza */
  .display { font-size: clamp(2rem, 3.9vw, 3.5rem); }
}
