
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');

html, body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	font-size: 62.2%;
}

*{
	box-sizing: border-box;
}

/************************************************/
/* 				Testo							*/
/************************************************/
h1{
	position: relative;
	top: 0rem;
	left: 0rem;
	margin: 0rem;
	padding: 1.0rem 0rem 1.0rem 0rem;
	font-size: 2rem;
	font-weight: bold;
	color: #222222;
}

body {
	margin: 0;
	padding: 0;
	text-align: justify;	
	font: normal normal normal 1.4rem 'Roboto', Geneva, sans-serif;
	color: #222222;
}

a{
	text-decoration: none;
	color: #0052cc;
}

a:hover{
	text-decoration: underline;
	color: #1a75ff;
}

/************************************************/
/* 				Box principali					*/
/************************************************/
#container{
	position: relative;
	min-height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

#contenitore{
	position:relative;
	width: 100%;
	margin: 0 auto;
}

.contenitore{
	position: relative;
	max-width: 120rem;
	margin: 0 auto;
	padding: 0 5%;
}

@media (max-width: 767px) {
	.contenitore{
		position: relative;
		max-width: 100%;
		margin: 0 auto;
		padding: 0 8%;
	}
}
/************************************************/
/* 				Testata							*/
/************************************************/
#testata{
	position: relative;
	width: 100%;
}

#logo{
	position: absolute;
	bottom: -100%;
	left: 0;
	width: 20%;
	height: 200%;
	text-align: left;
	padding: 1rem 0 0 0;
	text-align: center;
	background: #ffffff;
	border-radius: 100rem;
	z-index: 100;
}

#logo img{
	height: 90%;
	display: inline-block;
}

#istituzionali{
	position: relative;
	width: 100%;
	padding: 1rem 0;
	text-align: center;
	background: #ffffff;
	border-bottom: 0.1rem solid #cccccc;
}

.istituzionali{
	position: relative;
	float: left;
	width: 10%;
	text-align: center;
}

.istituzionali img{
	width: 100%;
	display: inline-block;
}

.istituzionaliTesto{
	position: relative;
	float: left;
	width: 60%;
	font-size: 1.1rem;
}

#banner{
	position: relative;
	top: 0;
	left: 0;
	width: 100%;
	overflow: hidden;
}

#bannerIn{
	position: relative;
	top: 0;
	left: 0;
	width: 100%;
	height: 50vh;
	overflow: hidden;
}

#corpo{
	position: relative;
	width: 100%;
	padding: 5rem 0;
}

.corpoSx{
	position: relative;
	float: left;
	width: 60%;
}

.corpoDx{
	position: relative;
	float: left;
	width: 40%;
	padding: 0 0 0 5%;
}

#tastoWizard{
	display: inline-block;
	padding: 1rem;
	background: #0052cc;
	color: #ffffff;
	font-weight: 700;
	transition: background 0.4s, color 0.4s;
	border: 0.2rem solid #0052cc;
	cursor: pointer;
}

#tastoWizard:hover{
	background: #ffffff;
	color: #0052cc;
}

@media (max-width: 767px){
	#logo{
		position: relative;
		width: 100%;
		height: 8.0rem;
		text-align: center;
	}
	
	.corpoSx, .corpoDx{
		float: left;
		width: 100%;
		padding: 0;
	}
	
	.istituzionali{
		width: 25%;
	}

	.istituzionali img{
		width: 60%;
	}

	.istituzionaliTesto{
		float: none;
		width: 100%;
		font-size: 1.0rem;
	}
}
/************************************************/
/* 				MenuText						*/
/************************************************/
#menu{
	position: relative;
	float: right;
	width: 80%;
	margin-top: 2rem;
	z-index: 101;
}

#nav{
}

#nav > a{
    display: none;
}
 
/* primo livello*/
#nav > ul{
	position: relative;
	top: 0;
	right: 0;
	margin: 0 auto; 
	padding: 0;
	list-style-type: none;
	font-size: 1.6rem;
}

