
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f4fdf4;
  color: #2d2d2d;
}
header {
  background-color: #2e7d32;
  color: white;
  padding: 20px;
  text-align: center;
}
h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.logo-container img {
  height: 90px;
  width: 90px;
  object-fit: cover;
  border-radius: 50%;
}
.text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin: 0;
  color: white;
}
.text p {
  margin: 0.3rem 0 0;
  color: white;
  font-size: 1rem;
}





/* Menu de navegação unificado e responsivo */
.navbar {
  background-color: #388e3c;
  padding: 0.5rem 1rem;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: auto;
}
.brand {
  color: white;
  font-size: 1.4rem;
  text-decoration: none;
  font-weight: bold;
}
.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  display: none;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1em;
  margin: 0;
  padding: 0;
}
.nav-menu li {
  position: relative;
}
.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
  display: block;
  font-weight: 500;
}
.nav-menu a:hover {
  background-color: #2e7d32;
  transition: background-color 0.3s;
}
.submenu {
  display: none;
  position: absolute;
  background-color: #4caf50;
  top: 100%;
  left: 0;
  min-width: 180px;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 0 0 8px 8px;
}
.dropdown:hover .submenu {
  display: block;
}
.submenu li a {
  padding: 0.75rem 1rem;
  white-space: nowrap;
  color: white;
}

/* Responsivo */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    flex-direction: column;
    display: none;
    width: 100%;
    background-color: #388e3c;
  }
  .nav-menu.active {
    display: flex;
  }
  .dropdown .submenu {
    position: static;
    display: none;
    background-color: #4caf50;
    padding-left: 1rem;
  }
  .dropdown.active .submenu {
    display: block;
  }
}

/* Adapta apenas o bloco de notícia para celular */
@media (max-width: 768px) {
  .noticia-container {
    flex-direction: column;
    text-align: center;
  }

  .noticia-texto {
    text-align: left;
  }

  .noticia-imagem img {
    margin: 0 auto 1rem;
  }
}




section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}
footer {
  background-color: #2e7d32;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}




.carousel {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#carousel img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 1s ease-in-out;
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0 12px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 1;
}
.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}






.noticias {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

.noticias-titulo {
  text-align: center;
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 2rem;
}

.noticia-card {
  display: flex;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
}

.noticia-img-wrapper {
  flex: 0 0 300px;
  max-width: 300px;
}

.noticia-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.noticia-conteudo {
  padding: 20px;
  flex: 1;
  min-width: 250px;
}

.noticia-conteudo h3 {
  margin-top: 0;
  color: #2e7d32;
  font-size: 1.5rem;
}

.noticia-conteudo p {
  line-height: 1.6;
  color: #2d2d2d;
}

/* Responsivo: empilha no celular */
@media (max-width: 768px) {
  .noticia-card {
    flex-direction: column;
  }


  .noticia-img-wrapper {
    max-width: 100%;
  }

}
