/* --- CORES E RESET GLOBAIS MANTIDOS --- */
:root {
    --primaria: #288ab8;
    --fundo-solido: #0d1226;
    --fundo-base: #1a2639;
    --texto: #ffffff;
    --cinza: #b0bec5;
    --laranja: #d67b3d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* --- NAVBAR GLOBAL FIXA --- */
.navbar-solid {
    position: fixed;
    /* Fixa globalmente agora */
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1000;
    background-color: var(--fundo-solido);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-left,
.nav-right {
    flex: 0 0 250px;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 2.5vw;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primaria);
}

/* --- DROPDOWN DESKTOP --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--fundo-solido);
    min-width: 260px;
    padding: 20px 0;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: circle;
    margin-left: 30px;
    color: var(--primaria);
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* --- BOTÕES --- */
.mobile-only {
    display: none;
}

.btn-membro-desktop {
    background: var(--primaria);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.menu-hamburguer {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* --- EFEITO DE TRANSIÇÃO GLOBAL --- */
#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--fundo-solido); 
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out; 
}

/* Estado ativo: cobre a tela toda */
#transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* --- RESPONSIVIDADE NAVBAR --- */
@media (max-width: 1024px) {

    .nav-left,
    .nav-right {
        flex: 0 0 auto;
    }
}

@media (max-width: 900px) {
    .nav-center {
        display: none;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background-color: var(--fundo-solido);
        padding: 30px 20px 40px 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .nav-center.nav-active {
        display: flex;
        flex-direction: column;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
    }

    .menu-hamburguer {
        display: block;
    }

    .btn-membro-desktop {
        display: none;
    }

    .mobile-only {
        display: block;
        margin-top: 20px;
    }

    .btn-membro-mobile {
        background: var(--primaria);
        color: #fff;
        padding: 12px 30px;
        border-radius: 30px;
        text-decoration: none;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.dropdown-open-mobile .dropdown-menu {
        display: block;
        position: static;
        transform: none;
        background-color: transparent;
        border: none;
        box-shadow: none;
        margin-top: 10px;
    }

    .dropdown.dropdown-open-mobile .dropdown-menu li {
        list-style: none;
        margin-left: 0;
    }

    .dropdown.dropdown-open-mobile .dropdown-menu a {
        padding-left: 20px;
        opacity: 0.8;
    }
}