/* =========================================================
   EVENTOS
========================================================= */

.events-hero {
    padding: 150px 0 90px;
    background:
        radial-gradient(circle at top left, rgba(47, 95, 187, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, var(--cinza-fundo) 100%);
}

.events-hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.events-hero-content h1 {
    font-size: clamp(48px, 6vw, 86px);
    line-height: 1;
    color: var(--azul-escuro);
    letter-spacing: -3px;
    margin: 24px 0;
}

.events-hero-content p {
    max-width: 720px;
    font-size: 19px;
    line-height: 1.9;
    color: var(--cinza-texto);
}

.events-hero-card {
    padding: 46px;
    border-radius: 36px;
    background: var(--branco);
    border: 1px solid rgba(31, 47, 70, 0.08);
    box-shadow: 0 24px 60px rgba(31, 47, 70, 0.10);
}

.events-hero-card i {
    width: 86px;
    height: 86px;
    border-radius: 26px;
    background: rgba(242, 140, 75, 0.13);
    color: var(--laranja);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    margin-bottom: 28px;
}

.events-hero-card strong {
    display: block;
    font-size: 28px;
    color: var(--azul-escuro);
    margin-bottom: 14px;
}

.events-hero-card span {
    font-size: 16px;
    line-height: 1.8;
    color: var(--cinza-texto);
}


/* EVENTO DESTAQUE */

.featured-event-section {
    padding: 40px 0 110px;
}

.featured-event-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    overflow: hidden;
    border-radius: 40px;
    background: var(--branco);
    border: 1px solid rgba(31, 47, 70, 0.08);
    box-shadow: 0 24px 60px rgba(31, 47, 70, 0.10);
}

.featured-event-image {
    min-height: 420px;
    background:
        linear-gradient(135deg, var(--azul), var(--laranja));
    color: var(--branco);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.featured-event-image i {
    font-size: 82px;
}

.featured-event-image span {
    font-size: 18px;
    font-weight: 800;
}

.featured-event-content {
    padding: 60px;
}

.featured-event-content h2 {
    font-size: clamp(36px, 4vw, 62px);
    line-height: 1.05;
    color: var(--azul-escuro);
    letter-spacing: -2px;
    margin: 24px 0;
}

.featured-event-content p {
    font-size: 18px;
    line-height: 1.9;
    color: var(--cinza-texto);
    margin-bottom: 34px;
}

.featured-event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}


/* PRÓXIMOS EVENTOS */

.upcoming-events-section,
.events-gallery-section {
    padding: 110px 0;
}

.upcoming-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.upcoming-event-card {
    padding: 34px 30px;
    border-radius: 30px;
    background: var(--branco);
    border: 1px solid rgba(31, 47, 70, 0.08);
    box-shadow: 0 18px 45px rgba(31, 47, 70, 0.08);
}

.upcoming-event-card i {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(47, 95, 187, 0.10);
    color: var(--azul);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}

.upcoming-event-card h3 {
    font-size: 23px;
    color: var(--azul-escuro);
    margin-bottom: 14px;
}

.upcoming-event-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--cinza-texto);
    margin-bottom: 22px;
}

.upcoming-event-card span {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(242, 140, 75, 0.12);
    color: var(--laranja);
    font-size: 13px;
    font-weight: 800;
}


/* GALERIA */

.events-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.gallery-placeholder {
    min-height: 240px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(47, 95, 187, 0.10), rgba(242, 140, 75, 0.12));
    border: 1px dashed rgba(31, 47, 70, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--azul);
    gap: 12px;
}

.gallery-placeholder i {
    font-size: 42px;
}

.gallery-placeholder span {
    font-size: 15px;
    font-weight: 800;
}


/* CTA */

.events-cta-section {
    padding: 70px 0 0;
}

.events-cta-card {
    padding: 70px;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--azul-escuro), var(--azul));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.events-cta-card h2 {
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.1;
    color: var(--branco);
    margin: 22px 0;
}

.events-cta-card p {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.78);
}

.events-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* RESPONSIVO */

@media (max-width: 1100px) {
    .upcoming-events-grid,
    .events-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .events-hero-container,
    .featured-event-card {
        grid-template-columns: 1fr;
    }

    .events-cta-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 50px 34px;
    }

    .events-cta-buttons {
        width: 100%;
    }

    .events-cta-buttons a {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .events-hero {
        padding: 130px 0 70px;
    }

    .events-hero-content h1,
    .featured-event-content h2,
    .events-cta-card h2 {
        letter-spacing: -1px;
    }

    .featured-event-content {
        padding: 38px 26px;
    }

    .featured-event-image {
        min-height: 280px;
    }

    .upcoming-events-grid,
    .events-gallery-grid {
        grid-template-columns: 1fr;
    }

    .upcoming-events-section,
    .events-gallery-section {
        padding: 80px 0;
    }
}

.featured-event-more {
    display: none;
    margin-top: -10px;
    margin-bottom: 30px;
}

.featured-event-more.active {
    display: block;
}

.featured-event-actions button {
    border: none;
    cursor: pointer;
}

.event-modal {
    position: fixed;
    inset: 0;
    background: rgba(31, 47, 70, 0.72);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.event-modal.active {
    display: flex;
}

.event-modal-box {
    position: relative;
    width: min(720px, 100%);
    padding: 46px;
    border-radius: 34px;
    background: var(--branco);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
    text-align: center;
}

.event-modal-close {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: var(--cinza-fundo);
    color: var(--azul-escuro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    position: absolute;
    top: 22px;
    right: 22px;
}

.event-modal-box h3 {
    font-size: 32px;
    color: var(--azul-escuro);
    margin-bottom: 28px;
}

.event-gallery-content.empty {
    min-height: 260px;
    border-radius: 28px;
    background: linear-gradient(
        135deg,
        rgba(47, 95, 187, 0.08),
        rgba(242, 140, 75, 0.10)
    );
    border: 1px dashed rgba(31, 47, 70, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.event-gallery-content.empty i {
    font-size: 54px;
    color: var(--azul);
}

.event-gallery-content.empty p {
    font-size: 17px;
    color: var(--cinza-texto);
}.featured-cover{width:100%;height:100%;object-fit:cover}.event-modal-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;max-height:65vh;overflow:auto}.event-modal-gallery img,.event-modal-gallery video{width:100%;height:220px;object-fit:cover;border-radius:16px}@media(max-width:620px){.event-modal-gallery{grid-template-columns:1fr}.event-modal-gallery img,.event-modal-gallery video{height:auto;max-height:340px}}
