/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #e6f2e6, #cde9cd);
  color: #2e4d2b;
  padding: 20px 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Cabeçalho */
header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #2a7a2a;
  color: #e6f2e6;
  padding: 25px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(42, 122, 42, 0.3);
  text-align: center;
  margin-bottom: 50px;
  transition: background-color 0.3s ease;
}

header img {
  width: 400px;
  height: auto;
  margin-bottom: 10px;
}

a.botao-voltar {
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
  background-color: #a1cfa1;
  color: #2a7a2a;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(161, 207, 161, 0.6);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a.botao-voltar:hover {
  background-color: #7aae7a;
  color: #e6f2e6;
  box-shadow: 0 4px 8px rgba(122, 174, 122, 0.7);
}

/* Video de entrada */
.video {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 42px;
}

.video video {
  border-radius: 15px;
  box-shadow: 0px 2px 10px rgba(45, 85, 45, 0.6);
}

/* Facebook e Serviços lado a lado */
.facebook-servicos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 45px;
  margin-bottom: 70px;
  justify-content: center;
}

.facebook,
.servicos {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  min-width: 320px;
  background-color: #daf0db;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(45, 85, 45, 0.15);
  transition: box-shadow 0.3s ease;
}

.facebook:hover,
.servicos:hover {
  box-shadow: 0 6px 15px rgba(45, 85, 45, 0.3);
}

.facebook h2,
.servicos h2 {
  margin-bottom: 18px;
  color: #2a7a2a;
  font-size: 1.8rem;
  border-bottom: 3px solid #7aae7a;
  padding-bottom: 6px;
}

/* Container do iframe Facebook */
.fb-container {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(42, 122, 42, 0.25);
}

.fb-container iframe {
  border: none;
  overflow: hidden;
  width: 100%;
  height: 940px;
}

/* Lista de serviços (não é ul, mas divs com .servico-item) */
.servicos-lista {
  margin-top: 10px;
  text-align: left;
}

.servico-item {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1.15rem;
  color: #375c37;
}

.servico-item img {
  width: 200px;
  height: 155px;
  vertical-align:middle;
  margin-right: 45px;
  border-radius: 15px;
  box-shadow: 0 6px 14px rgba(42, 122, 42, 0.4);
  transition: transform 0.3s ease;
}

.servico-item img:hover {
  transform: scale(1.05);
}

.servico-item span {
  font-weight: bold;
  font-size: 26px;
}

/* Galeria de Imagens */
.galeria {
  margin-bottom: 70px;
}

.galeria h2 {
  color: #2a7a2a;
  margin-bottom: 24px;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.galeria-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.galeria-container img {
  width: 100%;
  height: 240px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(42, 122, 42, 0.4);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.galeria-container img:hover {
  transform: scale(1.05);
}

/* Sobre Nós */
.sobre {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.sobre h2 {
  color: #2a7a2a;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 3px solid #2a7a2a;
  padding-bottom: 6px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.sobre-container {
  display: flex;
  justify-content: center;
  gap: 45px;
  margin: 50px;
}

/* Texto sobre nós */
.info-texto {
  max-width: 900px;
  background-color: #ffffff;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 6px 14px rgba(42, 122, 42, 0.4);
  transition: box-shadow 0.3s ease;
}

.info-texto:hover {
  box-shadow: 0 6px 14px rgba(42, 122, 42, 0.6);
}

.info-texto p {
  margin: 10px 0;
  color: #2e4d2b;
  font-size: 1.1rem;
  line-height: 1.5;
}

.info-texto h3 {
  margin-top: 20px;
  color: #375c37;
  font-weight: 600;
  font-size: 1.3rem;
}

/* Mapa */
.mapa {
  flex: 1;
}

.mapa img {
  width: 800px;
  height: 400px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(42, 122, 42, 0.4);
  transition: box-shadow 0.3s ease;
}

.mapa img:hover {
  box-shadow: 0 4px 15px rgba(42, 122, 42, 0.6);
}

/* Rodapé */
footer {
  background-color: #2a7a2a;
  color: #d4f0d4;
  padding: 20px 15px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.95rem;
  margin-top: auto;
  box-shadow: 0 -4px 8px rgba(42, 122, 42, 0.3);
  font-weight: 500;
}









@media (max-width: 768px) {
  header img {
    width: 90%; /* Adapta logo ao ecrã */
    max-width: 280px;
  }

  header {
    padding: 20px 10px;
    margin-bottom: 30px;
    border-radius: 10px;
  }

  a.botao-voltar {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 25px;
    margin-top: 12px;
  }

  .video {
    flex-direction: column;
    margin-bottom: 30px;
  }

  .video video {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .facebook-servicos-container {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
  }

  .facebook,
  .servicos {
    padding: 20px 15px;
    min-width: unset;
  }

  .facebook h2,
  .servicos h2 {
    font-size: 1.5rem;
  }

  .fb-container iframe {
    height: 600px; /* Reduz altura do iframe */
  }

  .servico-item {
    flex-direction: column;
    align-items: flex-start;
    font-size: 1rem;
  }

  .servico-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .servico-item span {
    font-size: 20px;
  }

  .galeria h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .galeria-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .galeria-container img {
    height: auto;
  }

  .sobre-container {
    flex-direction: column;
    gap: 30px;
    margin: 30px 10px;
  }

  .info-texto {
    padding: 20px 15px;
  }

  .info-texto p {
    font-size: 1rem;
  }

  .info-texto h3 {
    font-size: 1.15rem;
  }

  .mapa img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  footer {
    padding: 15px 10px;
    font-size: 0.85rem;
    border-radius: 10px;
  }
}
