@media only screen and (max-width: 1900px) {
    .menu_destra {
        display: none;
    }
    .footerdinamico_logo {
        margin: 0px auto;
        max-width: 120px;
        
    }
}

@media only screen and (max-width: 1500px) {
    .navig {
        padding-right: 20px;
        padding-left: 20px;
    }
    #menu li {
         margin: 0 15px;
    }
}

@media only screen and (max-width: 1300px) {
    .fixpadding_containerfull {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    #menu li {
         margin: 0 10px;
    }
    #menu li a{
        font-size:16px;
    } 
}

@media only screen and (max-width: 1200px) {

    nav.primary ul {
        float: left;
        margin-top: 20px;
        width: 100%;
    }

    nav.primary ul li a {
        margin-left: 0px;
        margin-right: 10px;
        margin-bottom: 10px;

    }

    .separator1-bg {
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        background-size: cover !important;
        background-attachment: initial !important;
    }

    .separator2-bg {
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        background-size: cover !important;
        background-attachment: initial !important;
    }

    .separator3-bg {
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        background-size: cover !important;
        background-attachment: initial !important;
    }

    .separator4-bg {
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        background-size: cover !important;
        background-attachment: initial !important;
    }

    .separator5-bg {
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        background-size: cover !important;
        background-attachment: initial !important;
    }

    .separator6-bg {
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        background-size: cover !important;
        background-attachment: initial !important;
    }

    .separator7-bg {
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        background-size: cover !important;
    }

    .separator8-bg {
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        background-size: cover !important;
        background-attachment: initial !important;
    }

    .separator9-bg {
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        background-size: cover !important;
        background-attachment: initial !important;
    }

    .al
    .one_halfho {
        padding: 20px;
    }

    .only-desktop {
        display: none;
    }

    .navig {
        padding-right: 20px;
        padding-left: 20px;
    }

    .news_boximg img {
        height: 160px;
    }

    .news_box {
        height: auto;
    }

    #menu-buttone-mobile {
        display: inline-block;
    }

    #menu-right-mobile {
        display: block;
    }

    .menu-right li {
        margin-left: 0px;
    }

    .navig #logomenu ul.menu-left {
        display: none;
    }

    #menu {
        display: none;
    }

    /* Menu responsive del sito */
    #menu > li > a:hover {
        color: black;
    }

    ul#menu {
        position: absolute;
        width: 100%;
        height: 100%;
        right: 0px;
        top: 0px;
        right: 0px;
        margin-top: 0px;
        padding-top: 0px !important;
        overflow-y: scroll;
        background-color: white;
        float: right;
        z-index: 9999999;
        box-shadow: -2px 0px 6px 0px rgb(0 0 0 / 16%);
        max-width: 320px;
    }

    .close_responsive, .search_box_responsive {
        display: block !important;
    }

    ul#menu li {
        display: block !important;
        margin-left: 0px;
        padding: 0px;
        border-top: 0px;
        margin-right: 0px
    }

    #menu li a {
        display: block;
        padding: 13px 0px !important;
        background-color: white;
        text-align: left;
        color: #3C3C3C;
        border-bottom: 1px solid #DDD;
        margin-left: 20px;
        margin-right: 20px;
        font-size: 14px;
        border-top: 0px !important;
        position: relative;
    }

    #menu li a.current {
        border-bottom: 1px solid #DDD;
    }

    .navig.fixedNav #menu {
        margin-top: 0px;
    }

    .dropshow {
        display: block !important;
    }

    .submenu {
        position: relative;
        margin-top: 0px;
        box-shadow: none;
        background-color: transparent;
    }

    .submenu li {
        width: 100% !important;
        border: 0px;
    }

    .submenu li a {
        color: black !important;
    }

    .submenu li a:hover {
        color: black !important;
    }

    ul.submenu.submenu2_left {
        left: 0px;
    }

    ul.submenu.submenu2 {
        position: relative;
        left: 0px;
    }

    #menu::-webkit-scrollbar {
        width: 10px;
    }

    /* Track */
    #menu::-webkit-scrollbar-track {
        border-radius: 0px;
        background-color: #FFF;
    }

    /* Handle */
    #menu::-webkit-scrollbar-thumb {
        background: #174a89;
        border-radius: 10px;
    }

    /* Handle on hover */
    #menu::-webkit-scrollbar-thumb:hover {
        background: #174a89;
    }

    .linietta_desktop {
        display: none !important;
    }

    .mostranews a {
        word-wrap: break-word;
    }

    .menu_destra {
        display: none;
    }

    .only_mobile {
        display: initial !important;
    }
    .insidehome {
        background-attachment: scroll;
    }
}

