/* ==========================================================
   Cabeçalho / conteúdo principal do evento
   ========================================================== */

.event-detail-intro {
    position: relative;
}

.event-detail-page-label {
    margin: 0 0 8px;
    color: #ff8500;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.event-detail-title {
    margin: 0 0 20px;
    color: #174b31;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.event-detail-category {
    margin-bottom: 10px;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.event-detail-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}

.event-detail-meta-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 17px;
    border: 1px solid #e1e9e4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(23, 75, 49, .055);
}

.event-detail-meta-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff7ec;
    color: #ff8500;
    font-size: 16px;
}

.event-detail-meta-item > div {
    min-width: 0;
}

.event-detail-meta-label {
    display: block;
    margin-bottom: 2px;
    color: #7a847e;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.event-detail-meta-item strong {
    display: block;
    color: #174b31;
    font-size: .92rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.event-detail-description {
    margin-top: 0;
    padding-top: 30px;
    border-top: 1px solid #e3e9e5;
    color: #4d5751;
    font-size: .98rem;
    line-height: 1.75;
}

.event-detail-description > :first-child {
    margin-top: 0;
}

.event-detail-description > :last-child {
    margin-bottom: 0;
}

.event-detail-description p {
    margin-bottom: 1.15rem;
}

.event-detail-description h2,
.event-detail-description h3,
.event-detail-description h4 {
    color: #174b31;
    font-weight: 700;
}

.event-detail-cover {
    height: 100%;
    display: flex;
    align-items: flex-start;
}

.event-detail-cover .img-rounded {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 991.98px) {

    .event-detail-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-detail-cover {
        margin-top: 8px;
    }

}

@media (max-width: 575.98px) {

    .event-detail-meta {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 26px;
    }

    .event-detail-meta-item {
        padding: 14px;
    }

    .event-detail-description {
        padding-top: 24px;
    }

}


/* ==========================================================
   Bloco de informações do evento
   ========================================================== */

.event-info-panel {
    padding: 26px;
    border: 1px solid #e3ebe6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(18, 67, 43, .07);
}

.event-info-panel-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.event-info-panel-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #edf6f1;
    color: #1d6a45;
}

.event-info-panel-title small {
    display: block;
    margin-bottom: 2px;
    color: #ff8500;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.event-info-panel-title h2 {
    margin: 0;
    color: #174b31;
    font-size: 1.2rem;
    font-weight: 700;
}

.event-info-panel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.event-info-panel-item {
    min-width: 0;
    padding: 15px 16px;
    border-radius: 13px;
    background: #f7faf8;
}

.event-info-panel-item span {
    display: block;
    margin-bottom: 4px;
    color: #7a847e;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.event-info-panel-item strong {
    display: block;
    color: #174b31;
    font-size: .92rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.event-info-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #edf1ee;
}

.event-info-panel-footer .event-actions {
    width: min(340px, 100%);
    margin: 0;
    padding: 0;
    border-top: 0;
}

.event-views {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7a847e;
    font-size: .82rem;
}


.event-instagram-button {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: 1px solid #2e915b;
    border-radius: 999px;
    background: #2e915b;
    color: #fff;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.event-instagram-button:hover,
.event-instagram-button:focus-visible {
    border-color: #237449;
    background: #237449;
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}

.event-instagram-button i {
    font-size: 1rem;
}


.event-info-panel-under-cover {
    width: 100%;
}

.event-info-panel-under-cover .event-info-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-info-panel-under-cover .event-info-panel-address {
    grid-column: 1 / -1;
}

.event-info-panel-under-cover .event-info-panel-footer {
    align-items: flex-start;
    flex-direction: column;
}

.event-info-panel-under-cover .event-actions {
    width: 100%;
}

@media (max-width: 575.98px) {
    .event-detail-title {
        font-size: 2rem;
    }

    .event-info-panel-under-cover .event-info-panel-grid {
        grid-template-columns: 1fr;
    }

    .event-info-panel-under-cover .event-info-panel-address {
        grid-column: auto;
    }
}


/* ==========================================================
   Galeria em largura total
   ========================================================== */

.event-gallery-section {
    width: 100%;
}

.event-gallery-heading {
    max-width: 760px;
}

.event-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ==========================================================
   Navegação entre eventos
   ========================================================== */

.event-pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 58px;
    padding-top: 30px;
    border-top: 1px solid #e4ebe7;
}

