/* stile.css · Canovaccio vestito Ebit Nordest (10/11/2026). La direzione è in DIREZIONE.md.
   Palette dalla cover e dal logo Ebit: blu della fascia #044C94, blu elettrico del logo #0041FF, arancio del punto
   #FFA600, grigio di NORDEST #4D4D4D, inchiostro della cover #17365D.
   Testi: inchiostro sui fondi chiari e sull'arancio (12,2:1 e 6,2:1), bianco sul blu (8,5:1).
   L'arancio sul bianco è solo forma, mai testo (2,0:1): per il testo c'è l'arancio scuro #A65F00 (4,9:1).
   Il palco è 1920x1080 logici e si guarda da uno schermo condiviso: i testi principali da 54 px in su, il resto
   non scende sotto i 26, che a 1366 di larghezza sono 18 px veri. */
@font-face { font-family: 'Poppins'; src: url('font/poppins-500.woff2') format('woff2'); font-weight: 500; font-display: block; }
@font-face { font-family: 'Poppins'; src: url('font/poppins-600.woff2') format('woff2'); font-weight: 600; font-display: block; }
@font-face { font-family: 'Poppins'; src: url('font/poppins-700.woff2') format('woff2'); font-weight: 700; font-display: block; }
@font-face { font-family: 'Poppins'; src: url('font/poppins-800.woff2') format('woff2'); font-weight: 800; font-display: block; }
:root {
  --blu: #044C94; --blu-2: #033B73; --elettrico: #0041FF; --inchiostro: #17365D; --arancio: #FFA600; --arancio-2: #A65F00; --chiaro: #8FB0E6;
  --nebbia: #EEF2FB; --grigio: #E8E8E8; --grigio-logo: #4D4D4D; --bianco: #FFFFFF; --testo: #3A4A68; --linea: #C9D3EA;
  --morbido: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------- il palco */
.cornice-palco { position: relative; overflow: hidden; }
.palco { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; background: var(--bianco);
  font-family: 'Poppins', system-ui, sans-serif; color: var(--inchiostro); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.palco.mini { pointer-events: none; }
.strato-forme, .strato-slide { position: absolute; inset: 0; }
.strato-forme { z-index: 1; pointer-events: none; }
.strato-slide { z-index: 2; }
.slide { position: absolute; inset: 0; opacity: 0; }
.palco.vivo .slide { transition: opacity 420ms var(--morbido) 140ms, transform 520ms var(--morbido) 140ms; transform: translateY(18px); }
.palco.vivo .slide.dentro { opacity: 1; transform: none; }
.palco.vivo .slide.fuori { opacity: 0; transform: none; transition: opacity 200ms ease-in; pointer-events: none; }
.slide.dentro { opacity: 1; }
.palco .slide.entrata-ferma { transition: none !important; transform: none; }
.forme-ferme { position: absolute; inset: 0; z-index: 0; }
.slide > *:not(.forme-ferme) { position: absolute; z-index: 1; margin: 0; }
.slide button { font-family: inherit; }

/* i passi a clic */
.slide [data-p] { opacity: 0; transform: translateY(26px); transition: opacity 460ms var(--morbido), transform 560ms var(--morbido); }
.slide [data-p][data-su] { opacity: 1; transform: none; }
.slide [data-solo], .slide [data-da], .slide [data-fino] { opacity: 0; pointer-events: none; transition: opacity 380ms var(--morbido); }
.slide [data-solo][data-su], .slide [data-da][data-su], .slide [data-fino][data-su] { opacity: 1; pointer-events: auto; }
.palco.mini .slide [data-p], .palco.mini .slide [data-solo], .palco.mini .slide [data-da], .palco.mini .slide [data-fino] { transition: none; }

/* ---------------------------------------------------------------- le forme: i tre puntini e il pannello blu */
.forma { position: absolute; left: 0; top: 0; transform-origin: 0 0; backface-visibility: hidden; }
.f-dentro { position: absolute; inset: 0; display: block; transform-origin: 50% 50%; will-change: transform; }
.f-pannello .f-dentro, .f-barra .f-dentro { background: currentColor; }
.f-pillola .f-dentro { background: currentColor; border-radius: 999px; }
.f-cerchio .f-dentro { background: currentColor; border-radius: 50%; }
.f-anello svg { width: 100%; height: 100%; display: block; overflow: visible; }
.c-blu { color: var(--blu); } .c-arancio { color: var(--arancio); } .c-chiaro { color: var(--chiaro); }
.c-elettrico { color: var(--elettrico); } .c-grigio { color: var(--grigio); } .c-bianco { color: var(--bianco); } .c-inchiostro { color: var(--inchiostro); } .c-nebbia { color: var(--nebbia); }

/* ---------------------------------------------------------------- pezzi comuni */
.slide em { font-style: normal; background: linear-gradient(transparent 60%, rgba(255, 166, 0, 0.8) 60%); padding: 0 0.06em; margin: 0 -0.06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.m-copertina em, .m-grazie em, .col-titolo em, .lg-testa em, .pb-scheda em { background: var(--arancio); color: var(--inchiostro); padding: 0 0.14em; margin: 0; border-radius: 0.08em; }
.occhiello { font-weight: 800; font-size: 40px; line-height: 1.1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blu); margin: 0 0 28px; display: flex; align-items: center; gap: 18px; }
.occhiello::before { content: ''; width: 26px; height: 26px; background: var(--arancio); border-radius: 50%; flex: 0 0 auto; }
.riga { display: block; width: 160px; height: 12px; border-radius: 6px; background: var(--arancio); margin: 34px 0 30px; }
.num-pagina { left: 1866px; top: 0; width: 54px; height: 117px; display: grid; place-items: center; font-weight: 800; font-size: 26px; color: var(--inchiostro); }
.testata { left: 120px; top: 92px; width: 1680px; height: 150px; font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; color: var(--inchiostro); display: flex; align-items: center; overflow: hidden; }
.qr-carta { background: var(--bianco); line-height: 0; padding: 18px; border-radius: 22px; }
.qr-carta svg { display: block; }

/* ---------------------------------------------------------------- copertina (la cover Ebit in 16:9) */
.cop-logo { left: 120px; top: 62px; width: 560px; height: auto; }
.cop-materiale { left: 760px; top: 70px; width: 1040px; height: 128px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; text-align: right; }
.cop-materiale b { font-weight: 800; font-size: 40px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--inchiostro); }
.cop-materiale span { font-weight: 600; font-size: 34px; color: var(--testo); }
.m-copertina .cop-testi { left: 120px; top: 376px; width: 1300px; height: 360px; display: flex; flex-direction: column; justify-content: center; color: var(--bianco); }
.cop-titolo { font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; margin: 0; max-height: 210px; overflow: hidden; }
.cop-sotto { font-weight: 500; line-height: 1.22; margin: 18px 0 0; max-height: 150px; overflow: hidden; }
.cop-qr { left: 1470px; top: 290px; width: 330px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--bianco); }
.cop-qr .qr-carta { padding: 14px; border-radius: 18px; }
.cop-qr p { margin: 0; font-weight: 700; font-size: 30px; line-height: 1.15; text-align: center; }
.cop-dati { left: 120px; top: 796px; width: 1680px; display: flex; align-items: baseline; justify-content: space-between; gap: 40px; }
.cop-dati span { font-weight: 700; font-size: 38px; color: var(--inchiostro); }
.cop-dati b { font-weight: 800; font-size: 38px; color: var(--inchiostro); }
.cop-soci { left: 460px; top: 884px; width: 1000px; height: auto; }

