/* Tema scuro: ridefinisce i token. Attivato da data-theme="dark" sull'<html> (script con nonce nel <head>). */
html[data-theme="dark"] {
  --primario: #a9bbf2;
  --primario-scuro: #e0e7ff;
  --secondario: #b8d8b0;
  --oro-chiaro: #f5c58a;
  --corallo: #f2b1a7;
  --accento: #5fd3a6;
  --pericolo: #ff8a80;
  --testo: #e7ebf5;
  --titoli: #ffffff;
  --testo-tenue: #a7b1c8;
  --sfondo: #0a0d1a;
  --sfondo-tenue: #0e1224;
  --superficie: #12162b;
  --bordo: #262c4a;
  --tinta-blu: #1f2a4d;
  --tinta-oro: #3a2c1a;
  --tinta-corallo: #3d1d1a;
  --tinta-verde: #12332a;
  --ombra: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  --ombra-alta: 0 2px 4px rgb(0 0 0 / .3), 0 18px 40px rgb(0 0 0 / .45);
  color-scheme: dark;
}
html[data-theme="dark"] .testata::before { background: rgb(10 13 26 / .82); }
html[data-theme="dark"] .strumento[aria-pressed="true"] { background: var(--oro-chiaro); border-color: var(--oro-chiaro); color: #0a0d1a; }
html[data-theme="dark"] .menu-apri { background: var(--primario); border-color: var(--primario); color: #0a0d1a; }
html[data-theme="dark"] .piede { background: #06080f; }
html[data-theme="dark"] .pulsante--secondario { color: var(--primario); }
html[data-theme="dark"] .occhiello--oro { color: var(--oro-chiaro); }
html[data-theme="dark"] .occhiello--corallo { color: #fbcfe8; }
html[data-theme="dark"] .data-tile--oro { color: var(--oro-chiaro); }
html[data-theme="dark"] .data-tile--corallo { color: #fbcfe8; }
html[data-theme="dark"] .ascolta .onde span { background: var(--oro-chiaro); }
html[data-theme="dark"] .avviso--emergenza { background: #3a1512; color: #fde2df; }
html[data-theme="dark"] .avviso--emergenza a { color: #ffb4ab; }
html[data-theme="dark"] .esci-subito { color: #fff; background: #b3261e; border-color: #b3261e; }
html[data-theme="dark"] .numero:not(.numero--link) strong { background-image: var(--grad-testo); }
html[data-theme="dark"] .mese__conta { color: var(--oro-chiaro); }
html[data-theme="dark"] .slider__freccia:hover:not(:disabled) { background: var(--primario); border-color: var(--primario); color: #0a0d1a; }
html[data-theme="dark"] .pagina-interna main {
  background:
    radial-gradient(50rem 22rem at 0% 0%, rgb(74 104 201 / .2), transparent 70%),
    radial-gradient(40rem 20rem at 100% 0%, rgb(245 197 138 / .1), transparent 70%);
  background-repeat: no-repeat;
}
