.home-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  height: 100vh;
}

/* Dentro do .homeSlideshow */
.homeSlideshow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--background, #0e0e0e));
  z-index: 1;
  pointer-events: none;
}


/* Slideshow container com 70% da altura da viewport */
.homeSlideshow {
  position: relative;
  /* mudei para relative para melhor alinhamento */
  width: 100%;
  /* ocupa toda largura da home-section */
  max-height: 100%;
  z-index: 0;
  margin: 0 auto;
  /* centraliza horizontalmente se a largura for menor */
  overflow: hidden;
  /* esconde o que sair do container */
}

/* Cada slide */
.homeSlideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-repeat: no-repeat;
  pointer-events: none;
  height: 100%;
  /* para garantir que o slide ocupe 100% do container */
}

.homeSlideshow .slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

/* Botões de navegação */
.homeSlideshow button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.homeSlideshow button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.prevSlide {
  left: 20px;
}

.nextSlide {
  right: 20px;
}

/* Barrinha slideprogress */

.slide-progress {
  position: absolute;
  top: 0;
  /* ajuste a distância do bottom conforme seu layout */
  left: 0;
  height: 3px;
  width: 0;
  background-color: var(--secondary);
  z-index: 10;
  transition: width 0s;
}

.slide.active .slide-progress {
  animation: slideProgressAnim 10s linear forwards;
}

@keyframes slideProgressAnim {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}