
.agenda-list {
    --agenda-line: #d9d9d9;
    --agenda-accent: #000;
    position: relative;
    margin-top: 1rem;
    padding: 0.5rem 0;
}

.agenda-list::before {
    content: "";
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: 158px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--agenda-accent),
        #000 65%,
        var(--agenda-line)
    );
}

.agenda-item {
    position: relative;
    display: grid;
    grid-template-columns: 130px 56px minmax(0, 1fr);
    align-items: center;
    gap: 0 14px;
    min-height: 52px;
    padding: 0.75rem 0;
}

/* Entrada animada dos itens da agenda */
.js .agenda-item {
    opacity: 0;
    transform: translateX(35px);
    transition:
        opacity 0.65s ease,
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .agenda-item.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.js .agenda-item:nth-child(1) {
    transition-delay: 0.05s;
}

.js .agenda-item:nth-child(2) {
    transition-delay: 0.15s;
}

.js .agenda-item:nth-child(3) {
    transition-delay: 0.25s;
}

.js .agenda-item:nth-child(4) {
    transition-delay: 0.35s;
}

.js .agenda-item:nth-child(5) {
    transition-delay: 0.45s;
}

.agenda-time {
    color: #777;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: right;
}

.agenda-number {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--agenda-accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agenda-item:hover .agenda-number {
    transform: scale(1.14);
    box-shadow: 0 0 0 3px var(--agenda-accent), 0 8px 20px rgba(184, 120, 28, 0.35);
}

.agenda-desc {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

/* =====================================================
   GALERIA — 4 IMAGENS POR VISTA NO DESKTOP
===================================================== */

.galeria-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.galeria-track {
    display: flex;
    flex: 1;
    gap: 20px;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.galeria-track::-webkit-scrollbar {
    display: none;
}

.galeria-slide {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
    scroll-snap-align: start;
}

.galeria-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.galeria-slide:hover .galeria-img {
    transform: scale(1.06);
    filter: brightness(0.86);
}

.galeria-btn {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #333;
    border-radius: 50%;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.galeria-btn:hover {
    border-color: #000;
    background: #000;
    color: #fff;
    transform: scale(1.06);
}

/* =====================================================
   LIGHTBOX — ABRE SEM SAIR DA PÁGINA
===================================================== */

.galeria-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(10, 10, 10, 0.92);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.galeria-lightbox[hidden] {
    display: none;
}

.galeria-lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1100px, 94vw);
    height: min(760px, 88vh);
}

.galeria-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.galeria-lightbox-close {
    position: absolute;
    top: -42px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.galeria-lightbox-close:hover {
    background: #fff;
    color: #1a1a1a;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .agenda-list::before {
        left: 116px;
    }

    .agenda-item {
        grid-template-columns: 90px 56px minmax(0, 1fr);
    }

    .galeria-slide {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (max-width: 575.98px) {
    .agenda-list::before {
        left: 73px;
    }

    .agenda-item {
        grid-template-columns: 58px 42px minmax(0, 1fr);
        gap: 0 10px;
        min-height: 88px;
    }

    .agenda-time {
        font-size: 0.72rem;
        text-align: right;
    }

    .agenda-number {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .agenda-desc {
        font-size: 0.88rem;
    }

    .galeria-wrapper {
        gap: 8px;
    }

    .galeria-slide {
        flex-basis: 100%;
    }

    .galeria-btn {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .galeria-lightbox {
        padding: 20px;
    }

    .galeria-lightbox-close {
        top: -48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .agenda-item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .galeria-track {
        scroll-behavior: auto;
    }

    .galeria-img,
    .galeria-btn,
    .agenda-number {
        transition: none;
    }
}
