/* =========================================================
   SPACE ANÚNCIO — HOME
   DOBRA 5 — CARROSSEL + BANNERS LATERAIS
   ========================================================= */

.space-home-fashion {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 3px 24px;
    background: #fff;
    box-sizing: border-box;
}

.space-home-fashion > .e-con-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 2.18fr) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch;
    gap: 3px !important;
    width: 100% !important;
    max-width: none !important;
    height: clamp(190px, 19vw, 267px) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box;
}

/* Current Elementor Flexbox Containers render their children directly in .e-con. */
.space-home-fashion.e-con {
    display: grid !important;
    grid-template-columns: minmax(0, 2.18fr) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 3px !important;
    width: 100% !important;
    max-width: none !important;
    height: calc(clamp(190px, 19vw, 267px) + 24px) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 3px 24px !important;
    box-sizing: border-box !important;
}

.space-fashion-main,
.space-fashion-side,
.elementor-element[data-id="safashionside"] {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.space-fashion-main {
    position: relative;
    align-self: stretch !important;
    overflow: hidden;
    border-radius: 2px;
    flex: initial !important;
    isolation: isolate;
}

.space-fashion-main > .e-con-inner,
.space-fashion-main > .elementor-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
}

/* Promo text is part of each supplied banner artwork. */
.space-fashion-main > .e-con-inner > .space-fashion-content,
.space-fashion-main > .space-fashion-content {
    display: none !important;
}

.space-fashion-art,
.space-fashion-main > .e-con-inner > .space-fashion-art,
.space-fashion-main > .space-fashion-art {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0 !important;
    z-index: 1;
    overflow: hidden;
    background: #f4f2f0 url('../images/home-ad-carousel-lovito.webp') center / cover no-repeat;
}

.space-fashion-art > .e-con-inner,
.space-fashion-art > .elementor-container,
.space-fashion-art .elementor-widget-image,
.space-fashion-art .elementor-widget-container {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

/* The theme render filter inserts the live carousel here. If Elementor
   serves the older saved image markup, let the theme image fallback show. */
.space-fashion-art .elementor-widget-container > img {
    display: none !important;
}

.paa-fashion-carousel,
.paa-fashion-carousel .paa-home-ad-carousel__slides,
.paa-fashion-carousel .paa-home-ad-carousel__slide,
.paa-fashion-carousel .paa-home-ad-carousel__slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.paa-fashion-carousel {
    overflow: hidden;
    background: #f4f2f0;
    box-sizing: border-box;
    border: 0;
    outline: 0;
}

.paa-fashion-carousel .paa-home-ad-carousel__slide {
    display: none;
}

.paa-fashion-carousel .paa-home-ad-carousel__slide.is-active {
    display: block;
}

.paa-fashion-carousel .paa-home-ad-carousel__slide[hidden] {
    display: none !important;
}

.paa-fashion-carousel .paa-home-ad-carousel__slide img {
    display: block;
    object-fit: cover;
    object-position: center;
}

.paa-fashion-carousel .paa-home-ad-carousel__arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: flex;
    width: 34px;
    height: 44px;
    min-width: 34px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 3px;
    background: rgba(255, 255, 255, .88);
    color: #26364b;
    box-shadow: 0 1px 5px rgba(15, 23, 42, .16);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    opacity: .92;
    transition: background-color .15s ease, opacity .15s ease;
}

.paa-fashion-carousel .paa-home-ad-carousel__arrow:hover,
.paa-fashion-carousel .paa-home-ad-carousel__arrow:focus-visible {
    background: #fff;
    opacity: 1;
}

.paa-fashion-carousel .paa-home-ad-carousel__arrow--previous {
    left: 10px;
}

.paa-fashion-carousel .paa-home-ad-carousel__arrow--next {
    right: 10px;
}

.paa-fashion-carousel .paa-home-ad-carousel__dots {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 7px;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-height: 18px;
    pointer-events: none;
}

.paa-fashion-carousel .paa-home-ad-carousel__dot {
    display: block;
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 1px 4px rgba(18, 30, 50, .55);
    cursor: pointer;
    pointer-events: auto;
    transition: background-color .15s ease, transform .15s ease;
}

