/* ==================================================
   TOPO / HEADER
================================================== */

.topo {
    position: relative;

    width: 100%;
    min-height: 64px;

    padding: 0;

    display: flex;
    align-items: center;

    background: #092444;

    overflow: visible;

    font-family:
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    
    z-index: 100;
}


/* desenho da cidade no fundo */

.topo::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image: url("../img/nav-rio.png");
    background-repeat: repeat-x;
    background-size: 360px auto;
    background-position: center;

    opacity: 0.16;

    pointer-events: none;
}


/* ==================================================
   CONTAINER CENTRAL DO HEADER
================================================== */

.topo-conteudo {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1500px;
    min-height: 64px;

    margin: 0 auto;
    padding: 0 28px;

    display: flex;
    align-items: center;

    gap: 26px;
}


/* ==================================================
   LOGO
================================================== */

.logo {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 10px;

    margin: 0;

    color: #ffffff;

    text-decoration: none;
}


.logo:hover {
    text-decoration: none;
}


.logo-sigla {
    color: #ffffff;

    font-size: 27px;
    font-weight: 800;

    line-height: 1;
}


/* texto pequeno ao lado do GPR */

.logo-descricao {
    padding-left: 10px;

    border-left: 1px solid rgba(255, 255, 255, 0.35);

    color: rgba(255, 255, 255, 0.92);

    font-size: 7px;
    font-weight: 700;

    line-height: 1.2;

    text-transform: uppercase;
}


/* ==================================================
   MENU PRINCIPAL
================================================== */

.menu-principal {
    position: relative;
    z-index: 2;

    flex: 1;
    min-width: 0;

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

    gap: clamp(14px, 1.2vw, 24px);

    white-space: nowrap;
}


/*
   IMPORTANTE:
   link normal e botão CONTEÚDO recebem
   exatamente a mesma estrutura
*/

.menu-principal > a,
.menu-dropdown-botao {
    height: 64px;

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

    margin: 0;
    padding: 0 2px;

    border: 0;
    border-bottom: 2px solid transparent;

    background: transparent;

    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 0;

    text-decoration: none;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}


/* hover da navegação */

.menu-principal > a:hover,
.menu-dropdown-botao:hover {
    color: #ffffff;

    border-bottom-color: #50bdeb;

    text-decoration: none;
}


/* foco teclado */

.menu-principal > a:focus-visible,
.menu-dropdown-botao:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: -4px;
}


/* ==================================================
   MENU CONTEÚDO
================================================== */

.menu-dropdown {
    position: relative;

    height: 64px;

    display: flex;
    align-items: center;
}


/* botão Conteúdo */

.menu-dropdown-botao {
    gap: 5px;
}


/* seta */

.menu-dropdown-seta {
    width: 13px;
    height: 13px;

    flex-shrink: 0;

    fill: none;
    stroke: currentColor;

    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 0.2s ease;
}


/* gira levemente quando abrir pelo hover */

.menu-dropdown:hover .menu-dropdown-seta,
.menu-dropdown:focus-within .menu-dropdown-seta {
    transform: rotate(180deg);
}


/* ==================================================
   DROPDOWN
================================================== */

.menu-dropdown-conteudo {
    display: none;

    position: absolute;

    top: calc(100% - 2px);
    left: 50%;

    transform: translateX(-50%);

    z-index: 1000;

    min-width: 200px;

    padding: 7px;

    background: #ffffff;

    border: 1px solid #dfe7ee;
    border-radius: 9px;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.16);
}


/* abre por mouse e por teclado */

.menu-dropdown:hover .menu-dropdown-conteudo,
.menu-dropdown:focus-within .menu-dropdown-conteudo {
    display: block;
}


/* links internos */

