﻿/* BOX NEWS CAROUSEL */
.owl-carousel .owl-wrapper:after {
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}
/* display none until init */
.owl-carousel {
	display: none;
	width: 100%;
	margin:0;
	padding:0;
	position: relative;
	-ms-touch-action: pan-y;
}
.owl-carousel .owl-wrapper{
	display: none;
	position: relative;
	-webkit-transform: translate3d(0px, 0px, 0px);
}
.owl-carousel .owl-wrapper-outer{
	overflow: hidden;
	position: relative;
	width: 100%;
}
.owl-carousel .owl-wrapper-outer.autoHeight {
	-webkit-transition: height 500ms ease-in-out;
	-moz-transition: height 500ms ease-in-out;
	-ms-transition: height 500ms ease-in-out;
	-o-transition: height 500ms ease-in-out;
	transition: height 500ms ease-in-out;
}
	
.owl-carousel .owl-item{
	float: left;
}
.owl-controls .owl-page,
.owl-controls .owl-buttons div{
	cursor: pointer;
}
.owl-controls {
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
/* mouse grab icon */
.grabbing { 
    cursor:url(grabbing.png) 8 8, move;
}
/* fix */
.owl-carousel  .owl-wrapper,
.owl-carousel  .owl-item{
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility:    hidden;
	-ms-backface-visibility:     hidden;
  -webkit-transform: translate3d(0,0,0);
  -moz-transform: translate3d(0,0,0);
  -ms-transform: translate3d(0,0,0);
}
/*
* 	Owl Carousel Owl Demo Theme 
*	v1.3.3
*/
.owl-theme .owl-controls{
	margin-top: 0;
	text-align: center;
}
/* Styling Next and Prev buttons */
.owl-theme .owl-controls .owl-buttons div{
	color: #FFF;
	display: inline-block;
	zoom: 1;
	*display: inline;/*IE7 life-saver */
	margin: 5px;
	padding: 3px 10px;
	font-size: 12px;
	-webkit-border-radius: 30px;
	-moz-border-radius: 30px;
	border-radius: 30px;
	background: #666;
	filter: Alpha(Opacity=50);/*IE7 fix*/
	opacity: 0.5;
}
/* Clickable class fix problem with hover on touch devices */
/* Use it for non-touch hover action */
.owl-theme .owl-controls.clickable .owl-buttons div:hover{
	filter: Alpha(Opacity=100);/*IE7 fix*/
	opacity: 1;
	text-decoration: none;
}
/* Styling Pagination*/
.owl-theme .owl-controls .owl-page{
	display: inline-block;
	zoom: 1;
	*display: inline;/*IE7 life-saver */
}
.owl-theme .owl-controls .owl-page span{
	display: block;
	width: 12px;
	height: 12px;
	margin: 3px 3px;
	filter: Alpha(Opacity=100);/*IE7 fix*/
	opacity: 1;
	-webkit-border-radius: 20px;
	-moz-border-radius: 20px;
	border-radius: 20px;
	background: #666666;
}
.owl-theme .owl-controls .owl-page.active span,
.owl-theme .owl-controls.clickable .owl-page:hover span{
	filter: Alpha(Opacity=100);/*IE7 fix*/
	opacity: 1;
	background: #365C7D;
}
/* If PaginationNumbers is true */
.owl-theme .owl-controls .owl-page span.owl-numbers{
	height: auto;
	width: auto;
	color: #FFF;
	padding: 2px 10px;
	font-size: 12px;
	-webkit-border-radius: 30px;
	-moz-border-radius: 30px;
	border-radius: 30px;
}
/* preloading images */
.owl-item.loading{
	min-height: 150px;
	background: url(../images/AjaxLoader.gif) no-repeat center center
}
#full-box-news-carousel {
	width:100%;
	min-height:120px;
	margin:0 auto;
	padding:0;
}
.grid-box-news-carousel {
	width:100%;
	margin:0 auto;
	padding:0;
}
.wrapper-carousel {
	clear:both;
	float:left;
	display:block;
	width:94%;
	min-height:120px;
	margin-top:0;
	margin-bottom:30px;
	margin-left:3%;
	margin-right:3%;
	padding:0;
	text-align:center;
}
.titolo-box-news-carousel h4 {
	display:inline-block;
	font-family: 'Open Sans Condensed', sans-serif;
	font-weight:300;
	color:#365C7D;
	margin: 0 0.5%;
	padding: 0 0.5%;
	line-height:24px;
	font-size:1.53em; /* 20px */
	text-align:center;
}
.titolo-box-news-carousel h4:after {
	content:url("../images/baffo-nero-200.png");
    display: block;
    clear: both;
}
ul.wrapper-box-news-carousel li {
	width: auto;
	margin-left:8%;
	margin-right:8%;
	margin-top:1%;
	margin-bottom:8%;
	color: #FFF;
	text-align: center;
	background-color:#FFF;
	cursor:url(../images/grabbing.png), auto;
	-webkit-box-shadow: 0px 0px 2px 0px rgba(50, 50, 50, 0.30);
	-moz-box-shadow:    0px 0px 2px 0px rgba(50, 50, 50, 0.30);
	box-shadow:         0px 0px 2px 0px rgba(50, 50, 50, 0.30);
}
ul.wrapper-box-news-carousel li {
	display:inline-block;
	list-style-type:none;
	width:90%;
	margin:5%;
}
ul.wrapper-box-news-carousel li img {
	width: 100%;
	height: auto;
}
ul.wrapper-box-news-carousel li {
	min-height:120px;
	position:relative;
}
ul.wrapper-box-news-carousel li span {
	position:absolute;
	left:0;
	bottom:0;
	height:40px; /* no min-height se voglio centrare verticalmente l'elento in IE */
	width:100%;
	background-color:rgba(71, 125, 166, 0.7);
	font-family: 'Oswald', sans-serif;
	font-weight:300;
	font-size:1em; /* 13px */
	padding:3%;
	color:#EFEFEF;
	/* escludo il padding dalla percentuale del box */
	box-sizing:border-box;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
	/* escludo il padding dalla percentuale del box */
	/* centro gli elementi all'interno del box */
	display: -ms-flexbox; 
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    -webkit-box-align: center;
    align-items: center;
	display:-webkit-flex; /* Safari 6.1+ */
	-webkit-flex-wrap:wrap;  /* Safari 6.1+ */
	-webkit-justify-content: center;  /* Safari 6.1+ */
	flex-wrap:wrap;
	justify-content:center;
	text-align:center;
	/* centro gli elementi all'interno del box */	
	/* effetto hover */
}
ul.wrapper-box-news-carousel li a {
	display: block;
	position: relative;
}
ul.wrapper-box-news-carousel li a {
	overflow: hidden;
}
ul.wrapper-box-news-carousel li a div {
	position: absolute;
	display:block;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.0);
	-webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
	background-position:50% 48%;
	transform: scale(0);
	-moz-transform: scale(0);
	-webkit-transform: scale(0);
	-o-transform: scale(0);
	-ms-transform: scale(0); /* IE 9 */
	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0, M12=0, M21=0, M22=0, SizingMethod='auto expand')"; /* IE8 */
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0, M12=0, M21=0, M22=0, SizingMethod='auto expand'); /* IE6 and 7 */ 
}
ul.wrapper-box-news-carousel li a:hover div {
	display:block;
	width: 100%;
	height: 100%;
    background: rgba(0,0,0,0.5);   
	background-image:url(../images/search.png);
	background-repeat:no-repeat;
	background-position:50% 48%;
	 transform: scale(1.0);
	-moz-transform: scale(1.0);
	-webkit-transform: scale(1.0);
	-o-transform: scale(1.0);
	-ms-transform: scale(1.0); /* IE 9 */
	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=1.0, M12=0, M21=0, M22=1.0, SizingMethod='auto expand')"; /* IE8 */
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=1.0, M12=0, M21=0, M22=1.0, SizingMethod='auto expand'); /* IE6 and 7 */ 
	/* effetto hover */
	
