:root{--archivio-testo-filtro-inattivo:#111;--archivio-stella-spenta:#e0e0e0;--archivio-testo-intestazione:#fff;--archivio-testo-pulsante-tema:#fff;--archivio-blu-titoli:#234c80;--titolo-archivio:#234c80;--archivio-tema:#234c80;--archivio-font:"Archivio Inter", Arial, sans-serif;--archivio-avviso-chiaro:#dae1e9;--archivio-pagina-attiva-bg:#e4e4e4;--archivio-pagina-attiva-bordo:#c5c5c5;--archivio-pagina-attiva-testo:#101417;}
@font-face{font-family:"Archivio Inter";src:url("font/Inter-VariableFont_opsz,wght.ttf") format("truetype");font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:"Archivio Inter";src:url("font/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype");font-style:italic;font-weight:100 900;font-display:swap}
@font-face{font-family:"Archivio Merriweather";src:url("font/Merriweather-VariableFont_opsz,wdth,wght.ttf") format("truetype");font-style:normal;font-weight:300 900;font-display:swap}
@font-face{font-family:"Archivio Merriweather";src:url("font/Merriweather-Italic-VariableFont_opsz,wdth,wght.ttf") format("truetype");font-style:italic;font-weight:300 900;font-display:swap}
@font-face{font-family:"Archivio Nunito";src:url("font/Nunito-VariableFont_wght.ttf") format("truetype");font-style:normal;font-weight:200 1000;font-display:swap}
@font-face{font-family:"Archivio Nunito";src:url("font/Nunito-Italic-VariableFont_wght.ttf") format("truetype");font-style:italic;font-weight:200 1000;font-display:swap}
@font-face{font-family:"Archivio Roboto Slab";src:url("font/RobotoSlab-VariableFont_wght.ttf") format("truetype");font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:"Archivio Caveat";src:url("font/Caveat-VariableFont_wght.ttf") format("truetype");font-style:normal;font-weight:400 700;font-display:swap}
html body,html body input,html body select,html body textarea,html body button,html body table {font-family:var(--archivio-font)!important}
body .container.archivio-layout>.accesso-header,body .container.accesso-layout>.accesso-header,.accesso-header,.navbar {background-color:var(--archivio-tema)!important}
body .container.archivio-layout h1,body .container.archivio-layout h2,body .container.archivio-layout h3,body .container.archivio-layout h4,body .container.archivio-layout .titolo-impostazioni,body .container.archivio-layout .sottotitolo-impostazioni,body .container.accesso-layout h1,body .container.accesso-layout h2,body .container.accesso-layout h3 {color:var(--archivio-tema)!important}
body .container.archivio-layout .table thead th,body .container.archivio-layout table thead th,body .container.archivio-layout .dataTable thead th {background-color:var(--archivio-tema)!important;color:#fff!important}
body .btn-primary,body button.btn-primary,body input.btn-primary {background-color:var(--archivio-tema)!important;border-color:var(--archivio-tema)!important;color:#fff!important}
body .accesso-brand,body .accesso-header .accesso-brand {color:#fff!important}

/* Tema applicato anche agli elementi con colori precedentemente fissati. */
html body .container.archivio-layout > header.accesso-header,
html body .container.accesso-layout > header.accesso-header,
html body header.accesso-header,
html body .accesso-header {background:var(--archivio-tema)!important;background-color:var(--archivio-tema)!important}
html body .container.archivio-layout h1,html body .container.archivio-layout h2,html body .container.archivio-layout h3,
html body .container.archivio-layout h4,html body .container.accesso-layout h1,html body .container.accesso-layout h2,
html body .container.accesso-layout h3,html body .titolo-impostazioni,html body .sottotitolo-impostazioni,
html body .accesso-content h1,html body .accesso-content h2,html body .accesso-content h3 {color:var(--archivio-tema)!important}
html body .container.archivio-layout table thead th,html body .container.archivio-layout table.archivio-head-uniforme thead th,
html body .container.archivio-layout .dataTables_wrapper table thead th {background:var(--archivio-tema)!important;background-color:var(--archivio-tema)!important;color:#fff!important}
html body .btn-primary,html body .accesso-content .btn-primary {background:var(--archivio-tema)!important;border-color:var(--archivio-tema)!important}
html body,html body *,html body *::before,html body *::after {font-family:var(--archivio-font)!important}

/* Coordinamento globale dei colori del tema, mantenendo il bianco sulle testate. */
html body .archivio-menu-voci a {color:var(--archivio-tema)!important}
html body .archivio-menu-voci a:hover,html body .archivio-menu-voci a[aria-current="page"],html body .archivio-menu-toggle {background:var(--archivio-tema)!important;color:#fff!important}
html body .container.archivio-layout h1:not(.accesso-brand),html body .container.archivio-layout h2,html body .container.archivio-layout h3,html body .container.archivio-layout h4,html body .container.archivio-layout .grafico-archivio h3 {color:var(--archivio-tema)!important}
html body .container.archivio-layout table thead tr>th,html body table.table thead tr>th,html body table.dataTable thead tr>th {background:var(--archivio-tema)!important;color:#fff!important}
html body .archivio-percorso a {color:var(--archivio-tema)!important}

/* Avvisi di conferma: tonalità chiara coordinata al colore principale. */
html body .alert.alert-success,
html body .alert-success {
 background-color:var(--archivio-avviso-chiaro)!important;
 border-color:var(--archivio-tema)!important;
 color:var(--archivio-tema)!important;
}

/* Controlli nativi: radio, checkbox e indicatori di selezione. */
html body input[type="radio"],
html body input[type="checkbox"],
html body input[type="range"],
html body progress {accent-color:var(--archivio-tema)!important}
html body input[type="radio"]:focus-visible,
html body input[type="checkbox"]:focus-visible {outline:2px solid var(--archivio-tema);outline-offset:2px}
html body select:focus,html body input:focus,html body textarea:focus {border-color:var(--archivio-tema)!important}

/* Uniformità completa delle schermate di accesso */
html body .container.accesso-layout .accesso-content :is(h1,h2,h3,h4,h5,h6),html body .container.archivio-layout .accesso-content :is(h1,h2,h3,h4,h5,h6){color:var(--archivio-tema)!important}
html body .accesso-content a:not(.btn):not(.accesso-google),html body a[href="privacy.php"]:not(.btn){color:var(--archivio-tema)!important}
html body .accesso-header p{color:#fff!important}
html body .container.accesso-layout .accesso-header .accesso-brand,html body .container.archivio-layout .accesso-header .accesso-brand{color:#fff!important}
html body .container.accesso-layout :is(input,select,textarea):focus-visible{outline-color:var(--archivio-tema)!important}

/* Dimensioni ottiche uniformate per i caratteri calligrafici. */

/* Sezioni e schede dell'archivio: nessun blu fisso. */
html body .archivio-scheda.aperta > .archivio-scheda-titolo,
html body .archivio-scheda.aperta > .archivio-scheda-titolo:hover,
html body .archivio-scheda.aperta > .archivio-scheda-titolo:focus,
html body .cd-scheda.aperta > .cd-scheda-titolo,
html body .cd-scheda.aperta > .cd-scheda-titolo:hover,
html body .cd-scheda.aperta > .cd-scheda-titolo:focus {background:var(--archivio-tema)!important;color:#fff!important}
html body .archivio-scheda:not(.aperta) > .archivio-scheda-titolo,
html body .cd-scheda:not(.aperta) > .cd-scheda-titolo {background:#e9ecef!important;color:var(--archivio-tema)!important}
html body .container.archivio-layout h5,
html body .container.archivio-layout h6,
html body .container.archivio-layout .text-primary,
html body .container.archivio-layout .text-primary {color:var(--archivio-tema)!important}

/* Ripristino contrasto: il tema non deve colorare i testi sulle barre scure. */
html body .container.archivio-layout header.accesso-header h1,
html body .container.archivio-layout header.accesso-header h2,
html body .container.archivio-layout header.accesso-header .accesso-brand,
html body .container.accesso-layout header.accesso-header h1,
html body .container.accesso-layout header.accesso-header h2 {color:#fff!important}
html body .container.archivio-layout table thead th a,
html body .container.archivio-layout table thead th a:visited,
html body .container.archivio-layout table thead th a:hover,
html body .container.archivio-layout table thead th a:focus,
html body .container.archivio-layout .dataTables_wrapper table thead th a {color:#fff!important}
html body .archivio-menu-voci a[aria-current="page"],
html body .archivio-menu-voci a:hover {color:#fff!important}

/* Titolo Tracce nella scheda dettagli: colore del tema, mantenendo l’allineamento. */
html body .container.archivio-layout h4.titolo-tracce-cd { color:var(--archivio-tema)!important; text-align:left!important; }

/* Titolo Musicisti nella scheda dettagli CD. */
html body .container.archivio-layout h4.titolo-musicisti-cd {color:var(--archivio-tema)!important;text-align:left!important;}

/* Intestazione Gestione utenti: colori dinamici e contrasto delle frecce. */
html body .container.archivio-layout .users-table thead th,
html body .container.archivio-layout table.users-table thead tr th {background:var(--archivio-tema)!important;background-color:var(--archivio-tema)!important;color:#fff!important}
html body .container.archivio-layout .users-table thead th button,
html body .container.archivio-layout .users-table thead th button .arrows {color:#fff!important;background:transparent!important}

/* Avvisi uniformi: esito positivo/informativo dal tema, errori in rosso. */
html body .alert:not(.alert-danger):not(.alert-error):not(.archivio-avviso-errore),
html body .archivio-avviso:not(.archivio-avviso-errore) {background:var(--archivio-avviso-chiaro)!important;color:var(--archivio-tema)!important;border:1px solid var(--archivio-tema)!important;border-radius:8px;}
html body .alert.alert-danger,html body .alert.alert-error,html body .archivio-avviso-errore {background:#fbe7e8!important;background-color:#fbe7e8!important;color:#8b1822!important;border:1px solid #df9da3!important;border-radius:8px;}
html body .alert.alert-danger *,html body .archivio-avviso-errore * {color:#8b1822!important;}
html body .archivio-avviso-flottante {position:fixed;z-index:11000;top:18px;left:50%;transform:translateX(-50%);width:min(92vw,650px);padding:13px 20px;box-shadow:0 5px 22px #0002;}
html body .archivio-avviso-scomparsa {opacity:0!important;transition:opacity .45s ease!important;pointer-events:none;}

/* Giudizi: le stelle non assegnate restano distinguibili. */
html body .container.archivio-layout .star.star-spenta,
html body .container.archivio-layout table tbody td span.star.star-spenta,
html body .container.archivio-layout #cdTable tbody td span.star.star-spenta,
html body .container.archivio-layout #selezioniTable tbody td span.star.star-spenta {color:#e0e0e0!important;-webkit-text-fill-color:#e0e0e0!important;}


/* Paginazione DataTables uniforme su tutti i temi: allineata a sinistra,
   pulsanti come Gestione utenti anche nelle pagine Album e Selezioni. */
html body .container.archivio-layout .dataTables_wrapper .dataTables_paginate {
 float:none!important; text-align:left!important; display:flex!important;
 align-items:center!important; justify-content:flex-start!important;
 flex-wrap:wrap!important; gap:5px!important; margin:12px 0 0!important;
 padding:0!important;
}
html body .container.archivio-layout .dataTables_wrapper .dataTables_paginate .paginate_button {
 display:inline-flex!important; align-items:center!important; justify-content:center!important;
 box-sizing:border-box!important; min-height:38px!important; min-width:38px!important;
 padding:7px 12px!important; margin:0!important; border:1px solid #dfe3e6!important;
 border-radius:5px!important; background:#fff!important; background-image:none!important;
 color:#333!important; text-decoration:none!important; box-shadow:none!important;
}
html body .container.archivio-layout .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html body .container.archivio-layout .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
 background:var(--archivio-pagina-attiva-bg)!important; background-color:var(--archivio-pagina-attiva-bg)!important;
 border-color:var(--archivio-pagina-attiva-bordo)!important; color:#101417!important; -webkit-text-fill-color:#101417!important;
}
html body .container.archivio-layout .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
html body .container.archivio-layout .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
 opacity:.55!important; cursor:default!important; background:#fff!important; color:#777!important;
}
html body .container.archivio-layout .dataTables_wrapper .dataTables_paginate .paginate_button:not(.current):not(.disabled):hover,
html body .container.archivio-layout .dataTables_wrapper .dataTables_paginate .paginate_button:not(.current):not(.disabled):focus {
 background:#f4f6f8!important; color:#333!important; border-color:#dfe3e6!important;
}

html body {background-image:none!important;}


/* Paginazione Album e Selezioni: contrasto coerente con le gestioni. */
html body .container.archivio-layout .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html body .container.archivio-layout .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {background:var(--archivio-pagina-attiva-bg)!important;background-color:var(--archivio-pagina-attiva-bg)!important;border-color:var(--archivio-pagina-attiva-bordo)!important;color:#101417!important;-webkit-text-fill-color:#101417!important;}





/* Intestazione condivisa: stesso contrasto in pagine interne e accesso. */
html body :is(.container.archivio-layout,.container.accesso-layout) > header.accesso-header :is(.accesso-brand,h1,h2,p,span,small,strong,a) {
 color:var(--archivio-testo-intestazione)!important;
 -webkit-text-fill-color:var(--archivio-testo-intestazione)!important;
}
