/* ANXA — Hero territoriale: stessa grafica, foto e nome del comune dinamici. */
.anxa-header.hero-header { isolation:isolate; }
.anxa-header.hero-header .anxa-hero-photo {
  position:absolute; inset:0; z-index:0; overflow:hidden;
  border-radius:inherit; pointer-events:none;
}
.anxa-header.hero-header .anxa-hero-photo-frame {
  position:absolute; inset:0; background-position:center center;
  background-size:cover; background-repeat:no-repeat;
  opacity:0; transition:opacity 900ms ease;
}
.anxa-header.hero-header .anxa-hero-photo-frame.is-active { opacity:1; }
/* Una scelta salvata entra nella home già con l'immagine corretta. */
.anxa-hero-photo-frame:first-child { background-image:url('../img/wallpaper.jpeg'); }
html.time-night .anxa-hero-photo-frame:first-child { background-image:url('../img/wallpapernotte.png'); }
html[data-anxa-hero-comune="fossacesia"] .anxa-hero-photo-frame:first-child { background-image:url('../img/hero-fossacesia-giorno.webp'); }
html.time-night[data-anxa-hero-comune="fossacesia"] .anxa-hero-photo-frame:first-child { background-image:url('../img/hero-fossacesia-notte.webp'); }
/* Castel Frentano: foto originale diurna ed elaborazione grafica notturna. */
html[data-anxa-hero-comune="castel_frentano"] .anxa-hero-photo-frame:first-child { background-image:url('../img/hero-castel-frentano-giorno.webp'); }
html.time-night[data-anxa-hero-comune="castel_frentano"] .anxa-hero-photo-frame:first-child { background-image:url('../img/hero-castel-frentano-notte.webp'); }
/* San Vito Chietino: fotografia del lungomare e versione notturna illustrativa. */
html[data-anxa-hero-comune="san_vito_chietino"] .anxa-hero-photo-frame:first-child { background-image:url('../img/hero-san-vito-chietino-giorno.webp'); }
html.time-night[data-anxa-hero-comune="san_vito_chietino"] .anxa-hero-photo-frame:first-child { background-image:url('../img/hero-san-vito-chietino-notte.webp'); }
/* Archi: vista aerea diurna (Wikimedia Commons), adattamento notturno. */
html[data-anxa-hero-comune="archi"] .anxa-hero-photo-frame:first-child { background-image:url('../img/hero-archi-giorno.webp'); }
html.time-night[data-anxa-hero-comune="archi"] .anxa-hero-photo-frame:first-child { background-image:url('../img/hero-archi-notte.webp'); }
.anxa-header.hero-header .anxa-hero-nome-comune {
  max-width:100%; margin:6px auto 0; color:#fff; font-family:'Outfit',system-ui,sans-serif;
  font-size:clamp(2.8rem,6.1vw,5.8rem); font-weight:850;
  line-height:1.06; letter-spacing:.06em; text-align:center;
  text-shadow:0 3px 16px rgba(0,0,0,.94),0 0 7px rgba(0,0,0,.7);
  overflow-wrap:normal; text-wrap:balance;
}
.anxa-header.hero-header .brand-box { transform:translateY(-125px) !important; }
.anxa-header.hero-header .header-subtitle { margin-top:12px; }
.anxa-hero-foto-credito {
  position:absolute;right:18px;bottom:12px;z-index:12;
  max-width:75%; margin:0; font-size:10px; line-height:1.35;
  color:rgba(255,255,255,.95);text-align:right;
  text-shadow:0 1px 5px #000,0 1px 1px #000;
}
.anxa-hero-foto-credito[hidden]{display:none!important}
.anxa-hero-foto-credito a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.anxa-hero-foto-credito a[hidden]{display:none!important}
.anxa-hero-foto-credito a:focus-visible {outline:2px solid #ffe28b;outline-offset:3px}
@media(max-width:1024px){
 .anxa-header.hero-header .brand-box { transform:translateY(-60px) !important; }
 /* San Vito Chietino: fotografia del lungomare e versione notturna illustrativa. */
html[data-anxa-hero-comune="san_vito_chietino"] .anxa-hero-photo-frame:first-child { background-image:url('../img/hero-san-vito-chietino-giorno.webp'); }
html.time-night[data-anxa-hero-comune="san_vito_chietino"] .anxa-hero-photo-frame:first-child { background-image:url('../img/hero-san-vito-chietino-notte.webp'); }
.anxa-header.hero-header .anxa-hero-nome-comune { font-size:clamp(2.15rem,6.8vw,4.75rem); }
}
@media(max-width:600px){
 .anxa-header.hero-header .brand-box { transform:translateY(-36px) !important; }
 /* San Vito Chietino: fotografia del lungomare e versione notturna illustrativa. */
html[data-anxa-hero-comune="san_vito_chietino"] .anxa-hero-photo-frame:first-child { background-image:url('../img/hero-san-vito-chietino-giorno.webp'); }
html.time-night[data-anxa-hero-comune="san_vito_chietino"] .anxa-hero-photo-frame:first-child { background-image:url('../img/hero-san-vito-chietino-notte.webp'); }
.anxa-header.hero-header .anxa-hero-nome-comune {
  font-size:clamp(1.8rem,8.2vw,3rem);letter-spacing:.025em;
  max-width:98%;margin-top:7px;
 }
 .anxa-header.hero-header .header-subtitle {font-size:clamp(.72rem,2.5vw,.95rem);letter-spacing:2px;}
 .anxa-hero-foto-credito{font-size:9px;max-width:90%;right:12px;bottom:8px;}
}
@media(max-height:620px){ .anxa-header.hero-header .brand-box { transform:translateY(-15px) !important; } }
@media(prefers-reduced-motion:reduce){ .anxa-header.hero-header .anxa-hero-photo-frame {transition:none!important} }

/* ANXA 29 comuni: hero neutro per foto ancora non consegnate (nessuna foto estranea). */
html[data-anxa-hero-comune="altino"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="altino"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="bomba"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="bomba"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="casalbordino"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="casalbordino"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="crecchio"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="crecchio"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="fara_san_martino"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="fara_san_martino"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="frisa"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="frisa"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="gessopalena"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="gessopalena"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="ortona"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="ortona"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="paglieta"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="paglieta"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="palena"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="palena"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="perano"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="perano"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="poggiofiorito"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="poggiofiorito"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="rocca_san_giovanni"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="rocca_san_giovanni"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="roccascalegna"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="roccascalegna"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="santa_maria_imbaro"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="santa_maria_imbaro"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="sant_eusanio_del_sangro"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="sant_eusanio_del_sangro"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="torino_di_sangro"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="torino_di_sangro"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="tornareccio"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="tornareccio"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
html[data-anxa-hero-comune="torricella_peligna"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#265a83,#0d305b 64%,#123a5e); }
html.time-night[data-anxa-hero-comune="torricella_peligna"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }

/* Treglio: foto autentica in luce diurna, hero blu ANXA nelle ore notturne. */
html[data-anxa-hero-comune="treglio"] .anxa-hero-photo-frame:first-child { background-image:url('../img/hero-treglio-giorno.jpeg'); background-position:center 72%; }
html.time-night[data-anxa-hero-comune="treglio"] .anxa-hero-photo-frame:first-child { background-image:linear-gradient(135deg,#071b38,#102a50 60%,#153f65); }
