/* Talenti · evento SEE.
   Struttura e caratteri: le specifiche delle survey di orientamento di CASILLO
   (resources/css/app.css e Pages/Scopri/Index.vue): Big Shoulders Display per
   i titoli, Poppins per il testo, Space Mono per i metadati; schede bianche,
   risposte con la lettera, pulsanti a pillola.
   Colori: la tavolozza del pittogramma di SEE (public/see-pittogramma.svg) —
   indaco per titoli e pannelli, magenta per i pulsanti e gli accenti, blu per
   la scelta, i colori dei pallini nella barra di avanzamento, il rosso per gli
   errori. Tutti i valori stanno nei token qui sotto. */

:root {
  /* La tavolozza del pittogramma SEE */
  --see-indaco: #30357c;
  --see-blu: #3c64a9;
  --see-celeste: #67aee3;
  --see-verde: #6aa842;
  --see-verde-scuro: #4d8c3f;
  --see-lime: #a2c037;
  --see-magenta: #c62370;
  --see-prugna: #8b1f5a;
  --see-ambra: #db9a30;
  --see-rosso: #c20e1a;

  /* I ruoli */
  --blu: var(--see-indaco);          /* titoli, testo forte, pannelli */
  --blu-scuro: #23275e;
  --accento: var(--see-magenta);     /* pulsanti, parole evidenziate */
  --accento-scuro: #a51c5c;
  --scelta: var(--see-blu);          /* la risposta scelta */
  --verde: var(--see-verde);         /* conferme */
  --warn: var(--see-rosso);          /* errori */
  --avanzamento: linear-gradient(90deg, var(--see-lime), var(--see-verde), var(--see-celeste), var(--see-blu), var(--see-magenta));

  --bg: #FFFFFF;
  --card: #F5F6F7;
  --ink: #1a1a1a;
  --muted: #5b6b7b;
  --bordo: #e4ecf3;
  --bordo-card: #e8edf2;
  --azzurro: #eef0f8;
  --scelta-bg: #eef2fa;
  --traccia: #e2e9ef;

  --radius: 14px;
  --shadow: 0 6px 22px rgba(48, 53, 124, .10);
  --shadow-soft: 0 4px 18px rgba(48, 53, 124, .08);

  --colore: var(--blu); /* il colore del talento, sul risultato */
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
}
button, input { font: inherit; color: inherit; }
a { color: var(--blu); font-weight: 600; }
[hidden] { display: none !important; }
/* Il titolo prende il fuoco a ogni schermata (per chi usa un lettore di schermo):
   non è un comando, quindi niente contorno. */
[tabindex="-1"]:focus { outline: none; }

