:root	{
	--page-width: 1300px;
	--text-color: black;
	--first-color: #63B32E;
	--second-color: #282828;
	--third-color: #706F6F;
	--body-background: #706F6F;
	--page-background: white;
	--shadow-color: grey;
}

html, body	{
	height: 100%;
}

body {
	//background-color: var(--body-background);
	background-image: url(images/background.jpg);
	font-family: 'Exo 2';
	color: var(--text-color);
	margin: 0 auto;
  	display: flex;
 	justify-content: center;
 	align-items: center;
}

a {
	text-decoration: none;
	color: var(--first-color);
}

.small-space	{
	height: 20px;
}
.medium-space	{
	height: 40px;
}
.big-space	{
	height: 60px;
}
.separator	{
	width: 90%;
	border: 1px solid var(--third-color);
}

.main-page {
	background-color: var(--page-background);
	height: 100%;
	width: var(--page-width);
	margin: 0 auto;
	display: flex;
 	flex-direction: column;
 	align-items: center;
 	justify-content: space-between;

 	//overflow-x: auto; da aggiungere con le ombre
}


/*//Ombre

.main-page	{
	-webkit-box-shadow:
	10px 0px 50px var(--shadow-color),
	-10px 0px 50px var(--shadow-color);
	-o-box-shadow:
	10px 0px 50px var(--shadow-color),
	-10px 0px 50px var(--shadow-color);
	-moz-box-shadow:
	10px 0px 50px var(--shadow-color),
	-10px 0px 50px var(--shadow-color);
	-ms-box-shadow:
	10px 0px 50px var(--shadow-color),
	-10px 0px 50px var(--shadow-color);
	box-shadow:
	10px 0px 50px var(--shadow-color),
	-10px 0px 50px var(--shadow-color);
}

/*
.header {
	-webkit-box-shadow:
	0px 5px 10px var(--shadow-color);
	-o-box-shadow:
	0px 5px 10px var(--shadow-color);
	-moz-box-shadow:
	0px 5px 10px var(--shadow-color);
	-ms-box-shadow:
	0px 5px 10px var(--shadow-color);
	box-shadow:
	0px 5px 10px var(--shadow-color);
}

.footer {
	-webkit-box-shadow:
	0px -5px 10px var(--shadow-color);
	-o-box-shadow:
	0px -5px 10px var(--shadow-color);
	-moz-box-shadow:
	0px -5px 10px var(--shadow-color);
	-ms-box-shadow:
	0px -5px 10px var(--shadow-color);
	box-shadow:
	0px -5px 10px var(--shadow-color);
}
*/

.header, .footer	{
	width: 100%;
	display: flex;
 	justify-content: center;
 	align-items: center;
 	flex-shrink: 0;
}

.header	{
	height: 80px;
	font-size: 20px;

	display: flex;
	flex-wrap: wrap;

	background:linear-gradient(bottom, var(--first-color), var(--second-color));
	background:-webkit-linear-gradient(bottom, var(--first-color), var(--second-color));
}


	.header a 	{
		height: 100%;
	}


.fixed-header	{
	position:fixed;
	top: 0;
  	width: var(--page-width);
  	z-index: 1;
}

.menu-item, .menu-logo, .active-menu-item	{
	display: flex;
 	justify-content: center;
 	align-items: center;

 	transition: 0.6s;
  	color: var(--page-background);
}

.menu-item, .active-menu-item	{
	width: 160px;
	height: 100%;
	border-left: 1px solid var(--first-color);
	border-right: 1px solid var(--first-color);
}

.menu-logo	{
	width: 320px;
	height: 100%;
	background: url(images/mast_text.png);
	background-size: 150px;
	background-repeat: no-repeat;
	background-position: center;

}

.menu-item:hover, .active-menu-item {
  	background-color: var(--first-color);
  	color: white;
}

.menu-logo:hover {
	background: url(images/mast_text.png);
	background-size: 170px;
	background-repeat: no-repeat;
	background-position: center;
}


.footer	{
	height: 60px;

	background:linear-gradient(top, var(--first-color), var(--second-color));
	background:-webkit-linear-gradient(top, var(--first-color), var(--second-color));

	color: var(--page-background);
}

.main-container	{
	background-color: var(--page-background);
	width: 100%;
	display: flex;
 	justify-content: center;
 	align-items: center;
	flex-direction: column;
}

.home-div-1, .home-div-2, .home-div-image	{
	width: 100%;
	margin: 0;
	display: flex;
	align-items: center;
 	justify-content: space-around;
}

