/* ============================================================
   Timettonline · Analisi della presenza online
   Stesso mondo del sito: fondo quasi nero, sfumature viola che
   scendono da destra, blu acceso sui pulsanti, titoli bianchi
   pesanti. Il tema e uno solo, di proposito: ogni colore e scritto
   in chiaro, cosi la pagina si regge su qualunque sfondo la ospiti.
   ============================================================ */

:root {
  /* --- fondo e superfici --- */
  --nero: #07050E;
  --nero-2: #0D0A1A;
  --superficie: #120F22;
  --superficie-2: #191434;
  --linea: rgba(164, 140, 255, .16);
  --linea-forte: rgba(164, 140, 255, .34);

  /* --- testo --- */
  --bianco: #FFFFFF;
  --testo: #E8E4F5;
  --muted: #A49EC2;
  --debole: #6F6890;

  /* --- accenti, presi dal sito --- */
  --viola: #7B2FF7;
  --viola-chiaro: #A45CFF;
  --viola-tenue: rgba(123, 47, 247, .16);
  --blu: #3A3AE0;
  --blu-chiaro: #5B5BFF;
  --blu-tenue: rgba(58, 58, 224, .18);

  --verde: #2FD98A;
  --verde-tenue: rgba(47, 217, 138, .14);
  --ambra: #FFB43D;
  --ambra-tenue: rgba(255, 180, 61, .14);
  --rosso: #FF5B5B;
  --rosso-tenue: rgba(255, 91, 91, .14);

  --alone: 0 0 42px -8px rgba(123, 47, 247, .55);
  --alone-blu: 0 12px 34px -10px rgba(58, 58, 224, .7);
  --ombra: 0 18px 46px -14px rgba(0, 0, 0, .8);

  --r: 18px;
  --r-s: 12px;
  --maxw: 700px;
  --passo: clamp(20px, 5vw, 40px);

  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --corpo: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --molla: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--nero);
  color: var(--testo);
  font: 400 17px/1.62 var(--corpo);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* ============================================================
   LO SFONDO
   Due macchie viola sfocate che scendono da destra, come la curva
   luminosa del sito, piu una griglia appena percettibile. Tutto
   disegnato in CSS: nessuna immagine da scaricare.
   ============================================================ */
.bagliore { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bagliore::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(164, 140, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164, 140, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 55% at 78% 8%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 78% 8%, #000 15%, transparent 72%);
}
.bagliore i { position: absolute; display: block; border-radius: 50%; filter: blur(88px); }
.bagliore i:nth-child(1) {
  width: 62vw; height: 62vw; right: -18vw; top: -22vw;
  background: radial-gradient(circle, rgba(123, 47, 247, .58), transparent 66%);
  animation: vaga 24s ease-in-out infinite;
}
.bagliore i:nth-child(2) {
  width: 44vw; height: 44vw; left: -14vw; top: 26vh;
  background: radial-gradient(circle, rgba(58, 58, 224, .40), transparent 68%);
  animation: vaga 31s ease-in-out infinite reverse;
}
.bagliore i:nth-child(3) {
  width: 38vw; height: 38vw; right: -6vw; top: 108vh;
  background: radial-gradient(circle, rgba(164, 92, 255, .26), transparent 70%);
  animation: vaga 27s ease-in-out infinite;
}
@keyframes vaga {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(-5%, 6%, 0) scale(1.1); }
  66%      { transform: translate3d(4%, -3%, 0) scale(.94); }
}

/* ---------- Barra di avanzamento ---------- */
.avanzamento { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; }
.avanzamento > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blu), var(--viola-chiaro));
  box-shadow: 0 0 14px rgba(164, 92, 255, .9);
  border-radius: 0 3px 3px 0;
  transition: width .5s var(--molla);
}

/* ---------- Intestazione ---------- */
.testa {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; max-width: var(--maxw); margin: 0 auto;
  padding: 26px var(--passo) 0;
}
.marchio {
  display: inline-flex; align-items: baseline; gap: 9px;
  font: 700 16px/1 var(--display); letter-spacing: -.01em;
  color: var(--bianco); text-decoration: none;
}
.marchio b {
  background: linear-gradient(100deg, var(--blu-chiaro), var(--viola-chiaro));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--viola-chiaro);
  font-weight: 700;
}
.marchio span:last-child {
  font: 600 11px/1 var(--corpo); color: var(--debole);
  letter-spacing: .12em; text-transform: uppercase;
}
.passo-conta {
  font: 700 12px/1 var(--mono); color: var(--muted);
  background: var(--superficie); border: 1px solid var(--linea);
  padding: 7px 12px; border-radius: 20px; white-space: nowrap;
}