/* max-width: 959px */

@media only screen and (max-width: 959px) {
    h1, .h1_titolo {
        line-height: 1;
        font-size: 38px;
    }

    .one_all {
        width: 100%;
    }

    .container {
        width: 90%;
        padding-top: 50px;
        padding-bottom: 50px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .inside {
        padding-top: 110px !important;
    }
        nav.primary ul {
        float: left;
        margin-top: 20px;
        width: 100%;
    }

    nav.primary ul li a {
        margin-left: 0px;
        margin-right: 10px;
        margin-bottom: 10px;

    }

    .footer ul.contactus li {
        float: none;
        margin-bottom: 20px;
    }

    .separator1-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator2-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator3-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator4-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator5-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator6-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator7-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator8-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator9-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .row {
        display: block;
    }

    .one_halforce {
        width: 50% !important;
    }

    .one_halforce.last {
        padding-right: 2% !important;
    }

    .footer .logo_footer {
        display: block;
        margin: 0px auto;
        float: none;
    }

    .menu_sx {
        margin-right: 0px;
        margin-bottom: 50px;
    }

    .only-mobile {
        display: initial !important;
    }

    #menu .only-mobile {
        margin-left: 30px;
    }

    .tiponegozio {
        text-align: center;
    }

    .menu-right li {
        margin-left: 0px;
    }

    #arrow_left, #arrow_right {
        top: unset;
    }

    #arrow_right {
        float: right;
        right: 20px;
    }

    #arrow_left {
        float: left;
        left: 20px;
    }

    #arrow_left, #arrow_right {
        font-size: 42px;
        position: relative;
        bottom: 100px;
    }

    .separatoretop {
        height: 400px;
    }

    .boxhome .boximage_parag {
        padding-left: 30px;
        padding-right: 30px;
    }

    .boxhome .one_half {
        width: 100% !important;
        padding-top: 0px;
    }

    .boxhome .one_half:not(.boxhome_preimg) {
        padding-bottom: 15px;
        padding-top: 15px;
    }

    .boxhome:first-of-type .one_half.boxhome_preimg {
        padding-top: 0px;
    }

    .boxhome .boxhome_img {
        height: 230px;
    }

    .boxhome_fascia1 {
        margin-top: 85px !important;
    }

    .containerfull {
        margin-top: -40px !important;
    }

    .mb3 {
        margin-bottom: 23px !important;
    }

    .footer_social {
        margin-top: 15px;

    }

    .footer_social p {
        text-align: center;
    }

    .footer {
        text-align: center;
    }

    .result_notiz .result_notzimg {
        width: 100%;
        float: none;
    }

    .result_notiz .result_notzimg img {
        width: 100%;
    }

    .result_notiz .result_notzdescr {
        margin-left: 0px;
    }

    .insidehome .homepage_pagina_img {
        display: block;
    }

    .insidehome .sezionehome {
        margin: 0px;
        text-align: center;
        padding: 35px 15px;
    }
    .boxhome {
        flex-direction: column;
    }
    .boxhome .boxhome_img_right {
        order: 0;
    }
    .menu_sinistra, .menu_destra {
        width: auto;
    }
    .boxhome_nopadding .boximage_parag {
        padding: 0px;
        padding-bottom: 0px !important;
    }
    .footerdinamico_logo {
        margin: 0px auto;
    }
    
    #menu li a {
        margin: 0px 12px;
    }
    .servizi_colonnatitolo {
        margin-bottom: 15px !important;
    }
    .background {
        margin-top: 0px;
    }
    
    .gavelli_homepage {
        padding-left: 0px;
        padding-right: 0px;
    }
    .mb5_mobile {
        margin-bottom: 50px !important;
    }
    .footer_flex .footer_flex_elemento:last-child {
        margin-bottom: 0px;
    }
    .footer {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .blocco_info_contatti {
        margin-bottom: 60px;
    }
    .boxhome_stretch .background {
        height: auto !important;
        
    }
    .background {
        margin-top: 0px;
        height: auto !important;
        margin-bottom: 0px;
        padding: 40px 30px;
    }
    .box_studio_percorsi .boxhome {
        margin-top: 50px !important;
        margin-bottom: 50px !important;
    }
    .box_studio_percorsi h2 {
        font-size: 28px;
        text-align: center;
    }
}
@media only screen and (max-width: 767px) and (orientation: portrait) {

    .in-slide-content {
        left: 10px;
    }

    .navig ul li {
        margin-left: 0px !important;
    }

    .one_half, .one_half2 {
        width: 100%;
    }

    .one_half2 {
        padding-left: 10px;
        padding-right: 10px;
    }

    .full_sixth {
        width: 100%;
    }

    .one_half_full {
        width: 100%;
    }

    .one_third {
        width: 100%;
    }

    .one_fourth {
        width: 100%;
    }

    .one_fifth {
        width: 100%;
    }

    .one_sixth {
        width: 100%;
    }

    .two_fifth {
        width: 100%;
    }

    .two_fourth {
        width: 100%;
    }

    .two_third {
        width: 100%;
    }

    .three_fifth {
        width: 100%;
    }

    .three_fourth {
        width: 100%;
    }

    .four_fifth {
        width: 100%;
    }

    .five_sixth {
        width: 100%;
    }

    .third_fourth {
        width: 100%;
    }

    .one_half, .one_half_full, .one_third, .two_third, .three_fourth, .one_fourth, .two_fourth, .one_fifth, .two_fifth, .three_fifth, .four_fifth, .one_sixth, .five_sixth {
        float: left;
        margin-bottom: 20px;
        margin-right: 0;
        position: relative;
    }

    .separator1-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }


    .separator2-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator3-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator4-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator5-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator6-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator7-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator8-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator9-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    #menu-buttone-mobile {
        display: inline-block;
    }

    #menu-right-mobile {
        display: block;
    }

    .navig #logomenu ul.menu-left {
        display: none;
    }

    #menu {
        display: none;
    }

    .ordine-hal .btn_procedi {
        display: none !important;
    }

    #logo img {
       
    }



}

