/* Stile base: Desktop (>768px) */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	font-family: 'Roboto', sans-serif;
	background: #008000;
	color: #475569;
	line-height: 1.5;
		font-size: 16px;
}

h4,h5,h6 {
	color: #0F172A;;
}
h1, h2, h3 {
	color: #0F4C5C;
}
h2 {
	margin-bottom: 10px;
}
p {
	color: #475569;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 30px;
	background: #0F4C5C;
	color: #FFFFFF;
	height: 100px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Montserrat', sans-serif;
	font-weight: bold;
	font-size: 32px;
}

.logo img {
	height: 50px;
	border-radius: 100%;
}

nav {
	background: #134E4A;
}

.menu {
	display: flex;
	list-style: none;
	gap: 10px;
	padding: 10px 30px;
}

.menu a {
	font-size: 11px;
	display: block;
	padding: 10px 20px;
	background: rgba(255,255,255,0.15);
	color: #FFFFFF;
	text-decoration: none;
	border-radius: 5px;
	width: 100px;
	text-align: center;
	transition: all 0.2s ease;
}

.menu a:hover {
	background: rgba(255,255,255,0.25);
	transform: translateY(-2px);
}

.menu a.active {
	background: #F59E0B;
	color: #1F2937;
	font-weight: bold;
}

.menu a.active:hover {
	background: #16A34A;
}

.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
}

.hamburger .material-icons {
	font-size: 32px;
	color: white;
}

.container {
	flex: 1;
	display: flex;
	width: 100%;
	gap: 20px;
	padding: 20px 30px;
}

main {
	flex: 3;
}

article {
	background: #FFFFFF;
	padding: 30px;
	border-radius: 14px;
	margin-bottom: 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
	font-size: 17px;
	line-height: 1.7;
	color: #475569;
	overflow:auto;
}

article img {
	float: left;
	width: 33%;
	min-width: 200px;
	margin-right: 20px;
	margin-bottom: 10px;
	background: #ffffff;
	padding: 6px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 8px rgba(0,0,0,0.08);
	border-radius: 14px;
	border: none;
	padding: 0;
}

aside {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.box {
		background: #FFFFFF;
	padding: 25px;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.box img {
	width: 100%;
	background: #ffffff;
	box-shadow: 0 4px 8px rgba(0,0,0,0.08);
	border-radius: 14px;
	border: none;
	padding: 0;
}

footer {
	background: #386641;
	color: #FFFFFF;
	text-align: center;
	height: 50px;
	padding: 15px;
	font-size: 14px;
}

footer a {
	color: #93C5FD;
	text-decoration: none;
}

/* Tablet e smartphone grandi (≤768px) */
@media (max-width: 768px) {
	.container {
		flex-direction: column;
	}

	aside {
		flex-direction: row;
	}
  
	aside .box {
		flex: 1;
	}
}

/* Smartphone piccoli (≤480px) */
@media (max-width: 480px) {
	nav {
		position: fixed;
		top:0;
		right:0;
		bottom:0;
		left:0;
		background: #447604;
		display: flex;
		transform: translateY(-100%);
		transition: transform 0.4s ease;
		z-index: 100;
	}

	nav.show {
		transform: translateY(0);
	}

	.menu {
		flex-direction: column;
		gap: 30px;
		padding: 80px 0 0 0;
		font-size: 24px;
		font-weight: 600;
	}

	.menu a {
		color: #FFFFFF;	  
		background: none;
		text-align: left;
	}

	.menu a:hover {
		color: #52AD9C;
		background: none;
	}
  
	.menu a.active {
		color: #52AD9C;
		background: none;
	}

	.menu a.active:hover {
		color: #52AD9C;
		background: none;
	}

	.hamburger {
		display: flex;
		z-index: 101;
	}

	.hamburger .material-icons {
		font-size: 36px;
		color: #FFFFFF;
		cursor: pointer;
	}

	aside {
		flex-direction: column;
	}
}
