
/* ============================================================
   BARRA DE ACESSIBILIDADE
   ============================================================ */
.topbar-a11y-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1.4;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.topbar-a11y-btn:hover,
.topbar-a11y-btn:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
}

.topbar-a11y-btn[aria-pressed="true"] {
    background: #ffffff;
    color: #1e3a5f;
    border-color: #ffffff;
}

/* ============================================================
   ALTO CONTRASTE — padrão gov.br / WCAG 2.1
   Referência: https://www.gov.br/governodigital/pt-br/acessibilidade-e-usuario/acessibilidade-digital
   ============================================================ */
html.alto-contraste,
html.alto-contraste body {
    background-color: #000000 !important;
    color: #ffff00 !important;
}

html.alto-contraste * {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html.alto-contraste a,
html.alto-contraste a * {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

html.alto-contraste a:visited,
html.alto-contraste a:visited * {
    color: #ffb3ff !important;
}

html.alto-contraste button,
html.alto-contraste [role="button"] {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 1px solid #ffff00 !important;
}

html.alto-contraste button:hover,
html.alto-contraste [role="button"]:hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

html.alto-contraste img {
    filter: grayscale(100%) contrast(1.5) !important;
}

html.alto-contraste input,
html.alto-contraste select,
html.alto-contraste textarea {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 1px solid #ffff00 !important;
}

html.alto-contraste #btn-alto-contraste {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border-color: #ffff00 !important;
}

html.alto-contraste #top-bar {
    background-color: #000000 !important;
    border-bottom: 1px solid #ffff00 !important;
}

/* ============================================================ */

*, *::before, *::after {
            box-sizing: border-box;
        }

        html, body {
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            width: 100%;
            max-width: 100%;
        }

        #app {
            max-width: 100vw;
            overflow-x: hidden;
        }

        #main-header {
            z-index: 200;
        }

        body > * {
            max-width: 100%;
        }

        * {
            font-family: 'Source Sans 3', sans-serif;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        .font-heading {
            font-family: 'Outfit', sans-serif;
        }

        a img {
            display: block;
            object-fit: contain;
        }

        .logo-link {
            display: inline-block;
            line-height: 0;
        }

        .nav-item {
            position: relative;
        }

        .dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            min-width: 280px;
            max-width: calc(100vw - 16px);
            background: white;
            border-radius: 8px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.2s ease;
            z-index: 1000;
            padding: 8px 0;
        }

        .dropdown-right {
            left: auto;
            right: 0;
        }

        .nav-item:hover .dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px;
            color: #1e3a5f;
            font-size: 14px;
            transition: all 0.15s ease;
        }

        .dropdown a:hover {
            background: #f0f7ff;
            color: #0066cc;
        }

        .dropdown-icon {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }

        /* Submenu */
        .has-submenu {
            position: relative;
        }

        .submenu {
            position: absolute;
            left: 100%;
            top: 0;
            min-width: 240px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            opacity: 0;
            visibility: hidden;
            transform: translateX(10px);
            transition: all 0.2s ease;
            padding: 8px 0;
        }

        .has-submenu:hover .submenu {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }

        /* Mobile menu button */
        #mobile-menu-btn {
            background: transparent !important;
            outline: none;
        }

        #mobile-menu-btn:focus,
        #mobile-menu-btn:hover {
            background: transparent !important;
            outline: none;
        }

        #mobile-menu-btn.active {
            background: transparent !important;
            outline: 2px solid #ffffff;
            outline-offset: 1px;
        }

        /* Mobile menu */
        .mobile-menu {
            display: none;
            background: #3b82f6;
            z-index: 100;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            border-top: 1px solid #2563eb;
        }

        .mobile-menu.active {
            display: block;
        }

        .mobile-nav-bar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-start;
            gap: 2px;
            padding: 8px 12px;
        }

        .mobile-nav-item {
            position: relative;
            padding: 8px 12px;
            font-size: 13px;
            font-weight: 500;
            color: #ffffff;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.15s ease;
            display: flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
        }

        .mobile-nav-item:hover,
        .mobile-nav-item.active {
            background: rgba(255, 255, 255, 0.2);
            color: #ffffff;
        }

        .mobile-nav-item svg {
            width: 12px;
            height: 12px;
            transition: transform 0.2s ease;
        }

        .mobile-nav-item.active svg {
            transform: rotate(180deg);
        }

        .mobile-dropdown-area {
            border-top: 1px solid #2563eb;
            display: none;
            padding: 12px 16px;
            background: #1d4ed8;
        }

        .mobile-dropdown-area.active {
            display: block;
        }

        .mobile-dropdown-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }

        .mobile-dropdown-grid a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            color: #ffffff;
            font-size: 13px;
            border-radius: 8px;
            transition: all 0.15s ease;
            flex: 1 1 calc(50% - 4px);
            min-width: 140px;
        }

        .mobile-dropdown-grid a:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #ffffff;
        }

        .mobile-dropdown-grid a i {
            font-size: 14px;
            width: 20px;
            text-align: center;
            flex-shrink: 0;
        }

        /* Hero gradient */
        .hero-gradient {
            background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #3d7ab5 100%);
        }

        /* Card hover */
        .service-card {
            transition: all 0.3s ease;
        }

        .service-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
        }

        /* Quick access buttons */
        .quick-btn {
            transition: all 0.2s ease;
        }

        .quick-btn:hover {
            transform: scale(1.05);
        }

        /* News card */
        .news-card {
            transition: all 0.3s ease;
        }

        .news-card:hover {
            transform: translateY(-2px);
        }

        /* Scroll animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-fade-in {
            animation: fadeInUp 0.6s ease forwards;
        }

        @view-transition {
            navigation: auto;
        }