.event-pagination-card {
    min-height: 126px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #e1e9e4;
    border-radius: 17px;
    background: #fff;
    color: #174b31;
    text-decoration: none;
    box-shadow: 0 9px 28px rgba(21, 70, 45, .06);
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

a.event-pagination-card:hover {
    transform: translateY(-3px);
    border-color: #2e8b57;
    box-shadow: 0 14px 34px rgba(21, 70, 45, .11);
    color: #174b31;
}

.event-pagination-direction {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: #ff8500;
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.event-pagination-card strong {
    display: block;
    font-size: 1rem;
    line-height: 1.4;
}

.event-pagination-next {
    text-align: right;
    align-items: flex-end;
}

.event-pagination-next .event-pagination-direction {
    justify-content: flex-end;
}

.event-pagination-empty {
    visibility: hidden;
}

@media (max-width: 991.98px) {

    .event-info-panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767.98px) {

    .event-info-panel {
        padding: 20px;
    }

    .event-info-panel-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-info-panel-footer .event-actions {
        width: 100%;
    }

    .event-pagination {
        grid-template-columns: 1fr;
        margin-top: 42px;
    }

    .event-pagination-empty {
        display: none;
    }

    .event-pagination-next {
        text-align: left;
        align-items: flex-start;
    }

    .event-pagination-next .event-pagination-direction {
        justify-content: flex-start;
    }

}

@media (max-width: 575.98px) {

    .event-info-panel-grid {
        grid-template-columns: 1fr;
    }

    .event-gallery-grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   Galeria de fotos e vídeos
   ========================================================== */

.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

@media (max-width: 991.98px) {
    .event-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .event-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.event-gallery-item {
    min-width: 0;
}

.event-gallery-open {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 15px;
    background: #0d1712;
    box-shadow: 0 9px 26px rgba(17, 63, 40, .10);
    cursor: pointer;
    outline: 0;
    isolation: isolate;
}

.event-gallery-open::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .30),
        rgba(0, 0, 0, 0) 55%
    );
    pointer-events: none;
}

.event-gallery-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .28s ease, filter .28s ease;
}

.event-gallery-preview-video {
    background: #0d1712;
}

.event-gallery-open:hover .event-gallery-preview,
.event-gallery-open:focus-visible .event-gallery-preview {
    transform: scale(1.025);
    filter: brightness(.9);
}

.event-gallery-vimeo-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background:
        radial-gradient(
            circle at 50% 25%,
            rgba(45, 166, 216, .34),
            transparent 46%
        ),
        #10231a;
}

.event-gallery-vimeo-preview i {
    font-size: 42px;
}

.event-gallery-vimeo-preview span {
    font-size: 13px;
    font-weight: 600;
    opacity: .9;
}

.event-gallery-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .94);
    color: #17623e;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
    font-size: 18px;
    transition: transform .2s ease, background .2s ease, color .2s ease;
    pointer-events: none;
}

.event-gallery-open:hover .event-gallery-play,
.event-gallery-open:focus-visible .event-gallery-play {
    transform: translate(-50%, -50%) scale(1.07);
    background: #ff8500;
    color: #fff;
}

.event-gallery-type-badge {
    position: absolute;
    z-index: 3;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(10, 42, 27, .82);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.event-gallery-caption {
    margin: 9px 3px 0;
    color: #6c757d;
    font-size: .875rem;
    line-height: 1.45;
}

.event-gallery-open:focus-visible {
    box-shadow:
        0 0 0 3px rgba(255, 133, 0, .32),
        0 9px 26px rgba(17, 63, 40, .10);
}


/* Lightbox unificado */

.event-media-modal .modal-dialog {
    max-width: min(1180px, calc(100vw - 28px));
}

.event-media-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
}

.event-media-modal .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e8eeea;
}

.event-media-modal .modal-title {
    color: #174b31;
    font-size: 16px;
    font-weight: 700;
}

.event-media-stage {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #090f0c;
}

.event-media-content {
    width: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-media-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.event-media-content video {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #000;
}

.event-media-content iframe {
    display: block;
    width: 100%;
    height: min(72vh, 760px);
    border: 0;
    background: #000;
}

.event-media-nav {
    position: absolute;
    z-index: 8;
    top: 50%;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(22, 91, 55, .88);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .24);
    transition: background .2s ease, transform .2s ease;
}

.event-media-nav:hover {
    background: #ff8500;
    transform: scale(1.05);
}

.event-media-prev {
    left: 14px;
}

.event-media-next {
    right: 14px;
}

@media (max-width: 767.98px) {
    .event-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .event-media-stage,
    .event-media-content {
        min-height: 260px;
    }

    .event-media-content iframe {
        height: 56vh;
    }

    .event-media-nav {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .event-media-prev {
        left: 7px;
    }

    .event-media-next {
        right: 7px;
    }
}

.share-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(8, 35, 24, .56);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.share-modal-backdrop.is-open {
    display: flex;
}
.share-modal {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
    overflow: hidden;
}
.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid #edf1ee;
}
.share-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #174b31;
}
.share-modal-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #f3f6f4;
    color: #174b31;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.share-modal-body {
    padding: 22px;
}
.share-network-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.share-network-button {
    min-height: 92px;
    border: 1px solid #e3ebe6;
    border-radius: 14px;
    background: #fff;
    color: #174b31;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: .2s ease;
}
.share-network-button:hover {
    border-color: #17834f;
    background: #f2f8f4;
    color: #0e6239;
    transform: translateY(-1px);
}
.share-network-button i {
    font-size: 22px;
}
@media (max-width: 575.98px) {
    .share-network-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.share-network-button i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    line-height: 1;
}
.share-modal-close i {
    font-size: 16px;
}
