/* ============================================================
    1. RESET
    2. TEMA CLARO
    3. BODY
    4. HEADER
        4.1 Header Base
        4.2 Estados Scroll / Shrink
        4.3 Dropdown
        4.4 Mega Menu (Desktop)
        4.5 Logo
        4.6 Menu Hamburguer (Mobile)
        4.7 Menu Mobile (Slide-in)
        4.8 Overlay Mobile
    5. LOGO E TÍTULO
    6. MENU DE NAVEGAÇÃO
    7. BOTÃO LOGIN
    8. BOTÃO VOLTAR AO TOPO
    9. FOOTER
        9.1 Footer Base
        9.2 Footer Left
        9.3 Footer Center
        9.4 Footer Right
        9.5 Dropdown Idioma
        9.6 Links Legais
    10. INTRO
        10.1 Intro Base
        10.2 Grelha e Scan
        10.3 Conteúdo
        10.4 Glitch
        10.5 Tagline
    11. CURSOR PERSONALIZADO
        11.1 Cursor
        11.2 Cursor Ring
        11.3 Trail
        11.4 Partículas
        11.5 Desativação no Mobile
    12. HERO
        12.1 Hero Base
        12.2 Hero Pequeno
        12.3 Hero Todos
    13. COOKIES
        13.1 Fontes
        13.2 Overlay
        13.3 Banner Principal
        13.4 Vista Simples
        13.5 Botões da Vista Simples
        13.6 Vista Personalizada
        13.7 Lista de Cookies
        13.8 Tag Obrigatório
        13.9 Toggle Switch
        13.10 Botões Personalizados
        13.11 Toast
        13.12 Botão "Gerir Cookies"
    14. RESPONSIVO GLOBAL
============================================================ */




/* ============================================================
    1. RESET
============================================================ */

    html, body {
        height: 100%;
    }

    body {
        display: flex;
        flex-direction: column;
    }

   main {
        flex: 1;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }


/* ============================================================
    2. TEMA CLARO
============================================================ */

    :root {
        --bg-primary: #f0f7ff;
        --bg-secondary: #ffffff;

        --text-primary: #1B3F94;
        --text-secondary: #0093D0;

        --accent: #1a7abf;
        --accent-2: #63b3ed;

        --border: rgba(26, 122, 191, 0.2);
        --card-shadow: rgba(23, 71, 105, 0.74);

        --footer-bg: #1a3a4a;
        --footer-text: #e8f4fd;
    }


/* ============================================================
    3. BODY
============================================================ */

    @font-face {
        font-family: 'Museo500';
        src: url('fonts/Museo500-Regular-webfont.eot');
        src:
            url('fonts/Museo500-Regular-webfont.eot?#iefix') format('embedded-opentype'),
            url('fonts/Museo500-Regular-webfont.woff') format('woff'),
            url('fonts/Museo500-Regular-webfont.ttf') format('truetype'),
            url('fonts/Museo500-Regular-webfont.svg#Museo500') format('svg');
        font-weight: normal;
        font-style: normal;
    }

    body {
        font-family: 'Museo500';
        background-color: var(--bg-primary);
        color: var(--text-primary);

        font-size: 18px;

        transition: background-color 0.3s, color 0.3s;

        padding-top: 0;
    }


