/* Firefox (All Versions) */
/*_:-moz-tree-row(hover), .home footer {MARGIN-TOP:0PX !important; top:-480px !important }*/

/* slideshow prodotti homepage */
@media only screen and (max-width:1400px) {

  .ls-photogallery .ls-bottom-nav-wrapper{ left:auto !important; right: 0;}
  #layerslider_2,
  #layerslider_4 { height: 1000px !important; width: 100% !important}

  #layerslider_2 .ls-in-out,
  #layerslider_4 .ls-in-out{  position: relative !important;  left:0 !important;  top: 0 !important;  margin-top: 15px !important;  width: 100% !important; height: auto !important }

  #layerslider_2 .ls-in-out:nth-child(3),
  #layerslider_2 .ls-in-out:nth-child(9),
  #layerslider_4 .ls-in-out:nth-child(3),
  #layerslider_4 .ls-in-out:nth-child(9) { width: 100% !important; height: auto !important} /*contenitore img*/

  #layerslider_2 .ls-in-out:nth-child(3) img,
  #layerslider_4 .ls-in-out:nth-child(3) img{ max-width: 100% !important; width: 100% !important; height: auto !important}

  #layerslider_2 .ls-in-out:nth-child(9) img,
  #layerslider_4 .ls-in-out:nth-child(9) img{ max-width: 50% !important; width: 50% !important; height: auto !important; display: block !important; margin: auto !important}

  #layerslider_2 .ls-in-out:nth-child(5),
  #layerslider_4 .ls-in-out:nth-child(5){height:10px !important}


  #layerslider_2 p.ls-layer,
  #layerslider_4 p.ls-layer{ width: 100% !important; white-space: normal !important; line-height: 1.5 !important; font-size:15px !important}

  #layerslider_2 .ls-layer-link,
  #layerslider_4 .ls-layer-link{ margin-top:20px !important;}
}

/* detect safari */
@media screen and (-webkit-min-device-pixel-ratio:0) and (max-width:1400px){
  #layerslider_2 .ls-z,
  #layerslider_4 .ls-z{  position: relative !important;  left:0 !important;  top: 0 !important;  margin-top: 15px !important;  width: 100% !important; height: auto !important;}

  #layerslider_2 .ls-z:nth-child(3),
  #layerslider_2 .ls-z:nth-child(9),
  #layerslider_4 .ls-z:nth-child(3),
  #layerslider_4 .ls-z:nth-child(9) { width: 100% !important; height: auto !important} /*contenitore img*/

  #layerslider_2 .ls-z:nth-child(3) img,
  #layerslider_4 .ls-z:nth-child(3) img{ max-width: 100% !important; width: 100% !important; height: auto !important}

  #layerslider_2 .ls-z:nth-child(9) img,
  #layerslider_4 .ls-z:nth-child(9) img{ max-width: 50% !important; width: 50% !important; height: auto !important; display: block !important; margin: auto !important}
}

@media only screen and (max-width:1000px) {
  #layerslider_2,
  #layerslider_4 { height: 850px !important;}
}
@media only screen and (max-width:600px) {
  #layerslider_2,
  #layerslider_4  { height: 650px !important;}
}