.home-div-image	{
	height: 400px;
	background: linear-gradient( rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) ), url('images/keyboard.jpg');
	background: -webkit-linear-gradient( rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) ), url('images/keyboard.jpg');
}

.home-div-1		{
	flex-direction: column;
	justify-content: center;
}

.home-subdiv-image, .home-subdiv-1		{
	width: 70%;
	text-align: center;
	transition: 0.6s;
}

.chisiamo-text {
	width:60%;
}

.home-subdiv-image 	{
	font-size: 36px;
	color: white;
	text-shadow: 2px 2px 2px black;
}

.home-subdiv-image:hover	{
	width: 90%;
	font-size: 40px;
}

.home-subdiv-image img {
	max-width: 550px;
	transition: 0.6s;
}

.home-subdiv-image:hover img {
	max-width: 600px;
}

@media only screen and (max-width: 665px) {
	.menu-item-1 {order: 2;}
	.menu-item-2 {order: 1; flex-basis: 100%;}
	.menu-item-3 {order: 3;}

	.contact-text-1 {order: 3; padding-bottom: 30px;}
	.contact-text-2 {order: 2; padding-bottom: 30px;}
	.contact-text-3 {order: 1;}

	.header a 	{
		height: 50%;
	}
	.menu-logo 	{
		width: 100%;
		background-size: 90px;
	}
	.menu-logo:hover	{
		background-size: 100px;
	}
	.home-div-image	{
		height: 250px;
	}
	.home-subdiv-image img {
		width: 340px;
	}

	.home-subdiv-image:hover img {
		width: 370px;
	}

	.home-subdiv-image 	{
		width:80%;
		font-size: 20px;
	}
	.home-subdiv-image:hover	{
		width: 90%;
		font-size: 22px;
	}
	.home-subdiv-1	{
		width:70%;	
	}
}

.home-div-2	{
	flex-wrap: wrap;
}

.section-title	{
	font-size: 30px;
	font-weight: bold;
	border-bottom: 2px solid var(--third-color);
	padding-bottom: 15px;
	width: 250px;
	text-align: center;
	transition: 0.6s;
}

.section-title:hover	{
	width: 350px;
}

.attivita-1, .attivita-2, .attivita-3, .attivita-4	{
	width: 170px;
	height: 250px;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: space-between;
}

.img-attivita-1, .img-attivita-2, .img-attivita-3, .img-attivita-4	{
	width: 150px;
	height: 150px;
	background-size: 80%;
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 35px 5px;
	transition: 0.6s;	
}

.img-attivita-1:hover,	.img-attivita-2:hover,	.img-attivita-3:hover,	.img-attivita-4:hover	{
	width: 170px;
	height: 170px;
	background-size: 80%;
	background-repeat: no-repeat;
	background-position: center;
	background-color: var(--first-color);
}

.nome-attivita	{
	font-size: 18px;
	font-weight: bold;
}

.descrizione-attivita	{
	text-align: center;
	font-size: 15px;
}

.work-container, .contact-container	{
	width: 90%;

	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}


.work-image	{
    width: 40%;
    overflow: hidden;
}

.work-image img {
    max-width: 100%;
    transition: all 0.6s;
    transform: scale(1);
}

.work-image:hover img {
    transform: scale(1.5);
}

.work-title, .contact-title	{
	width: 100%;
	font-size: 20px;
	font-weight: bold;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--third-color);
}

.work-text	{
	width: 60%;
	padding-left: 30px;
	padding-right: 30px;
}

.contact-text		{
	width: 38%;
}

.contact-text i		{
	color: var(--first-color);
}

.contact-map		{
	width: 58%;
	height: 420px;
}

@media only screen and (max-width: 800px) {

	#work-container-1	{
		flex-wrap: wrap-reverse;	
	}
	#work-container-2	{
		flex-wrap: wrap;	
	}
	#work-container-3	{
		flex-wrap: wrap-reverse;	
	}
	#work-container-4	{
		flex-wrap: wrap;	
	}

	.work-container	{
		align-content: stretch;
	}

	.work-image, .work-text	{
    	width: 100%;
    	padding-left: 10px;
		padding-right: 10px;
    }

    .contact-container	{
		flex-wrap: wrap-reverse;
		align-content: space-around;
	}

	.contact-text, .contact-map		{
		width: 100%;
		padding-left: 10px;
		padding-right: 10px;
	}

}