/* ============================================================
    4. HEADER
============================================================ */

    /* 4.1 Header Base */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;

        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 20px 40px;

        background: white;
        font-family: 'Museo500';
        font-size: 18px;

        z-index: 1000;
        transition: all 0.3s ease;
    }

    /* 4.2 Estados Scroll / Shrink */

    header.scrolled {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border);
    }

    header.shrink {
        padding: 14px 30px;
    }

    /* 4.3 Dropdown */

    .dropdown {
        position: relative;
    }

    .nav-svc-btn {
        background: none;
        border: none;
        cursor: pointer;

        display: flex;
        align-items: center;
        gap: 5px;

        padding: 0;

        font-family: 'Museo500';
        font-size: 20px;
        font-weight: 500;

        color: var(--text-secondary);
        transition: color 0.3s;
    }

    .nav-svc-btn::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0%;
        height: 2px;
        background: var(--accent);
        transition: width 0.3s;
    }

    .nav-svc-btn:hover::after,
    .nav-svc-btn.open::after {
        width: 100%;
    }

    .nav-svc-btn:hover,
    .nav-svc-btn.open {
        color: #00cfff;
    }

    .nav-svc-arrow {
        font-size: 12px;
        transition: transform 0.25s ease;
    }

    .nav-svc-btn.open .nav-svc-arrow {
        transform: rotate(180deg);
    }

    /* 4.4 Mega Menu */

    .mega-menu {
        position: absolute;
        top: calc(100% + 18px);
        left: 50%;
        transform: translateX(-50%) translateY(8px);

        width: 800px;

        background: #ffffff;
        border: 1px solid var(--border);
        border-radius: 14px;

        opacity: 0;
        visibility: hidden;

        z-index: 2000;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;

        box-shadow: 0 16px 50px rgb(23, 71, 105);
    }

    .mega-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .mega-menu-label {
        padding: 12px 20px 10px;
        border-bottom: 1px solid var(--border);

        font-family: 'Museo500';
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 5px;
        text-transform: uppercase;

        color: #52cefb;
    }

    .mega-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .mega-card {
        position: relative;
        display: flex;
        flex-direction: column;

        padding: 18px 20px;

        text-decoration: none;
        color: inherit;

        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);

        transition: background 0.18s ease;
    }

    .mega-card:nth-child(2n) {
        border-right: none;
    }

    .mega-card:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .mega-card:hover {
        background: #f0f7ff;
    }

    .mega-card-arrow {
        position: absolute;
        top: 14px;
        right: 14px;
        font-size: 12px;
        color: rgba(26, 122, 191, 0.3);
        transition: color 0.18s ease, transform 0.18s ease;
    }

    .mega-card:hover .mega-card-arrow {
        color: var(--accent);
        transform: translate(2px, -2px);
    }

    .mega-card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;

        border-radius: 10px;
        background: #f0f7ff;
        border: 1px solid var(--border);

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 26px;
    }

    .mega-card-name {
        margin-bottom: 5px;
        font-size: 16px;
        font-weight: bold;
        color: var(--text-primary);
    }

    .mega-card-desc {
        font-size: 14px;
        line-height: 1;
        color: var(--text-secondary);
    }


    /* 4.5 Logo */

    .logo {
        display: flex;
        align-items: center;
        gap: 10px;

        text-decoration: none;
        color: var(--text-primary);

        font-size: 26px;
        font-weight: bold;

        transition: 0.3s;
    }

    .logo img {
        width: 35px;
        height: 35px;
    }

    .logo:hover {
        color: var(--accent);
        transform: scale(1.05);
    }


    /* 4.6 Menu Hamburguer (Mobile) */

   .hamburger {
    display: none;
    position: relative;

    width: 36px;
    height: 36px;

    border: none;
    background: transparent;

    cursor: pointer;

    padding: 0;
}

.hamburger span {
    position: absolute;

    left: 0;

    width: 36px !important;
    height: 4px !important;

    background: #1B3F94 !important;
    border-radius: 10px;

    display: block !important;
}

.hamburger span:nth-child(1) {
    top: 6px;
}

.hamburger span:nth-child(2) {
    top: 16px;
}

.hamburger span:nth-child(3) {
    top: 26px;
}



    /* 4.7 Menu Mobile (Slide-in) */

    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;

        width: 75%;
        max-width: 340px;
        height: 100vh;

        background: white;
        box-shadow: -4px 0 25px rgba(0,0,0,0.15);

        padding: 80px 30px 30px;

        display: flex;
        flex-direction: column;
        gap: 25px;

        transition: right 0.35s ease;
        z-index: 2000;
    }

    .mobile-menu.open {
        right: 0;
    }

    .mobile-menu a {
        font-size: 20px;
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 600;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
    }

    .mobile-menu a:hover {
        color: var(--accent);
    }

    .mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    }

    .mobile-submenu a {
        font-size: 18px;
        color: var(--text-primary);
        text-decoration: none;
    }

    .mobile-submenu.show {
        display: flex;
    }


    .mobile-login-btn {
    display: block;
    margin-top: 25px;
    padding: 12px 20px;

    text-align: center;
    font-weight: 700;
    font-size: 18px;

    color: white !important;
    background: linear-gradient(135deg, #0a2540, #1a7abf);
    border-radius: 30px;

    box-shadow: 0 8px 25px rgba(26, 122, 191, 0.3);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .mobile-login-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0, 57, 97, 0.795);
    }




    /* 4.8 Overlay Mobile */

    .mobile-overlay {
        position: fixed;
        inset: 0;

        background: rgba(0,0,0,0.35);
        backdrop-filter: blur(2px);

        opacity: 0;
        visibility: hidden;

        transition: 0.3s ease;
        z-index: 1500;
    }

    .mobile-overlay.show {
        opacity: 1;
        visibility: visible;
    }

/* ============================================================
    5. LOGO E TÍTULO
============================================================ */

    .left {
        display: flex;
        align-items: center;
        gap: 10px;
    }


    .logo-img {
        width: 50px;
        transition: width 0.3s;
    }

    header.shrink .logo-img {
        width: 40px;
    }

    .titulo {
        font-size: 46px;
        font-weight: bold;
        color: var(--text-primary);
        transition: font-size 0.3s;
    }

    header.shrink .titulo {
        font-size: 26px;
    }


