/* Popster v3.11.21 — categorie stratificate e scorrimento tablet/desktop stretto. */
/* /categorie/: minimal davanti; ambientata al 60% dietro, insieme e senza flip. */
.popster-v315-categories-page .popster-v318-category-image {
  isolation:isolate;
  background:#f0ede5 !important;
}
.popster-v315-categories-page .popster-v318-category-image > .popster-v318-category-main {
  opacity:.60 !important;
  transform:none !important;
  object-fit:cover !important;
  z-index:0;
}
.popster-v315-categories-page .popster-v318-category-image > .popster-v318-category-alt {
  opacity:1 !important;
  background:transparent !important;
  object-fit:contain !important;
  object-position:center !important;
  z-index:1;
  padding:5% !important;
  transform:none !important;
}
/* Nessuna alternanza al passaggio del mouse, al focus o al tocco. */
.popster-v315-categories-page .popster-v321-layered:hover .popster-v318-category-main,
.popster-v315-categories-page .popster-v321-layered:focus-visible .popster-v318-category-main {opacity:.60 !important;}
.popster-v315-categories-page .popster-v321-layered:hover .popster-v318-category-alt,
.popster-v315-categories-page .popster-v321-layered:focus-visible .popster-v318-category-alt {opacity:1 !important;}
/* Una sola immagine disponibile: mostrala nitida, senza diminuire opacità. */
.popster-v315-categories-page .popster-v318-category-card:not(.popster-v321-layered) .popster-v318-category-main {opacity:1 !important;}
/* Allineamento e spaziatura delle card invariati; evidenzia solo il collegamento. */
.popster-v315-categories-page .popster-v318-category-card:focus-visible {outline:2px solid #e85d3a;outline-offset:4px;}
/* Su tablet e desktop stretto, «Esplora» passa allo scroll orizzontale:
   il desktop ampio mantiene la griglia a 3 colonne. */
@media (min-width:768px) and (max-width:1199px) {
  body.home .popster-v315-categories .popster-v320-explore-desktop {display:none !important;}
  body.home .popster-v315-categories .popster-v320-explore-mobile.popster-v315-categories-grid {
    box-sizing:border-box !important;
    display:grid !important;
    position:relative !important;
    left:50% !important;
    transform:translateX(-50%) !important;
    width:100vw !important;
    max-width:100vw !important;
    min-width:0 !important;
    margin:0 !important;
    padding:2px 0 16px !important;
    grid-template-columns:none !important;
    grid-template-rows:repeat(2,minmax(0,auto)) !important;
    grid-auto-flow:column !important;
    grid-auto-columns:calc((100vw - 32px) / 2.2) !important;
    gap:18px 16px !important;
    align-items:start !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scroll-snap-type:x proximity !important;
    overscroll-behavior-x:contain !important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    touch-action:pan-x pan-y;
  }
  body.home .popster-v315-categories .popster-v320-explore-mobile::-webkit-scrollbar {display:none;}
  body.home .popster-v315-categories .popster-v320-explore-mobile>.popster-v315-category-card {
    box-sizing:border-box !important;
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    scroll-snap-align:start !important;
  }
  body.home .popster-v315-categories .popster-v320-explore-mobile .popster-v315-category-image {
    width:100% !important;
    aspect-ratio:7/5 !important;
    background:transparent !important;
    overflow:visible !important;
  }
  body.home .popster-v315-categories .popster-v320-explore-mobile .popster-v315-category-image img {
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
  }
  body.home .popster-v31111-scroll-cue--explore {display:inline-flex !important;}
}
/* Mantiene 1,5 card visibili su smartphone secondo la versione 3.11.20. */
@media (max-width:767px) {
  body.home .popster-v315-categories .popster-v320-explore-mobile.popster-v315-categories-grid {
    scroll-snap-type:x proximity !important;
    overscroll-behavior-x:contain !important;
  }
}
