header {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0D3B66, #175394);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(13, 59, 102, 0.35);
}
header .nav-container,
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--site-max-width, 1400px);
    margin: 0 auto;
    padding: 10px var(--site-container-padding, 1.5rem);
    box-sizing: border-box;
}
.logo {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}
.logo img {
    height: 70px;
    margin-right: 10px;
}
#navbar-list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}
#navbar-list li {
    margin-left: 20px;
}
#navbar-list li a {
    color: #fff;
    padding: 5px 10px;
    font-weight: 500;
    transition: color 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}
#navbar-list li a:hover,
#navbar-list li a.active {
    color: #fff;
    opacity: 0.9;
}
.btn-nav {
    background-color: #fff;
    color: #0D3B66 !important;
    padding: 8px 15px !important;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-nav:hover {
    background-color: #e8f0f8;
    color: #0a2d4d !important;
}
.linhas-coloridas {
    display: flex;
    height: 4px;
    width: 100%;
}
.linhas-coloridas span { flex: 1; height: 4px; }
.linha-verde { background: #1A8C5B; }
.linha-azul { background: #1A5EA8; }
.linha-amarela { background: #F9C846; }


#MenuMobileOpenBtn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.navbar-desktop {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-selector {
    position: relative;
}

.lang-selector__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.lang-selector__toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lang-selector__flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-selector__arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.lang-selector.open .lang-selector__arrow {
    transform: rotate(180deg);
}

.lang-selector__dropdown {
    display: none !important;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    min-width: 140px;
    z-index: 99999;
    flex-direction: column;
}

.lang-selector.open .lang-selector__dropdown {
    display: flex !important;
    flex-direction: column;
    animation: fadeInDown 0.15s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lang-selector__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    color: #1a1a2e;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s ease;
}

.lang-selector__item:hover {
    background: #f0f4f8;
}

.lang-selector__item--active {
    background: #e8f0fb;
    color: #0D3B66;
    font-weight: 700;
}

/* --- MEDIA QUERY: PONTO DE VIRADA --- */
@media (max-width: 1280px) {
    .navbar-desktop {
        display: none;
    }

    #MenuMobileOpenBtn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: var(--site-container-padding, 1.5rem);
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-container {
        position: relative;
        min-height: 70px; 
    }

    header .logo {
        margin: 0; 
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .logo img {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .nav-container {
        min-height: 60px;
        padding: 8px var(--site-container-padding, 1rem);
    }

    .logo img {
        height: 42px;
    }
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
#goog-gt-vt,
.goog-tooltip,
.goog-tooltip:hover,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-ORHb-Oxf5Ak,
.VIpgJd-ZVi9od-SmfZ-Oxf5Ak,
.VIpgJd-ZVi9od-xl07Ob-Oxf5Ak,
.VIpgJd-ZVi9od-v2WKo,
.VIpgJd-y6EKle-H9tDt,
iframe[id^=":"][id$=".container"],
iframe.skiptranslate,
body > .skiptranslate {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html, body {
    top: 0px !important;
    position: static !important;
    margin-top: 0px !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

font {
    background: transparent !important;
    box-shadow: none !important;
}

/* Estilos dos botões de idioma no menu mobile */
.lang-selector-mobile__btn {
    transition: all 0.2s ease;
    color: #374151;
}

.lang-selector-mobile__btn:hover {
    background-color: #f3f4f6 !important;
}

.lang-selector-mobile__btn--active {
    background-color: #0D3B66 !important;
    color: #ffffff !important;
    border-color: #0D3B66 !important;
}