/* ============================================================
    6. MENU DE NAVEGAÇÃO
============================================================ */

    .center {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .center ul {
        display: flex;
        list-style: none;
        gap: 70px;
    }

    .center a {
        position: relative;
        text-decoration: none;
        color: var(--text-secondary);
        font-size: 20px;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    /* linha animada */
    .center a::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -6px;
        width: 0%;
        height: 2px;
        background: linear-gradient(90deg, #00cfff, #0077ff);
        transform: translateX(-50%);
        transition: width 0.3s ease;
    }

    .center a:hover::after {
        width: 100%;
    }

    .center a:hover {
        color: #00cfff;
    }


/* ============================================================
    7. BOTÃO LOGIN
============================================================ */

    .login-btn {
        background-color: var(--accent);
        color: white !important;

        padding: 8px 15px;
        border-radius: 20px;

        transition: background-color 0.3s;
        box-shadow: 0 2px 8px var(--card-shadow);
    }

    .login-btn:hover {
        background-color: var(--accent-2);
    }


/* ============================================================
    8. BOTÃO VOLTAR AO TOPO
============================================================ */

    .back-to-top {
        position: fixed;
        right: 30px;
        bottom: 30px;

        width: 50px;
        height: 50px;

        border: none;
        border-radius: 50%;

        background: linear-gradient(135deg, var(--accent), var(--accent-2));
        color: white;

        font-size: 1.3em;
        cursor: pointer;

        z-index: 999;

        box-shadow: 0 6px 20px var(--card-shadow);

        opacity: 0;
        pointer-events: none;

        transform: translateY(20px);
        transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
    }

    .back-to-top.visivel {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .back-to-top:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 10px 30px var(--card-shadow);
    }

/*============================================================
    9. FOOTER
============================================================ */

    /* 9.1 Footer Base */
    .footer {
        padding: 40px;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border);
    }

    .footer-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }



    /* 9.2 Footer Left */

    .footer-left {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .footer-logo img {
        width: 40px;
    }

    .footer-logo span {
        font-size: 20px;
        font-weight: bold;
    }

    .footer-copy {
        font-size: 14px;
        color: #0093D0;
    }



    /* 9.3 Footer Center */

    .footer-center {
        text-align: center;
    }

    .footer-center p {
        margin-bottom: 10px;
    }

    .social-icon {
        font-size: 24px;
        color: var(--accent);
        transition: color 0.3s;
    }

    .social-icon:hover {
        color: var(--accent-2);
    }



    /* 9.4 Footer Right */

    .footer-right {
        display: flex;
        align-items: center;
        margin-right: 70px;
    }



    /*  9.5 Dropdown Idioma */

    .lang-dropdown {
    position: absolute;
    right: 30px; /* afasta do canto */
    top: 18px;
    }

    .lang-btn {
        padding: 8px 15px;
        border-radius: 20px;
        border: 1px solid var(--border);
        background: transparent;
        color: var(--text-primary);
        cursor: pointer;
        transition: background-color 0.3s, color 0.3s;
    }

    .lang-btn:hover {
        background: var(--accent);
        color: white;
    }

    .lang-menu {
        position: absolute;
        right: 0;
        top: 110%;
        min-width: 160px;
        padding: 10px 0;
        list-style: none;
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 10px;
        display: none;
        box-shadow: 0 5px 20px var(--card-shadow);
    }

    .lang-menu li {
        padding: 10px 15px;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .lang-menu li:hover {
        background: var(--accent);
        color: white;
    }

    .lang-menu.show {
        display: block;
    }



    /* 9.6 Links Legais */

    .footer-legal-links {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        margin-top: 14px;
    }

    .footer-legal-links a,
    .footer-legal-links span {
        font-size: 13px;
        color: #7da0c5;
    }

    .footer-legal-links a {
        text-decoration: none;
        transition: 0.3s;
    }

    .footer-legal-links a:hover {
        color: var(--accent);
    }


/* ============================================================
    10. INTRO
        
============================================================ */
    /* 10.1 Intro Base */
    #intro {
        position: fixed;
        inset: 0;
        z-index: 9999;

        display: flex;
        justify-content: center;
        align-items: center;

        background: #ffffff;

        opacity: 1;
        visibility: visible;

        transition: opacity 1s ease, visibility 1s;
    }

    #intro.intro-hide {
        opacity: 0;
        visibility: hidden;
    }


    /* 10.2 Grelha e Scan */

    #intro::before {
        content: "";
        position: absolute;
        inset: 0;

        background-image:
            linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 92, 102, 0.04) 1px, transparent 1px);

        background-size: 40px 40px;
        pointer-events: none;
    }

    #intro::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -2px;

        height: 2px;

        background: linear-gradient(
            90deg,
            transparent,
            #1B3F94,
            transparent
        );

        animation: introScan 2s ease 0.3s forwards;
        pointer-events: none;
    }

    @keyframes introScan {
        0% {
            top: 0%;
            opacity: 1;
        }
        100% {
            top: 100%;
            opacity: 0;
        }
    }


    /*  10.3 Conteúdo */

    #intro-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }


    /* 10.4 Glitch */

    #intro-glitch {
        position: relative;

        font-family: 'Museo500';
        font-size: clamp(48px, 10vw, 96px);
        font-weight: 700;

        letter-spacing: 8px;
        color: #1B3F94;

        text-shadow: 0 0 20px #1B3F94;

        opacity: 0;

        animation:
            introAppear 0.3s ease forwards 0.4s,
            introGlitch 0.12s step-end 3 0.8s,
            introGlow 1.2s ease forwards 1.5s;
    }

    #intro-glitch::before,
    #intro-glitch::after {
        content: attr(data-text);
        position: absolute;
        inset: 0;
        opacity: 0;
    }

    #intro-glitch::before {
        color: #0093D0;
        animation: introGlitchBefore 0.12s step-end 3 0.8s;
    }

    #intro-glitch::after {
        color: #1B3F94;
        animation: introGlitchAfter 0.12s step-end 3 0.8s;
    }

    @keyframes introAppear {
        to { opacity: 1; }
    }

    @keyframes introGlitch {
        0% { transform: translate(0); }
        20% { transform: translate(-5px, 2px); color: #0093D0; }
        40% { transform: translate(5px, -2px); color: #1B3F94; }
        60% { transform: translate(-3px, 1px); color: #0093D0; }
        80% { transform: translate(3px, -1px); color: #1B3F94; }
        100% { transform: translate(0); color: #1B3F94; }
    }

    @keyframes introGlitchBefore {
        0% { opacity: 0; }
        20% {
            opacity: 0.7;
            transform: translate(-6px, -3px);
            clip-path: inset(0 0 60% 0);
        }
        60% {
            opacity: 0.7;
            transform: translate(4px, 2px);
            clip-path: inset(40% 0 0 0);
        }
        100% {
            opacity: 0;
            transform: translate(0);
        }
    }

    @keyframes introGlitchAfter {
        0% { opacity: 0; }
        30% {
            opacity: 0.5;
            transform: translate(6px, 3px);
            clip-path: inset(20% 0 40% 0);
        }
        70% {
            opacity: 0.5;
            transform: translate(-4px, -2px);
            clip-path: inset(60% 0 0 0);
        }
        100% {
            opacity: 0;
            transform: translate(0);
        }
    }

    @keyframes introGlow {
        to {
            text-shadow:
                0 0 40px #1B3F94,
                0 0 80px #1B3F94;
        }
    }


    /* 10.5 Tagline */

    #intro-tagline {
        font-family: 'Museo500';
        font-size: clamp(10px, 1.5vw, 13px);

        letter-spacing: 6px;
        color: rgba(0, 0, 0, 0.45);

        opacity: 0;
        animation: introAppear 0.6s ease forwards 1.8s;
    }



/* ============================================================
    11. CURSOR PERSONALIZADO
============================================================ */

    .cursor,
    .cursor-ring,
    .trail,
    .particle {
        pointer-events: none;
    }

    .cursor {
        position: fixed;
        width: 10px;
        height: 10px;

        background: #1B3F94;
        border-radius: 50%;

        pointer-events: none;
        z-index: 999999999;

        transform: translate(-50%, -50%);
        transition: width .2s, height .2s, background .2s;

        box-shadow: 0 0 10px #1B3F94, 0 0 25px rgba(27, 63, 148, 0.5);
    }

    .cursor-ring {
        position: fixed;
        width: 34px;
        height: 34px;

        border: 1.5px solid #1B3F94;
        border-radius: 50%;

        pointer-events: none;
        z-index: 999999999;

        transform: translate(-50%, -50%);
        transition: width .25s, height .25s;
    }

    .trail {
        position: fixed;
        width: 6px;
        height: 6px;

        background: #0093D0;
        border-radius: 50%;

        pointer-events: none;
        z-index: 999999999;

        transform: translate(-50%, -50%);
        opacity: 0.8;

        animation: trailFade 0.6s linear forwards;
    }

    @keyframes trailFade {
        to {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.3);
        }
    }

    .particle {
        position: fixed;
        width: 8px;
        height: 8px;

        background: #0093D0;
        border-radius: 50%;

        pointer-events: none;
        z-index: 999999999;

        transform: translate(-50%, -50%);
        animation: explode 0.8s ease-out forwards;

        box-shadow: 0 0 10px #1B3F94, 0 0 20px #1B3F94;
    }

    @keyframes explode {
        to {
            transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.2);
            opacity: 0;
        }
    }

    /* esconder cursor normal */
    * {
        cursor: none !important;
    }

/* ============================================================
    12. HERO
============================================================ */

/* 12.1 Hero Base */

.hero {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;

    background: linear-gradient(
        135deg,
        #081c2c 0%,
        #0a2540 45%,
        #00a3b8 100%
    );

    overflow: hidden;
}


/* 12.2 Hero Pequeno */

.hero-small {

    padding: 25px 40px;

    min-height: unset;
    height: auto;
}


/* 12.3 Hero Todos */

.hero,
.hero-todos {

    margin-top: 100px;
}


.hero-todos {

    position: relative;

    min-height: 100px;

    display: flex;
    align-items: center;

    background: linear-gradient(
        135deg,
        #081c2c 0%,
        #0a2540 45%,
        #00a3b8 100%
    );

    overflow: hidden;
}


.hero-todos::before {

    content: "";

    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at top right,
        rgba(255,255,255,0.08),
        transparent 40%
    );
}


.hero-todos .hero-content {

    position: relative;
    z-index: 2;

    max-width: 750px;

    padding-left: 100px;

    display: flex;
    flex-direction: column;

    gap: 0;
}


.section-label {

    display: inline-block;

    color: #52cefb;

    letter-spacing: 5px;
    text-transform: uppercase;

    font-size: 10px;
    font-weight: 600;
}


.hero-todos h1 {

    margin: 0;

    font-size: 41px;
    line-height: 1.1;

    color: white;
}


.hero-todos p {

    margin: 0;

    max-width: 600px;

    font-size: 14px;
    line-height: 1.4;

    color: rgba(255,255,255,0.85);
}


/*=====================================
    13. COOKIES
=======================================*/

/* =========================================================
   13.1 FONTES
========================================================= */

#cookie-banner,
#cookie-banner *,
#cookie-toast,
#cookie-toast *,
#cookie-manage-btn {
    font-family: 'Museo500', Arial, sans-serif !important;
}

