/* Estilos para o menu no mobile */
@media (min-width: 922px) {

    .custom-lang-switcher {
    position: absolute;
    top: 5px;
     right: 5px;
    z-index: 999;
    }
}

#lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.lang-options {
  position: absolute;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.lang-options a {
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: background 0.2s;
}

.lang-options a:hover {
  background: #f0f0f0;
}

.hidden {
  display: none;
}

.current-lang {
  font-weight: bold;
  font-size: 14px;
  color: #333;
  text-transform: uppercase;
}

#lang-btn {
  z-index: 9; /* abaixo do menu mobile se ele tiver z-index alto */
  position: relative;
}

/* Ajuste para ecrãs pequenos */
@media (max-width: 768px) {
  #lang-btn {
   // position: absolute;
   // top: 10px;
   // right: 60px; /* distância do canto para não colidir com menu hamburguer */
   // z-index: 1;  /* ou menor que o menu de navegação */
  }
}




/* Estilo para o menu mobile */


@media (max-width: 768px) {
  .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .menu-item-language {
    margin-top: 10px;
  }

  #lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    border: none;
    background: none;
    cursor: pointer;
  }

  #lang-btn svg {
    width: 24px;
    height: 24px;
    fill: #333;
  }
  
  #lang-btn .current-lang {
    margin-left: 8px;
  }
}



/* No CSS do seu menu */
#ast-hf-mobile-menu {
    display: flex  !important;
    flex-direction: column  !important; /* Garante que os itens do menu fiquem empilhados verticalmente */
    flex-wrap: wrap;
}

/* Caso haja um menu de navegação horizontal, use flex-direction: row */

/* Estilos para o menu no mobile */
@media (max-width: 921px) {
    
    #ast-hf-mobile-menu {
        display: flex !important;
        flex-direction: row  !important; /* Empilha os itens verticalmente */
    }

    /* Estilos para o botão de idioma */
    .custom-lang-switcher {
        margin-top: auto  !important; /* Move o botão para o fim */
    }

    .lang-options {
  
  left: 0;
 
}
}

 #lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    border: none;
    background: none;
    cursor: pointer;
  }

#id-lang-switcher {
  display: flex;
    justify-content: flex-end;
    order: 6;
}