﻿/* ATeam Theme, cores derivadas do logo */
:root {
    --nav-bg-start: #0A0E14;
    --nav-bg-end: #000000;
    --footer-bg-start: #000000;
    --footer-bg-end: #0A0E14;
    --brand-red: #E31E24;
    --text-primary: #FFFFFF;
    --text-muted: #9AA3B2;
    --edge-line: rgba(227,30,36,0.35);
    --panel: #1A2028;
    --halo: rgba(255,255,255,0.03);
    --glow: rgba(0,0,0,0.35);
    --spinner-size: 420px;
    --spinner-size-sm: 300px;
    --arc-color: rgba(255,255,255,.92);
    --aog-height: 64px;
    --nav-height: 96px;
    --brand-logo-height: 120px;
    --brand-logo-maxw: 420px;
    /* Footer logo desktop grande */
    --footer-logo-height: 270px;
    --footer-logo-maxw: 360px;
    --glass-bg: rgba(8,10,14,0.58);
    --glass-border: rgba(255,255,255,0.08);
    --glass-shadow: 0 18px 44px rgba(0,0,0,0.55);
    --glass-shadow-strong: 0 26px 70px rgba(0,0,0,0.72);
}

/* Reset básico e tipografia */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text-primary);
    background: #0A0E14;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-width: 320px;
    width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Containers e utilidades */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

.muted {
    color: var(--text-muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.visually-hidden-focusable:active,
.visually-hidden-focusable:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 12px;
    clip: auto;
    background: rgba(0,0,0,0.9);
    color: #ffffff;
    border: 1px solid rgba(227,30,36,0.55);
    border-radius: 10px;
}

/* AOG Bar fixa no topo com altura fluida */
.aog-bar {
    background: linear-gradient(90deg,#0B0F14,#050709);
    color: var(--text-primary);
    border-bottom: 2px solid var(--brand-red);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    font-size: .95rem;
    min-height: var(--aog-height);
    padding-block: 6px;
}

    .aog-bar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
        padding-top: 4px;
        padding-bottom: 4px;
    }

.aog-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

    .aog-alert i {
        color: var(--brand-red);
    }

.aog-contact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.aog-phone,
.aog-email {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(227,30,36,0.35);
    background: rgba(26,32,40,0.5);
    transition: all .25s ease;
}

    .aog-phone:hover,
    .aog-email:hover {
        background: var(--brand-red);
        color: #0A0E14;
        transform: translateY(-2px);
    }

/* AOG floating contact panel */
.aog-floating {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1060;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.aog-toggle-btn {
    pointer-events: auto;
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 0 10px 10px 0;
    background: var(--brand-red);
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    box-shadow: 0 10px 24px rgba(227,30,36,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .aog-toggle-btn i {
        font-size: 1.1rem;
    }

    .aog-toggle-btn:hover,
    .aog-toggle-btn:focus-visible {
        background: #c41a20;
        transform: translateX(2px);
        box-shadow: 0 12px 30px rgba(227,30,36,0.7);
    }

    .aog-toggle-btn:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 2px;
    }

.aog-toggle-label {
    white-space: nowrap;
}

.aog-floating-panel {
    pointer-events: auto;
    position: relative;
    min-width: 260px;
    max-width: 320px;
    margin-left: 4px;
    padding: 14px 16px;
    border-radius: 12px;
    background: radial-gradient(600px 240px at 100% 0, rgba(227,30,36,0.18), transparent 60%), #05070a;
    border: 1px solid rgba(227,30,36,0.45);
    box-shadow: 0 18px 40px rgba(0,0,0,0.85);
    color: #ffffff;
    transform: translateX(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.aog-floating.open .aog-floating-panel {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.aog-floating-header {
    margin-bottom: 10px;
}

.aog-floating-title {
    display: block;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-red);
}

.aog-floating-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.aog-floating-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aog-floating-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .aog-floating-item i {
        color: var(--brand-red);
        margin-top: 3px;
        min-width: 18px;
    }

.aog-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
}

.aog-value {
    font-size: 0.9rem;
    color: #ffffff;
    text-decoration: none;
}

    .aog-value:hover {
        text-decoration: underline;
    }

@media (max-width: 768px) {
    .aog-floating {
        top: auto;
        bottom: 18px;
        transform: none;
        left: 0;
        right: auto;
    }

    .aog-floating-panel {
        margin-left: 4px;
        max-width: 260px;
        left: 56px;
        right: auto;
    }
}

/* Header e Navbar fixos logo abaixo da AOG */
.header {
    background: radial-gradient(1200px 220px at 60% -80%, rgba(199,204,214,0.06), transparent 60%), linear-gradient(180deg, var(--nav-bg-start), var(--nav-bg-end));
    border-bottom: 1px solid var(--edge-line);
    position: fixed;
    top: var(--aog-height);
    left: 0;
    right: 0;
    z-index: 1035;
}

    .header::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(800px 180px at 20% 0%, rgba(227,30,36,0.10), transparent 65%), radial-gradient(900px 220px at 80% 10%, rgba(255,255,255,0.06), transparent 70%);
        opacity: 0.85;
        pointer-events: none;
    }

    .header::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(227,30,36,0.45), transparent);
        opacity: 0.9;
        pointer-events: none;
    }

    .header.is-scrolled {
        background: linear-gradient(180deg, rgba(0,0,0,0.82), rgba(0,0,0,0.66));
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: var(--glass-shadow-strong);
    }

/* Navbar */
.navbar {
    min-height: var(--nav-height);
    position: relative;
}

    .navbar.navbar-dark {
        background: transparent;
        --bs-navbar-color: rgba(255,255,255,0.95);
        --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.6' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

    /* container da navbar ajustado para telas pequenas */
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        width: 100%;
        min-height: var(--nav-height);
        position: relative;
        z-index: 1;
    }

/* marca */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: .45rem .70rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 14px 30px rgba(0,0,0,0.35);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

    .navbar-brand::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(500px 140px at 30% 20%, rgba(227,30,36,0.16), transparent 65%);
        opacity: 0.9;
        pointer-events: none;
    }

    .navbar-brand::after {
        content: "";
        position: absolute;
        top: -40%;
        left: -60%;
        width: 60%;
        height: 220%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
        transform: rotate(18deg);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease, left .6s ease;
    }

    .navbar-brand:hover::after,
    .navbar-brand:focus-visible::after {
        opacity: 1;
        left: 120%;
    }

    .navbar-brand:hover,
    .navbar-brand:focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 0 0 1px rgba(227,30,36,0.38), 0 22px 58px rgba(0,0,0,0.55);
        filter: saturate(1.05);
    }

