
/* ==========================================
   LAEF — AGENDA
========================================== */

.page-agenda {
    --agenda-orange: #cc582c;
    --agenda-navy: #142e3b;
    --agenda-blue: #315b70;
    --agenda-light-blue: #eaf0f3;
    --agenda-cream: #f7f5f0;
    --agenda-muted: #7c858b;
}

/* ==========================================
   HERO
========================================== */

.agenda-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background: var(--agenda-navy);
}

.agenda-hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
    background-size: 65px 65px;
}

.agenda-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 85px;
    padding-bottom: 85px;
}

.agenda-hero .eyebrow {
    display: block;
    margin-bottom: 25px;
    color: #e9a17f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.agenda-hero h1 {
    max-width: 800px;
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(54px, 8vw, 94px);
    font-weight: 500;
    line-height: 1.05;
}

.agenda-hero h1 span {
    color: #e58a60;
    font-style: italic;
}

.agenda-hero-content p {
    max-width: 490px;
    margin-top: 25px;
    color: rgba(255,255,255,.75);
    font-size: 16px;
    line-height: 1.8;
}

.agenda-hero-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 18px 5%;
    border-top: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.6);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* ==========================================
   CABEÇALHOS DE SEÇÃO
========================================== */

.agenda-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 45px;
}

.agenda-section-heading .section-index {
    display: block;
    margin-bottom: 15px;
    color: var(--agenda-orange);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.agenda-section-heading h2 {
    margin: 0;
    color: var(--agenda-navy);
    font-family: "Playfair Display", serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
}

.agenda-section-heading > p {
    max-width: 320px;
    color: var(--agenda-muted);
    font-size: 14px;
    line-height: 1.8;
}

.agenda-heading-note {
    color: var(--agenda-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

/* ==========================================
   CALENDÁRIO
========================================== */

.agenda-calendar-section {
    background: var(--agenda-cream);
}

.agenda-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr);
    gap: 25px;
    align-items: stretch;
}

.calendar-panel {
    padding: 32px;
    background: #fff;
    border: 1px solid #e6e8e8;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.calendar-current {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--agenda-navy);
    font-family: "Playfair Display", serif;
    font-size: 25px;
    font-weight: 600;
}

.calendar-current small {
    color: var(--agenda-muted);
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.calendar-nav {
    width: 40px;
    height: 40px;
    border: 1px solid #e4e8e9;
    border-radius: 50%;
    background: transparent;
    color: var(--agenda-navy);
    font-size: 20px;
    cursor: pointer;
    transition: .2s ease;
}

.calendar-nav:hover {
    border-color: var(--agenda-orange);
    background: var(--agenda-orange);
    color: #fff;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
    padding-bottom: 14px;
    border-bottom: 1px solid #e9ebeb;
}

.calendar-weekdays span {
    text-align: center;
    color: var(--agenda-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.calendar-days {
    padding-top: 12px;
    gap: 5px;
}

.calendar-day {
    position: relative;
    min-height: 67px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: transparent;
    color: var(--agenda-navy);
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: .2s ease;
}

.calendar-day:hover {
    border-color: #e7b39e;
    background: #fff8f4;
}

.calendar-day.other-month {
    color: #c5c9ca;
}

.calendar-day.today {
    border-color: var(--agenda-blue);
    color: var(--agenda-blue);
    font-weight: 700;
}

.calendar-day.selected {
    background: var(--agenda-orange);
    color: #fff;
    font-weight: 700;
}

.calendar-day.has-event::after {
    position: absolute;
    bottom: 9px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--agenda-orange);
    content: "";
    transform: translateX(-50%);
}

.calendar-day.selected.has-event::after {
    background: #fff;
}

.calendar-day:focus-visible,
.calendar-nav:focus-visible {
    outline: 3px solid var(--agenda-blue);
    outline-offset: 3px;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e9ebeb;
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--agenda-muted);
    font-size: 11px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-event {
    background: var(--agenda-orange);
}

.legend-today {
    background: var(--agenda-blue);
}

.calendar-loading {
    grid-column: 1 / -1;
    padding: 50px 10px;
    color: var(--agenda-muted);
    text-align: center;
}

/* ==========================================
   DETALHES DO DIA
========================================== */

.calendar-details {
    padding: 32px;
    background: var(--agenda-navy);
    color: #fff;
}

.calendar-details .section-index {
    color: #e99a75;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.calendar-details h3 {
    margin: 22px 0 28px;
    font-family: "Playfair Display", serif;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.3;
}

.agenda-empty {
    padding: 24px 0;
    color: var(--agenda-muted);
}

.calendar-details .agenda-empty {
    color: rgba(255,255,255,.65);
}

.agenda-empty > span {
    display: block;
    margin-bottom: 15px;
    color: var(--agenda-orange);
    font-size: 28px;
}

.agenda-empty p {
    font-size: 13px;
    line-height: 1.8;
}

/* ==========================================
   PRÓXIMOS EVENTOS
========================================== */

.agenda-upcoming {
    background: #fff;
}

.upcoming-list {
    border-top: 1px solid #e6e8e8;
}

.upcoming-event {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr) auto;
    align-items: center;
    gap: 25px;
    padding: 28px 10px;
    border-bottom: 1px solid #e6e8e8;
    transition: .2s ease;
}

.upcoming-event:hover {
    padding-right: 20px;
    padding-left: 20px;
    background: var(--agenda-cream);
}

.upcoming-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: var(--agenda-light-blue);
    color: var(--agenda-navy);
}

.upcoming-date strong {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
}

.upcoming-date span {
    margin-top: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.upcoming-info h3 {
    margin: 0 0 8px;
    color: var(--agenda-navy);
    font-family: "Playfair Display", serif;
    font-size: 23px;
    font-weight: 500;
}

.upcoming-info p {
    margin: 0;
    color: var(--agenda-muted);
    font-size: 13px;
    line-height: 1.7;
}

.upcoming-meta {
    margin-top: 10px;
    color: var(--agenda-blue);
    font-size: 11px;
    font-weight: 600;
}

.upcoming-arrow {
    color: var(--agenda-orange);
    font-size: 24px;
}

/* ==========================================
   ENCERRAMENTO
========================================== */

.agenda-closing {
    padding: 90px 0;
    background: var(--agenda-light-blue);
}

.agenda-closing .section-index {
    color: var(--agenda-orange);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.agenda-closing h2 {
    max-width: 700px;
    margin: 20px 0;
    color: var(--agenda-navy);
    font-family: "Playfair Display", serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 500;
    line-height: 1.2;
}

.agenda-closing p {
    max-width: 480px;
    color: var(--agenda-blue);
    font-size: 14px;
    line-height: 1.8;
}

/* ==========================================
   RESPONSIVIDADE
========================================== */

@media (max-width: 900px) {

    .agenda-layout {
        grid-template-columns: 1fr;
    }

    .calendar-details {
        min-height: 220px;
    }

}

@media (max-width: 600px) {

    .agenda-hero {
        min-height: 390px;
    }

    .agenda-hero-footer {
        gap: 15px;
        font-size: 8px;
    }

    .agenda-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .calendar-panel,
    .calendar-details {
        padding: 20px 15px;
    }

    .calendar-current {
        font-size: 20px;
    }

    .calendar-day {
        min-height: 48px;
        font-size: 12px;
    }

    .calendar-legend {
        gap: 12px;
    }

    .upcoming-event {
        grid-template-columns: 65px minmax(0, 1fr) 15px;
        gap: 12px;
        padding: 20px 5px;
    }

    .upcoming-date {
        padding: 10px 5px;
    }

    .upcoming-date strong {
        font-size: 25px;
    }

    .upcoming-info h3 {
        font-size: 18px;
    }

    .upcoming-info p {
        font-size: 12px;
    }

    .upcoming-arrow {
        font-size: 18px;
    }

/* ==========================================
   EVENTOS DO DIA
========================================== */

.day-event {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-bottom: 16px;
    padding: 20px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 3px solid #e58a60;

    border-radius: 8px;
}

.day-event h4 {
    margin: 0;

    color: #fff;
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 500;
}

.day-event p {
    margin: 0;

    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.7;
}

.day-event .day-event-period {
    color: #e9a17f;
    font-size: 11px;
    font-weight: 700;
}

.day-event-category {
    display: inline-flex;
    align-self: flex-start;

    padding: 6px 11px;

    background: rgba(229, 138, 96, 0.16);
    color: #f2ad8c;

    border-radius: 30px;

    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.day-event a {
    align-self: flex-start;

    color: #f2ad8c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.day-event a:hover {
    text-decoration: underline;
}


/* ==========================================
   PERÍODO NOS PRÓXIMOS EVENTOS
========================================== */

.upcoming-info .upcoming-period {
    margin: 0 0 8px;

    color: var(--agenda-orange);
    font-size: 11px;
    font-weight: 700;
}

}
