
/* ===== Agenda CORA ===== */

.agenda-container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 24px 20px;
    color: #292929;
    font-family: Arial, Helvetica, sans-serif;
}

/* Navegação entre meses */

.agenda-navegacao {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.agenda-titulo {
    margin: 0;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #303030;
}

.agenda-nav-link {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 7px;
    padding: 8px 12px;
    color: #1d3557;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s, border-color .2s;
}

    .agenda-nav-link:last-child {
        justify-self: end;
    }

    .agenda-nav-link span {
        color: #1d3557;
        font-size: 24px;
        line-height: 16px;
    }

    .agenda-nav-link:hover {
        color: #1d3557;
        border-color: #1d3557;
    }

/* Grade mensal */

.agenda-calendario-wrapper {
    width: 100%;
}

.agenda-calendario {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
    border-top: 1px solid #dedede;
    border-left: 1px solid #dedede;
}

/* Cabeçalho dos dias da semana */

.agenda-cabecalho-dia {
    min-width: 0;
    padding: 16px 10px;
    background: #f3f3f3;
    border-right: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
    font-size: 14px;
    font-weight: 700;
}

/* Células dos dias */

.agenda-dia {
    min-width: 0;
    min-height: 150px;
    padding: 10px;
    background: #fff;
    border-right: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
    overflow-wrap: anywhere;
}

.agenda-dia-fora {
    background: #fff;
}

    .agenda-dia-fora .agenda-numero-dia {
        color: #c5c5c5;
        font-size: 15px;
        font-weight: 400;
    }

.agenda-dia-hoje {
    box-shadow: inset 0 -2px 0 #36c8e5;
}

    .agenda-dia-hoje .agenda-numero-dia {
        color: #36c8e5;
    }

/* Número do dia */

.agenda-numero-dia {
    margin-bottom: 12px;
    color: #111;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

/* Eventos */

.agenda-eventos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.agenda-evento {
    min-width: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.agenda-evento-titulo {
    font-weight: 400;
}

.agenda-evento-horario {
    margin-top: 4px;
    color: #666;
    font-size: 12px;
}

.agenda-evento-local {
    margin-top: 3px;
    color: #555;
    font-size: 12px;
}

.agenda-evento-encerrado {
    color: #777;
}

/* Responsividade */

@media (min-width: 1200px) {
    .agenda-dia {
        min-height: 165px;
        padding: 12px 10px;
    }
}

@media (max-width: 767.98px) {
    .agenda-container {
        padding: 16px 8px;
    }

    .agenda-navegacao {
        gap: 6px;
        margin-bottom: 18px;
    }

    .agenda-titulo {
        font-size: 18px;
    }

    .agenda-nav-link {
        gap: 3px;
        padding: 7px 5px;
        font-size: 10px;
    }

    .agenda-cabecalho-dia {
        padding: 10px 2px;
        text-align: center;
        font-size: 10px;
    }

    .agenda-dia {
        min-height: 100px;
        padding: 5px 3px;
    }

    .agenda-numero-dia {
        margin-bottom: 8px;
        font-size: 20px;
    }

    .agenda-eventos {
        gap: 8px;
    }

    .agenda-evento {
        font-size: 10px;
        line-height: 1.2;
    }

    .agenda-evento-horario,
    .agenda-evento-local {
        font-size: 9px;
    }
}


/* Título clicável do evento */

.agenda-evento-link,
.agenda-evento-link:visited,
.agenda-evento-link:hover,
.agenda-evento-link:focus,
.agenda-evento-link:active,
.agenda-link-encerrado {
    color: #174f7a;
}

.agenda-evento-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
    cursor: pointer;
}

    .agenda-evento-link:hover,
    .agenda-evento-link:focus {
        text-decoration: underline;
    }


/* Balão semelhante ao calendário de referência */

.agenda-preview {
    --agenda-seta-esquerda: 50%;
    position: fixed;
    z-index: 1080;
    width: 420px;
    max-width: calc(100vw - 24px);
    padding: 20px 22px;
    color: #555;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .13);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

    .agenda-preview[hidden] {
        display: none;
    }

    .agenda-preview::after {
        content: "";
        position: absolute;
        left: var(--agenda-seta-esquerda);
        bottom: -10px;
        width: 18px;
        height: 18px;
        background: #fff;
        border-right: 1px solid #dedede;
        border-bottom: 1px solid #dedede;
        transform: translateX(-50%) rotate(45deg);
    }

    .agenda-preview.agenda-preview-acima::after {
        top: -10px;
        bottom: auto;
        transform: translateX(-50%) rotate(225deg);
    }

    .agenda-preview > strong {
        display: block;
        margin-bottom: 8px;
        color: #111;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

.agenda-preview-horario {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: #888;
    font-size: 13px;
}

    .agenda-preview-horario i {
        font-size: 15px;
    }

.agenda-preview-descricao {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .agenda-preview {
        display: none !important;
    }

    .agenda-evento-link {
        font-size: 10px;
    }
}


/* =========================================
   CABEÇALHO INSTITUCIONAL AMREC
   ========================================= */

.amrec-header {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: none;
}

/* Faixa superior branca */

.amrec-top {
    width: 100%;
    height: 82px;
    background-color: #fff;
}

.amrec-top-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logotipo centralizado */

.amrec-logo-link {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    text-decoration: none;
}

.amrec-logo {
    display: block;
    width: auto;
    max-width: 230px;
    height: 66px;
    object-fit: contain;
}

/* =========================================
   CORREÇÃO DEFINITIVA — MENU VERDE EM TELA TODA
   ========================================= */

.amrec-header {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.amrec-menu {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    min-height: 69px;
    margin-left: -50vw;
    padding: 0;
    background-color: #207565;
    box-sizing: border-box;
}

.amrec-menu-container {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 1320px;
    min-height: 69px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.amrec-nav {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

/* Evita rolagem horizontal causada pela largura da janela */
html,
body {
    max-width: 100%;
}
/* Navegação */

.amrec-nav {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.amrec-nav-link,
.amrec-nav-link:visited {
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: background-color .2s ease, border-color .2s ease;
}

    .amrec-nav-link:hover,
    .amrec-nav-link:focus-visible {
        color: #fff;
        background-color: rgba(255, 255, 255, .08);
        border-bottom-color: #72d9bd;
        outline: none;
    }

/* Responsividade */

@media (max-width: 576px) {

    .amrec-top {
        height: 72px;
    }

    .amrec-top-container {
        padding: 0 12px;
    }

    .amrec-logo {
        max-width: 190px;
        height: 58px;
    }

    .amrec-menu,
    .amrec-menu-container {
        min-height: 58px;
    }

    .amrec-menu-container {
        padding: 0 12px;
    }

    .amrec-nav-link,
    .amrec-nav-link:visited {
        padding: 0 16px;
        font-size: 14px;
    }
}
/* =========================================
   ÍCONES SOCIAIS DO CABEÇALHO AMREC
   ========================================= */

.amrec-social {
    position: absolute;
    top: 50%;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 25px;
    transform: translateY(-50%);
}

    .amrec-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #929292;
        font-size: 25px;
        line-height: 1;
        text-decoration: none;
        transition: color .2s ease;
    }

        .amrec-social a:hover,
        .amrec-social a:focus-visible {
            color: #207565;
            outline: none;
        }

/* Ajuste para telas menores */

@media (max-width: 576px) {
    .amrec-social {
        right: 12px;
        gap: 13px;
    }

        .amrec-social a {
            font-size: 20px;
        }

    .amrec-logo {
        max-width: 145px;
    }
}