@media only screen and (max-width: 959px) {

    h1, .h1_titolo {
        line-height: 1;
        font-size: 38px;
    }

    .one_all {
        width: 100%;
    }


    .inside {
        padding-top: 160px !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;
    }

    .in-slide-content {
        left: 20px;
        bottom: 100px;
    }

    #arrow_right {
        float: right;
        right: 20px;
    }

    #arrow_left {
        float: left;
        left: 20px;
    }

    #arrow_left, #arrow_right {
        top: unset;
        font-size: 42px;
        position: relative;
        bottom: 100px;
    }

    .separatoretop {
        height: 400px;
    }

    .boxhome .boximage_parag {
        padding-left: 30px;
        padding-right: 30px;
    }

    .boxhome .boximage_parag_right {
        padding-right: 0px;
    }

    .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;
    }


    .mb3 {
        margin-bottom: 23px !important;
    }

    .footer_social {
        margin-top: 15px;

    }

    .footer_social p {
        text-align: center;
    }

    .footer {
        text-align: center;
        display: grid;
        gap: 30px;
    }

    .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;
    }
    
    .centrato_mobile {
        text-align: center;
    }
}


@media only screen and (max-width: 767px) and (orientation: portrait) {

    .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-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 {
        height: 70px;
    }
    
    .container,
  .container_noimg,
  .container_img,
  .container.fullcontainer,
  .container_colorgr {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .container_img {
    padding-top: 20px;
  }

  .container.fullcontainer,
  .container_colorgr {
    padding: 40px 0px 15px 0px;
  }

}

@media only screen and (max-width: 767px) {

    .navig ul li {
        margin-left: 0px;
    }

    .separatoretop {
        height: 350px;
    }

    .feed_eventi .box_feed_evento {
        width: 100%;
    }

    .box_feed_evento .box_feed_evento_img,
    .box_feed_evento .box_feed_evento_dett {
        width: 50%;
    }

    .box_feed_evento .box_feed_evento_dett_cal {
        height: 60px;
        width: 60px;
    }

    .griglia_carousel_img .altrefoto_img {
        height: 200px !important;
    }
}

@media only screen and (max-width: 479px) and (orientation: portrait) {

    .center_mobile {
        text-align: center;
    }

    h1 {
        font-size: 25px;
        text-align: center;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 18px;
    }

    h5 {
        font-size: 16px;
    }
    
    .sottotitolo {
        font-size: 18px;
    }


    .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;
    }

    .altrefoto_img {
        height: 140px !important;
        object-fit: cover;
    }

    .boxhome_imgobject {
        height: 310px;
    }

    .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 {
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }

    .in-slide-content h1,
    .in-slide-content h2 {
        font-size: 48px;
        line-height: 48px;
    }
    
    .in-slide-content h1,
    .in-slide-content h2,
    .in-slide-content p {
        text-align: center;
        float: unset;
    }
    

    .insidehome {
        display: block;
        height: auto;
        background-attachment: initial;
    }

    .barra_top_navig {
        padding-left: 20px;
        padding-right: 20px;
    }

    .elenco_puntato_grande .fa-solid {
        margin-right: 5px;
    }

    .elenco_puntato_grande {
        font-size: 16px;
    }

    .footer {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .footer .bloccoBoxRow {
        display: flex;
        flex-wrap: wrap;
        justify-content: start;
    }

    .footer .bloccoBoxRow .one_fourth {
        flex: 1 50%;
        text-align: left;
        max-width: fit-content;
    }

    .footer .bloccoBoxRow .one_fourth:first-child {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
    }

    .footer .bloccoBoxRow .one_fourth:nth-child(2) {
        max-width: unset;
        text-align: left;
    }

    .only_desktop {
        display: none;
    }

    .mt0_mb {
        margin-top: 0px !important;
    }

    .grid-item {
        width: 100% !important
    }

    .menu_top_login {
        height: auto;
    }

    .menu_top_login .barra_login_form .barra_login_input:first-child {
        margin-top: 0px;
    }

    .menu_top_login .barra_login_form .barra_login_input {
        margin-top: 15px;
    }

    .menu_top_login .barra_login_form {
        justify-content: start;
        padding: 15px 20px;
    }

    .barra_login_form form {
        flex-direction: column;
    }

    .barra_login_form .barra_login_input {
        margin-right: 0px;
    }

    .barra_login_form input[type='text'],
    .barra_login_form input[type='password'] {
        width: 250px;
    }

    .barra_top_navig {
        text-align: center;
    }

    .barra_top_navig a:first-child {
        width: 100%;
    }

    .link_powerby_elevel {
        display: none;
    }

    .link_powerby_elevel_mobile {
        display: block;
    }

    .footerdinamico_logo {
        max-width: unset;
    }

    .numerihome {
        font-size: 35px;
        font-weight: 600;
        color: #DA4D7F;
    }

    .datihome {
        font-size: 22px;
        font-weight: 500;
        color: #444444;
    }

    .scrittahome {
        font-size: 14px;
        font-weight: 400;
        color: #444444;
    }

    .fascia-pagina-slick .in-slide-img-top {
        width: 100%;
        margin-top: 90px;
    }

    #box_form_lavoraconnoi {
        background: #eeeeee;
        padding: 10px;
    }

    .form_lavoraconnoi h3 {
        font-weight: 800;
        color: #585858;
        font-size: 25px;
        margin-bottom: 20px;
    }

    .immagineform {
        width: 250px;
    }

    .in-slide-content h1,
    .in-slide-content h2 {
        font-size: 40px;
        line-height: 40px;
        margin-bottom: 30px;
    }

    .in-slide-content p {
        z-index: 20;
        color: #FFF;
        font-size: 23px;
        line-height: initial;
        margin: 0px !important;
    }

    #arrow_right {
        float: right;
        right: 20px;
    }

    #arrow_left {
        float: left;
        left: 20px;
    }


    .sfondoorg {
        background-color: #FFF;
        padding: 20px;
        border: 1px solid #dedede;
        border-radius: 10px;
        height: 115px;
    }
    
    .strumenti-wrapper .one_third {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .btn_info {
        font-size: 18px;
        padding: 10px 20px;
    }
    
    .btn_action {
        font-size: 18px;
        padding: 10px 20px;
    }
}

@media only screen and (max-width: 385px) and (orientation: portrait) {
    .footer_flex .footer_flex_elemento {
        flex: unset !important;
        width: 100% !important;
        max-width: unset !important;
        text-align: center !important;
    }
}


.mt50 {
    margin-top: 15px !important;
}

.mb50 {
    margin-bottom: 15px;
}


.fascia-pagina-slick .in-slide-img-top {
    width: 100%;
    margin-top: 90px;
}