/*
 * BET_SERPA Halloween 2026 / layout repair V5
 * Loaded after the seasonal stylesheet, scoped exclusively to date-gated root.
 * Leaves canonical site and data untouched once Halloween expires.
 */
html.bs-halloween-2026 {
  --bs-h-orange: #ff933a;
  --bs-h-amber: #ffc47d;
  --bs-h-green: #b4f66e;
  --bs-h-panel: #17100f;
  --bs-h-border: #694333;
}
html.bs-halloween-2026 body {background:#0b0a0a}
html.bs-halloween-2026 .masthead {background:#0e0a0ceb;border-color:#653b25}
html.bs-halloween-2026 .bs-halloween-banner {
  background:linear-gradient(95deg,#171011,#341a12 55%,#17180e);
  border-bottom:2px solid #b96628;
}
html.bs-halloween-2026 .bs-halloween-banner strong {color:#ffc17b}
html.bs-halloween-2026 .bs-halloween-banner a{color:#d6ff97;border-bottom-color:#86bd4c}

/* Keep the full illustration ONLY on the real home and avoid badge/logo doubling. */
html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-hero {
  background:radial-gradient(ellipse 43% 57% at 77% 47%,#a9442045,transparent 85%),
             radial-gradient(ellipse 43% 47% at 90% 91%,#395a1c27,transparent 95%),
             linear-gradient(106deg,#0a090c,#1a0e0e 68%,#0e0c0b);
}
html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-shell{
  grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr);
  min-height:565px;
}
html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-art{
  min-height:530px;
  overflow:visible;
}
html.bs-halloween-2026.bs-halloween-home .hub-stage-art .hub-actual-logo,
html.bs-halloween-2026.bs-halloween-home .hub-stage-art > img,
html.bs-halloween-2026.bs-halloween-home .hub-stage-art .hub-art-caption,
html.bs-halloween-2026.bs-halloween-home .hub-stage-art .hub-art-halo{
  display:none!important;
}
html.bs-halloween-2026.bs-halloween-home .hub-stage-art .bs-halloween-scene.bs-halloween-cinematic{
  width:clamp(310px,34vw,505px);
  height:clamp(310px,34vw,505px);
  max-width:100%;
  left:51%;top:50%;
  filter:drop-shadow(0 19px 38px #0009);
  overflow:hidden;border-radius:16px;
}
html.bs-halloween-2026.bs-halloween-home .hub-stage-art .bs-halloween-cinematic::before,
html.bs-halloween-2026.bs-halloween-home .hub-stage-art .bs-halloween-float{display:none}
html.bs-halloween-2026.bs-halloween-home .hub-stage-art .bs-halloween-cinematic img{
 width:100%;height:100%;max-width:100%;
 border-radius:16px;
 object-fit:cover;
 filter:saturate(1.06) contrast(1.05);
 animation:none!important;
 image-rendering:auto;
}
html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-copy h1{
 font-size:clamp(48px,6.2vw,92px);
 margin-right:-15px;
}
html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-copy{z-index:5}
html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-proof{margin-top:27px}

/* The night hub is deliberately DISTINCT: compact editorial masthead, no artwork. */
html.bs-halloween-2026.bs-halloween-night .hub-v49 .hub-hero{
  min-height:0;
  background:
    radial-gradient(ellipse 46% 130% at 95% 25%,#75401e36,transparent 78%),
    radial-gradient(ellipse 45% 100% at 0% 95%,#27532a20,transparent 83%),
    linear-gradient(120deg,#0b0a0d,#191012 74%,#0b0e0d);
}
html.bs-halloween-2026.bs-halloween-night .hub-v49 .hub-stage-shell{
  display:block;min-height:0;
  padding-block:45px 35px;
}
html.bs-halloween-2026.bs-halloween-night .hub-v49 .hub-stage-art,
html.bs-halloween-2026.bs-halloween-night .hub-v49 .hub-actual-logo,
html.bs-halloween-2026.bs-halloween-night .hub-v49 .hub-art-halo{
 display:none!important;
}
html.bs-halloween-2026.bs-halloween-night .hub-v49 .hub-stage-copy{
  max-width:920px;padding-block:25px;
}
html.bs-halloween-2026.bs-halloween-night .hub-v49 .hub-stage-copy h1 {
  font-size:clamp(42px,6.2vw,79px);
  margin:16px 0;
}
html.bs-halloween-2026.bs-halloween-night .hub-v49 .hub-stage-copy > p{max-width:740px}
html.bs-halloween-2026.bs-halloween-night .hub-v49 .hub-stage-proof{margin-top:22px}

/* Every section below home hero follows the same palette, without hiding articles. */
html.bs-halloween-2026 .hub-v49 .hub-service,
html.bs-halloween-2026 .hub-v49 .bs-halloween-tile{
 background:linear-gradient(143deg,#221712,#130f0e 86%);
 border-color:#754a2f;color:#ffe9d8;
}
html.bs-halloween-2026 .hub-v49 .hub-service:hover,
html.bs-halloween-2026 .hub-v49 .bs-halloween-tile:hover{
 background:#2d1c13;border-color:#ffab63;
}
html.bs-halloween-2026 .hub-v49 .hub-service-copy strong,
html.bs-halloween-2026 .hub-v49 .hub-section-heading h2,
html.bs-halloween-2026 .hub-v49 .hub-feature h3{
 color:#fff3e8;
}
html.bs-halloween-2026 .hub-v49 .hub-service-description,
html.bs-halloween-2026 .hub-v49 .hub-section-heading p,
html.bs-halloween-2026 .hub-v49 .hub-feature p{color:#d3bdb2}
html.bs-halloween-2026 .hub-v49 .hub-service-sub,
html.bs-halloween-2026 .hub-v49 .hub-service-number{color:#ffa96b}
html.bs-halloween-2026 .hub-v49 .hub-section-heading h2 em{color:#ffa65f}
html.bs-halloween-2026 .hub-v49 .hub-focus-quiet,
html.bs-halloween-2026 .hub-v49 .hub-focus-card{
 background:linear-gradient(125deg,#1e1714,#100e0c 88%);
 border:1px solid #654633;
 border-radius:14px;
}
html.bs-halloween-2026 .hub-v49 .hub-focus-quiet h3,
html.bs-halloween-2026 .hub-v49 .hub-focus-card h3{color:#fff1e6}
html.bs-halloween-2026 .hub-v49 .hub-focus-quiet p,
html.bs-halloween-2026 .hub-v49 .hub-focus-card p{color:#d6c0b5}
html.bs-halloween-2026 .hub-v49 .hub-focus-quiet a,
html.bs-halloween-2026 .hub-v49 .hub-text-link{color:#d2ff94}
html.bs-halloween-2026 .hub-v49 .hub-editorial-status,
html.bs-halloween-2026 .hub-editorial-status{
 border-color:#7c5236;
 background:linear-gradient(110deg,#211612,#101010);
}
html.bs-halloween-2026 .hub-editorial-status p{color:#e0c8b9}
html.bs-halloween-2026 .hub-editorial-status a{color:#dcff9c}
html.bs-halloween-2026 .bs-letter{
 background:linear-gradient(120deg,#251811,#181210 65%,#14140e);
 border-color:#785037;
 color:#fff0e4;
}
html.bs-halloween-2026 .bs-letter .bs-letter-icon{
 background:#352215;border-color:#99632e;color:#ffd098;
}
html.bs-halloween-2026 .bs-letter .bs-letter-kicker{color:#ffc078}
html.bs-halloween-2026 .bs-letter h2{color:#fff0e4}
html.bs-halloween-2026 .bs-letter p,
html.bs-halloween-2026 .bs-letter .bs-letter-side small{color:#dfc6b8}
html.bs-halloween-2026 .bs-letter .bs-letter-action:not(.bs-letter-disabled){
 background:#fba453;color:#1e120b;
}
html.bs-halloween-2026 .bs-letter .bs-letter-disabled{
 background:#413125;color:#f1d9c8;
}
html.bs-halloween-2026 .hub-v49 .hub-current-feature,
html.bs-halloween-2026 .hub-v49 .hub-current-feature:hover{
 background:linear-gradient(126deg,#271812,#11100e);
 border-color:#8c5b35;
}
html.bs-halloween-2026 .hub-v49 .hub-current-feature em{color:#ffae69}
html.bs-halloween-2026 .hub-v49 .hub-current-actions .hub-current-secondary{
 background:#251710;border-color:#8b5b3b;color:#fff0e0;
}
html.bs-halloween-2026 .foot{
 background:#0e0b0a;border-top:1px solid #754733;
}
html.bs-halloween-2026 .foot .site-legal-links a{color:#ffd5a1}

/* Cartellini Lab stays readable and tactical: same seasonal hues, zero poster. */
html.bs-halloween-2026.bs-halloween-lab{
 --sfondo:#0c0c0a;--pannello:#191611;--pannello2:#241c13;
 --bordo:#67472c;--verde:#ffb468;--verde2:#e48544;
 --testo:#fff4e9;--grigio:#c5bcb0;--giallo:#bbef7e;
}
html.bs-halloween-2026.bs-halloween-lab body.cl-site-sync{
 background:linear-gradient(155deg,#130f0d,#0b0d0b 55%);
 color:#fff2e8;
}
html.bs-halloween-2026.bs-halloween-lab .prova{
 border-bottom:2px solid #d27d35;
 background:linear-gradient(90deg,#191310,#482414,#1b1c10);
}
html.bs-halloween-2026.bs-halloween-lab .testata{background:#16110d;border-color:#8c5328}
html.bs-halloween-2026.bs-halloween-lab .apertura{border-bottom-color:#704b2b}
html.bs-halloween-2026.bs-halloween-lab .apertura h1 span,
html.bs-halloween-2026.bs-halloween-lab .titolo-sezione em{color:#ffb36c}
html.bs-halloween-2026.bs-halloween-lab .scheda-campo,
html.bs-halloween-2026.bs-halloween-lab .scheda,
html.bs-halloween-2026.bs-halloween-lab .riquadro{
 border-color:#765236;background-color:#1b1813;
}
html.bs-halloween-2026.bs-halloween-lab .ritorno{border-color:#995c31;color:#ffe0be}
html.bs-halloween-2026.bs-halloween-lab button:focus-visible,
html.bs-halloween-2026.bs-halloween-lab a:focus-visible{outline-color:#ffc079}

@media(max-width:1100px){
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-shell{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)}
 html.bs-halloween-2026.bs-halloween-home .hub-stage-art .bs-halloween-scene.bs-halloween-cinematic{width:clamp(260px,35vw,430px);height:clamp(260px,35vw,430px)}
}
@media(max-width:760px){
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-shell{grid-template-columns:1fr;min-height:0}
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-art{height:350px;min-height:350px}
 html.bs-halloween-2026.bs-halloween-home .hub-stage-art .bs-halloween-scene.bs-halloween-cinematic{
  width:min(84vw,350px);height:min(84vw,350px);left:50%;top:49%;
 }
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-copy h1{font-size:clamp(41px,9.3vw,74px);margin-right:0}
 html.bs-halloween-2026.bs-halloween-night .hub-v49 .hub-stage-shell{padding-block:25px}
}
@media(max-width:440px){
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-art{height:315px;min-height:315px}
 html.bs-halloween-2026.bs-halloween-home .hub-stage-art .bs-halloween-scene.bs-halloween-cinematic{width:305px;height:305px;max-width:90vw}
 html.bs-halloween-2026.bs-halloween-night .hub-v49 .hub-stage-copy h1{font-size:clamp(37px,10vw,49px)}
}
@media(prefers-reduced-motion:reduce){
 html.bs-halloween-2026 .hub-stage-art .bs-halloween-scene.bs-halloween-cinematic,
 html.bs-halloween-2026 .hub-stage-art .bs-halloween-scene.bs-halloween-cinematic img{animation:none!important}
}

/* V5.1 — mobile content must lead; no artwork placed above the headline. */
@media(max-width:760px){
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-shell{
  display:flex!important;flex-direction:column!important;
  align-items:stretch!important;
 }
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-copy{
  order:-1!important;width:100%;padding:18px 0 8px;
 }
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-art{
  order:1!important;align-self:center!important;
  width:100%;height:320px;min-height:320px;
 }
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-bottom{
  order:2!important;width:100%;
 }
}
@media(max-width:440px){
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-art{
  height:290px;min-height:290px;
 }
 html.bs-halloween-2026.bs-halloween-home .hub-stage-art .bs-halloween-scene.bs-halloween-cinematic{
  width:min(78vw,310px);height:min(78vw,310px);
 }
}
/* Pages outside homepage remain in theme too, but never receive homepage artwork. */
html.bs-halloween-2026 .today-wrap .today-kicker,
html.bs-halloween-2026 .today-wrap .today-list-head .today-kicker{color:#ffb46a}
html.bs-halloween-2026 .today-wrap .today-list-head h1{color:#fff1e5}
html.bs-halloween-2026 .today-wrap .today-list-head p{color:#d9c5b7}
html.bs-halloween-2026 .today-wrap .today-btn-main{
 background:linear-gradient(100deg,#ffba6e,#fa9149);border-color:#ffb76a;color:#20130e;
}
html.bs-halloween-2026 .today-wrap .today-btn-soft{
 background:#251710;border-color:#794b30;color:#f9e4ce;
}
html.bs-halloween-2026 .today-wrap .today-btn-soft:hover{border-color:#dca466}

/* V5.2 — deterministic composition at landscape desktop and 768px tablet. */
@media(min-width:1051px){
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-shell{
  display:grid!important;grid-template-areas:"h-copy h-art" "h-bottom h-bottom";
  grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr);
 }
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-copy{
  grid-area:h-copy!important;order:0!important;
 }
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-art{
  grid-area:h-art!important;order:0!important;
 }
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-bottom{
  grid-area:h-bottom!important;order:0!important;
 }
}
@media(max-width:1050px){
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-shell{
  display:flex!important;flex-direction:column!important;
  align-items:stretch!important;justify-content:flex-start!important;
  min-height:0!important;
 }
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-copy{
  order:-1!important;width:100%;max-width:750px;
  padding:18px 0 12px!important;
 }
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-art{
  order:1!important;align-self:center!important;
  width:100%;height:385px;min-height:385px;
 }
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-bottom{
  order:2!important;width:100%;
 }
 html.bs-halloween-2026.bs-halloween-home .hub-stage-art .bs-halloween-scene.bs-halloween-cinematic{
  width:min(58vw,385px);height:min(58vw,385px);
  left:50%;top:50%;
 }
}
@media(max-width:760px){
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-art{height:320px;min-height:320px}
 html.bs-halloween-2026.bs-halloween-home .hub-stage-art .bs-halloween-scene.bs-halloween-cinematic{
  width:min(84vw,350px);height:min(84vw,350px);
 }
}
@media(max-width:440px){
 html.bs-halloween-2026.bs-halloween-home .hub-v49 .hub-stage-art{height:290px;min-height:290px}
 html.bs-halloween-2026.bs-halloween-home .hub-stage-art .bs-halloween-scene.bs-halloween-cinematic{
  width:min(78vw,310px);height:min(78vw,310px);
 }
}