/* BOX NEWS CAROUSEL */
}
/* Layout tablet portrait: da 481 px a 768 px. Eredita stili da: Layout mobile. */
@media only screen and (min-width: 481px ) {
/* BOX NEWS CAROUSEL */
#full-box-news-carousel {
	width:100%;
	margin:0 auto;
	padding:0;
}
.grid-box-news-carousel {
	width:100%;
	margin:0 auto;
	padding:0;
}
.wrapper-carousel {
	clear:both;
	float:left;
	display:block;
	width:96%;
	margin-top:0;
	margin-bottom:30px;
	margin-left:2%;
	margin-right:2%;
	padding:0;
}
.titolo-box-news-carousel h4 {
	margin: 0 0.5%;
	padding: 0 0.5%;
	font-size:1.84em; /* 24px */
}
ul.wrapper-box-news-carousel li span {
	background-color:rgba(71, 125, 166, 0.7);
	font-family: 'Oswald', sans-serif;
	font-weight:300;
	font-size:1em; /* 13px */
	padding:3%;
}
}
/* Layout desktop: da 769 px a 1232 px max.  Eredita stili da: Layout mobile e Layout tablet. */
@media only screen and (min-width: 769px ) {
/* BOX NEWS CAROUSEL */
#full-box-news-carousel {
	width:100%;
	margin:0 auto;
	padding:0;
}
.grid-box-news-carousel {
	width:100%;
	margin:0 auto;
	padding:0;
}
.wrapper-carousel {
	clear:both;
	float:left;
	display:block;
	width:98%;
	margin-top:0;
	margin-bottom:30px;
	margin-left:1%;
	margin-right:1%;
	padding:0;
}
.titolo-box-news-carousel h4 {
	margin: 0 0.5%;
	padding: 0 0.5%;
	font-size:2.15em; /* 28px */
}
ul.wrapper-box-news-carousel li span {
	background-color:rgba(71, 125, 166, 0.7);
	font-family: 'Oswald', sans-serif;
	font-weight:300;
	font-size:1.076em; /* 14px */
	padding:3%;
/* BOX NEWS CAROUSEL */
}
}
/* Layout desktop: da 1025 px a superiori. Eredita stili da: Layout tablet landscape */
@media only screen and (min-width: 1025px ) {
/* BOX NEWS CAROUSEL */
#full-box-news-carousel {
	width:100%;
	margin:0 auto;
	padding:0;
}
.wrapper-carousel {
	clear:both;
	float:left;
	display:block;
	width:94%;
	margin-top:0;
	margin-bottom:30px;
	margin-left:3%;
	margin-right:3%;
	padding:0;
}
.titolo-box-news-carousel h4 {
	margin: 0 0.5%;
	padding: 0 0.5%;
	font-size:2.15em; /* 28px */
}
ul.wrapper-box-news-carousel li span {
	background-color:rgba(71, 125, 166, 0.7);
	font-family: 'Oswald', sans-serif;
	font-weight:300;
	font-size:1.15em; /* 15px */
	padding:0.5% 1.5%;
/* BOX NEWS CAROUSEL */
}
}