/* MEDIA QUERY  ****************************************************/

@media only screen and (min-width: 768px) {
    .cd-top {
        right: 20px;
        bottom: 20px;
    }

}

@media only screen and (min-width: 1024px) {
    .cd-top {
        height: 50px;
        width: 50px;
        right: 30px;
        bottom: 55px;
        -webkit-border-radius: 2px;
        -moz-border-radius: 2px;
        border-radius: 2px;
    }

}

@media (max-width:767px){
    #icone-servizi-home { margin-top: -10px;}
}

@media (max-width: 1200px) {
    #special-timer{
        white-space: nowrap;
    }
    .sos-blocco {
        margin-left: 15px;
    }
    .product-grid .product-thumb .caption {
        min-height: 210px;
        padding: 0 10px;
    }
    .row-padded {
        padding: 20px 0px;
    }
    #blocco-reteimprese {
        margin-left: 0px !important;
    }
    .product-thumb .button-group button,
    .product-thumb .button-group button+button {
        width: 33.33%;
    }
    #content .col-lg-2:nth-child(6n+1),
    #content .col-lg-2:nth-child(6n+1),
    #content .col-lg-3:nth-child(4n+1),
    #content .col-lg-4:nth-child(3n+1),
    #content .col-lg-6:nth-child(2n+1) {
        clear: left;
    }
    .user-full-image-profile {
        width: 210px;
        height: 210px;
    }
    #main-carousel .carousel-caption>div {
        display: table-cell;
    }
}

@media (max-width: 1000px) {
    #homeCarousel .carousel-capt {
        margin-top: 10px;
    }
    .slide-home-1:before {
        background: rgba(218, 52, 113, 0.8);
        width: 100%;
    }
    .navbar-header-title {
        display: none;
    }
    .testo-reteimprese {
        font-size: 2rem;
        line-height: 135%;
    }
    .btn-slider {
        height: 43px;
        padding: 0;
        line-height: 9px;
        font-size: 1.3em;
    }
    body {
        font-size: 1.8rem;
    }
    .heading {
        margin-top: 10px;
    }
    .row-padded {
        padding: 20px 0px;
    }
    .caption {
        padding-top: 0px;
    }
    #carousel-icons {
        padding-top: 20px;
    }
    #ricerca {
        text-align: center;
    }
    #ricerca .ricerca-input,
    .ricerca-select,
    #ricerca #ricerca-button {
        display: inline-block;
        vertical-align: middle;
    }
    #ricerca .ricerca-divs {
        margin: 10px 0px;
    }
    .heading.container #ricerca-select {
        margin-bottom: 40px;
    }
    #funzioni-modals-image {
        max-width: 90%;
        width: 150px;
        margin-bottom: 15px;
    }
    .modal-footer .col-md-12 {
        padding: 0px;
        display: block;
        text-align: center;
    }
    .modal-footer .col-md-4 {
        padding: 0px;
        display: inline-block;
    }
    .modal-footer .col-md-4.text-left {
        float: left;
    }
    .modal-footer .col-md-4.text-right {
        float: right;
    }

    #box-scheda .blocco-contact-items {
        text-align: right;
    }

    #homeCarousel p {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    body {
        font-size: 1.8rem;
    }
    
    #store-nuovo-prodotto .photo-col img {
        width: auto !important;
    }

    #inserisci-attivita-bck {
        margin-bottom: 0;
    }

    .bg-home {
        display: none;
    }
    .youtube-video {
        display: none;
    }
    #navigation .container {
        width: 100%;
    }
    #navigation .navbar-nav>li>a {
        padding-right: 10px;
        padding-left: 10px;
    }
    #map-catlist {
        top: 360px;
        right: 30%;
    }
    #mappa-italia {
        margin-top: 0 !important;
    }
    .minimap {
        pointer-events: none;
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: -210px;
    }
    #navigation .navbar-nav li:nth-of-type(2) {
        /* margin-right: 10px; */
    }
    .search-result-wrap .result-sort-filter [class^="col-"] {
        padding: 0px !important;
        margin: 0px 5px !important;
    }
    .greytag {
        font-size: 11px;
    }
    .bg-home {
        background-size: cover;
        height: 100%;
    }
    *.tohide-tablet {
        display: none !important;
    }
    #ricerca-select .btn-group,
    .btn-group-vertical {
        padding: 0px;
    }
    #informazioni-attivita .col-lg-6 {
        padding: 0px;
    }
    #homeCarousel .item {
        height: 530px;
    }
    [id^='gal-'] .pic {
        padding: 20px 4px;
    }
    .gallery .user-full-card {
        height: 200px;
    }
    .offerta-prezzo-wrap {
        padding: 0px;
    }
    .offerta-prezzo-wrap div[class^='col-'] {
        padding-right: 0px;
    }
    .user-full-card {
        padding: 10px 15px;
    }
    #registrazione-home {
        background: linear-gradient(to bottom, #126d90 50%, #4d4d4d 50%)
    }
    #reteimprese-home h3,
    #reteimprese-home p {
        text-align: center;
    }
    #reteimprese-home .btn.btn-secondary {
        float: none !important;
        margin: 0 auto;
    }
    .img-scarica-app {
        display: none;
    }
}