.paa-fashion-carousel .paa-home-ad-carousel__dot.is-active {
    border-color: #f97316;
    background: #f97316;
    transform: scale(1.2);
}

.paa-fashion-carousel .paa-home-ad-carousel__dot:hover,
.paa-fashion-carousel .paa-home-ad-carousel__dot:focus-visible {
    background: #fff;
    outline: 2px solid rgba(255, 255, 255, .85);
    outline-offset: 2px;
}

.space-fashion-side,
.elementor-element[data-id="safashionside"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    align-self: stretch !important;
    justify-content: flex-start !important;
    align-content: stretch !important;
    height: 100% !important;
    min-height: 100% !important;
    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
}

.space-fashion-side > .e-con-inner,
.elementor-element[data-id="safashionside"] > .e-con-inner {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    align-self: stretch !important;
    justify-content: flex-start !important;
    align-content: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
}

.space-fashion-small-top,
.space-fashion-small-bottom,
.elementor-element[data-id="safashionsmall1"],
.elementor-element[data-id="safashionsmall2"] {
    position: relative;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-width: 0;
    min-height: 0 !important;
    align-self: stretch !important;
    flex: 1 1 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 2px;
    background: #fff;
    box-sizing: border-box;
}

.space-fashion-small-top .elementor-widget-image,
.space-fashion-small-top .elementor-widget-container,
.space-fashion-small-bottom .elementor-widget-image,
.space-fashion-small-bottom .elementor-widget-container {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
}

.space-fashion-small-top .elementor-widget-image img,
.space-fashion-small-bottom .elementor-widget-image img {
    position: absolute !important;
    inset: 0;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: fill;
    object-position: center;
}

@media (min-width: 1025px) {
    .space-fashion-side,
    .elementor-element[data-id="safashionside"] {
        align-self: stretch !important;
        height: clamp(190px, 19vw, 267px) !important;
        min-height: clamp(190px, 19vw, 267px) !important;
        max-height: clamp(190px, 19vw, 267px) !important;
    }

    .space-fashion-side > .e-con-inner,
    .elementor-element[data-id="safashionside"] > .e-con-inner {
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        flex: 1 1 100% !important;
    }

    .space-fashion-small-top,
    .space-fashion-small-bottom,
    .elementor-element[data-id="safashionsmall1"],
    .elementor-element[data-id="safashionsmall2"] {
        height: 50% !important;
        min-height: 0 !important;
        max-height: 50% !important;
        flex: 1 1 50% !important;
    }
}

@media (max-width: 1024px) {
    .space-home-fashion {
        padding: 0 3px 22px;
    }

    .space-home-fashion > .e-con-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        height: auto !important;
        min-height: 0 !important;
        gap: 12px !important;
    }

    .space-home-fashion.e-con {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        padding: 0 3px 22px !important;
    }

    .space-fashion-main {
        height: auto !important;
        aspect-ratio: 1200 / 360;
    }

    .space-fashion-side,
    .elementor-element[data-id="safashionside"] {
        flex-direction: row !important;
        height: auto !important;
        min-height: 0 !important;
        gap: 0 !important;
        row-gap: 0 !important;
        column-gap: 0 !important;
    }

    .space-fashion-side > .e-con-inner,
    .elementor-element[data-id="safashionside"] > .e-con-inner {
        flex-direction: row !important;
        justify-content: flex-start !important;
        height: auto !important;
        min-height: 0 !important;
        gap: 0 !important;
        row-gap: 0 !important;
        column-gap: 0 !important;
    }

    .space-fashion-small-top,
    .space-fashion-small-bottom {
        height: auto !important;
        aspect-ratio: 195 / 55;
        flex: 1 1 0 !important;
    }
}

