/* Barra di scorrimento dinamica del sito (scrollbar.js crea .stadium-scrollbar e mette .has-stadium-scrollbar su <html>; solo computer con mouse).
   A riposo filo sottile e tenue; .is-active mentre si scorre; al passaggio del mouse o trascinando si allarga.
   --sections (home): un segmento per sezione, il segmento sotto il mouse si illumina. --continuous (tutte le altre pagine): un solo binario.
   data-tone segue lo sfondo sotto la barra: light (chiaro) cursore blu, dark (foto, blu, navy) cursore giallo, yellow cursore navy.
   Colori scritti per esteso: le pagine del vecchio tema non hanno le variabili del nuovo design. */
.stadium-scrollbar { --sb-thumb:#003087; --sb-track:rgba(16,28,43,.16); --sb-track-hover:rgba(0,48,135,.32); --sb-ease:cubic-bezier(.2,.7,.2,1); position:fixed; z-index:150; top:14px; right:0; bottom:14px; width:22px; }
.stadium-scrollbar[data-tone="dark"] { --sb-thumb:#ffdb00; --sb-track:rgba(244,239,228,.34); --sb-track-hover:rgba(255,219,0,.5); }
.stadium-scrollbar[data-tone="yellow"] { --sb-thumb:#071629; --sb-track:rgba(7,22,41,.2); --sb-track-hover:rgba(7,22,41,.38); }
.stadium-scrollbar.is-hidden { display:none; }
body.admin-bar .stadium-scrollbar { top:46px; }
.stadium-scrollbar__track { position:absolute; inset:0; }
.stadium-scrollbar__segment { position:absolute; left:0; right:0; cursor:pointer; }
.stadium-scrollbar__segment::before { content:""; position:absolute; top:3px; right:9px; bottom:3px; width:2px; background-color:var(--sb-track); opacity:0; transition:width .3s var(--sb-ease), right .3s var(--sb-ease), opacity .35s ease, background-color .4s ease; }
.stadium-scrollbar--continuous .stadium-scrollbar__segment::before { top:0; bottom:0; }
.stadium-scrollbar__thumb { position:absolute; top:0; right:8px; width:4px; background-color:var(--sb-thumb); opacity:.5; cursor:grab; will-change:transform; transition:width .3s var(--sb-ease), right .3s var(--sb-ease), opacity .35s ease, background-color .4s ease, box-shadow .4s ease; }
.stadium-scrollbar[data-tone="dark"] .stadium-scrollbar__thumb { box-shadow:0 0 0 1px rgba(7,22,41,.35); }
.stadium-scrollbar.is-active .stadium-scrollbar__segment::before { opacity:1; }
.stadium-scrollbar.is-active .stadium-scrollbar__thumb { opacity:1; }
.stadium-scrollbar:hover .stadium-scrollbar__segment::before, .stadium-scrollbar.is-dragging .stadium-scrollbar__segment::before { right:7px; width:6px; opacity:1; }
.stadium-scrollbar:hover .stadium-scrollbar__thumb, .stadium-scrollbar.is-dragging .stadium-scrollbar__thumb { right:6px; width:8px; opacity:1; }
.stadium-scrollbar--sections .stadium-scrollbar__segment:hover::before { background-color:var(--sb-track-hover); }
.stadium-scrollbar.is-dragging, .stadium-scrollbar.is-dragging .stadium-scrollbar__thumb { cursor:grabbing; }
@media (prefers-reduced-motion:reduce) {
	.stadium-scrollbar *, .stadium-scrollbar *::before { transition-duration:.01ms !important; }
}
