/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:700|Montserrat:300,700');
* {
	margin: 0;
	padding: 0;
	outline: 0;
	box-sizing: border-box;
	font-family: "Open-sans", sans-serif;
}
html {
	height: 100%;
}
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	/*height: 100%;*/
	font-family: "Open-sans", sans-serif ;
	background-image: linear-gradient(to top right, #f5f5f5, #fff);
	overflow-x: hidden;
}
a, a:hover {
	text-decoration: none;
}
/*************************
         nav
**************************/
.sticky {
	position: sticky;
	top: 0;
	left: 0;
}
nav {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 70px;
	padding: 2%;
	background: #101010;
	z-index: 999;
}
nav ul {
	display: flex;
	justify-content: center;
	list-style: none;
}
nav ul li {
	/*display: inline-block;*/
	margin: 0 10px;
}
nav ul li a {
	padding: .75rem 1rem;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 1px;
	border-radius: 5px;
	transition: .5s;
}
nav li a:hover {
	color: #ff0000;
	background: #000;
}
.active {
	 color: #ff0000;
	 background: #000;
}
/***********************
    mobile icon menu	
***********************/
#toggle {
	display: none;
}
#hamburger {
  display: none;
  position: absolute;
  top: 20px;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  border-radius: 4px;
  background: #000;
  outline: none;
}
.bar {
	width: 24px;
	height: 1px;
	padding: 2px;
	margin: 5px auto;
	display: block;
	background: #fff;
	border-radius: 20px;
	transition: .8s ease-in-out;
}
/*************************
        icon nav
**************************/
nav span {
	/*margin-right: 0;*/
}
/********************
      icons nav
********************/
.icons img {
	padding: 1px;
	margin: 1px;
	width: 24px;
	height: 24px;
	text-align: center;
	opacity: .5;
	transition: transform 300ms;
}
.icons img:hover {
	opacity: 1;
	transform: scale(1.2);
}
/********************
        logo
*********************/
.logo img {
   margin-right: 100%;
   width: 150px;
   /*height: 120px;*/
   cursor: pointer;
   opacity: .7;
}
.logo img:hover {
	opacity: 1;
}
/******************************
          section
******************************/
section{
	display: flex;
	flex-wrap: wrap;
	align-self: stretch;
	width: 100%;
	height: auto;
	padding: 10px;
}
/**********************************
   container left-area right-area 
***********************************/
.container { 
	display: flex;
	flex-wrap: wrap; 
	/*flex: 1;*/
	background: transparent;
	/*margin: 0 auto;
	width: 100%;*/
}
.content {
	margin: 15px 30px;
	display: flex;
	padding: 10px;
	font-size: 16px;
}
.left-area, .right-area {
	width: 45%;
	margin: 0 15px;
	padding: 10px;
	font-size: 15px;
	color: #111;
	font-family: sans-serif;
	align-self: stretch;
}
.left-area img {
  float: left;
  width: 150px;
  height: 150px;
}
.right-area img {
  float: right;
  width: 150px;
  height: 150px;
}
.text {
	font-size: 20px;
	font-weight: 500;
	font-family:"open-sans", sans-serif;
	color: #c0392b;

}
/******************
       box
*******************/
.box-container {
	display: flex;
	flex-wrap: wrap;
	align-self: stretch;
}
.box {
	width: 30%;
	background: #fefefe;
	color: #111;
	margin: 10px auto;
	border-radius: 5px;
	box-shadow: 0px 10px 9px -9px #000;
	cursor: pointer;
	/*opacity: .8;*/
    transition: .7s;
}
.box-title {
	width: 100%;
	height: 2.5rem;
	margin: 0;
	padding-top: 8px;
	padding-bottom: 8px;
	text-align:center;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	background: #9c0d11;
	color: #fff;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.5rem;
	opacity: .8;
}
.box-description {
	padding: 15px;
}
.box:hover .box-title {
	opacity: 1;
}
.box:hover {
	transform: scale(1.02);
}

