/* Desktop standard e laptop piccoli */
@media (max-width: 1500px) {
    /*.rebalancer_new .owl-nav {
        width: 102%;
    }*/

    .lastactiveitem:hover {
        right: 3%;
    }


    /* Primo elemento di ogni riga */
    .prodotticat .newslider_home > div:nth-child(5n+1):hover div.prodotto-home.prodotto {
        left: 20%; /* Cambia posizione */
    }

    /* Ultimo elemento di ogni riga */
    .prodotticat .newslider_home > div:nth-child(5n):hover div.prodotto-home.prodotto {
        right: 20%; /* Cambia posizione */
    }

    .wrap-categorypage .firstactiveitem:hover {
        left: 70px;
    }

    .wrap-categorypage .lastactiveitem:hover {
        right: 100px;
    }


    #ricette_single_prod .firstactiveitem:hover {
        left: 70px;
    }

    #ricette_single_prod .lastactiveitem:hover {
        right: 90px;
    }

    .single-product .woocommerce-review-link{
        width: auto;
    }

    .single-product .wrap-product-reviews .woocommerce-review-link {
        width: 25%;
    }

}

@media (max-width: 1200px){
    .col_coaching_nutrizionale {
        width: 49%;
        margin-bottom: 20px;
    }
    .rowflex_coaching_nutrizionale {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-flow: wrap;
    }

    .site-nav > ul > li.has-mega-menu:hover > .sub-menu-wrap > .submenu{
        padding: 0 20px;
    }

    .site-nav > ul > li.has-mega-menu.obiettivicol:hover > .sub-menu-wrap {
        width: 100%;
        padding-left: 10%;
        padding-right: 2%;
    }

    .prodotticat .newslider_home .items {
        width: 24%;
    }

    /* RESETTO il Primo elemento di ogni riga a 5 (che mi serviva nell'altro breakpoint) */
    .prodotticat .newslider_home > div:nth-child(5n+1):hover div.prodotto-home.prodotto {
        left: 0; /* Cambia posizione */
    }

    /* RESETTO l'ultimo elemento di ogni riga a 5 (che mi serviva nell'altro breakpoint) */
    .prodotticat .newslider_home > div:nth-child(5n):hover div.prodotto-home.prodotto {
        right: 0; /* Cambia posizione */
    }

    /* Primo elemento di ogni riga a 4 */
    .prodotticat .newslider_home > div:nth-child(4n+1):hover div.prodotto-home.prodotto {
        left: 20%; /* Cambia posizione */
    }

    /* Ultimo elemento di ogni riga a 4 */
    .prodotticat .newslider_home > div:nth-child(4n):hover div.prodotto-home.prodotto {
        right: 20%; /* Cambia posizione */
    }

    /** tutti i prodotti **/
    .category-level-2 {
        margin-left: 30px;
    }
    .prodotti-allprodpage .medium-4 {
        width: 25%;
    }
    .prodotti-allprodpage .medium-8 {
        width: 75%;
    }
    #category-filter-form label {
        font-weight: normal;
        font-size: 14px;
    }

    .single-product .woocommerce-review-link {
        width: auto;
    }

}

@media only screen and (max-width: 1199px) and (min-width: 1025px){

    .firstactiveitem {
        transition: left 1s;
        /* Definizione di transizioni per left e right */
        left: 0;
    }

    .lastactiveitem {
        transition: right 1s;
        /* Definizione di transizioni per left e right */
        right: 0;
    }

    .firstactiveitem:hover{
        left: 3%;
    }

    .lastactiveitem:hover{
        right: 3%;
    }

    .prodotti-allprodpage .medium-4{
        padding: 0;
    }

    section.hero-cat.general_newhero.cat_video_hero .col2{
        text-align: right;
    }

    .single-product .woocommerce-review-link {
        width: auto;
    }

}