/* ---------- Impianto ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: var(--passo); }
.centro { justify-content: center; }
.schermata { display: none; }
.schermata.attiva { display: block; }
.schermata > .apertura,
.schermata > .domanda { margin-left: auto; margin-right: auto; text-align: center; }

.schermata.attiva > * { animation: sali .65s var(--molla) both; }
.schermata.attiva > *:nth-child(2) { animation-delay: .06s; }
.schermata.attiva > *:nth-child(3) { animation-delay: .12s; }
@keyframes sali {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

h1 {
  font: 700 clamp(34px, 7.4vw, 58px)/1.02 var(--display);
  letter-spacing: -.038em; margin: 0 0 16px;
  color: var(--bianco); text-wrap: balance;
}
h2 {
  font: 700 clamp(22px, 3.8vw, 30px)/1.16 var(--display);
  letter-spacing: -.028em; margin: 0 0 12px;
  color: var(--bianco); text-wrap: balance;
}
h3 { font: 700 18px/1.35 var(--display); margin: 0 0 6px; color: var(--bianco); letter-spacing: -.015em; }
p { margin: 0 0 14px; }
.sommario { color: var(--muted); font-size: 18.5px; margin-bottom: 30px; }
.piccolo { font-size: 14.5px; color: var(--muted); }
a { color: var(--viola-chiaro); text-underline-offset: 3px; }

/* ---------- Riquadri: vetro scuro con bordo che accenna al viola ---------- */
.riquadro {
  background: linear-gradient(160deg, rgba(25, 20, 52, .82), rgba(13, 10, 26, .82));
  border: 1px solid var(--linea);
  border-radius: var(--r);
  box-shadow: var(--ombra);
  padding: clamp(20px, 4vw, 30px);
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

/* ============================================================
   APERTURA
   ============================================================ */
.apertura { max-width: 640px; padding-top: clamp(18px, 5vw, 44px); }
.soprattitolo {
  display: inline-flex; align-items: center; gap: 9px;
  font: 700 12.5px/1 var(--corpo); letter-spacing: .1em;
  text-transform: uppercase; color: var(--viola-chiaro);
  background: var(--viola-tenue); border: 1px solid var(--linea-forte);
  padding: 9px 17px; border-radius: 20px; margin-bottom: 24px;
}
.soprattitolo::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--viola-chiaro); box-shadow: 0 0 10px var(--viola-chiaro);
  animation: battito 2.2s ease-in-out infinite;
}
@keyframes battito {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .3; transform: scale(.75); }
}
.apertura h1 { margin-bottom: 16px; }
.apertura h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blu-chiaro), var(--viola-chiaro) 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--viola-chiaro);
}
.apertura .sommario { margin-bottom: 34px; }

/* ============================================================
   LA RADIOGRAFIA
   Un sito che passa sotto lo scanner: il raggio scende, e dove
   trova qualcosa che non va si accende un puntino. Va da sola, non
   aspetta che qualcuno scorra la pagina. Tutto disegnato: nessuna
   immagine da scaricare, nessuna libreria.
   ============================================================ */
.radiografia {
  position: relative; margin: 0 auto 32px; max-width: 420px;
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(25,20,52,.9), rgba(18,15,34,.75));
  border: 1px solid var(--linea-forte);
  box-shadow: var(--alone), var(--ombra);
  padding: 14px 14px 10px;
  overflow: hidden;
}
/* un alone che respira dietro al vetro */
.radiografia::before {
  content: ''; position: absolute; inset: -40% -10%;
  background: radial-gradient(closest-side, rgba(123,47,247,.35), transparent 70%);
  animation: respiro 7s ease-in-out infinite;
}
@keyframes respiro { 0%,100% { opacity: .5; transform: translateY(6%) scale(1); } 50% { opacity: .95; transform: translateY(-6%) scale(1.1); } }
.radiografia svg { position: relative; display: block; width: 100%; height: auto; }

.telaio { fill: rgba(7,5,14,.85); stroke: var(--linea-forte); stroke-width: 1.2; }
.pallino { fill: rgba(164,140,255,.35); }
.barra-finta { stroke: rgba(164,140,255,.18); stroke-width: 5; stroke-linecap: round; }
.blocco { fill: rgba(164,158,194,.17); }
.riquadro-finto { fill: rgba(164,158,194,.09); stroke: rgba(164,140,255,.16); }

