* {
    box-sizing: border-box;
}

.hslider_metashape_section {
    background: #000;
    color: #fff;
    padding: 60px 50px;
    overflow: hidden;
    font-family: sans-serif;
}

.hslider_metashape_header {
    max-width: 1400px;
    margin: 0 auto;
}

.hslider_metashape_title {
    font-size: 36px;
    line-height: 42px;
    font-weight: 600;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    padding-bottom: 10px;
    color: rgb(255, 255, 255);
}

.hslider_metashape_description {
    font-size: 20px;
    color: #ffffff;
    line-height: 26px;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    font-weight: 400;
    padding-bottom: 30px;
}

.hslider_metashape_wrapper {
    max-width: 1400px;
    margin: auto;
    overflow: hidden;
    /* Taglia i cloni fuori dal container */
}

.hslider_metashape_track {
    display: flex;
    gap: 30px;
    /* Spazio uniforme tra le card */
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.hslider_metashape_slide {
    /* Calcolo: (100% del padre - i 3 gap totali) / 4 card */
    flex: 0 0 calc((100% - (30px * 3)) / 4);
    min-width: 0;
    /* Previene overflow di contenuti testuali */
}

.hslider_metashape_slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.hslider_metashape_slide h3 {
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    padding-bottom: 15px;
    color: #fff;
}

.hslider_metashape_slide 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;
    color: #fff;
}

.hslider_metashape_controls {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 40px;
    max-width: 1400px;
    margin: auto;
    margin-bottom: 40px;
}

.hslider_metashape_arrow {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.hslider_metashape_arrow:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.32);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 699px) {
    .hslider_metashape_track {
        gap: 20px;
    }

    .hslider_metashape_slide {
        flex: 0 0 100%;
        /* Una card alla volta su mobile */
    }
}

@media (min-width: 700px) and (max-width: 870px) {
    .hslider_metashape_slide {
        flex: 0 0 48%;
        /* Una card alla volta su mobile */
    }
}

@media (max-width: 409px) {
    .hslider_metashape_section {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 410px) and (max-width: 699px) {
    .hslider_metashape_section {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (min-width: 700px) and (max-width: 870px) {
    .hslider_metashape_section {
        padding-left: 30px;
        padding-right: 30px;
    }
}


@media (max-width: 369px) {
    .hslider_metashape_title {
        font-size: 26px;
        line-height: 32px;
    }
}

@media (min-width: 370px) and (max-width: 375px) {
    .hslider_metashape_title {
        font-size: 24px;
        line-height: 30px;
    }
}

@media (min-width: 376px) and (max-width: 409px) {
    .hslider_metashape_title {
        font-size: 27px;
        line-height: 33px;
    }
}

@media (min-width: 410px) and (max-width: 414px) {
    .hslider_metashape_title {
        font-size: 28px;
        line-height: 34px;
    }
}

@media (min-width: 415px) and (max-width: 430px) {
    .hslider_metashape_title {
        font-size: 29px;
        line-height: 35px;
    }
}

@media (min-width: 431px) and (max-width: 791px) {
    .hslider_metashape_title {
        font-size: 30px;
        line-height: 36px;
    }
}

@media (min-width: 792px) and (max-width: 810px) {
    .hslider_metashape_title {
        font-size: 31px;
        line-height: 37px;
    }
}

@media (min-width: 811px) and (max-width: 830px) {
    .hslider_metashape_title {
        font-size: 32px;
        line-height: 38px;
    }
}

@media (min-width: 831px) and (max-width: 849px) {
    .hslider_metashape_title {
        font-size: 33px;
        line-height: 39px;
    }
}


@media (min-width: 850px) and (max-width: 964px) {
    .hslider_metashape_title {
        font-size: 35px;
        line-height: 41px;
    }
}


@media (max-width: 369px) {
    .hslider_metashape_description {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (min-width: 370px) and (max-width: 1200px) {
    .hslider_metashape_description {
        font-size: 18px;
        line-height: 24px;
    }
}

@media (max-width: 1066px) {
    .hslider_metashape_slide h3 {
        font-size: 18px;
        line-height: 24px;
    }
}

@media (min-width: 1067px) and (max-width: 1231px) {
    .hslider_metashape_slide h3 {
        font-size: 20px;
        line-height: 26px;
    }
}

@media (max-width: 1128px) {
    .hslider_metashape_slide p {
        font-size: 16px;
        line-height: 22px;
    }

    .hslider_metashape_slide p {
        margin-block-start: 0px !important;
        margin-block-end: 0px !important;
    }
}

@media (max-width: 369px) {
    .hslider_metashape_slide p {
        line-height: 20px;
        font-size: 14px;
    }
}