/* Tablet in orizzontale */
@media (max-width: 1024px) {

    .row{
        max-width: 100%;
    }

    .prodotto-home.prodotto a.button {
        font-size: 16px !important;
        text-align: center;
        display: block;
        margin-top: 10px;
        padding: 10px !important;
    }

    .playvideo_ant .prodotto:hover {
        width: 100%;
        transform: scale(1);
    }

    .playvideo_ant .prodotto:hover img {
        display: block !important;
        opacity: 1;
    }

    .playvideo_ant .prodotto img {
        background: #f3efec;
    }

    .home-product h4 {
        line-height: 1.2;
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .home-product h4 a {
        line-height: 1;
        font-size: 18px;
    }

    .home-product .star_prod_home {
        max-width: 100%;
    }

    /*.ricetteslider .owl-nav {
        width: 102%;
    }*/

    .prodotticat .home-product .star_prod_home {
        max-width: 100%;
    }

    /** RESETTO LE POSIZIONI DEGLI ELEMENTI **/
    /* Primo elemento di ogni riga a 4 */
    .prodotticat .newslider_home > div:nth-child(4n+1):hover div.prodotto-home.prodotto {
        left: 0; /* Cambia posizione */
    }

    /* Ultimo elemento di ogni riga a 4 */
    .prodotticat .newslider_home > div:nth-child(4n):hover div.prodotto-home.prodotto {
        right: 0; /* Cambia posizione */
    }
    /** RESETTO LE POSIZIONI DEGLI ELEMENTI **/

    .contenitoreprodotti-all .home-product .star_prod_home {
        max-width: 100%;
    }


    section.hero-cat.general_newhero.cat_video_hero .col2{
        text-align: right;
    }

    .wrap-categorypage .firstactiveitem:hover {
        left: 0;
    }

    .wrap-categorypage .lastactiveitem:hover {
        right: 0;
    }

    /*blog*/
    .riquadroprodotti_singleblog .prodotto-home.prodotto h4 {
        margin-bottom: 0;
        margin-top: 10px;
    }

    .single-product .woocommerce-review-link{
        width: auto;
    }

    #interessarti_anche_slider .lastactiveitem:hover {
        right: 0;
    }

    #ricette_single_prod .firstactiveitem:hover{
        left: 0;
    }

    #ricette_single_prod .lastactiveitem:hover {
        right: 0;
    }

    .icone-servizi{
        width: 90%;
    }
    .prerec_star .stars-rating {
        width: 25%;
    }

    .woocommerce .formsearchrev input[type=text]{
        width: 30%;
    }

}

/* Tablet in verticale */
@media (max-width: 768px) {

    .home-product .star_prod_home {
        max-width: 100%;
    }

    .firstactiveitem:hover {
        left: 0;
    }
    .lastactiveitem:hover {
        right: 0;
    }

    .prodotticat .newslider_home .items {
        width: 32%;
    }

    .prodotti-allprodpage .medium-4 {
        width: 35%;
        padding: 0;
    }
    .prodotti-allprodpage .medium-8 {
        width: 65%;
        padding: 0;
    }
    .prodotti-all {
        width: 95%;
    }
    .prodotti-all.newslider_home.home-product .items {
        width: 47%;
    }

    section.hero-cat.general_newhero.cat_video_hero .col2 {
        width: 15%;
    }
    section.hero-cat.general_newhero.cat_video_hero .col1 {
        width: 85%;
    }

    section.hero-cat.general_newhero.cat_video_hero .col2 img{
        max-width: 90px;
    }

    section.hero-cat.general_newhero.cat_video_hero .col1 h1 {
        font-size: 40px !important;
        margin-bottom: 0 !important;
    }

    .content-popupvideocat{
        width: 95%;
    }



    .newsletter .row.footer-newsletter .medium-10 {
        width: 100%;
    }

    .newsletter .row.footer-newsletter .medium-10 {
        padding: 1em;
    }
    section.commenti .medium-8 {
        width: 100%;
    }


    /** test genetico **/
    .single-product .product .row {
        flex-flow: wrap;
    }

    .single-product .product .singleprod_testgenetico .row .columns {
        width: 100%;
    }

    .single-product .product .singleprod_testgenetico .row .columns.medium-5 {
        padding: 0 8em;
    }

    .single-product .product .singleprod_testgenetico .row .columns.medium-5 .button {
        text-align: center;
    }
    /** fine test genetico **/

    .single-article.single-fonte .columns.medium-7.medium-center {
        width: 90%;
    }

}

