/* ========================================
   SLIDESHOW DE PROMOÇÕES
   ======================================== */

.slideshow-section {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
    /* COMEÇA INVISÍVEL - aparece quando scrollas */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* APARECE quando scroll chega ao slideshow */
.slideshow-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 600px;
    margin: 0 auto;
    overflow: hidden;
    /* BORDA CINZENTA À VOLTA DE TODO O SLIDESHOW */
    border: 6px solid #495057;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.slideshow-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   SLIDE INDIVIDUAL
   ======================================== */

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    opacity: 1;
}

/* ANIMAÇÕES SÓ DISPARAM QUANDO SCROLL CHEGA AO SLIDESHOW */
.slideshow-section.animate-in .slide {
    animation: slideZoomIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ANIMAÇÃO PRINCIPAL DO SLIDE - Zoom + Fade */
@keyframes slideZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 60px;
    z-index: 2;
}

.slide-text {
    flex: 1;
    color: white;
    max-width: 600px;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

/* ANIMAÇÃO: Entra de baixo quando scroll chega */
.slideshow-section.animate-in .slide-title {
    opacity: 0;
    animation: slideUp 0.6s ease-out 0.2s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-description {
    font-size: 1.5rem;
    margin: 0 0 40px 0;
    line-height: 1.4;
    opacity: 1;
}

/* ANIMAÇÃO: Entra depois do título quando scroll chega */
.slideshow-section.animate-in .slide-description {
    opacity: 0;
    animation: slideUp 0.6s ease-out 0.4s forwards;
}

.slide-button {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: #198754;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

/* ANIMAÇÃO: Entra por último quando scroll chega */
.slideshow-section.animate-in .slide-button {
    opacity: 0;
    animation: slideUp 0.6s ease-out 0.6s forwards;
}

.slide-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: #f8f9fa;
    color: #146c43;
}

.slide-button:active {
    transform: translateY(-2px) scale(1.02);
}

.slide-image {
    flex: 0 0 500px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* ANIMAÇÃO: Zoom suave quando scroll chega */
.slideshow-section.animate-in .slide-image {
    opacity: 0;
    animation: zoomFade 0.8s ease-out 0.3s forwards;
}

@keyframes zoomFade {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.slide-image-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   NAVEGAÇÃO (SETAS)
   ======================================== */

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #198754;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.slide-nav:hover {
    background: #198754;
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 6px 30px rgba(25, 135, 84, 0.6);
    }
}

.slide-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slide-prev {
    left: 30px;
}

.slide-next {
    right: 30px;
}

/* ========================================
   DOTS DE NAVEGAÇÃO
   ======================================== */

.slide-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slide-dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

/* ========================================
   LOADING
   ======================================== */

.slide-loading {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #198754;
    font-size: 1.2rem;
}

.slide-loading i {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* ========================================
   CORES ALTERNATIVAS (por slide)
   ======================================== */

.slide:nth-child(1) {
    background: linear-gradient(135deg, #198754 0%, #198754 100%);
}

.slide:nth-child(2) {
    /* GRADIENTE VERDE SÓLIDO → VERMELHO SÓLIDO (SÓ verde e vermelho, transição rápida) */
    background: linear-gradient(135deg,
        #198754 0%,
        #198754 45%,
        #dc3545 55%,
        #dc3545 100%
    );
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, #dc3545 0%, #bb2d3b 100%);
}

.slide:nth-child(4) {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

/* ========================================
   RESPONSIVO
   ======================================== */

@media (max-width: 1200px) {
    .slideshow-container {
        height: 500px;
    }

    .slide-content {
        padding: 0 40px;
    }

    .slide-title {
        font-size: 2.8rem;
    }

    .slide-description {
        font-size: 1.3rem;
    }

    .slide-image {
        flex: 0 0 400px;
        height: 350px;
    }
}

@media (max-width: 992px) {
    .slideshow-container {
        height: 450px;
    }

    .slide-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .slide-text {
        max-width: 100%;
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-description {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .slide-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        height: 250px;
        margin-top: 20px;
    }

    .slide-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .slide-prev {
        left: 20px;
    }

    .slide-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .slideshow-container {
        height: 400px;
    }

    .slide-content {
        padding: 30px 20px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-description {
        font-size: 1.1rem;
    }

    .slide-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .slide-image {
        max-width: 300px;
        height: 200px;
    }

    .slide-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        /* BAIXAR AS SETAS EM MOBILE PARA NÃO TAPAR O TEXTO */
        top: 70%;
    }

    .slide-prev {
        left: 10px;
    }

    .slide-next {
        right: 10px;
    }

    .slide-dots {
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .slideshow-container {
        height: 350px;
    }

    .slide-title {
        font-size: 1.6rem;
    }

    .slide-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .slide-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    .slide-image {
        display: none;
    }

    /* BAIXAR AINDA MAIS AS SETAS EM MOBILE PEQUENO */
    .slide-nav {
        top: 75%;
    }
}
