/* Stile base: Desktop (>768px) */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
}

body {
	font-family: 'Zalando Sans Expanded', sans-serif;
	background: #F8FAFC;
	color: #FFFFFF;
	line-height: 1.5;
}

h1,h2,h3,h4,h5,h6 {
	color: #FFFFFF;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 30px;
	background: #000000;
	color: #F8FAFC;
	height: 100px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Zalando Sans Expanded', sans-serif;
	font-size: 30px;
	font-weight: bold;
}

.logo img {
	height: 70px;
}

nav {
	background: #1E293B;
}

.menu {
	display: flex;
	list-style: none;
	gap: 10px;
	padding: 10px 30px;
}

.menu a {
	display: block;
	padding: 10px 20px;
	background: #334155;
	color: #FFFFFF;
	text-decoration: none;
	border-radius: 5px;
	width: 235px;
	text-align: center;
}

.menu a:hover {
	background: #64748b;
}

.menu a.active {
	background: #7EA0B7;
	color: #FFFFFF;
	font-weight: bold;
}

.menu a.active:hover {
	background: #0284C7;
}

.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
}

.hamburger .material-icons {
	font-size: 32px;
	color: white;
}

ul {
	list-style-position: inside;
}

main {
	background: #324A5F;
	display: flex;
	flex-direction: row
}

article {
	background: #1B2A41;
	width: 33%;
	padding: 20px;
	margin: 20px;
	justify-content: "justify";
}

section {
	background: #1B2A41;
	width: 33%;
	padding: 20px;
	margin: 20px;
	justify-content: "justify";
}

aside {
	background: #1B2A41;
	width: 33%;
	padding: 20px;
	margin: 20px;
	justify-content: "justify";
}

article img {
	float: left;
	width: 60%;
	min-width: 200px;
	margin-top: 5px;
	margin-right: 20px;
	margin-bottom: 5px;
	background: #ffffff;
	padding: 3px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

section img {
	
	width: 100%;
	margin-top: 5px;
	margin-right: 20px;
	margin-bottom: 5px;
	background: #ffffff;
	padding: 3px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

aside img {
	
	width: 70%;
	float: right;
	margin-top: 5px;
	margin-right: 20px;
	margin-bottom: 5px;
	background: #ffffff;
	padding: 3px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

footer {
	background: #000000;
	color: #F8FAFC;
	text-align: center;
	height: 50px;
}

footer a {
	color: #93C5FD;
	text-decoration: none;
}

/* Tablet e smartphone grandi (≤768px) */
@media (max-width: 768px) {
	main {
		flex-direction: column;
	}

	article,
	section,
	aside {
		width: 100%;
		margin: 10px 0;
	}
	
	article img,
	aside img {
		float: none;
		display: block;
		width: 100%;
		margin: 10px 0;
	}
	
	.menu {
		justify-content: center;
		flex-wrap: wrap;
	}

	.menu a {
		width: auto;
		padding: 10px 15px;
	}
}

/* Smartphone piccoli (≤480px) */
@media (max-width: 480px) {
	nav {
		position: fixed;
		top:0;
		right:0;
		bottom:0;
		left:0;
		background: #0F172A;
		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: #DDDDDD;
		background: none;
	}
  
	.menu a.active {
		color: #0EA5E9;
		background: none;
	}

	.menu a.active:hover {
		color: #0284C7;
		background: none;
	}

	.hamburger {
		display: flex;
		z-index: 101;
	}

	.hamburger .material-icons {
		font-size: 36px;
		color: #FFFFFF;
		cursor: pointer;
	}

	aside {
		flex-direction: column;
	}
	
	.logo {
		font-size: 20px;
	}

	body {
		font-size: 14px;
	}
}