@media  (max-width: 991px) and (orientation: portrait) {
    .preview-box {min-height: 490px;}
    #box-store-ads .crop {    min-height: 23vw;}
    #box-store-ads .strumenti-box p {font-size: 2.5vw;}
}

/*
@media  (max-width: 1024px) and (orientation: landscape) {
    #box-store-ads .crop {min-height: 250px;}
}
*/

@media (min-width: 767px) and  (max-width: 1023px) {
    .edil-phone {
        padding: 9px;
        right: 75px;
        bottom: 19px;
        border-radius: 1px;
    }
}


@media (min-width: 992px) and (max-width: 1024px) and (orientation: landscape) {
    .home-carousel .crop {min-height: 80px;}
}


@media (min-width: 737px) and (max-width: 992px) and (orientation: landscape) {
    #icone-servizi-home .padding-mini {
        padding: 0 5px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    #content .col-md-2:nth-child(6n+1),
    #content .col-md-2:nth-child(6n+1),
    #content .col-md-3:nth-child(4n+1),
    #content .col-md-4:nth-child(3n+1),
    #content .col-md-6:nth-child(2n+1) {}
    #navigation .container {
        width: 99%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #content .col-sm-2:nth-child(6n+1),
    #content .col-sm-2:nth-child(6n+1),
    #content .col-sm-3:nth-child(4n+1),
    #content .col-sm-4:nth-child(3n+1),
    #content .col-sm-6:nth-child(2n+1) {
        clear: left;
    }
    .menuheader {
        display: none;
    }
    .menufooter {
        display: none;
    }
    .logoediltouch {
        margin-top: -10px;
    }
    .user-full-image-profile {
        width: 160px;
        height: 160px;
    }
    #preventivi-header {
        height: 300px;
    }
}

@media (max-width: 520px) {
    .search-buttons{margin-left: auto !important;}
    .search-buttons #ricerca-button{width: 100%;}
    .search-buttons #ricerca-button .btn-slider-top{display: block;}
}

@media (max-width: 768px) and (orientation: portrait) {
    #icone-servizi-home .padding-mini {
        padding: 0 5px;
    }
    ul.menu-footer {
        display: none;
    }
}