.brand-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.navbar-brand img.brand-logo {
    height: var(--brand-logo-height);
    width: auto;
    max-width: min(var(--brand-logo-maxw), 64vw);
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 14px 22px rgba(0,0,0,0.62));
    transform: translateZ(0);
}

/* botão e ícone do toggler */
.navbar-toggler {
    border-color: rgba(255,255,255,0.2);
}

.navbar-toggler-icon {
    filter: none;
    background-color: transparent;
}

/* Links do menu com realce */
.navbar-nav .nav-link {
    position: relative;
    color: var(--text-primary);
    letter-spacing: .3px;
    padding: 12px 16px;
    transition: color .25s ease;
    text-transform: uppercase;
    font-weight: 600;
    font-size: .92rem;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: var(--brand-red);
    }

    .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 0;
        height: 2px;
        background: var(--brand-red);
        transform: translateX(-50%);
        transition: width .25s ease;
    }

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link:focus::after {
        width: 70%;
    }

/* Botão sandwich visível em telas pequenas */
.navbar-dark .navbar-toggler {
    border-color: rgba(255,255,255,0.6);
    padding: .6rem .7rem;
    line-height: 1;
    color: rgba(255,255,255,0.98);
    background-color: transparent;
    margin-left: auto;
    border-radius: 12px;
}

    .navbar-dark .navbar-toggler:focus {
        outline: 2px solid var(--brand-red);
        outline-offset: 2px;
        box-shadow: none;
    }

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.6' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    background-size: 1.65rem 1.65rem;
    background-repeat: no-repeat;
    background-position: center;
    width: 2.05rem;
    height: 2.05rem;
    filter: none;
    opacity: 1;
}

.navbar-dark .navbar-toggler:hover,
.navbar-dark .navbar-toggler:focus {
    color: var(--brand-red);
    border-color: var(--brand-red);
}

