/*
 * jQuery FlexSlider v2.6.1
 * http://www.woothemes.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)
 *
 */
/* ====================================================================================================================
 * FONT-FACE
 * ====================================================================================================================*/
/*@font-face {
  font-family: 'flexslider-icon';
  src: url('../assets/fonts/flexslider-icon.eot');
  src: url('../assets/fonts/flexslider-icon.eot?#iefix') format('embedded-opentype'), url('../assets/fonts/flexslider-icon.woff') format('woff'), url('../assets/fonts/flexslider-icon.ttf') format('truetype'), url('../assets/fonts/flexslider-icon.svg#flexslider-icon') format('svg');
  font-weight: normal;
  font-style: normal;
}*/
/* ====================================================================================================================
 * RESETS
 * ====================================================================================================================*/
.no-touch .flex-container a:hover,
.no-touch .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 li .bcg,
.flexslider .slides li .mobile-slider {
  width: 100%;
  display: block;
  opacity: 0;
  transform: scale(1.05,1.05);
  -webkit-transition:opacity .7s ease-out, transform 1s ease-out, height .2s ease-out;
  transition: opacity .7s ease-out, transform 1s ease-out, height .2s ease-out;
}
.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;
  position: relative;
  zoom: 1;
  overflow: hidden;
}
.flexslider-margin {
  margin: 20px 0 0;
}
.flexslider .slides {
  zoom: 1;
}
/*.flexslider .slides .grid-item {
  margin: auto;
}*/
.flexslider .slides img {
  height: auto;
  -moz-user-select: none;
}
.flexslider .mobile-slider {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  height: calc(50vh - 80px);
}
.flexslider .mobile-slider:after {
  content: '';
  background: url('../assets/img/slider/slider-fade.png') repeat-x center center;
  z-index: 1;
  height: 100px;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.flexslider .mobile-slider img {
  opacity: 0;
}
.flex-viewport {
  max-height: 100vh;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}
#recent-stories .flex-viewport {
  max-height: 120vh;  
}
#recent-stories.flexslider .slides li {
  max-height: none;    
}
.loading .flex-viewport {
  max-height: 300px;
}
.carousel li {
  margin-right: 5px;
}
.flex-direction-nav {
  *height: 0;
}
.flex-direction-nav a {
  text-decoration: none;
  display: block;
  width: 40px;
  height: 40px;
  margin: -20px 0 0;
  position: absolute;
  top: 50%;
  z-index: 9;
  overflow: hidden;
  opacity: 0;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.8);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  -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;
}
.flex-direction-nav a:before {
  display: inline-block;
  content: url("../assets/img/slider/arrow-slider-left.png");
}
.flex-direction-nav a.flex-next:before {
  display: inline-block;
  content: url("../assets/img/slider/arrow-slider-right.png");
}
.flex-direction-nav .flex-prev {
  left: -50px;
}
.flex-direction-nav .flex-next {
  right: -50px;
  text-align: right;
}
.no-touch .flexslider:hover .flex-direction-nav .flex-prev {
  opacity: 0.7;
  left: 50px;
}
.no-touch .flexslider:hover .flex-direction-nav .flex-prev:hover {
  opacity: 1;
}
.no-touch .flexslider:hover .flex-direction-nav .flex-next {
  opacity: 0.7;
  right: 50px;
}
.no-touch .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-pauseplay a {
  display: block;
  width: 20px;
  height: 20px;
  position: absolute;
  bottom: 5px;
  left: 10px;
  opacity: 0.8;
  z-index: 10;
  overflow: hidden;
  cursor: pointer;
  color: #000;
}
.flex-pauseplay a:before {
  font-family: "flexslider-icon";
  font-size: 20px;
  display: inline-block;
  content: '\f004';
}
.no-touch .flex-pauseplay a:hover {
  opacity: 1;
}
.flex-pauseplay a.flex-play:before {
  content: '\f003';
}
.flex-control-nav {
  width: 100%;
  /*position: absolute;*/
  position: relative;
  margin-top: 20px;
  /*bottom: -40px;*/
  text-align: center;
}
.flex-control-nav {
  display: none;
}
.flex-control-nav li {
  margin: 0 6px;
  display: inline-block;
  zoom: 1;
  *display: inline;
}
.flex-control-paging li a {
  width: 8px;
  height: 8px;
  display: block;
  background: #cccccc;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  text-indent: -9999px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
}
.no-touch .flex-control-paging li a:hover {
  background: #333;
  background: rgba(0, 0, 0, 0.7);
}
.flex-control-paging li a.flex-active {
  background: #ffffff;
  background: rgba(0, 0, 0, 0.9);
  cursor: default;
}
.homepage .flex-control-paging li a {
  background: #cccccc;
  background: rgba(255, 255, 255, 0.5);
}
.homepage .no-touch .flex-control-paging li a:hover {
  background: #333;
  background: rgba(0, 0, 0, 0.7);
}
.homepage .flex-control-paging li a.flex-active {
  background: #ffffff;
  background: rgba(255, 255, 255, 1);
}
.flex-control-thumbs {
  margin: 5px 0 0;
  position: static;
  overflow: hidden;
}
.flex-control-thumbs li {
  width: 25%;
  float: left;
  margin: 0;
}
.flex-control-thumbs img {
  width: 100%;
  height: auto;
  display: block;
  opacity: .7;
  cursor: pointer;
  -moz-user-select: none;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}
