/* slide-nera.css (26/11/2026) - slide della home su fascia nera, unita alla testata (versione approvata da Paco).
   Testo al centro (piccolo rosso, titolo bianco, pulsante rosso a pillola), un disegno per lato direttamente sul nero.
   Un solo ragno grande a destra: grigio scuro nel nero, esce sotto e continua grigio chiaro nel bianco, allineato.
   I disegni sono in assets/slide/, scelti in base al link del pulsante (riparazioni, valutazione, acquista). */
html body header.hd{border-bottom:0!important}
html body main #px-hero.px-hero{transform:none!important;width:auto!important;max-width:none!important;margin:0!important;
  min-height:0!important;height:185px;padding:0!important;background:#000 url(assets/ragno/ragno-scuro.svg) no-repeat!important;
  background-size:51.3vw auto!important;background-position:right -12.8vw top calc(185px - 21.4vw)!important;overflow:hidden!important;display:flex!important;flex-direction:column}
html body main #px-hero .px-slide{display:none!important}
html body main #px-hero .px-slide.is-on{display:grid!important;position:relative!important;inset:auto!important;opacity:1!important;transform:none!important;
  flex:1 1 auto;min-height:0!important;width:100%;box-sizing:border-box;margin:0!important;padding:0 6px!important;
  grid-template-columns:86px minmax(0,1fr) 86px;grid-template-areas:"l cap r" "l t r" "l b r";grid-template-rows:1fr auto 1fr;
  column-gap:4px;row-gap:6px;align-items:center;animation:slNera .6s ease}
@keyframes slNera{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){html body main #px-hero .px-slide.is-on{animation:none}}
html body main #px-hero .px-slide-pic{display:none!important}
html body main #px-hero .px-slide.is-on::before,html body main #px-hero .px-slide.is-on::after{content:"";display:block;align-self:center;height:120px;
  background:center/contain no-repeat;filter:drop-shadow(0 8px 16px rgba(0,0,0,.5))}
html body main #px-hero .px-slide.is-on::before{grid-area:l}
html body main #px-hero .px-slide.is-on::after{grid-area:r}
html body main #px-hero .px-slide:has(a[href*="riparazioni"])::before{background-image:url(assets/slide/rotto.svg)}
html body main #px-hero .px-slide:has(a[href*="riparazioni"])::after{background-image:url(assets/slide/micro.svg)}
html body main #px-hero .px-slide:has(a[href*="valutazione"])::before{background-image:url(assets/slide/vale.svg)}
html body main #px-hero .px-slide:has(a[href*="valutazione"])::after{background-image:url(assets/slide/soldi.svg)}
html body main #px-hero .px-slide:has(a[href*="acquista"])::before{background-image:url(assets/slide/vetrina.svg)}
html body main #px-hero .px-slide:has(a[href*="acquista"])::after{background-image:url(assets/slide/pos.svg)}
html body main #px-hero .px-slide .px-cap{grid-area:cap;align-self:end;margin:0!important;max-width:none!important;text-align:center;color:#ff4d55!important;
  text-transform:uppercase;font-weight:600!important;font-size:9.5px!important;letter-spacing:.1em!important;line-height:1.25!important;text-shadow:none!important;opacity:1!important}
html body main #px-hero .px-slide h1,html body main #px-hero .px-slide h2.px-slide-t{grid-area:t;margin:0!important;max-width:none!important;text-align:center;color:#fff!important;
  font-weight:800!important;font-size:19px!important;line-height:1.05!important;text-wrap:balance;text-shadow:none!important}
html body main #px-hero .px-slide .px-btn{grid-area:b;align-self:start;justify-self:center;max-width:100%!important;margin:3px 0 0!important;min-height:0!important;
  padding:9px 14px!important;border:0!important;border-radius:999px!important;background:#E50914!important;color:#fff!important;font-weight:700!important;
  font-size:10.5px!important;letter-spacing:.08em!important;text-transform:uppercase;white-space:nowrap;text-shadow:none!important;box-shadow:none!important}