/* Smartphone grandi */
@media (max-width: 480px) {

    /*.rebalancer_new .owl-nav {
        width: 100%;
    }*/

    .home-product .star_prod_home {
        max-width: 100%;
    }

    .ricette-home .sectitle h2{
        font-size: 25px !important;
    }

    .col_coaching_nutrizionale {
        width: 100%;
    }
    .txt_coaching_nutrizionale h3{
        font-size: 25px;
    }


    .sectitle{
        display: block;
    }
    a.seeother{
        display: block !important;
        margin: 5px 0 0 0;
    }


    .owl-nav{
        top: -95px;
    }


    section.general_newhero{
        height: 250px;
    }

    section.general_newhero h1{
        font-size: 40px !important;
    }

    .general_newhero p{
        font-size: 16px;
    }

    section.prodotticat .columns.medium-12 {
        padding: 0 10px;
    }

    .prodotticat .newslider_home .items {
        width: 49%;
    }

    .prodotticat .home-product .star_prod_home {
        max-width: 100%;
    }


    .prodotti-allprodpage .medium-4 {
        width: 100%;
    }

    .prodotti-allprodpage .medium-8 {
        width: 100%;
        padding: 0;
        float: left !important;
        margin: 0 auto;
    }
    .ordina-per {
        padding: 0 20px;
    }

    .contenitoreprodotti-all .home-product .star_prod_home {
        max-width: 100%;
    }
    .contenitoreprodotti-all .star-rating {
        margin: 0 0 2px 0 !important;
    }

    .home-product .star_prod_home {
        max-width: 100%;
    }

    .prodotti-all .star-rating {
        margin: 0 0 3px 0 !important;
    }

    .prodotti-all{
        width: 100%;
    }
    .prodotti-all h4 {
        padding: 0;
        font-size: 18px;
        line-height: 1.4 !important;
    }


    section.hero-cat.general_newhero.cat_video_hero .row{
        padding: 0 1em;
    }
    section.hero-cat.general_newhero.cat_video_hero .col1 h1 {
        font-size: 30px !important;
    }

    section.hero-cat.general_newhero.cat_video_hero .col1 {
        width: 60%;
    }
    section.hero-cat.general_newhero.cat_video_hero .col2 {
        width: 40%;
        text-align: center;
    }
    section.hero-cat.general_newhero.cat_video_hero .col2 img {
        max-width: 70px;
    }


    .riquadro-testimonianze-nuovo{
        flex-flow: wrap;
    }
    .colimg-riquadrotestimonianze-nuovo {
        width: 100%;
    }
    .content-riquadrotestimonianze-nuovo {
        padding: 2em;
        width: 100%;
    }


    section.newsletter .row .row.footer-newsletter{
        padding: 0;
    }

    section.newsletter h3 {
        font-size: 22px;
    }
    .flexnews .campo {
        width: 100%;
    }
    .newsletter form {
        margin-top: 20px;
    }


    form#email_signup{
        padding: 0 !important;
    }
    .consfooter {
        padding: 0 !important;
    }

}

/* Smartphone piccoli */
@media (max-width: 375px) {
    a.seeother{
        font-size: 16px;
    }

    .owl-nav button i {
        font-size: 30px;
    }

    .owl-nav {
        top: -85px;
    }

    .rebalancer_new h2, .ricette-home .sectitle h2 {
        font-size: 25px;
    }

    .riquadro_coaching_nutrizionale{
        height: 450px;
    }

}