/* ========================================================================== */
/* == LÓGICA DO CARROSSEL HERO /
/* ========================================================================== */

#hero .carousel-container {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    margin: 0 auto;
    background-color: #1a1a1a;
}

#hero .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none; /* <-- CORREÇÃO 1: Desativa cliques em todos os slides por padrão */
}

#hero .slide.active {
    opacity: 1;
    pointer-events: auto; /* <-- CORREÇÃO 2: Reativa os cliques APENAS no slide visível */
}

#hero .slide img, #hero .slide iframe {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border: none;
}

#hero .slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 70px 40px 50px 40px;
    text-align: center;
    box-sizing: border-box;
}

#hero .slide-info h3 { font-size: 2.4em; }
#hero .slide-info p { font-size: 1.2em; }

#hero .hero-prev-btn,
#hero .hero-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    font-size: 2.5em;
    color: white;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

#hero .hero-prev-btn:hover,
#hero .hero-next-btn:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}

#hero .hero-prev-btn { left: 25px; }
#hero .hero-next-btn { right: 25px; }

#hero .hero-dots {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

#hero .hero-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.2);
    padding: 0;
}

#hero .hero-dots .dot.active {
    background-color: white;
    transform: scale(1.15);
}

/* Responsividade do Hero */
@media (max-width: 900px) { #hero .carousel-container { height: auto; aspect-ratio: 16 / 9; } }
@media (max-width: 768px) { #hero .carousel-container { aspect-ratio: 4 / 3; } }
@media (max-width: 480px) { #hero .carousel-container { aspect-ratio: 1 / 1; } #hero .slide-info p { display: none; } }

#hero .carousel-container .slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* ========================================================================== */
/* == NOVA LÓGICA PARA CARROSSÉIS DESLIZANTES (HOME PAGE) == */
/* ========================================================================== */

.sliding-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0 40px; 
    box-sizing: border-box;
}

.sliding-carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.sliding-carousel-track {
    display: flex;
    gap: 35px;
    transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.sliding-carousel-slide {
    flex-shrink: 0;
    box-sizing: border-box;
}

.sliding-carousel-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sliding-carousel-btn.prev { left: -15px; }
.sliding-carousel-btn.next { right: -15px; }

#portal-carousel .sliding-carousel-btn {
    background-color: rgba(44, 44, 44, 0.6);
    color: white;
}

.sliding-carousel-dots {
    text-align: center;
    padding-top: 30px;
}

.sliding-carousel-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

#espetaculos .sliding-carousel-dots .dot { background-color: rgba(255, 255, 255, 0.6); }
#espetaculos .sliding-carousel-dots .dot.active { background-color: white; transform: scale(1.1); }

#portal-carousel .sliding-carousel-dots .dot { background-color: rgba(44, 44, 44, 0.4); }
#portal-carousel .sliding-carousel-dots .dot.active { background-color: var(--cor-texto-escuro); transform: scale(1.1); }


/* Responsividade dos carrosséis deslizantes */
@media (max-width: 768px) {
    .sliding-carousel-wrapper { padding: 0 30px; }
    .sliding-carousel-btn.prev { left: -10px; }
    .sliding-carousel-btn.next { right: -10px; }
}
.pagina-ciranda #hero .slide img {
    object-fit: contain;
}