/* il raggio che scende */
.raggio, .filo { animation: scansione 3.6s cubic-bezier(.5,0,.5,1) infinite; }
.filo { stroke: #C79BFF; stroke-width: 1.4; filter: drop-shadow(0 0 6px #A45CFF); }
@keyframes scansione {
  0%       { transform: translateY(8px);   opacity: 0; }
  8%       { opacity: 1; }
  92%      { opacity: 1; }
  100%     { transform: translateY(164px); opacity: 0; }
}

/* i punti che si accendono quando il raggio ci passa sopra */
.reperto {
  fill: none; stroke: var(--rosso); stroke-width: 2; opacity: 0;
  transform-origin: center; transform-box: fill-box;
}
.reperto.r1 { animation: accendi 3.6s ease-out infinite .55s; }
.reperto.r2 { animation: accendi 3.6s ease-out infinite .95s; stroke: var(--ambra); }
.reperto.r3 { animation: accendi 3.6s ease-out infinite 1.95s; }
.reperto.r4 { animation: accendi 3.6s ease-out infinite 2.35s; stroke: var(--ambra); }
@keyframes accendi {
  0%, 12%  { opacity: 0; transform: scale(.4); }
  22%      { opacity: 1; transform: scale(1.25); }
  30%      { transform: scale(1); }
  80%      { opacity: .85; }
  100%     { opacity: 0; }
}

.referto {
  position: relative; display: flex; align-items: center; gap: 8px;
  justify-content: center; margin-top: 10px;
  font: 700 10.5px/1 var(--mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--viola-chiaro);
}
.referto i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--verde);
  box-shadow: 0 0 10px var(--verde); animation: battito 1.4s ease-in-out infinite;
}
@keyframes battito { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

.benefici { list-style: none; padding: 0; margin: 0 0 34px; text-align: left; }
.benefici li {
  position: relative; padding: 16px 4px 16px 48px;
  border-bottom: 1px solid var(--linea);
  animation: entraDaSinistra .6s var(--molla) both;
}
.benefici li:last-child { border-bottom: none; }
.benefici li:nth-child(1) { animation-delay: .14s; }
.benefici li:nth-child(2) { animation-delay: .21s; }
.benefici li:nth-child(3) { animation-delay: .28s; }
.benefici li:nth-child(4) { animation-delay: .35s; }
.benefici li:nth-child(5) { animation-delay: .42s; }
.benefici li:nth-child(6) { animation-delay: .49s; }
@keyframes entraDaSinistra {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}
.benefici li::before {
  content: ''; position: absolute; left: 0; top: 15px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--verde-tenue);
  border: 1px solid rgba(47, 217, 138, .4);
}
.benefici li::after {
  content: ''; position: absolute; left: 9px; top: 24px;
  width: 10px; height: 5px;
  border-left: 2.2px solid var(--verde); border-bottom: 2.2px solid var(--verde);
  transform: rotate(-45deg); border-radius: 1px;
}
.benefici b {
  display: block; font: 700 17px/1.35 var(--corpo); color: var(--bianco);
  margin-bottom: 3px; letter-spacing: -.01em;
}
.benefici span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

.rassicura { margin-top: 18px; font-size: 13.5px; color: var(--debole); }

/* ============================================================
   DOMANDE
   ============================================================ */
.domanda { max-width: 540px; }
.domanda .etichetta {
  font: 700 11.5px/1 var(--corpo); letter-spacing: .14em;
  text-transform: uppercase; color: var(--viola-chiaro); margin-bottom: 16px;
}
.domanda h2 { margin-bottom: 10px; }
.domanda .aiuto { color: var(--muted); font-size: 15.5px; margin-bottom: 26px; }
.domanda .scelte, .domanda .consenso { text-align: left; }
.domanda .pillole { justify-content: center; }
#s-domande .azioni { justify-content: center; }

input[type=text], input[type=url], input[type=email], input[type=tel] {
  width: 100%; padding: 17px 20px; text-align: center;
  font: 500 19px/1.4 var(--corpo); color: var(--bianco);
  background: var(--superficie);
  border: 1.5px solid var(--linea-forte); border-radius: var(--r-s);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input::placeholder { color: var(--debole); font-weight: 400; }
input:focus {
  outline: none; border-color: var(--viola-chiaro);
  background: var(--superficie-2);
  box-shadow: 0 0 0 4px rgba(164, 92, 255, .18), 0 0 26px -6px rgba(164, 92, 255, .5);
}
input[aria-invalid=true] { border-color: var(--rosso); }
.errore-campo { color: var(--rosso); font-size: 14px; margin-top: 9px; display: none; font-weight: 600; }
.errore-campo.visibile { display: block; animation: scuoti .34s; }
@keyframes scuoti {
  10%, 90% { transform: translateX(-2px); }
  30%, 70% { transform: translateX(3px); }
  50%      { transform: translateX(-3px); }
}

/* Un elemento nascosto deve sparire davvero. Senza questa riga il
   pulsante "Avanti", che e' un flex, restava a schermo su tutte le
   domande a scelta singola: l'attributo hidden del browser vale meno
   di un display dichiarato in un foglio di stile. */
[hidden] { display: none !important; }

.scelte { display: grid; gap: 12px; }
.scelta {
  display: flex; align-items: center; gap: 15px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 20px 22px;
  background: var(--superficie);
  border: 1.5px solid var(--linea); border-radius: var(--r-s);
  font: 700 17px/1.3 var(--corpo); color: var(--bianco);
  transition: border-color .2s, box-shadow .2s, transform .16s, background .2s;
}
.scelta:hover {
  border-color: var(--viola-chiaro); background: var(--superficie-2);
  box-shadow: 0 0 30px -8px rgba(164, 92, 255, .55);
  transform: translateY(-2px);
}
.scelta:active { transform: translateY(0) scale(.99); }
.scelta .segno {
  width: 31px; height: 31px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blu), var(--viola));
  color: #fff; font: 700 13px/1 var(--mono);
}
.scelta small { display: block; font: 400 14px/1.45 var(--corpo); color: var(--muted); margin-top: 3px; }

/* ---------- Le quattro tappe, appiccicate alla barra ----------
   In piccolo, sotto il filo di avanzamento: si vedono con la coda
   dell'occhio e dicono a che punto si e', senza chiedere attenzione. */
