/**
 * HERO KEN BURNS — Home Banner
 * Galeria Leme
 *
 * Efeito de zoom lento nas imagens do banner da home.
 * Texto reposicionado sobre a imagem.
 * Enqueue: via functions.php (apenas na home)
 */

/* =============================================
   CONTAINER — corta o excesso do zoom
   ============================================= */
.hero__item {
  overflow: hidden;
}

/* =============================================
   KEN BURNS — zoom lento na imagem
   ============================================= */
.hero__box {
  animation: heroKenBurns 8s ease-in-out forwards;
}

/* Quando o Swiper troca de slide, reinicia a animação */
.swiper-slide-active .hero__box {
  animation: heroKenBurns 8s ease-in-out forwards;
}

.swiper-slide:not(.swiper-slide-active) .hero__box {
  animation: none;
  transform: scale(1);
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.12);
  }
}

/* =============================================
   TEXTO SOBRE A IMAGEM
   Reposiciona .hero__content para overlay
   ============================================= */
.hero__content {
  /* Sobrepor na parte inferior esquerda da imagem */
  left: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  padding: 40px 48px !important;
  background: none !important;
  /* Sombra no fundo para legibilidade */
  text-shadow: none;
  flex-direction: column !important;
  align-items: flex-start !important;
  max-width: 70%;
}

.hero__title {
  font-size: 42px !important;
  font-weight: 700 !important;
  color: #fff !important;
  padding: 0 !important;
  line-height: 1.1 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase;
}

.hero__subtitle {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0 !important;
  margin-top: 12px !important;
  height: auto !important;
  background: none !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase;
}

/* Texto fica ACIMA da imagem */
.hero__content {
  z-index: 20 !important;
}

/* Corrige altura da imagem — remove gap de 32px do layout original */
.hero__box {
  height: 100% !important;
}

/* =============================================
   MOBILE
   ============================================= */
@media (max-width: 760px) {
  .hero__content {
    padding: 24px 20px !important;
    max-width: 90%;
  }

  .hero__title {
    font-size: 28px !important;
    letter-spacing: 2px !important;
  }

  .hero__subtitle {
    font-size: 13px !important;
    margin-top: 8px !important;
  }


  /* Ken Burns mais sutil no mobile */
  @keyframes heroKenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
  }
}