/* Dropdown escuro elegante */
.dropdown-menu {
    background: linear-gradient(180deg,#0B0F14,#05070A);
    border: 1px solid rgba(227,30,36,0.35);
    border-radius: 12px;
    padding: 8px;
    min-width: 240px;
    backdrop-filter: blur(8px);
}

.dropdown-header {
    color: var(--brand-red);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 10px 4px 10px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    border-radius: 10px;
    padding: 10px 12px;
    transition: all .2s ease;
}

    .dropdown-item i {
        opacity: .9;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: rgba(227,30,36,0.12);
        color: var(--text-primary);
        transform: translateX(3px);
    }

/* Breadcrumb */
.breadcrumb-container {
    background: linear-gradient(180deg,#0C1118,#0A0E14);
    border-bottom: 1px solid var(--edge-line);
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
}

    .breadcrumb:empty {
        display: none;
    }

    .breadcrumb .breadcrumb-item a {
        color: var(--text-muted);
        text-decoration: none;
    }

        .breadcrumb .breadcrumb-item a:hover {
            color: var(--text-primary);
        }

    .breadcrumb .breadcrumb-item.active {
        color: var(--brand-red);
        font-weight: 700;
    }

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* Conteúdo principal */
.main-content {
    min-height: 70vh;
    background: #0C1118;
    padding: 0 0 56px;
    width: 100%;
}

    .main-content > *:first-child {
        margin-top: 0;
    }

/* Footer */
.footer {
    background: radial-gradient(900px 260px at 20% -40%, rgba(199,204,214,0.05), transparent 60%), linear-gradient(180deg, var(--footer-bg-start), var(--footer-bg-end));
    border-top: 3px solid var(--brand-red);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

    .footer::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 260px at 15% 0%, rgba(227,30,36,0.10), transparent 60%), radial-gradient(1100px 320px at 85% 10%, rgba(255,255,255,0.05), transparent 70%);
        opacity: 0.9;
        pointer-events: none;
    }

.footer-main {
    padding: 68px 0 32px;
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    padding: clamp(.55rem, 1.2vw, .85rem) clamp(.70rem, 1.8vw, 1.05rem);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 18px 50px rgba(0,0,0,0.55);
    margin-bottom: 18px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

    .footer-brand::after {
        content: "";
        position: absolute;
        top: -40%;
        left: -60%;
        width: 60%;
        height: 220%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
        transform: rotate(18deg);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease, left .7s ease;
    }

    .footer-brand:hover::after,
    .footer-brand:focus-within::after {
        opacity: 1;
        left: 120%;
    }

    .footer-brand img.footer-logo {
        height: var(--footer-logo-height);
        width: auto;
        max-width: min(var(--footer-logo-maxw), 82vw);
        object-fit: contain;
        display: block;
        filter: drop-shadow(0 16px 26px rgba(0,0,0,0.70));
        transform: translateZ(0);
        position: relative;
        z-index: 1;
    }

.footer-description {
    color: rgba(235,240,248,0.9);
    line-height: 1.7;
    margin-top: 10px;
}

.footer-title {
    color: var(--brand-red);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 8px;
}

    .footer-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 44px;
        height: 2px;
        background: var(--brand-red);
    }

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: rgba(226,232,240,0.9);
        text-decoration: none;
        transition: all .25s ease;
        position: relative;
        padding-left: 0;
        display: inline-block;
    }

        .footer-links a:hover {
            color: var(--text-primary);
            transform: translateX(6px);
            padding-left: 6px;
        }

.social-links {
    display: flex;
    gap: 14px;
    margin-top: 14px;
    flex-wrap: wrap;
}

    .social-links a {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(227,30,36,0.12);
        color: var(--text-primary);
        border-radius: 10px;
        border: 1px solid rgba(227,30,36,0.35);
        text-decoration: none;
        transition: all .25s ease;
    }

        .social-links a:hover {
            background: var(--brand-red);
            color: #0A0E14;
            transform: translateY(-3px);
        }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    transition: all .25s ease;
}

    .contact-item:hover {
        background: rgba(227,30,36,0.12);
        transform: translateX(4px);
    }

    .contact-item i {
        color: var(--brand-red);
        margin-top: 3px;
        min-width: 22px;
    }

    .contact-item p {
        color: rgba(226,232,240,0.9);
    }