.blocchi {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 59;
  display: flex; justify-content: center; gap: 18px;
  padding: 7px 12px 8px;
  background: linear-gradient(180deg, rgba(7,5,14,.94), rgba(7,5,14,0));
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.tappa {
  font: 700 9.5px/1 var(--corpo); letter-spacing: .13em;
  text-transform: uppercase; color: rgba(164,158,194,.42);
  display: flex; align-items: center; gap: 6px;
  transition: color .35s;
}
.tappa i {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(164,140,255,.22); transition: all .35s;
}
.tappa.fatta { color: rgba(164,158,194,.72); }
.tappa.fatta i { background: var(--viola-chiaro); opacity: .6; }
.tappa.ora { color: var(--viola-chiaro); }
.tappa.ora i {
  background: var(--viola-chiaro); transform: scale(1.5);
  box-shadow: 0 0 10px var(--viola-chiaro);
}
/* Con i blocchi in cima serve un po' d'aria sotto l'intestazione. */
body:has(.blocchi:not([hidden])) .testa { padding-top: 40px; }

/* La pacca sulla spalla quando si cambia blocco: appare in cima,
   dura tre secondi, non chiede niente a nessuno. */
.spinta {
  font: 700 9.5px/1 var(--corpo); letter-spacing: .1em; text-transform: uppercase;
  color: var(--verde); white-space: nowrap;
  padding: 4px 9px; border-radius: 20px;
  background: var(--verde-tenue); border: 1px solid rgba(47,217,138,.3);
  animation: spunta-su .4s var(--molla);
  transition: opacity .55s, transform .55s;
}
.spinta.via { opacity: 0; transform: translateY(-6px); }
@keyframes spunta-su {
  from { opacity: 0; transform: translateY(6px) scale(.9); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Risposta scelta ---------- */
.scelta.presa {
  border-color: var(--viola-chiaro);
  background: var(--superficie-2);
  box-shadow: 0 0 30px -10px rgba(164, 92, 255, .7);
}
.scelta.presa .segno { box-shadow: 0 0 14px -2px rgba(164, 92, 255, .9); }

/* ---------- Scelta multipla: la casella al posto del numero ---------- */
.scelte.multiple .scelta { padding: 17px 20px; font-size: 16.5px; }
.spunta {
  width: 25px; height: 25px; flex: none; border-radius: 8px;
  border: 1.5px solid var(--linea-forte); background: var(--nero-2);
  position: relative; transition: background .18s, border-color .18s;
}
.spunta::after {
  content: ''; position: absolute; left: 8px; top: 3.5px;
  width: 6px; height: 12px; border: solid #fff;
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(.4);
  opacity: 0; transition: opacity .16s, transform .16s var(--molla);
}
.scelte.multiple .presa .spunta {
  background: linear-gradient(140deg, var(--blu), var(--viola));
  border-color: transparent;
}
.scelte.multiple .presa .spunta::after { opacity: 1; transform: rotate(45deg) scale(1); }

.pillole { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pillola {
  padding: 9px 16px; border-radius: 20px; cursor: pointer;
  background: var(--superficie); border: 1px solid var(--linea);
  font: 500 14px/1 var(--corpo); color: var(--muted);
  transition: all .18s;
}
.pillola:hover {
  background: var(--viola-tenue); color: var(--bianco);
  border-color: var(--linea-forte);
}

/* ---------- Pulsanti ---------- */
.azioni { display: flex; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.bottone {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; padding: 17px 32px; border: none; border-radius: var(--r-s);
  background: linear-gradient(120deg, var(--blu) 0%, var(--viola) 100%);
  color: #fff; font: 700 16.5px/1 var(--corpo); letter-spacing: -.01em;
  box-shadow: var(--alone-blu);
  transition: transform .2s var(--molla), box-shadow .2s, filter .2s;
}
.bottone { text-decoration: none; }
.bottone::after { content: '→'; font-size: 17px; transition: transform .28s var(--molla); }
/* Un lampo che attraversa il pulsante quando ci passi sopra */
.bottone::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .7s var(--molla);
}
.bottone:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px -10px rgba(123, 47, 247, .85);
  filter: brightness(1.09);
}
.bottone:hover::before { transform: translateX(110%); }
.bottone:hover::after { transform: translateX(4px); }
.bottone:active { transform: translateY(0); }
.bottone[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }
.bottone.grande { font-size: 18px; padding: 20px 42px; }
.bottone.fantasma {
  background: transparent; color: var(--muted); padding: 17px 10px; box-shadow: none;
}
.bottone.fantasma::before, .bottone.fantasma::after { content: none; }
.bottone.fantasma:hover { color: var(--bianco); transform: none; box-shadow: none; filter: none; }

.suggerimento-tasto { font: 400 13px/1 var(--corpo); color: var(--debole); }
kbd {
  font: 500 12px/1 var(--mono); padding: 4px 7px;
  border: 1px solid var(--linea-forte); border-bottom-width: 2px;
  border-radius: 5px; background: var(--superficie); color: var(--muted);
}

.consenso { display: flex; gap: 13px; align-items: flex-start; margin-top: 22px; }
.consenso input { width: 21px; height: 21px; margin-top: 2px; flex: none; accent-color: var(--viola); }
.consenso label { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ============================================================
   LAVORAZIONE
   ============================================================ */
/* ============================================================
   LO SCANNER · la schermata del check-up
   Deve sembrare veloce. Due anelli che girano in senso opposto, la
   percentuale che sale, e sotto i dati veri man mano che arrivano.
   ============================================================ */
.scanner { text-align: center; margin-bottom: 8px; }
.scanner-anello { position: relative; width: 150px; height: 150px; margin: 6px auto 26px; }
.scanner-anello svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.orbita { fill: none; stroke: var(--linea); stroke-width: 3; }
.cometa {
  fill: none; stroke: var(--viola-chiaro); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 70 257; filter: drop-shadow(0 0 8px var(--viola-chiaro));
  animation: gira 1.5s linear infinite;
  transform-origin: 60px 60px;
}
.cometa.interna {
  stroke: var(--blu-chiaro); stroke-dasharray: 40 174;
  animation: gira 2.2s linear infinite reverse;
  filter: drop-shadow(0 0 8px var(--blu-chiaro));
}
.orbita.interna { stroke-width: 2; }
@keyframes gira { to { transform: rotate(360deg); } }
.scanner-perc {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 30px/1 var(--titolo); color: var(--bianco);
  letter-spacing: -.02em;
}
#s-lavoro h1 { margin-bottom: 10px; }
.attivita-viva {
  font: 500 13.5px/1.5 var(--mono); color: var(--viola-chiaro);
  min-height: 20px; margin: 0 0 4px;
}

.fasi { display: grid; gap: 2px; margin: 28px 0; text-align: left; }
.fase {
  display: flex; align-items: center; gap: 15px;
  padding: 15px 4px; font-size: 16.5px; color: var(--debole);
  border-bottom: 1px solid var(--linea); transition: color .3s;
}
.fase:last-child { border-bottom: none; }
.fase .stato { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.fase .cerchio {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--linea-forte); box-sizing: border-box; transition: all .3s;
}
.fase.corrente { color: var(--bianco); font-weight: 700; }
.fase.corrente .cerchio {
  border-color: var(--viola-chiaro); background: var(--viola-chiaro);
  box-shadow: 0 0 0 5px rgba(164, 92, 255, .2), 0 0 16px var(--viola-chiaro);
  animation: battito 1.5s ease-in-out infinite;
}
.fase.fatta { color: var(--testo); }
.fase.fatta .cerchio { border-color: var(--verde); background: var(--verde); box-shadow: 0 0 12px rgba(47,217,138,.6); }

.anticipo {
  background: var(--superficie); border: 1px solid var(--linea);
  border-radius: var(--r-s); padding: 17px 20px; margin: 12px 0;
  text-align: left; animation: sali .5s var(--molla) both;
}
.anticipo .titoletto {
  font: 700 11.5px/1 var(--corpo); letter-spacing: .12em;
  text-transform: uppercase; color: var(--viola-chiaro); margin-bottom: 8px;
}

/* ============================================================
   VERDETTO — l'anello si disegna
   ============================================================ */
.verdetto {
  display: flex; gap: clamp(20px, 5vw, 36px);
  align-items: center; flex-wrap: wrap; justify-content: center; text-align: center;
}
@media (min-width: 620px) { .verdetto { text-align: left; flex-wrap: nowrap; } }

.anello { position: relative; width: 138px; height: 138px; flex: none; }
.anello svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.anello circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.anello .binario { stroke: rgba(164, 140, 255, .13); }
.anello .arco {
  stroke: var(--viola-chiaro);
  stroke-dasharray: 352; stroke-dashoffset: 352;
  filter: drop-shadow(0 0 9px rgba(164, 92, 255, .8));
  transition: stroke-dashoffset 1.6s var(--molla), stroke .4s;
}
.anello.buono .arco { stroke: var(--verde); filter: drop-shadow(0 0 9px rgba(47, 217, 138, .8)); }
.anello.medio .arco { stroke: var(--ambra); filter: drop-shadow(0 0 9px rgba(255, 180, 61, .8)); }
.anello.scarso .arco { stroke: var(--rosso); filter: drop-shadow(0 0 9px rgba(255, 91, 91, .8)); }
.anello .dentro { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.anello .numero {
  font: 700 42px/1 var(--display); letter-spacing: -.045em;
  font-variant-numeric: tabular-nums; color: var(--bianco);
}
.anello .su { font: 600 11px/1 var(--mono); color: var(--debole); margin-top: 5px; }
.anello.buono .numero { color: var(--verde); }
.anello.medio .numero { color: var(--ambra); }
.anello.scarso .numero { color: var(--rosso); }
.anello.assente .numero { font-size: 21px; color: var(--muted); }
.verdetto .testo { flex: 1 1 260px; min-width: 0; }
.verdetto .testo p:last-child { margin-bottom: 0; }

/* ============================================================
   LE AZIONI
   ============================================================ */
.azione {
  display: grid; grid-template-columns: 40px 1fr; gap: 0 17px;
  padding: 22px 0; border-bottom: 1px solid var(--linea); text-align: left;
}
.azione:last-child { border-bottom: none; padding-bottom: 0; }
.azione:first-child { padding-top: 0; }
.azione .n {
  font: 700 15px/40px var(--mono); color: #fff; text-align: center;
  background: linear-gradient(140deg, var(--blu), var(--viola));
  border-radius: 11px; height: 40px;
  box-shadow: 0 6px 18px -6px rgba(123, 47, 247, .8);
}
.azione .corpo > p { margin-bottom: 10px; }
.azione .corpo > p:last-child { margin-bottom: 0; }
.azione .perche { color: var(--testo); }
.azione .come { color: var(--muted); font-size: 16px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.tag {
  font: 600 12px/1 var(--corpo); padding: 7px 12px; border-radius: 20px;
  background: var(--superficie); color: var(--muted); border: 1px solid var(--linea);
}
.tag.sole { background: var(--verde-tenue); color: var(--verde); border-color: rgba(47,217,138,.3); }
.tag.aiuto { background: var(--ambra-tenue); color: var(--ambra); border-color: rgba(255,180,61,.3); }

/* ============================================================
   NUMERI TRADOTTI
   ============================================================ */
.tradotto {
  display: grid; gap: 5px; padding: 20px 0;
  border-bottom: 1px solid var(--linea); text-align: left;
}
.tradotto:last-child { border-bottom: none; padding-bottom: 0; }
.tradotto:first-child { padding-top: 0; }
.tradotto .quanto {
  font: 700 26px/1.12 var(--display); letter-spacing: -.032em;
  font-variant-numeric: tabular-nums; color: var(--bianco);
}
.tradotto .quanto.male { color: var(--rosso); }
.tradotto .quanto.cosi { color: var(--ambra); }
.tradotto .quanto.bene { color: var(--verde); }
.tradotto .vuoldire { font-size: 16px; color: var(--testo); line-height: 1.55; }
.tradotto .nota { font-size: 14px; color: var(--muted); }

.semaforo { display: flex; gap: 5px; margin-bottom: 4px; }
.semaforo i {
  width: 32px; height: 6px; border-radius: 3px;
  background: rgba(164, 140, 255, .14);
  transform-origin: left; animation: cresci .55s var(--molla) both;
}
.semaforo i:nth-child(2) { animation-delay: .08s; }
.semaforo i:nth-child(3) { animation-delay: .16s; }
@keyframes cresci { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.semaforo.male i:nth-child(1) { background: var(--rosso); box-shadow: 0 0 10px rgba(255,91,91,.7); }
.semaforo.cosi i:nth-child(-n+2) { background: var(--ambra); box-shadow: 0 0 10px rgba(255,180,61,.6); }
.semaforo.bene i { background: var(--verde); box-shadow: 0 0 10px rgba(47,217,138,.6); }

.verifica {
  display: inline-flex; align-items: center; gap: 5px;
  font: 600 13.5px/1 var(--corpo); color: var(--viola-chiaro);
  text-decoration: none; margin-top: 5px;
}
.verifica:hover { text-decoration: underline; }
.verifica::after { content: '↗'; font-size: 12px; }

/* ============================================================
   CONFRONTO
   ============================================================ */
.scorri { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--linea); }
th {
  font: 700 11.5px/1 var(--corpo); letter-spacing: .09em;
  text-transform: uppercase; color: var(--debole); white-space: nowrap;
}
td { color: var(--testo); }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
.avanti { color: var(--verde); font-weight: 700; }
.indietro { color: var(--rosso); font-weight: 700; }

/* ---------- Elenco completo ---------- */
details.tutto { border-top: 1px solid var(--linea); }
details.tutto > summary {
  cursor: pointer; padding: 18px 0; list-style: none;
  font: 700 16.5px/1 var(--display); color: var(--bianco);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
details.tutto > summary::-webkit-details-marker { display: none; }
details.tutto > summary::after {
  content: '+'; font: 400 24px/1 var(--mono); color: var(--muted);
  transition: transform .28s var(--molla);
}
details.tutto[open] > summary::after { transform: rotate(45deg); }
.voce { padding: 18px 0; border-top: 1px solid var(--linea); text-align: left; }
.voce h4 { font: 700 16.5px/1.35 var(--display); margin: 0 0 5px; color: var(--bianco); }
.voce p { font-size: 15px; margin: 0 0 6px; color: var(--muted); }
.voce .rimedio { color: var(--testo); }

.spunte { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; }
.spunte li {
  padding-left: 27px; position: relative; font-size: 15px;
  color: var(--testo); margin-bottom: 9px;
}
.spunte li::before {
  content: ''; position: absolute; left: 3px; top: 7px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--verde); border-bottom: 2px solid var(--verde);
  transform: rotate(-45deg);
}

.avviso {
  background: var(--ambra-tenue); border-left: 3px solid var(--ambra);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  padding: 16px 19px; font-size: 15px; margin-bottom: 16px; text-align: left;
}
.avviso strong { display: block; margin-bottom: 4px; color: var(--bianco); }

/* ============================================================
   CHIUSURA — le due strade
   ============================================================ */
.chiusura {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #241452 0%, #16102E 48%, #0B0818 100%);
  border: 1px solid var(--linea-forte);
  border-radius: var(--r); padding: clamp(28px, 5.5vw, 46px);
  margin-top: 34px; text-align: center;
}
.chiusura::before {
  content: ''; position: absolute; width: 340px; height: 340px;
  right: -90px; top: -130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(164, 92, 255, .62), transparent 66%);
  filter: blur(52px); pointer-events: none;
}
.chiusura > * { position: relative; }
.chiusura h2 { color: #fff; }
.chiusura > p { color: rgba(232, 228, 245, .8); max-width: 46ch; margin-inline: auto; }

.due-strade {
  display: grid; gap: 12px; margin: 26px 0 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .due-strade { grid-template-columns: 1fr 1fr; } }
.strada {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--linea-forte);
  border-radius: var(--r-s); padding: 20px 20px 22px;
  text-align: left; transition: background .2s, transform .2s var(--molla);
}
.strada:hover { background: rgba(255, 255, 255, .085); transform: translateY(-3px); }
.strada .tetto {
  font: 700 10.5px/1 var(--corpo); letter-spacing: .13em;
  text-transform: uppercase; color: var(--viola-chiaro); margin-bottom: 10px;
}
.strada b { display: block; font: 700 19px/1.25 var(--display); color: #fff; margin-bottom: 7px; }
.strada span { display: block; font-size: 14.5px; line-height: 1.5; color: rgba(232, 228, 245, .72); }

.chiusura .scelta-tua { color: rgba(232, 228, 245, .68); font-size: 15px; margin-bottom: 20px; }
.chiusura .bottone {
  background: #fff; color: #16102E; box-shadow: 0 12px 34px -10px rgba(0, 0, 0, .8);
}
.chiusura .bottone:hover { background: #fff; color: var(--blu); filter: none; }
.chiusura .urgenza {
  margin: 22px 0 0; font-size: 14.5px; color: rgba(232, 228, 245, .6);
}
.chiusura .urgenza a { color: #fff; font-weight: 600; }

footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 36px var(--passo) 64px;
  font-size: 13.5px; color: var(--debole);
  border-top: 1px solid var(--linea); text-align: center;
}
footer a { color: var(--muted); }
footer strong { color: var(--testo); }

:focus-visible { outline: 2.5px solid var(--viola-chiaro); outline-offset: 3px; border-radius: 6px; }
.solo-lettori {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============================================================
   TELEFONO
   ============================================================ */
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  /* Su telefono i nomi dei blocchi non ci stanno: restano i trattini,
     che dicono comunque a che punto si e'. */
  .passo-conta b { display: none; }
  .blocchi { gap: 14px; }
  .tappa:not(.ora) span { display: none; }
  .scelta { padding: 16px 18px; font-size: 16px; gap: 12px; }
  .benefici li { padding: 14px 0 14px 42px; }
  .benefici li::before { width: 26px; height: 26px; top: 13px; }
  .benefici li::after { left: 8px; top: 22px; }
  .benefici b { font-size: 16.5px; }
  .bottone.grande { width: 100%; }
  .azioni { flex-direction: column; align-items: stretch; }
  .suggerimento-tasto { display: none; }
  .tradotto .quanto { font-size: 23px; }
  .anello { width: 120px; height: 120px; }
  .anello .numero { font-size: 36px; }

  table, thead, tbody, tr, th, td { display: block; }
  table { min-width: 0; }
  thead { display: none; }
  tbody tr {
    border: 1px solid var(--linea); border-radius: var(--r-s);
    padding: 14px 16px; margin-bottom: 10px; background: var(--superficie);
  }
  tbody td { border: none; padding: 3px 0; }
  tbody td:first-child { font-weight: 700; color: var(--bianco); margin-bottom: 7px; }
  tbody td:nth-child(2)::before { content: 'Tu: '; color: var(--debole); font-weight: 400; }
  tbody td:nth-child(3)::before { content: 'Loro: '; color: var(--debole); font-weight: 400; }
  tbody td:last-child { margin-top: 5px; }
  .scorri { overflow-x: visible; }
}

/* ---------- Il report interno (?completo=1) ----------
   Non lo vede il cliente: lo apriamo noi durante la call. Ha bisogno
   di poco vestito, ma di questo poco ha bisogno davvero. */
.striscia {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12.5px/1.35 var(--corpo); letter-spacing: .04em;
  color: var(--bianco); background: var(--viola-tenue);
  border: 1px solid var(--linea-forte);
  padding: 11px 20px; border-radius: 24px; margin-bottom: 26px;
}
.striscia::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--viola-chiaro); box-shadow: 0 0 12px var(--viola-chiaro);
  animation: battito 2s ease-in-out infinite;
}
.etichetta-doc {
  font: 700 10.5px/1 var(--mono); letter-spacing: .17em;
  text-transform: uppercase; color: var(--viola-chiaro); margin-bottom: 10px;
}

/* ============================================================
   LA PAGINA CHE PORTA ALLA CALL
   Tre cose e basta: e' pronta, un file da solo non serve, vieni in
   call. Niente punteggi, niente problemi, niente conti: la pagina ha
   un lavoro solo, e piu' roba le si mette intorno meno lo fa.
   ============================================================ */
#s-report { max-width: 560px; margin: 0 auto; }

/* Le righe entrano una dopo l'altra appena la pagina compare, con un
   ritardo crescente. Non legate allo scorrimento: un osservatore che
   non scatta lascerebbe mezza pagina invisibile. */
@keyframes entra-riga {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: none; }
}
#s-report .sv { animation: entra-riga .75s var(--molla) both; }
#s-report .sv:nth-child(1) { animation-delay: .05s; }
#s-report .sv:nth-child(2) { animation-delay: .17s; }
#s-report .sv:nth-child(3) { animation-delay: .30s; }
#s-report .sv:nth-child(4) { animation-delay: .43s; }

/* ---------- 1. e' pronta ---------- */
.fatto {
  display: inline-flex; align-items: center; gap: 9px;
  font: 700 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--verde); margin-bottom: 22px;
}
.fatto .spia {
  width: 7px; height: 7px; border-radius: 50%; background: var(--verde);
  box-shadow: 0 0 10px var(--verde); animation: battito 1.8s ease-in-out infinite;
}

.titolo-esito {
  font: 700 clamp(34px, 9vw, 52px)/1.05 var(--display);
  letter-spacing: -.042em; color: var(--bianco);
  margin: 0 0 clamp(30px, 7vw, 44px); text-wrap: balance;
}
.titolo-esito em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blu-chiaro), var(--viola-chiaro) 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--viola-chiaro);
}

