/* Correções para problemas de responsividade na seção HERO */

/* Ajuste para evitar overflow horizontal em dispositivos móveis */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Ajustes específicos para a seção HERO em dispositivos móveis */
@media (max-width: 768px) {
  .hero-image-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-image {
    width: 100%;
    max-width: 100%;
    transform: none !important; /* Remover a transformação 3D que pode causar problemas */
  }
  
  .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  .hero-description {
    font-size: 1rem;
    max-width: 100%;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-features {
    margin-top: 1rem;
  }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
  .hero {
    padding: 5rem 0 3rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-tagline {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }
  
  .image-badge {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    top: 10px;
    right: 10px;
  }
}

/* Melhorias para o lightbox */
.lightbox {
  z-index: 2000;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-caption {
  position: relative;
  bottom: 0;
  margin-top: 1rem;
  width: 100%;
  background: rgba(5, 5, 16, 0.9);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(5, 5, 16, 0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav {
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
}

.lightbox-prev,
.lightbox-next {
  background: rgba(5, 5, 16, 0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 576px) {
  .lightbox-content {
    max-width: 95%;
  }
  
  .lightbox-caption {
    padding: 0.8rem;
  }
  
  .lightbox-title {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }
  
  .lightbox-desc {
    font-size: 0.9rem;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 35px;
    height: 35px;
  }
}