.menu-dropdown-conteudo a {
    display: block;

    padding: 10px 13px;

    border-radius: 6px;

    color: #092444;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.3;

    text-decoration: none;

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


.menu-dropdown-conteudo a:hover,
.menu-dropdown-conteudo a:focus-visible {
    background: #edf6fc;

    color: #0067ad;

    text-decoration: none;
}


/* ==================================================
   ÁREA DIREITA
================================================== */

.area-login {
    position: relative;
    z-index: 2;

    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 8px;

    margin: 0;

    white-space: nowrap;
}


/* ==================================================
   INICIAIS DO USUÁRIO
================================================== */

.area-login .usuario-iniciais {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

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

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;

    color: #092444;

    font-size: 11px;
    font-weight: 800;

    line-height: 1;
}


/* ==================================================
   BOTÕES DE ÍCONE DO HEADER
================================================== */

.btn-topo-icone {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

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

    box-sizing: border-box;

    margin: 0;
    padding: 0;

    background: #ffffff;

    border: 0;
    border-radius: 8px;

    color: #092444;

    text-decoration: none;

    cursor: pointer;

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


.btn-topo-icone img {
    display: block;

    width: 18px;
    height: 18px;

    object-fit: contain;
}


.btn-topo-icone:hover {
    background: #eaf4fb;

    color: #0067ad;

    transform: translateY(-1px);

    text-decoration: none;
}


/* ==================================================
   ACESSIBILIDADE
================================================== */

.acessibilidade-container {
    position: relative;

    display: flex;
    align-items: center;
}


/* diferente dos outros botões:
   acessibilidade fica circular */

.btn-acessibilidade {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border-radius: 50%;

    background: #ffffff;

    color: #0a4d7d;
}


.btn-acessibilidade:hover {
    background: #eaf5fd;

    color: #0067ad;
}


.icone-acessibilidade {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==================================================
   PAINEL DE ACESSIBILIDADE
================================================== */

.painel-acessibilidade {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    z-index: 2000;

    min-width: 225px;

    padding: 15px;

    background: #ffffff;

    border: 1px solid #dce5ec;
    border-radius: 10px;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.16);

    color: #11395d;
}


.painel-acessibilidade strong {
    display: block;

    margin-bottom: 12px;

    font-size: 13px;
}


.acessibilidade-acoes {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 7px;
}


.acessibilidade-acoes button {
    padding: 8px;

    background: #eef6fc;

    border: 1px solid #d4e5f1;
    border-radius: 6px;

    color: #094a7c;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

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


.acessibilidade-acoes button:hover {
    background: #0067ad;

    color: #ffffff;
}


/* ==================================================
   BOTÃO ENTRAR
================================================== */

.btn-login {
    min-height: 38px;

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

    padding: 0 19px;

    background: #ffffff;

    border: 0;
    border-radius: 8px;

    color: #092444 !important;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

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


.btn-login:hover {
    background: #eaf4fb;

    color: #092444 !important;

    transform: translateY(-1px);

    text-decoration: none;
}


/* ==================================================
   BOTÃO MENU MOBILE
================================================== */

.botao-menu-mobile {
    display: none;

    width: 38px;
    height: 38px;

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

    padding: 0;

    border: 0;
    border-radius: 7px;

    background: #ffffff;

    cursor: pointer;
}


.botao-menu-mobile img {
    width: 20px;
    height: 20px;
}


/* ==================================================
   MENSAGENS / FLASH
================================================== */

.mensagens {
    max-width: 1100px;

    margin: 20px auto;

    padding: 0 20px;
}


.mensagem {
    padding: 12px 16px;

    border-radius: 8px;

    background: #fff3cd;

    color: #856404;
}

/* ==================================================
   BARRA SUPERIOR DE UTILIDADES
================================================== */

.barra-utilidades {
    position: relative;
    z-index: 1100;

    width: 100%;

    background: #061d37;

    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}


.barra-utilidades-conteudo {
    width: 100%;
    max-width: 1500px;

    min-height: 38px;

    margin: 0 auto;
    padding: 0 28px;

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

    gap: 20px;
}


.barra-utilidades-esquerda,
.barra-utilidades-direita {
    display: flex;
    align-items: center;

    gap: 8px;
}


/* ==================================================
   BOTÕES DE UTILIDADE
================================================== */

.utilidade-botao {
    min-height: 30px;

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

    gap: 7px;

    padding: 4px 10px;

    background: transparent;

    border: 1px solid transparent;
    border-radius: 6px;

    color: rgba(255, 255, 255, 0.92);

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

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


.utilidade-botao:hover {
    background: rgba(255, 255, 255, 0.08);

    border-color: rgba(255, 255, 255, 0.13);
}


.utilidade-botao img {
    width: 19px;
    height: 19px;

    object-fit: contain;
}


.utilidade-som {
    font-size: 14px;
}


/* ==================================================
   USUÁRIO NA BARRA
================================================== */

.barra-utilidades .usuario-iniciais {
    width: 30px;
    height: 30px;

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

    background: #ffffff;

    border-radius: 50%;

    color: #092444;

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


.barra-utilidades .btn-topo-icone {
    width: 30px;
    height: 30px;

    flex-basis: 30px;

    border-radius: 6px;
}


.barra-utilidades .btn-topo-icone img {
    width: 15px;
    height: 15px;
}


.utilidade-login {
    min-height: 30px;

    padding: 0 13px;

    font-size: 11px;
}

/* =========================================================
   RODAPÉ
========================================================= */

.rodape-site {
    width: 100%;
    background: #082b57;
    padding: 30px 24px 22px;
    color: #ffffff;
}

.rodape-conteudo {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


/* LOGO */

.rodape-logo {
    display: block;

    max-width: 175px;
    width: auto;
    max-height: 58px;

    object-fit: contain;

    margin-bottom: 16px;
}


/* DIVISOR */

.rodape-divisor {
    width: 54px;
    height: 2px;

    background: rgba(
        255,
        255,
        255,
        0.35
    );

    border-radius: 999px;

    margin-bottom: 16px;
}


/* INSTITUCIONAL */

.rodape-institucional {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 5px;

    font-size: 13px;
    line-height: 1.55;

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

.rodape-institucional strong {
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}


/* IDENTIFICAÇÃO DO PORTAL */

.rodape-portal {
    margin-top: 18px;

    padding-top: 14px;

    width: 100%;

    border-top: 1px solid rgba(
        255,
        255,
        255,
        0.10
    );

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.8px;

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


/* RESPONSIVO */

@media (max-width: 640px) {

    .rodape-site {
        padding: 26px 18px 20px;
    }

    .rodape-logo {
        max-width: 155px;
        max-height: 52px;
    }

    .rodape-institucional {
        font-size: 12px;
    }

    .rodape-institucional strong {
        font-size: 13px;
    }

}


/* ==================================================
   RESPONSIVO
================================================== */

@media (max-width: 700px) {

    .barra-utilidades-conteudo {
        padding: 0 14px;
    }

    .utilidade-botao span:not(.utilidade-som) {
        display: none;
    }

}


/* ==================================================
   FOOTER
================================================== */

footer {
    margin-top: 40px;
    padding: 24px;

    background: #092444;

    color: #ffffff;

    text-align: center;
}


/* ==================================================
   TELAS UM POUCO MENORES
================================================== */

@media (max-width: 1450px) {

    .topo-conteudo {
        max-width: 1350px;

        padding: 0 22px;

        gap: 20px;
    }


    .menu-principal {
        gap: clamp(11px, 1vw, 18px);
    }


    .menu-principal > a,
    .menu-dropdown-botao {
        font-size: 12px;
    }

}


/* ==================================================
   TABLET / MENU MOBILE
================================================== */

@media (max-width: 1050px) {

    .topo-conteudo {
        min-height: 64px;
    }


    .logo-descricao {
        display: none;
    }


    .botao-menu-mobile {
        display: inline-flex;

        margin-left: auto;
    }


    .menu-principal {
        display: none;
    }

}