/* Mobile first queries */
/*   for bigger devices see: desktop.css */
@media only screen and (max-width: 480px) {
    /* smartphones - small/vertical*/
    .h1 {
        font-size: 45px;
    }

    .title.plus.left h1:before, .title.plus.left h2:before {
        width: 100px;
        height: 50px;
    }

    .home .section.intro .desc p {
        font-size: 18px;
    }

    .home .intro .title.plus.left h1 {
        font-size: 45px;
    }

    .title.plus h2, .title.plus.left h2 {
        font-size: 30px;
    }

    .section.newsletter .desc p {
        margin-left: 0;
    }

    .section.newsletter .subscribe {
        max-width: 100%;
    }

    /*LAVORA CON NOI*/
    .wpcf7 form.wpcf7-form input[type="file"] {
        padding: 16px !important;
        font-size: 12px !important;
    }

    /*CONTATTI*/
    .contact.container {
        width: 100%;
    }

    .contacts .contact-box.company {
        width: 100%;
        margin-bottom: 0;
    }

    .contacts .contact-box.company h2 {
        font-size: 40px;
    }

    .contacts .contact-box.info {
        width: 100%;
    }

    .contacts .contact-box.info h3 {
        font-size: 29px;
    }

    .contacts .contact-form .col.span_12 {
        margin-top: 0;
    }

    /* PRODOTTO SINGOLO */
    .single-product .woocontent .product .woocommerce-tabs .tab-container ul.tabs > li > a {
        font-size: 14px;
        padding: 10px 10px !important;
        margin: 0;
    }
}

@media only screen and (max-width: 690px) {
    .contacts .contact-box {
        min-height: 0 !important;
        padding: 40px 2px !important;
    }

    body.woocommerce .span_9 ul.products li.product, body.woocommerce-page .span_9 ul.products li.product {
        width: 100%
    }

    .woocommerce ul.products li.row.product-category .category-details h3 {
        margin: 0;
        text-align: center;
    }

    /* SINGLE PRODUCT */
    body.single-product .container.main-content {
        max-width: 90% !important;
    }

    body.single-product .container.main-content .woocommerce-tabs > .full-width-content {
        margin: 0 !important;
        width: 100% !important;
    }

    body.single-product .container {
        max-width: 100% !important;
    }

    /* FOOTER */
    #footer-outer {
    }

    #footer-outer .textwidget {
        text-align: center;
    }

    #footer-outer .widget img.footer-logo {
        margin-left: 28px;
    }

}

@media only screen and (min-width: 480px) {
    /* smartphones */
    /* iphone in landscape mode is width=480px */
    /* setting min-width: 480px, it's included here */
    /* otherwise, it takes only the max-width: 480px rules */
    /* it's up to you; btw yes, you can use min-width: 481px */
    /*HOME*/
    .title.plus h2 {
        font-size: 40px;
    }
}

@media only screen and (max-width: 1024px) {
    /* tablets */
    /* HOME SLIDER */
    .swiper-slide h2,
    .swiper-slide p {
        /*text-shadow: 0px 0px 2px rgba(0, 0, 0, 1);*/
    }

    /*CATEGORIA PRODOTTO*/
    .woocommerce ul.products li.product.type-product {
        width: calc(49% - 20px) !important;
    }

    /* MEDIA */
    .media .tabs-section ._1pit_results_content .media-item {
        width: 32%;
    }

    .standard_section.content.categories .vc_column_container {
        margin-bottom: 0;
    }

    .media .tabs.media .tabbed > ul.wpb_tabs_nav.ui-tabs-nav > li {
        width: 32%;
    }
}