#nav > ul > li{
	position: relative;
	float: left;
	top: 0;
	left: 0;
	margin: 0; 
	text-align: center;
	width: 20%;
}

#nav > ul > li a{
	display: block;
	color: #222222;
	text-decoration: none;
	padding: 1.5rem 0; 
}

#nav > ul > li a:hover{
	text-decoration: none;
	color: #0052cc;
}

/* secondo livello*/
#nav > ul > li ul{
	display: none;
	position: absolute;
	top: 100%;
	list-style-type: none;
	margin: 0;
	padding: 0;
	font-size: 1.2rem;
	width: 100%;
	left: 0%;
	background: #ffffff;
}

#nav li:hover ul{
    display: block;
}

#nav > ul ul > li{
	position: relative;
	float: none;
	width: 100%;
	margin-top: 0.8rem;
}

#nav > ul ul > li a{
	display: block;
	color: #222222;
	text-align: center;
	padding: 0.6rem 0px; 
}

#nav > ul ul > li a:hover{
	text-decoration:none;
	color: #0052cc;
}

@media only screen and ( max-width: 767px){
	#menu{
		float: none;
		width: 100%;
		height: auto;
		margin-top: 0rem;
	}
	
	#nav:not( :target ) > a:first-of-type,
	#nav:target > a:last-of-type{
		display: block;
	}
	
    /* first level */
    #nav > ul{
        height: auto;
        display: none;
        position: absolute;
        left: 0;
        right: 0;
		background: #ffffff;
		top: 3.6rem;
		border-radius: 0.5rem; 
		box-shadow: 0.2rem 0.2rem 0.4rem #444444;
		overflow: hidden;
    }
	
	#nav:target > ul{
		display: block;
	}
	
	#nav > ul > li{
		width: 100%;
		float: none;
		border-bottom: 1px solid #0052cc;
	}
	
	#nav > ul > li a{
		color: #222222;
	}
	
    /* second level*/
	#nav > ul > li ul{
		position: relative;
		background: #ffffff;
		box-shadow: 0rem 0rem 0rem transparent;
	}
	
	#nav li:hover ul{
		display: block;
	}

	#nav > ul ul > li{
		position: relative;
		float: none;
		width: 100%;
		border: 0;
	}

	#nav > ul ul > li a{
		display: block;
		color: #222222;
		text-align: left;
		padding: 0.4rem 2%; 
		border-top: 0.1rem solid #cccccc;
	}

	#nav > ul ul > li a:hover{
		text-decoration:none;
		color: #0052cc;
	}
}

.tastoMenu{
	position: relative;
	float: right;
	margin: 0rem  1%;
	background: #ffffff;
	border-radius: 0.4rem;
	padding: 0.5rem;
	color: #0052cc;	
}

.tastoMenu:hover{
}

/************************************************/
/* 				Fine							*/
/************************************************/
#fine{
	position: absolute;
	width: 100%;
	bottom: 0rem;
	text-align: center;
	background: #f8f8f8;
	font-size: 1.2rem;
	border-top: 0.1rem solid #cccccc;
}

/************************************************/
/* 				News							*/
/************************************************/
.boxNews{
	position: relative;
	width: 100%;
	margin: 0 0 2rem 0;
}

.boxNewsFloat{
	float: left;
	width: 46%;
	margin: 0 2% 2rem 2%;
}

.boxNews img{
	width: 100%;
	display: block;
}

.boxNewsSpazio{
	position: relative;
	width: 100%;
	height: 0;
}

.boxNewsTitolo{
	position: absolute;
	width: 100%;
	height: 40%;
	bottom: 0;
	left: 0;
	color: #ffffff;
	font-size: 2rem;
	font-weight: 500;
	background: rgba(0,0,0, 0.4);
	z-index: 100;
	padding: 0.8rem 4% 0 4%;
	line-height: 1.8rem;
}

