.navbar {
    display: flex;
    width: 100%;
    padding: 16px var(--10, 80px);
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(2px);
    position: relative;
    z-index: 1;
}

.nav-menu {
    display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.menu {
    list-style: none;
    display: flex;
    gap: var(--5, 40px);
    margin: 0;
    padding: 0;
}

.menu li a {
    text-decoration: none;
    color: #204551;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 27px;
    text-decoration: none;
}

.menu li a:hover {
    color: #265361;
}

@media (max-width: 1600px) {
    .navbar {
        padding: 16px 40px;
    }

    .menu {
        gap: 25px;
    }

    .menu li a {
        font-size: 18px;
    }
    
    .search-container {
        max-width: 350px;
    }
}

@media (max-width: 1440px) {
    .navbar {
        padding: 16px 30px;
    }

    .menu {
        gap: 20px;
    }

    .menu li a {
        font-size: 16px;
    }
    
    .search-container {
        max-width: 330px;
    }
}

@media (max-width: 1280px) {
    .navbar {
        padding: 10px 20px;
    }

    .menu {
        gap: 15px;
    }

    .menu li a {
        font-size: 15px;
    }
}

@media (max-width: 1100px) {
    .navbar {
        padding: 10px 15px;
    }

    .menu {
        gap: 12px;
    }

    .menu li a {
        font-size: 14px;
    }
    
    .search-container {
        max-width: 300px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 10px;
    }

    .menu {
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }

    .menu li a {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .menu {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .menu li a {
        font-size: 18px;
    }
}

.search-container {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 56px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.00);
    flex-direction: column;
    align-items: flex-start;
    color: #B7BAC1;
    margin: 0 auto;
}

.search-container input {
    height: 56px;
    padding: 16px 60px 16px 24px;
    border-radius: 100px;
    border: 1px solid var(--Neutral-colors-Gray-Colors-400, #6B7280);
    background: rgba(255, 255, 255, 0.00);
    width: 100%;
    transition: border-color 0.3s;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.search-container:hover input {
    border-color: #1E90FF;
}

.search-container input:focus {
    border-color: #1E90FF;
    box-shadow: 0 0 5px rgba(30, 144, 255, 0.5);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 19.046px;
    height: 19.046px;
    flex-shrink: 0;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
}

.dropdown-options {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    /*Habilita a rolagem vertical*/
    max-height: 400px;
    /*Limite de altura que será ajustado conforme necessário*/
    flex-direction: column;
    padding: 0;
    font-family: Inter;
    text-decoration: none;
}

/* Exibe o dropdown quando houver resultados */
.dropdown-options.show {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.dropdown-options .option {
    padding: 10px 16px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    color: var(--Neutral--50, #282828);
    font-family: Inter;
    font-size: 14px;
    text-decoration: none;
}

.dropdown-options .option:hover {
    background-color: #f0f0f0;
    color: var(--Neutral--50, #282828);
    text-decoration: none;
}

/*Dropdown sobreposto ao título
#dropdownOptions {
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    background-color: white;
    width: 100%;
    z-index: 1000;  /* Maior z-index para garantir que fique à frente 
    border: 1px solid #ccc;
    border-radius: 5px;
    display: none;
}*/


/* Remover sublinhado dos links no dropdown */

.dropdown-options .option a {
    text-decoration: none;
}

/* Estilo para os links quando estão em foco (selecionados via teclado) */
.menu li a:active,
.dropdown-options .option:active {
    color: #265361;
    background-color: #f0f0f0;
    outline: none;
}

/*Fazer com que o elemento selecionado com as setas do teclado fique visualmente destacado, da mesma forma que quando o mouse passa sobre ele*/
.option.hover {
    background-color: #f0f0f0;
    color: #204551;
    cursor: pointer;
}


/* Estilo para a mensagem "Nenhum resultado encontrado" */
#noResultsMessage {
    display: none;
    padding: 10px 16px;
    cursor: pointer;
    /* Para garantir que o cursor seja o mesmo de uma opção */
    width: 100%;
    /* Ocupa toda a largura disponível, como as opções */
    box-sizing: border-box;
    color: var(--Neutral--50, #282828);
    font-family: Inter;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.90);
    /* Fundo igual ao do dropdown */
    border-radius: 8px;
    /* Bordas arredondadas iguais às das opções */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Sombra igual ao dropdown */
    text-align: center;
}


@media (max-width: 1024px) {
    .search-container {
        width: 40%;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .search-container {
        width: 90%;
        max-width: none;
    }

    .search-container input {
        padding: 16px 40px 16px 20px;
    }

    .search-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .search-container {
        height: 48px;
        width: 80%;
        align-items: center;
    }

    .search-container input {
        font-size: 12px;
        padding: 12px 40px 12px 16px;
    }

    .search-icon {
        width: 14px;
        height: 14px;
    }

    .brand img {
        width: 150px;
    }
}

/* Ícone Hambúrguer */
.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1002;
    background: none;
    border: none;
    padding: 0;
    margin-left: auto;
    /* Garante que vá para a direita */
}

.hamburger svg {
    width: 32px;
    height: 32px;
    display: block;
}

/* Menu Mobile */
.mobile-menu {
    position: fixed;
    top: 0; right: 0;
    width: 90vw;
    max-width: 350px;
    height: 100vh;
    background: var(--Neutral-colors-Gray-Colors-100, #F3F4F6);
    box-shadow: -2px 0 10px rgba(0,0,0,0.08);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 32px 24px 0 24px;
    border-radius: var(--2-borderRadius, 16px) 0 0 0;
    background-image: url("data:image/svg+xml;utf8,<svg width='30' height='100%' viewBox='0 0 30 100' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M30 0 Q15 25 30 50 Q15 75 30 100 L0 100 L0 0 Z' fill='%23F3F4F6' stroke='none'/></svg>");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 30px 100%;
    margin-left: 30px;
}

.mobile-menu a {
    color: var(--Lochmara-950, #082E49);
    font-family: 'Roboto';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 0;
    align-self: stretch;
    text-decoration: none;
    padding: 12px 16px;         /* Adicione este padding igual ao do .active */
    border: 2px solid transparent; /* Adicione borda transparente para todos */
    border-radius: 12px;        /* Adicione border-radius igual ao do .active */
    box-sizing: border-box;     /* Garante que padding/borda não aumentem o tamanho */
    transition: background 0.2s, border 0.2s, color 0.2s;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 48px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu a {
    color: var(--Lochmara-950, #082E49);
    font-family: 'Roboto';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 0;
    align-self: stretch;
    text-decoration: none;
}

.mobile-menu a:active,
.mobile-menu a:hover {
    background: #e0e7ef;
}

nav.mobile-menu a.active,
.mobile-menu a.active {
    color: #2563eb !important;
    background: #e6f0ff !important;
    border: 1.5px solid #2563eb !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-weight: 400 !important;
    transition: background 0.2s, border 0.2s, color 0.2s !important;
}

.close-menu {
    background: none;
    border: none;
    font-size: 2rem;
    color: #204551; /* ou #222, como preferir */
    position: absolute;
    top: 18px;
    right: 18px;
    cursor: pointer;
    z-index: 1002;
    font-weight: 300; /* Deixa o X mais fino */
    font-family: 'Arial', /* Garante fonte fina */
    line-height: 1;
}
/* Overlay para fechar ao clicar fora */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.65);
    z-index: 1000;
    transition: opacity 0.3s;
}
.menu-overlay.open {
    display: block;
}

/* Só mostra o hambúrguer no mobile e tablets/notebooks pequenos */
@media (max-width: 1150px) {
    .hamburger {
        display: flex;
    }

    .menu {
        display: none !important;
    }

}

/* Esconde o menu mobile no desktop */
@media (min-width: 1151px) {
    .menu-overlay {
        display: none !important;
    }
    .mobile-menu {
        display: none !important;
    }
}