@media (max-width: 767px) {

    .edil-phone {
        right: 65px;
        bottom: 39px;
        padding: 9px;
    }


    #cerca input,
    #video-sec .btn-group>.btn,
    #ricerca button {
        margin: 5px 0;
    }

    .birth_date_text {
        margin-top: 0px;
    }

    .select-birth-line {padding-left: 0; padding-right: 0;}

    .premium-background { margin-top: 60px; height: auto; margin-bottom: auto;}

    .account-premium-title {text-align: center !important}

    .search-buttons{margin-left: 39.33333333%;}
    #dropdown-profile{background-color: #fff;}
    #video-sec{margin-top: 40px;}
    #video-sec h1 {
        padding-top: 20px;
        font-size: 2.5rem;
    }
    #video-sec h4 {
        font-size: 2rem;
    }
    #homeCarousel .item {
        height: 560px;
    }
    #modal-icone-home .modal-dialog {
        max-width: 500px;
        min-width: 400px;
    }
    .btn-modifica-profilo {
        position: absolute;
        top: 0px;
        right: 0px;
        font-size: 1rem !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }
    .user-full-wrap .nav-tabs {
        margin-top: -50px;
    }
    .common-scheda .search-result-wrap .container {
        padding-left: 0px;
        padding-right: 0px
    }
    .user-full-wrap .nav-tabs>li>a {
        padding: 8px 10px;
        font-weight: 400;
        font-size: 1.25rem;
    }
    .offerta h4 {
        margin-top: 10px;
    }
    .gallery .user-full-card {
        height: 250px;
    }
    .main-wrapper-close {
        margin-top: 0px;
    }
    .user-full-wrap li.separator-vert {
        display: block;
        border: none !important;
        padding: 0px !important;
        margin-bottom: 4px;
    }
    .user-full-wrap li.separator-vert .fa {
        text-align: left !important;
    }
    .user-full-profile-text>h1 {
        font-weight: 700;
        font-size: 16px;
    }
    .user-full-wrap #googlemap #map {
        height: 300px;
    }
    .user-full-wrap .blocco-contact-items {
        margin-left: 0px;
    }
    .user-full-image-profile {
        z-index: 9;
        width: 200px;
        margin: 0 auto;
        margin-top: -120px;
        text-align: center;
        display: block;
        height: 200px;
        margin-bottom: 10px;
    }
    .user-full-profile .user-full-image-lg {
        height: 220px;
    }
    ul.navbar-nav{
        margin-top: 16px;
    }

    #searchbar {
        width: 100%;
        height: 700px;
    }
    #funzioni-profilo .funzione-profilo,
    .funzione-profilo {
        margin: 10px 0px;
    }
    .macrocategorie-consumer .text-center {
        margin: 25px 0px;
    }
    #vantaggi .row-padded {
        padding: 0px;
    }
    #top-search {
        margin-top: 11px;
    }
    .navbar-brand {
        margin-top: -4px;
    }
    #navigation .navbar-nav>li>a,
    #navigation .navbar-nav>li>button {
        margin-right: 12px;
        margin-top: 0px;
        padding: 15px 6px 15px 12px;
    }
    .logoediltouch {
        margin-top: -8px;
        margin-left: 16px !important;
    }
    .titolo-reteimprese h3 {
        font-size: 2rem;
        text-align: center;
    }
    .reteimprese-icon {
        margin: 0 auto;
    }
    .container>.navbar-header {
        margin-top: 9px;
    }

    #navigation .bootstrap-select>.dropdown-toggle {
        margin-top: 10px;
    }
    #top-search .ricerca-select {
        display: none;
    }
    .contact-items {
        text-align: left;
    }
    #menu {
        border-radius: 4px;
    }
    #menu .dropdown:hover .dropdown-menu {
        display: block;
    }
    #menu div.dropdown-menu {
        margin-left: 0 !important;
        padding-bottom: 10px;
        background-color: rgba(0, 0, 0, 0.1);
    }
    #menu .dropdown-inner {
        display: block;
    }
    #menu .dropdown-inner a {
        width: 100%;
        color: #fff;
    }
    #menu .dropdown-menu a:hover,
    #menu .dropdown-menu ul li a:hover {
        background: rgba(0, 0, 0, 0.1);
    }
    #menu .see-all {
        margin-top: 0;
        border: none;
        border-radius: 0;
        color: #fff;
    }
    #navigation .navbar-nav>li>a#main-login-btn {
        margin-top: 13px !important;
    }
    #navigation .nav>li>a#cart-button #cart-total {margin-top: 0px !important;}
    .product-list .product-thumb .image {
        float: left;
        padding: 0 15px;
    }
    .product-list .product-thumb .caption {
        min-height: 0;
        margin-left: 0;
        padding: 0 10px;
    }
    .product-grid .product-thumb .caption {
        min-height: 0;
    }
    #blocco-reteimprese .testo-reteimprese {
        font-size: 1.8em;
    }
    .product-thumb .button-group button,
    .product-thumb .button-group button+button {
        width: 33.33%;
    }
    .product-list .product-thumb .button-group {
        border-left: none;
    }
    #column-left .product-layout .col-md-3 {
        width: 100%;
    }
    #column-left+#content .product-layout .col-md-3 {
        width: 50%;
    }
    #column-left+#content+#column-right .product-layout .col-md-3 {
        width: 100%;
    }
    #content+#column-right .product-layout .col-md-3 {
        width: 100%;
    }
    #tablet {
        display: none;
    }
    .menuheader {
        display: none;
    }
    #statistiche-home .border-stats {
        border-left: 0 !important;
        border-right: 0 !important;
    }
    .professionista {
        clear: both;
    }
    .appdownload {
        margin-top: 20px;
    }
    .applebadge,
    .androidbadge {
        margin: 0;
    }
    .applebadge img,
    .androidbadge img {
        float: none !important;
    }
    .androidbadge {
        margin-top: 10px;
    }
    .text-center-mobile {
        text-align: center !important;
    }
    .scoprivantaggi {
        border: none;
    }
    .support {
        display: none;
    }

    .search-result-wrap .bootstrap-select {
        width: 100%;
    }
    .heading-text {
        display: none;
    }
    #ricerca #ricerca-button,
    #ricerca .ricerca-avanzata {
        vertical-align: middle;
    }
    #ricerca .ricerca-avanzata,
    #ricerca .search-advanced-button {
        padding-left: 0px;
    }
    #ricerca .ricerca-avanzata {
        width: 190px;
    }

    #main-carousel .carousel-caption {
        height: 100%;
    }
    .proprietario-wrap {
        margin-bottom: 20px;
    }
    .contact-items {
        margin-top: 10px;
    }
    *.tohide-desktop {
        display: inline !important;
    }
    *.tohide-mobile {
        display: none !important;
    }
    .menu-servizi-sos,
    .registrati-btn {
        margin-top: 20px;
    }
    .text-left-not-xs,
    .text-center-not-xs,
    .text-right-not-xs,
    .text-justify-not-xs {
        text-align: inherit;
    }
    .text-left-xs {
        text-align: left;
    }
    .text-center-xs {
        text-align: center;
    }
    .text-right-xs {
        text-align: right;
    }
    .text-justify-xs {
        text-align: justify;
    }
    .float-none-xs {
        float: none !important;
    }
    .cerca-btn {
        background: #8e1616;
    }
    .sos-intro-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 736px) and (orientation: landscape) {
    .padding-mini {
        padding: 0 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .text-left-not-sm,
    .text-center-not-sm,
    .text-right-not-sm,
    .text-justify-not-sm {
        text-align: inherit;
    }
    .text-left-sm {
        text-align: left;
    }
    .text-center-sm {
        text-align: center;
    }
    .text-right-sm {
        text-align: right;
    }
    .text-justify-sm {
        text-align: justify;
    }
    #video-sec h1 {
        font-size: 2.6rem;
    }
    #video-sec h4 {
        font-size: 2rem;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .youtube-video {
        display: none;
    }
    .text-left-not-md,
    .text-center-not-md,
    .text-right-not-md,
    .text-justify-not-md {
        text-align: inherit;
    }
    .text-left-md {
        text-align: left;
    }
    .text-center-md {
        text-align: center;
    }
    .text-right-md {
        text-align: right;
    }
    .text-justify-md {
        text-align: justify;
    }
}

