/* V9 — Correzioni puntuali, non sostituisce la grafica generale. */
:root{--v9-paper:#f7eee0;--v9-black:#0d0d0c;--v9-cream:#fff5e5;--v9-yellow:#ffe500;--v9-red:#e32d16}
/* Contrasto accessibile sul pulsante di ricerca, anche quando eredita i colori del menu. */
.site-header .site-nav a.search-link,.site-header .site-nav a.search-link span,
.site-nav a.search-link:hover,.site-nav a.search-link:focus-visible{background:var(--v9-yellow)!important;color:#10100e!important;border-color:var(--v9-yellow)!important}
/* Intestazioni interne senza vecchie fasce grigie. */
.subpage-hero,.subpage-hero.internal-hero,.subpage-hero.archive-intro,
.subpage-hero.comunicati-intro{background:var(--v9-black)!important;color:var(--v9-cream)!important;border-bottom:7px solid var(--v9-red)!important}
.subpage-hero .eyebrow,.subpage-hero a.back-link{color:var(--v9-yellow)!important}
.subpage-hero p,.subpage-hero.internal-hero p{color:#f0dfcc!important}
.page-content-section,.history-page,.archive-section,.event-detail-section{background:var(--v9-paper)!important;color:#1c1713!important}
.page-content-section .rich-content,.event-detail-section .rich-content{color:#1b1713!important}
/* Contatori delle vecchie versioni sostituiti da semplici etichette. */
.editorial-kicker{display:block;font:900 11px/1.3 Arial,Helvetica,sans-serif;letter-spacing:.11em;text-transform:uppercase;color:var(--v9-yellow)}
.v6-events .editorial-kicker{color:var(--v9-black)}
.v6-history-banner .editorial-kicker{color:var(--v9-yellow)}
/* Fotografia in primo piano: griglia che non può spingere fuori il viewport. */
.v6-feature .shell,.v6-feature-card,.v6-feature-card>*,.v6-feature-image,.v6-feature-copy{min-width:0!important;max-width:100%;box-sizing:border-box}
.v6-feature-card{overflow:clip;isolation:isolate;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)}
.v6-feature-image{height:auto;overflow:hidden;position:relative}
.v6-feature-image img{display:block;width:100%;height:100%;min-height:0;max-width:100%;object-fit:cover}
.v9-feature-subtitle{display:block;font-size:.57em;line-height:1.25;margin-top:.4em;font-weight:650;letter-spacing:0}
/* Evento: poster sempre visibile, nessun ritaglio per le locandine verticali 3:4 o 4:5. */
.v6-events-grid{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
.v6-event-card,.v6-event-card.with-poster{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%;min-width:0;min-height:0!important;overflow:hidden}
.v6-event-card.with-poster{grid-template-columns:clamp(170px,25vw,290px) minmax(0,1fr)!important}
.v6-event-poster{grid-column:1!important;grid-row:1!important;aspect-ratio:4/5!important;max-height:430px!important;width:100%;min-width:0;overflow:hidden;background:#171614}
.v6-event-poster img{display:block;width:100%;height:100%;max-height:430px;object-fit:contain!important}
.v9-event-content{grid-column:1;grid-row:1;display:grid;grid-template-columns:clamp(84px,10vw,125px) minmax(0,1fr);min-width:0}
.v6-event-card.with-poster .v9-event-content{grid-column:2!important;grid-row:1!important}
.v9-event-content .v6-event-date{height:100%;min-width:0;box-sizing:border-box}
.v9-event-content .v6-event-info{min-width:0;justify-content:center}
.v9-event-content .v6-event-info h3{font-size:clamp(27px,3vw,48px)!important}
/* Le anteprime hanno testo reale e leggibile, non riquadri incompleti. */
.article-card-subtitle{display:block;font-weight:550;letter-spacing:-.015em;font-size:.67em;line-height:1.28;margin-top:8px}
.article-card .article-teaser{display:-webkit-box!important;-webkit-line-clamp:4!important;-webkit-box-orient:vertical!important;overflow:hidden!important;line-height:1.6!important}
.v7-news-grid .article-card .article-teaser{color:#ede1d4!important}
.comunicati-section .article-card .article-teaser{color:#29211b!important}
/* Storia senza elenco di fonti, introduzione amplia e in linguaggio editoriale. */
.v9-history-intro{margin:25px 0 50px;padding:28px clamp(18px,3vw,36px);background:#fff9ee;border-left:6px solid var(--v9-red)}
.v9-history-intro p{font:400 clamp(18px,1.6vw,21px)/1.75 Georgia,serif;margin:0 0 20px;color:#211b17}
.v9-history-intro p:last-child{margin-bottom:0}
/* Galleria articolo: ogni foto reale, proporzioni originali, senza segnaposto. */
.article-extra-gallery{margin:60px 0 25px;padding-top:25px;border-top:3px solid var(--v9-red)}
.article-extra-gallery h2{font:850 clamp(25px,3vw,38px)/1.15 Arial,sans-serif!important;margin:0 0 22px!important;color:var(--v9-black)}
.v9-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.v9-photo-grid figure{margin:0;min-width:0;background:#eee5d9}
.v9-photo-grid a{display:block;min-width:0;overflow:hidden}
.v9-photo-grid img{display:block;width:100%;height:auto;object-fit:contain;max-height:650px}
.v9-photo-grid figcaption{font-size:13px;line-height:1.4;padding:10px 12px;color:#40392f}
/* Schermi stretti: foto in primo piano contenuta e poster non tagliato. */
@media(max-width:820px){
 .v6-feature-card,.v6-feature-card.with-image{display:flex!important;flex-direction:column!important;min-height:0!important;grid-template-columns:none!important;max-width:100%!important;box-shadow:none!important;overflow:hidden!important}
 .v6-feature-card .v6-feature-image{display:block;width:100%!important;min-height:0!important;height:auto!important;max-height:none!important;aspect-ratio:16/10!important;overflow:hidden!important}
 .v6-feature-image img{width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover!important}
 .v6-feature-card .v6-feature-copy{width:100%!important;max-width:100%!important;min-width:0!important;padding:clamp(20px,5vw,32px)!important}
 .v6-feature-card .v6-feature-copy h3{max-width:100%;overflow-wrap:anywhere;font-size:clamp(28px,7vw,45px)!important}
 .v6-event-card.with-poster{grid-template-columns:minmax(0,190px) minmax(0,1fr)!important}
 .v9-event-content{grid-template-columns:88px minmax(0,1fr)}
 .v6-event-card .v6-event-info{padding:20px!important}
}
@media(max-width:640px){
 .v6-feature .shell{width:calc(100% - 36px)!important}
 .v6-feature-card,.v6-feature-card.with-image{width:100%!important}
 .v6-feature-card .v6-feature-image{aspect-ratio:4/3!important}
 .v6-event-card.with-poster{grid-template-columns:minmax(0,1fr)!important}
 .v6-event-poster{grid-column:1!important;grid-row:1!important;max-height:360px!important;aspect-ratio:4/5!important}
 .v6-event-card.with-poster .v9-event-content{grid-column:1!important;grid-row:2!important}
 .v9-event-content{grid-column:1!important;grid-template-columns:76px minmax(0,1fr)!important;min-width:0}
 .v6-event-card .v6-event-info h3{font-size:clamp(22px,6vw,30px)!important}
 .v6-event-date strong{font-size:45px!important}
 .v9-photo-grid{grid-template-columns:minmax(0,1fr)}
 .v9-history-intro{padding:20px 16px}
}