@media only screen and (max-width: 768px) {
    /* tablets */
    .page-title h1 {
        font-size: 28px;
    }

    /* AZIENDA - COMPANY*/
    .tabs.company .tabbed ul.wpb_tabs_nav.ui-tabs-nav {
        padding: 0 !important;
    }

    .tabs.company .tabbed > ul > li {
        /*width: 100%;*/
    }

    .tabs.company .tabbed > ul > li a {
        font-weight: bold;
        font-size: 12px;
        padding: 20px 0;
    }

    .wpb_row.full-width-content img, .wpb_row.full-width-content .img-with-aniamtion-wrap {
        margin: 15px;
    }

    /*PRODOTTI*/
    .woocommerce ul.products li.product.type-product {
        width: calc(99% - 20px);
    }

    .section.categories .vc_col-sm-3.wpb_column {
        width: 100% !important;
    }

    /* SINGOLO PRODOTTO*/
    .archive.tax-product_cat.woocommerce nav.woocommerce-breadcrumb {
        display: none !important;
    }

    .single-product .woocontent .product .woocommerce-tabs .tab-container ul.tabs > li {
        width: 45%;
    }

    .single-product .woocontent .product .row.nav-footer a.btn.btn-nav.btn-nav-prev,
    .single-product .woocontent .product .row.nav-footer a.btn.btn-nav.btn-nav-next {
        text-align: center;
    }

    .single-product .woocontent .product .row.nav-footer a.btn.btn-nav.btn-nav-prev:before,
    .single-product .woocontent .product .row.nav-footer a.btn.btn-nav.btn-nav-next:after {
        display: none;
    }

    /*MEDIA*/
    .section.intro .desc p {
        width: 100%;
    }

    .media .tabs.media .tabbed > ul.wpb_tabs_nav.ui-tabs-nav > li {
        width: 100%;
    }

    .tabs .tabbed > ul > li > a {
        padding: 10px 0;
    }

    .media .tabs-section ._1pit_results_content .media-item {
        width: 100%;
    }

    /*LANDING*/
    .landing .tabs.media .tabbed > ul.wpb_tabs_nav.ui-tabs-nav > li {
        width: 31% !important;
    }

    .landing .tabs .tabbed ul.wpb_tabs_nav.ui-tabs-nav {
        background-color: #fff !important;
    }

    .landing .wpb_content_element .wpb_tabs_nav li {
        background-color: #ddd !important;
        margin-right: 1% !important;
    }

    .landing .tabs .tabbed > ul > li > a {
        font-size: 15px !important;
    }

    /*LAVORA CON NOI*/
    .work .contact-form .form-half {
        width: 100%;
    }

    /*CONTATTI*/
    .contact-form .form-half {
        width: 100%;
    }

    .contacts .contact-box.company {
        display: none;
    }

    .contacts .contact-block {
        bottom: 0 !important;
    }

    .contacts .contact-form .col.span_12 {
        margin-top: 0;
    }

    .contacts .contact-box.info {
        background-color: transparent !important;
    }

    .contacts .contact-box.info h3 {
        color: #222 !important;
    }

    .contacts .contact-box.info p {
        color: #222 !important;
    }

    .contacts .contact-box.info p > a {
        color: #222;
    }

    .contacts .contact-box {
        min-height: 300px;
    }
}

@media only screen and (min-width: 768px) {
    .page-title {
        height: 350px;
    }

    .page-title h1 {
        margin-top: 0;
    }

    .map-rete-vendita {
        height: 500px !important;
    }

    body.archive.category h1 {
        line-height: 130px;
    }

    .contacts .contact-block {
        position: relative;
        bottom: 100px;
    }

    .contacts .contact-box {
        min-height: 350px;
        padding: 60px 40px;
        transition: all .3s ease 0s;
        -webkit-transition: all .3s ease 0s;
        -moz-transition: all .3s ease 0s;
        -o-transition: all .3s ease 0s;
    }

    .contacts .contact-box.company {
        background-color: rgba(234, 91, 12, 0.8);
        width: 30%;
    }

    .contacts .contact-box.info {
        background-color: rgba(76, 86, 92, 0.8);
        width: 70%;
        margin-left: 0;
    }

    .contacts .contact-box.company:hover {
        background-color: #ea5b0c;
    }

    .contacts .contact-box.info:hover {
        background-color: #4c565c;
    }

    .contacts .contact-box.company h2 {
        color: #fff;
    }

    .contacts .contact-box.info h3 {
        color: #fff;
        font-size: 35px;
        font-weight: 500;
        margin-bottom: 15px;
    }

    .contacts .contact-box.info p {
        color: #fff;
        font-size: 18px;
    }

    .contacts .contact-box.info p strong {
        font-weight: 500;
    }

    .contacts .contact-box.info p > a {
        color: #fff;
    }

    .contacts .contact-box.info p > a:hover {
        color: #ea5b0c;
    }
    
    /* SINGLE PRODUCT */
    .single-product .woocontent .product {
        margin-top: 40px;
    }

    .single-product .woocontent .product > .row {
        margin-top: 30px;
    }

    .single-product .woocontent .product h1.product_title.entry-title {
        font-size: 60px;
        margin-bottom: 5px;
    }

    .single-product .woocontent .product .single-product-summary {
        max-width: 70%;
        /*margin-top: 60px;*/
        float: none;
    }

    .single-product .woocontent .product .woocommerce-tabs .panel.entry-content {
        padding: 40px 0 0 !important;
        max-width: 80%;
    }

    .single-product .woocontent .product .row.nav-footer {
        margin-top: 20px;
    }

    .single-product .woocontent .product .woocommerce-tabs .panel.entry-content table.shop_attributes > tbody > tr > th,
    .single-product .woocontent .product .woocommerce-tabs .panel.entry-content table.shop_attributes > tbody > tr > td,
    .single-product .woocontent .product .woocommerce-tabs .panel.entry-content table.shop_attributes > tbody > tr > td {
        font-size: 16px;
    }
}