@media (min-width: 992px) {
    .offerta-prezzo-wrap {
        position: absolute;
        right: 0;
        bottom: 0;
    }
    .offerta-dettagli-wrap {
        min-height: 180px;
    }
    #mappa-italia {
        margin-top: -130px;
    }
}

@media (min-width: 1200px) {
    .text-left-not-lg,
    .text-center-not-lg,
    .text-right-not-lg,
    .text-justify-not-lg {
        text-align: inherit;
    }
    .text-left-lg {
        text-align: left;
    }
    .text-center-lg {
        text-align: center;
    }
    .text-right-lg {
        text-align: right;
    }
    .text-justify-lg {
        text-align: justify;
    }
    .heading.container #ricerca {
        width: 65%;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 1.8rem;
    }
    .menuheader,
    .menufooter {
        display: none;
    }
    .vbox-servizio-prox:after {
        font-size: 20px;
        left: -97px;
    }
    #searchbar h1 {
        font-size: 40px;
    }
    #hometags .tag {
        padding: 2px;
    }
    #hometags .tag.tag-11 {
        font-size: 10px;
    }
    #hometags .tag.tag-12 {
        font-size: 12px;
    }
    #hometags .tag.tag-13 {
        font-size: 15px;
    }
    #hometags .tag.tag-14 {
        font-size: 22px;
    }
    #hometags .tag.tag-15 {
        font-size: 27px;
    }
}