/* =========================================================
   13.2 OVERLAY
========================================================= */

#cookie-overlay {
    position: fixed;
    inset: 0;

    background: rgba(10, 37, 64, 0.45);
    backdrop-filter: blur(3px);

    z-index: 99990;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.4s ease;
}

#cookie-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* =========================================================
   13.3 BANNER PRINCIPAL
========================================================= */

#cookie-banner {
    position: fixed;

    bottom: 30px;
    left: 50%;

    transform: translateX(-50%) translateY(120%);

    width: min(680px, calc(100vw - 40px));

    z-index: 99991;

    background: #ffffff;

    border-radius: 20px;

    box-shadow:
        0 24px 60px rgba(10, 37, 64, 0.18),
        0 0 0 1px rgba(26, 122, 191, 0.12);

    overflow: hidden;

    opacity: 0;

    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.4s ease;
}

#cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

#cookie-banner::before {
    content: "";

    display: block;

    height: 4px;

    background: linear-gradient(
        90deg,
        #0a2540,
        #1a7abf,
        #63b3ed
    );
}

/* =========================================================
   13.4 VISTA SIMPLES
========================================================= */

.cb-simple {
    display: flex;
    flex-direction: column;
    gap: 16px;

    padding: 28px 30px 24px;
}

.cb-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cb-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #0a2540,
        #1a7abf
    );

    font-size: 20px;
}