/* ---------------------------------------------------------------- divisore */
.div-numero { left: 116px; top: 300px; width: 520px; height: 340px; display: flex; align-items: flex-end; font-weight: 800; font-size: 300px; line-height: 0.9; letter-spacing: -0.05em; color: var(--bianco); }
.div-blocco { left: 850px; top: 280px; width: 950px; height: 520px; display: flex; flex-direction: column; justify-content: center; }
.div-titolo { font-weight: 800; line-height: 1.0; letter-spacing: -0.03em; color: var(--inchiostro); margin: 0; max-height: 330px; overflow: hidden; }
.div-sotto { font-weight: 600; line-height: 1.18; color: var(--blu); margin: 0; max-height: 140px; overflow: hidden; }
.m-divisore .div-blocco:not(:has(.div-sotto)) .riga { margin-bottom: 0; }
.div-minuti { left: 850px; top: 860px; display: flex; align-items: baseline; gap: 14px; color: var(--inchiostro); border-bottom: 8px solid var(--arancio); padding: 0 4px 6px; }
.div-minuti b { font-weight: 800; font-size: 60px; line-height: 1.1; letter-spacing: -0.03em; }
.div-minuti span { font-weight: 700; font-size: 40px; }

/* ---------------------------------------------------------------- titolone */
.tt-blocco { left: 120px; top: 150px; width: 1210px; height: 780px; display: flex; flex-direction: column; justify-content: center; }
.tt-titolo { font-weight: 800; line-height: 1.02; letter-spacing: -0.032em; color: var(--inchiostro); margin: 0; max-height: 560px; overflow: hidden; }
.tt-sotto { font-weight: 600; line-height: 1.22; color: var(--testo); margin: 40px 0 0; max-height: 230px; overflow: hidden; }

/* ---------------------------------------------------------------- elenco */
.col-titolo { left: 96px; top: 260px; width: 470px; height: 720px; display: flex; flex-direction: column; justify-content: center; }
.el-titolo { font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; color: var(--bianco); margin: 0; max-height: 620px; overflow: hidden; }
.el-voci { left: 750px; top: 110px; width: 1050px; height: 860px; list-style: none; padding: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.62em; overflow: hidden; }
.el-voci li { display: flex; align-items: flex-start; gap: 0.55em; font-weight: 700; line-height: 1.16; color: var(--inchiostro); padding-left: 10px; }
.palco.vivo .el-voci li[data-su] { transition: opacity 460ms var(--morbido), transform 260ms var(--morbido); }
.palco.vivo .el-voci li:not([data-p]) { transition: transform 260ms var(--morbido); }
.palco.vivo .el-voci li[data-su]:hover, .palco.vivo .el-voci li:not([data-p]):hover { transform: translateX(16px); }
.el-num { flex: 0 0 auto; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--arancio); color: var(--inchiostro); font-weight: 800; font-size: 0.82em; display: grid; place-items: center; margin-top: -0.05em; }
.el-segno { flex: 0 0 auto; width: 0.36em; height: 0.36em; background: var(--arancio); border-radius: 50%; margin-top: 0.4em; }

/* ---------------------------------------------------------------- carte */
.ca-fila { left: 120px; top: 262px; width: 1680px; height: 716px; display: grid; grid-template-rows: 1fr auto auto; column-gap: 36px; row-gap: 0; padding-top: 20px; box-sizing: border-box; }
.ca-fila.n2 { grid-template-columns: repeat(2, 1fr); } .ca-fila.n3 { grid-template-columns: repeat(3, 1fr); } .ca-fila.n4 { grid-template-columns: repeat(4, 1fr); }
.carta { background: var(--nebbia); border-radius: 32px; padding: 44px 42px 44px; display: grid; grid-template-rows: subgrid; grid-row: 1 / span 3; row-gap: 20px; align-content: start; min-width: 0; min-height: 0; overflow: hidden; color: var(--inchiostro); }
.ca-num { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; background: var(--arancio); color: var(--inchiostro); font-weight: 800; font-size: 54px; display: grid; place-items: center; }
.ca-num.vuoto { width: 44px; height: 44px; }
.carta h3 { margin: 0; align-self: end; font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; max-height: 230px; overflow: hidden; flex: 0 0 auto; }
.carta p { margin: 0; font-weight: 500; line-height: 1.22; color: var(--testo); flex: 0 1 auto; max-height: 270px; overflow: hidden; }
.ca-fila.n4 { column-gap: 28px; } .ca-fila.n4 .carta { padding: 38px 30px 38px; } .ca-fila.n4 .carta p { max-height: 392px; } .ca-fila.n4 .carta h3 { max-height: 130px; }
.palco.vivo .carta[data-su], .palco.vivo .carta:not([data-p]) { transition: opacity 460ms var(--morbido), transform 320ms var(--morbido), background-color 260ms ease, color 260ms ease, box-shadow 320ms ease; }
.palco.vivo .carta:hover { transform: translateY(-18px); background: var(--blu); color: var(--bianco); box-shadow: 0 30px 60px rgba(23, 54, 93, 0.28); }
.palco.vivo .carta:hover p { color: var(--bianco); }

/* ---------------------------------------------------------------- citazione */
.cit-virgolette { left: 150px; top: 437px; width: 201px; height: 201px; pointer-events: none; }
.cit-testo { left: 620px; top: 120px; width: 1180px; height: 640px; font-weight: 700; line-height: 1.14; letter-spacing: -0.02em; color: var(--inchiostro); display: flex; align-items: center; overflow: hidden; }
.cit-fonte { left: 620px; top: 800px; width: 1180px; display: flex; flex-direction: column; gap: 6px; }
.cit-fonte b { font-weight: 800; font-size: 52px; color: var(--inchiostro); display: flex; align-items: center; gap: 22px; }
.cit-fonte b::before { content: ''; width: 26px; height: 26px; background: var(--arancio); border-radius: 50%; flex: 0 0 auto; }
.cit-fonte span { font-weight: 600; font-size: 40px; color: var(--blu); padding-left: 56px; }

