/* CSS essencial para o Swiper funcionar */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero .swiper {
    width: 100%;
    height: 100%;
}

.hero .swiper-slide {
    width: 100%;
    height: 100%;
}

.hero-content-slider {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 15%;
    color: #fff;
    /* As imagens de fundo são configuradas via JavaScript */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background-color: rgba(0, 109, 103, 0.85);
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 3;
    max-width: 600px;
}

.hero h1 {
    font-family: 'Gilroy', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Hattinant', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.4;
    position: relative;
    display: inline-block;
    padding: 0 0.5rem;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 60%;
    background-color: rgba(065, 173, 073, 1);
    transform: translateY(-50%);
    z-index: -1;
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.hero-subtitle.visible::before {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
}

/* Swiper Pagination Customization */
.hero .swiper-pagination {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: auto;
    display: flex;
    justify-content: flex-end;
    z-index: 10;
}

.hero .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero .swiper-pagination-bullet-active {
    background-color: #FFD700;
    transform: scale(1.2);
}

/* Tablet (iPad) Responsivo */
@media (max-width: 1024px) {
    .hero-content {
        padding-left: 10%;
    }

    .hero-overlay {
        width: 40%;
    }

    .hero-text {
        max-width: 480px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 2.5rem;
    }

    .hero .swiper-pagination {
        bottom: 20px;
    }
}

/* Mobile Landscape Responsivo */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }

    .hero-content {
        align-items: center;
        padding-left: 0;
        padding-right: 0;
        justify-content: center;
        text-align: center;
    }

    .hero-overlay {
        width: 100%;
        opacity: 0.8;
        background-color: rgba(0, 80, 75, 0.7);
    }

    .hero-text {
        max-width: 80%;
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }
}

/* Mobile Portrait Responsivo */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }
    
    .hero-content {
        height: 70vh;
        padding-left: 0;
        padding-right: 0;
        justify-content: center;
        text-align: center;
    }
    
    .hero-overlay {
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .hero .swiper-pagination {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        justify-content: center;
    }
}

/* Estilos específicos para cada slide */
.hero-content.slide-1 {
    background-position: top;
}

.hero-content.slide-2 {
    background-position: top;
}

.hero-content.slide-3 {
    background-position: top;
}

.hero-content.slide-4 {
    background-position: top;
}

/* Small Phones Responsivo */
@media (max-width: 480px) {
    .hero-content {
        background-position: 30% center;
    }
    
    /* Ajuste específico para dispositivos móveis para cada slide */
    .hero-content.slide-1 {
        background-position: 30% top;
    }
    
    .hero-content.slide-2 {
        background-position: 40% top;
    }
    
    .hero-content.slide-3 {
        background-position: 45% top;
    }
    
    .hero-content.slide-4 {
        background-position: 35% top;
    }

    .hero-overlay {
        opacity: 0.85;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.3rem;
        margin-bottom: 0.3rem;
    }

    .hero-subtitle {
        font-size: 2.3rem;
    }

    .hero-subtitle::before {
        height: 50%;
    }

    .hero .swiper-pagination {
        bottom: 15px;
    }

    .hero .swiper-pagination-bullet {
        width: 16px;
        height: 16px;
        margin: 0 3px;
    }
}