.cb-title {
    margin-bottom: 4px;

    font-size: 1rem;
    font-weight: 700;

    color: #1a3a4a;
}

.cb-text {
    font-size: 0.82rem;
    line-height: 1.6;

    color: #4a7a9b;
}

.cb-text a {
    color: #1a7abf;

    font-weight: 600;

    text-decoration: none;
}

.cb-text a:hover {
    text-decoration: underline;
}

/* =========================================================
   13.5 BOTÕES DA VISTA SIMPLES
========================================================= */

.cb-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cb-btn-accept {
    flex: 1;
    min-width: 140px;

    padding: 11px 20px;

    border: none;
    border-radius: 30px;

    background: linear-gradient(
        135deg,
        #0a2540,
        #1a7abf
    );

    color: white;

    font-size: 0.85rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cb-btn-accept:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(26, 122, 191, 0.3);
}

.cb-btn-reject {
    flex: 1;
    min-width: 120px;

    padding: 11px 20px;

    border: 1px solid rgba(26, 122, 191, 0.25);
    border-radius: 30px;

    background: transparent;

    color: #4a7a9b;

    font-size: 0.85rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.cb-btn-reject:hover {
    background: #f0f7ff;
    color: #1a3a4a;
}

.cb-btn-custom {
    padding: 11px 20px;

    border: none;
    border-radius: 30px;

    background: transparent;

    color: #1a7abf;

    font-size: 0.82rem;
    font-weight: 600;

    text-decoration: underline;

    cursor: pointer;

    transition: color 0.2s ease;
}

.cb-btn-custom:hover {
    color: #0a2540;
}

/* =========================================================
   13.6 VISTA PERSONALIZADA
========================================================= */

.cb-custom {
    display: none;
    flex-direction: column;
    gap: 18px;

    padding: 26px 30px 24px;
}

.cb-custom.active {
    display: flex;
}

.cb-custom-title {
    margin-bottom: 6px;

    font-size: 1.05rem;
    font-weight: 700;

    color: #1a3a4a;
}

.cb-custom-sub {
    font-size: 0.82rem;
    line-height: 1.6;

    color: #4a7a9b;
}

/* =========================================================
   13.7 LISTA DE COOKIES
========================================================= */

.cb-types {
    display: flex;
    flex-direction: column;
    gap: 14px;

    margin-top: 4px;
}

.cb-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 16px 18px;

    border: 1px solid rgba(26, 122, 191, 0.12);
    border-radius: 16px;

    background: #f8fbff;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cb-type:hover {
    transform: translateY(-1px);

    border-color: rgba(26, 122, 191, 0.28);

    box-shadow:
        0 8px 20px rgba(10, 37, 64, 0.06);
}

