.main-nav {
  background: #fff;

  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center; /* Alinha logo e burger verticalmente */
  justify-content: space-between;
  height: 60px;
}

.main-nav .logo img {
  height: 40px;
  margin: 20px;
}

.main-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center; /* Alinha verticalmente os links */
}

.main-nav .nav-links li {
  display: flex;
  align-items: center;
}

.main-nav .nav-links li a {
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.main-nav .nav-links li a:hover,
.main-nav .nav-links li a:focus {
  color: #2d8344;
  background-color: rgba(0, 123, 255, 0.1);
  outline: none;
}

.main-nav .burger {
  display: none;
  width: 35px; /* largura maior para facilitar toque */
  height: 25px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  margin: 0;
}

.main-nav .burger div {
  width: 100%;
  height: 4px; /* barras mais grossas para melhor visual */
  background-color: #333;
  border-radius: 2px;
}

/* Responsivo - tela pequena */
@media (max-width: 768px) {
  .main-nav .container {
    flex-direction: row;
    padding: 0 1.5rem; /* mais espaçamento lateral no mobile */
  }

  .main-nav .nav-links {
    position: fixed;
    top: 60px;
    right: 0;
    background: white;
    height: calc(100vh - 60px);
    width: 220px;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .main-nav .nav-links.active {
    transform: translateX(0);
  }

  .main-nav .nav-links li a {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .main-nav .burger {
    display: flex;
  }
}