@media only screen and (max-width:1280px) {
    nav.main_menu>ul>li#nav-menu-item-46>a,  nav.main_menu>ul>li#nav-menu-item-1012>a {padding-left:0 !important;}
    .border-bottom {top:-60px;}
    .img-top {top:30px;}
    .clip-grigia {bottom:-2px;}
    .top380 .vc_column-inner .wpb_wrapper .vc_row:nth-child(3) {top:1px;}
    .footer_top .three_columns .column2 .column_inner>div {margin:0 !important;}
    .three_columns>.column2>.column_inner {padding:0;}
    #text-4 .textwidget p:nth-child(3) a:nth-child(3) {padding-right: 0 !important;}
    header.stick_with_left_right_menu nav.main_menu.right_side {
        width:38% !important;
        right:0 !important;
    }
    .header-right-from-logo-widget {right: -215% !important;}
    header.stick_with_left_right_menu nav.main_menu.left_side {left:55px !important;}
    .page-id-31 .content.content_top_margin_none, .page-id-245 .content.content_top_margin_none, .page-id-916 .content.content_top_margin_none {
        margin-top: -108px !important;
    }
    .page-id-35 .content.content_top_margin_none, .page-id-37 .content.content_top_margin_none, .page-id-1005 .content.content_top_margin_none {
        margin-top: -188px !important;
    }
}
@media only screen and (max-width:1024px) {
    .header-right-from-logo-widget {
        right: -190% !important;
    }
    header.stick_with_left_right_menu nav.main_menu.right_side {
        width: 41% !important;
    }
    .border-bottom {
        top: -47px;
    }
    .img-top {
        top: 45px;
    }
    .ls-photogallery .ls-bottom-nav-wrapper {left:470px;}
    .parent-pageid-245 .border-bottom, .parent-pageid-916 .border-bottom {
        top: -178px;
    }
    .page-id-31 .content.content_top_margin_none, .page-id-245 .content.content_top_margin_none, .page-id-919 .content.content_top_margin_none {
        margin-top: -96px !important;
    }
    .page-id-35 .content.content_top_margin_none, .page-id-37 .content.content_top_margin_none, .page-id-1005 .content.content_top_margin_none {
        margin-top: -176px !important;
    }
    header.centered_logo .q_logo a {
        height: 130px !important;
         z-index: 100000;
    }
}
@media only screen and (max-width:1000px) {
    .header_bottom {
        background-image: none !important;
        background-color:#424242 !important;
    }
    .ls-photogallery .ls-bottom-nav-wrapper {
        left: 380px;
    }
    .mc4wp-form-fields input[type="email"] {width:200px;}
    header.centered_logo .header_inner_left {
        margin: 0 !important;
    }
    header.centered_logo .logo_wrapper {width:auto !important;}
    #layerslider_5 .ls-layers .ls-wrapper,
    #layerslider_3.ls-layers .ls-wrapper{ top:100px !important}
}

@media only screen and (max-width:850px) {
  #layerslider_5 .ls-layers .ls-wrapper,
  #layerslider_3.ls-layers .ls-wrapper{ top:80px !important}
}