.cb-type-info {
    flex: 1;
    min-width: 0;
}

.cb-type-name {
    margin-bottom: 4px;

    font-size: 0.9rem;
    font-weight: 700;

    color: #1a3a4a;
}

.cb-type-desc {
    font-size: 0.78rem;
    line-height: 1.5;

    color: #5d7f98;
}

/* =========================================================
   13.8 TAG OBRIGATÓRIO
========================================================= */

.cb-required-tag {
    padding: 5px 10px;

    border-radius: 999px;

    background: rgba(10, 37, 64, 0.08);

    color: #0a2540;

    font-size: 0.68rem;
    font-weight: 700;

    white-space: nowrap;
}

/* =========================================================
   13.9 TOGGLE SWITCH
========================================================= */

.cb-toggle {
    position: relative;

    width: 52px;
    height: 28px;

    flex-shrink: 0;
}

.cb-toggle input {
    width: 0;
    height: 0;

    opacity: 0;
}

.cb-toggle-slider {
    position: absolute;
    inset: 0;

    border-radius: 999px;

    background: #d6e2ee;

    cursor: pointer;

    transition: background 0.25s ease;
}

.cb-toggle-slider::before {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: white;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.12);

    transition: transform 0.25s ease;
}

.cb-toggle input:checked + .cb-toggle-slider {
    background: linear-gradient(
        135deg,
        #0a2540,
        #1a7abf
    );
}

.cb-toggle input:checked + .cb-toggle-slider::before {
    transform: translateX(24px);
}

.cb-toggle input:disabled + .cb-toggle-slider {
    opacity: 0.7;
    cursor: not-allowed;
}

/* =========================================================
   13.10 BOTÕES PERSONALIZADOS
========================================================= */

.cb-custom-btns {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 6px;
}

.cb-btn-save {
    padding: 11px 20px;

    border: none;
    border-radius: 30px;

    background: linear-gradient(
        135deg,
        #0a2540,
        #1a7abf
    );

    color: white;

    font-size: 0.84rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cb-btn-save:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(26,122,191,0.28);
}

.cb-btn-back {
    padding: 11px 18px;

    border: 1px solid rgba(26,122,191,0.18);
    border-radius: 30px;

    background: white;

    color: #4a7a9b;

    font-size: 0.82rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.cb-btn-back:hover {
    background: #f0f7ff;
    color: #1a3a4a;
}

/* =========================================================
   13.11 TOAST
========================================================= */

#cookie-toast {
    position: fixed;

    right: 30px;
    bottom: 30px;

    z-index: 99992;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 13px 20px;

    border-radius: 12px;

    background: #0a2540;
    color: white;

    font-size: 0.83rem;

    box-shadow:
        0 8px 24px rgba(10,37,64,0.25);

    transform: translateY(80px);

    opacity: 0;
    pointer-events: none;

    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
}

#cookie-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* =========================================================
   13.12 BOTÃO "GERIR COOKIES"
========================================================= */

#cookie-manage-btn {
    position: static !important;

    display: none;

    margin-top: 15px;
    padding: 10px 10px;
    max-width: 130px;

    border: none;
    border-radius: 30px;

    background:#ffffff;

    color: #1B3F94;

    font-size: 0.85rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#cookie-manage-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(10, 37, 64, 0.684);
}

#cookie-manage-btn.visible {
    display: inline-flex;
}


