/* Garantir que o Splide e os slides fiquem visíveis */
.splide {
  min-height: 320px;
  width: 100%;
}
.splide__track {
  min-height: 320px;
  max-height: 85vh;
  margin-top: 75px;
}
.splide__list {
  min-height: 320px;
}
.splide__slide {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.splide__slide .slide {
  min-height: 320px;
  width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right top;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

@media (max-width: 1199px) {
  .splide__slide .slide {
    background-position: center;
  }
  .splide__track {
    margin-top: 20px;
  }
}

.splide__slide .texto {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  /* position: relative; */
  z-index: 20;
}
.splide__arrows,
.splide__pagination {
  z-index: 30;
}

.slide {
  height: 85vh;
  background-size: cover;
  background-position: center;
  position: relative;
}
.texto {
  position: absolute;
  bottom: 20%;
  left: 5%;
  color: #fff;
  max-width: 520px;
  width: 95%;
  font-family: var(--bs-font-sans-serif, "Roboto", Arial, sans-serif);
  font-size: 1.25rem;
  /* background: linear-gradient(135deg, rgba(33, 37, 41, 0.92) 70%, rgba(13, 110, 253, 0.18) 100%); */
  padding: 2.5rem 2.2rem 2.2rem 2.2rem;
  letter-spacing: 0.01em;
  z-index: 2;
  transition: box-shadow 0.2s;
}

.texto h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.6em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.01em;
  color: #fff;
}

.texto p {
  font-size: 1.08rem;
  font-weight: bold;
  margin-bottom: 1.5em;
  line-height: 1.6;
  color: #fff;
}

@media (max-width: 700px) {
  .texto {
    left: 2%;
    bottom: 4%;
    font-size: 0.98rem;
    padding: 1rem 0.5rem 1rem 0.5rem;
    max-width: 99vw;
  }
  .texto h2 {
    font-size: 1.1rem;
  }
  .texto p {
    font-size: 0.95rem;
  }
  .texto a,
  .texto a.btn,
  .texto a.saiba-mais {
    font-size: 0.93rem;
    padding: 0.5rem 1.1rem;
  }
}

/* Oculta o conteúdo por padrão */
.slide .texto,
.slide {
  opacity: 0;
  transition: none;
}

/* Ativado no slide atual */
.splide__slide.is-active .texto {
  animation: fadeInUp 1s ease forwards;
}
.splide__slide.is-active .slide {
  animation: zoomIn 1s ease forwards;
}

.splide__track {
  z-index: 1;
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
