/* ADC · Identità condivisa ispirata ai modelli approvati · 23 novembre 2026 */
:root{
 --adc-visual-night:#062c2d;
 --adc-visual-deep:#083b38;
 --adc-visual-emerald:#14564c;
 --adc-visual-gold:#e0bb78;
 --adc-visual-ivory:#f4f1e6;
 --adc-visual-glass:rgba(11,67,60,.84);
 --adc-visual-line:rgba(229,197,135,.52);
 --adc-visual-shadow:0 14px 38px rgba(0,24,25,.3);
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)){
 background:
  radial-gradient(ellipse at 14% 0%,rgba(36,110,91,.38),transparent 38%),
  linear-gradient(145deg,#062c2d 0%,#0b443e 52%,#062d30 100%)!important;
 color:var(--adc-visual-ivory)!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header{
 display:flex!important;align-items:center;justify-content:space-between;gap:18px;
 width:100%;padding:0 clamp(14px,3vw,42px);
 background:linear-gradient(105deg,#052d30,#0d4942)!important;
 border-bottom:1px solid var(--adc-visual-line)!important;
 box-shadow:0 7px 22px rgba(0,23,23,.3)!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-bar{
 width:auto;max-width:none;margin:0;padding:8px 0!important;flex:0 0 auto;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-emblem{
 width:48px;height:48px;object-fit:contain;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-brand{
 max-width:290px;font-size:clamp(1rem,1.5vw,1.35rem)!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-brand small{
 font-size:.69rem!important;margin-top:3px!important;color:#ead6aa!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-links{
 max-width:none;margin:0;padding:0;justify-content:flex-end;align-items:center;gap:3px;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-links a,
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-more>summary{
 min-height:42px;padding:9px 11px;color:#f5f2e8!important;border-radius:9px;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-links a:is(:hover,:focus-visible,[aria-current=page]),
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-more[open]>summary{
 color:#ffe2a6!important;background:rgba(41,112,94,.72)!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) > main,
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main#contenuto,
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main.adc-unified-page{
 box-sizing:border-box;width:min(100% - 32px,1280px);max-width:1280px;
 margin:clamp(16px,2.4vw,30px) auto;padding:clamp(20px,3.3vw,44px);
 color:var(--adc-visual-ivory)!important;
 background:linear-gradient(145deg,rgba(12,68,62,.91),rgba(5,47,48,.94))!important;
 border:1px solid var(--adc-visual-line)!important;border-radius:20px!important;
 box-shadow:var(--adc-visual-shadow)!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(.hero,.card,.resource,.note,.fact,.box,.panel,.case,.unitlist a,article,fieldset,details:not(.adc-u-more)){
 color:var(--adc-visual-ivory)!important;
 background:linear-gradient(145deg,rgba(24,91,79,.76),rgba(8,57,54,.86))!important;
 border:1px solid var(--adc-visual-line)!important;border-radius:15px!important;
 box-shadow:0 8px 23px rgba(0,25,25,.2)!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(.hero,.card,.resource,.note,.fact,.box,.panel,.case,.unitlist a,article,fieldset,details:not(.adc-u-more)) :is(h2,h3,h4){
 color:#ffdfa2!important;-webkit-text-fill-color:#ffdfa2!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(input,select,textarea){
 width:auto;max-width:100%;min-height:44px;padding:11px 13px;
 color:#fff8e9!important;background:rgba(3,43,43,.72)!important;
 border:1px solid rgba(235,207,154,.65)!important;border-radius:10px!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main input::placeholder,
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main textarea::placeholder{color:#d7ded4}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(button,.cta,[type=submit]){
 min-height:44px;border-radius:11px;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(table,th,td){
 border-color:rgba(229,197,135,.45)!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main table{
 border-collapse:collapse;background:rgba(5,48,46,.4)!important;color:#f3f0e6!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main th{
 background:rgba(209,169,98,.22)!important;color:#fff0ca!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(pre,blockquote,.transcription,.document-transcription,.source-transcription,.source-text,.facsimile,.document-original,[data-document-text]){
 color:#263a33!important;-webkit-text-fill-color:#263a33!important;
 background:#f7f1e4!important;border:1px solid #d7c49d!important;border-radius:8px;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) :is(footer.adc-inner-footer,footer.adc-archive-footer,footer.adc-global-footer,body>footer){
 background:linear-gradient(105deg,#0d4b44,#073332)!important;
 color:var(--adc-visual-ivory)!important;border-top:1px solid var(--adc-visual-line)!important;
}
body.adc-document-search{
 margin:0!important;min-height:100vh;color:var(--adc-visual-ivory)!important;
 background:linear-gradient(145deg,#062c2d,#0e4a42 58%,#062d30)!important;
}
body.adc-document-search>header{background:linear-gradient(105deg,#052d30,#0d4942)!important;color:#fff8e9!important;border-bottom:1px solid var(--adc-visual-line)}
body.adc-document-search>header a{color:#ffe0a1!important}
body.adc-document-search>main{max-width:1120px;margin:24px auto;padding:clamp(18px,3vw,38px);background:rgba(8,59,55,.84);border:1px solid var(--adc-visual-line);border-radius:18px;box-shadow:var(--adc-visual-shadow)}
body.adc-document-search :is(h1,h2,h3){color:#fff8e9}
body.adc-document-search :is(.search,.corpus-record,.info){background:linear-gradient(145deg,rgba(24,91,79,.78),rgba(7,54,52,.9));color:#f3f0e6;border:1px solid var(--adc-visual-line);border-radius:14px}
body.adc-document-search .corpus-record :is(p,small,li){color:#f0f0e7}
body.adc-document-search .search input{color:#fff8e9;background:rgba(2,43,43,.72);border-color:var(--adc-visual-line)}
body.adc-document-search .search button{color:#193d35;background:linear-gradient(#f4dfa8,#cc9b50);border:1px solid #edd292}
body.adc-document-search footer{color:#f0eee4;border-color:var(--adc-visual-line)}
body.adc-document-search footer a{color:#ffdc98}
body.adc-widget{margin:0!important;background:transparent!important;color:#f3f0e6}
body.adc-widget .widget{color:#f3f0e6;background:linear-gradient(145deg,rgba(15,79,71,.97),rgba(5,48,49,.98));border:1px solid var(--adc-visual-line);box-shadow:0 8px 24px rgba(0,24,25,.26)}
body.adc-widget .widget :is(.content,.footer,.foot){color:#f0f0e7}
body.adc-widget .widget :is(.footer,.foot){border-color:rgba(229,197,135,.4)}
body.adc-widget .widget a{color:#ffdc98}
body.adc-widget .widget input{color:#fff8e9;background:rgba(2,43,43,.8);border-color:var(--adc-visual-line)}
body.adc-widget .widget button{color:#193d35;background:linear-gradient(#f4dfa8,#cc9b50);border:1px solid #edd292}
body.adc-special-redirect{color:#f4f1e6!important;background:linear-gradient(145deg,#062c2d,#0e4a42 58%,#062d30)!important}
body.adc-special-redirect main{padding:26px;background:rgba(8,59,55,.85);border:1px solid var(--adc-visual-line);border-radius:18px;box-shadow:var(--adc-visual-shadow)}
body.adc-special-redirect :is(h1,p){color:#f4f1e6}
body.adc-special-redirect a{color:#ffdc98}
body:has(#adc-unified-header) :is(a,button,input,textarea,select,summary):focus-visible,
body.adc-shared-lux :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #f0c774!important;outline-offset:3px!important}
@media(max-width:1100px){
 body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header{display:block!important;padding:0 12px}
 body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-bar{box-sizing:border-box;width:100%;max-width:1180px;margin:auto;padding:10px 5px!important}
 body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-toggle{display:block!important}
 body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-links{display:none;flex-direction:column;align-items:stretch;padding:7px 8px 14px}
 body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-links[data-open=true]{display:flex!important}
 body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-links a{display:flex;min-height:46px;align-items:center}
 body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) > main{width:calc(100% - 22px);padding:19px 15px;margin:11px auto 22px}
 body.adc-document-search>main{width:calc(100% - 22px);padding:18px 14px}
}
@media(max-width:1100px){
 #adc-unified-header .adc-u-brand{flex:1 1 auto;min-width:0}
 #adc-unified-header .adc-u-brand-text{overflow-wrap:anywhere}
 #adc-unified-header .adc-u-toggle{flex:0 0 auto;white-space:nowrap}
}
@media(max-width:600px){
 body.adc-widget .top,body.adc-widget .head{padding:16px}
 body.adc-widget .content{padding:16px}
 body.adc-widget .widget input{min-width:0}
}
@media(prefers-reduced-motion:reduce){
 body:has(#adc-unified-header) :is(a,button){transition:none!important}
}
/* Testi chiari soltanto sui pannelli scuri; le superfici documentarie restano leggibili. */
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main>h1,
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main>.hero>h1{
 color:#fff8e9!important;-webkit-text-fill-color:#fff8e9!important;
 text-decoration-color:var(--adc-visual-gold)!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(.hero,.card,.resource,.note,.fact,.box,.panel,.case,.unitlist a,article,fieldset,details:not(.adc-u-more)) :is(h1,h2,h3,h4,p,li,dt,dd,label,small){
 color:#f0f0e7!important;-webkit-text-fill-color:#f0f0e7!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(.hero,.card,.resource,.note,.fact,.box,.panel,.case,.unitlist a,article,fieldset,details:not(.adc-u-more)) :is(h1,h2,h3,h4){
 color:#ffdfa2!important;-webkit-text-fill-color:#ffdfa2!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(.hero,.card,.resource,.note,.fact,.box,.panel,.case,.unitlist a,article,fieldset,details:not(.adc-u-more)) a:not(.cta):not([class*="button"]){
 color:#ffdc98!important;-webkit-text-fill-color:#ffdc98!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main figure figcaption{
 display:block;padding:10px 12px;border-radius:0 0 9px 9px;
 color:#30463d!important;-webkit-text-fill-color:#30463d!important;background:#f7f1e4!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main figure figcaption a{
 color:#17594f!important;-webkit-text-fill-color:#17594f!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main .adc-scholars-access{
 background:linear-gradient(145deg,rgba(24,91,79,.9),rgba(7,54,52,.95))!important;
 color:#f0f0e7!important;border:1px solid var(--adc-visual-line)!important;border-radius:15px;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main .adc-scholars-access :is(p,a){
 color:#f0f0e7!important;-webkit-text-fill-color:#f0f0e7!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main .adc-scholars-access a{
 color:#ffdc98!important;-webkit-text-fill-color:#ffdc98!important;
}

/* Schede tematiche e moduli: superfici glass con testo ad alto contrasto. */
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(.adc-access-grid>.route,.adc-access-grid>a,.adc-scholars-grid>a,.route,.sheet,.media-videos,.media-card,.media-note,.adc-photo-context,.evidenze-table,[id^="adc-"],#territorio,#castello,#comunita,#memo-form,#registro-pubblico,#registro-stato){
 color:#f0f0e7!important;-webkit-text-fill-color:#f0f0e7!important;
 background:linear-gradient(145deg,rgba(24,91,79,.86),rgba(7,54,52,.94))!important;
 border-color:var(--adc-visual-line)!important;border-radius:14px;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(.adc-access-grid>.route,.adc-access-grid>a,.adc-scholars-grid>a,.route,.sheet,.media-videos,.media-card,.media-note,.adc-photo-context,.evidenze-table,[id^="adc-"],#territorio,#castello,#comunita,#memo-form,#registro-pubblico,#registro-stato) :is(h1,h2,h3,h4,p,li,dt,dd,label,small,span,strong){
 color:#f0f0e7!important;-webkit-text-fill-color:#f0f0e7!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(.adc-access-grid>.route,.adc-access-grid>a,.adc-scholars-grid>a,.route,.sheet,.media-videos,.media-card,.media-note,.adc-photo-context,.evidenze-table,[id^="adc-"],#territorio,#castello,#comunita,#memo-form,#registro-pubblico,#registro-stato) :is(h1,h2,h3,h4){
 color:#ffdfa2!important;-webkit-text-fill-color:#ffdfa2!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(.adc-access-grid>.route,.adc-access-grid>a,.adc-scholars-grid>a,.route,.sheet,.media-videos,.media-card,.media-note,.adc-photo-context,.evidenze-table,[id^="adc-"],#territorio,#castello,#comunita,#memo-form,#registro-pubblico,#registro-stato) a{
 color:#ffdc98!important;-webkit-text-fill-color:#ffdc98!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main .tag{
 background:rgba(213,173,103,.24)!important;color:#fff0c8!important;-webkit-text-fill-color:#fff0c8!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main .evidenze-table :is(th,td){
 background:rgba(8,57,54,.82)!important;color:#f0f0e7!important;-webkit-text-fill-color:#f0f0e7!important;
 border-color:var(--adc-visual-line)!important;
}


/* Correzioni di leggibilità e contenimento della barra condivisa. */
@media (min-width:761px) {
  body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header {
    box-sizing:border-box;
    min-width:0;
    flex-wrap:wrap;
  }
  body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-bar {
    min-width:0;
    flex:0 1 auto;
  }
  body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) #adc-unified-header .adc-u-links {
    min-width:0;
    flex:1 1 600px;
    flex-wrap:wrap;
  }
}

/* I capitoli di lettura mantengono testo chiaro solo sul fondo scuro. */
body:has(#adc-unified-header) main#top-storia .chapter {
  color:var(--adc-visual-ivory)!important;
  background:linear-gradient(145deg,rgba(24,91,79,.88),rgba(7,54,52,.94))!important;
  border-color:var(--adc-visual-line)!important;
}
body:has(#adc-unified-header) main#top-storia .chapter :is(p,li,small) {
  color:#f0f0e7!important;
  -webkit-text-fill-color:#f0f0e7!important;
}
body:has(#adc-unified-header) main#top-storia .chapter :is(h2,h3) {
  color:#ffdfa2!important;
  -webkit-text-fill-color:#ffdfa2!important;
}
body:has(#adc-unified-header) main#top-storia .chapter a {
  color:#ffdc98!important;
  -webkit-text-fill-color:#ffdc98!important;
}

/* Il pulsante secondario conserva un contrasto netto sulla scheda scura. */
body:has(#adc-unified-header) main .sheet button.secondary {
  background:#0c3f3b!important;
  color:#fff8e9!important;
  -webkit-text-fill-color:#fff8e9!important;
  border-color:#d8b879!important;
}
body:has(#adc-unified-header) main .sheet button.secondary:hover {
  background:#15574e!important;
}

/* Le didascalie restano documentarie, con testo scuro sul fondo avorio. */
body:has(#adc-unified-header) main figure figcaption :is(strong,em) {
  color:#30463d!important;
  -webkit-text-fill-color:#30463d!important;
}
body:has(#adc-unified-header) main figure figcaption a {
  color:#17594f!important;
  -webkit-text-fill-color:#17594f!important;
}
body:has(#adc-unified-header) main .adc-photo-context .adc-photo-hint {
  display:inline-block;
  margin-top:7px;
  padding:6px 10px;
  border-radius:7px;
  background:#0b3f3a!important;
  color:#fff8e9!important;
  -webkit-text-fill-color:#fff8e9!important;
}


/* Corregge le eccezioni documentarie rimaste nel test WCAG. */
/* La scheda di approfondimento della storia usa un pannello scuro coerente col tema. */
body:has(#adc-unified-header) main#top-storia #percorsi-documentati {
  color:#f0f0e7!important;
  -webkit-text-fill-color:#f0f0e7!important;
  background:linear-gradient(145deg,rgba(24,91,79,.88),rgba(7,54,52,.94))!important;
  border-color:var(--adc-visual-line)!important;
}
body:has(#adc-unified-header) main#top-storia #percorsi-documentati :is(h2,p) {
  color:#f0f0e7!important;
  -webkit-text-fill-color:#f0f0e7!important;
}
body:has(#adc-unified-header) main#top-storia #percorsi-documentati a {
  color:#ffdc98!important;
  -webkit-text-fill-color:#ffdc98!important;
}

/* La cascata dei pannelli tematici non deve schiarire le didascalie fotografiche. */
body:has(#adc-unified-header) main#contenuto #fotografie-mediateca figure figcaption,
body:has(#adc-unified-header) main#contenuto #fotografie-mediateca figure figcaption :is(strong,em,a) {
  color:#30463d!important;
  -webkit-text-fill-color:#30463d!important;
}
body:has(#adc-unified-header) main#contenuto #fotografie-mediateca figure figcaption a {
  color:#17594f!important;
  -webkit-text-fill-color:#17594f!important;
}


/* Tipografia leggibile per i contenuti liberi delle pagine ADC. */
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(h1,h2,h3,h4,h5,h6) {
  color:#ffdfa2!important;
  -webkit-text-fill-color:#ffdfa2!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(p,li,dt,dd,label,small,summary) {
  color:#f0f0e7!important;
  -webkit-text-fill-color:#f0f0e7!important;
}
/* I collegamenti inseriti nel testo ereditano l'oro; i link-card mantengono il loro stile. */
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(p,li,dt,dd,h1,h2,h3,h4,h5,h6) a:not(.cta):not([class*="button"]) {
  color:#ffdc98!important;
  -webkit-text-fill-color:#ffdc98!important;
  text-decoration-color:#cba66b!important;
}

/* Il bottone dorato mantiene testo scuro anche nella pagina Elena. */
body:has(#adc-unified-header) main a.adc-lux-gold-button {
  color:#173b33!important;
  -webkit-text-fill-color:#173b33!important;
  opacity:1!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(#search-form,form[role="search"]) label {
  color:#173b33!important;
  -webkit-text-fill-color:#173b33!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main #search-form input::placeholder {
  color:#53645c!important;
  opacity:1!important;
  -webkit-text-fill-color:#53645c!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main .search-topics span {
  color:#f0f0e7!important;
  -webkit-text-fill-color:#f0f0e7!important;
}

/* L'invito a incorporare l'Archivio conserva la superficie chiara. */
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main p.adc-share-entry {
  color:#25302e!important;
  -webkit-text-fill-color:#25302e!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main p.adc-share-entry a:not(.cta):not([class*="button"]) {
  color:#17594f!important;
  -webkit-text-fill-color:#17594f!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main figure figcaption,
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main figure figcaption :is(strong,em) {
  color:#30463d!important;
  -webkit-text-fill-color:#30463d!important;
  background:#f7f1e4!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main figure figcaption a {
  color:#17594f!important;
  -webkit-text-fill-color:#17594f!important;
}
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(pre,blockquote,.transcription,.document-transcription,.source-transcription,.source-text,.facsimile,.document-original,[data-document-text]),
body:has(#adc-unified-header):not(.adc-archive-home):not(:has(.adc-lux-elena-hero)) main :is(pre,blockquote,.transcription,.document-transcription,.source-transcription,.source-text,.facsimile,.document-original,[data-document-text]) :is(h1,h2,h3,h4,p,li,a,small,strong,em) {
  color:#263a33!important;
  -webkit-text-fill-color:#263a33!important;
}
body:has(#adc-unified-header) main a:is([href$="#video-calata"],[href$="#storia-video"],[href$="#territorio-video"],[href$="#testimonianze-video"]) span {
  color:#30463d!important;
  -webkit-text-fill-color:#30463d!important;
}


/* ADC · Contrasto mirato per ricerca e schede speciali · 24 novembre 2026 */
body:has(#adc-unified-header) main#contenuto #search-form {
 box-sizing:border-box!important;max-width:100%!important;color:#f4f1e6!important;
 background:linear-gradient(145deg,rgba(24,91,79,.92),rgba(8,57,54,.96))!important;
 border:1px solid var(--adc-visual-line)!important;border-radius:16px!important;box-shadow:0 10px 28px rgba(0,24,25,.28)!important
}
body:has(#adc-unified-header) main#contenuto #search-form label{color:#fff1cd!important;-webkit-text-fill-color:#fff1cd!important}
body:has(#adc-unified-header) main#contenuto #search-form .search-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px;max-width:100%;align-items:stretch}
body:has(#adc-unified-header) main#contenuto #search-form input#query{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;color:#fff8e9!important;-webkit-text-fill-color:#fff8e9!important;background:#0a3536!important;border:1px solid #b5cebc!important;border-radius:10px!important}
body:has(#adc-unified-header) main#contenuto #search-form input#query::placeholder{color:#d7e2d9!important;-webkit-text-fill-color:#d7e2d9!important;opacity:1!important}
body:has(#adc-unified-header) main#contenuto #search-form .search-row button{color:#173b33!important;-webkit-text-fill-color:#173b33!important;background:linear-gradient(145deg,#f4dfa8,#cc9b50)!important;border:1px solid #edd292!important;border-radius:11px!important}
body:has(#adc-unified-header) main#contenuto .search-topics span{color:#f0e5c9!important;-webkit-text-fill-color:#f0e5c9!important}
body:has(#adc-unified-header) main#contenuto .search-topics a{min-height:44px!important;padding:8px 14px!important;color:#fff3d5!important;-webkit-text-fill-color:#fff3d5!important;background:linear-gradient(145deg,#18584e,#0c3b3a)!important;border:1px solid var(--adc-visual-line)!important;border-radius:999px!important}
body:has(#adc-unified-header) main#contenuto :is(#results .result,#documentary .result,.search-empty,.more-results){color:#f0f0e7!important;-webkit-text-fill-color:#f0f0e7!important;background:linear-gradient(145deg,rgba(24,91,79,.86),rgba(8,57,54,.94))!important;border:1px solid var(--adc-visual-line)!important;border-radius:13px!important}
body:has(#adc-unified-header) main#contenuto :is(#results .result,.search-empty) :is(h2,p,small){color:#f0f0e7!important;-webkit-text-fill-color:#f0f0e7!important}
body:has(#adc-unified-header) main#contenuto :is(#results .result,.search-empty) a{color:#ffdc98!important;-webkit-text-fill-color:#ffdc98!important}
body:has(#adc-unified-header) main#contenuto .more-results{color:#173b33!important;-webkit-text-fill-color:#173b33!important;background:linear-gradient(145deg,#f4dfa8,#cc9b50)!important}
@media(max-width:600px){
 body:has(#adc-unified-header) main#contenuto #search-form{padding:16px!important;margin:20px 0!important}
 body:has(#adc-unified-header) main#contenuto #search-form .search-row{grid-template-columns:minmax(0,1fr)}
 body:has(#adc-unified-header) main#contenuto #search-form .search-row button{width:100%;min-height:48px}
 body:has(#adc-unified-header) main#contenuto .search-topics{gap:8px;margin:16px 0 22px}
 body:has(#adc-unified-header) main#contenuto .search-topics a{min-height:44px}
}

/* Contrasto delle superfici documentarie e delle sezioni inferiori. */
body.adc-archive-home main#contenuto :is(section:not(.adc-feature,#adc-risultati-verificabili) > h2, section:not(.adc-feature,#adc-risultati-verificabili) > p, details > summary strong, details > summary span, .adc-welcome-inner > h2, .adc-editorial-rights) {
  color:#fff3dc!important;
  -webkit-text-fill-color:currentColor!important;
}
body.adc-archive-home:has(#adc-unified-header) main#contenuto :is(section:not(.adc-feature,#adc-risultati-verificabili) > p, .adc-editorial-rights) a[href]:not(.button,.btn) {
  color:#ffdf9f!important;
  -webkit-text-fill-color:currentColor!important;
}

body:has(#adc-unified-header) :is(.editorial-breadcrumb,.adc-chiese-breadcrumb,.mono-crumb,.adc-page-trail,body > .breadcrumb,body > nav[aria-label="Percorso"]) {
  color:#f5ead2!important;
  -webkit-text-fill-color:currentColor!important;
}
body:has(#adc-unified-header) :is(.editorial-breadcrumb,.adc-chiese-breadcrumb,.mono-crumb,.adc-page-trail,body > .breadcrumb,body > nav[aria-label="Percorso"]) :is(a,span) {
  color:#ffe0a1!important;
  -webkit-text-fill-color:currentColor!important;
}
body:has(#adc-unified-header) main :is(.eyebrow,.mono-card .mono-tag,.entry .meta,.entry .kind):not(:is(.breadcrumb,.editorial-breadcrumb) *) {
  color:#ffe0a1!important;
  -webkit-text-fill-color:currentColor!important;
}

body:has(#adc-unified-header):not(.adc-archive-home) :is(
  main[data-adc-paper="sections"] section:not(.hero,.adc-share,[class*="grid"]),
  main[data-adc-paper="chapters"] .chapter,
  main :is(#oltre-il-documento,#bilancio-critico-2026,.adc-paper-note,.racconto-storico,.directory,.contrib-card,.contrib-note,.adc-reading-nav,.indice-storia,.adc-story-reading-link,.publication-tools,.mono-notice,.sample,.quote,.reading,p.source:not(.adc-chiese p,article.entry p),div.source,.notice,.no-photo,nav.index,figure figcaption,.unit,#clue),
   .mono-status,
  main > aside:not([class])
) {
  color:#263a33!important;
  -webkit-text-fill-color:currentColor!important;
}
body:has(#adc-unified-header):not(.adc-archive-home) :is(
  main[data-adc-paper="sections"] section:not(.hero,.adc-share,[class*="grid"]),
  main[data-adc-paper="chapters"] .chapter,
  main :is(#oltre-il-documento,#bilancio-critico-2026,.adc-paper-note,.racconto-storico,.directory,.contrib-card,.contrib-note,.adc-reading-nav,.indice-storia,.adc-story-reading-link,.publication-tools,.mono-notice,.sample,.quote,.reading,p.source:not(.adc-chiese p,article.entry p),div.source,.notice,.no-photo,nav.index,figure figcaption,.unit,#clue),
   .mono-status,
  main > aside:not([class])
) :is(h1,h2,h3,h4,h5,h6,p,li,td,dt,dd,label,small,strong,em,b,span,summary,a):not(.contrib-link):not(
  :is(.card,.route,.media-card,.mono-card,.resource,.sheet,.fact,.panel,table,.adc-share-actions,.adc-gold-button,.contrib-link) *
) {
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
}
body:has(#adc-unified-header):not(.adc-archive-home) :is(
  main[data-adc-paper="sections"] section:not(.hero,.adc-share,[class*="grid"]),
  main[data-adc-paper="chapters"] .chapter,
  main :is(#oltre-il-documento,#bilancio-critico-2026,.adc-paper-note,.racconto-storico,.directory,.contrib-card,.contrib-note,.adc-reading-nav,.indice-storia,.adc-story-reading-link,.publication-tools,.mono-notice,.sample,.quote,.reading,p.source:not(.adc-chiese p,article.entry p),div.source,.notice,.no-photo,nav.index,figure figcaption,.unit,#clue)
) a:not(.contrib-link):not(:is(.card,.route,.media-card,.mono-card,.resource,.sheet,.fact,.panel,table,.adc-share-actions) *) {
  color:#145348!important;
  -webkit-text-fill-color:currentColor!important;
}

/* Le celle mantengono il proprio fondo anche nella vista impilata su telefono. */
body:has(#adc-unified-header):not(.adc-archive-home) main table :is(th,td):not([hidden]) {
  background:#123f3b!important;
  color:#fff3dc!important;
  -webkit-text-fill-color:currentColor!important;
}
body:has(#adc-unified-header):not(.adc-archive-home) main table :is(th,td):not([hidden]) :is(p,li,small,span,strong,em,a) {
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
}
body:has(#adc-unified-header):not(.adc-archive-home) main table :is(th,td):not([hidden]) a {
  color:#ffe0a1!important;
  -webkit-text-fill-color:currentColor!important;
}
body:has(#adc-unified-header) :is(.adc-page-trail,.editorial-breadcrumb,.adc-chiese-breadcrumb,.mono-crumb) a[href],
body:has(#adc-unified-header) main#contenuto nav[aria-label="Indice dell'Atlante"] a[href] {
  color:#ffe0a1!important;
  -webkit-text-fill-color:currentColor!important;
}
body:has(#adc-unified-header) main#contenuto figure figcaption :is(a,small,strong,em,.tag) {
  color:#17483d!important;
  -webkit-text-fill-color:currentColor!important;
}
.adc-lux-card .adc-lux-tag {
  color:#17362e!important;
  -webkit-text-fill-color:currentColor!important;
}

/* Le note, i collegamenti interni e le azioni mantengono una coppia di colori leggibile. */
body:has(#adc-unified-header) :is(.adc-page-trail,.editorial-breadcrumb) a[href],
body:has(#adc-unified-header) main#contenuto .contrib-card .contrib-link {
  color:#fff3dc!important;
  -webkit-text-fill-color:currentColor!important;
}
body:has(#adc-unified-header) main :is(.entry .kind,.adc-chiese .source a,.adc-photo-gallery .type) {
  color:#fff3dc!important;
  -webkit-text-fill-color:currentColor!important;
}
body:has(#adc-unified-header) :is(main .reading,main[data-adc-paper="notes"] :is(.status,.fact)) {
  background:#f7f1e4!important;
  color:#263a33!important;
  -webkit-text-fill-color:currentColor!important;
}
body:has(#adc-unified-header) :is(main .reading,main[data-adc-paper="notes"] :is(.status,.fact)) :is(h2,h3,p,strong,em,a) {
  color:#263a33!important;
  -webkit-text-fill-color:currentColor!important;
}
body:has(#adc-unified-header) :is(.skip-link,.sr-only,.mono-small,.skip,body > a[href="#contenuto"]):focus-visible {
  background:#fff3dc!important;
  color:#17362e!important;
  -webkit-text-fill-color:currentColor!important;
}
body.adc-archive-home:has(#adc-unified-header) #contenuto #adc-risorse-complete :is(.adc-intro-short p,.adc-editorial-rights,section:not(.adc-feature,#adc-risultati-verificabili) > p) a[href] {
  color:#ffdf9f!important;
  -webkit-text-fill-color:#ffdf9f!important;
}
body.adc-chiese:has(#adc-unified-header) main#contenuto :is(.entry .source a,.tile .type) {
  color:#fff3dc!important;
  -webkit-text-fill-color:#fff3dc!important;
}
body:has(#adc-unified-header) main#contenuto nav[aria-label="Indice dell'Atlante"] a[href] {
  color:#ffe0a1!important;
  -webkit-text-fill-color:#ffe0a1!important;
}
body:has(#adc-unified-header) main :is(article.entry p.source a, article.tile .type) {
  background:#174f45!important;
  color:#fff3dc!important;
  -webkit-text-fill-color:#fff3dc!important;
}

/* Contrasto sui fondi scuri della home e dei risultati. */
body.adc-archive-home main#contenuto .adc-lux-intro-links a[href] {
  color:#ffe0a1!important;
  -webkit-text-fill-color:currentColor!important;
  text-shadow:0 1px 2px #082b2b;
}
body:has(#adc-unified-header) main#contenuto #results mark {
  color:#192e27!important;
  -webkit-text-fill-color:currentColor!important;
  background:#ffdf99!important;
  border-radius:.16em;
  padding-inline:.12em;
}

@media(max-width:680px) {
  body.adc-inner-2026:has(#adc-unified-header) main#contenuto table:is(.adc-mobile-cards,.evidenze-table):not(.attestazioni) {
    background:transparent!important;
    border:0!important;
  }
  body.adc-inner-2026:has(#adc-unified-header) main#contenuto table:is(.adc-mobile-cards,.evidenze-table):not(.attestazioni) tbody tr {
    background:#123f3b!important;
    border:1px solid #a89366!important;
    box-shadow:none!important;
  }
  body.adc-inner-2026:has(#adc-unified-header) main#contenuto table:is(.adc-mobile-cards,.evidenze-table):not(.attestazioni) tbody :is(td,th[scope="row"]):not([hidden]) {
    background:transparent!important;
    hyphens:none!important;
  }
  body.adc-inner-2026:has(#adc-unified-header) main#contenuto table:is(.adc-mobile-cards,.evidenze-table):not(.attestazioni) tbody :is(td,th[scope="row"]) + td {
    border-top:1px solid #bca87778!important;
  }
  body.adc-inner-2026:has(#adc-unified-header) main#contenuto table:is(.adc-mobile-cards,.evidenze-table):not(.attestazioni) tbody :is(td,th[scope="row"])::before {
    color:#ffe0a1!important;
    -webkit-text-fill-color:currentColor!important;
  }
}

@media(max-width:760px) {
  html.adc-app-installed:has(#adc-app-toolbar) body .elena-presenza {
    bottom:calc(84px + env(safe-area-inset-bottom,0px))!important;
  }
  html.adc-app-installed:has(#adc-app-toolbar) body:has(.elena-presenza) main#contenuto {
    padding-bottom:80px!important;
  }
  html.adc-app-installed body:has(#adc-app-toolbar) #adc-reader-controls {
    background:#123f3b!important;
    border-color:#a89366!important;
  }
  html.adc-app-installed body:has(#adc-app-toolbar) #adc-reader-controls button {
    background:#22524d!important;
    color:#fff4d9!important;
    -webkit-text-fill-color:currentColor!important;
    border-color:#b8a479!important;
  }
}