span.boxNewsData{
	font-size: 1.2rem;
}

span.newsData{
	font-size: 1.2rem;
	font-style: italic;
}

.newsAnteprima{
	position: relative;
}

.newsFoto{
	position: relative;
	width: 100%;
	margin: 1rem 0;
}

.newsFoto img{
	width: 100%;
	display: inline-block;
}

/************************************************/
/* 				Chat							*/
/************************************************/
#chat{
	position: fixed;
	bottom: 0;
	right: 5%;
	width: 25rem;
	z-index: 20000;
	border: 0.1rem solid #0052cc;
	background: #ffffff;
	box-shadow: 0rem 0rem 1rem #444444;
	overflow: hidden;
}

.chat{
	height: 30rem;
}

.chiusa{
}

.ridotta{
	height: 3rem;
}

#chatChiudi, #chatRiduci, #chatEspandi{
	position: relative;
	float: right;
	width: 9%;
	padding: 0rem 0.4rem;
	text-align: center; 
	margin: 0 1%;
	cursor: pointer;
	border: 0.1rem solid 0052cc;
	display: none;
	cursor: pointer;
}

#chatChiudi:hover, #chatRiduci:hover, #chatEspandi:hover{
	background: #ffffff;
	color: #0052cc;
}

#chatBarra{
	position: relative;
	width: 100%;
	height: 3rem;
	background: #0052cc;
	color: #ffffff;
	font-weight: 700;
	font-size: 1.4rem;
	padding: 0.6rem 2%;
}

#chatIcon{
	position: relative;
	float: left;
	width: 9%;
	padding: 0rem 0.4rem;
	text-align: center; 
	margin: 0 1%;
	cursor: pointer;
}

.chatApri, .chatStato{
	position: relative;
	float: left; 
	width: 65%;
	cursor: pointer;
}

.chatStato{
	display: none;
}

#chatCorpo{
	position:relative;
	width: 100%;
	height: 21rem;
	padding: 0.2rem 2%;
	overflow: auto;
}

.messaggioUtente, .messaggioAdmin{
	position: relative;
	width: 90%;
	padding: 0.6rem 4%;
	border-radius: 1rem;
	background: #ffffff;
	overflow-x: hidden;
}

.messaggioUtente{
	margin: 0.6rem 0 0.6rem 10%;
	background: #dad8cc;
}

.messaggioAdmin{
	margin: 0.6rem 10% 0.6rem 0;
	background: #edece9;
}

#chatTesto{
	position:relative;
	width: 100%;
	height: 5rem;
	background: #fcfcfc;
}

#chatTesto form textarea{
	position: absolute;
	width: 80%;
	height: 100%;
	margin: 0.2rem 2%;
	padding: 0.4rem 2%;
	border: 0.1rem solid #cccccc;
	border-radius: 0.4rem;
	background: #fcfcfc;
	box-shadow: 0rem 0rem 0rem #444444;
	font-size: 1.4rem;
}

#chatTesto form input[type="submit"]{
	position: absolute;
	width: 16%;
	height: 100%;
	right: 1%;
	color: #0052cc;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	border: 0.1rem solid #0052cc;
}

#chatTesto form input[type="submit"]:hover{
	color: #ffffff;
	background:  #0052cc;
}

.fa-input {
  font-family: FontAwesome, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/************************************************/
/* 				Media Video						*/
/************************************************/
.video{
	position: relative;
	height: 0;
	overflow: hidden;
	padding-bottom: 55%
}

.video iframe,
.video object,
.video embed {
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

/************************************************/
/* 				Utilità							*/
/************************************************/
.vuoto {
	clear:both;
}

.visible-mob{
	display: none;
}

@media (max-width: 767px){
	.visible-mob{
		display: block;
	}
	
	.hidden-mob{
		display: none;
	}

}