/* 🔹 header */
/* Organiza a linha principal do header */
.headerGeral {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative; /* necessário para o position: absolute funcionar */
    padding: 10px 20px;
    background: #0C0C0C;
    z-index: 1000;
  }
  

.header-esquerda,
.header-direita {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex: 0 0 auto;
}

.logo img {
    max-height: 50px;
    
}

/* Define comportamento padrão da logo */
.logo-desktop {
    display: block;
}

.logo-mobile {
    display: none;
}

.c-search-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    z-index: 10;
    padding: 0 10px;
  }
  

.c-search-bar form {
    display: flex;
    width: 100%;
}
  
  /* 🔹 Responsividade */
  @media (max-width: 768px) {
    .headerGeral {
      flex-direction: column;
      align-items: stretch;
    }
  
    .header-esquerda {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      margin-bottom: 5px;
    }
  
    .menu-toggle {
      position: absolute;
      left: 10px;
      font-size: 2.5rem;
      background: none;
      border: none;
      color: white;
      cursor: pointer;
      display: block;
    }
  
    .header-direita {
      display: none;
    }
  
    .logo-desktop {
      display: none;
    }
  
    .logo-mobile {
      display: block;
    }
  
    .c-search-bar {
      position: static;
      transform: none;
      width: 100%;
      max-width: 95%;
      margin: 0 auto 10px;
    }
  }
  
  
  
  



.menu-toggle {
    font-size: 2.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none;
}

#nav-menu {
    max-height: 0;
    overflow: hidden;
    background: #0C0C0C;
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 999;
    transition: max-height 0.4s ease-in-out;
  }
  
  #nav-menu.open {
    max-height: 500px; /* valor suficiente para caber todos os links */
  }
  
  #nav-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
  }
  
  #nav-menu ul li {
    display: block;
  }
  
  #nav-menu ul li a {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    padding: 10px;
    transition: background-color 0.3s;
  }
  
  #nav-menu ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
  }
  

  .header-direita button {
    background-color: #0C0C0C;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.header-direita button:hover {
    background-color: #0C0C0C;
}

  

/* 🔹 header */