body {
  font-family: "Roboto", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f4f4f4, #e8f5e9);
  color: #333;
  scroll-behavior: smooth;
  transition: all 0.3s;
}

header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

header nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

header nav ul li {
  margin: 0 15px;
}

header nav ul li a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: #2d6a4f;
}

header nav ul li a i {
  margin-right: 8px;
}

/* Estilos para a seção capa */
.capa {
  text-align: center;
  padding: 50px 20px;
  background: url("/img/banner.jpg") no-repeat center center/cover;
  background-attachment: fixed; /* Torna a imagem fixa ao scroll */
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.capa::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
}

.capa-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.capa img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.capa h1 {
  font-size: 60px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.capa p {
  font-size: 24px;
  margin-bottom: 30px;
  margin-top: 6cm; /* Adiciona margem superior de 6 centímetros */
}
img {
  max-width: 50%;
  height: auto;
  display: block;
}

.cta-button {
  background: #40916c;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 20px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background: #1b4332;
}

/* Estilos para o botão de chamada para ação */
.cta-button {
  display: none; /* Esconde o botão por padrão */
  background: #40916c;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 20px;
  border-radius: 5px;
  text-align: center;
  margin: 20px 0;
}

/* Estilos para as seções */
.section {
  padding: 60px 20px; /* Aumenta o espaçamento em telas maiores */
  text-align: center;
}


/* Estilo dos títulos e parágrafos */
.section h2 {
  font-size: 40px; /* Tamanho maior para títulos em telas grandes */
  margin-bottom: 20px;
  font-weight: 700; /* Dá mais ênfase ao título */
}

.section p {
  font-size: 20px; /* Aumenta o tamanho do texto */
  line-height: 1.8; /* Melhora a legibilidade */
  max-width: 600px; /* Limita a largura do texto */
  margin: 0 auto; /* Centraliza o texto */
  text-align: justify;
}

.section .content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap; /* Evita quebras de linha em telas grandes */
  align-items: center;
  justify-content: space-between;
  gap: 30px; /* Adiciona espaço entre os elementos */
}

.section .text {
  flex: 1;
  padding: 20px;
  text-align: left;
}

.section .image-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.section .image-container img {
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adiciona um visual mais elegante */
  display: block;
}


.cta {
  text-align: center;
  margin: 40px 0;
}

.cta a {
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  color: #fff;
  padding: 18px 36px;
  text-decoration: none;
  font-size: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

.cta a:hover {
  transform: translateY(-5px);
  background: #1b4332;
}

footer {
  background: #fff;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  text-align: center;
  border-top: 5px solid #1b4332;
}

.footer-container {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.footer-links nav ul li {
  margin: 0 15px;
}

.footer-links nav ul li a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.footer-links nav ul li a:hover {
  color: #2d6a4f;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
}

.footer-bottom p {
  margin: 5px 0;
  font-size: 14px;
  color: #333;
}

/* Botão de Voltar ao Topo */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2d6a4f;
  color: #fff;
  padding: 10px 15px;
  border-radius: 50%;
  text-align: center;
  display: none;
  transition: background 0.3s;
}

.back-to-top.show {
  display: block;
}

.back-to-top:hover {
  background: #1b4332;
}

/* Navegação fixa centralizada */
.navigation {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex; /* Mantém os itens em linha */
  justify-content: center; /* Centraliza horizontalmente */
}

.navigation a {
  color: #fff;
  text-decoration: none;
  margin: 0 12px; /* Espaçamento horizontal */
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap; /* Evita que os textos quebrem em várias linhas */
}

.navigation a:hover {
  color: #40916c;
}
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
        text-align: center;
        margin: 10px ;
    }
}

/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
    .capa {
    background-size: cover;
    background-position: center;
    height: auto;
    padding: 30px 15px;
  }

  .section h2 {
    font-size: 28px;
  }

  .section p {
    font-size: 16px;
  }

  .navigation {
    padding: 15px;
    flex-wrap: wrap; /* Garante que os links se reorganizem ao invés de empilhar */
    width: 100%;
  }

  .navigation a {
    margin: 0 8px; /* Espaçamento menor entre links */
    font-size: 16px;
  }
}


/* Ajustes para dispositivos muito pequenos (ex.: 430px) */
@media (max-width: 430px) {
    .capa {
    padding: 20px 10px;
  }

  .section h2 {
    font-size: 24px;
  }

  .section p {
    font-size: 14px;
  }
  .navigation {
    padding: 8px;
    justify-content: space-around; /* Garante espaçamento uniforme entre links */
  }

  .navigation a {
    margin: 5px; /* Ajusta margens para telas menores */
    font-size: 14px;
  }
}
/* Ajustes para telas médias */
@media (max-width: 1024px) {
   .capa {
    background-attachment: scroll; /* Desativa o efeito parallax */
  }
  .section .content {
    flex-wrap: wrap; /* Permite quebras de linha */
  }

  .section h2 {
    font-size: 32px; /* Reduz o tamanho do título */
  }

  .section p {
    font-size: 18px; /* Reduz o tamanho do texto */
  }

  .section .image-container img {
    max-width: 80%; /* Reduz a largura da imagem */
  }
}

/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
    .capa {
    height: auto; /* Ajusta altura para conteúdo variável */
    padding: 30px 15px; /* Reduz padding em dispositivos menores */
    background-size: contain; /* Garante que toda a imagem seja exibida */
    background-position: center center; /* Centraliza corretamente a imagem */
  }
  .section {
    padding: 40px 15px;
  }

  .section h2 {
    font-size: 28px;
  }

  .section p {
    font-size: 16px;
  }

  .section .content {
    flex-direction: column; /* Coloca texto e imagem em colunas */
    text-align: center;
  }

  .section .text {
    padding: 10px 0;
  }

  .section .image-container img {
    max-width: 90%; /* Ajusta a imagem para caber em dispositivos menores */
  }
}

/* Ajustes para telas pequenas */
@media (max-width: 480px) {
    .capa {
    background-size: contain; /* Mantém a imagem proporcional */
    height: auto; /* Permite adaptação ao conteúdo */
    padding: 20px 10px; /* Padding ainda menor para telas muito pequenas */
  }
  .section {
    padding: 30px 10px;
  }

  .section h2 {
    font-size: 24px;
  }

  .section p {
    font-size: 14px;
  }

  .section .image-container img {
    max-width: 100%; /* Usa toda a largura disponível */
  }
}
