

/* Barra de navegaçao */

/* Estilo geral da nav-bar moderna */
nav {
  background-color: #ffffff;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav .logo img {
  height: 70px;
  width: auto;
  transition: transform 0.3s;
}

nav .logo img:hover {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: #2b7c54;
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #2b7c54;
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #246645;
}

/* Menu hamburguer - mobile */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #2b7c54;
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-radius: 0 0 0 8px;
  }

  nav ul.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }
}