@media (max-width: 478px) {
    #frasi-home h1 {font-size: 2.3rem}
    #frasi-home h4 {font-size: 1.8rem}
    #frasi-home .quot {padding-bottom: 20px}
    #icone-servizi-home .ico-home {margin-top: 20px}
    .sfondo-nero-mob {background: #333; top: 0px !important;  margin-bottom: 20px;}
    #sinergie {margin-top: 0}
    #video-sec h4 {font-size: 1.5rem}
    #risultati-ricerca .feedback-scheda-icon {top: 0; right: 15px;}
    .business-tag {display: none;}
    #scarica-app h2 {font-size: 4rem}
    #scarica-app p {font-size: 2rem}

    .expo-grazie h3 {font-size: 2rem}
    #madexpo .box-button {top: 210px}
    #cart .dropdown-menu {width: 100%}
    #cart .dropdown-menu li>div {min-width: 100%}
    #blocco-reteimprese .testo-reteimprese {font-size: 1.4em}
    #blocco-reteimpres .titolo-reteimprese h3 {font-size: 1.8em}
    .result-media {display: none}
    .rating-wrapper {float: left; text-align: left}
    a.carousel-home-link, a:visited.carousel-home-link, a:active.carousel-home-link, a:focus.carousel-home-link, a:hover.carousel-home-link {font-size: 1.8rem;}
}

@media (max-width: 300px) {
    #navigation .navbar-brand {margin-top: 12px;}
    #navigation .navbar-brand>img {width: 170px;}
    #navigation .navbar-nav>li>button {padding: 24px 10px;}
}


/*responsive texts */

.text-left-not-xs,
.text-left-not-sm,
.text-left-not-md,
.text-left-not-lg {
    text-align: left;
}

.text-center-not-xs,
.text-center-not-sm,
.text-center-not-md,
.text-center-not-lg {
    text-align: center;
}

.text-right-not-xs,
.text-right-not-sm,
.text-right-not-md,
.text-right-not-lg {
    text-align: right;
}

.text-justify-not-xs,
.text-justify-not-sm,
.text-justify-not-md,
.text-justify-not-lg {
    text-align: justify;
}

@media (max-width: 768px){
    .modal-dialog {
        min-height: calc(100vh - 20px);
    }
}
@media (max-width: 520px){
    .modal-dialog {
        top: -90%;
        width: auto;
    }
    #main-login-modal .modal-dialog{width: 95%;}
}

/* NEW HEADER */
@media (min-width: 996px) and (max-width: 1082px) {
    .navbar-link-left a, .navbar-link-right a{font-size: 1.6rem;}
    .overlay h1{font-size: 3.4rem;}
}

@media (max-width: 1162px) {
    #navigation .nav>li>a#cart-button #cart-total {position: absolute; top: 4px; left: 16px;}
}

@media (min-width: 240px) and (max-width: 1034px) {
    ul.navbar-right{float: right;}
}

@media (min-width: 240px) and (max-width: 1016px) {
    #head-searchbar{display: none;}
    #drawbar-button{display: block;}
    a.navbar-brand{float: right;}
    a.navbar-brand img{margin-left: 0;}
    .navbar-link-left{display: none;}
    .navbar-link-right{float: right;}
    .navbar-link-right a.navbar-link{display: none;}
}

@media (min-width: 320px) and (max-width: 991px) {
    a.navbar-brand img{padding-top: 10px;}
}
@media (max-width: 432px) {
    #navigation .navbar-nav>li>a#main-login-btn span.voce-menu{display: none;}
    .home-registration-link-first-section{padding: 15px 10px !important; white-space: nowrap;}
    #news-video-home li{font-size: 2.6rem;}
    .video-slide-home .slick-prev{left: -30px !important; top: 42px !important;}
    .video-slide-home .slick-next{right: -20px !important; top: 42px !important;}
    .first-top-section-home{background: none !important;}
}
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {

}

/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {

}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {

}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {

}

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1024px) {
    .acquista-btn .fa-shopping-cart{font-size: 3rem;}
}