.display { font-family: 'Big Shoulders Display', sans-serif; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
.mono { font-family: 'Space Mono', monospace; }

.ic { width: 1em; height: 1em; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.12em; flex-shrink: 0; }

.app { max-width: 960px; margin: 0 auto; min-height: 100dvh; padding: 0 18px 40px; display: flex; flex-direction: column; }
.schermata { flex: 1; animation: rise .35s ease backwards; }

/* ── Testata: il marchio ──────────────────────────────────────────────── */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; gap: 14px; }
.mark { line-height: 1.1; display: flex; align-items: center; gap: 11px; }
.mark .pittogramma { width: 40px; height: 40px; flex-shrink: 0; }
.mark .kick { font-family: 'Space Mono', monospace; font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.mark .logo { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 1.6rem; color: var(--blu); letter-spacing: .01em; line-height: 1; margin-top: 3px; }
.mark .logo span { color: var(--accento); }

/* ── Intro ────────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 28px 10px 30px; }
.hero-logo { width: 96px; height: 96px; margin: 0 auto 22px; display: block; }
.hero h1 { font-size: clamp(3rem, 12vw, 5.6rem); font-weight: 800; color: var(--blu); }
.hero h1 .hl { color: var(--accento); }
.claim { font-size: clamp(1.35rem, 5.5vw, 2rem); color: var(--accento); line-height: 1.05; margin-top: 14px; }
.claim .hl { color: var(--blu); }
.sub { text-wrap: pretty; font-size: 1rem; color: var(--ink); line-height: 1.6; max-width: 46ch; margin: 22px auto 0; }
.cta-intro { margin-top: 28px; }
.meta { font-family: 'Space Mono', monospace; font-size: .68rem; color: var(--muted); margin-top: 14px; }
.stats-row { display: flex; justify-content: center; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat b { display: block; font-family: 'Big Shoulders Display', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--blu); line-height: 1; }
.stat span { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.talenti { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 34px auto 0; max-width: 560px; }
.talenti span { display: inline-flex; align-items: center; gap: 7px; background: var(--azzurro); color: var(--blu); border-radius: 99px; padding: 7px 14px; font-size: .74rem; font-weight: 600; }
.talenti .ic { color: var(--c); font-size: 1rem; }

/* ── Pulsanti ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: none; border-radius: 99px; padding: 16px 34px; font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 700; cursor: pointer; transition: .2s; text-decoration: none; }
.btn-primary { background: var(--accento); color: #fff; box-shadow: 0 8px 22px rgba(198, 35, 112, .25); }
@media (hover: hover) { .btn-primary:hover { background: var(--accento-scuro); } }
.btn.ghost { background: transparent; color: var(--blu); border: 1px solid #d9dcec; }
@media (hover: hover) { .btn.ghost:hover { background: var(--azzurro); } }
.btn.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn.btn-block { width: 100%; margin-top: 6px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn:focus-visible { outline: 3px solid var(--blu); outline-offset: 3px; }
.btn .ic { font-size: 1.1em; }

.back { background: transparent; border: none; font-family: 'Poppins', sans-serif; font-size: .8rem; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; margin-bottom: 10px; }
@media (hover: hover) { .back:hover { color: var(--blu); } }

/* ── Test ─────────────────────────────────────────────────────────────── */
.test { max-width: 620px; margin: 0 auto; padding: 12px 0 24px; width: 100%; }
.track { height: 8px; background: var(--traccia); border-radius: 99px; overflow: hidden; }
.fill { height: 100%; background: var(--avanzamento); border-radius: 99px; transition: width .35s ease; }
.qmeta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.qmeta .part { color: var(--accento); font-weight: 700; font-family: 'Space Mono', monospace; }
.q { text-wrap: balance; font-size: 1.5rem; font-weight: 700; color: var(--blu); line-height: 1.3; margin: 22px 0 24px; }
.opts { display: flex; flex-direction: column; }
.opt { background: #fff; border: 2px solid var(--bordo); border-radius: 16px; padding: 18px 20px; margin-bottom: 13px; cursor: pointer; display: flex; align-items: center; gap: 16px; font-size: 1rem; font-weight: 500; transition: .16s; text-align: left; color: var(--ink); width: 100%; animation: rise .35s ease backwards; }
/* Solo dove l'hover esiste davvero: su touch resterebbe «appiccicato» alla
   risposta toccata e sulla domanda dopo sembrerebbe un suggerimento. */
@media (hover: hover) { .opt:hover { border-color: var(--see-celeste); transform: translateY(-1px); } }
.opt.on { border-color: var(--scelta); background: var(--scelta-bg); }
.opt:focus-visible { outline: 3px solid var(--blu); outline-offset: 2px; }
.mk { width: 34px; height: 34px; border-radius: 10px; background: var(--azzurro); color: var(--blu); display: flex; align-items: center; justify-content: center; font-family: 'Space Mono', monospace; font-weight: 700; flex-shrink: 0; transition: .16s; }
.opt.on .mk { background: var(--scelta); color: #fff; }
.hint { text-align: center; font-size: .74rem; color: var(--muted); margin-top: 16px; }
.err { background: #fdeaeb; color: var(--warn); border-radius: 10px; padding: 10px 14px; font-size: .8rem; margin-top: 12px; text-align: center; }

/* ── Attesa prima della rivelazione ───────────────────────────────────── */
.calc-view { text-align: center; padding: 90px 20px; max-width: 420px; margin: 0 auto; width: 100%; }
.calc-ring { width: 76px; height: 76px; border-radius: 50%; background: var(--blu); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 22px; animation: spin 2.4s linear infinite; }
.calc-msg { font-size: 1rem; font-weight: 600; color: var(--blu); min-height: 1.5em; animation: fade .5s ease; }
.calc-track { height: 6px; background: var(--traccia); border-radius: 99px; overflow: hidden; margin-top: 20px; }
.calc-fill { height: 100%; background: var(--avanzamento); border-radius: 99px; width: 8%; transition: width .6s ease; }
.calc-fill.s1 { width: 45%; }
.calc-fill.s2 { width: 82%; }
.calc-fill.s3 { width: 100%; }

/* ── Risultato ────────────────────────────────────────────────────────── */
.result { max-width: 620px; margin: 0 auto; padding: 10px 0 20px; width: 100%; }
.reveal { text-align: center; padding: 20px 16px 30px; }
.r-emoji { width: 84px; height: 84px; border-radius: 50%; background: var(--colore); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin: 0 auto 16px; box-shadow: 0 10px 26px color-mix(in srgb, var(--colore) 35%, transparent); }
.r-lead { font-family: 'Space Mono', monospace; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.reveal h2 { font-size: clamp(2.6rem, 11vw, 3.6rem); font-weight: 800; color: var(--blu); margin: 6px 0 12px; }
.reveal p { text-wrap: balance; font-size: 1rem; color: var(--ink); line-height: 1.6; max-width: 36ch; margin: 0 auto; font-weight: 500; }

.radar-card { background: #fff; border-radius: 18px; padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow-soft); }
.radar-card h4 { font-size: 1.1rem; font-weight: 800; color: var(--blu); margin-bottom: 16px; }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar { display: grid; grid-template-columns: 26px minmax(0, 1fr) 36px; gap: 6px 11px; align-items: center; }
.b-code { width: 26px; height: 26px; border-radius: 8px; color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Space Mono', monospace; font-size: .62rem; font-weight: 700; background: var(--c); }
.b-name { font-size: .8rem; font-weight: 600; color: var(--ink); }
.b-pct { font-size: .68rem; color: var(--muted); text-align: right; font-family: 'Space Mono', monospace; }
.b-track { grid-column: 2 / 4; height: 10px; background: #eef2f6; border-radius: 99px; overflow: hidden; }
.b-fill { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--c); transition: width .8s ease; }
.map-note { font-size: .68rem; color: var(--muted); line-height: 1.5; margin-top: 14px; }

/* L'invito: il pannello blu delle survey («questo lo apri con un account»). */
.cta { background: var(--blu); color: #fff; border-radius: 22px; padding: 26px 24px; text-align: center; margin: 18px 0 22px; }
.cta-ico { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .35); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 14px; }
.cta h3 { font-size: 1.9rem; font-weight: 800; }
.cta > p { font-size: .88rem; line-height: 1.6; opacity: .92; max-width: 42ch; margin: 8px auto 18px; }
.cta .btn-primary { background: var(--see-lime); color: var(--blu-scuro); box-shadow: none; }
@media (hover: hover) { .cta .btn-primary:hover { background: #fff; color: var(--blu); } }
.cta-note { font-size: .72rem; opacity: .72; margin-top: 12px; line-height: 1.5; }
.rifai { text-align: center; }

/* ── Gate: i dati ─────────────────────────────────────────────────────── */
.gate { max-width: 460px; margin: 20px auto 0; background: #fff; border-radius: 22px; padding: 34px 28px; box-shadow: 0 10px 30px rgba(48, 53, 124, .12); width: 100%; }
.lock { width: 62px; height: 62px; border-radius: 50%; background: var(--azzurro); color: var(--blu); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 16px; }
.gate h2 { font-size: 2rem; font-weight: 800; color: var(--blu); text-align: center; }
.gate > p { font-size: .88rem; color: var(--muted); line-height: 1.6; text-align: center; margin: 8px 0 22px; }
.gate > p b { color: var(--colore); }
.fld { margin-bottom: 16px; }
.fld label { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.fld input { width: 100%; border: 2px solid var(--bordo); border-radius: 12px; padding: 12px 14px; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.fld input:focus { outline: none; border-color: var(--scelta); box-shadow: 0 0 0 3px rgba(60, 100, 169, .14); }
.fld input[aria-invalid="true"] { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(194, 14, 26, .12); }
.fld-err { display: block; margin-top: 6px; font-size: .76rem; color: var(--warn); }
.esca { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Il consenso: la scatola delle prese visione di CASILLO (.auth-consents). */
.consents { display: grid; gap: 13px; margin: 2px 0 18px; padding: 15px 16px; border: 1px solid var(--bordo-card); border-radius: 12px; background: var(--card); }
.consents[data-errore] { border-color: var(--warn); }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 11px; align-items: start; font-size: .82rem; line-height: 1.55; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: .12em 0 0; accent-color: var(--scelta); cursor: pointer; }
.consents .fld-err { margin: 0 0 0 29px; }
.consents a { font-size: inherit; }
.note { font-size: .7rem; color: var(--muted); line-height: 1.6; margin-top: 18px; text-align: center; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }

/* ── Fatto ────────────────────────────────────────────────────────────── */
.g-end { text-align: center; padding: 50px 16px; max-width: 520px; margin: 0 auto; }
.g-end-ico { width: 78px; height: 78px; border-radius: 50%; background: var(--verde); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; margin: 0 auto 18px; }
.g-end h2 { font-size: clamp(2.4rem, 10vw, 3.2rem); font-weight: 800; color: var(--blu); }
.g-end p { font-size: .95rem; color: var(--ink); line-height: 1.6; max-width: 40ch; margin: 12px auto 0; }
.g-end p b { color: var(--colore); }
.g-end-note { font-size: .82rem !important; color: var(--muted) !important; }
.g-end-actions { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; margin-top: 28px; }

.caricamento { margin: 30vh auto 0; display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; }
.noscript { padding: 24px; text-align: center; }

/* La rivelazione arriva a scalare: tutta insieme sembrerebbe una pagina
   caricata, non un risultato consegnato. */
.up { animation: rise .5s ease backwards; }
.d1 { animation-delay: .12s; }
.d2 { animation-delay: .24s; }
.d3 { animation-delay: .38s; }
.d4 { animation-delay: .52s; }
.d5 { animation-delay: .66s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .up, .calc-msg, .opt, .schermata { animation: none; }
  .calc-ring { animation: none; }
}