.footer-bottom {
    border-top: 1px solid var(--edge-line);
    background: rgba(5,7,10,0.85);
    padding: 18px 0;
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.copyright {
    color: rgba(226,232,240,0.85);
    font-size: .95rem;
}

.legal-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

    .legal-links a {
        color: rgba(226,232,240,0.85);
        text-decoration: none;
        position: relative;
        transition: color .25s ease;
    }

        .legal-links a:hover {
            color: var(--text-primary);
        }

        .legal-links a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -2px;
            height: 2px;
            width: 0;
            background: var(--brand-red);
            transition: width .25s ease;
        }

        .legal-links a:hover::after {
            width: 100%;
        }

/* Cards técnicos */
.service-card {
    background: linear-gradient(180deg,#0F1520,#0C121B);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 34px rgba(0,0,0,0.35);
        border-color: #233044;
    }

.service-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.service-card-description {
    color: var(--text-muted);
    line-height: 1.7;
}

.service-card-features {
    list-style: none;
    margin-top: 10px;
}

    .service-card-features li {
        color: var(--text-muted);
        margin-bottom: 6px;
    }

        .service-card-features li::before {
            content: "Checkmark ";
            color: var(--brand-red);
            font-weight: 900;
        }

/* Overlay de transição */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(10,14,20,.96), rgba(0,0,0,.96));
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

    .page-transition-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Spinner */
.airplane-loader {
    position: relative;
    width: min(var(--spinner-size), 86vw);
    height: min(var(--spinner-size), 86vw);
    display: grid;
    place-items: center;
    isolation: isolate;
}

    .airplane-loader .loading-text {
        position: absolute;
        bottom: 14px;
        font-weight: 800;
        letter-spacing: .18em;
        font-size: .78rem;
        color: rgba(255,255,255,.85);
        text-align: center;
    }

.orbit-wrap {
    position: absolute;
    width: 78%;
    height: 78%;
    animation: orbitSpin 1.1s linear infinite;
    transform-origin: 50% 50%;
}

.orbit-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.arc {
    fill: none;
    stroke: var(--arc-color);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 0 16;
    filter: drop-shadow(0 0 8px rgba(255,255,255,.25));
    opacity: .95;
}

.plane-ico {
    position: absolute;
    left: 50%;
    top: 0%;
    transform: translate(-50%, -45%) rotate(22deg);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 8px 18px rgba(227,30,36,.45));
}

    .plane-ico i {
        font-size: 28px;
        color: var(--brand-red);
    }

@keyframes orbitSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .orbit-wrap {
        animation: none;
    }

    .navbar-brand::after,
    .footer-brand::after {
        transition: none;
    }
}