/**********************
  lista con immagini
***********************/
ol {
	line-height: 1.5rem;
}
ol li {
	list-style-image: url("../images/pallino.png");
	margin-left: 25px;
	padding-left: 10px;
}
ol li img {
	width: 24px;
	height: 24px;
}
/*********************
   horizontal rule
**********************/
hr {
	height: 2px;
	width: 50%;
	background: #9c0d23;
	border-radius: 20px;
	margin: 10ox;
	padding: 10px;
}
.red {
	font-weight: 700;
	color: #9c0d23;
}
/*************************************
  footer + draw animation bottom nav
**************************************/
footer {
	/* position: sticky;
	bottom: 0;
	left: 0; */
	background: #141414;
	color: #fff;
	padding: 1rem 1rem;
}
footer a {
	color: #a1a1a1; /* #3b3b3b #c0392b 088*/
	position: relative;
	padding: 5px;
	text-decoration: none;
}
footer a:hover {
	color: #c0392b;
}
footer a::after {
   content:"";
   position: absolute;
   bottom: -3px;
   width: 0;
   left: 0;
   height: 3px;
   background: #b00;
   border-radius: 20px;
   transition: all .3s, right .3s;
}
footer a:hover::after {
   width: 100%;   
}
.footer-container {
	max-widt: 1200px;
	margin: 0 auto;
}
.footer-main {
	display: flex;
	margin-bottom: .5rem;
}
.footer-column {
	flex-basis: 200px;
	flex-grow: 1;
	text-align: center;/*
	border: 1px solid #aaa;*/
}
.footer-heading {
	margin-bottom: 0.5rem;	
}
.footer-text {
	margin-bottom: 0;
	color: #f9f9f1; 
}
.footer-link {
	display: block;
	width: max-content;
	padding: 5px 10px;
	margin: 0 auto;
}
.footer-bottom {
	display: flex;
	margin-top: 3px;
	padding: .55rem;
	box-shadow: 0 4px 4px -4px #000 inset;
}
.copyright {
	margin-right: auto;
}
.footer-social {
	font-size: 20px;
	margin-left: 2rem;

}
/*********************
   viewport mobile
**********************/

@media(max-width: 940px){
	nav {
		display: flex;
		justify-content: space-between;
	}
	nav ul {
		display: block;
		position: absolute; /*fixed*/
		top: -400%; /*-100%*/
		left: 0; 
		width: 100%;
		height: 280px; 
		background: #151515;
		text-align: center; 
		transition: .8s ease-in-out;
		z-index: 100;
	}
	nav ul li {
		margin-top: 0px;
		margin-left: 20px;
	}
	nav ul li a {
		display: block;
		font-size: 16px;
		width: 98%;
		padding-right: 10px;
	}
	nav ul li a:hover {
		background: #000;
	}
	nav ul li a.active {
		background: transparent;
	}
	nav ul li a.active:hover {
		background: #000;
	}
	nav .logo {
		margin-right: 0;
	}
	.icons {
		width: 24px;
		height: 24px;	
	}
	.box {
		margin: 10px auto;
	}
	.container {
		
	}
    .left-area, .right-area {
    	width: auto;
    	margin: 5px;
    }
	#hamburger {
		display: block;
	}
	#toggle:checked ~ nav ul {
		display: block;
		top: 70px;
		height: 280px; /*auto*/
		padding-bottom: 10px;	
	}
	#toggle:checked ~ nav #hamburger .bar:nth-child(1){
		transform: translateY(9px) rotate(45deg);
        background: #c00;
	}
	#toggle:checked ~ nav #hamburger .bar:nth-child(2){
		opacity: 0;
	}
	#toggle:checked ~ nav #hamburger .bar:nth-child(3){
		transform: translateY(-9px) rotate(-45deg);
		background: #c00;
	}
	 #toggle:checked ~ .container {
		margin-top: 280px; /*0*/
		transition: .8s;
   }
}
@media(min-width:939px) {
		.left-area, .right-area {
			width: 45%;
		}
		.box {
			margin: 10px auto;
		}
	}
@media(max-width:768px) {

	footer {
		padding: 0.025rem 1rem;
	}
	.footer-column {
		flex-basis: 120px;
	}
	.footer-main {
		flex-direction: column;
	}
	.footer-bottom, .copyright, .footer-link {
		width: 100%;
		flex-wrap: wrap;
		text-align: center;
	}
	.footer-text {
		color: #8d8d8d;
	}
	footer a {
		color: #8c8c8c;
	}
}
@media(max-width:600px) {
	  .box {
	  	 width: 90%;
	    }    	
	}
@media(max-width:540px) {
	  .left-area, .right-area {
			width: 100%;
		}
}