/* ==========================================================================
   Modal de Agenda de Eventos
   ========================================================================== */

html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
}

.agenda-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4%;
    /* Maior que .main-header (999999999999) para cobrir header e footer */
    z-index: 2147483647;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.agenda-modal-overlay * {
    box-sizing: border-box;
}

.agenda-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.agenda-modal {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    transform: translateY(40px);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.agenda-modal-overlay.is-open .agenda-modal {
    transform: translateY(0);
}

.agenda-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.agenda-modal-close:hover,
.agenda-modal-close:focus-visible {
    background-color: #925E24;
    outline: none;
}

.agenda-modal-close svg {
    width: 12px;
    height: 12px;
    display: block;
}

.agenda-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 4px;
    display: flex;
    flex-direction: column;
}

.agenda-modal-thumb {
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    flex-shrink: 0;
}

.agenda-modal-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.agenda-modal-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 24px 28px 0;
}

.agenda-modal-dates {
    display: flex;
    align-items: center;
    gap: 6px;
}

.agenda-modal-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #925E24;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    min-width: 60px;
}

.agenda-modal-date .day {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.agenda-modal-date .month {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

.agenda-modal-date-separator {
    color: #925E24;
    font-size: 22px;
    font-weight: 800;
    padding: 0 4px;
}

.agenda-modal-title {
    color: #2A2A2A;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    text-wrap: balance;
}

.agenda-modal-description {
    color: #555;
    font-size: 15px;
    line-height: 1.55;
    padding: 8px 28px 24px;
}

.agenda-modal-description p {
    margin: 0 0 12px 0;
}

.agenda-modal-description p:last-child {
    margin-bottom: 0;
}

.agenda-modal-description strong,
.agenda-modal-description b {
    font-weight: 700;
    color: #2A2A2A;
}

.agenda-modal-description em,
.agenda-modal-description i {
    font-style: italic;
}

.agenda-modal-description ul,
.agenda-modal-description ol {
    margin: 10px 0;
    padding-left: 22px;
}

.agenda-modal-description li {
    margin-bottom: 6px;
}

.agenda-modal-description a {
    color: #925E24;
    text-decoration: underline;
}

.agenda-modal-footer {
    padding: 18px 28px;
    background-color: #FBFBFB;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.agenda-modal-footer .button-holder {
    display: flex;
    justify-content: flex-start;
}

.agenda-modal-footer .c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    background-color: #925E24;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.agenda-modal-footer .c-btn:hover,
.agenda-modal-footer .c-btn:focus-visible {
    background-color: #7A4E1E;
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 1600px) {
    .agenda-modal {
        max-width: 560px;
    }
    .agenda-modal-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .agenda-modal-overlay {
        padding: 0;
    }
    .agenda-modal {
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
    }
    .agenda-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    .agenda-modal-header {
        padding: 20px 20px 0;
    }
    .agenda-modal-title {
        font-size: 20px;
    }
    .agenda-modal-description {
        padding: 8px 20px 20px;
        font-size: 14px;
    }
    .agenda-modal-footer {
        padding: 14px 20px;
    }
}
