/*
 * jQuery FlexSlider v2.7.2
 * https://www.woocommerce.com/flexslider/
 *
 * Copyright 2012 WooThemes
 * Free to use under the GPLv2 and later license.
 * http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Contributing author: Tyler Smith (@mbmufffin)
 *
 */


/* ====================================================================================================================
 * RESETS
 * ====================================================================================================================*/
 body, html, img {
  margin: 0px;
  padding: 0px;
}

.slider{
  padding-bottom: 100px;
}

 .flex-container a:hover,
.flex-slider a:hover {
  outline: none;
}
.slides,
.slides > li,
.flex-control-nav,
.flex-direction-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}
.flex-pauseplay span {
  text-transform: capitalize;
}


/* ====================================================================================================================
 * BASE STYLES
 * ====================================================================================================================*/
.flexslider {
  margin: 0;
  padding: 0;
}

.flexslider .slides > li {
  display: none;
  -webkit-backface-visibility: hidden;
}
.flexslider .slides img {
  width: 100%;
  display: block;
  height: 300px;
}
.flexslider .slides:after {
  content: "\0020";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
html[xmlns] .flexslider .slides {
  display: block;
}
* html .flexslider .slides {
  height: 1%;
}
.no-js .flexslider .slides > li:first-child {
  display: block;
}
/* ====================================================================================================================
 * DEFAULT THEME
 * ====================================================================================================================*/
.flexslider {
  margin: 0 0 60px;
  background: #fff;
  position: relative;
  zoom:1;
}
.flexslider .slides {
  zoom: 1;
}

.flex-viewport {
  max-height: 2000px;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}
.loading .flex-viewport {
  max-height: 300px;
}
@-moz-document url-prefix() {
  .loading .flex-viewport {
    max-height: none;
  }
}

.flex-direction-nav {
  *height: 0;
}
.flex-direction-nav a,
.split-btn {
  text-decoration: none;
  display: block;
  width: 70px;
  height: 70px;
  margin: -25px 0 0;
  position: absolute;
  top: 50%;
  z-index: 10;
  overflow: hidden;
  background-color: #B9040E;
  cursor: pointer;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  font-size: 0px;
  display: block;
  background-image: url(../img/slider-arrow.svg);
  border-radius: 100%;
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: center;
}



.flex-direction-nav a.flex-next {
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
}
 .flex-direction-nav .flex-prev {
  opacity: 1;
  left: -2px;
}
 .flex-direction-nav .flex-next {
  opacity: 1;
  right: -2px;
}
.flexslider:hover .flex-direction-nav .flex-next:hover {
  opacity: 1;
}
.flex-direction-nav .flex-disabled {
  opacity: 0!important;
  filter: alpha(opacity=0);
  cursor: default;
  z-index: -1;
}

.flex-control-nav {
  width: 100%;
  position: absolute;
  margin-top: 40px;
  text-align: center;
}

.flex-control-nav li {
  margin: 0 8px;
  display: inline-block;
  zoom: 1;
  font-size: 0px;
  padding-top: 1px;
  border: 2px solid #434343;
}

.flex-control-nav li a {
  display: block;
  padding: 9px;
  cursor: pointer;
  border: 5px solid #fff;
}

.flex-control-nav li a.flex-active {
  background: #227345;
}

.img_pp {
  max-width: 100%;
  max-height: 560px;
  background-repeat: no-repeat;
  width: 100%;
  border-left: 13px solid #fff;
  border-right: 13px solid #fff;
  background-position:center;
    background-size: cover;
    position: relative;
    padding-bottom: 48%; /* da cambiare in base alla proporzione dell'immagine*/
    text-align: center;
}


.img_pp:before {
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  display: block;
  background: rgb(0 0 0 / 20%);
}


.flex-direction-nav, .flex-direction-nav:hover {opacity: 1 !important;}


@media screen and (max-width: 768px){
  .img_pp {
      padding-bottom: 80vw;
      margin-top: 80px;
      margin-left: 0px;
      margin: auto;
      margin-top: 0;
      background-size: cover;
  }
}

.flexslider{ position: relative;max-width: 100%; width: 100%; margin: 0 auto;}

#slider_ricette .slider,
#slider_blog .slider{overflow: hidden; width: 100%}
#slider_ricette .flexslider,
#slider_blog .flexslider{ position: relative;max-width: 75%; width: 75%; margin: 0 auto;}
.flex-viewport {overflow: visible !important}

#slider_ricette .flex-direction-nav,
#slider_blog .flex-direction-nav{
  max-width: 104%;
  width: 104%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#slider_blog li > div{
	margin-inline: 20px;
}
/* ====================================================================================================================
 * RESPONSIVE
 * ====================================================================================================================*/
 @media screen and (max-width: 860px) {
  #slider_ricette .flex-direction-nav .flex-prev,
   #slider_blog .flex-direction-nav .flex-prev{
    opacity: 1;
    left: -5px;
  }
  #slider_ricette .flex-direction-nav .flex-next,
   #slider_blog .flex-direction-nav .flex-next{
    opacity: 1;
    right: -5px;
  }

  .img_pp {
		border-left: 5px solid #fff;
		border-right: 5px solid #fff;
	}

  #slider_ricette .flexslider,
     #slider_blog .flexslider{ position: relative;max-width: 85%; width: 85%; margin: 0 auto;}

  #slider_ricette .flex-direction-nav a, .split-btn,
     #slider_blog .flex-direction-nav a, .split-btn{
    width: 50px;
    height: 50px;
    background-size: 13px;
    background-position: 17px;
  }

  
}