/* Correção isolada da imagem principal da home — deve carregar por último. */
@keyframes ffa-home-hero-image {
  0%, 100% {
    background-position: 50% 52%;
    background-size: 108% auto;
  }

  50% {
    background-position: 52% 50%;
    background-size: 114% auto;
  }
}

@keyframes ffa-home-hero-photo {
  0%, 100% { transform: scale(1.04) translate3d(0, 0, 0); }
  50% { transform: scale(1.09) translate3d(-1%, -.6%, 0); }
}

html body:has(.hero) .hero > .hero-photo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  display: block !important;
  opacity: 1 !important;
  overflow: hidden !important;
  background-color: #063f47 !important;
  background-image: url("/hero-mining-green-hq.webp") !important;
  background-repeat: no-repeat !important;
  background-position: 50% 52% !important;
  background-size: 108% auto !important;
  animation: ffa-home-hero-image 16s ease-in-out infinite !important;
  transform: none !important;
  will-change: background-position, background-size;
}

html body:has(.hero) .hero > .hero-photo::before {
  content: none !important;
  display: none !important;
}

html body:has(.hero) .hero > .hero-photo > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center 52% !important;
  display: block !important;
  opacity: 1 !important;
  animation: ffa-home-hero-photo 16s ease-in-out infinite !important;
  transform-origin: center !important;
  will-change: transform;
}

@media (width <= 850px) {
  html body:has(.hero) .hero > .hero-photo {
    background-position: 62% 50% !important;
    background-size: auto 108% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body:has(.hero) .hero > .hero-photo {
    animation: none !important;
  }

  html body:has(.hero) .hero > .hero-photo > img {
    animation: none !important;
    transform: scale(1.04) !important;
  }
}
