/* GENERAL AND UNIVERSAL CLASSES*/

body {
	padding-top: 50px;
	font-family: 'Open Sans', sans-serif;
}

p{
	
}

a{
	color: #006699;
	transition: all 0.5s ease-in;
	-webkit-transition: all 0.5s ease-in;
	-moz-transition: all 0.5s ease-in;
	-o-transition: all 0.5s ease-in;
	border: none;
	text-decoration: none;
}

a:hover{
	color: #329ced;
	border: none;
	text-decoration: none;
}

#footer{
	width: 100%;
	margin-top: 20px;
	padding: 20px;
	background-color: #f5f5f5;
}

#footer p{
	text-align:center;
}

div.container.header{
	max-width:745px;
}

.wrapper{
	padding: 10px 15px;
}

.center{
	text-align: center;
}

.justify{
	text-align: justify;
}

.condensed{
	font-family: 'Open Sans Condensed', sans-serif;
	font-weight: 300;
}

.spacer{
	width: 100%;
	height: 2px;
	background-color: whitesmoke;
	margin: 25px 0;
}

div.map iframe {
	margin-top: 20px;
	width: 100%;
}



/* BOOTSTRAP OVERRIDES */

.navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.active>a{
background-image: -webkit-linear-gradient(top,#baee29 0,#a6d821 100%);
background-image: -o-linear-gradient(top,#baee29 0,#a6d821 100%);
background-image: -webkit-gradient(linear,left top,left bottom,from(#baee29),to(#a6d821));
background-image: linear-gradient(to bottom,#baee29 0,#a6d821 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffbaee29', endColorstr='#ffa6d821', GradientType=0);
}

.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>.active>a:focus{
	color: #006699;
}

.navbar-default .navbar-nav>li>a{
	color: #006699;
}

.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus {
	color: #329ced;
}

a.navbar-brand{
	font-family: 'Open Sans Condensed', sans-serif;
}

a.navbar-brand img{
	float: left;
	height: 40px;
	margin-top: -10px;
	margin-right: 10px;
	border: none;
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
color: #518700;
}

.lead.home{
	margin-bottom: 25px;
}

div.section_intro p{
	margin-bottom: 25px;
}

div.section_intro h1{
	margin-left: 35px;
}

div.section_intro img{
	margin-top: -45px;
	margin-left: 0px;
}

.btn{
	transition: all 0.5s ease-in;
	-webkit-transition: all 0.5s ease-in;
	-moz-transition: all 0.5s ease-in;
	-o-transition: all 0.5s ease-in;
}

.btn-primary {
	background-image: -webkit-linear-gradient(top,#77b4d6 0,#0f7bdf 100%);
	background-image: -o-linear-gradient(top,#77b4d6 0,#0f7bdf 100%);
	background-image: -webkit-gradient(linear,left top,left bottom,from(#77b4d6),to(#0f7bdf));
	background-image: linear-gradient(to bottom,#77b4d6 0,#0f7bdf 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff77b4d6', endColorstr='#ff0f7bdf', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
	background-repeat: repeat-x;
	border-color: #2383d0;
}

.btn-primary:hover, .btn-primary:focus {
	background-color: #0f7bdf;
	background-position: 0 -15px;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary.focus, .btn-primary:active, .btn-primary.active, .open>.dropdown-toggle.btn-primary {
	color: #fff;
	background-color: #0f7bdf;
	border-color: #8dc4e7;
}



/* CAROUSEL */

#carousel-generazioni{
	height: 250px;
	margin-bottom: 40px;
}

#carousel-generazioni div.item{
	height: 250px;
	border-radius: 4px;
	background-color: black;
}

#carousel-generazioni div.carousel-background{
	width: 100%;
	height: 250px;
	border-radius: 4px;
	background-position: center;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	opacity: 0.75;
	z-index: -1;
}

#carousel-generazioni div.carousel-caption{
	text-shadow: 2px 2px 1px #000000;
	bottom: 40px;
}

#carousel-generazioni div.carousel-caption h1{
	font-weight: 700;
	color: #ffffff;
}

#carousel-generazioni div.carousel-caption p{
	
}

#carousel-generazioni .carousel-control.left {
	background-image: none;
}

#carousel-generazioni .carousel-control.right {
	background-image: none;
}

#carousel-generazioni .glyphicon-chevron-left{
	color: #ffffff;
	text-shadow: 2px 2px 1px #000000;
}

#carousel-generazioni .glyphicon-chevron-right{
	color: #ffffff;
	text-shadow: 2px 2px 1px #000000;
}



/* ELENCO ARTICOLI (CLASSE PREVIEW) */

.col-md-4.col-sm-6.preview{
	padding: 10px 25px;
}

div.preview{
	height:390px;
	margin-bottom:20px;
}

div.preview h3{
	margin-top: 15px;
	color: #006699;
	transition: all 0.5s ease-in;
	-webkit-transition: all 0.5s ease-in;
	-moz-transition: all 0.5s ease-in;
	-o-transition: all 0.5s ease-in;
}

div.preview h3:hover{
	color: #329ced;
}

p.preview.intro.date{
	color: #878787;
	font-size: 0.7em;
	margin: 0 0 4px 0;
}

p.preview.intro.category{
	float:right;
	text-transform:uppercase;
	font-size: 0.7em;
	margin: -18px 0 4px 0;
}

a.preview{
	color:#333333;
	text-decoration:none;
	border:none;
}

a.preview span.go{
	color: #006699;
	font-weight: bold;
	transition: all 0.5s ease-in;
	-webkit-transition: all 0.5s ease-in;
	-moz-transition: all 0.5s ease-in;
	-o-transition: all 0.5s ease-in;
}

a.preview span.go:hover  {
color: #329ced;
}

div.imgpreview{
	width: 100%;
	max-height: 40%;
	overflow: hidden;
	border-radius: 4px;
}

img.preview{
	width: 100%;
	overflow: hidden;
	border-radius: 4px;
	transition: all 0.5s ease-in;
	-webkit-transition: all 0.5s ease-in;
	-moz-transition: all 0.5s ease-in;
	-o-transition: all 0.5s ease-in;
}

img.preview:hover{
	opacity: 0.8;
	filter: Alpha(opacity=80)
}

.pagination.preview{
	display: block;
	height: 30px;
	margin-top: 0
}

.pagination.preview ul.pager{
	margin-top: 0
}


/* ARTICOLO (CLASSE ARTICLE) */

.container.article.background{
	height: 400px;
	width: 100%;
	margin: 0 0 25px 0;
	background-position: center;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	z-index: -2;
}

.container.article.title{
	width: 100%;
	height: 400px;
	margin: -425px 0 25px 0;
	background-image: url(../images/bkgr_black_25.png);
	background-repeat: repeat;
	color: #ffffff;
	text-shadow: 2px 2px 1px #000000;
}

.container.article.title h1{
	color: #ffffff;
	font-family: 'Open Sans Condensed', sans-serif;
	font-weight: 700;
	text-align: center;
	margin: 6% 0 25px 0;
}

p.article.intro.date{
	display: inline;
	float: left;
	margin: 20px 0;
}

p.article.intro.category{
	display: inline;
	float: right;
	text-transform: uppercase;
	margin: 20px 0;
}

div.article.share p{
	text-align: center
}

div.article.share p img{
	padding: 15px 5px;
}

div.article.wrapper{
	width: 75%;
	margin: auto;
	font-size: 1.2em;
	line-height: 1.5em;
	text-align: justify;
}

div.article.text{
	margin-bottom: 40px;
}

div.article.attachement{
	clear: left;
	text-align: left;
	padding-bottom: 15px;
}

div.article.icon{
	clear: left;
	float: left;
	padding-bottom: 15px;
}

img.article.icon{
	width: 40px;
	padding-right: 10px;
}

p.article.related{
	text-align: left;
	padding-bottom: 10px;
	border-bottom: 2px solid whitesmoke;
}


div.article.row{
	margin-top: 40px;
}

div.article.gallery{
	margin-bottom: 25px;
	overflow: hidden;
	border-radius: 4px;
}

div.article.gallery_preview{
	overflow: hidden;
	border-radius: 4px;
}

div.article.gallery_preview img{
	width:100%;
	overflow: hidden;
}





/* ---- RESPONSIVE MAX-WIDTH 767px ---- */


@media (max-width: 767px) {

	div.map iframe {
		height:350px;
	}
	
	/* GENERAL AND UNIVERSAL CLASSES*/

	.wrapper{
		max-width: 550px;
		margin: auto;
	}
	

	/* BOOTSTRAP OVERRIDES */

	.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12{
		padding: 10px 5px;
	}
	
	
	/* CAROUSEL */
	
	#carousel-generazioni div.carousel-caption{
		bottom: 10px;
	}
	
	#carousel-generazioni div.carousel-caption h1{
		font-size: 2em;
	}
	
	
	/* ELENCO ARTICOLI (CLASSE PREVIEW) */

	div.preview{
		height: auto;
	}
	
	div.imgpreview{
		max-height: 300px;
	}
	
	
	/* ARTICOLO (CLASSE ARTICLE) */
	
	.container.article.background {
		height: 350px;
	}
	
	.container.article.title {
		height: 350px;
		margin-top: -375px;
		padding: 0 25px;
	}
	
	.container.article.title h1{
		font-size: 2em;
		text-align: center;
		margin: 4% 0 15px 0;
	}
	
	p.article.intro.date{
		margin: 10px 0;
		font-size: 0.8em;
	}

	p.article.intro.category{
		margin: 10px 0;
		font-size: 0.8em;
	}

	div.article.share p img{
		padding: 10px 2px;
		width: 24px;
	}
	
	div.article.wrapper{
		width: 100%;
		font-size: 1em;
		line-height: 1.4em;
	}
	
	div.article.gallery{
		height: 150px;
		margin-bottom: 0;
	}
	
	div.article.gallery_preview{
		max-height: 135px;
	}
	
}



