/* =========================
   HOME ACTIVITY SECTION
========================= */

.home-activity-section {
    width: 100%;
    margin-top: 34px;

    padding: 0;

    background: transparent;
}

.home-activity-wrapper {
    width: 100%;

    margin: 0;
    padding: 0;
}

.home-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 26px;
    align-items: stretch;
}

/* =========================
   CARD
========================= */

.home-activity-card {
    min-width: 0;

    padding: 24px;

    border-radius: 28px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.96),
            rgba(255,249,240,0.96)
        );

    border: 1px solid rgba(214, 177, 97, 0.28);

    box-shadow:
        0 18px 42px rgba(44, 27, 6, 0.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.home-activity-card:hover {
    transform: translateY(-4px);

    border-color: rgba(214, 177, 97, 0.5);

    box-shadow:
        0 26px 54px rgba(44, 27, 6, 0.12);
}

/* =========================
   TITULO
========================= */

.home-activity-title {
    margin: 0 0 18px;

    color: var(--primary);

    font-size: clamp(1.3rem, 2vw, 1.55rem);
    font-weight: 850;
    line-height: 1.15;
}

/* =========================
   CAROUSEL
========================= */

.home-activity-carousel {
    position: relative;
    width: 100%;
}

.home-activity-track {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 10;

    overflow: hidden;

    border-radius: 22px;

    background: #efe3cc;
}

/* =========================
   IMAGES
========================= */

.home-activity-image {
    position: absolute;
    inset: 0;

    display: none;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: 22px;
}

.home-activity-image.active {
    display: block;
}

/* =========================
   BUTTONS
========================= */

.home-activity-btn {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 40px;
    height: 40px;

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

    border: none;
    border-radius: 50%;

    transform: translateY(-50%);

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

    color: var(--primary);

    font-size: 1rem;

    box-shadow:
        0 10px 24px rgba(0,0,0,.14);

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.home-activity-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.06);
}

.home-activity-btn--prev {
    left: 12px;
}

.home-activity-btn--next {
    right: 12px;
}

/* =========================
   DOTS
========================= */

.home-activity-dots {
    display: flex;
    justify-content: center;
    gap: 8px;

    margin-top: 14px;
}

.home-activity-dot {
    width: 8px;
    height: 8px;

    border: none;
    border-radius: 999px;

    background: rgba(214,177,97,.45);

    cursor: pointer;

    transition:
        width .25s ease,
        background .25s ease;
}

.home-activity-dot.active {
    width: 22px;

    background: #d6b161;
}

/* =========================
   QUOTE
========================= */

.home-activity-quote {
    margin: 20px 0 0;

    color: rgba(129,91,34,.92);

    font-size: .98rem;
    line-height: 1.6;
    font-style: italic;
}

.home-activity-author {
    display: block;

    margin-top: 8px;

    color: #b08442;

    font-size: .84rem;
    font-style: italic;
    letter-spacing: .04em;
}

/* =========================
   DESCRIPTION
========================= */

.home-activity-description {
    margin: 18px 0 0;

    color: rgba(7,48,94,.84);

    font-size: .96rem;
    line-height: 1.75;

    text-align: justify;
    text-justify: inter-word;
}

/* =========================
   BUTTON DOWNLOAD
========================= */

.home-activity-download {
    width: 100%;
    min-height: 46px;

    margin-top: 20px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: none;
    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            #f2dfad,
            #e7c97d
        );

    color: #0f376d;

    font-size: .9rem;
    font-weight: 850;
    text-align: center;
    text-decoration: none;

    box-shadow:
        0 10px 24px rgba(128,88,23,.14);

    cursor: pointer;

    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.home-activity-download:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 32px rgba(128,88,23,.2);
}

/* =========================
   MODAL
========================= */

.cronograma-modal {
    position: fixed;
    inset: 0;

    z-index: 99999;

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

    padding: 20px;
}

.cronograma-modal.is-open {
    display: flex;
}

.cronograma-modal__overlay {
    position: absolute;
    inset: 0;

    background: rgba(6,46,95,.55);

    backdrop-filter: blur(6px);
}

.cronograma-modal__box {
    position: relative;
    z-index: 2;

    width: min(92vw, 520px);
    max-height: 88vh;

    overflow: auto;

    padding: 22px;

    border-radius: 26px;

    background: #fffaf0;

    border: 1px solid rgba(201,157,73,.35);

    box-shadow:
        0 24px 70px rgba(6,46,95,.25);

    text-align: center;
}

.cronograma-modal__box h3 {
    margin: 0 0 16px;

    color: #062e5f;

    font-size: 1.35rem;
}

.cronograma-modal__image {
    width: 100%;
    height: auto;

    display: block;

    border-radius: 18px;
}

.cronograma-modal__close {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: #062e5f;
    color: #fff8ea;

    cursor: pointer;

    font-size: 1rem;
}

/* =========================
   DARK MODE
========================= */

html[data-theme="dark"] .home-activity-card {
    background:
        linear-gradient(
            180deg,
            rgba(24,36,56,.98),
            rgba(18,28,44,.98)
        );

    border: 1px solid rgba(214,177,97,.16);

    box-shadow:
        0 20px 48px rgba(0,0,0,.34);
}

html[data-theme="dark"] .home-activity-title {
    color: #f8f1df;
}

html[data-theme="dark"] .home-activity-description {
    color: rgba(245,236,214,.84);
}

html[data-theme="dark"] .home-activity-quote,
html[data-theme="dark"] .home-activity-author {
    color: #d8b56b;
}

html[data-theme="dark"] .home-activity-btn {
    background: rgba(15,24,38,.92);
    color: #f3deb0;
}

html[data-theme="dark"] .home-activity-download {
    background:
        linear-gradient(
            180deg,
            #d6b161,
            #c89c42
        );

    color: #0f1b2c;
}

html[data-theme="dark"] .cronograma-modal__box {
    background:
        rgba(15,24,38,.98);

    border-color:
        rgba(214,177,97,.18);
}

html[data-theme="dark"] .cronograma-modal__box h3 {
    color: #f7ead6;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .home-activity-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .home-activity-grid {
        gap: 20px;
    }

    .home-activity-card {
        padding: 18px;

        border-radius: 24px;
    }

    .home-activity-title {
        font-size: 1.22rem;
    }

    .home-activity-description {
        font-size: .94rem;
        line-height: 1.7;

        text-align: left;
    }

    .home-activity-btn {
        width: 36px;
        height: 36px;
    }

    .home-activity-download {
        min-height: 44px;

        font-size: .86rem;
    }

    .cronograma-modal__box {
        width: 95vw;

        padding: 18px;
    }

    .cronograma-modal__box h3 {
        font-size: 1.1rem;

        padding-right: 36px;
    }
}