.no-touch .flex-control-thumbs img:hover {
  opacity: 1;
}
.flex-control-thumbs .flex-active {
  opacity: 1;
  cursor: default;
}
.flex-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  /*width: 100%;*/
  margin: 10% 15%;
  color: #ffffff;
}
.flex-caption .line {
  height: 4px;
  width: 80px;
  margin-left: -40px; 
  opacity: 0;
  transform: translateX(-20px);
  -webkit-transition: transform .5s ease-out 1s, opacity .2s ease-out 1s, width .3s ease-in-out, margin-left .3s ease-in-out;
  transition: transform .5s ease-out 1s, opacity .2s ease-out 1s, width .3s ease-in-out, margin-left .3s ease-in-out;
}
.flex-caption h3 {
  opacity: 0;
  transform: translateX(20px);
  -webkit-transition: transform .5s ease-out 1.2s, opacity .2s ease-out 1.2s, color .3s ease-in-out;
  transition: transform .5s ease-out 1.2s, opacity .2s ease-out 1.2s, color .3s ease-in-out;
}
.flex-caption h4 {
  opacity: 0;
  transform: translateX(20px);
  -webkit-transition: transform .5s ease-out 1.4s, opacity .2s ease-out 1.4s;
  transition: transform .5s ease-out 1.4s, opacity .2s ease-out 1.4s;
}
.flexslider .green .line {background-color: #2B8804;}
.flexslider .blue .line {background-color: #0085AF;}
.flexslider .orange .line {background-color: #e97f7f;}
.flexslider .yellow .line {background-color: #85835F;}
.flexslider .violet .line {background-color: #af0084;}
.flexslider .grey .line {background-color: #eeeeee;}
.flexslider .darkgreen .line {background-color: #005958;}

.no-touch .flexslider .green .flex-caption:hover h3 {color: #2B8804;}
.no-touch .flexslider .blue .flex-caption:hover h3 {color: #0085AF;}
.no-touch .flexslider .orange .flex-caption:hover h3 {color: #e97f7f;}
.no-touch .flexslider .yellow .flex-caption:hover h3 {color: #85835F;}
.no-touch .flexslider .violet .flex-caption:hover h3 {color: #af0084;}
.no-touch .flexslider .grey .flex-caption:hover h3 {color: #eeeeee;}
.no-touch .flexslider .darkgreen .flex-caption:hover h3 {color: #005958;}

.no-touch .flex-caption:hover .line {
  width: 70px;
  margin-left: -20px;
}
/* ====================================================================================================================
 * CUSTOM MARGIN FOR CAROUSEL
 * ====================================================================================================================*/
/*@media only screen and (min-width: 915px) {
  .recent-stories .slides li:nth-child(1) a,
  .recent-stories .slides li:nth-child(4) a {
    margin-left: auto;
  }
  .recent-stories .slides li:nth-child(2) a,
  .recent-stories .slides li:nth-child(5) a {
    margin: auto;
  }
  .recent-stories .slides li:nth-child(3) a,
  .recent-stories .slides li:nth-child(6) a {
    margin-right: auto;
  }
}*/

/* ====================================================================================================================
 * ACTIVE SLIDES
 * ====================================================================================================================*/
.flexslider .slides li {
  position: relative;
  max-height: 100vh;
  overflow: hidden;
}
.flexslider .slides .flex-active-slide .bcg,
.flexslider .slides .flex-active-slide .mobile-slider {
  opacity: 1;
  transform: scale(1,1);
}
.flex-active-slide .flex-caption .line,
.flex-active-slide .flex-caption h3,
.flex-active-slide .flex-caption h4 {
  opacity: 1;
  transform: translateX(0px);
}
/* ====================================================================================================================
 * CUSTOM NAVIGATION
 * ====================================================================================================================*/
.load-more.flex-prev,
.load-more--dark.flex-prev {
  display: none;
}
.flex-disabled.load-more:after,
.flex-disabled.load-more--dark:after {
  opacity: 0;
}
.flex-disabled.load-more:before,
.flex-disabled.load-more--dark:before {
  opacity: 1;
}
/* ====================================================================================================================
 * RESPONSIVE
 * ====================================================================================================================*/

/* palm - to 768px */
@media only screen and (max-width: 48em) {
  .flex-caption {
    position: relative;
    display: block;
  }
}

/* small palm - to 640px */
@media only screen and (max-width: 40em) {
  .flexslider {
    overflow: initial;
  }
  .flex-caption .line {
    /*width: 30%;*/
    margin-left: -20px;
  }
  .flex-direction-nav a {
    top: 35%;
  }
  .flex-viewport {
    max-height: 120vh;
  }
  .flexslider .slides li {
    max-height: none;
  }
/*  .flex-direction-nav a.flex-next:before,
  .flex-direction-nav a:before {
    transform: scale(.8, .8);
  }*/
  .flex-direction-nav {
    display: none;
  }
  .flex-control-nav {
    display: block;
  }
  #hero-slider {
    margin-top: 80px;
  }
  #recent-stories .flex-viewport {
    max-height: 140vh;
  }
  .flex-caption {
    margin: 30% 10% 10%;
  }
  .flex-caption h4 {
    display: none;
  }
}

/* lap - between 720px and 1024px */
@media only screen and (min-width: 45em) and (max-width: 63.9375em) {

}

/* lap and up - from 720px */
@media only screen and (min-width: 45em) {

}

/* portable - to 1024px */
@media only screen and (max-width: 64em) {
  .flex-direction-nav .flex-prev {
    opacity: 1;
    left: 10px;
  }
  .flex-direction-nav .flex-next {
    opacity: 1;
    right: 10px;
  }
}

/*---modifiche Daniele---*/

.flexslider .slides li:nth-child(even) {
	margin-top: 40px;
}

@media screen and (max-width: 500px){
    .flexslider .slides li:nth-child(even) {
	margin-top: 0px !important;
    }
}