@media only screen and (max-width: 998px) {
    .home .section.products .woocommerce ul.products li.row.product.type-product {
        max-height: 100%;
    }

    .home .section.products .woocommerce ul.products li.row.product.type-product .col.span_3,
    .home .section.products .woocommerce ul.products li.row.product.type-product .col.span_6 {
        margin-right: 0;
        width: 100%;
    }

    .home .section.products .woocommerce ul.products li.row.product.type-product .product-image {
        max-height: 100%;
        margin-bottom: 0;
    }

    .home .section.products .woocommerce ul.products li.row.product.type-product img {
        height: auto;
        max-height: 200px;
        width: auto;
    }

    .home .section.products .woocommerce ul.products li.row.product.type-product .product-details {
        height: auto;
    }

    .home .section.products .woocommerce ul.products li.row.product.type-product .product-details h3 {
        font-size: 25px !important;
        line-height: 120% !important;
    }

    .home .section.products .woocommerce ul.products li.row.product.type-product p {
        font-size: 14px;
    }

    .home .section.products .woocommerce ul.products li.row.product.type-product .product-cta {
        display: none;
    }
}

@media only screen and (min-width: 998px) {
    .map-rete-vendita {
        height: 700px !important;
    }

    .single-product .woocontent .product .single-product-gallery .portfolio-items-bp {
    }

    .single-product .woocontent .product .single-product-gallery .portfolio-items-bp .pg-item {
        margin: 0 0 5px;
    }

    .single-product .woocontent .product .single-product-gallery .portfolio-items-bp .pg-item.video-popup-container .play_button.nectar_video_lightbox {
        top: 18%;
    }

    .single-product .woocontent .product .single-product-gallery .portfolio-items-bp .pg-item.video-popup-container .play_button.nectar_video_lightbox::after {
        content: 'Video';
        color: #fff;
        text-transform: uppercase;
        margin-top: 8px;
        display: block;
        line-height: 1;
        font-size: 14px;
    }

    .single-product .woocontent .product .woocommerce-tabs {
        margin-top: 60px;
    }

    body.company .team-section-title h3 {
        margin: 0 20px 20px 0;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    /* tablets */
    /*CATEGORIA PRODOTTO*/
    .woocommerce ul.products li.row.product-category .category-details h3 {
        font-size: 20px !important;
    }

    #sidebar .widget form.search-form {
        padding: 0;
    }

    .ascend .container-wrap button[type="submit"] {
        padding: 15px 0 !important;
    }

    .woocommerce ul.products li.row.product-category .category-details h3 {
        margin: 0;
    }

    .home .section.products .woocommerce ul.products {
        max-width: 100%;
    }

}

@media only screen and (min-width: 768px) and (max-width: 1300px) {
    /* tablets */
    .wpb_row.standard_section.service-contacts {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .category-box h3 {
        font-size: 18px;
        padding: 0;
    }
}

@media only screen and (max-width: 1460px) {
    html[lang="ru-RU"] #header-outer header#top nav > ul.sf-menu > li.menu-item > a {
        padding: 0px 6px !important;
    }
}

@media only screen and (max-width: 1280px) {
    .woocommerce ul.products li.product.type-product {
        width: calc(32% - 20px);
    }

    #header-outer header#top nav > ul.sf-menu > li.menu-item > a {
        padding: 0px 6px !important;
        font-size: 95%;
    }

    .contacts .contact-box.company h2 {
        font-size: 35px;
    }

    .home .section.products .woocommerce ul.products {
        max-width: 100%;
    }
}

@media only screen and (max-width: 1100px) {
    #header-outer header#top nav > ul.sf-menu > li.menu-item > a {
        font-size: 85%;
    }

    body .masonry.meta_overlaid .masonry-blog-item {
        width: 25% !important;
    }
}

@media only screen and (max-width: 990px) {
    /* tablets */
    body .masonry.meta_overlaid .masonry-blog-item {
        width: 50% !important;
    }
}

@media only screen and (max-width: 690px) {
    /* tablets */
    body.woocommerce:not(.single-product) ul.products[data-n-phone-columns="2"] li.product {
        width: 47.5% !important;
    }

    body .masonry.meta_overlaid .masonry-blog-item {
        width: 100% !important;
    }
}

@media only screen and (min-width: 691px) {
    /* tablets */
    body.woocommerce:not(.single-product) ul.products[data-n-tablet-columns="3"] li.product {
        width: 30.8% !important;
    }
}

@media only screen and (max-width: 479px) {
    /* tablets */
    body.woocommerce:not(.single-product) ul.products[data-n-phone-columns="2"] li.product {
        width: 47% !important;
    }
}
