/* =========================================================
   HEADER
========================================================= */

.site-header {

    position: relative;

    width: 100%;

    z-index: 9999;

    background: transparent;

}


/* =========================================================
   HEADER CONTAINER — DESKTOP
========================================================= */

.header-container {

    width: min(1393px, 92%);

    min-height: 72px;

    margin: 18px auto 0;

    display: flex;

    align-items: center;

    position: relative;

    background: #ffffff;

    border: 1px solid #e3e3e3;

    border-radius: 14px;

    padding: 0 20px;

    box-sizing: border-box;

    box-shadow:
        0 6px 24px rgba(0, 0, 0, .07);

}


/* =========================================================
   BRAND
========================================================= */

.brand {

    display: flex;

    align-items: center;

    flex-shrink: 0;

    padding-right: 18px;

    text-decoration: none;

    color: #111111;

}


/* =========================================================
   BRAND TEXT
========================================================= */

.brand-text {

    display: flex;

    flex-direction: column;

    justify-content: center;

}


/* =========================================================
   NOME
========================================================= */

.brand-country {

    font-family: "Poppins", sans-serif;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.2;

    color: #b00000 !important;

    white-space: nowrap;

}


/* =========================================================
   CARGO
========================================================= */

.brand-institution {

    margin-top: 4px;

    font-family: "Poppins", sans-serif;

    font-size: 10px;

    font-weight: 400;

    line-height: 1.3;

    color: #444444 !important;

    white-space: nowrap;

}


/* =========================================================
   MENU PRINCIPAL
========================================================= */

.main-navigation {

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 3px;

    padding: 0 15px;

    margin: 0 10px;

    border-left: 1px solid #eeeeee;

    border-right: 1px solid #eeeeee;

}


/* =========================================================
   LINKS DO MENU
========================================================= */

.nav-link {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    height: 40px;

    padding: 0 15px;

    border-radius: 22px;

    text-decoration: none;

    white-space: nowrap;

    font-family: "Poppins", sans-serif;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: .15px;

    color: #111111 !important;

    background: transparent;

    transition:
        background-color .25s ease,
        color .25s ease,
        box-shadow .25s ease,
        transform .2s ease;

}


/* =========================================================
   HOVER
========================================================= */

.nav-link:hover {

    background: rgba(176, 0, 0, .07);

    color: #b00000 !important;

}


/* =========================================================
   ACTIVE
========================================================= */

.nav-link.active {

    background: #b00000;

    color: #ffffff !important;

    padding-left: 19px;

    padding-right: 19px;

    box-shadow:
        0 4px 12px rgba(176, 0, 0, .18);

}


.nav-link.active:hover {

    background: #b00000;

    color: #ffffff !important;

}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;

    padding-left: 14px;

}


/* =========================================================
   PESQUISA
========================================================= */

.search-button {

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: none;

    outline: none;

    background: transparent;

    cursor: pointer;

    text-decoration: none;

}


.search-button svg {

    width: 18px;

    height: 18px;

    fill: none;

    stroke: #111111;

    stroke-width: 1.7;

    stroke-linecap: round;

    transition:
        stroke .2s ease,
        transform .2s ease;

}


.search-button:hover svg {

    stroke: #b00000;

    transform: scale(1.05);

}


/* =========================================================
   SEARCH OVERLAY
========================================================= */

.site-search {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    min-height: 100vh;

    padding-top: 130px;

    z-index: 99999;

}


/* =========================================================
   DIVISOR
========================================================= */

.header-divider {

    width: 1px;

    height: 22px;

    background: #dddddd;

    margin: 0 2px;

}


/* =========================================================
   IDIOMAS
========================================================= */

.language {

    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 24px;

    height: 30px;

    padding: 0 4px;

    text-decoration: none;

    font-family: "Poppins", sans-serif;

    font-size: 10px;

    font-weight: 600;

    color: #111111 !important;

    opacity: .75;

    transition:
        color .2s ease,
        opacity .2s ease;

}


.language:hover {

    color: #b00000 !important;

    opacity: 1;

}


.language.active {

    color: #b00000 !important;

    opacity: 1;

    font-weight: 700;

}


/* =========================================================
   MENU TOGGLE
   ESCONDIDO NO DESKTOP
========================================================= */

.mobile-menu-toggle {

    display: none;

    width: 42px;

    height: 42px;

    padding: 0;

    margin: 0;

    border: none;

    background: transparent;

    cursor: pointer;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;

    flex-shrink: 0;

}


.mobile-menu-toggle span {

    display: block;

    width: 27px;

    height: 2px;

    background: #b00000;

    border-radius: 2px;

    transition:
        transform .25s ease,
        opacity .2s ease,
        background .2s ease;

}