/* ---------- 2. un PDF da solo non basta ---------- */
#s-report h2 {
  font: 700 clamp(24px, 6.2vw, 33px)/1.16 var(--display);
  letter-spacing: -.03em; color: var(--bianco); margin: 0 0 16px;
  text-wrap: balance;
}
.blocco { margin-bottom: clamp(34px, 8vw, 50px); }
.blocco p { margin: 0; color: var(--muted); }
.blocco b { color: var(--testo); }

/* Le tre cose che il file non dice: un filo rosso a sinistra, niente
   riquadro. Un elenco puntato qui sembrerebbe un vantaggio. */
.niente {
  list-style: none; padding: 0; margin: 20px 0 0;
  border-left: 2px solid rgba(255, 91, 91, .45);
}
.niente li { padding: 9px 0 9px 18px; color: var(--muted); font-size: 16.5px; }
.niente li b { color: var(--bianco); font-weight: 700; }

/* ---------- 3. la call ---------- */
.call { text-align: center; }
.call h2 { margin-bottom: 14px; }
.call > p { color: var(--muted); margin: 0 auto 8px; max-width: 34ch; }
.call > p b { color: var(--testo); }

.promessa {
  display: block; margin: 22px auto 26px; max-width: 22ch;
  font: 700 clamp(21px, 5.4vw, 27px)/1.25 var(--display);
  letter-spacing: -.025em; color: var(--bianco);
}
.promessa em {
  font-style: normal;
  background: linear-gradient(100deg, var(--verde), #7BE8B4);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--verde);
}

.dentro {
  list-style: none; padding: 0; margin: 0 auto 28px; display: grid; gap: 12px;
  text-align: left; max-width: 400px;
}
.dentro li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px; line-height: 1.5;
}
.dentro li::before {
  content: ''; width: 22px; height: 22px; flex: none; border-radius: 50%; margin-top: 1px;
  background: var(--verde-tenue); border: 1px solid rgba(47,217,138,.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232FD98A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.dentro li b { color: var(--bianco); }

.posti {
  display: flex; align-items: baseline; gap: 10px; justify-content: center;
  max-width: 40ch; margin: 0 auto 22px;
  font-size: 15px; color: var(--ambra);
}
.posti .lampada {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--ambra); box-shadow: 0 0 12px var(--ambra);
  animation: battito 1.7s ease-in-out infinite;
}
.posti b { color: #fff; }

#s-report .bottone { width: 100%; max-width: 420px; margin: 0 auto; }
.sotto-bottone { font-size: 13.5px; color: var(--debole); margin: 14px 0 0; }

/* ============================================================
   LA BANDA DEL CONSENSO
   Piccola, in basso, e non copre il pulsante: una banda che nasconde
   la cosa da cliccare fa perdere piu' gente di quanta ne tracci.
   ============================================================ */
.banda-cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200;
  max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px;
  background: rgba(18, 15, 34, .97);
  border: 1px solid var(--linea-forte); border-radius: var(--r-s);
  box-shadow: 0 18px 46px -14px rgba(0, 0, 0, .9);
  backdrop-filter: blur(10px);
  transform: translateY(140%); opacity: 0;
  transition: transform .45s var(--molla), opacity .35s;
}
.banda-cookie.dentro { transform: none; opacity: 1; }
.banda-cookie.esce { transform: translateY(140%); opacity: 0; }
.banda-cookie p {
  flex: 1 1 260px; margin: 0;
  font-size: 13.5px; line-height: 1.5; color: var(--muted);
}
.banda-cookie a { color: var(--viola-chiaro); }
.banda-tasti { display: flex; gap: 9px; flex: 0 0 auto; }
.banda-cookie button {
  cursor: pointer; white-space: nowrap;
  padding: 11px 18px; border-radius: 9px;
  font: 700 14px/1 var(--corpo);
  transition: filter .2s, border-color .2s;
}
.banda-cookie .rifiuta {
  background: none; border: 1px solid var(--linea-forte); color: var(--muted);
}
.banda-cookie .rifiuta:hover { border-color: var(--muted); color: var(--testo); }
.banda-cookie .accetta {
  background: linear-gradient(120deg, var(--blu), var(--viola));
  border: none; color: #fff;
}
.banda-cookie .accetta:hover { filter: brightness(1.12); }

@media (max-width: 520px) {
  .banda-cookie { gap: 12px; padding: 14px 15px; }
  .banda-tasti { width: 100%; }
  .banda-cookie button { flex: 1; }
}