/*==========================================
    14. RESPONSIVO GLOBAL
============================================*/

    /* 14.1 BODY */

    @media (max-width: 1024px) {
        body { font-size: 17px; }
    }

    @media (max-width: 768px) {
        body { font-size: 16px; }
    }

    @media (max-width: 480px) {
        body { font-size: 15px; }
    }


    /* 14.2 CURSOR - DESATIVAR NO MOBILE */
    @media (max-width: 900px) {

        .cursor,
        .cursor-ring,
        .trail,
        .particle {
            display: none !important;
        }

        /* restaurar cursor normal */
        * {
            cursor: auto !important;
        }
    }

    /* 14.3 RESPONSIVO DO HEADER*/

    @media (max-width: 900px) {

        header {
            padding: 16px 20px;
        }

        /* esconder menu desktop */
        .center {
            display: none;
        }

        /* esconder mega-menu */
        .mega-menu {
            display: none !important;
        }

        /* mostrar hambúrguer */
        .hamburger {
            display: flex !important;
            position: absolute;
            right: 20px;
            top: 18px;
            z-index: 2002;
        }

        /* ajustar logo */
        .logo img {
            width: 32px;
            height: 32px;
        }

        .logo {
            font-size: 22px;
        }

        /* título mais pequeno */
        .titulo {
            font-size: 26px;
        }
    }

    @media (max-width: 480px) {

        header {
            padding: 14px 16px;
        }

        .logo img {
            width: 28px;
            height: 28px;
        }

        .logo {
            font-size: 20px;
        }

        .titulo {
            font-size: 22px;
        }
    }

   /* ============================================================
   14.4 RESPONSIVO DO HERO
============================================================ */

@media (max-width: 900px) {

    .hero,
    .hero-todos {
        margin-top: 80px;
    }

    .hero-todos {

        min-height: 100px;

        padding: 25px 20px;
    }

    .hero-todos .hero-content {

        padding-left: 0;

        text-align: center;
        align-items: center;
    }

    .hero-todos h1 {
        font-size: 34px;
    }

    .hero-todos p {

        font-size: 14px;

        max-width: 90%;
    }
}


@media (max-width: 600px) {

    .hero-todos {

        min-height: 90px;

        padding: 20px 15px;
    }

    .hero-todos h1 {
        font-size: 28px;
    }

    .hero-todos p {
        font-size: 13px;
    }
}


@media (max-width: 420px) {

    .hero-todos {

        min-height: 80px;

        padding: 18px 12px;
    }

    .hero-todos h1 {
        font-size: 24px;
    }

    .hero-todos p {
        font-size: 12px;
    }
}




    @media (max-width: 1200px) {
        header {
            padding: 16px 30px;
        }

        .center ul {
            gap: 40px; /* antes era 70px */
        }

        .titulo {
            font-size: 36px;
        }
    }

    @media (max-width: 1050px) {
        header {
            padding: 14px 24px;
        }

        .center ul {
            gap: 28px;
        }

        .titulo {
            font-size: 30px;
        }

        .login-btn {
            padding: 6px 12px;
            font-size: 16px;
        }

        .hamburger {
            display: flex !important;
            position: absolute;
            right: 20px;
            top: 18px;
            z-index: 3000;
            z-index: 999999 !important;
        }

        .center {
            display: none !important;
        }
    }

    @media (max-width: 769px) {
        .hamburger {
            display: flex !important;
        }
    }


    @media (max-width: 1050px) {
        .lang-dropdown {
            right: 70px !important; /* afasta do hambúrguer */
            top: 18px;
        }
    }




    /* 14.5 RESPONSIVO DO FOOTER */

    @media (max-width: 1024px) {

        .footer {
            padding: 35px;
        }

        .footer-right {
            margin-right: 0;
        }
    }

    @media (max-width: 900px) {

        .footer-container {
            flex-direction: column;
            gap: 30px;
            text-align: center;
        }

        .footer-left,
        .footer-center,
        .footer-right {
            margin: 0;
            align-items: center;
        }

        .footer-logo img {
            width: 36px;
        }

        .footer-logo span {
            font-size: 18px;
        }

        .footer-copy {
            font-size: 13px;
        }

        .footer-right {
            justify-content: center;
        }

        .lang-btn {
            font-size: 14px;
            padding: 7px 14px;
        }
    }

    @media (max-width: 600px) {

        .footer {
            padding: 30px 20px;
        }

        .footer-logo img {
            width: 32px;
        }

        .footer-logo span {
            font-size: 17px;
        }

        .social-icon {
            font-size: 22px;
        }

        .footer-legal-links {
            justify-content: center;
        }
    }

    @media (max-width: 420px) {

        .footer {
            padding: 25px 15px;
        }

        .footer-logo img {
            width: 28px;
        }

        .footer-logo span {
            font-size: 16px;
        }

        .footer-copy {
            font-size: 12px;
        }

        .social-icon {
            font-size: 20px;
        }

        .lang-btn {
            font-size: 13px;
            padding: 6px 12px;
        }
    }


    /* 14.6 RESPONSIVO DA INTRO */

    @media (max-width: 768px) {

        #intro-glitch {
            font-size: clamp(36px, 12vw, 70px);
            letter-spacing: 6px;
        }

        #intro-tagline {
            font-size: clamp(9px, 2vw, 12px);
            letter-spacing: 4px;
        }
    }

    @media (max-width: 480px) {

        #intro-glitch {
            font-size: clamp(28px, 14vw, 55px);
            letter-spacing: 4px;
        }

        #intro-tagline {
            font-size: clamp(8px, 2.5vw, 11px);
            letter-spacing: 3px;
        }
    }

    /* 14.7 RESPONSIVO DOS COOKIES */

    @media (max-width: 768px) {

        #cookie-banner {
            width: calc(100vw - 30px);
            bottom: 20px;
        }

        .cb-simple,
        .cb-custom {
            padding: 22px 22px 20px;
        }

        .cb-top {
            gap: 12px;
        }

        .cb-icon {
            width: 40px;
            height: 40px;
            font-size: 18px;
        }

        .cb-title {
            font-size: 0.95rem;
        }

        .cb-text {
            font-size: 0.78rem;
        }

        .cb-btns {
            gap: 8px;
        }

        .cb-btn-accept,
        .cb-btn-reject {
            min-width: 120px;
            padding: 10px 16px;
            font-size: 0.8rem;
        }

        #cookie-toast {
            right: 20px;
            bottom: 20px;
            padding: 12px 16px;
        }
    }

    @media (max-width: 480px) {

        #cookie-banner {
            width: calc(100vw - 20px);
            bottom: 15px;
        }

        .cb-simple,
        .cb-custom {
            padding: 18px 18px 16px;
        }

        .cb-title {
            font-size: 0.9rem;
        }

        .cb-text {
            font-size: 0.75rem;
        }

        .cb-btn-accept,
        .cb-btn-reject {
            min-width: 100px;
            padding: 9px 14px;
            font-size: 0.78rem;
        }

        #cookie-toast {
            right: 15px;
            bottom: 15px;
            padding: 10px 14px;
        }

        #cookie-manage-btn {
            bottom: 15px;
            left: 15px;
            padding: 8px 14px;
            font-size: 0.78rem;
        }
    }


    /* 14.8 RESPONSIVO */
    @media (max-width: 600px) {
        .back-to-top {
            width: 42px;
            height: 42px;
            right: 20px;
            bottom: 20px;
            font-size: 1.1em;
        }
    }


