/* Reset simples */
* {
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.img-wrapper {
  position: relative;
  display: block;
}

.img-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* pseudo-elemento para sombra/gradiente */
.img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Gradiente de sombra da cor #357186: escuro em cima, claro embaixo */
  background: linear-gradient(to bottom, rgba(38, 85, 102, 0.7) 0%,
      /* topo escuro */
      rgba(26, 105, 134, 0.507) 50%,
      /* meio */
      rgba(15, 136, 180, 0.959) 100%
      /* base clara */
    );
  z-index: 1;
  pointer-events: none;
  /* não interfere em cliques */
}

.principal {
  position: relative;
}

/* Faz a segunda imagem ficar "abaixo" */
.bady_cont .principal:nth-of-type(2) .img-wrapper {
  position: relative;
  z-index: 1;
  /* imagem atrás */
}

/* Faz o texto da primeira principal ficar por cima */
.bady_cont .principal:nth-of-type(1) h1, .bady_cont .principal:nth-of-type(1) p {
  position: absolute;
  /* posiciona sobre a segunda imagem */
  top: 74px;
  /* ajusta conforme necessário */
  left: 50%;
  /* centraliza horizontalmente */
  transform: translateX(-50%);
  z-index: 2;
  /* acima da imagem */
  color: #fff;
  /* se quiser contraste com a imagem */
  text-align: center;
}

/* Ajusta h1 e p separadamente */
.bady_cont .principal:nth-of-type(1) h1 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  /* margem inferior de 20px para separar do p */
}

.bady_cont .principal:nth-of-type(1) p {
  font-size: 0.93rem;
  font-weight: 300;
  margin: 0;
  /* remove margens indesejadas */
  padding-top: 40px;
  /* espaço extra se necessário */
}

/* BOLA (pagina ativa) centralizada com o h1 */
.contacto .info {
  display: flex;
  flex-direction: column;
  /* coluna: bola em cima, h1 embaixo */
  align-items: center;
  /* centraliza horizontalmente */
  text-align: center;
  /* centraliza texto */
  margin-bottom: 10px;
  gap: 15px;
  /* espaço entre bola e título */
}

.contacto .info h1 {
  font-size: 1.6rem;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

.pagina {
  width: 60px;
  height: 60px;
  background: #F36D53;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  gap: 10px;
  text-align: center;
}

/* Remove o position absolute do modal-overlay */
.modal-overlay {
  position: relative;
  /* fica no fluxo normal */
  background: transparent;
  /* fundo transparente, não cobre tudo */
  display: flex;
  justify-content: center;
  margin-top: -180px;
  /* espaço entre o conteúdo p e o modal */
  z-index: 2;
}

.modal {
  background: #fff;
  padding: 30px 40px;
  /* reduz padding para mobile */
  border-radius: 10px;
  width: 100%;
  max-width: 600px;
  /* limite máximo */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  height: auto;
  box-sizing: border-box;
}

/* Formulário */
.contacto form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Inputs lado a lado (desktop) */
.dados {
  display: flex;
  gap: 20px;
}

/* Colunas do input */
.dados>div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Inputs e textarea */
.dados input, .contacto textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #b9b9b9;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  font-size: 1rem;
}

/* Textarea */
.contacto textarea {
  height: 100px;
  resize: vertical;
}

/* Labels */
.contacto label {
  font-weight: 300;
  margin-bottom: 5px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
}

/* Botão enviar */
.contacto .lin {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  border: none;
  background-color: #F36D53;
  text-decoration: none;
  color: #fff;
  padding: 10px 20px;
  font-size: 1.2rem;
  width: 100%;
  /* ocupa toda a largura no mobile */
  max-width: 200px;
  /* limite no desktop */
  transition: 0.2s;
}

.contacto .lin:hover {
  background-color: #585757;
}

/* RESPONSIVO: Mobile (<768px) */
@media (max-width: 768px) {
  .dados {
    flex-direction: column;
    /* inputs um abaixo do outro */
    gap: 12px;
  }

  .modal {
    padding: 20px 20px;
    /* menos padding */
  }

  .contacto .lin {
    width: 40%;
    /* botão ocupa toda largura */
    max-width: none;
  }
}

/* ========================= */
/* MAPAS */
/* ========================= */
.mapa-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* TEXTO */
.visite {
  margin: 50px 5px 0 5px;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  text-align: center;
}

.visite h1 {
  font-size: 2.2rem;
  font-weight: 500;
}

.visite p {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 300;
}

/* ========================= */
/* CONTAINER DOS MAPAS */
/* ========================= */
.mapas {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  width: 75%; 
}

/* CARD DO MAPA */
.map {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 300px;
}

.map h1 {
  font-size: 2rem;
  text-align: center;
  font-weight: 550;
}

/* LEAFLET MAP */
.mapas>.map>div {
  width: 100%;
  height: 350px;
  border: 3px solid #d4cdcdb7;
  border-radius: 10px;
  margin-bottom: 40px;
}

/* ========================= */
/* MOBILE CAROUSEL */
/* ========================= */
@media (max-width:768px) {
  .mapa-container>.mapas {
    display: flex;
    overflow-x: hidden;
    /* impede aparecer o próximo mapa */
    scroll-snap-type: x mandatory;
    width: 100%;
    gap: 0;
  }

  /* esconder scrollbar */
  .mapa-container>.mapas::-webkit-scrollbar {
    display: none;
  }

  /* slide */
  .map {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    scroll-snap-align: start;
    padding: 0;
    box-sizing: border-box;
  }

  /* mapa */
  .mapas>.map>div {
    width: 100%;
    height: 300px;
  }
}

@supports (-webkit-touch-callout: none) {

  *{
    font-family: 'Poppins', sans-serif !important;
  }

}