/* === BANNER DE CONTACTOS === */
.contact-banner {
  position: relative;
  background: url("../../images/contactos/contactos-banner.jpg") center/cover no-repeat;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 50px; /* espaço esquerdo para o texto */
  font-family: "Inter", Helvetica, Arial, sans-serif;
  color: #ffffff; /* cor do texto */
  box-sizing: border-box;
}

.contact-banner-content {
  position: relative;
  z-index: 1;
  margin-left: 300px;
  max-width: 600px;
  border-radius: 8px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.1);
}

.contact-banner-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-banner-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
}

/* === SEÇÃO DE CONTACTOS === */
.contactos {
  padding: 4rem 1rem;
  background: #f9fbfc;
  font-family: "Inter", sans-serif;
}

.contactos-inner {
  display: grid;
  grid-template-columns: 28% 29% 41.5%;
  gap: 0.5rem;
  max-width: 1470px;
  margin: 0 auto;
  align-items: start;
}

/* Blocos de contactos */
.contactos-info {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  max-height: 523px;
  height: 523px;
}

.contactos-info h2 {
  color: #005b99;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contactos-info p {
  margin-bottom: 0.5rem;
  color: #444;
  font-size: 0.95rem;
}

.contactos-info i {
  color: #005b99;
  margin-right: 0.4rem;
}

/* Horário */
.horario {
  background: #e6f2ff;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 1rem;
}

/* Botões */
.contactos-botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-contacto,
.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-contacto {
  background: #005b99;
  color: #fff;
}

.btn-contacto:hover {
  background: #004477;
}

.btn-maps {
  background: #f0f8ff;
  color: #005b99;
  border: 1px solid #cce6ff;
}

.btn-maps:hover {
  background: #e6f2ff;
}

/* Mapa ocupa a 3ª coluna */
.contactos-mapa iframe {
  width: 100%;
  height: 100%;
  min-height: 523px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* === FORMULÁRIO COM IMAGEM AO LADO === */
.contactos-form-full {
  padding: 2rem 0.5rem;
  background: #f9fbfc;
}

.contactos-form-wrapper {
  display: flex;
  max-width: 98%;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.contactos-form-wrapper:hover {
  transform: translateY(-4px);
}

/* Contêiner das imagens */
.contactos-form-img {
  flex: 1;
  max-width: 50%;
  height: 450px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contactos-form-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.contactos-form-img:hover img {
  transform: scale(1.05);
}

/* === RESPONSIVIDADE === */
/* === Laptops grandes e desktops médios (1025px a 1480px) === */
@media (min-width: 1025px) and (max-width: 1480px) {
  .contactos-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .contactos-info {
    flex: 1 1 45%;
    min-width: 400px;
  }

  .contactos-mapa {
    flex: 1 1 100%;
    margin-top: 2rem;
  }

  .contactos-mapa iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
  }

  .contact-banner {
    height: 420px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .contact-banner-content {
    max-width: 60%;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 12px;
  }

  .contact-banner-content h1 {
    font-size: 2.4rem;
  }

  .contact-banner-content p {
    font-size: 1.1rem;
    line-height: 1.5;
  }

  /* 🔹 Imagens lado a lado 50/50 */
  .contactos-form-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: stretch; /* garante mesma altura */
  }

  .contactos-form-img {
    flex: 1 1 50%;
    max-width: 50%;
    height: 400px; /* altura fixa e igual para ambas */
  }

  .contactos-form-img img {
    width: 100%;
    height: 100%; /* força a ocupar toda a altura */
    object-fit: cover; /* recorta proporcionalmente sem distorcer */
    border-radius: 14px;
  }

  .contactos-form-container {
    flex: 1 1 55%;
    max-width: 55%;
    padding: 2rem;
  }

  .contactos-form-container h2 {
    font-size: 1.9rem;
    margin-bottom: 1.2rem;
  }

  .btn-enviar,
  .btn-contacto,
  .btn-maps {
    font-size: 1rem;
    padding: 0.9rem 1.4rem;
  }
}

/* === Tablets grandes e laptops médios (até 1024px) === */
@media (max-width: 1024px) {
  .contactos-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .contactos-info {
    flex: 1 1 45%;
    min-width: 400px;
  }

  .contactos-mapa {
    flex: 1 1 100%;
    margin-top: 2rem;
  }

  .contactos-mapa iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
  }

  .contact-banner {
    height: 420px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .contact-banner-content {
    max-width: 60%;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 12px;
  }

  .contact-banner-content h1 {
    font-size: 2.4rem;
  }

  .contact-banner-content p {
    font-size: 1.1rem;
    line-height: 1.5;
  }

  /* 🔹 Imagens lado a lado 50/50 */
  .contactos-form-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: stretch; /* garante mesma altura */
  }

  .contactos-form-img {
    flex: 1 1 50%;
    max-width: 50%;
    height: 400px; /* altura fixa e igual para ambas */
  }

  .contactos-form-img img {
    width: 100%;
    height: 100%; /* força a ocupar toda a altura */
    object-fit: cover; /* recorta proporcionalmente sem distorcer */
    border-radius: 14px;
  }

  .contactos-form-container {
    flex: 1 1 55%;
    max-width: 55%;
    padding: 2rem;
  }

  .contactos-form-container h2 {
    font-size: 1.9rem;
    margin-bottom: 1.2rem;
  }

  .btn-enviar,
  .btn-contacto,
  .btn-maps {
    font-size: 1rem;
    padding: 0.9rem 1.4rem;
  }
}

/* === Tablets pequenos e smartphones grandes (de 800 até 900px) === */
@media (min-width: 800px) and (max-width: 900px) {
  .contact-banner-content {
    max-width: 90%;
    padding: 1.2rem;
  }

  .contact-banner-content h1 {
    font-size: 1.8rem;
  }

  .contact-banner-content p {
    font-size: 0.95rem;
  }

  /* 🔹 Imagens lado a lado 50/50 */
  .contactos-form-wrapper {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    align-items: stretch;
  }

  .contactos-form-img {
    flex: 1 1 50%;
    max-width: 50%;
    height: 250px; /* altura reduzida para mobile */
  }

  .contactos-form-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  .contactos-form-container {
    padding: 0.8rem;
  }

  .contactos-form-container h2 {
    font-size: 0.8rem;
    text-align: center;
  }

  /* 🔹 Ajuste dos botões */
  .contactos-botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    justify-content: center;
  }

  .btn-contacto,
  .btn-maps {
    flex: 1 1 30%;   /* ficam lado a lado */
    max-width: 62%;
  }

  /* 🔹 Mapa sempre 100% largura em baixo */
  .contactos-mapa {
    width: 100%;
    margin-top: 1.5rem;
  }

  .contactos-mapa iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
  }
}

