/* ==========================================================
   MENU DAS ÁREAS
   Revista, Anais e Congresso
========================================================== */

.cr-menu-area {
    position: relative;
    z-index: 100;

    width: 100%;

    background: #f1f6fb;
    border-top: 1px solid #cfdeed;
    border-bottom: 1px solid #cfdeed;
}

.cr-menu-area-container {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 0 20px;

    box-sizing: border-box;
}

.cr-menu-area-lista {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    margin: 0;
    padding: 10px 0;

    list-style: none;
}

.cr-menu-area-lista > li {
    position: relative;

    margin: 0;
    padding: 0;
}


/* ==========================================================
   LINKS SIMPLES
   Revista e Anais
========================================================== */

.cr-menu-area-lista > li > a {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 10px 14px;

    color: #173b68;
    background: transparent;

    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;

    border-radius: 7px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;

    box-sizing: border-box;
}

.cr-menu-area-lista > li > a:hover,
.cr-menu-area-lista > li > a:focus-visible {
    color: #0c4b87;
    background: #ffffff;
    outline: none;
}

.cr-menu-area-lista > li.ativo > a {
    color: #ffffff;
    background: #15428a;
}


/* ==========================================================
   MENUS SUSPENSOS
   Congresso
========================================================== */

.cr-menu-area-dropdown {
    position: relative;

    margin: 0;
    padding: 0;
}

.cr-menu-area-dropdown > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 10px 14px;

    color: #173b68;
    background: transparent;

    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;

    border-radius: 7px;

    cursor: pointer;
    list-style: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;

    box-sizing: border-box;
}

.cr-menu-area-dropdown > summary::-webkit-details-marker {
    display: none;
}

.cr-menu-area-dropdown > summary::marker {
    display: none;
    content: "";
}

.cr-menu-area-dropdown > summary::after {
    content: "";

    width: 7px;
    height: 7px;

    margin-top: -4px;

    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform: rotate(45deg);

    transition: transform 0.2s ease;

    flex: 0 0 auto;
}

.cr-menu-area-dropdown > summary:hover,
.cr-menu-area-dropdown > summary:focus-visible {
    color: #0c4b87;
    background: #ffffff;
    outline: none;
}

.cr-menu-area-dropdown[open] > summary {
    color: #ffffff;
    background: #15428a;
}

.cr-menu-area-dropdown[open] > summary::after {
    margin-top: 4px;
    transform: rotate(225deg);
}


/* ==========================================================
   SUBMENU DO CONGRESSO — DESKTOP
========================================================== */

.cr-menu-area-submenu {
    position: absolute;
    z-index: 9999;

    top: calc(100% + 6px);
    left: 0;

    min-width: 245px;
    padding: 7px;

    background: #ffffff;

    border: 1px solid #cbd9e8;
    border-radius: 9px;

    box-shadow: 0 12px 30px rgba(18, 52, 86, 0.16);

    box-sizing: border-box;
}

.cr-menu-area-lista > li:last-child .cr-menu-area-submenu {
    right: 0;
    left: auto;
}

.cr-menu-area-submenu a {
    display: block;

    width: 100%;
    padding: 11px 13px;

    color: #263f5f;

    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;

    border-radius: 6px;

    box-sizing: border-box;
}

.cr-menu-area-submenu a:hover,
.cr-menu-area-submenu a:focus-visible {
    color: #15428a;
    background: #edf4fb;
    outline: none;
}


/* ==========================================================
   TABLET
========================================================== */

@media (min-width: 769px) and (max-width: 1050px) {

    .cr-menu-area-container {
        padding: 0 12px;
    }

    .cr-menu-area-lista {
        justify-content: flex-start;
        gap: 6px;

        overflow-x: auto;
        overflow-y: visible;

        scrollbar-width: thin;
    }

    .cr-menu-area-lista > li {
        flex: 0 0 auto;
    }

    .cr-menu-area-lista > li > a,
    .cr-menu-area-dropdown > summary {
        padding-right: 11px;
        padding-left: 11px;

        font-size: 13px;
    }
}


/* ==========================================================
   CELULAR — MENU EM SANFONA
========================================================== */

@media (max-width: 768px) {

    .cr-menu-area {
        padding: 12px;

        background: #e9f2fb;
        border-top: 1px solid #bed1e5;
        border-bottom: 1px solid #bed1e5;
    }

    .cr-menu-area-container {
        max-width: none;
        padding: 0;
    }

    .cr-menu-area-lista {
        display: block;

        width: 100%;

        margin: 0;
        padding: 0;

        overflow: visible;
    }

    .cr-menu-area-lista > li {
        display: block;

        width: 100%;
        margin: 0 0 8px;
    }

    .cr-menu-area-lista > li:last-child {
        margin-bottom: 0;
    }

    .cr-menu-area-lista > li > a,
    .cr-menu-area-dropdown > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        min-height: 50px;

        padding: 13px 15px;

        color: #173b68;
        background: #ffffff;

        font-size: 15px;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: 0;
        text-align: left;
        text-transform: none;
        white-space: normal;

        border: 1px solid #c7d7e7;
        border-radius: 8px;

        box-shadow: 0 2px 5px rgba(20, 58, 97, 0.05);

        box-sizing: border-box;
    }

    .cr-menu-area-lista > li > a:hover,
    .cr-menu-area-lista > li > a:focus-visible,
    .cr-menu-area-dropdown > summary:hover,
    .cr-menu-area-dropdown > summary:focus-visible {
        color: #15428a;
        background: #f7faff;
        border-color: #aebfd2;
    }

    .cr-menu-area-lista > li.ativo > a,
    .cr-menu-area-lista > li.ativo > details > summary,
    .cr-menu-area-dropdown[open] > summary {
        color: #ffffff;
        background: #15428a;
        border-color: #15428a;
        box-shadow: none;
    }

    .cr-menu-area-dropdown {
        width: 100%;
    }

    .cr-menu-area-dropdown > summary::after {
        width: 8px;
        height: 8px;

        margin-right: 2px;
        margin-left: 14px;

        flex: 0 0 auto;
    }

    .cr-menu-area-submenu {
        position: static;

        width: 100%;
        min-width: 0;

        margin-top: 5px;
        padding: 5px;

        background: #ffffff;

        border: 1px solid #c7d7e7;
        border-radius: 8px;

        box-shadow: none;

        box-sizing: border-box;
    }

    .cr-menu-area-lista > li:last-child .cr-menu-area-submenu {
        right: auto;
        left: auto;
    }

    .cr-menu-area-submenu a {
        display: block;

        width: 100%;
        padding: 12px 13px;

        color: #263f5f;

        font-size: 15px;
        line-height: 1.35;
        white-space: normal;

        border-radius: 5px;

        box-sizing: border-box;
    }

    .cr-menu-area-submenu a + a {
        border-top: 1px solid #e2eaf2;
        border-radius: 0;
    }

    .cr-menu-area-submenu a:hover,
    .cr-menu-area-submenu a:focus-visible {
        color: #15428a;
        background: #edf4fb;
    }
}