/**
 * Estilos para o Carrossel Simples (Fallback)
 */

.simple-carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.simple-carousel {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #f8f8f8;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4A2C2A 0%, #6B4240 100%);
    /* Fundo que combina com o tema do site */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    /* Mudado de 'cover' para 'contain' para não cortar */
    object-position: center;
    display: block;
    background: linear-gradient(135deg, #4A2C2A 0%, #6B4240 100%);
    /* Fundo que combina com o tema do site */
}

/* Classe alternativa para imagens que devem preencher completamente */
.carousel-slide.fill-mode img {
    object-fit: cover;
}

/* Classe para imagens que devem se ajustar sem distorção */
.carousel-slide.fit-mode img {
    object-fit: contain;
}

/* Opções de fundo alternativas */
.carousel-slide.subtle-bg {
    background: rgba(74, 44, 42, 0.1);
}

.carousel-slide.subtle-bg img {
    background: rgba(74, 44, 42, 0.1);
}

.carousel-slide.dark-bg {
    background: #2c1810;
}

.carousel-slide.dark-bg img {
    background: #2c1810;
}

.carousel-slide.gradient-bg {
    background: linear-gradient(135deg, #4A2C2A 0%, #6B4240 100%);
}

.carousel-slide.gradient-bg img {
    background: linear-gradient(135deg, #4A2C2A 0%, #6B4240 100%);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.carousel-slide.active .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Botões de navegação */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(179, 142, 32, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: #8C6C16;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Dots/Paginação */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #B38E20;
    width: 30px;
    border-radius: 6px;
    border: 2px solid white;
}

.carousel-dot:hover {
    background: rgba(179, 142, 32, 0.7);
}

/* Responsividade */
@media (max-width: 768px) {
    .simple-carousel {
        border-radius: 10px;
    }

    .carousel-slide img {
        max-height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-caption {
        font-size: 14px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .carousel-slide img {
        max-height: 250px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .carousel-dot.active {
        width: 20px;
    }
}

/* Ajustes específicos para o hero */
#hero-carousel .simple-carousel {
    height: 500px;
    min-height: 400px;
}

#hero-carousel .carousel-slide {
    height: 500px;
    min-height: 400px;
}

#hero-carousel .carousel-slide img {
    height: 100%;
    max-height: 500px;
    min-height: 400px;
}

/* Responsividade melhorada para hero */
@media (max-width: 768px) {

    #hero-carousel .simple-carousel,
    #hero-carousel .carousel-slide {
        height: 350px;
        min-height: 300px;
    }

    #hero-carousel .carousel-slide img {
        height: 100%;
        max-height: 350px;
        min-height: 300px;
    }
}

@media (max-width: 480px) {

    #hero-carousel .simple-carousel,
    #hero-carousel .carousel-slide {
        height: 280px;
        min-height: 250px;
    }

    #hero-carousel .carousel-slide img {
        height: 100%;
        max-height: 280px;
        min-height: 250px;
    }
}

/* Ajustes para carrossel de eventos */
#eventos-carousel .simple-carousel {
    height: 400px;
    min-height: 300px;
}

#eventos-carousel .carousel-slide {
    height: 400px;
    min-height: 300px;
}

#eventos-carousel .carousel-slide img {
    height: 100%;
    max-height: 400px;
    min-height: 300px;
}

@media (max-width: 768px) {

    #eventos-carousel .simple-carousel,
    #eventos-carousel .carousel-slide {
        height: 300px;
        min-height: 250px;
    }

    #eventos-carousel .carousel-slide img {
        height: 100%;
        max-height: 300px;
        min-height: 250px;
    }
}

/* Animação de entrada */
.simple-carousel {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus para acessibilidade */
.carousel-btn:focus,
.carousel-dot:focus {
    outline: 3px solid #B38E20;
    outline-offset: 2px;
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
    .simple-carousel {
        background: #1a1a1a;
    }

    .carousel-slide {
        background: #2a2a2a;
    }
}