/* ===== HEADER ===== */
header {
    background: #1a365d;
    color: white;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: 23% 54% 23%;
    align-items: center;
}

.header-left {
    text-align: left;
    min-width: 0;
}

.logo-area {
    margin-bottom: 0.5rem;
}

.logo-widget img {
    max-height: 50px;
    width: auto;
    max-width: 100%;
}

.site-description {
    font-size: 0.8rem;
    color: #cbd5e0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-center {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 0;
}

/* ===== MENU ===== */
.menu-menu_aplateia-container {
    width: 100%;
    max-width: 720px; /* Limita a largura máxima do menu */
}

.menu-menu_aplateia-container::-webkit-scrollbar {
    height: 4px;
}

.menu-menu_aplateia-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.menu-menu_aplateia-container::-webkit-scrollbar-thumb {
    background: #7ac6ff;
    border-radius: 2px;
}


header nav {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 600px; /* Limita a largura máxima */
    margin: 0 auto; /* Centraliza */
}


#primary-menu {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 1rem; /* Reduz o gap */
    flex-wrap: wrap; /* Permite quebra de linha se necessário */
    justify-content: center; /* Centraliza os itens */
}

#primary-menu li a {
    color: white !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important; /* Fonte menor */
    letter-spacing: 0.5px !important;
    padding: 0.4rem 0.6rem !important; /* Padding menor */
    display: block !important;
    transition: all 0.3s ease !important;
    border-radius: 4px;
    white-space: nowrap; /* Evita quebra de texto */
}

#primary-menu li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}


#primary-menu li a:hover {
    color: #7ac6ff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}

#primary-menu li.current-menu-item a,
#primary-menu li.current-page-item a {
    color: #7ac6ff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* ===== REDES SOCIAIS ===== */
.social-icons {
    display: flex;
    gap: 0.3rem;
    order: 1;
}

.social-icon {
    background: white;
    color: #1a365d;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-icon i {
    font-size: 0.9rem;
}

/* ===== BUSCA ===== */
.header-right .search-form {
    margin: 0;
    order: 2;
}

.header-right .search-form input[type="search"] {
    padding: 0.3rem 0.6rem;
    border: none;
    border-radius: 25px;
    background: #52719c;
    color: white;
    min-width: 120px;
    font-size: 0.8rem;
}

/* Placeholder branco */
.header-right .search-form input[type="search"]::placeholder {
    color: white;
    opacity: 0.8;
}

/* Foco no campo */
.header-right .search-form input[type="search"]:focus {
    outline: none;
    background: #5a7ba9;
    box-shadow: 0 0 0 2px #7ac6ff;
}

.header-right .search-form button[type="submit"] {
    background: #7ac6ff;
    color: white;
    border: none;
    padding: 0.3rem 0.4rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.3rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-right .search-form button[type="submit"]:hover {
    background: #5aa8e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(122, 198, 255, 0.3);
}

/* ===== RESPONSIVO HEADER ===== */
@media (max-width: 968px) {
    header {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .header-left {
        text-align: center;
    }
    
    .header-center {
        order: 2;
    }
    
    .header-right {
        justify-content: center;
        align-items: center;
        order: 3;
        flex-wrap: wrap;
    }
    
    .menu-menu_aplateia-container {
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.5rem 0;
    }
    
    #primary-menu {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    #primary-menu li a {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.5rem !important;
    }
}

