header{
    display: flex;
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    padding: 28px 8%;
    /* position: sticky; */
    top: 0;
    /* z-index: 5; */
    height: auto;
}


 #nav_list{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 auto;
    width: 60%;
    gap: 38px;
    cursor:pointer;
    border-color:  #01102E;
    

}

.nav-item{
    display: flex;
    background-color: #858488;
    padding: 5px 15px;
    border-radius: 10px;
    width: 120px;
    text-align: center;
    justify-content: center;
    align-items: center;
    /* font-size: rem; */
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    
}

#navbar #nav_list .nav-item a {
    text-decoration: none;
    list-style: none;
    
   
}

#navbar #nav_list .nav-item:hover {
  background-color: #D9CEC1;
  box-shadow: 1px 1px 8px rgba(255, 255, 255, 0.5);
}

#navbar #nav_list .nav-item:hover a {
  color: #01102E; /* cor do texto ao passar o mouse */
}
.img-inicio{
    display: flex;
    gap: 10px;
    width: 120px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

   .perguntas-frequentes {
    display: flex;
    font-size: 12px;
    height: 34px;
    width: 200px;
    padding: 5px;
}

.logo{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 113px;
    width: 100%;
    margin: 20px 10px;
}


/* ===== MOBILE: nada de fundo/sombra no hover/tap ===== */
@media (max-width: 768px){
  #navbar #nav_list .nav-item,
  #navbar #nav_list .nav-item a{
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    -webkit-tap-highlight-color: transparent;
  }

  #navbar #nav_list .nav-item:hover,
  #navbar #nav_list .nav-item:active,
  #navbar #nav_list .nav-item a:hover,
  #navbar #nav_list .nav-item a:active{
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
  }

  /* foco acessível sem “bloco” */
  #nav_list .nav-item a:focus-visible{
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 6px;
  }
}

/* ===== DISPOSITIVOS COM HOVER (mouse): sublinhado suave ===== */
@media (hover: hover) and (pointer: fine){
  #nav_list .nav-item a{

    text-decoration: none;
  }
  #nav_list .nav-item a::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #fff;
    transform: translateX(-50%);
    transition: width .2s ease;
    opacity: .85;
    border-radius: 1px;
  }
  #nav_list .nav-item a:hover::after,
  #nav_list .nav-item a:focus-visible::after{
    width: 40%;
  }
}

/* ===== DESKTOP: limita o hover “pílula” ao layout grande ===== */
@media (min-width: 769px){
  #navbar #nav_list .nav-item:hover{
    background-color: #D9CEC1;
    box-shadow: 1px 1px 8px rgba(255,255,255,.5);
  }
  #navbar #nav_list .nav-item:hover a{ color: #01102E; }
}
@media (max-width: 768px) {
  /* Aqui vão os estilos do menu lateral mobile */

  #nav_list {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
    padding: 80px 0;
  }

  .nav-item {
    all: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    cursor: pointer;
  }

  .nav-item a {
    all: unset;
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
  }

  .nav-item a:hover {
    color: #01102E;
  }

  .perguntas-frequentes {
    height: auto;
    width: auto;
    padding: 0;
  }
}

/* ====== DRAWER MOBILE (até 768px) ====== */
@media (max-width: 768px){
  /* botão hamburguer fixo no topo-esquerdo, acima do drawer */
  .hamburger{
    display: grid !important;
    position: absolute !important;
    top: 16px; left: 18px;
    width: 44px; height: 44px;
    place-items: center;
    background: transparent; border: 0; cursor: pointer;
    color: #fff;
    z-index: 110; /* acima do drawer */
  }

  /* drawer fechado por padrão */
  #navbar{
    position: fixed !important;
    inset: 0 auto 0 0;               /* top:0; right:auto; bottom:0; left:0 */
    width: min(92vw, 640px);         /* mais largo como na tua referência */
    max-width: 640px;
    transform: translateX(-110%) !important;
    transition: transform .28s ease;
    background: #D9CEC1;             /* bege */
    border-top-right-radius: 42px;
    border-bottom-right-radius: 0;
    padding: 72px 24px 32px;         /* espaço pro topo e pro conteúdo */
    box-shadow: 0 10px 30px #0007;
    z-index: 100;                    /* abaixo do hamburger, acima do conteúdo */
  }

  /* backdrop */
  #backdrop{
    position: fixed; inset: 0; background: #0006;
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
    z-index: 90;
  }

  /* estado ABERTO */
  body.nav-open #navbar{ transform: translateX(0) !important; }
  body.nav-open #backdrop{ opacity: 1; pointer-events: auto; }
  body.nav-open{ overflow: hidden; }

  /* lista do menu: central, tipografia grande, branca */
  #nav_list{
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 36px;
    width: 100%;
    margin: 0;
    padding: 16px 0 0;
  }

  /* zera estilo de desktop dentro do drawer */
  #nav_list .nav-item{
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
 
  }

  #nav_list .nav-item a{
    all: unset;
    display: block;
    text-align: center;
    font-size: clamp(20px, 5vw, 32px);
    line-height: 1.2;
    font-weight: 100;
    color: #fff;                     /* branco como na imagem “certa” */
    letter-spacing: .02em;
    cursor: pointer;
    
  }

  /* #nav_list .nav-item a:hover{ opacity: .85; } */

  /* itens longos não quebram feio */
  .perguntas-frequentes{ height: auto; width: auto; padding: 0; }

  /* evita que estilos do desktop vazem no mobile */
  header{ padding: 20px 0; }
}

/* ====== DESKTOP (≥ 769px) — garante teu layout original ====== */
@media (min-width: 769px){
  .hamburger{ display: none !important; }
  #navbar{
    position: static !important;
    transform: none !important;
    background: transparent;
    width: auto;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }
  #backdrop{ display: none !important; }
}