@media (max-width: 600px) {
    .space-home-fashion {
        padding: 0 3px 20px;
    }

    .space-home-fashion > .e-con-inner {
        gap: 10px !important;
    }

    .space-home-fashion.e-con {
        gap: 10px !important;
        padding: 0 3px 20px !important;
    }

    .space-fashion-side,
    .elementor-element[data-id="safashionside"] {
        flex-direction: column !important;
        gap: 0 !important;
        row-gap: 0 !important;
        column-gap: 0 !important;
    }

    .space-fashion-side > .e-con-inner,
    .elementor-element[data-id="safashionside"] > .e-con-inner {
        flex-direction: column !important;
        justify-content: flex-start !important;
        min-height: 0 !important;
        gap: 0 !important;
        row-gap: 0 !important;
        column-gap: 0 !important;
    }

    .space-fashion-small-top,
    .space-fashion-small-bottom {
        flex: 0 0 auto !important;
    }

    .paa-fashion-carousel .paa-home-ad-carousel__dot {
        width: 9px;
        height: 9px;
        min-width: 9px;
        min-height: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .paa-fashion-carousel * {
        scroll-behavior: auto !important;
    }
}

/* Dobra 5: banners laterais 425 × 127 px, alinhados à coluna principal. */
@media (min-width: 1337px) {
    body.page-id-1819 .elementor-element-safashionroot.space-home-fashion,
    body.page-id-1819 .space-home-fashion.e-con {
        width: calc(68.5535% + 447.83px) !important;
        max-width: none !important;
        grid-template-columns: minmax(0, 1fr) 445px !important;
        grid-template-rows: clamp(190px, 19vw, 267px) !important;
        height: calc(clamp(190px, 19vw, 267px) + 24px) !important;
        min-height: calc(clamp(190px, 19vw, 267px) + 24px) !important;
        max-height: none !important;
    }

    body.page-id-1819 .space-home-fashion > .e-con-inner {
        grid-template-columns: minmax(0, 1fr) 445px !important;
        grid-template-rows: clamp(190px, 19vw, 267px) !important;
        height: clamp(190px, 19vw, 267px) !important;
        min-height: clamp(190px, 19vw, 267px) !important;
        max-height: none !important;
    }

    body.page-id-1819 .elementor-element-safashionmain,
    body.page-id-1819 .space-fashion-main {
        height: clamp(190px, 19vw, 267px) !important;
        min-height: clamp(190px, 19vw, 267px) !important;
        max-height: clamp(190px, 19vw, 267px) !important;
    }

    body.page-id-1819 .elementor-element-safashionside,
    body.page-id-1819 .space-fashion-side {
        width: 445px !important;
        min-width: 445px !important;
        max-width: 445px !important;
        height: clamp(190px, 19vw, 267px) !important;
        min-height: clamp(190px, 19vw, 267px) !important;
        max-height: clamp(190px, 19vw, 267px) !important;
    }

    body.page-id-1819 .elementor-element-safashionside > .e-con-inner,
    body.page-id-1819 .space-fashion-side > .e-con-inner {
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        justify-content: space-between !important;
        gap: 0 !important;
    }

    body.page-id-1819 .elementor-element-safashionsmall1,
    body.page-id-1819 .elementor-element-safashionsmall2,
    body.page-id-1819 .space-fashion-small-top,
    body.page-id-1819 .space-fashion-small-bottom {
        width: 100% !important;
        height: 127px !important;
        min-height: 127px !important;
        max-height: 127px !important;
        flex: 0 0 127px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body.page-id-1819 .elementor-element-safashionsmall1 > .e-con-inner,
    body.page-id-1819 .elementor-element-safashionsmall2 > .e-con-inner {
        height: 127px !important;
        min-height: 127px !important;
        max-height: 127px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body.page-id-1819 .elementor-element-safashionsideimg1,
    body.page-id-1819 .elementor-element-safashionsideimg2 {
        width: 100% !important;
        height: 127px !important;
        min-height: 127px !important;
        max-height: 127px !important;
        flex: 0 0 127px !important;
    }

    body.page-id-1819 .elementor-element-safashionsideimg1 .elementor-widget-container,
    body.page-id-1819 .elementor-element-safashionsideimg2 .elementor-widget-container,
    body.page-id-1819 .elementor-element-safashionsideimg1 img,
    body.page-id-1819 .elementor-element-safashionsideimg2 img {
        display: block !important;
        width: 425px !important;
        min-width: 425px !important;
        max-width: none !important;
        height: 127px !important;
        min-height: 127px !important;
        max-height: 127px !important;
        object-fit: fill !important;
    }
}