/* ===== HEADER PRINCIPAL - CORRIGIDO ===== */
.main-header {
    background: #003153 !important; /* Azul escuro do logo */
    position: relative;
    width: 100%;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,49,83,0.1);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85px;
}

/* ===== LOGO - TAMANHO CORRETO ===== */
.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo img,
.custom-logo {
    max-height: 75px !important;  /* AUMENTADO */
    width: auto;
    object-fit: contain;
}

/* ===== MENU - FORÇAR 1 LINHA ===== */
.header-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-menu {
    display: flex !important;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.2rem;
    flex-wrap: nowrap !important;
}

.main-menu li {
    position: relative;
    white-space: nowrap;
}

.main-menu a {
    display: flex;
    align-items: center;
    padding: 1.5rem 1rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s;
}

.main-menu a:hover {
    color: #28b6f6;
}

/* Reduzir padding no item "Contactos" */
.main-menu li:last-child a {
    padding-right: 0.5rem;
}

/* ===== TRADUTOR ===== */
.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.gtranslate-box select,
.gt_switcher {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* ===== SUBMENU - Z-INDEX CORRIGIDO ===== */
.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    box-shadow: 0 15px 30px rgba(0,49,83,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 99999 !important; /* ACIMA DE TUDO */
}

.main-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .sub-menu a {
    padding: 0.6rem 1.2rem;
    color: #1e293b;
    font-size: 0.85rem;
    text-transform: none;
    font-weight: 500;
    white-space: normal;
}

.main-menu .sub-menu a:hover {
    background: rgba(40,182,246,0.08);
    color: #28b6f6;
}

/* ===== MOBILE ===== */
.menu-toggle {
    display: none;
}

@media (max-width: 991px) {
    .main-menu {
        display: none !important;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }
}

/* ===== TÍTULOS DO MENU ===== */
.main-menu a {
    font-size: 18px !important;  /* Era 16px ou menos */
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsivo */
@media (max-width: 1200px) {
    .main-menu a {
        font-size: 16px !important;
        padding: 1.5rem 0.8rem;
    }
}

@media (max-width: 992px) {
    .main-menu a {
        font-size: 18px !important; /* Mobile mantém grande */
    }
}