/*	RESET	*/

html, body, h1, h2, h3, h4, h5, h6, p, ul, ol {
	padding: 0;
	margin: 0;
}

/*****GENERAL*****/
* {transition: color 0.3s, background-color 0.3s;}
html, body {
	font-family: 'Roboto Condensed', helvetica, sans-serif;
	font-weight: normal;
	color: #021725;
	font-size: 16px;
	line-height: 20px;
}
h1,h2,h3,h4,h5,h6 {
	color: #0072ba;
	margin-top: 1.2em;
	margin-bottom: 0.8em;
}
h1 {font-size: 2.2em;}
h2 {font-size: 1.8em;}
h3 {font-size: 1.5em;}
h4 {font-size: 1.2em;}
h5 {font-size: 1.1em;}
h6 {font-size: 1em;}
p {
	line-height: 1.58em;
	margin-bottom: 0.8em;
}
p:last-child {
	margin-bottom: 0;
}
a, a:visited, a:focus {
	color: inherit;
	text-decoration: none;
	outline: 0;
}
a:hover, a:active {
	color: #0072ba;
	text-decoration: none;
}

hr {
	margin: 15px 0;
	height: 3px;
	background-color: #0072BA;
	border: 0;
}

/*		GENERAL		*/

.img-circle {border: 20px solid #e0eef7;}
.tx-blue {color: #0072ba;}
.br-lightblue {border-color: #e0eef7;}
.bg-fixed {
	height: 150px;
	background: transparent url(../images/common/bg-fixed-2.jpg) no-repeat center top / cover;
	background-attachment: fixed;
}
.bg-dotted {background: #f5f5f5 url(../images/common/bg-dotted.png) repeat center center;}

#page-banner {
	height: 150px;
}
.page-block {
	padding-top: 40px;
	padding-bottom: 40px;
	background-color: white;
}
.page-block h1,
.page-block h2 {
	margin-top: 0;
	padding-bottom: 20px;
	margin-bottom: 30px;
	border-bottom: 3px solid #0072ba;
	text-transform: uppercase;
	font-weight: 700;
}
.page-block p {text-align: justify;}
.page-image div {
	background: transparent none no-repeat center center / cover;
	background-clip: content-box;
	min-height: 400px;
}
.page-image-top {margin-bottom: 40px;}
.page-image-bottom {margin-top: 40px;}

.page-thumb {position: relative;}
.page-thumb:before {
	content: " ";
	position: absolute;
	top: 0; right: 15px; bottom: 0; left: 15px;
	background-color: #0072BA;
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
}
.page-thumb:after {
	content: "";
	font-family: "FontAwesome";
	font-size: 60px;
	color: white;
	position: absolute;
	top: 50%; right: 0px; left: 0px;
	text-align: center;
	line-height: 100%;
	opacity: 0;
	margin-top: -30px; 
	transition: opacity 0.3s, font-size 0.3s, margin-top 0.3s;
	pointer-events: none;
}
.page-thumb:hover:before {
	opacity: 0.6;
}

.page-thumb:hover:after {
	font-size: 30px;
	margin-top: -15px; 
	opacity: 1;
}

main ul {
	padding-left: 30px;
	margin: 0.8em 0;
	list-style: none;
	line-height: 1.58em;
}
main ul li {position: relative;}
main ul li:before {
	content: "";
	font-family: "FontAwesome";
	position: absolute;
	margin-left: -20px;
	color: #0072ba;
	font-size: 8px;
}

/*****HEADER*****/

header{
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 200;
	min-height: 80px;
	background-color: rgba(255,255,255,0.87);
	padding-top: 10px;
	padding-bottom: 10px;
	text-align: center;
}
#logo {
	width: 100px;
	height: 60px;
	margin: 0 auto;
}
#logo img {height: 60px; width: auto;}
nav {
	height: auto;
	z-index: 20;
	display: none;
	width: 100%;
	text-align: center;
	color: #5c5c5c;
	font-weight: 700;
}
nav ul {padding: 10px 0; list-style: none;}
nav ul li ul {margin: 0;}
#menu-button {
	position: absolute;
	right: 9px;
	top: 18px;
	z-index: 30;
	width: 40px;
	height: 40px;
	text-align: center;
	cursor: pointer;
	color: #5c5c5c;
}
#menu-button:hover {color: #0072BA;}
#menu-button i {line-height: 40px;}
.menu {font-size: 0; font-weight: 600;}
.menu-item {
	display: block;
	text-transform: uppercase;
	cursor: pointer;
	line-height: 32px;
	font-size: 17px;
}
.menu-item a {
	display: block;
	width: 100%;
	position: relative;
}
.sub-menu {
	display: none;
	width: 100%;
	font-weight: 400;
	padding: 0;
}
.sub-menu .menu-item {
	text-transform: none;
	font-size: 1em;
}
#header-language-selector ul {
	display: inline-block;
	font-size: 0;
	margin: 0;
	padding: 0 8px;
}
.header-lang {
	display: inline-block;
	font-size: 16px;
	margin: 0 8px;
}
/*****FOOTER*****/
footer {
	color: #5e5e5e;
	font-size: 0.85em;
	padding: 30px 0;
	text-align: center;
}