html body main #px-hero .px-slide .px-btn:hover{background:#c40812!important}
html body main #px-hero .px-dots{position:static!important;display:flex!important;justify-content:center;gap:8px;padding:0 0 12px!important;margin:0!important;transform:none!important}
html body main #px-hero .px-dots button{width:30px!important;height:3px!important;min-height:0!important;padding:0!important;border:0!important;border-radius:2px!important;background:#3a3a3a!important}
html body main #px-hero .px-dots button.on{background:#E50914!important}
/* (Paco 26/11) ragno grande della slide con le stesse proporzioni su telefono e computer: largo il 51% dello schermo,
   un quarto fuori dal bordo, circa il 42% nel nero e il resto nel bianco */
/* sotto il nero il ragno continua grigio chiaro nello sfondo della pagina (dietro testi e schede).
   (Paco 26/11 sera) Sotto la slide i ragni restano FERMI come in tutto il sito: sono i ragni fissi della pagina, che compaiono
   appena la slide e' passata (ragno-sfondo.js); in quel momento la continuazione del ragno della slide si dissolve. */
html body main:has(> #px-hero){position:relative}
html body main:has(> #px-hero)::after{content:"";position:absolute;left:0;right:0;top:185px;bottom:0;z-index:-1;pointer-events:none;
  background-image:url(assets/ragno/ragno-chiaro-fila.svg);background-repeat:no-repeat;
  background-size:51.3vw auto;background-position:right -12.8vw top -21.4vw;transition:opacity .6s ease}
html.ragno-su body main:has(> #px-hero)::after{opacity:0}
@media (prefers-reduced-motion:reduce){html body main:has(> #px-hero)::after{transition:none}}
/* tablet e computer: stesse proporzioni del telefono (ragno largo il 51% dello schermo, un quarto fuori dal bordo) */
/* tablet */
@media (min-width:701px){
  html body main #px-hero.px-hero{height:230px;background-size:51.3vw auto!important;background-position:right -12.8vw top calc(230px - 21.4vw)!important}
  html body main #px-hero .px-slide.is-on{grid-template-columns:minmax(0,1fr) 440px minmax(0,1fr);column-gap:16px;row-gap:10px}
  html body main #px-hero .px-slide.is-on::before,html body main #px-hero .px-slide.is-on::after{height:180px}
  html body main #px-hero .px-slide .px-cap{font-size:12px!important}
  html body main #px-hero .px-slide h1,html body main #px-hero .px-slide h2.px-slide-t{font-size:32px!important}
  html body main #px-hero .px-slide .px-btn{font-size:13px!important;padding:12px 24px!important}
  html body main #px-hero .px-dots{padding:4px 0 14px!important}
  html body main #px-hero .px-dots button{width:44px!important}
  html body main:has(> #px-hero)::after{top:230px;background-size:51.3vw auto,51.3vw auto;background-position:right -12.8vw top -21.4vw,left -12.8vw top calc(-21.4vw + 58.55vw)}
}
/* computer */
@media (min-width:1024px){
  html body main #px-hero.px-hero{height:290px;background-size:51.3vw auto!important;background-position:right -12.8vw top 0!important}
  html body main #px-hero .px-slide.is-on{max-width:1180px;margin:0 auto!important;grid-template-columns:minmax(0,1fr) 560px minmax(0,1fr);column-gap:20px;row-gap:12px}
  html body main #px-hero .px-slide.is-on::before,html body main #px-hero .px-slide.is-on::after{height:268px} /* (Paco 26/11) disegni +22% sul computer */
  html body main #px-hero .px-slide .px-cap{font-size:15px!important;letter-spacing:.12em!important}
  html body main #px-hero .px-slide h1,html body main #px-hero .px-slide h2.px-slide-t{font-size:44px!important}
  html body main #px-hero .px-slide .px-btn{font-size:15px!important;padding:15px 30px!important;margin-top:6px!important}
  html body main #px-hero .px-dots{padding:4px 0 14px!important}
  html body main #px-hero .px-dots button{width:52px!important}
  html body main:has(> #px-hero)::after{top:290px;background-size:51.3vw auto,51.3vw auto;background-position:right -12.8vw top -290px,left -12.8vw top calc(-290px + 58.55vw)}
}