/*==========  Non-Mobile First Method  ==========*/

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
    .free-background{height: auto;}
    #inserisci-attivita-bck{height: auto !important;}
    .news-image img {
        bottom: 4vw;
    }
}

/* Medium Devices, Desktops */
@media only screen and (max-width : 737px) {
    .select-birth-middle .help-label{left: 10px;}
    form#freeform .select-birth-middle:after{right: 10px;}
    #store-header{height: auto; padding-top: 24px;}
    .acquista-btn{margin-top: 22px;}
    #reteimprese-header {margin-top: 32px;}
}

/* Small Devices, Tablets */
@media only screen and (max-width : 767px) {
    #navigation .navbar-nav li.grey a{margin-top: 13px;}
    #navigation .navbar-nav li a.dropdown-toggle{display: inline-block;}
    #navigation .navbar-nav li.li-profile{text-align: right !important;}
    ul#dropdown-profile{position: absolute;}
}

@media only screen and (max-width : 768px) {
    #freeform h3, #freeform p {margin-left: 14px; margin-right: 12px;}
    button[data-target="#myNavbar"] {margin-top: 44px; margin-bottom: 12px; padding: 9px 6px;}
    .navbar-link-right{text-align: right !important;}
}

@media only screen and (max-width : 768px) and (orientation: landscape) {
    #subhead-search {
        display: none;
    }
}

@media only screen and (max-width: 767px) and (orientation: portrait) {
    .premium-background {
        height: auto;
        margin-bottom: 0px;
    }
    #box-store-ads .crop {
        min-height: 200px;
    }
}

/* Extra Small Devices, Phones */
@media only screen and (max-width : 418px) {
    .modal-dialog{top: 0;}
    .annunci-ico{min-height: 180px !important; font-size: 1.6rem;}
}

/* Custom, iPhone Retina */
@media only screen and (max-width : 375px) {

    #freeform h3, #freeform p {margin-left: 14px; margin-right: 12px;}
    #registrati-home-bck h1{font-size: 3.4rem;}
    #registrati-home-bck p {margin-left: 12px; margin-right: 12px;}
    .button-scopri{margin-top: 22px;}
    .pricing-content li{font-size: 1.4rem;}
    .select-birth-middle .help-label{left: 10px;}
    form#freeform .select-birth-middle:after{right: 10px;}
    .piva-buttons{text-align: center;}
}

@media only screen and (max-width : 375px) {
    #store-dashboard div.text-center.mt-20  {display: inline-flex}
}

@media (max-width: 996px)
{
    #preventivi-header {
        height: 350px !important;
        padding-top: 26px;
    }
}