/* Configuração do Slider em Full Width */
.spx-slider {
    width: 100%;
    height: 75vh;
}

.swiper-slide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 8%;
    /* Espaçamento lateral para os conteúdos */
}

/* Background com folga para o efeito Parallax */
.spx-bg {
    position: absolute;
    left: -10%;
    /* Folga para a direita e esquerda pro parallax */
    top: 0;
    width: 120%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Overlay escuro para melhorar a leitura do texto */
.spx-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.spx-bg-no-overlay {
    position: absolute;
    left: -10%;
    /* Folga para a direita e esquerda pro parallax */
    top: 0;
    width: 120%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Container de conteúdo */
.spx-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

/* Classes de Alinhamento Customizadas */
.swiper-slide.spx-left {
    justify-content: flex-start;
}

.swiper-slide.spx-left .spx-content {
    text-align: left;
}

.swiper-slide.spx-center {
    justify-content: center;
}

.swiper-slide.spx-center .spx-content {
    text-align: center;
}

.swiper-slide.spx-right {
    justify-content: flex-end;
}

.swiper-slide.spx-right .spx-content {
    text-align: right;
}

.spx-content h2 {
    color: #ffffff;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.spx-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #f1f1f1;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Botão Visual */
.spx-btn {
    display: inline-block;
    padding: 16px 45px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: #3c59fa;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

/* Link que cobre o slide inteiro */
.spx-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.spx-btn:hover {
    background: #3c59fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(60, 89, 250, 0.4);
}

/* 
===============================================
   ANIMAÇÕES DE ENTRADA (Surgimento suave)
=============================================== 
*/
.spx-content h2,
.spx-content p,
.spx-btn {
    opacity: 0;
    transform: translateY(40px);
    /* Inicia mais abaixo */
}

/* Quando o slide estiver ativo, executa as animações em sequência */
.swiper-slide-active .spx-content h2 {
    animation: spx-fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.swiper-slide-active .spx-content p {
    animation: spx-fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.swiper-slide-active .spx-btn {
    animation: spx-fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

@keyframes spx-fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Personalização dos botões de navegação */
.spx-slider .swiper-button-next,
.spx-slider .swiper-button-prev {
    color: #fff;
    transition: all 0.3s ease;
}

/* Arrows menores */
.spx-slider .swiper-button-next::after,
.spx-slider .swiper-button-prev::after {
    font-size: 22px;
    font-weight: bold;
}

/* Espaçamento maior no Desktop */
@media (min-width: 1024px) {
    .spx-slider .swiper-button-next {
        right: 50px;
    }

    .spx-slider .swiper-button-prev {
        left: 50px;
    }
}

.spx-slider .swiper-button-next:hover,
.spx-slider .swiper-button-prev:hover {
    transform: scale(1.2);
    color: #3c59fa;
}

/* Bullets modernos e limpos */
.spx-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: 0.3;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 6px !important;
}

.spx-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #3c59fa;
    width: 30px;
    /* Efeito "pill" moderno */
    border-radius: 10px;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .swiper-slide {
        padding: 0 40px;
    }

    .spx-content h2 {
        font-size: 2rem;
    }

    .spx-content p {
        font-size: 1rem;
    }
}