.rendering-solutions-section {
    background-color: #000;
    color: #fff;
    padding: 60px 50px;
    font-family: sans-serif;
}

.rendering-solutions-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.rendering-solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
}

.rendering-solutions-container h2 {
    font-size: 36px;
    line-height: 42px;
    font-weight: 600;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    color: white;
    padding-bottom: 10px;
    text-align: left;

}

.rendering-subtitle {
    font-size: 20px;
    line-height: 26px;
    font-weight: 400;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    font-family: Inter, sans-serif;
    color: white;
    padding-bottom: 50px;
    text-align: left;
}

/* --- STILI SLIDER BEFORE/AFTER --- */
.rendering-before-after-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    cursor: ew-resize;
}

.rendering-img-after,
.rendering-img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rendering-img-after {
    z-index: 1;
}

.rendering-before-container {
    z-index: 2;
}

.rendering-slider-handle {
    z-index: 3;
}

.rendering-before-after-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.rendering-before-container img {
    min-width: 100%;
}

.rendering-before-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    width: 50%;
    border-right: 2px solid #fff;
}

.rendering-img-before {
    width: 100%;
    max-width: none;
}

.rendering-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #6b6b6b;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
    z-index: 10;
}

.rendering-slider-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.rendering-label-ba {
    position: absolute;
    bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 5;
}

/* --- TEXT & BUTTONS --- */
.rendering-solution-text {
    margin-top: 25px;
}

.rendering-solution-text p {
    font-family: Inter, sans-serif;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    padding-bottom: 20px;
}

.rendering-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.rendering-btn-outline {
    border: solid 2px #ffffff;
    border-radius: 30px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    color: rgb(255, 255, 255);
    font-weight: 700;
    text-decoration: none;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 30px;
    padding-right: 30px;
    display: inline-block;
    margin-bottom: 20px;
}

.rendering-btn-outline:hover {
    border: solid 2px #000000;
    color: #000;
    background-color: white;
}

.rendering-btn-blue {
    background: #008cff;
    color: #fff;
}

.rendering-solutions-footer p {
    font-family: Inter, sans-serif;
    font-size: 28px;
    line-height: 34px;
    font-weight: 600;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    color: #ccc;
    padding-top: 60px;
    max-width: 600px;
    margin: 0 auto;
}

.rendering-label-after {
    bottom: 12px;
    right: 12px;
}

.rendering-label-before {
    bottom: 12px;
    left: 12px;
}

@media (max-width: 699px) {
    .rendering-solutions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 409px) {
    .rendering-solutions-section {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 410px) and (max-width: 699px) {
    .rendering-solutions-section {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (min-width: 700px) and (max-width: 870px) {
    .rendering-solutions-section {
        padding-left: 30px;
        padding-right: 30px;
    }
}


@media (max-width: 369px) {
    .rendering-solutions-container h2 {
        font-size: 26px;
        line-height: 32px;
    }
}

@media (min-width: 370px) and (max-width: 375px) {

    .rendering-solutions-container h2 {
        font-size: 24px;
        line-height: 30px;
    }
}

@media (min-width: 376px) and (max-width: 409px) {

    .rendering-solutions-container h2 {
        font-size: 27px;
        line-height: 33px;
    }
}

@media (min-width: 410px) and (max-width: 414px) {

    .rendering-solutions-container h2 {
        font-size: 28px;
        line-height: 34px;
    }
}

@media (min-width: 415px) and (max-width: 430px) {

    .rendering-solutions-container h2 {
        font-size: 29px;
        line-height: 35px;
    }
}

@media (min-width: 431px) and (max-width: 791px) {

    .rendering-solutions-container h2 {
        font-size: 30px;
        line-height: 36px;
    }
}

@media (min-width: 792px) and (max-width: 810px) {

    .rendering-solutions-container h2 {
        font-size: 31px;
        line-height: 37px;
    }
}

@media (min-width: 811px) and (max-width: 830px) {

    .rendering-solutions-container h2 {
        font-size: 32px;
        line-height: 38px;
    }
}

@media (min-width: 831px) and (max-width: 849px) {

    .rendering-solutions-container h2 {
        font-size: 33px;
        line-height: 39px;
    }
}


@media (min-width: 850px) and (max-width: 964px) {

    .rendering-solutions-container h2 {
        font-size: 35px;
        line-height: 41px;
    }
}


@media (max-width: 369px) {
    .rendering-subtitle {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (min-width: 370px) and (max-width: 1200px) {
    .rendering-subtitle {
        font-size: 18px;
        line-height: 24px;
    }
}

@media (max-width: 1128px) {
    .rendering-solution-text p {
        font-size: 16px;
        line-height: 22px;
    }

    .rendering-solution-text p {
        margin-block-start: 0px !important;
        margin-block-end: 0px !important;
    }
}

@media (max-width: 369px) {
    .rendering-solution-text p {
        line-height: 20px;
        font-size: 14px;
    }
}

@media (max-width: 369px) {
    .rendering-solutions-footer p {
        line-height: 26px;
        font-size: 18px;
    }
}

@media (min-width: 369px) and (max-width: 388px) {
    .rendering-solutions-footer p {
        line-height: 28px;
        font-size: 20px;

    }
}

@media (min-width: 389px) and (max-width: 409px) {
    .rendering-solutions-footer p {
        line-height: 30px;
        font-size: 22px;
    }
}

@media (min-width: 410px) and (max-width: 820px) {
    .rendering-solutions-footer p {
        line-height: 30px;
        font-size: 22px;
    }
}

@media (min-width: 821px) and (max-width: 943px) {
    .rendering-solutions-footer p {
        line-height: 34px;
        font-size: 26px;
    }
}

.before-after-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

/* entrambe le immagini PERFETTAMENTE sovrapposte */
.img-after,
.img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* layer */
.img-after {
    z-index: 1;
}

.before-container {
    position: absolute;
    top: -2px;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    z-index: 2;
}

/* handle sopra tutto */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}