/* Base comune ai 5 design: pezzi che funzionano uguali (quiz, truffa, telefono, who). Ogni design cambia le variabili
   e aggiunge la sua composizione. Testo base 20px, pulsanti >= 56px, focus spesso. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font, system-ui); font-size: 1.25rem; line-height: 1.55; color: var(--testo); background: var(--sfondo); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link, var(--accento)); }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 4px solid var(--focus, #1d4ed8); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn, .s-controlla, .s-esempio, .q-op, .w-bottoni a, .q-video { min-height: 56px; display: inline-flex; align-items: center; gap: .55em; justify-content: center; padding: .6em 1.2em; border-radius: var(--raggio-btn, 14px); font-weight: 700; text-decoration: none; cursor: pointer; border: 0; }
.sub { background: var(--rosso, #d42a1e); color: #fff; }
.sub:hover { filter: brightness(1.08); }

/* quiz */
.q-domanda { font-size: 1.6rem; font-weight: 800; line-height: 1.25; margin-bottom: .9rem; }
.q-opzioni { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.q-op { justify-content: flex-start; text-align: left; background: var(--op, #fff); color: var(--op-testo, var(--testo)); border: 3px solid var(--op-bordo, #d6d3cc); font-size: 1.3rem; }
.q-op:hover:not(:disabled) { border-color: var(--accento); }
.q-op:disabled { cursor: default; opacity: .75; }
.q-op.giusta { opacity: 1; background: var(--ok-sfondo, #dcf5e3); border-color: var(--ok, #157a3b); color: #0d3d1f; }
.q-op.sbagliata { opacity: 1; background: #fde4e1; border-color: #b4231a; color: #5c120d; }
.q-lettera { display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--accento); color: var(--accento-testo, #fff); font-size: .9em; flex: none; }
.q-esito { margin-top: 1rem; }
.q-titolo { font-weight: 800; font-size: 1.35rem; display: flex; gap: .4em; align-items: center; }
.q-fatto { margin: .3rem 0 .8rem; }
.q-video { background: var(--accento); color: var(--accento-testo, #fff); }
@media (max-width: 520px) { .q-opzioni { grid-template-columns: 1fr; } .q-domanda { font-size: 1.4rem; } }

/* truffa */
.s-label { display: block; font-weight: 700; margin-bottom: .4rem; }
.s-testo { width: 100%; padding: .8rem 1rem; border: 3px solid var(--op-bordo, #b9b5ad); border-radius: var(--raggio, 14px); background: #fff; color: #1b1b1b; font-size: 1.2rem; resize: vertical; }
.s-testo:focus { border-color: var(--accento); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accento) 30%, transparent); }
.s-tasti { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .8rem; }
.s-controlla { background: var(--accento); color: var(--accento-testo, #fff); font-size: 1.25rem; }
.s-esempio { background: transparent; color: var(--testo); border: 3px solid currentColor; }
.s-nota { font-size: 1rem; margin-top: .6rem; opacity: .85; display: flex; gap: .4em; align-items: flex-start; }
.s-esito { margin-top: 1rem; padding: 1.1rem 1.2rem; border-radius: var(--raggio, 14px); border: 3px solid; background: #fff; color: #1b1b1b; }
.s-alto { border-color: #b4231a; background: #fff1ef; } .s-medio { border-color: #a15c00; background: #fff6e0; } .s-basso { border-color: #157a3b; background: #ecf8f0; } .s-lingua { border-color: #a15c00; background: #fff6e0; }
.s-giudizio { font-weight: 800; font-size: 1.4rem; display: flex; gap: .45em; align-items: center; }
.s-alto .s-giudizio { color: #9b1c13; } .s-basso .s-giudizio { color: #12632f; } .s-medio .s-giudizio { color: #7a4600; }
.s-segnali { list-style: none; padding: 0; margin: .7rem 0; display: grid; gap: .35rem; }
.s-segnali li { display: flex; gap: .5em; align-items: flex-start; font-weight: 600; }
.s-segnali .ico { color: #b4231a; margin-top: .2em; }
.s-segnato { background: #f6f4ef; padding: .7rem .9rem; border-radius: 10px; font-size: 1.05rem; }
.s-segnato mark { background: #ffd34d; padding: 0 .15em; border-radius: 3px; }
.s-video { display: flex; gap: .8rem; align-items: center; margin-top: .8rem; color: inherit; text-decoration: none; background: #fff; border-radius: 12px; padding: .5rem; border: 2px solid #e1ddd4; }
.s-video img { width: 140px; border-radius: 8px; }
.s-video b { display: block; text-decoration: underline; }

/* telefono finto */
.ph { width: 230px; max-width: 100%; aspect-ratio: 9 / 18.5; border-radius: 34px; background: #17181c; padding: 10px; margin-inline: auto; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.ph-schermo { height: 100%; border-radius: 26px; background: linear-gradient(170deg, #2f3e68, #1d2747); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 14px 10px; text-align: center; }
.ph-stato { font-size: .85rem; opacity: .8; }
.ph-chiamata, .ph-fatto { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; }
.ph-chiamata[hidden], .ph-fatto[hidden] { display: none; }
.ph-avatar { width: 76px; height: 76px; border-radius: 50%; background: #f4876d; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.ph-avatar.grande { width: 120px; height: 120px; font-size: 3rem; }
.ph-chi { font-size: 1.3rem; font-weight: 700; } .ph-tipo { font-size: 1rem; opacity: .85; }
.ph-tasti { display: flex; gap: 2.2rem; margin-top: 2.4rem; }
.ph-tasti button { width: 64px; height: 64px; border-radius: 50%; border: 0; color: #fff; display: grid; place-items: center; cursor: pointer; }
.ph-tasti .ico { width: 30px; height: 30px; }
.ph-no { background: #d93025; } .ph-si { background: #1e8e3e; animation: squilla 1.4s ease-in-out infinite; }
@keyframes squilla { 50% { box-shadow: 0 0 0 12px rgba(30,142,62,.25); } }
.ph-passo { margin-top: 1rem; text-align: center; }
.verde { color: #157a3b; }

/* who */
.w-foto { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
.w-titolo { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.w-nome { font-size: 1.6rem; font-weight: 800; margin-bottom: .4rem; }
.w-testo p + p { margin-top: .5rem; }
.w-bottoni { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.w-bottoni a { background: var(--accento); color: var(--accento-testo, #fff); font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