/* ---------------------------------------------------------------- legge */
.lg-testa { left: 120px; top: 50px; width: 1400px; height: 250px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--bianco); }
.lg-norma { font-weight: 700; font-size: 44px; margin: 0 0 6px; }
.lg-articolo { font-weight: 800; line-height: 1; letter-spacing: -0.04em; white-space: nowrap; margin: 0; width: 1400px; overflow: hidden; padding-bottom: 0.08em; }
.lg-corpo { left: 120px; top: 372px; width: 1680px; height: 584px; display: flex; flex-direction: column; }
.lg-rubrica { flex: 0 0 auto; margin: 0 0 22px; font-weight: 800; font-size: 34px; line-height: 1.15; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blu-2); }
.lg-testo { flex: 1 1 0; min-height: 0; font-weight: 500; line-height: 1.32; color: var(--inchiostro); overflow: hidden; }
.lg-testo mark { background: transparent; color: inherit; font-weight: 700; padding: 0 0.12em; margin: 0 -0.12em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-color 500ms var(--morbido); }
.slide.m-legge[data-k="1"] .lg-testo mark { background: var(--arancio); }
.lg-fonte { left: 120px; top: 972px; width: 1680px; font-weight: 600; font-size: 40px; color: var(--testo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- confronto */
.cf-col { top: 270px; width: 960px; height: 796px; box-sizing: border-box; padding: 54px 90px 56px 120px; display: flex; flex-direction: column; }
.cf-senza { left: 0; } .cf-con { left: 960px; padding-left: 100px; }
.cf-col h3 { font-weight: 800; font-size: 62px; line-height: 1.05; color: var(--inchiostro); margin: 0 0 38px; letter-spacing: -0.02em; }
.cf-col ul { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 0.7em; overflow: hidden; }
.cf-col li { display: flex; gap: 0.5em; align-items: flex-start; font-weight: 700; line-height: 1.16; color: var(--inchiostro); }
.cf-col li i { flex: 0 0 auto; width: 0.34em; height: 0.34em; margin-top: 0.42em; background: #7A859E; }
.cf-senza li span { color: var(--testo); font-weight: 600; }
.cf-con li i { background: none; border: 0.1em solid var(--inchiostro); border-radius: 50%; width: 0.3em; height: 0.3em; margin-top: 0.34em; }
.cf-col.testo h3 { margin-bottom: 28px; }
.cf-foglio { flex: 1; min-height: 0; background: var(--bianco); border-radius: 22px; box-shadow: 0 18px 40px rgba(23, 54, 93, 0.14); padding: 42px 46px; box-sizing: border-box; display: flex; overflow: hidden; }
.cf-foglio p { margin: 0; flex: 1; font-weight: 500; line-height: 1.32; color: var(--testo); overflow: hidden; }
.cf-con .cf-foglio p { font-weight: 600; color: var(--inchiostro); }

/* ---------------------------------------------------------------- sondaggio */
.sg-raccolta, .sg-risultati { inset: 0; }
.sg-raccolta > *, .sg-risultati > * { position: absolute; margin: 0; }
.sg-domanda-blocco { left: 120px; top: 240px; width: 1030px; height: 560px; display: flex; flex-direction: column; justify-content: center; }
.sg-domanda { font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; margin: 0; max-height: 430px; overflow: hidden; }
.sg-sotto { font-weight: 600; line-height: 1.2; color: var(--testo); margin: 30px 0 0; max-height: 120px; overflow: hidden; }
.sg-conto { left: 120px; top: 850px; display: flex; align-items: baseline; gap: 20px; color: var(--blu); font-weight: 700; font-size: 48px; }
.sg-conto b { font-weight: 800; font-size: 120px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--inchiostro); }
.sg-conto.piccolo { left: auto; right: 120px; top: 966px; font-size: 40px; gap: 12px; }
.sg-conto.piccolo b { font-size: 56px; }
.sg-qr { left: 1240px; top: 0; width: 680px; height: 1080px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; color: var(--bianco); }
.sg-qr p { margin: 0; font-weight: 700; font-size: 42px; line-height: 1.16; text-align: center; max-width: 520px; text-wrap: balance; }
.sg-tela { left: 120px; top: 250px; width: 1680px; height: 690px; }
.sg-vuoto { margin: 0; height: 100%; display: grid; place-items: center; font-weight: 600; font-size: 48px; color: #5A6785; }
.nuvola { width: 100%; height: 100%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; align-items: baseline; gap: 4px 46px; overflow: hidden; }
.nuvola span { font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; position: relative; white-space: nowrap; transition: transform 240ms var(--morbido); }
.nuvola .c0 { color: var(--blu); } .nuvola .c1 { color: var(--inchiostro); } .nuvola .c2 { color: var(--arancio-2); }
.palco.vivo .nuvola span:hover { transform: scale(1.12); }
.palco.vivo .nuvola span:hover::after, .palco.vivo .isto-col:hover::after { content: attr(data-n); position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 6px); background: var(--inchiostro); color: var(--bianco); font-size: 34px; font-weight: 800; line-height: 1; padding: 10px 18px; border-radius: 999px; letter-spacing: 0; }
.isto { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.isto-colonne { position: relative; height: 400px; margin-top: 70px; display: grid; grid-template-columns: repeat(11, 1fr); gap: 18px; align-items: end; border-bottom: 6px solid var(--inchiostro); }
.isto-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.isto-col i { display: block; width: 100%; min-height: 6px; background: var(--blu); border-radius: 16px 16px 0 0; transition: height 600ms var(--morbido), background-color 200ms ease; }
.palco.vivo .isto-col:hover i { background: var(--arancio); }
.isto-col b { position: absolute; left: 0; right: 0; top: calc(100% + 18px); text-align: center; font-weight: 800; font-size: 44px; color: var(--inchiostro); }
.isto-media { position: absolute; top: -34px; bottom: 0; width: 0; border-left: 7px dashed var(--inchiostro); pointer-events: none; }
.isto-media strong { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); white-space: nowrap; background: var(--arancio); color: var(--inchiostro); font-weight: 800; font-size: 40px; padding: 8px 22px; border-radius: 999px; margin: 0; }
.isto-etichette { display: flex; justify-content: space-between; margin-top: 96px; font-weight: 700; font-size: 44px; color: var(--blu); }
.barre { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.barra-riga { display: grid; grid-template-columns: 560px 1fr; gap: 40px; align-items: center; }
.barra-nome { font-weight: 700; font-size: 48px; line-height: 1.1; color: var(--inchiostro); text-align: right; }
.barra-piste { display: flex; flex-direction: column; gap: 8px; }
.pista { position: relative; height: 68px; background: var(--nebbia); border-radius: 18px; overflow: hidden; }
.pista i { display: block; height: 100%; background: var(--blu); border-radius: 18px; transition: width 700ms var(--morbido); }
.pista b { position: absolute; right: 22px; top: 0; height: 100%; display: flex; align-items: center; font-weight: 800; font-size: 44px; color: var(--inchiostro); }
.barre.doppie .pista { height: 46px; } .barre.doppie .pista b { font-size: 36px; }
.pista.mod i { background: var(--arancio); }
.barre-legenda { margin: 0; display: flex; justify-content: flex-end; gap: 40px; font-weight: 800; font-size: 40px; }
.barre-legenda span { display: flex; align-items: center; gap: 14px; }
.barre-legenda span::before { content: ''; width: 34px; height: 34px; border-radius: 10px; background: var(--blu); }
.barre-legenda .mod::before { background: var(--arancio); }
.barre:not(.svelate) .barre-legenda .mod { opacity: 0.35; }

/* ---------------------------------------------------------------- laboratorio */
.lab-sx { left: 120px; top: 204px; width: 1030px; height: 826px; display: flex; flex-direction: column; justify-content: center; }
.lab-gruppi { flex: 0 0 auto; align-self: flex-start; margin: 0 0 26px; background: var(--arancio); color: var(--inchiostro); font-weight: 800; font-size: 40px; padding: 10px 32px; border-radius: 999px; }
.lab-titolo { flex: 0 0 auto; font-weight: 800; line-height: 1.03; letter-spacing: -0.03em; margin: 0; }
.lab-consegna { flex: 0 0 auto; list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.42em; }
.lab-consegna li { display: flex; gap: 0.55em; align-items: flex-start; font-weight: 600; line-height: 1.18; }
.lab-consegna li b { flex: 0 0 auto; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--blu); color: var(--bianco); font-weight: 800; font-size: 0.8em; display: grid; place-items: center; }
.lab-esito { flex: 0 0 auto; margin: 32px 0 0; font-weight: 700; line-height: 1.2; }
.lab-esito em { background: var(--inchiostro); color: var(--bianco); padding: 0.05em 0.4em; margin: 0 0.2em 0 0; border-radius: 999px; font-size: 0.86em; }
.lab-tempo { left: 1230px; top: 0; width: 690px; height: 1080px; display: grid; place-items: center; color: var(--bianco); }
.lab-anello { width: 540px; height: 540px; grid-area: 1 / 1; }
.lab-traccia { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 36; }
.lab-resto { fill: none; stroke: var(--arancio); stroke-width: 36; stroke-linecap: round; transition: stroke-dashoffset 300ms linear, stroke 400ms ease; }
.lab-cifre { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; }
.lab-cifre b { font-weight: 800; font-size: 156px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.lab-cifre span { font-weight: 600; font-size: 44px; margin-top: 8px; }
.lab-fine { position: absolute; left: 0; right: 0; bottom: 130px; margin: 0; text-align: center; font-weight: 700; font-size: 42px; }
[data-tempo][data-stato="corre"] .lab-cifre b, [data-tempo][data-stato="ultimi"] .lab-cifre b, [data-tempo][data-stato="scaduto"] .lab-cifre b { font-size: 136px; }
[data-tempo][data-lungo] .lab-cifre b { font-size: 112px; }
[data-tempo][data-stato="ultimi"] .lab-resto { stroke: var(--bianco); }
.palco.vivo:not([data-fermo]) [data-tempo][data-stato="scaduto"] .lab-cifre { animation: lab-pulsa 1.2s ease-in-out infinite; }
@keyframes lab-pulsa { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ---------------------------------------------------------------- i simulatori (leve, parole) */
.sim { left: 120px; top: 212px; width: 1690px; height: 836px; }
.sim button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sim .ferma button, .sim .ferma input { cursor: default; }
.sim-nota { margin: 0; font-weight: 500; font-size: 28px; color: #5A6785; white-space: nowrap; }
.int { height: 78px; padding: 0 22px; border: 4px solid #C9D3EA; border-radius: 22px; background: var(--bianco); color: var(--inchiostro); font-weight: 700; font-size: 36px; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 14px; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms var(--morbido); }
.int i { width: 30px; height: 30px; border-radius: 50%; border: 6px solid var(--chiaro); box-sizing: border-box; flex: 0 0 auto; transition: inherit; }
.int:hover { border-color: var(--blu); transform: translateY(-3px); }
.int[aria-pressed="true"] { background: var(--blu); border-color: var(--blu); color: var(--bianco); }
.int[aria-pressed="true"] i { background: var(--arancio); border-color: var(--arancio); }

.pa { display: grid; grid-template-columns: 1fr 650px; gap: 70px; height: 100%; }
.pa-sx { display: flex; flex-direction: column; min-width: 0; }
.pa-token { margin: 0 0 22px; }
.pa-token span { display: block; font-weight: 800; font-size: 30px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blu); margin-bottom: 10px; }
.pa-token i { display: inline-block; font-style: normal; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-weight: 700; font-size: 32px; background: var(--nebbia); border-radius: 10px; padding: 5px 13px; margin: 0 7px 7px 0; }
.pa-token i:nth-child(even) { background: #E3EAFB; }
.pa-frase { margin: 0; font-weight: 800; font-size: 58px; line-height: 1.16; letter-spacing: -0.02em; min-height: 276px; }
.pa-frase b { color: var(--blu); font-weight: 800; }
.pa-frase b.nuova { background: var(--arancio); color: var(--inchiostro); border-radius: 10px; padding: 0 0.12em; }
.pa-frase b.punto { color: var(--inchiostro); margin-left: -0.2em; }
.pa-frase .cursore { display: inline-block; width: 8px; height: 0.9em; background: var(--arancio); margin-left: 8px; vertical-align: -0.1em; }
.palco.vivo:not([data-fermo]) .pa-frase .cursore, .tel .pa-frase .cursore { animation: pa-batte 1s steps(2) infinite; }
@keyframes pa-batte { 50% { opacity: 0; } }
.pa-comandi { display: flex; gap: 18px; margin: 14px 0 24px; }
.pa-comandi button { height: 84px; padding: 0 40px; border-radius: 999px; border: 4px solid var(--blu); background: var(--bianco); color: var(--inchiostro); font-weight: 800; font-size: 38px; white-space: nowrap; transition: transform 180ms var(--morbido), background-color 180ms ease; }
.pa-comandi button.primo { background: var(--arancio); border-color: var(--arancio); }
.pa-comandi button:hover { transform: translateY(-4px); }
.pa-manopola label { display: block; font-weight: 800; font-size: 32px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blu); }
.pa-manopola label b { text-transform: none; letter-spacing: 0; color: var(--inchiostro); margin-left: 12px; }
.pa-manopola input, .t-cursore input { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; border-radius: 10px; background: var(--chiaro); margin: 26px 0 16px; cursor: pointer; }
.pa-manopola input::-webkit-slider-thumb, .t-cursore input::-webkit-slider-thumb { -webkit-appearance: none; width: 58px; height: 58px; border-radius: 50%; background: var(--bianco); border: 10px solid var(--inchiostro); box-sizing: border-box; cursor: grab; }
.pa-manopola input::-moz-range-thumb, .t-cursore input::-moz-range-thumb { width: 58px; height: 58px; border-radius: 50%; background: var(--bianco); border: 10px solid var(--inchiostro); box-sizing: border-box; cursor: grab; }
.pa-tacche { display: flex; justify-content: space-between; font-weight: 700; font-size: 30px; color: var(--testo); }
.pa-frasi { list-style: none; margin: 18px 0 0; padding: 0; font-weight: 500; font-size: 30px; line-height: 1.3; color: var(--testo); overflow: hidden; flex: 1 1 auto; min-height: 0; }
.pa-frasi li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-frasi .conto { font-weight: 800; color: var(--inchiostro); }
.pa-dx { display: flex; flex-direction: column; min-width: 0; }
.pa-dx .sim-nota { white-space: normal; font-size: 26px; line-height: 1.25; }
.pa-domanda { margin: 0 0 16px; font-weight: 800; font-size: 44px; letter-spacing: -0.02em; color: var(--blu); }
.pa-candidate { list-style: none; margin: 0 0 auto; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pa-candidate li { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; row-gap: 4px; align-items: baseline; padding: 10px 18px 12px; border-radius: 18px; cursor: pointer; transition: background-color 160ms ease, transform 180ms var(--morbido); }
.pa-candidate li:hover { background: var(--nebbia); transform: translateX(-8px); }
.pa-candidate li.scelta { background: var(--arancio); }
.pa-candidate span { font-weight: 800; font-size: 42px; line-height: 1.1; }
.pa-candidate .rara span { font-style: italic; color: var(--arancio-2); }
.pa-candidate li.scelta span { color: var(--inchiostro); }
.pa-candidate b { font-weight: 800; font-size: 38px; font-variant-numeric: tabular-nums; }
.pa-candidate i { grid-column: 1 / -1; height: 16px; border-radius: 8px; background: var(--nebbia); overflow: hidden; }
.pa-candidate li:hover i, .pa-candidate li.scelta i { background: rgba(255, 255, 255, 0.7); }
.pa-candidate u { display: block; height: 100%; border-radius: 8px; background: var(--blu); transition: width 500ms var(--morbido); }
.pa-candidate .fine { cursor: default; font-weight: 600; font-size: 40px; line-height: 1.24; display: block; background: var(--nebbia); padding: 28px 30px; }
.pa-candidate .fine:hover { transform: none; }
.ferma .pa-candidate li { cursor: default; }

/* ---------------------------------------------------------------- qr */
.qr-sx { left: 120px; top: 230px; width: 800px; height: 760px; display: flex; flex-direction: column; justify-content: center; }
.qr-sx.con-piccolo { justify-content: flex-start; }
.qr-titolo { font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; color: var(--inchiostro); margin: 0; max-height: 330px; overflow: hidden; }
.qr-testo { font-weight: 600; line-height: 1.22; color: var(--testo); margin: 34px 0 0; max-height: 250px; overflow: hidden; }
.qr-piccolo { margin-top: auto; display: flex; flex-direction: column; gap: 18px; flex: 0 0 auto; }
.qr-riga { display: flex; align-items: center; gap: 34px; }
.qr-riga b { font-weight: 800; font-size: 44px; line-height: 1.1; color: var(--inchiostro); }
.qr-piccolo-indirizzo { display: block; width: 800px; height: 56px; font-weight: 700; line-height: 1.2; color: var(--testo); white-space: nowrap; overflow: hidden; }
.qr-carta.piccola { padding: 8px; border-radius: 14px; box-shadow: 0 0 0 4px var(--nebbia); }
.qr-dx { left: 1000px; top: 0; width: 920px; height: 1080px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--bianco); }
.qr-indirizzo { margin: 40px 0 0; width: 800px; height: 130px; font-weight: 800; line-height: 1.1; text-align: center; display: flex; align-items: center; justify-content: center; overflow: hidden; }

/* ---------------------------------------------------------------- iframe, esterna, immagine */
.if-segnaposto { left: 0; top: 0; width: 1920px; height: 1080px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--nebbia); }
.if-titolo { font-weight: 800; font-size: 92px; color: var(--inchiostro); margin: 0; text-align: center; max-width: 1600px; }
.if-url { font-weight: 700; font-size: 48px; color: var(--blu); margin: 26px 0 0; }
.if-riserva { left: 0; top: 0; width: 1920px; height: 1080px; object-fit: contain; background: var(--bianco); }
.if-riserva[hidden] { display: none; }
.if-posto { left: 0; top: 0; width: 1920px; height: 1080px; }
.slide[data-sfondo="grigio"] { background: var(--grigio); }
.im-cornice { left: 96px; top: 70px; width: 1728px; height: 900px; display: flex; align-items: center; justify-content: center; }
.im-cornice img { max-width: 100%; max-height: 100%; object-fit: contain; }
.im-cornice.riempi { left: 0; top: 0; width: 1920px; height: 1080px; }
.im-cornice.riempi img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.im-didascalia { left: 96px; bottom: 36px; font-weight: 800; font-size: 42px; color: var(--inchiostro); background: var(--bianco); padding: 10px 28px; border-radius: 999px; box-shadow: 0 0 0 4px var(--blu); }

/* il modo pubblico: i QR sono link da toccare, la slide esterna diventa una scheda */
.qr-tocca { display: block; line-height: 0; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.qr-bottone { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; margin-top: 30px; min-height: 130px; padding: 0 64px; border-radius: 999px; background: var(--arancio); color: var(--inchiostro); font-weight: 800; font-size: 56px; line-height: 1.1; text-decoration: none; white-space: nowrap; }
.qr-bottone.piccolo { align-self: flex-start; margin-top: 0; min-height: 110px; padding: 0 48px; font-size: 44px; background: var(--inchiostro); color: var(--bianco); }
.pb-scheda { left: 0; top: 0; width: 1920px; height: 1080px; box-sizing: border-box; padding: 0 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 80px; background: var(--blu); }
.pb-titolo { margin: 0; max-width: 1600px; max-height: 480px; overflow: hidden; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--bianco); text-align: center; text-wrap: balance; }
.pb-bottone { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 230px; padding: 0 120px; border-radius: 999px; background: var(--arancio); color: var(--inchiostro); font-weight: 800; font-size: 96px; line-height: 1.1; text-decoration: none; white-space: nowrap; }

/* ---------------------------------------------------------------- grazie */
.gr-titolo { left: 120px; top: 262px; width: 920px; height: 260px; font-weight: 800; line-height: 0.96; letter-spacing: -0.04em; color: var(--bianco); overflow: hidden; }
.gr-testo { left: 120px; top: 540px; width: 900px; height: 204px; font-weight: 600; line-height: 1.16; color: var(--bianco); overflow: hidden; }
.gr-contatti { left: 120px; top: 760px; width: 900px; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gr-contatti li { font-weight: 800; font-size: 46px; color: var(--bianco); }
.gr-qr { left: 1172px; top: 372px; width: 336px; }
.gr-qr .qr-carta { padding: 18px; border-radius: 0; background: transparent; }
.gr-qr p { display: none; }
.gr-logo { left: 1280px; top: 900px; width: 520px; height: auto; }

/* ---------------------------------------------------------------- animazioni ferme */
.palco[data-fermo] .slide, .palco[data-fermo] .slide *, .palco[data-fermo] .forma { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { .palco .slide, .palco .slide *, .palco .forma { transition: none !important; animation: none !important; } }
.palco.mini [data-trabocca] { outline: 6px dashed #ff2d2d; outline-offset: 4px; }
[data-gruppo] > * { flex-shrink: 0; }

/* ---------------------------------------------------------------- il telefono: la scheda al posto della slide */
.tel { font-family: 'Poppins', system-ui, sans-serif; color: var(--inchiostro); -webkit-font-smoothing: antialiased; max-width: 640px; margin: 0 auto; padding: 22px 20px 44px; box-sizing: border-box; }
.tel button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.t-occhiello { margin: 18px 0 8px; font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blu); }
.t-domanda { margin: 0 0 10px; font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.t-domanda em, .tel em { font-style: normal; background: linear-gradient(transparent 60%, rgba(255, 166, 0, 0.8) 60%); }
.t-sotto { margin: 0 0 18px; font-weight: 500; font-size: 17px; line-height: 1.4; color: var(--testo); }
.tel form[data-nuvola] { display: flex; gap: 10px; margin: 18px 0 8px; }
.tel input[type="text"] { flex: 1; min-width: 0; height: 56px; border: 2px solid var(--blu); border-radius: 16px; padding: 0 16px; font: 600 19px/1 'Poppins', system-ui, sans-serif; color: var(--inchiostro); background: var(--bianco); outline: none; }
.tel input[type="text"]:focus { box-shadow: 0 0 0 4px rgba(255, 166, 0, 0.5); }
.tel form button, .tel [data-invia-cursore] { height: 56px; padding: 0 26px; border: 0; border-radius: 16px; background: var(--arancio); color: var(--inchiostro); font-weight: 800; font-size: 18px; }
.tel [data-invia-cursore] { width: 100%; margin-top: 8px; }
.t-nota { margin: 6px 0 0; font-size: 14px; font-weight: 500; color: #5A6785; }
.t-fatto { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--nebbia); font-weight: 700; font-size: 16px; line-height: 1.35; }
.t-date { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.t-date span { background: var(--blu); color: var(--bianco); font-weight: 700; font-size: 16px; padding: 8px 14px; border-radius: 999px; }
.t-cursore { margin: 14px 0 0; text-align: center; }
.t-cursore output { display: block; font-weight: 800; font-size: 76px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.t-cursore input { height: 16px; margin: 22px 0 12px; }
.t-cursore input::-webkit-slider-thumb { width: 44px; height: 44px; border-width: 8px; }
.t-tacche { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 14px; color: var(--testo); }
.t-scelte { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; }
.t-scelte button { min-height: 60px; padding: 12px 18px; border: 2px solid #C9D3EA; border-radius: 16px; background: var(--bianco); color: var(--inchiostro); font-weight: 700; font-size: 18px; line-height: 1.25; text-align: left; }
.t-scelte button[aria-pressed="true"] { background: var(--blu); border-color: var(--blu); color: var(--bianco); }
.t-tela { margin: 6px 0 0; }
.t-tela .sg-vuoto { font-size: 16px; padding: 20px 0; height: auto; display: block; }
.t-tela .nuvola { gap: 2px 14px; height: auto; align-content: flex-start; }
.t-tela .nuvola span { font-size: clamp(16px, calc(var(--q, 1) * 1px), 44px) !important; }
.t-tela .isto { height: auto; }
.t-tela .isto-colonne { height: 150px; gap: 4px; border-bottom-width: 3px; }
.t-tela .isto-col i { border-radius: 5px 5px 0 0; min-height: 3px; }
.t-tela .isto-col b { font-size: 14px; top: calc(100% + 6px); }
.t-tela .isto-media { top: -14px; border-left-width: 3px; }
.t-tela .isto-media strong { font-size: 14px; padding: 4px 10px; }
.t-tela .isto-etichette { margin-top: 32px; font-size: 14px; }
.t-tela .barre { gap: 12px; height: auto; }
.t-tela .barra-riga { grid-template-columns: 1fr; gap: 4px; }
.t-tela .barra-nome { font-size: 16px; text-align: left; }
.t-tela .pista, .t-tela .barre.doppie .pista { height: 26px; border-radius: 8px; }
.t-tela .pista i { border-radius: 8px; }
.t-tela .pista b, .t-tela .barre.doppie .pista b { font-size: 14px; right: 10px; }
.t-tela .barre-legenda { font-size: 14px; gap: 16px; justify-content: flex-start; }
.t-tela .barre-legenda span::before { width: 14px; height: 14px; border-radius: 4px; }
.t-consegna { margin: 14px 0 0; padding-left: 22px; font-weight: 600; font-size: 18px; line-height: 1.4; }
.t-consegna li { margin-bottom: 8px; }
.t-esito { margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--nebbia); font-weight: 600; font-size: 17px; line-height: 1.35; }
.t-esito b { background: var(--inchiostro); color: var(--bianco); border-radius: 999px; padding: 2px 10px; margin-right: 6px; font-size: 14px; }
.t-tempo { position: relative; margin: 22px auto 0; width: 240px; height: 240px; display: grid; place-items: center; color: var(--inchiostro); }
.t-tempo svg { width: 240px; height: 240px; grid-area: 1 / 1; }
.t-tempo .lab-traccia { stroke: var(--nebbia); }
.t-tempo.t-tempo[data-stato] .lab-cifre b, .t-tempo .lab-cifre b { font-size: 58px; } .t-tempo .lab-cifre span { font-size: 15px; margin-top: 2px; }
.t-tempo .lab-fine { position: static; grid-area: 2 / 1; font-size: 15px; margin-top: 8px; color: var(--testo); }
.t-tempo[data-stato="ultimi"] .lab-resto { stroke: var(--blu); }
/* i simulatori sul telefono: una colonna */
.tel .int { height: 46px; font-size: 15px; padding: 0 12px; border-width: 2px; border-radius: 14px; gap: 8px; flex: 1 1 auto; }
.tel .int i { width: 16px; height: 16px; border-width: 3px; }
.tel .sim-nota { font-size: 14px; margin-top: 8px; white-space: normal; }
.tel .pa-token { margin-bottom: 12px; } .tel .pa-token i { font-size: 14px; padding: 3px 7px; margin: 0 4px 4px 0; border-radius: 6px; }
.tel .pa-frase { font-size: 24px; min-height: 112px; }
.tel .pa-frase .cursore { width: 4px; }
.tel .pa-comandi { flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.tel .pa-comandi button { height: 52px; font-size: 16px; padding: 0 20px; border-width: 2px; flex: 1 1 auto; }
.tel .pa-manopola input { height: 14px; margin: 16px 0 10px; }
.tel .pa-manopola input::-webkit-slider-thumb { width: 40px; height: 40px; border-width: 7px; }
.tel .pa-tacche { font-size: 14px; }
.tel .pa-frasi { font-size: 14px; margin-top: 12px; }
.tel .pa-frasi li { white-space: normal; margin-bottom: 4px; }
.tel .pa-dx { margin-top: 18px; }
.tel .pa-domanda { font-size: 18px; margin-bottom: 8px; }
.tel .pa-candidate { gap: 2px; }
.tel .pa-candidate li { padding: 8px 10px; border-radius: 12px; }
.tel .pa-candidate span { font-size: 18px; } .tel .pa-candidate b { font-size: 16px; }
.tel .pa-candidate i { height: 8px; }
.tel .pa-candidate .fine { font-size: 16px; padding: 14px 16px; }

/* ---------------------------------------------------------------- le stelle di una recensione */
.stelle { display: inline-flex; gap: 0.12em; vertical-align: -0.08em; margin-right: 0.5em; flex: 0 0 auto; }
.stelle i { width: 0.92em; height: 0.92em; background: var(--linea); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stelle i.piena { background: var(--arancio); }

/* ---------------------------------------------------------------- quiz: il messaggio che arriva, le risposte fra cui scegliere */
.qz-testa { left: 120px; top: 96px; width: 1680px; height: 200px; display: flex; flex-direction: column; }
.qz-testa .occhiello { margin-bottom: 12px; font-size: 32px; }
.qz-domanda { font-weight: 800; line-height: 1.06; letter-spacing: -0.025em; margin: 0; max-height: 150px; overflow: hidden; color: var(--inchiostro); }
.qz-caso { left: 120px; top: 318px; width: 560px; height: 560px; box-sizing: border-box; padding: 36px 40px; background: var(--nebbia); border-radius: 40px 40px 40px 8px; display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.qz-chi { margin: 0; flex: 0 0 auto; font-size: 30px; color: var(--inchiostro); display: flex; align-items: center; flex-wrap: wrap; row-gap: 4px; }
.qz-chi b { font-weight: 700; }
.qz-testo { margin: 0; flex: 1 1 0; min-height: 0; font-weight: 500; line-height: 1.32; color: var(--inchiostro); overflow: hidden; }
.qz-opzioni { left: 716px; top: 318px; width: 1084px; height: 560px; list-style: none; padding: 0; display: grid; grid-auto-rows: 1fr; gap: 18px; }
.qz-opzioni.larghe { left: 120px; width: 1680px; }
.qz-opzioni li { position: relative; display: grid; grid-template-columns: 72px 1fr 124px; align-items: center; column-gap: 24px; padding: 8px 26px 8px 22px; box-sizing: border-box; border: 4px solid var(--linea); border-radius: 36px 36px 8px 36px; background: var(--bianco); overflow: hidden; min-height: 0; transition: border-color 300ms ease, opacity 300ms ease, box-shadow 300ms ease; }
.qz-opzioni li::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--q, 0%); background: rgba(255, 166, 0, 0.32); transition: width 700ms var(--morbido); }
.qz-opzioni li > * { position: relative; }
.qz-lettera { width: 72px; height: 72px; border-radius: 50%; background: var(--blu); color: var(--bianco); font-weight: 800; font-size: 40px; display: grid; place-items: center; }
.qz-opzioni p { margin: 0; font-weight: 600; line-height: 1.22; color: var(--inchiostro); overflow: hidden; }
.qz-opzioni.n2 p { max-height: 240px; } .qz-opzioni.n3 p { max-height: 146px; } .qz-opzioni.n4 p { max-height: 100px; } .qz-opzioni.n5 p { max-height: 72px; }
.qz-pc { font-weight: 800; font-size: 46px; text-align: right; color: var(--inchiostro); font-variant-numeric: tabular-nums; }
.qz-opzioni li.giusta { border-color: var(--elettrico); box-shadow: inset 0 0 0 5px var(--elettrico); }
.qz-opzioni li.altra { opacity: 0.72; }
.qz-regola { left: 120px; top: 898px; width: 1380px; max-height: 136px; box-sizing: border-box; padding: 14px 30px; background: var(--arancio); border-radius: 22px; font-weight: 700; line-height: 1.2; color: var(--inchiostro); overflow: hidden; }

/* ---------------------------------------------------------------- segna: le frasi che suonano finte */
.sn-foglio { left: 120px; top: 318px; width: 1680px; height: 560px; box-sizing: border-box; padding: 38px 48px; background: var(--nebbia); border-radius: 40px 40px 8px 40px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.sn-intro { margin: 0; flex: 0 0 auto; font-weight: 700; font-size: 30px; color: var(--blu); }
.sn-testo { margin: 0; flex: 1 1 0; min-height: 0; font-weight: 500; line-height: 1.66; color: var(--inchiostro); overflow: hidden; }
.sn-testo span { background: rgba(255, 166, 0, calc(var(--q, 0) * 0.92)); border-radius: 8px; padding: 0.1em 0.16em; margin: 0 -0.08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-color 600ms var(--morbido), box-shadow 400ms ease; }
.sn-testo span b { display: inline-block; margin-left: 0.3em; min-width: 1.6em; padding: 0 0.3em; box-sizing: border-box; border-radius: 999px; background: var(--inchiostro); color: var(--bianco); font-weight: 800; font-size: 0.56em; line-height: 1.6; text-align: center; vertical-align: 0.24em; }
.sn-testo span b:empty { display: none; }
.sn-testo span.sospetta { box-shadow: inset 0 -0.16em 0 var(--elettrico); }

/* ---------------------------------------------------------------- muro: la consegna e il tempo, poi i testi di tutti */
.mu-raccolta, .mu-muro { inset: 0; }
.mu-raccolta > *, .mu-muro > * { position: absolute; margin: 0; }
.mu-arrivi { position: absolute; left: 0; right: 0; bottom: 50px; margin: 0; text-align: center; font-weight: 700; font-size: 38px; color: var(--bianco); }
.mu-arrivi b { font-weight: 800; font-size: 56px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.lab-tempo.senza { display: flex; align-items: center; justify-content: center; }
.lab-tempo.senza .mu-arrivi { position: static; font-size: 56px; }
.lab-tempo.senza .mu-arrivi b { display: block; font-size: 280px; line-height: 1; margin: 0; }
.mu-griglia { left: 120px; top: 262px; width: 1680px; height: 690px; display: grid; grid-auto-rows: 1fr; gap: 20px; }
.mu-griglia.n1 { grid-template-columns: 1fr; font-size: 40px; --righe: 11; }
.mu-griglia.n2 { grid-template-columns: repeat(2, 1fr); font-size: 34px; --righe: 13; }
.mu-griglia.n4 { grid-template-columns: repeat(2, 1fr); font-size: 30px; --righe: 6; }
.mu-griglia.n6 { grid-template-columns: repeat(3, 1fr); font-size: 26px; --righe: 7; }
.mu-griglia.n9 { grid-template-columns: repeat(3, 1fr); font-size: 24px; --righe: 4; }
.mu-griglia.n12 { grid-template-columns: repeat(4, 1fr); font-size: 22px; --righe: 4; }
.mu-carta { appearance: none; -webkit-appearance: none; border: 0; margin: 0; min-width: 0; min-height: 0; padding: 22px 26px; text-align: left; font: inherit; font-size: inherit; color: var(--inchiostro); background: var(--nebbia); border-radius: 28px 28px 8px 28px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; cursor: zoom-in; transition: background-color 200ms ease, transform 260ms var(--morbido); }
.palco.vivo .mu-carta:hover { background: var(--blu); color: var(--bianco); transform: translateY(-6px); }
.palco.vivo .mu-carta:hover b { color: var(--bianco); }
.mu-carta b { flex: 0 0 auto; font-weight: 800; font-size: 0.82em; line-height: 1.2; color: var(--blu); }
.mu-carta span { font-weight: 500; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--righe, 5); }
.slide > .mu-lente { inset: 0; z-index: 5; background: var(--inchiostro); display: grid; place-items: center; }
.slide > .mu-lente[hidden] { display: none; }
.mu-foglio { width: 1500px; height: 920px; box-sizing: border-box; background: var(--bianco); border-radius: 40px 40px 8px 40px; padding: 40px 56px 32px; display: flex; flex-direction: column; gap: 20px; }
.mu-foglio.doppio { width: 1780px; }
.mu-testa { margin: 0; flex: 0 0 auto; display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 32px; color: var(--testo); }
.mu-testa b { font-weight: 800; font-size: 44px; color: var(--blu); }
.mu-colonne { flex: 1 1 0; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 44px; }
.mu-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.mu-col h3 { margin: 0; flex: 0 0 auto; font-weight: 800; font-size: 30px; color: var(--blu); }
.mu-col h3:empty { display: none; }
.mu-col.prima { padding-right: 44px; border-right: 4px solid var(--linea); }
.mu-col.prima h3, .mu-col.prima p { color: var(--testo); }
.mu-col p { margin: 0; flex: 1 1 0; min-height: 0; overflow: hidden; font-weight: 500; line-height: 1.34; color: var(--inchiostro); }
.mu-comandi { margin: 0; flex: 0 0 auto; display: flex; justify-content: center; gap: 16px; }
.mu-comandi button { height: 64px; padding: 0 34px; border: 4px solid var(--linea); border-radius: 18px; background: var(--bianco); color: var(--inchiostro); font-family: inherit; font-weight: 700; font-size: 30px; cursor: pointer; transition: border-color 180ms ease, transform 180ms var(--morbido); }
.mu-comandi button:hover { border-color: var(--blu); transform: translateY(-3px); }

/* ---------------------------------------------------------------- la ricetta della risposta */
.m-ricetta .testata, .m-parole .testata { top: 84px; height: 116px; }
.rc { display: grid; grid-template-columns: 690px 1fr; gap: 48px; height: 100%; }
.rc-sx, .rc-dx { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.rc-etichetta { margin: 0; flex: 0 0 auto; font-weight: 800; font-size: 28px; color: var(--blu); }
.rc-base { margin: 0; flex: 0 0 auto; padding: 12px 22px; border-radius: 22px 22px 8px 22px; background: var(--inchiostro); color: var(--bianco); font-weight: 500; font-size: 26px; line-height: 1.25; }
.rc-base b { font-weight: 800; }
.rc-ingredienti { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.rc .int { height: auto; flex: 1 1 0; min-height: 0; padding: 8px 22px; justify-content: flex-start; text-align: left; white-space: normal; gap: 18px; border-radius: 22px 22px 8px 22px; overflow: hidden; }
.rc .int span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rc .int b { font-weight: 800; font-size: 32px; line-height: 1.1; }
.rc .int small { font-weight: 500; font-size: 22px; line-height: 1.22; }
.rc .int[aria-pressed="false"] .rc-detto, .rc .int[aria-pressed="true"] .rc-sotto { display: none; }
.rc .int[aria-pressed="false"] small { color: var(--testo); font-size: 26px; }
.rc-recensione { flex: 0 0 auto; align-self: flex-start; max-width: 880px; background: var(--nebbia); border-radius: 30px 30px 30px 8px; padding: 18px 26px 20px; }
.rc-recensione p { margin: 0; font-weight: 500; font-size: 25px; line-height: 1.3; color: var(--inchiostro); }
.rc-recensione .rc-chi { font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; }
.rc-risposta { flex: 1 1 0; min-height: 0; align-self: flex-end; width: 900px; box-sizing: border-box; border: 4px solid var(--linea); border-radius: 30px 30px 8px 30px; padding: 16px 26px 12px; overflow: hidden; }
.rc-risposta .rc-etichetta { margin: 0 0 8px; }
.rc-risposta [data-risposta] p { position: relative; margin: 0 0 8px; padding-left: 30px; font-size: 26px; line-height: 1.28; border-radius: 8px; }
.rc-risposta [data-risposta] p::before { content: ''; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 14px; border-radius: 50%; background: var(--linea); }
.rc-risposta p.senza { color: var(--testo); font-weight: 500; }
.rc-risposta p.con { color: var(--inchiostro); font-weight: 600; }
.rc-risposta [data-risposta] p.con::before { background: var(--arancio); }
.palco.vivo:not([data-fermo]) .rc p.nuovo, .tel .rc p.nuovo { animation: rc-nuovo 1100ms var(--morbido); }
@keyframes rc-nuovo { from { background-color: rgba(255, 166, 0, 0.55); } to { background-color: rgba(255, 166, 0, 0); } }
.rc-metro { margin: 0; flex: 0 0 auto; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font-weight: 600; font-size: 26px; color: var(--testo); }
.rc-metro b { font-weight: 800; font-size: 34px; color: var(--inchiostro); }
.palco .rc-composto { display: none; }

/* ---------------------------------------------------------------- il dispositivo: quiz, segna, muro, il prompt da copiare, la ricetta */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tel [hidden] { display: none !important; }
.tel button:focus-visible, .tel a:focus-visible, .tel textarea:focus-visible, .tel input:focus-visible, .tel pre:focus-visible { outline: 3px solid var(--elettrico); outline-offset: 2px; }
.t-caso { margin: 6px 0 4px; padding: 16px 18px; background: var(--nebbia); border-radius: 22px 22px 22px 6px; }
.t-caso p { margin: 0; font-weight: 500; font-size: 17px; line-height: 1.42; }
.t-caso .t-chi, .tel > .t-chi { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; flex-wrap: wrap; row-gap: 2px; }
.t-chi b { font-weight: 700; }
.t-scelte.lunghe button { display: grid; grid-template-columns: 40px 1fr auto; column-gap: 12px; align-items: center; text-align: left; font-weight: 600; font-size: 16px; line-height: 1.38; padding: 14px 16px; border-radius: 22px 22px 6px 22px; }
.t-scelte.lunghe button b { width: 40px; height: 40px; border-radius: 50%; background: var(--blu); color: var(--bianco); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.t-scelte.lunghe button[aria-pressed="true"] b { background: var(--arancio); color: var(--inchiostro); }
.t-scelte.lunghe button strong { font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.t-scelte button:disabled { cursor: default; opacity: 1; }
.t-scelte.lunghe button:disabled:not([aria-pressed="true"]) { color: var(--inchiostro); }
.t-scelte.lunghe button.giusta { box-shadow: 0 0 0 4px var(--elettrico); }
.t-regola { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--arancio); color: var(--inchiostro); font-weight: 700; font-size: 16px; line-height: 1.4; }
.t-frasi { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; }
.t-frasi button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; border: 2px solid var(--linea); border-radius: 14px; background: var(--bianco); color: var(--inchiostro); font-weight: 500; font-size: 17px; line-height: 1.38; text-align: left; transition: background-color 160ms ease, border-color 160ms ease; }
.t-frasi button[aria-pressed="true"] { background: var(--arancio); border-color: var(--arancio); font-weight: 600; }
.t-frasi button.sospetta { box-shadow: inset 0 -5px 0 var(--elettrico); }
.t-frasi button strong { flex: 0 0 auto; min-width: 30px; height: 30px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--inchiostro); color: var(--bianco); display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.t-frasi button:disabled { cursor: default; color: var(--inchiostro); opacity: 1; }
.t-copia { margin: 16px 0 0; }
.t-copia pre { margin: 0 0 10px; padding: 14px 16px; max-height: 280px; overflow: auto; white-space: pre-wrap; word-break: break-word; background: var(--inchiostro); color: var(--bianco); border-radius: 16px 16px 4px 16px; font: 500 14px/1.55 'Poppins', system-ui, sans-serif; }
.t-copia [data-copia] { width: 100%; min-height: 52px; border: 0; border-radius: 16px; background: var(--arancio); color: var(--inchiostro); font-weight: 800; font-size: 17px; transition: background-color 180ms ease, color 180ms ease; }
.t-copia [data-copia][data-fatto] { background: var(--blu); color: var(--bianco); }
.t-apri { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.t-apri a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 2px solid var(--blu); border-radius: 999px; color: var(--blu); font-weight: 700; font-size: 15px; text-decoration: none; }
.t-apri a::after { content: ''; width: 8px; height: 8px; margin: 0 0 6px 8px; border: solid currentColor; border-width: 2px 2px 0 0; }
.t-muro-modulo { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 0; }
.t-muro-modulo label { margin-top: 6px; font-weight: 800; font-size: 14px; color: var(--blu); }
.t-muro-modulo textarea { width: 100%; box-sizing: border-box; min-height: 190px; border: 2px solid var(--blu); border-radius: 16px; padding: 14px 16px; font: 500 17px/1.45 'Poppins', system-ui, sans-serif; color: var(--inchiostro); resize: vertical; }
.t-muro-modulo input[type="text"] { flex: none; width: 100%; height: 52px; box-sizing: border-box; }
.t-muro-modulo .t-nota { margin: 0; }
.t-muro-modulo button { min-height: 56px; margin-top: 6px; border: 0; border-radius: 16px; background: var(--arancio); color: var(--inchiostro); font-weight: 800; font-size: 18px; }
.t-muro-modulo button:disabled { opacity: 0.6; }
.t-muro { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 0; }
.t-muro article { padding: 14px 16px; background: var(--nebbia); border-radius: 18px 18px 4px 18px; }
.t-muro article b { display: block; margin-bottom: 4px; font-weight: 800; font-size: 14px; color: var(--blu); }
.t-muro article p { margin: 0; font-weight: 500; font-size: 16px; line-height: 1.45; }
.tel .rc { display: flex; flex-direction: column; gap: 10px; height: auto; }
.tel .rc-sx, .tel .rc-dx { display: contents; }
.tel .rc-recensione { order: 1; max-width: none; align-self: stretch; margin: 14px 0 0; padding: 14px 16px; border-radius: 20px 20px 20px 6px; }
.tel .rc-recensione p { font-size: 15px; }
.tel .rc-etichetta { font-size: 14px; margin: 8px 0 0; }
.tel .rc-sx > .rc-etichetta { order: 2; }
.tel .rc-base { order: 3; font-size: 15px; padding: 10px 14px; border-radius: 16px 16px 4px 16px; }
.tel .rc-ingredienti { order: 4; flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.tel .rc .int { flex: 1 1 46%; height: auto; min-height: 52px; padding: 8px 12px; border-width: 2px; border-radius: 16px; gap: 10px; overflow: visible; }
.tel .rc .int i { width: 18px; height: 18px; border-width: 4px; }
.tel .rc .int b { font-size: 15px; }
.tel .rc .int small { display: none; }
.tel .rc-risposta { order: 5; flex: 0 0 auto; overflow: visible; width: auto; align-self: stretch; padding: 14px 16px; border-width: 2px; border-radius: 20px 20px 6px 20px; }
.tel .rc-risposta .rc-etichetta { margin: 0 0 8px; }
.tel .rc-risposta [data-risposta] p { font-size: 16px; padding-left: 20px; }
.tel .rc-risposta [data-risposta] p::before { width: 10px; height: 10px; top: 0.5em; }
.tel .rc-metro { order: 6; flex-direction: column; gap: 2px; font-size: 14px; }
.tel .rc-metro b { font-size: 17px; }
.tel .rc-composto { order: 7; }
.tel .rc-composto [data-prompt] p { margin: 0 0 6px; font-size: 14px; line-height: 1.45; color: var(--testo); }
.tel .rc-composto [data-prompt] b { color: var(--inchiostro); }
.tel .rc .sim-nota { order: 8; }
.tel .pa { display: block; height: auto; }
.tel .pa-token span, .tel .pa-manopola label { font-size: 14px; margin-bottom: 6px; }
.palco .rc-dx .sim-nota { white-space: normal; font-size: 24px; line-height: 1.25; }

/* quiz con le risposte lunghe: il caso in alto, le risposte in colonna, come tre messaggi uno accanto all'altro */
.qz-caso.largo { top: 296px; width: 1680px; height: 158px; padding: 18px 34px 20px; gap: 6px; border-radius: 32px 32px 32px 8px; }
.qz-caso.largo .qz-chi { font-size: 26px; }
.qz-opzioni.colonne { left: 120px; top: 472px; width: 1680px; height: 410px; grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-rows: 1fr; grid-auto-rows: auto; }
.qz-opzioni.colonne li { grid-template-columns: 60px 1fr; grid-template-rows: 60px 1fr; align-items: start; row-gap: 12px; column-gap: 16px; padding: 18px 26px 14px; }
.qz-opzioni.colonne li::before { top: auto; width: 100%; height: var(--q, 0%); transition: height 700ms var(--morbido); }
.qz-opzioni.colonne .qz-lettera { grid-column: 1; grid-row: 1; width: 60px; height: 60px; font-size: 34px; }
.qz-opzioni.colonne .qz-pc { grid-column: 2; grid-row: 1; align-self: center; }
.qz-opzioni.colonne p { grid-column: 1 / -1; grid-row: 2; max-height: 290px; line-height: 1.24; }

/* i cursori sui dispositivi: il bersaglio è alto 44 px, la traccia resta sottile */
.t-cursore input, .tel .pa-manopola input { height: 44px; background: transparent; margin: 10px 0 2px; }
.t-cursore input::-webkit-slider-runnable-track, .tel .pa-manopola input::-webkit-slider-runnable-track { height: 16px; border-radius: 8px; background: var(--chiaro); }
.t-cursore input::-moz-range-track, .tel .pa-manopola input::-moz-range-track { height: 16px; border-radius: 8px; background: var(--chiaro); }
.t-cursore input::-webkit-slider-thumb, .tel .pa-manopola input::-webkit-slider-thumb { width: 44px; height: 44px; border-width: 8px; margin-top: -14px; }
/* la slide con un indirizzo, sul dispositivo: un tasto solo, grande */
.t-apri.uno a { width: 100%; min-height: 56px; justify-content: center; border: 0; border-radius: 16px; background: var(--arancio); color: var(--inchiostro); font-weight: 800; font-size: 17px; text-align: center; padding: 8px 16px; box-sizing: border-box; word-break: break-word; }
