/* ============================================================
   1. ESTRUTURA E FULL-WIDTH (FORÇADO VIA CSS)
============================================================ */

/* Previne rolagem horizontal indesejada no site */
html, body {
    overflow-x: hidden;
}

/* Libera o widget de limites do container */
.elementor-widget-hab_hero_banner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Força 100% da largura da tela ignorando containers do Elementor */
.hab-hero-swiper {
    width: 100vw !important;
    min-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
}

.hab-hero-swiper .swiper-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.hab-hero-swiper .swiper-slide {
    width: 100% !important;
    flex-shrink: 0;
}

.hab-hero-swiper .swiper-pagination-bullet{
    background: white;
    width: 8px;
    height: 8px;
}

/* OTIMIZAÇÃO DE CLS: Proporção exata Desktop (2048x748) */
.hab-hero-swiper picture {
    display: block;
    width: 100%;
}

.hab-hero-swiper .hab-banner-img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
    margin: 0 auto;
    aspect-ratio: 2048 / 748; 
}


/* ============================================================
   2. NAVEGAÇÃO / SETAS (CSS PURO)
============================================================ */

.hab-hero-swiper .swiper-button-next,
.hab-hero-swiper .swiper-button-prev {
    width: 44px !important;
    height: 44px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.3s ease !important;
    z-index: 20 !important;
    top: 50% !important;
    margin-top: -22px !important;
}

.hab-hero-swiper .swiper-button-prev {
    left: 20px !important;
    right: auto !important;
}

.hab-hero-swiper .swiper-button-next {
    right: 20px !important;
    left: auto !important;
}

.hab-hero-swiper .swiper-button-next::after,
.hab-hero-swiper .swiper-button-prev::after {
    content: '' !important;
    width: 10px;
    height: 10px;
    border-top: 2px solid #111111;
    border-right: 2px solid #111111;
    display: block;
}

.hab-hero-swiper .swiper-button-prev::after {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.hab-hero-swiper .swiper-button-next::after {
    transform: rotate(45deg);
    margin-right: 3px;
}

.hab-hero-swiper .swiper-button-next:hover,
.hab-hero-swiper .swiper-button-prev:hover {
    background-color: #f5f5f5 !important;
}


/* ============================================================
   3. AJUSTES PARA O EDITOR DO ELEMENTOR
============================================================ */

body.elementor-editor-active .hab-hero-swiper {
    width: 100% !important;
    min-width: 100% !important;
    left: 0 !important;
    transform: none !important;
}

body.elementor-editor-active .elementor-widget-hab_hero_banner {
    width: 100% !important;
    max-width: 100% !important;
}

.elementor-editor-active .elementor-element-editable .hab-hero-swiper {
    max-width: 100% !important;
    overflow: hidden !important;
}


/* ============================================================
   4. RESPONSIVIDADE MOBILE & OTIMIZAÇÃO CLS
============================================================ */

@media (max-width: 767px) {
    .hab-hero-swiper .swiper-button-next,
    .hab-hero-swiper .swiper-button-prev {
        display: none !important;
    }

    /* OTIMIZAÇÃO DE CLS: Proporção exata Mobile (750x1000) */
    .hab-hero-swiper .hab-banner-img {
        aspect-ratio: 750 / 1000; 
    }
}