:root { --fondo: #0f1724; --pannello: #172235; --bordo: #2c3d5c; --testo: #e8edf5; --tenue: #9aa8bc; --accento: #fca311; --blu: #4c8dff; --ok: #5fd08a; --ko: #ff7b72;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--testo); background: var(--fondo); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
a { color: var(--blu); }
button, input, textarea { font: inherit; color: inherit; }
button { background: var(--accento); color: #14213d; border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
button.secondario { background: #22324d; color: var(--testo); font-weight: 500; }
button:disabled { opacity: .5; }
input, textarea { background: var(--fondo); border: 1px solid var(--bordo); border-radius: 8px; padding: 11px 12px; width: 100%; }
label { display: block; margin: 12px 0 4px; color: var(--tenue); font-size: .9rem; }
.testa { display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: #14213d; position: sticky; top: 0; z-index: 2; }
.marchio { display: flex; align-items: center; gap: 10px; color: var(--testo); text-decoration: none; font-weight: 700; }
.marchio img { width: 32px; height: 32px; }
.spazio { flex: 1; }
.utente { color: var(--tenue); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30vw; }
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 16px; }
footer { text-align: center; color: #6f7d92; font-size: .8rem; padding: 24px 12px; }
.tenue { color: var(--tenue); }
.piccolo { font-size: .85rem; }
.ok { color: var(--ok); } .ko { color: var(--ko); }
.schede { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.scheda { background: var(--pannello); border: 1px solid var(--bordo); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--testo); display: block; }
.scheda h2, .scheda h3 { margin: 0 0 6px; font-size: 1.1rem; }
.titoloEvento h1 { margin: 4px 0; font-size: clamp(1.3rem, 3vw, 2rem); }
.linguette { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.linguette a { padding: 9px 14px; border-radius: 999px; background: #22324d; color: var(--testo); text-decoration: none; }
.linguette a.attiva { background: var(--accento); color: #14213d; font-weight: 700; }
.giorni { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; }
.giorni button { white-space: nowrap; }
.sala { margin: 18px 0; }
.sala > h3 { margin: 0 0 8px; color: var(--accento); }
.sessione { background: var(--pannello); border: 1px solid var(--bordo); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.sessione h4 { margin: 0 0 8px; }
.intervento { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--bordo); }
.intervento .ora { font-variant-numeric: tabular-nums; color: var(--tenue); }
.intervento .relatori { color: var(--tenue); font-size: .9rem; }
.avviso { background: #2a2414; border: 1px solid #5c4a1a; border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.modulo { max-width: 460px; background: var(--pannello); border: 1px solid var(--bordo); border-radius: 14px; padding: 18px; }
.modulo .bottoni { display: flex; gap: 10px; margin-top: 16px; }
.codice { font-size: 1.8rem; letter-spacing: .4em; text-align: center; }
.live { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.live .scheda .stato { font-size: .8rem; padding: 2px 8px; border-radius: 999px; background: #22324d; }
.live .scheda .stato.inOnda { background: #7f1d1d; color: #fff; }
.live .tempo { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.live .tempo.fine { color: var(--ko); }

.intervento .materiali { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; font-size: .9rem; }
.riquadroVideo { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; margin: 10px 0; }
.riquadroVideo video, .riquadroVideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.barraPdf { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.visore { background: #0b1324; border-radius: 10px; padding: 8px; overflow: auto; text-align: center; }
.paginaPdf { max-width: 100%; background: #fff; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.badge { max-width: 360px; margin: 16px auto; padding: 18px; text-align: center; background: #fff; color: #111; border-radius: 14px; }
.badge h2 { margin: 0 0 10px; }
.qrBadge svg { width: 100%; height: auto; }
.codiceBadge { font: 700 1.6rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .12em; margin: 8px 0; }
.badge .tenue { color: #555; }
