.scrollytelling-9333d4fb {
    position: relative;
    width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background-color: #eef7fa;
    transition: background-color 0.4s ease;
    padding: 100px 0;
    box-sizing: border-box;
}

/* Forzo i contenitori nativi di Elementor a non imporre padding o restrizioni */
.elementor-widget-scrollytelling_9333d4fb,
[data-widget_type="scrollytelling_9333d4fb"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-widget-scrollytelling_9333d4fb .elementor-widget-container,
[data-widget_type="scrollytelling_9333d4fb"] .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.scrollytelling-9333d4fb .st-sticky-container {
    display: flex;
    flex-direction: row;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.scrollytelling-9333d4fb .st-visual {
    position: -webkit-sticky;
    position: sticky;
    top: 15vh;
    width: 50%;
    height: 70vh;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(38, 152, 189, 0.15);
}

.scrollytelling-9333d4fb .st-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrollytelling-9333d4fb .st-image-wrapper.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.scrollytelling-9333d4fb .st-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scrollytelling-9333d4fb .st-content {
    width: 50%;
    padding-left: 8%;
}

.scrollytelling-9333d4fb .st-step {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    opacity: 0.35;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding-left: 32px;
}

.scrollytelling-9333d4fb .st-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(50% - 25px);
    width: 4px;
    height: 50px;
    background-color: #cbd5e1;
    border-radius: 99px;
    transition: background-color 0.4s ease, height 0.4s ease, top 0.4s ease;
}

.scrollytelling-9333d4fb .st-step.is-active {
    opacity: 1;
    transform: translateY(0);
}

.scrollytelling-9333d4fb .st-step.is-active::before {
    background-color: #2698BD;
    height: 80px;
    top: calc(50% - 40px);
}

.scrollytelling-9333d4fb .st-step h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #475569;
    transition: color 0.4s ease;
    letter-spacing: -0.02em;
}

.scrollytelling-9333d4fb .st-step.is-active h3 {
    color: #1a4a5c;
}

.scrollytelling-9333d4fb .st-step p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #334155;
    max-width: 480px;
}

/* Offset WordPress Admin Bar if logged in */
body.admin-bar .scrollytelling-9333d4fb .st-visual {
    top: calc(15vh + var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .scrollytelling-9333d4fb .st-visual {
        top: calc(15vh + 46px);
    }
}

/* Responsive Tablet & Mobile */
@media screen and (max-width: 991px) {
    .scrollytelling-9333d4fb {
        padding: 40px 0;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .scrollytelling-9333d4fb .st-sticky-container {
        flex-direction: column-reverse;
        padding: 0 20px;
    }
    .scrollytelling-9333d4fb .st-visual {
        position: relative;
        top: 0 !important;
        width: 100%;
        height: 45vh;
        margin-top: 30px;
        border-radius: 16px;
    }
    .scrollytelling-9333d4fb .st-content {
        width: 100%;
        padding: 0;
    }
    .scrollytelling-9333d4fb .st-step {
        min-height: auto;
        padding: 30px 0 30px 24px;
        opacity: 0.6;
        transform: none;
    }
    .scrollytelling-9333d4fb .st-step::before {
        top: 0;
        height: 100%;
    }
    .scrollytelling-9333d4fb .st-step.is-active::before {
        top: 0;
        height: 100%;
    }
}