/* ---- RESPONSIVE MIN-WIDTH 768px ---- */

@media (min-width: 768px) {

	div.map iframe {
		height:400px;
	}

	
	/* ELENCO ARTICOLI (CLASSE PREVIEW) */
	
	div.imgpreview{
		max-height: 50%;
	}

	/* ARTICOLO (CLASSE ARTICLE) */

	.container.article.title{
		padding: 0 50px;
	}
	
	.container.article.title h1{
		font-size: 3em;
		text-align: center;
	}
	
	div.article.gallery{
		height: 110px;
	}
	
	div.article.gallery_preview{
		height: 110px;
	}

}




/* ---- RESPONSIVE MIN-WIDTH 992px ---- */
	
@media (min-width: 992px) {

	div.map iframe {
		height:450px;
	}

	
	/* ELENCO ARTICOLI (CLASSE PREVIEW) */
	
	div.imgpreview{
		max-height: 40%;
	}


	/* ARTICOLO (CLASSE ARTICLE) */

	.container.article.title{
		padding: 0 75px;
	}
	
	.container.article.title h1{
		font-size: 3.2em;
	}
	
	div.article.gallery{
		height: 110px;
	}
	
	div.article.gallery_preview{
		height: 110px;
	}
	
}




/* ---- RESPONSIVE MIN-WIDTH 1200px ---- */

@media (min-width: 1200px) {

	div.map iframe {
		height:500px;
	}	


	/* ELENCO ARTICOLI (CLASSE PREVIEW) */
	
	div.imgpreview{
		max-height: 50%;
	}

	/* ARTICOLO (CLASSE ARTICLE) */

	.container.article.title{
		padding: 0 100px;
	}
	
	.container.article.title h1{
		font-size: 3.8em;
	}
	
	div.article.gallery{
		height: 130px;
	}
	
	div.article.gallery_preview{
		height: 130px;
		
	}
	
}

}