/* Responsividade geral */
@media (max-width:991.98px) {
    :root {
        --nav-height: 88px;
        --brand-logo-height: 74px;
        --brand-logo-maxw: 380px;
        /* Sugestão: logo do footer maior em tablet e telas menores */
        --footer-logo-height: 210px;
        --footer-logo-maxw: 420px;
    }

    .navbar .container {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .navbar-collapse {
        background: linear-gradient(180deg,#06090E,#000000);
        border-radius: 0 0 16px 16px;
        padding: .75rem;
        margin-top: 0;
        overflow-y: auto;
        max-height: calc(100vh - 96px);
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1036;
        box-shadow: 0 14px 34px rgba(0,0,0,0.75);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-aux {
        margin-top: .5rem;
        width: 100%;
        justify-content: flex-start;
    }

    .airplane-loader {
        width: min(var(--spinner-size-sm), 90vw);
        height: min(var(--spinner-size-sm), 90vw);
    }

    .footer-main {
        padding: 56px 0 28px;
    }

    .language-selector {
        width: 100%;
        justify-content: flex-start;
    }

    /* Mudança solicitada: centralizar e destacar o logo do footer */
    .footer-brand {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

        .footer-brand img.footer-logo {
            margin-left: auto;
            margin-right: auto;
            max-width: min(var(--footer-logo-maxw), 92vw);
        }

    .footer-description {
        text-align: center;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width:767.98px) {
    :root {
        --nav-height: 82px;
        --brand-logo-height: 68px;
        --brand-logo-maxw: 340px;
        /* Mobile: logo do footer ainda maior, mantendo proporção */
        --footer-logo-height: 185px;
        --footer-logo-maxw: 380px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-main .row > div {
        text-align: left;
    }

    .social-links {
        justify-content: center;
    }

    .aog-bar .container {
        justify-content: center;
    }

    .navbar-nav .nav-link {
        padding: 10px 12px;
    }

    /* Garantia: primeira coluna do footer alinhada ao centro no mobile */
    .footer-main .row > div:first-child {
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

        .footer-brand img.footer-logo {
            margin-left: auto;
            margin-right: auto;
            max-width: min(var(--footer-logo-maxw), 94vw);
        }

    .footer-description {
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width:575.98px) {
    :root {
        --aog-height: 72px;
        --nav-height: 78px;
        --brand-logo-height: 62px;
        --brand-logo-maxw: 300px;
        /* Celulares: maior e centralizado */
        --footer-logo-height: 165px;
        --footer-logo-maxw: 360px;
    }

    .aog-bar {
        padding-block: 8px;
    }

    .footer-main {
        padding: 50px 0 26px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .navbar-brand img.brand-logo {
        max-width: min(var(--brand-logo-maxw), 66vw);
    }

    .navbar-dark .navbar-toggler-icon {
        background-size: 1.7rem 1.7rem;
        width: 2rem;
        height: 2rem;
    }

    .container {
        padding: 0 12px;
    }

    .legal-links {
        justify-content: center;
    }

    .footer-main .row > div:first-child {
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

        .footer-brand img.footer-logo {
            margin-left: auto;
            margin-right: auto;
            max-width: min(var(--footer-logo-maxw), 96vw);
        }

    .footer-description {
        text-align: center;
        font-size: 0.95rem;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width:399.98px) {
    :root {
        --nav-height: 74px;
        --brand-logo-height: 58px;
        --brand-logo-maxw: 270px;
        /* Muito pequeno: ainda grande, mas sem estourar */
        --footer-logo-height: 150px;
        --footer-logo-maxw: 320px;
    }

    .aog-toggle-btn {
        padding: 8px 10px;
        font-size: 0.72rem;
    }

    .aog-floating-panel {
        max-width: 230px;
        padding: 12px 12px;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-brand img.footer-logo {
        max-width: min(var(--footer-logo-maxw), 96vw);
    }
}

/* Impressão */
@media print {
    .aog-bar,
    .header,
    .breadcrumb-container,
    .footer {
        display: none;
    }

    .main-content {
        padding: 0;
        min-height: auto;
    }
}

/* SELETOR DE IDIOMA */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
}

/* Botão customizado para não herdar caret do Bootstrap */
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(26,32,40,0.55);
    border: 1px solid rgba(227,30,36,0.35);
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
}

    .lang-btn::after {
        content: none !important;
    }

.flag-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.language-selector .flag-current svg,
.language-selector .flag svg {
    width: 24px;
    height: 16px;
    display: block;
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}

.lang-btn .fa-chevron-down {
    font-size: .8rem;
    opacity: .85;
}

/* Dropdown do idioma sem barra de rolagem visível */
.lang-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 120px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    border-radius: 10px;
    background: linear-gradient(180deg,#0B0F14,#05070A);
    border: 1px solid rgba(227,30,36,0.35);
    box-shadow: 0 12px 24px rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    z-index: 1050;
    display: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .lang-dropdown::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
        background: transparent;
    }

    .lang-dropdown.show {
        display: block;
    }

.lang-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform .15s ease, background .15s ease;
}

    .lang-item:hover,
    .lang-item:focus {
        background: rgba(227,30,36,0.12);
        transform: translateX(3px);
    }

/* Navbar altura mínima */
.navbar {
    min-height: var(--nav-height);
}

/* Remover qualquer barra de rolagem do menu no desktop */
@media (min-width: 992px) {
    .navbar-collapse {
        overflow: visible !important;
        max-height: none !important;
        position: static;
        width: auto;
        border-radius: 0;
        box-shadow: none;
    }

    .navbar-aux {
        margin-top: 0;
        width: auto;
    }
}
