/* ======================================================= */
/* Estilização da Seção Home (Apresentação)                */
/* ======================================================= */
#home {
  background-color: #f8f9fa;
  padding: 100px 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 60px;
}

.home-texto,
.home-imagem {
  flex: 1;
}

.home-imagem img {
  width: 100%;
  height: auto;
  max-width: 600px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: cover;
}

.home-texto {
  max-width: 550px;
  z-index: 10;
}

.home-texto h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: #182047;
  margin-bottom: 25px;
}

.home-texto p {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 40px;
}

.home-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.button-primary,
.button-secondary {
  background-color: #3b4bbf;
  color: #fff;
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(59, 75, 191, 0.3);
}

.button-primary:hover {
  background-color: #2a358c;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 75, 191, 0.4);
}

.button-secondary {
  background-color: transparent;
  color: #3b4bbf;
  border: 2px solid #3b4bbf;
  box-shadow: none;
}

.button-secondary:hover {
  background-color: #3b4bbf;
  color: #fff;
  transform: translateY(-3px);
}

/* --- RESPONSIVIDADE COM COMPONENTES REDUZIDOS --- */

@media (max-width: 992px) {
  #home {
    padding: 50px 0; /* AJUSTE SIGNIFICATIVO: Espaçamento vertical bem menor */
    min-height: auto;
  }
  .home-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 25px; /* AJUSTE SIGNIFICATIVO: Espaço menor entre imagem e texto */
  }
  .home-texto {
    max-width: 100%;
  }
  .home-texto h1 {
    font-size: 2.1rem; /* AJUSTE SIGNIFICATIVO: Título menor */
    margin-bottom: 20px;
  }
  .home-texto p {
    font-size: 1.05rem; /* AJUSTE SIGNIFICATIVO: Parágrafo menor */
    margin-bottom: 30px;
  }
  .home-cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .home-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 5px; /* AJUSTE SIGNIFICATIVO: Menos espaço entre os botões */
  }
  .button-primary,
  .button-secondary {
    width: 100%;
    max-width: 280px; /* AJUSTE SIGNIFICATIVO: Botões mais estreitos */
    padding: 14px 25px; /* AJUSTE SIGNIFICATIVO: Botões menores */
    font-size: 0.9rem;  /* AJUSTE SIGNIFICATIVO: Fonte menor nos botões */
  }
}

@media (max-width: 576px) {
  #home {
    padding: 40px 0; /* Menos padding ainda para telas pequenas */
  }
  .home-texto h1 {
    font-size: 1.8rem; /* Título bem mais compacto */
  }
  .home-texto p {
    font-size: 0.9rem; /* Parágrafo mais compacto */
  }
}
/* ======================================================= */
/* --- AJUSTES PARA CELULAR NA HORIZONTAL (LANDSCAPE) ---  */
/* ======================================================= */

/* Aplica-se a telas com altura máxima de 500px e na orientação de paisagem */
@media (max-height: 500px) and (orientation: landscape) {

  #home {
    padding: 30px 0; /* Diminui drasticamente o espaçamento vertical */
    min-height: auto;
  }

  .home-container {
    flex-direction: row; /* Volta para o layout lado a lado */
    gap: 30px;
    align-items: center;
    justify-content: center;
  }

  .home-texto h1 {
    font-size: 1.5rem; /* Título bem menor para caber */
    margin-bottom: 15px;
  }

  .home-texto p {
    font-size: 0.8rem; /* Parágrafo menor */
    margin-bottom: 20px;
    line-height: 1.5;
  }
  
  .home-imagem {
    max-width: 250px; /* Limita o tamanho da imagem */
  }

  /* Ajusta os botões para ficarem menores */
  .button-primary,
  .button-secondary {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}