/* Slideshow hero homepage (hero-slider.php). Tutte le regole sono limitate a #hero-slider. */

/* Swiper da' z-index:1 al contenitore: lo chiudo nel livello della foto,
   cosi' la forma gialla (mellow.png) resta sopra la foto come prima */
#hero-slider .contImg {
  z-index: 0;
}

#hero-slider .hs-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#hero-slider .hs-img .hs-wrapper,
#hero-slider .hs-img .hs-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

#hero-slider .hs-text {
  width: 100%;
}
/* Swiper "fade": le slide non attive non devono intercettare i clic */
#hero-slider .hs-text .swiper-slide:not(.swiper-slide-active) {
  pointer-events: none;
}

/* CTA */
#hero-slider .hs-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.75rem;
  padding: 1rem 1.5rem;
  border-radius: .5rem;
  background: #262626;
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background-color .25s ease;
}
#hero-slider .hs-cta:hover,
#hero-slider .hs-cta:focus-visible {
  background: #000;
}
#hero-slider .hs-cta:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}
#hero-slider .hs-cta svg,
#hero-slider .hs-cta i {
  transition: transform .25s ease;
}
#hero-slider .hs-cta:hover svg,
#hero-slider .hs-cta:hover i {
  transform: translateX(4px);
}

/* La forma gialla non deve bloccare il trascinamento della foto */
#hero-slider .hs-shape {
  pointer-events: none;
}

/* Paginazione: in basso al centro della foto (mobile) / della hero (desktop) */
#hero-slider .hs-pagination {
  position: absolute;
  z-index: 20;
  top: 464px;
  bottom: auto;
  left: 50%;
  width: auto;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
}
@media (min-width: 768px) {
  #hero-slider .hs-pagination {
    top: auto;
    bottom: calc(18% + 24px);
  }
}
#hero-slider .hs-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 !important;
  border-radius: 999px;
  background: #fff;
  opacity: .6;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
  transition: width .3s ease, opacity .3s ease;
}
#hero-slider .hs-pagination .swiper-pagination-bullet-active {
  width: 28px;
  opacity: 1;
}
