.slider {
  padding: 0;
}

/* Slider Background - Standardized container for all slide types */
.slider-background {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

/* Background overlay for image slides without product */
.slider-background--overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

/* Video background */
.slider-background--video {
  padding: 0;
  overflow: hidden;
}

.slider-background__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: brightness(0.7);
  z-index: 0;
}

/* Content wrapper */
.row-container-slider {
  position: relative;
  z-index: 1;
  width: 100%;
}

@media screen and (min-width: 1440px) {
  .row-container-slider {
    max-width: 1440px;
    margin: 0 auto;
  }
}

/* Slider content */
.slider-content {
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: var(--wp--style--root--padding-left);
  padding-right: var(--wp--style--root--padding-right);
}

.testo_prefisso-slider {
  margin-bottom: 1rem;
}

.titolo-slider {
  margin: 1rem 0 3rem 0;
  font-size: clamp(3.375rem, 3.375rem + ((1vw - 0.48rem) * 2.163), 4.5rem);
  line-height: 1;
  font-family: var(--wp--preset--font-family--source-sans-pro-semibold);
  max-width: 870px;
}

.titolo-slider .titolo-maxilla {
  font-family: var(--wp--preset--font-family--nasalization), sans-serif;
  white-space: nowrap;
}

.descrizione-slider {
  font-size: clamp(18px, 0.938rem + ((1vw - 7.68px) * 0.601), 20px);
  max-width: 870px;
  margin-bottom: 1rem;
}

.url-slider {
  padding: 2rem 0;
}

/* Product image */
.slider-product-image {
  padding-top: 1rem;
}

.slider-product-image img {
  width: 100%;
  height: auto;
}

/* Carousel indicators */
.carousel-indicators {
  right: 0;
  bottom: 50%;
  left: unset;
  display: inline;
  margin: 0 1rem;
}

.carousel-indicators li {
  background-color: #0091b3;
  height: 2px;
}

.carousel-indicators .active {
  width: 230% !important;
  margin-left: -50px;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  .titolo-slider {
    font-size: 40px;
  }

  .carousel-indicators {
    display: none;
  }

  #carouselExampleSlidesNav3 .row {
    margin-left: 0px;
  }

  .slider-product-image {
    padding-left: var(--wp--style--root--padding-left);
    padding-right: var(--wp--style--root--padding-right);
  }
}