/* ============================================================
    15. RESPONSIVO GLOBAL
============================================================ */

    /* 15.1 BREAKPOINT TABLET (≤ 1024px) */
    @media (max-width: 1024px) {

        /* evitar scroll horizontal global */
        html, body {
            overflow-x: hidden;
        }

        /* ajustar espaçamentos gerais */
        section, .section {
            padding-left: 30px;
            padding-right: 30px;
        }

        /* imagens fluidas */
        img {
            max-width: 100%;
            height: auto;
        }

        /* títulos ligeiramente menores */
        h1 { font-size: 2.4rem; }
        h2 { font-size: 1.9rem; }
        h3 { font-size: 1.5rem; }
    }



    /* 15.2 BREAKPOINT MOBILE (≤ 768px) */
    @media (max-width: 768px) {

        /* remover qualquer overflow horizontal */
        html, body {
            overflow-x: hidden;
        }

        /* padding global mais compacto */
        section, .section {
            padding-left: 20px;
            padding-right: 20px;
        }

        /* títulos mais fluidos */
        h1 { font-size: 2rem; }
        h2 { font-size: 1.6rem; }
        h3 { font-size: 1.3rem; }

        /* parágrafos mais confortáveis */
        p {
            line-height: 1.5;
        }

        /* botões globais mais pequenos */
        button, .btn {
            padding: 10px 18px;
            font-size: 0.9rem;
        }

        /* tabelas responsivas */
        table {
            display: block;
            overflow-x: auto;
            width: 100%;
        }
    }


    /* 15.3 BREAKPOINT MOBILE PEQUENO (≤ 480px) */
    @media (max-width: 480px) {

        /* garantir que nada sai da viewport */
        html, body {
            overflow-x: hidden;
        }

        /* padding ainda mais compacto */
        section, .section {
            padding-left: 15px;
            padding-right: 15px;
        }

        /* títulos */
        h1 { font-size: 1.7rem; }
        h2 { font-size: 1.4rem; }
        h3 { font-size: 1.2rem; }

        /* texto */
        p {
            font-size: 0.95rem;
        }

        /* botões */
        button, .btn {
            padding: 9px 16px;
            font-size: 0.85rem;
        }

        /* listas */
        ul, ol {
            padding-left: 18px;
        }

        /* inputs */
        input, textarea, select {
            font-size: 1rem;
        }
    }


    /* COOKIES */

    @media (max-width: 640px) {

        #cookie-banner {
            bottom: 15px;
            width: calc(100vw - 20px);
        }

        .cb-simple,
        .cb-custom {
            padding: 22px 20px;
        }

        .cb-top,
        .cb-type,
        .cb-btns,
        .cb-custom-btns {
            flex-direction: column;
        }

        .cb-type {
            align-items: flex-start;
        }

        .cb-btn-save,
        .cb-btn-back,
        .cb-btn-accept,
        .cb-btn-reject {
            width: 100%;
        }

        #cookie-toast {
            right: 10px;
            left: 10px;
            bottom: 15px;
        }
    }