/******HOME******/
#home-banner {height: 400px;}
#home-motto {
	padding: 30px 0;
	text-transform: uppercase;
	text-align: center;
}
#home-motto h1 {margin: 0; font-size: 1.5em;}
#home .page-block {
	padding-top: 0;
	padding-bottom: 0;
}
.home-image,
.home-content-left,
.home-content-right {padding: 40px;}
.home-image img {
	border-width: 10px;
	max-width: 90%;
}

/*		PROGETTI		*/
.project-cont {
	margin: 15px 0;
}
.project-cont img {width: 100%;}
.project-title {
	position: absolute;
	right: 15px; bottom: 0; left: 15px;
	padding: 10px 20px;
	background-color: rgba(255,255,255,0.87);
	color: #0072BA;
	font-weight: 700;
	text-align: center;
}
.project-cont:hover .project-title {
	background-color: #0072BA;
	color: white;
}

/*		CONTATTI		*/
#map {
	width: 100%;
	height: 300px;
	border: 7px solid #015a92;
}
label {
	color: #0072BA;
	font-weight: 700;
}
.form-control {
	background-color: #E0EEF7;
	padding: 10px 25px;
	box-shadow: none;
	border: 2px solid transparent;
	width: 100%;
	transition: border-color 0.3s;
	resize: none;
	font-size: 1.1em;
	line-height: 1.2em;
	color: #021725;
	height: auto;
}
.form-control:focus {	
	box-shadow: none;
	border: 2px solid #8fc1e1;
}
button {
	padding: 10px 18px;
	background-color: #015A92;
	color: #8FC1E1;
	font-weight: 700;
	border: none;
}
button:hover {
	background-color: #0072BA;
	color: white;	
}
input.error,
textarea.error {
	border: 2px solid red;
}
input[type="checkbox"] {
	display: none;
}
.checkbox-fake {
	display: inline-block;
	width: 20px;
	height: 20px;
	background-color: #E0EEF7;
	margin-right: 8px;
	vertical-align: top;
	color: #021725;
}
.checkbox-fake i {
	text-align: center;
	width: 18px;
	line-height: 18px;
}

/***** BOOSTRAP MEDIA  QUERY ******/

/* Small */
@media(min-width:768px) {
	#page-banner {
		height: 200px;
	}
	.page-block {
		padding-top: 100px;
		padding-bottom: 120px;
	}
	.page-block h1,
	.page-block h2 {
		margin-top: 0;
		padding-bottom: 20px;
		margin-bottom: 30px;
		border-bottom: 3px solid #0072ba;
		text-transform: uppercase;
		font-weight: 700;
	}
	.page-block p {text-align: justify;}
	#home-motto h1 {font-size: 1.95em;}
	.home-image {padding: 100px 0 0; margin: 5% 0 0;}
	.home-image img {border-width: 20px;}
	.home-content-right,
	.home-content-left {
		padding-top: 100px;
		padding-bottom: 120px;
	}
	.home-content-right {
		padding-left: 40px;
		border-left: 2px solid #e2e2e2;
	}
	.home-content-left {
		padding-right: 40px;
		border-right: 2px solid #e2e2e2;
	}
}

/* Medium */
@media(min-width:992px) {
	
	body {font-size: 1.1875em;}
	
	.container {width: 900px;}
	
	header {
		border-top: 4px solid #0072BA;
		background-color: transparent;
		padding-top: 10px;
	}
	nav {
		background-color: rgba(255,255,255,0.87);
		position: static;
		display: block;
		width: auto;
		text-align: center;
		border: none;
		padding: 5px 0;
	}
	nav ul {padding: 0; margin-top: 0; display: inline-block;}
	nav .container {position: relative;}
	#menu-button {display: none;}
	.menu-item {display: inline-block; position: relative; padding: 0; width: 140px; vertical-align: middle;}
	.menu-item:hover {background-color: transparent;}
	.menu-item a {line-height: 24px;}
	.menu-item, .sub-menu .menu-item:first-child {}
	.sub-menu .menu-item {}
	.sub-menu {
		position: absolute;
		left: 50%;
		top: 80px;
		z-index: 50;
		width: 250px;
		margin-left: -125px;
		text-align: center;
		background-color: rgba(255,255,255,0.87);
		border-top: 1px solid #0072BA;
		border-bottom: 1px solid #0072BA;
	}
	.sub-menu .menu-item {
		width: 100%;
		display: block;
		margin: 0; padding: 0;
	}
	.sub-menu a {line-height: 40px; height: 40px;}
	.menu-logo {
		height: 100px;
		width: 150px;
		background: transparent url(../images/common/logo.png) no-repeat center center / contain
	}
	.menu-logo:hover {
		background-color: transparent !important;
	}
	.menu-logo a {opacity: 0; height: 100%;}
	#header-language-selector {
		float: right;
		position: absolute;
		height: 100px;
		right: 0;
		top: 0;
		z-index: 100;
	}
	#header-language-selector ul {
		display: block;
		height: 100px;
		padding: 30px 0;
	}
	.header-lang {
		height: 40px;
		display: inline-block;
		width: 30px;
		text-align: center;
		text-transform: uppercase;
		transition: height 0.3s;
		overflow: hidden;
		margin: 0;
	}	
}


/* Large */
@media(min-width:1200px){	
	
	#home-banner {height: 550px;}
	.container {width: 970px;}
}