@media screen and (max-width: 1300px) {

    #case_history .w-grid-list {
        display: flex;
        width: auto;
        height: auto;
        aspect-ratio: auto;
        gap: 0;
    }
    #case_history .w-grid-item {
        width: 33%;
        min-height: 250px;
        min-width: auto;
        filter: drop-shadow(0px 32px 58px rgba(41, 97, 88, 0.2));
        -webkit-filter: drop-shadow(0px 32px 58px rgba(41, 97, 88, 0.2));
    }
    #case_history .w-grid-item:hover{
        width:  33%;
        height: auto;
    }
    #case_history .w-grid-item:hover .post_image img {
        transform: scale(0.4);
        top: -30px;
        left: -30px;
    }

    #chi_siamo .g-cols.wpb_row {
        padding-left: 5%;
    }
    #chi_siamo .col_gap {
        padding-top: 10%;
    }

    .section_vision .g-cols.via_grid .g-cols {
        grid-gap: 3rem!important;
    }
    .section_vision .g-cols.via_grid.type_boxes>.vc_column_container {
        padding: 2rem;
    }
    .section_vision .w-separator{
        height: 4rem!important;
    }
    .section_vision h2 {
        font-size: 54px;
        line-height: 60px;
        min-height: 132px;
    }
    .header_case_history.l-section .w-image-h img {
        width: 200px;
    }

}
@media screen and (max-width: 1100px) {

    header#page-header .l-subheader-cell.at_right .w-nav ul.w-nav-list {
        padding: 2rem 15%;
    }
    #case_history .w-grid-item h4 {
        font-size: 18px;
        line-height: 28px;
    }
    #chi_siamo p {
        font-size: 16px;
        line-height: 28px;
    }
    #chi_siamo .w-hwrapper.valign_top {
        --hwrapper-gap: 30px!important;
    }
    #chi_siamo .w-separator.size_large:empty {
        height: 2rem;
    }
    #chi_siamo .w-separator.size_medium:empty {
        height: 1.5rem;
    }

    #portfolio .g-cols.wpb_row {
        padding: 0 1.5rem;
    }

    #header_chisiamo.outline_title h1 {
        font-size: 140px;
        line-height: 140px;
        letter-spacing: 6px;
        margin-bottom: -92px;
    }

    .header_case_history.l-section.full_height {
        height: 90vh;
        min-height: 90vh;
    }

}
@media screen and (max-width: 1024px) {

    header#page-header .l-subheader-cell.at_right .w-nav ul.w-nav-list a.w-nav-anchor {
        font-size: 40px;
        letter-spacing: 3px;
    }
    #case_history .w-grid-item:hover {
        width: 50%;
    }
    #chi_siamo .g-cols.wpb_row {
        padding-left: 3%;
        grid-gap: 0rem;
    }
    #chi_siamo h2 {
        z-index: 0;
        position: relative;
    }
    #chi_siamo p {
        font-size: 15px;
        line-height: 25px;
    }
    #chi_siamo .w-separator.size_medium:empty {
        height: 1rem;
    }
    footer .g-cols.wpb_row{
        grid-gap: 2rem!important;
    }

    #header_chisiamo.outline_title h1 {
        font-size: 100px;
        line-height: 100px;
        letter-spacing: 5px;
        margin-bottom: -80px;
    }
    .section_vision .g-cols.via_grid .g-cols {
        grid-gap: 1rem!important;
    }
    .section_vision .g-cols.via_grid.type_boxes>.vc_column_container {
        padding: 1.5rem;
    }
    .section_vision .w-separator{
        height: 3rem!important;
    }
    .section_vision h2 {
        font-size: 40px;
        line-height: 45px;
        min-height: 90px;
    }

    .page-id-161 footer #box_contatti {
        padding-top: 18vmax;
    }

    .header_case_history.l-section .l-section-h.i-cf .g-cols.via_grid>.wpb_column.vc_column_container {
        background-size: 85%!important;
    }
    .case_history-template-default h1 {
        font-size: 40px;
        line-height: 1;
    }

}
@media screen and (max-width: 768px) {

    #chi_siamo .g-cols.stacking_default.via_grid.mobiles-cols_1 {
        grid-template-columns: 100%;
    }
    #chi_siamo .g-cols.wpb_row {
        grid-gap: 3rem;
    }
    #chi_siamo .w-html {
        overflow: hidden;
    }
    #chi_siamo .w-html video {
        margin-top: -3px;
    }
    #chi_siamo .w-separator.size_large:empty {
        height: 3rem;
    }
    #chi_siamo .w-separator.size_medium:empty {
        height: 2rem;
    }

    #header_chisiamo.outline_title h1 {
        font-size: 80px;
        line-height: 90px;
        margin-bottom: -74px;
    }
    section.section_vision.l-section {
        background: none!important;
    }
    .section_vision .g-cols.via_grid .g-cols {
        grid-gap: 3rem!important;
        grid-template-columns: 100%;
    }
    .section_vision .g-cols.via_grid.type_boxes>.vc_column_container {
        padding: 0;
    }
    .section_vision h2 {
       background: #8DC53E;
       padding: 30px 20px 0;
    }
    .section_vision h2 br {
        display: none;
    }
    .section_vision p {
       padding: 20px;
    }
    .section_vision .w-separator{
        height: 1rem!important;
    }

    .header_case_history.l-section .l-section-h.i-cf .g-cols.via_grid>.wpb_column.vc_column_container {
        background: none!important;
    }
    .header_case_history.l-section.full_height {
        height: 70vh;
        min-height: 70vh;
    }
    .header_case_history.l-section .l-section-h.i-cf .w-image-h {
        background: #ffffffb3;
        padding: 20px;
        display: inline-block;
    }
    .header_case_history.l-section .w-image-h img {
        width: 180px;
    }

}
@media screen and (max-width: 600px) {

    header#page-header .l-subheader-cell.at_right .w-nav ul.w-nav-list {
        padding: 2rem 8%;
    }
    header#page-header .l-subheader-cell.at_right .w-nav ul.w-nav-list a.w-nav-anchor {
        font-size: 35px;
        letter-spacing: 2px;
    }
    header#page-header .l-subheader-cell.at_right .w-nav .w-nav-list .w-nav-close {
        width: 65px;
        height: 65px;
        top: 6px;
        right: 18px;
    }
    #header_home video {
        height: 50vh;
        object-fit: cover;
    }
    #case_history .w-grid-list .w-grid-item {
        margin-bottom: 10px;
    }
    #case_history .w-grid-item:hover {
        width: 100%;
    }

    #chi_siamo .w-hwrapper.valign_top {
        /* padding: 0 3%; */
        padding-right: 3%;
    }

    footer #box_contatti .g-cols.wpb_row {
        grid-gap: 5rem!important;
    }
    footer #box_footer .g-cols.wpb_row {
        grid-gap: 3rem!important;
    }

    #header_chisiamo.outline_title h1 {
        font-size: 70px;
        line-height: 80px;
        margin-bottom: -60px;
    }
    .w-grid.type_carousel .owl-nav {
        bottom: -110px;
    }

}
@media screen and (max-width: 480px) {

    header#page-header .l-subheader-cell.at_right .w-nav .w-nav-list .w-nav-close {
        font-size: 28px;
        width: 60px;
        height: 60px;
        top: 10px;
        right: 16px;
    }
    .title_section h2 {
        font-size: 30px;
    }
    .title_section h2:after {
        width: 240px!important;
        height: 46px!important;
        margin-top: -38px!important;
    }
    header#page-header .l-subheader-cell.at_right .w-nav.ush_menu_1 {
        width: 60px!important;
        height: 60px!important;
    }
    header#page-header .l-subheader-cell.at_right .w-nav .w-nav-control {
        height: 60px;
    }
    #case_history {
        margin: 40px 0;
    }
    #case_history .title_section h2:after {
        width: 270px!important;
        height: 50px!important;
        margin-top: -40px!important;
    }
    #chi_siamo .col_gap {
        padding-top: 15%;
    }
    #chi_siamo .w-hwrapper.valign_top {
        display: grid;
    }
    #chi_siamo .g-cols.wpb_row {
        padding-left: 6%;
    }
    .wpcf7 .box_flex {
        column-gap: 0rem;
    }

    #header_chisiamo.outline_title h1 {
        font-size: 60px;
        letter-spacing: 2px;
        line-height: 70px;
        margin-bottom: -54px;
        -webkit-text-stroke-width: 1px;
    }
    section h3 {
        font-size: 32px;
        line-height: 1.2;
    }
    .header_case_history.l-section .l-section-h.i-cf {
        backdrop-filter: blur(0px);
    }
    .w-grid.type_carousel .owl-nav {
        bottom: -100px;
    }
    #related_case_history .title_section h2 {
        font-size: 22px;
    }
    #related_case_history .title_section h2:after {
        width: 320px!important;
        height: 46px!important;
        margin-top: -26px!important;
    }
    #portfolio .w-grid.type_carousel .w-post-elm.post_image img {
        /* height: 180px; */
    }
    .page-id-161 footer #box_contatti {
        padding-top: 24vmax;
    }

}
