/* Hero padrão para todas as páginas */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-overlay);
}

.hero__container {
  max-width: var(--large);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 1;
}

.hero__content {
  color: white;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero__title {
  font-size: 4rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 300;
  letter-spacing: 2px;
}

.hero__description {
  font-size: 1.5rem;
  margin-bottom: 20px;
  opacity: 0.95;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero__buttons {
  display: flex;
  gap: 100px;
  justify-content: center;
  flex-wrap: wrap; /* Permite quebrar em telas médias se necessário, antes de virar linha única */
}

.button {
  padding:  var(--spacing-md);
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-block;
}

.button--primary {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 25px;
}

.button--primary:hover {
  background-color: var(--primary-hover);
  /* transform: translateY(-2px); Efeito de "pulo" removido */
}

.button--outline {
  background-color: whitesmoke;
  color: black;
  border: none;
  padding: 10px 25px;
}

.button--outline:hover {
  background-color: white;
  color: var(--text-color);
}

/* Estilos específicos para o carrossel */
.hero__carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero__slide.active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-overlay);
}

.hero__indicators {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero__dot:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.3);
}

.hero__dot.active {
  background: white;
  border-color: white;
}

/* ========================================= */
/* CONTROLE RESPONSIVO DO HERO          */
/* ========================================= */

/* Para tablets e celulares */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .hero__description {
    font-size: 1.2rem;
    padding: 0 1rem;
  }
  
  /* CORREÇÃO APLICADA AQUI */
  .hero__buttons {
    flex-direction: column; /* Empilha os botões verticalmente */
    align-items: center;
    gap: 1rem;
    width: 100%;
  }

  .hero__buttons .button {
    width: 80%; /* Define uma largura para os botões empilhados */
    max-width: 300px; /* Largura máxima para não ficarem muito grandes */
    font-size: 0.8rem;
  }
  .button--primary, .button--outline {
    padding: 8px 20px !important; /* Padding vertical reduzido para botões mais finos */
  }

  .hero__indicators {
    bottom: 100px;
  }
}

/* Apenas para celulares pequenos */
@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__description {
    font-size: 1.05rem;
    padding: 0 1rem;
  }

  .hero__indicators {
    bottom: 120px;
  }
}