/* === Smartphones médios (até 768px) === */
@media (max-width: 768px) {
  .contact-banner {
    height: auto;
    padding: 2rem 1rem;
    justify-content: center;
    text-align: center;
  }

  .contact-banner-content {
    margin-left: 0;
    max-width: 95%;
    padding: 1.2rem;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.55);
  }

  .contact-banner-content h1 {
    font-size: 1.5rem;
  }

  .contact-banner-content p {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .contactos-form-wrapper {
    flex-direction: column;
  }

  .contactos-form-img {
    max-width: 100%;
    height: 220px;
    border-radius: 12px 12px 0 0;
  }

  .contactos-form-img img {
    height: 100%;
    border-radius: 12px 12px 0 0;
  }

  .contactos-form-container {
    padding: 1.2rem;
  }

  .contactos-form-container h2 {
    font-size: 1.4rem;
    text-align: center;
  }

  /* 🔹 Ajuste dos botões */
  .contactos-botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .btn-contacto,
  .btn-maps {
    flex: 1 1 45%;   /* ficam lado a lado */
    max-width: 48%;
  }

  /* 🔹 Contactos em coluna em ecrãs pequenos */
  .contactos-inner {
    flex-direction: column;
  }

  .contactos-info {
    flex: 1 1 100%;
  }

  .contactos-mapa {
    order: 3;
    width: 100%;
  }

  .contactos-mapa iframe {
    min-height: 300px;
  }
}

/* Smartphones menores (até 480px) */
@media (max-width: 480px) {
  .contact-banner {
    padding: 1.5rem 0.8rem;
  }

  .contact-banner-content {
    max-width: 100%;
    padding: 1rem;
    border-radius: 8px;
  }

  .contact-banner-content h1 {
    font-size: 1.2rem;
  }

  .contact-banner-content p {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .contactos-form-container h2 {
    font-size: 1rem;
  }

  .btn-enviar {
    font-size: 0.9rem;
    padding: 0.5rem 0.5rem;
  }
}

/* Smartphones pequenos (até 460px) */
@media (max-width: 460px) {
  .contact-banner {
    padding: 1.2rem 0.6rem;
  }

  .contact-banner-content {
    max-width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
  }

  .contact-banner-content h1 {
    font-size: 1.1rem;   /* texto menor */
  }

  .contact-banner-content p {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  /* 🔹 Ajuste extra dos botões */
  .contactos-botoes {
    flex-direction: column;
    gap: 0.6rem;
  }

  .btn-contacto,
  .btn-maps {
    flex: 1 1 100%;
    max-width: 100%;
    font-size: 0.85rem;   /* botões menores */
    padding: 0.6rem 0.8rem;
  }
}

/* Smartphones entre 362px e 456px */
@media (min-width: 362px) and (max-width: 456px) {
  .contact-banner-content {
    padding: 0.6rem;
  }

  .contact-banner-content h1 {
    font-size: 1rem;
  }

  .contact-banner-content p {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .contactos-inner {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .contactos-info {
    padding: 0.8rem;
    height: auto;
    max-height: none;
  }

  .contactos-info h2 {
    font-size: 0.95rem;
  }

  .contactos-info p {
    font-size: 0.8rem;
  }

  .btn-contacto,
  .btn-maps {
    font-size: 0.8rem;
    padding: 0.55rem 0.75rem;
  }

  .contactos-mapa iframe {
    min-height: 220px;
    border-radius: 6px;
  }
}

/* Smartphones muito pequenos (até 360px) */
@media (max-width: 360px) {
  .contact-banner-content {
    padding: 0.8rem;
  }

  .contact-banner-content h1 {
    font-size: 1rem;
  }

  .contact-banner-content p {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .contactos-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contactos-info {
    padding: 1rem;
    height: auto;
    max-height: none;
  }

  .contactos-info h2 {
    font-size: 1rem;
  }

  .contactos-info p {
    font-size: 0.85rem;
  }

  .btn-contacto,
  .btn-maps {
    flex: 1 1 100%;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
  }

  .contactos-mapa iframe {
    min-height: 250px;
    border-radius: 8px;
  }

  .contactos-form-container h2 {
    font-size: 1.1rem;
  }
}

/* Smartphones ultra pequenos (até 320px) */
@media (max-width: 320px) {
  .contactos-form-container {
    padding: 1rem 0.5rem;
  }

  .contactos-form-container h2 {
    font-size: 1rem;
  }

  .form-group input,
  textarea {
    font-size: 0.85rem;
    padding: 0.6rem;
  }

  .btn-enviar {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
}