@media only screen and (max-width:768px) {
    .border-bottom {
        top: -35px;
    }
    header.centered_logo .q_logo a {height:80px !important;}
    .ls-photogallery .ls-bottom-nav-wrapper {
        left: 295px;
    }
    .img-top {
        top: 58px;
    }
    .e-footer {height:90px !important;}
    .home footer {
        margin-top: -490px !important;
    }
    .page-id-31 footer, .page-id-916 footer {
        margin-top: -110px;
    }
    .page-id-245 footer, .page-id-919 footer {
        margin-top: -290px;
    }
    .parent-pageid-245 footer, .page-id-919 footer  {
        margin-top: -210px;
    }
    .page-id-33 footer {
        margin-top: -290px;
    }
    .page-id-35 footer, .page-id-37 footer, .page-id-1005 .content.content_top_margin_none {
        margin-top: -400px;
    }
    .parent-pageid-245 .content.content_top_margin_none, .page-id-919 .content.content_top_margin_none {margin-top:0 !important;}
    .parent-pageid-245 .border-bottom, .page-id-919 .border-bottom {
        top: -159px;
    }
    .vc_custom_1523977731970, .vc_custom_1523978447389, .vc_custom_1523978618005, .vc_custom_1523978698690, .vc_custom_1523978844639, .vc_custom_1523978930799, .vc_custom_1523979003389, .vc_custom_1523979113775, .vc_custom_1523979197004,
    .vc_custom_1523979288477, .vc_custom_1523979386231, .vc_custom_1523979504467, .vc_custom_1523979600979, .vc_custom_1523979660848 {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
}

@media only screen and (max-width:650px) {
  #layerslider_5 .ls-layers .ls-wrapper,
  #layerslider_3 .ls-layers .ls-wrapper{ top:70px !important;  }
  #layerslider_5 .ls-layers .ls-wrapper p.ls-layer,
  #layerslider_3 .ls-layers .ls-wrapper p.ls-layer{  font-size: 16px !important}
}

@media only screen and (max-width:575px) {
  #layerslider_5 .ls-layers .ls-wrapper,
  #layerslider_3 .ls-layers .ls-wrapper{ top:35px !important;  }
  #layerslider_5 .ls-nav-prev,
  #layerslider_3 .ls-nav-prev{ left:10px !important; top:45px !important}
  #layerslider_5 .ls-nav-next,
  #layerslider_3 .ls-nav-prev{ left:10px !important; top:45px !important}
  #layerslider_5 .ls-nav-prev,
  #layerslider_3 .ls-nav-prev{ right:10px !important; top:45px !important}
}

@media only screen and (max-width:480px) {
.mobile_menu_button{
  margin-left: 15px !important}
.mobile_menu li{ padding-left: 15px !important;}
#layerslider_5 .ls-layers .ls-wrapper,
#layerslider_3 .ls-layers .ls-wrapper{ top:35px !important;  }
#layerslider_5 .ls-nav-prev,
#layerslider_3 .ls-nav-prev{ left:-10px !important; top:35px !important}
#layerslider_5 .ls-nav-next,
#layerslider_3 .ls-nav-next{ right:-10px !important; top:35px !important; left:auto !important}
}
@media only screen and (max-width:430px) {
  #layerslider_5 .ls-layers .ls-wrapper,
  #layerslider_3 .ls-layers .ls-wrapper{ top:25px !important;  }
  #layerslider_5 .ls-layers .ls-wrapper p.ls-layer,
  #layerslider_3 .ls-layers .ls-wrapper p.ls-layer{  font-size: 14px !important}
  #layerslider_5 .ls-nav-prev,
  #layerslider_3 .ls-nav-prev{  top:25px !important}
  #layerslider_5 .ls-nav-next,
  #layerslider_3.ls-nav-next{  top:25px !important}
}
/* detect safari */
@media screen and (-webkit-min-device-pixel-ratio:0) and (max-width:430px){
  #layerslider_5 .ls-layers .ls-wrapper,
  #layerslider_3 .ls-layers .ls-wrapper{ top:11px !important;  }
}


/* footer */
@media only screen and (max-width:770px) {
.footer_col2{ display: none;}
footer .footer_inner .footer_col1, footer .footer_inner .footer_col3{ width: 100% !important; }
footer .footer_inner .footer_col1 p, footer .footer_inner .footer_col3 p{ text-align: left !important}
.footer_top_holder{ background-image: none !important}
.image_with_text p{ width: 100%;}
}


/* fondino su fascia rossa prodotti */
@media only screen and (max-width:1175px) {
.parent-pageid-245 .border-bottom, .parent-pageid-919 .border-bottom, .parent-pageid-1133 .border-bottom, .parent-pageid-1215 .border-bottom{ top: -170px;}
}
@media only screen and (max-width:925px) {
.parent-pageid-245 .border-bottom, .parent-pageid-919 .border-bottom, .parent-pageid-1133 .border-bottom, .parent-pageid-1215 .border-bottom{ top: -150px;}
}
@media only screen and (max-width:665px) {
.parent-pageid-245 .border-bottom, .parent-pageid-919 .border-bottom, .parent-pageid-1133 .border-bottom, .parent-pageid-1215 .border-bottom{display:none;}
}



/* bordo slideshow frasi */
@media only screen and (max-width:1800px) {
.border-bottom { top: -80px;}
}
@media only screen and (max-width:1600px) {
.border-bottom { top: -70px;}
}
@media only screen and (max-width:1470px) {
.border-bottom { top: -60px;}
}
@media only screen and (max-width:1200px) {
.border-bottom { top: -55px;}
}
@media only screen and (max-width:1050px) {
.border-bottom { top: -50px;}
}
@media only screen and (max-width:950px) {
.border-bottom { top: -45px;}
}
@media only screen and (max-width:850px) {
.border-bottom { top: -40px;}
}
@media only screen and (max-width:750px) {
.border-bottom { top: -35px;}
}
@media only screen and (max-width:650px) {
.border-bottom { top: -30px;}
}
@media only screen and (max-width:600px) {
.border-bottom { top: -27px;}
}
@media only screen and (max-width:500px) {
.border-bottom { top: -25px;}
}
@media only screen and (max-width:400px) {
.border-bottom { top: -22px;}
}



@media only screen and (max-width:800px) {
#riga-prod { padding-top: 20px;}
.page-id-1133 #riga-prod { margin-top: 40px;}
}