.mobile-menu-toggle:hover span {

    background: #8f0000;

}


/* =========================================================
   TOGGLE ABERTO — X
========================================================= */

.mobile-menu-toggle.active span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);

}


.mobile-menu-toggle.active span:nth-child(2) {

    opacity: 0;

}


.mobile-menu-toggle.active span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1250px) {

    .header-container {

        width: 94%;

        padding: 0 14px;

    }


    .brand {

        padding-right: 10px;

    }


    .brand-country {

        font-size: 12px;

    }


    .brand-institution {

        font-size: 9px;

    }


    .main-navigation {

        gap: 0;

        padding: 0 8px;

        margin: 0 6px;

    }


    .nav-link {

        padding: 0 9px;

        font-size: 8px;

    }


    .nav-link.active {

        padding-left: 12px;

        padding-right: 12px;

    }


    .header-actions {

        gap: 5px;

        padding-left: 7px;

    }

}


/* =========================================================
   TABLET PEQUENO
========================================================= */

@media (max-width: 1050px) {

    .brand-text {

        display: none;

    }


    .main-navigation {

        border-left: none;

        border-right: none;

        margin-left: 10px;

    }


    .nav-link {

        padding: 0 8px;

        font-size: 8px;

    }


    .nav-link.active {

        padding-left: 10px;

        padding-right: 10px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {


    /* =====================================================
       HEADER
    ===================================================== */

    .site-header {

        width: 100%;

        margin: 0;

        padding: 0;

    }


    /* =====================================================
       NAVBAR — OCUPA TODA A LARGURA
    ===================================================== */

    .header-container {

        width: 100%;

        max-width: 100%;

        min-height: 72px;

        margin: 0;

        padding: 0 18px;

        box-sizing: border-box;

        background: #ffffff;

        border: none;

        border-bottom: 1px solid #e4e4e4;

        border-radius: 0;

        box-shadow:
            0 4px 18px rgba(0, 0, 0, .08);

    }


    /* =====================================================
       BRAND
    ===================================================== */

    .brand {

        flex: 1;

        min-width: 0;

        padding: 0;

        margin: 0;

    }


    .brand-text {

        display: flex;

        flex-direction: column;

        justify-content: center;

        min-width: 0;

    }


    .brand-country {

        font-size: 14px;

        line-height: 1.2;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

    }


    .brand-institution {

        margin-top: 4px;

        font-size: 9px;

        line-height: 1.3;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

    }


    /* =====================================================
       MENU PRINCIPAL — PAINEL LATERAL
    ===================================================== */

    .main-navigation {

        position: fixed;

        top: 0;

        right: 0;

        left: auto;

        width: 320px;

        max-width: 82vw;

        height: 100vh;

        box-sizing: border-box;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 4px;

        margin: 0;

        padding: 100px 20px 30px;

        background: #ffffff;

        border: none;

        border-left: 1px solid #e4e4e4;

        border-radius: 0;

        box-shadow:
            -8px 0 30px rgba(0, 0, 0, .12);

        overflow-y: auto;

        z-index: 10000;

        opacity: 0;

        visibility: hidden;

        transform: translateX(100%);

        pointer-events: none;

        transition:
            transform .3s ease,
            opacity .25s ease,
            visibility .3s ease;

    }


    /* =====================================================
       MENU ABERTO
    ===================================================== */

    .main-navigation.mobile-open {

        opacity: 1;

        visibility: visible;

        transform: translateX(0);

        pointer-events: auto;

    }


    /* =====================================================
       LINKS MOBILE
    ===================================================== */

    .main-navigation .nav-link {

        width: 100%;

        min-height: 50px;

        height: 50px;

        display: flex;

        align-items: center;

        justify-content: flex-start;

        padding: 0 18px;

        box-sizing: border-box;

        border-radius: 6px;

        font-family: "Poppins", sans-serif;

        font-size: 11px;

        font-weight: 600;

        letter-spacing: .2px;

        color: #111111 !important;

        background: transparent;

        text-decoration: none;

        transition:
            background .2s ease,
            color .2s ease,
            padding-left .2s ease;

    }


    /* =====================================================
       HOVER
    ===================================================== */

    .main-navigation .nav-link:hover {

        background: #f7f7f7;

        color: #b00000 !important;

        padding-left: 22px;

    }


    /* =====================================================
       ACTIVE
    ===================================================== */

    .main-navigation .nav-link.active {

        background: #b00000;

        color: #ffffff !important;

        padding-left: 18px;

        padding-right: 18px;

        box-shadow:
            0 4px 12px rgba(176, 0, 0, .15);

    }


    .main-navigation .nav-link.active:hover {

        background: #b00000;

        color: #ffffff !important;

    }


    /* =====================================================
       HEADER ACTIONS
    ===================================================== */

    .header-actions {

        display: flex;

        align-items: center;

        gap: 6px;

        padding-left: 8px;

        margin-left: auto;

        flex-shrink: 0;

    }


    /* =====================================================
       MENU TOGGLE
    ===================================================== */

    .mobile-menu-toggle {

        display: flex;

        order: 1;

        width: 42px;

        height: 42px;

        padding: 0;

        margin: 0;

        align-items: center;

        justify-content: center;

        flex-direction: column;

        gap: 5px;

        border: none;

        background: transparent;

        cursor: pointer;

        flex-shrink: 0;

        position: relative;

        z-index: 10002;

    }


    .mobile-menu-toggle span {

        width: 27px;

        height: 2px;

        background: #b00000;

        border-radius: 2px;

    }


    /* =====================================================
       PESQUISA
    ===================================================== */

    .search-button {

        order: 2;

        width: 38px;

        height: 38px;

        display: flex;

        align-items: center;

        justify-content: center;

        padding: 0;

    }


    .search-button svg {

        width: 19px;

        height: 19px;

        stroke: #111111;

        stroke-width: 1.7;

    }


    /* =====================================================
       DIVISOR
    ===================================================== */

    .header-divider {

        display: block;

        width: 1px;

        height: 24px;

        margin: 0 1px;

        background: #dddddd;

    }


    /* =====================================================
       IDIOMAS
    ===================================================== */

    .language {

        display: flex;

        min-width: 24px;

        height: 30px;

        align-items: center;

        justify-content: center;

        padding: 0;

        font-size: 10px;

    }

}


/* =========================================================
   MOBILE PEQUENO
========================================================= */

@media (max-width: 480px) {


    .header-container {

        width: 100%;

        max-width: 100%;

        min-height: 70px;

        margin: 0;

        padding: 0 14px;

        border-radius: 0;

    }


    /* =====================================================
       NOME
    ===================================================== */

    .brand-country {

        font-size: 13px;

    }


    /* =====================================================
       CARGO
    ===================================================== */

    .brand-institution {

        font-size: 8.5px;

    }


    /* =====================================================
       ACTIONS
    ===================================================== */

    .header-actions {

        gap: 4px;

        padding-left: 5px;

    }


    /* =====================================================
       TOGGLE
    ===================================================== */

    .mobile-menu-toggle {

        width: 40px;

        height: 40px;

    }


    .mobile-menu-toggle span {

        width: 25px;

    }


    /* =====================================================
       MENU LATERAL
    ===================================================== */

    .main-navigation {

        width: 300px;

        max-width: 84vw;

        padding:
            92px
            16px
            25px;

    }


    .main-navigation .nav-link {

        min-height: 48px;

        height: 48px;

        padding: 0 16px;

        font-size: 10px;

    }


    .main-navigation .nav-link:hover {

        padding-left: 20px;

    }


    .main-navigation .nav-link.active {

        padding-left: 16px;

    }


    /* =====================================================
       PESQUISA
    ===================================================== */

    .search-button {

        width: 36px;

        height: 36px;

    }


    .search-button svg {

        width: 18px;

        height: 18px;

    }


    /* =====================================================
       DIVISOR
    ===================================================== */

    .header-divider {

        height: 22px;

        margin: 0 1px;

    }


    /* =====================================================
       IDIOMAS
    ===================================================== */

    .language {

        min-width: 22px;

        font-size: 9px;

    }

}


/* =========================================================
   ECRÃS MUITO PEQUENOS
========================================================= */

@media (max-width: 360px) {


    .header-container {

        padding: 0 11px;

    }


    .brand-country {

        font-size: 12px;

    }


    .brand-institution {

        font-size: 8px;

    }


    .header-actions {

        gap: 2px;

        padding-left: 3px;

    }


    .mobile-menu-toggle {

        width: 37px;

        height: 37px;

    }


    .mobile-menu-toggle span {

        width: 23px;

    }


    .search-button {

        width: 34px;

        height: 34px;

    }


    .search-button svg {

        width: 17px;

        height: 17px;

    }


    .language {

        min-width: 20px;

        font-size: 8px;

    }


    .main-navigation {

        width: 280px;

        max-width: 86vw;

        padding:
            88px
            14px
            20px;

    }


    .main-navigation .nav-link {

        min-height: 46px;

        height: 46px;

        font-size: 9.5px;

    }

}


/* =========================================================
   ACESSIBILIDADE — FOCUS
========================================================= */

.mobile-menu-toggle:focus-visible,
.search-button:focus-visible,
.language:focus-visible,
.nav-link:focus-visible {

    outline: 2px solid #b00000;

    outline-offset: 3px;

}