/* Carrossel público da página inicial. */
.carousel-home.carousel-custom {
  position: relative;
  width: min(100%, 1580px);
  aspect-ratio: 1580 / 530;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  box-shadow: none;
}

.carousel-home .carousel-inner,
.carousel-home .carousel-item {
  width: 100%;
  height: 100%;
}

.carousel-home .carousel-inner {
  position: relative;
}

.carousel-home .carousel-home__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

.carousel-home .carousel-control-prev,
.carousel-home .carousel-control-next {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: #fff;
  background-color: transparent;
  width: clamp(44px, 8%, 88px);
  opacity: 0.92;
  cursor: pointer;
}

.carousel-home .carousel-control-prev {
  left: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent);
}

.carousel-home .carousel-control-next {
  right: 0;
  background: linear-gradient(-90deg, rgba(0, 0, 0, 0.42), transparent);
}

.carousel-home .carousel-control-prev-icon,
.carousel-home .carousel-control-next-icon {
  width: clamp(1.35rem, 2.6vw, 2rem);
  height: clamp(1.35rem, 2.6vw, 2rem);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55));
}

.carousel-home .carousel-indicators {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  z-index: 5;
  gap: 6px;
  margin-inline: 15%;
  margin-bottom: clamp(0.45rem, 1.3vw, 1rem);
  padding: 0;
  list-style: none;
}

.carousel-home .carousel-indicators [data-bs-target] {
  width: clamp(22px, 3vw, 38px);
  height: 4px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  opacity: 0.55;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.carousel-home .carousel-indicators .active {
  opacity: 1;
}

.carousel-home--mobile {
  display: none;
}

/* Evita layout e pintura antecipados das seções distantes da dobra. */
.home-categorias,
.showcase-destaques,
.home-institucional {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

@media (max-width: 767.98px) {
  .carousel-home--desktop {
    display: none;
  }

  .carousel-home--mobile {
    display: block;
  }

  .carousel-home.carousel-custom {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    box-shadow: none;
  }

  .carousel-home .carousel-home__image {
    display: block;
    object-fit: cover;
    object-position: center;
  }

  .carousel-home .carousel-indicators {
    margin-bottom: 0.38rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-home {
    scroll-behavior: auto;
  }

  .carousel-home .carousel-item {
    transition: none;
  }

}
