.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.8), rgba(26, 26, 26, 0.7), rgba(43, 43, 43, 0.6));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.95), rgba(26, 26, 26, 0.9), rgba(43, 43, 43, 0.85));
}

.header .container {
  padding: 0 16px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger:focus {
  outline: 2px solid rgba(255, 255, 255, 0.25);
  outline-offset: 2px;
  border-radius: 8px;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-name {
  font-size: 18px;
  font-weight: bold;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-style: italic;
}

/* Menu Desktop */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: white;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 8px 0;
}

.nav-link:hover {
  color: #e5e7eb;
}

/* Menu Mobile */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.95), rgba(26, 26, 26, 0.9));
}

.nav-mobile.active {
  display: flex;
  max-height: 500px;
  /* permite menus maiores sem cortar conteúdo */
  opacity: 1;
}

.nav-link-mobile {
  color: white;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 16px 16px;
  width: 100%;
  text-align: left;
}

.nav-link-mobile:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hambúrguer */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 4px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsivo */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}