@media only screen and (max-width: 767px) {
    .navbar-cont {
        top: 0px;
        position: fixed;
    }

    .navig ul li {
        margin-left: 0px;
    }

    .separatoretop {
        height: 250px;
    }
}


@media only screen and (max-width: 479px) and (orientation: portrait){
    
.boxhome h2 {
    margin-bottom: 10px;
    color: #04c9a5;
    text-align: left;
    font-size:25px;
}
    .container {
        padding-top: 40px
    }

    .center_mobile {
        text-align: center;
    }

    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 28px;
    }

    h4 {
        font-size: 20px;
    }

    h5 {
        font-size: 14px;
    }


    .hg_h3 {
        text-align: center;
        font-size: 22px;
        margin-bottom: 10px;
    }

    .homepage_subtitle {
        text-align: center;
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 35px;
    }

    .pagina .copertina {
        max-width: 100% !important;
    }

    .two_fourth img {

        width: 100%;
        height: auto;
    }

    #arrow_right {
        right: 20px;
    }

    #arrow_left {
        left: 20px;
    }

    #arrow_left img, #arrow_right img {
        width: 10px;
    }

    .one_third {
        width: 100%;
    }

    .one_fourth {
        width: 100%;
    }

    .one_fifth {
        width: 100%;
    }

    .one_sixth {
        width: 100%;
    }

    .two_fifth {
        width: 100%;
    }

    .two_fourth {
        width: 100%;
    }

    .two_third {
        width: 100%;
    }

    .three_fifth {
        width: 100%;
    }

    .three_fourth {
        width: 100%;
    }

    .four_fifth {
        width: 100%;
    }

    .five_sixth {
        width: 100%;
    }

    .one_half, .one_third, .two_third, .three_fourth, .one_fourth, .two_fourth, .one_fifth, .two_fifth, .three_fifth, .four_fifth, .one_sixth, .five_sixth {
        float: left;
        margin-bottom: 20px;
        margin-right: 0;
        position: relative;
    }


    .prev {
        float: left;
        background: url(../images/left_hover.png) no-repeat scroll 19px 15px #14609d;
        width: 50px;
        height: 50px;
        padding: 0px;
        -moz-border-radius: 50px;
        -webkit-border-radius: 50px;
        -o-border-radius: 50px;
        border-radius: 25px;
    }

    .next {
        float: right;
        background: url(../images/right_hover.png) no-repeat scroll 19px 15px #14609d;
        width: 50px;
        height: 50px;
        padding: 0px;
        -moz-border-radius: 50px;
        -webkit-border-radius: 50px;
        -o-border-radius: 50px;
        border-radius: 25px;
    }


    .next:hover {
        background: url(../images/right_hover.png) no-repeat scroll 19px 15px #14609d;
    }

    .prev:hover {
        background: url(../images/left_hover.png) no-repeat scroll 19px 15px #14609d;
    }

    .separator1-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator2-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator3-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator4-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator5-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator6-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator7-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator8-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }

    .separator9-bg {
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
    }


    .one_third img {
        width: 100%;

    }

    #menu-buttone-mobile {
        display: inline-block;
    }

    ul#menu {
        top: 0px;
    }

    img.logo_portfolio {
        width: 130px;
        height: 80px;
    }

    .news-grid .news-grid-img img {
        height: 160px;
    }

    .imgserv2 {
        height: 140px !important;
    }

    .boxhome_imgobject {
        height: 310px;
        object-fit: cover;
    }

    .container-news {
        padding-bottom: 50px;
        padding-top: 50px;
    }

    .list_carousel li {
        height: auto;
        width: 280px;
    }

    .news-intro {
        height: auto;
        width: 100%;
    }

    .news img {
        height: 190px;
    }

    .news-navigation {
        width: 120px;
    }

    #altrefoto .one_third {
        padding-bottom: 0px;
    }

    .result_notiz .result_notzdescr h3 {
        font-size: 18px;
        line-height: 20px
    }

    .mostranews h1 {
        font-size: 21px;
        line-height: 27px;
    }

    .in-slide-content {
        bottom: 40px;
    }

    .in-slide-content h2 {
        font-size: 48px;
        line-height: 29px;
    }

    .in-slide-content p {
        font-size: 23px;
    }

    .insidehome {
        display: block;
        height: auto;
        background-attachment: initial;
    }

    .blocco_info_contatti {
        flex-direction: column;
    }
    .footer_flex {
        flex-direction: column;
    }
    .boxhome_imgobject{
        height: auto;
    }
    
    .error404 {
        font-size: 32px;
        line-height: normal;
    }

   .titoli h1 {
        font-size: 45px;
        line-height: 1;
    }
    .titoli h2 {
        font-size: 35px;
        line-height: 1;
    }
    .titoli h3 {
        font-size: 30px;
        line-height: 1;
    }
    .titoli h4 {
        font-size: 25px;
        line-height: 1;
    }
    .titoli h5 {
        font-size: 20px;
        line-height: 1;
    }
     .paragrafo p {
        font-size: 16 px;
        line-height: 1;
    }
    .home_paragrafo {
        text-align: center;
    }

    .color_onlymobile {
        color: #3e231a;
    }
    .boximage_parag_piccolo {
        padding: 30px !important;
    }
    .pubblicazioni_header {
        font-size: 38px;
    }
    .footer {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .footer .bloccoBoxRow {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: row;
        align-items: center;
    }
    .footer .bloccoBoxRow .one_fourth:first-child,
    .footer .bloccoBoxRow .one_fourth:nth-child(2) {
        flex: 100%;
    }
    
    .footer .bloccoBoxRow .one_fourth {
        flex: 1;
        text-align: left;
    }
    .footer .link_powerby_elevel {
        display: none;
    }
    .footer .link_powerby_elevel_mobile {
        display: block;
    }
    .footer_col_intestazione {
        font-size: 17px;
        margin-bottom: 0px;
        white-space: normal;
    }
    .link_powerby_elevel {
        display: none;
    }
}