/* VirtualCast — stile comune a tutte le pagine */
:root {
  --bg: #060b17; --panel: #0d1626; --panel-2: #101d33; --panel-3: #16253d;
  --line: #1b2a44; --line-2: #24395c;
  --text: #e7f1fb; --soft: #a9bbd3; --muted: #7c93b3;
  --accent: #22d3ee; --accent-ink: #060b17; --accent-bg: #10293a;
  --ok: #4ade80; --ok-bg: #0f3a2a; --warn: #fbbf24; --warn-bg: #3d2a0c; --bad: #f87171; --bad-bg: #3a1418;
  --r: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7ee8f7; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: 84px; }

/* barra in alto, sempre ferma */
.top { position: sticky; top: 0; z-index: 50; background: rgba(6,11,23,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.logo:hover { color: var(--text); }
.logo-v { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.tag-admin { padding: 3px 8px; border-radius: 6px; background: var(--warn-bg); color: var(--warn); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.menu { display: flex; gap: 6px; flex: 1 1 auto; flex-wrap: wrap; }
.menu a, .menu button { padding: 8px 12px; border-radius: 8px; color: var(--soft); font-size: 15px; background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { color: var(--text); }
.menu .on { background: var(--panel-2); color: var(--text); font-weight: 600; }
.top-azioni { display: flex; gap: 10px; align-items: center; }
.conta { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; }
.top .burger { display: none; }
@media (max-width: 760px) {
  .top-in { gap: 12px; }
  .top .burger { display: inline-flex; margin-left: auto; }
  .menu { order: 3; flex-basis: 100%; display: none; flex-direction: column; }
  .top.aperto .menu { display: flex; }
  .top-azioni { order: 2; }
  .top .solo-largo { display: none; }
}

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-weight: 600; font-size: 15px; cursor: pointer; text-align: center; }
.btn:hover { color: var(--text); border-color: var(--muted); }
.btn-p { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn-p:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn-admin { border-color: var(--warn); color: var(--warn); }
.btn-admin:hover { color: var(--warn); border-color: var(--warn); background: var(--warn-bg); }
.btn-pic { min-height: 36px; padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-rosso { color: var(--bad); }
.btn-largo { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }

/* blocchi */
.pannello { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.titolo-sez { font-size: 36px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.sotto { color: var(--soft); font-size: 17px; }
.piccolo { font-size: 14px; color: var(--muted); }
.griglia { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); }
.b-off { background: var(--panel-3); color: var(--soft); }
.b-acc { background: var(--accent-bg); color: var(--accent); }

/* schede pacchetto */
.scheda { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.scheda.top-pick { border-color: var(--accent); }
.foto { height: 160px; background: var(--panel-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; overflow: hidden; }
.foto img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.scheda-in { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.scheda h3 { font-size: 21px; font-weight: 700; }
.scheda .descr { color: var(--soft); font-size: 15px; flex: 1 1 auto; }
.prezzo { color: var(--muted); font-size: 15px; }
.titolo-servizi { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.servizio { display: flex; flex-direction: column; gap: 12px; }
.servizio h3 { font-size: 18px; }
.servizio .descr { color: var(--soft); font-size: 15px; flex: 1 1 auto; }
.prezzo strong { color: var(--text); font-size: 22px; }

/* elenco (quando i pacchetti sono tanti) */
.riga { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.riga:last-child { border-bottom: 1px solid var(--line); }
.riga .num { font-size: 28px; font-weight: 800; color: var(--line-2); width: 44px; }
.riga .foto { flex: 0 0 150px; height: 92px; border-radius: 10px; border: 1px solid var(--line); }
.riga .info { flex: 1 1 300px; min-width: 0; }
.riga h3 { font-size: 20px; display: inline; margin-right: 8px; }
.riga .prezzo { flex: 0 0 150px; }

/* moduli */
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--soft); }
.campo input, .campo select, .campo textarea, .inp { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-weight: 400; font-size: 15px; width: 100%; }
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .inp:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.spunta { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soft); }
.spunta input { margin-top: 4px; }
.modulo { display: flex; flex-direction: column; gap: 14px; }
.due { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.errore { background: var(--bad-bg); color: var(--bad); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.okmsg { background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* scelte a pulsanti (mesi, pacchetti) */
.scelte { display: flex; flex-wrap: wrap; gap: 8px; }
.scelta { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--soft); font-weight: 600; cursor: pointer; min-height: 44px; }
.scelta.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* barra della scadenza */
.barra { height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.barra span { display: block; height: 100%; background: var(--accent); }

/* tabelle */
.tab-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 8px; font-weight: 700; white-space: nowrap; }
td { padding: 12px 8px; border-top: 1px solid var(--line); vertical-align: middle; }

/* avviso in basso */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel-3); border: 1px solid var(--line-2); color: var(--text); padding: 12px 18px; border-radius: 12px; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100% - 32px); }

dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r); padding: 24px; width: min(460px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.6); }

/* foto che si ingrandiscono */
.zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.zoom img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.lente { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(6,11,23,.75); color: var(--text); display: flex; align-items: center; justify-content: center; opacity: .85; transition: opacity .15s, transform .15s; }
.zoom:hover .lente, .zoom:focus-visible .lente { opacity: 1; transform: scale(1.08); }
.zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(3,6,14,.94); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); background: var(--panel); }
.lightbox figcaption { color: var(--soft); font-weight: 600; }
.lb-chiudi { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 26px; cursor: pointer; }
.lb-freccia { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 28px; cursor: pointer; }
.lb-freccia[hidden] { display: none; }
@media (max-width: 760px) { .lightbox { padding: 64px 8px 16px; flex-wrap: wrap; } .lightbox figure { order: -1; flex-basis: 100%; } }

/* sfondo fisso del sito: resta fermo mentre il contenuto scorre */
.sfondo { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sfondo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 75% at 50% 45%, rgba(6,11,23,.92) 0%, rgba(6,11,23,.6) 55%, rgba(6,11,23,.15) 100%); }
.sfondo-giro { position: absolute; left: -25%; right: -25%; top: -20%; bottom: -20%; transform: rotate(-8deg); display: flex; flex-direction: column; justify-content: space-around; }
.sfondo-riga { display: flex; white-space: nowrap; font-weight: 900; font-size: clamp(72px, 11vw, 170px); line-height: 1; letter-spacing: .04em; animation: sfondo-scorre 80s linear infinite; }
.sfondo-riga span { flex: 0 0 auto; padding-right: .3em; }
.sfondo-riga.vuota { color: transparent; -webkit-text-stroke: 1.5px rgba(34,211,238,.16); }
.sfondo-riga.piena { color: rgba(90,160,240,.07); }
.sfondo-riga.verso-dx { animation-direction: reverse; }
.sfondo.fermo .sfondo-riga { animation: none; }
.sfondo-img { background-size: cover; background-position: center; }
.sfondo-img::after { background: rgba(6,11,23,.78); }
@keyframes sfondo-scorre { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sfondo-riga { animation: none; } }

/* pagine create dall'admin */
.testo-pagina { color: var(--soft); font-size: 17px; line-height: 1.7; }
.testo-pagina h2 { color: var(--text); font-size: 26px; margin: 28px 0 10px; }
.testo-pagina h3 { color: var(--text); font-size: 20px; margin: 22px 0 8px; }
.testo-pagina p { margin: 0 0 14px; }
.testo-pagina ul { margin: 0 0 14px; padding-left: 22px; }
.testo-pagina strong { color: var(--text); }
.testo-pagina img { max-width: 100%; border-radius: 12px; margin: 10px 0; cursor: zoom-in; border: 1px solid var(--line); }
.testo-pagina a { text-decoration: underline; }

/* etichetta "si installa come app" */
.app-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); font-weight: 600; }

.piede { border-top: 1px solid var(--line); margin-top: 40px; background: rgba(6,11,23,.85); }
.piede-in { max-width: 1200px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; color: var(--muted); font-size: 14px; }
.piede-in a { color: var(--soft); }

/* pannelli (area e admin): menu a sinistra, la sezione scelta a destra */
.pan { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; max-width: 1360px; margin: 0 auto; padding: 24px 24px 64px; align-items: start; }
.lato { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; max-height: calc(100vh - 96px); overflow-y: auto; }
.lato .gruppo { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 4px; }
.lato .gruppo:first-child { padding-top: 4px; }
.lato button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--soft); font-size: 14.5px; font-weight: 500; text-align: left; cursor: pointer; }
.lato button:hover { background: var(--panel-2); color: var(--text); }
.lato button.on { background: var(--accent-bg); color: var(--accent); font-weight: 700; }
.lato button svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lato button .conta { margin-left: auto; }
.lato button .tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.lato button .tx small { font-size: 12px; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lato button.on .tx small { color: inherit; opacity: .75; }
.lato button:has(.tx small) { min-height: 52px; }
.lato .sep { height: 1px; background: var(--line); margin: 6px 8px; }
.schede-pan { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-top: -4px; }
.schede-pan::-webkit-scrollbar { display: none; }
.schede-pan button { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; white-space: nowrap; min-height: 44px; padding: 8px 14px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--soft); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.schede-pan button:hover { color: var(--text); }
.schede-pan button.on { color: var(--accent); border-bottom-color: var(--accent); }
.pan-testa { display: flex; flex-direction: column; gap: 12px; }
.pan-testa:empty { display: none; }
.contenuto.multi > section > .vista-testa h1 { display: none; }
.lato .chi { display: flex; align-items: center; gap: 10px; padding: 6px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.lato .chi b { display: block; font-size: 14.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lato .chi small { color: var(--muted); font-size: 12.5px; }
.contenuto { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contenuto > section { display: flex; flex-direction: column; gap: 16px; }
.contenuto .pannello { padding: 20px; }
.vista-testa h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.vista-testa p { color: var(--muted); font-size: 14.5px; }
.contenuto h2 { font-size: 17px; margin-bottom: 10px; }
.contenuto .griglia { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
/* il pulsante "menu" compare solo sul telefono */
.lato .lato-apri { display: none; }
@media (max-width: 900px) {
  .pan { grid-template-columns: minmax(0, 1fr); padding: 12px 16px 48px; gap: 14px; }
  .lato { position: static; max-height: none; overflow: visible; padding: 6px; }
  .lato .gruppo { display: none; }
  .lato:not(.aperto) > :not(.lato-apri) { display: none; }
  .lato.aperto .lato-apri { margin-bottom: 6px; border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; }
  .lato.aperto .lato-apri .freccia { transform: rotate(180deg); }
  .lato .lato-apri { display: flex; color: var(--text); font-weight: 700; }
  .lato .lato-apri .ic { display: flex; color: var(--accent); }
  .lato .lato-apri .tx { flex: 1 1 auto; }
  .lato .lato-apri .freccia { font-size: 18px; color: var(--muted); transition: transform .15s; }
  .lato button { min-height: 52px; }
  .lato button .tx small { white-space: normal; }
  /* le schede in alto: pulsanti che vanno a capo, tutti leggibili */
  .schede-pan { flex-wrap: wrap; gap: 6px; overflow: visible; border-bottom: 0; margin-top: 0; }
  .schede-pan button { min-height: 40px; padding: 8px 14px; margin: 0; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
  .schede-pan button.on { border-color: var(--accent); background: var(--accent-bg); }
}
}
.pagina-pan .top-in { max-width: 1360px; }

/* ---------- assistenza (ticket) ---------- */
.tk-lista { display: flex; flex-direction: column; gap: 8px; }
.tk-riga { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tk-riga:hover { border-color: var(--accent); }
.tk-riga.tk-nuovo { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.tk-riga .tk-ogg { flex: 1 1 220px; min-width: 0; }
.tk-riga .tk-ogg b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-pallino { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.tk-filo { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.tk-msg { max-width: min(640px, 92%); padding: 10px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line-2); align-self: flex-start; }
.tk-msg.tk-mio { align-self: flex-end; background: color-mix(in srgb, var(--accent) 14%, var(--panel-2)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.tk-chi { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.tk-msg.tk-admin .tk-chi { color: var(--accent); font-weight: 700; }
.tk-testo { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.tk-risposta textarea { min-height: 110px; }

/* scelte a riquadri (admin: aspetto; area: chat nel Playout) */
.opzioni { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.opzione { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel-2); cursor: pointer; }
.opzione:has(input:checked), .opzione.on { border-color: var(--accent); }
.opzione input { margin-top: 3px; accent-color: var(--accent); }
.opzione b { display: block; color: var(--text); margin-bottom: 2px; }
.opzione small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.opzione.spenta { opacity: .5; cursor: not-allowed; }

/* ---------- guide (pagine "guida-…") ---------- */
.testo-pagina ol.passi { list-style: none; counter-reset: passo; margin: 0 0 16px; padding: 0; }
.testo-pagina ol.passi > li { counter-increment: passo; position: relative; padding: 2px 0 0 44px; margin-bottom: 12px; min-height: 30px; }
.testo-pagina ol.passi > li::before { content: counter(passo); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #06131c; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.testo-pagina .riquadro { margin: 4px 0 16px; padding: 14px 16px 14px 18px; border-radius: 12px; background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.35); border-left-width: 4px; color: var(--text); font-size: 16px; }
.testo-pagina .riquadro.attenzione { background: rgba(255,181,71,.08); border-color: rgba(255,181,71,.45); }
.testo-pagina figure { margin: 14px 0 22px; }
.testo-pagina figure img { display: block; width: auto; max-width: 100%; max-height: 680px; margin: 0 auto; }
.testo-pagina figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
body.guida .foglio { max-width: 980px; }
.guida-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.guida-indice { margin: 18px 0 8px; padding: 16px 20px; border-radius: 12px; background: rgba(6,11,23,.55); border: 1px solid var(--line); }
.guida-indice b { display: block; color: var(--text); margin-bottom: 6px; }
.guida-indice ol { margin: 0; padding-left: 22px; columns: 2 240px; column-gap: 28px; }
.guida-indice li { margin-bottom: 4px; break-inside: avoid; }
.guida-indice a { color: var(--soft); text-decoration: none; }
.guida-indice a:hover { color: var(--accent); }
.testo-pagina h2 { scroll-margin-top: 90px; }
@media print {
  body.guida .top, body.guida .piede, body.guida .guida-barra, body.guida #vc-sfondo, body.guida .sfondo { display: none !important; }
  body.guida, body.guida main { background: #fff !important; padding: 0 !important; }
  body.guida .foglio { background: #fff !important; border: 0 !important; padding: 0 !important; max-width: none; color: #10222f; }
  body.guida .foglio h1, body.guida .testo-pagina h2, body.guida .testo-pagina h3, body.guida .testo-pagina strong, body.guida .guida-indice b { color: #0b2433 !important; }
  body.guida .testo-pagina, body.guida .guida-indice a, body.guida figcaption { color: #213847 !important; font-size: 11pt; }
  body.guida .testo-pagina .riquadro { color: #10222f !important; background: #eef8fb !important; }
  body.guida .testo-pagina .riquadro.attenzione { background: #fff6e6 !important; }
  body.guida .guida-indice { background: #f4f9fb !important; }
  body.guida .testo-pagina h2 { break-after: avoid; }
  body.guida figure, body.guida .riquadro, body.guida ol.passi > li { break-inside: avoid; }
  body.guida figure img { border: 1px solid #c9dbe3; max-height: 10cm; }
  @page { margin: 14mm 14mm 16mm; }
}

/* pagina "Guide": un riquadro per ogni programma */
.pagina-guide .foglio { max-width: 1040px; }
.guide-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.guida-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.03); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.guida-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.guida-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); }
.guida-card-t { font-weight: 800; font-size: 18px; }
.guida-card-vai { margin-top: auto; font-weight: 700; color: var(--accent); }

/* tabelle nelle guide */
.testo-pagina .tabella { overflow-x: auto; margin: 6px 0 18px; }
.testo-pagina table { width: 100%; border-collapse: collapse; font-size: 15px; }
.testo-pagina th, .testo-pagina td { padding: 9px 12px; border-bottom: 1px solid rgba(148,163,184,.25); text-align: left; vertical-align: top; }
.testo-pagina th { font-weight: 800; background: rgba(34,211,238,.08); }
body.guida .testo-pagina th { background: #eef8fb; color: #10222f; }
body.guida .testo-pagina td { color: inherit; }
