.svs-pro-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    max-width: none !important;
    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
}

.svs-pro-wrap *,
.svs-pro-wrap *::before,
.svs-pro-wrap *::after {
    box-sizing: border-box;
}

.svs-pro-swiper,
.svs-pro-swiper .swiper-wrapper,
.svs-pro-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.svs-pro-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    touch-action: pan-y;
}

.svs-pro-image-frame {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.svs-ratio-fixed .svs-pro-slide {
    background: transparent !important;
}

.svs-ratio-fixed .svs-pro-image-frame {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: var(--svs-aspect-ratio);
    overflow: hidden;
}

.svs-pro-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.055);
    transition: transform 1.4s ease;
    z-index: 0;
}

.swiper-slide-active .svs-pro-bg {
    transform: scale(1);
}

.svs-pro-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.svs-pro-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    padding: 40px 28px;
    color: #fff;
    text-align: center;
}

.svs-content-left .svs-pro-slide {
    justify-content: flex-start;
}

.svs-content-left .svs-pro-content {
    text-align: left;
    margin-left: clamp(20px, 8vw, 120px);
}

.svs-content-right .svs-pro-slide {
    justify-content: flex-end;
}

.svs-content-right .svs-pro-content {
    text-align: right;
    margin-right: clamp(20px, 8vw, 120px);
}

.svs-content-bottom .svs-pro-slide {
    align-items: flex-end;
}

.svs-content-bottom .svs-pro-content {
    padding-bottom: clamp(60px, 10vh, 120px);
}

.svs-pro-content h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(36px, 6vw, 84px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.svs-pro-content p {
    margin: 0 auto 28px;
    color: #fff;
    max-width: 720px;
    font-size: clamp(16px, 2vw, 24px);
    line-height: 1.55;
}

.svs-content-left .svs-pro-content p,
.svs-content-right .svs-pro-content p {
    margin-left: 0;
    margin-right: 0;
}

.svs-pro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 28px;
    border-radius: 999px;
    background: #fff;
    color: #111 !important;
    text-decoration: none !important;
    font-weight: 700;
    transition: transform .25s ease, opacity .25s ease;
}

.svs-pro-btn:hover {
    transform: translateY(-2px);
    opacity: .92;
}

.svs-pro-filename {
    position: absolute;
    z-index: 3;
    color: #fff;
    line-height: 1;
    letter-spacing: .02em;
    max-width: min(80vw, 680px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
}

.svs-pro-filename.has-bg {
    background: rgba(0,0,0,.48);
    padding: 7px 10px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.svs-pro-filename.no-bg {
    text-shadow: 0 2px 8px rgba(0,0,0,.7);
}

.svs-filename-bottom-left { left: 18px; bottom: 18px; }
.svs-filename-bottom-right { right: 18px; bottom: 18px; }
.svs-filename-top-left { left: 18px; top: 18px; }
.svs-filename-top-right { right: 18px; top: 18px; }

.svs-pro-wrap .swiper-pagination-bullet {
    width: 11px;
    height: 11px;
    background: #fff;
    opacity: .55;
}

.svs-pro-wrap .swiper-pagination-bullet-active {
    opacity: 1;
}

.svs-empty {
    padding: 18px;
    background: #fff8e5;
    border: 1px solid #e7c45b;
    border-radius: 8px;
    color: #3f3100;
}

@media(max-width: 768px) {
    .svs-pro-wrap {
        height: 100dvh !important;
        min-height: 100dvh !important;
    }

    @supports (-webkit-touch-callout: none) {
        .svs-pro-wrap {
            min-height: -webkit-fill-available;
        }
    }

    .svs-ratio-fixed .svs-pro-image-frame {
        aspect-ratio: var(--svs-mobile-aspect-ratio) !important;
        width: 100% !important;
        height: 100% !important;
    }

    .svs-pro-content {
        padding: 24px 18px;
    }

    .svs-content-left .svs-pro-content,
    .svs-content-right .svs-pro-content {
        margin-left: 18px;
        margin-right: 18px;
        text-align: center;
    }

    .svs-pro-content h2 {
        font-size: 34px;
        line-height: 1.08;
    }

    .svs-pro-content p {
        font-size: 16px;
        line-height: 1.5;
    }

    .svs-pro-filename {
        max-width: 70vw;
    }
}

/* Compatibilità Uncode/WPBakery */
.svs-pro-wrap.vc_column-inner,
.uncode-wrapper .svs-pro-wrap,
.main-container .svs-pro-wrap {
    width: 100% !important;
}

.svs-pro-wrap .swiper {
    margin: 0;
}


/* Slide title positions v4.2 */

.svs-title-pos-top{
    justify-content:flex-start;
    padding-top:8vh;
}

.svs-title-pos-center{
    justify-content:center;
}

.svs-title-pos-bottom{
    justify-content:flex-end;
    padding-bottom:8vh;
}


/* Global slider title */

.svs-global-title-wrap{
    position:absolute;
    inset:0;
    z-index:20;
    display:flex;
    pointer-events:none;
    padding:5vw;
}

.svs-global-pos-top{
    align-items:flex-start;
}

.svs-global-pos-center{
    align-items:center;
}

.svs-global-pos-bottom{
    align-items:flex-end;
}

.svs-global-title{
    width:100%;
    color:#fff;
    font-weight:800;
    line-height:1;
    text-shadow:0 3px 15px rgba(0,0,0,.4);
}

@media(max-width:768px){
    .svs-global-title{
        font-size:34px !important;
    }
}
