/* ========================================
   SEÇÃO DE BANNER (TÍTULO)
======================================== */
.banner-contato img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  flex-shrink: 0;
}

.banner-contato {
  text-align: center;
  background-color: #F4F4F4;
  padding: 40px 20px;
  margin-bottom: 30px;
  position: relative; /* Adicionado para posicionar o conteúdo */
}

.banner-contato h1 {
  font-size: 80px;
  color: #ffffff;
  font-weight: bold;
  /* Ajuste para melhorar a responsividade do texto */
  font-size: max(40px, 5vw); /* Mínimo 40px, máximo 5% da largura da viewport */
}

.banner-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  font-family: 'Playfair Display', serif;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  width: 100%; /* Garante que o texto ocupe toda a largura do banner */
  box-sizing: border-box; /* Inclui padding e border na largura total */
  padding: 0 20px; /* Adiciona espaço nas laterais */
}

/* ========================================
   SEÇÃO DE FORMULÁRIO E DETALHES
======================================== */
.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 30px;
}

/* Estilo da seção do formulário */
.contact-form {
  flex: 1;
}

.contact-form h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  font-size: 14px;
  color: #333;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.form-group textarea {
  resize: none;
}

.contact-form button {
  background-color: #0078d4;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #0056a3;
}

/* Seção de informações */
.contact-details {
  flex: 1;
  padding-left: 50px;
}

.contact-details h2 {
  font-size: 35px;
  color: #333;
  margin-bottom: 20px;
}

.contact-details p {
  font-size: 22px;
  color: #555;
  line-height: 1.5;
}

.contact-details p strong {
  display: block;
  color: #000;
  font-weight: bold;
}

/* ========================================
   MAPA
======================================== */
.map {
  max-width: 1000px;
  margin: 30px auto 0 auto;
  text-align: center;
}

.map iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 5px;
}

/* ========================================
   RESPONSIVIDADE
======================================== */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-details {
    width: 100%;
    margin-bottom: 20px;
  }

  .map iframe {
    height: 250px;
  }

  /* Estilo padrão do banner-logo em telas menores */
  .banner-logo {
    position: absolute; /* Mantém o posicionamento absoluto */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
  }

  /* Estilo do banner-logo quando o menu está ativo */
  .menu.active + .banner-contato .banner-logo {
    position: relative; /* Remove o posicionamento absoluto */
    top: auto;
    left: auto;
    transform: none;
    text-align: center;
    margin-top: 20px;
    font-size: 5vw;
    padding: 20px;
    box-sizing: border-box;
  }
}