nav {
    display: block;
    background-color: #fff;
    margin-bottom: 30px;
    height: 80px;
    /*line-height: 80px;*/
}

#logo {
    height: 56px;
}

#brand {
    font-size: 27px;
    font-weight: 600;
    height: 80px;
    line-height: 78px;
}










/* LINKS & DROPDOWNS */
/* Container do nav */
#navbar-right {
    position: relative;
    z-index: 99999;


    float: right;
}

/* Menu principal */
.nav-custom {
    list-style: none;
    display: flex;
    /*gap: 20px;*/
    margin: 0;
    padding: 0;
}

/* Itens principais */
.nav-item-custom {
    position: relative;
}

.nav-item-custom > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 18px;
    text-decoration: none;
    color: #222;
    cursor: pointer;

    height: 80px;
}

.nav-item-custom > a:hover {
    color: #000;
}


.nav-item-custom.active {
    /*background-color: #712580;*/
    background-color: #6c5ce7;
}
.nav-item-custom.active > a,
.nav-item-custom.active > a:hover {
    color: #fff !important;
}



/* Submenu custom — sem conflito */
.sub-menu-custom {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 170px;
    background: #fff;
    /*border-radius: 6px;*/
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);

    /* oculto inicialmente */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
}

.sub-menu-custom li a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #222;
    white-space: nowrap;
}

.sub-menu-custom li a:hover {
    background: #f5f5f5;
}

/* Mostrar submenu */
.has-sub:hover > .sub-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}













/* HAMBURGER BUTTON */
#hamburger {
    width: 32px;
    height: 26px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    margin-top: 26px;
}

#hamburger span {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    transition: .3s;
}

/* MOBILE NAV — MENU QUE ABRE DA ESQUERDA */
.nav-custom.mobile-open {
    left: 0;
    opacity: 1;
    pointer-events: auto;
}

/* Estilo do menu mobile fechado */
.nav-custom {
    transition: all .3s ease;
}

/* --- MOBILE --- */
@media (max-width: 768px) {

    #navbar-right {
        position: static;
        float: none;
    }

    /* Mostrar botão */
    #hamburger {
        display: flex;
        position: absolute;
        right: 15px;
        /*top: 26px;*/
        top: -80px;
        z-index: 100000;
    }

    /* Transformar o UL em menu lateral */
    .nav-custom {
        position: fixed;
        top: 0;
        left: -250px; /* escondido */
        width: 250px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
        opacity: 0;
        pointer-events: none;
        box-shadow: 2px 0 10px rgba(0,0,0,.2);
        z-index: 99999;
    }

    .nav-item-custom > a {
        height: auto;
        padding: 18px;
        border-bottom: 1px solid #eee;
    }

    /* Submenu ocupando largura cheia */
    .sub-menu-custom {
        position: static;
        background: #fafafa;
        box-shadow: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding-left: 20px;
    }

    .sub-menu-custom li a {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }
}

/* ANIMAÇÃO DO HAMBÚRGUER VIRAR X */
#hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
#hamburger.active span:nth-child(2) {
    opacity: 0;
}
#hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}





nav {
    margin-bottom: 0;
}
.warning {
    width: 100%;
    background: #fff3cd; /* amarelo suave */
    border-bottom: 2px solid #ffdd57;
    padding: 12px 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #856404;
    text-align: center;
    position: relative;
    z-index: 1000;
    margin-bottom: 30px;
}

.warning .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/*.warning::before {
    content: "⚠️";
    margin-right: 6px;
    font-size: 18px;
    position: relative;
    top: 1px;
    animation: pulse 1.2s infinite ease-in-out;
}*/

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .warning {
        font-size: 14px;
        padding: 10px 8px;
    }

    .warning .container {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
}
