/* 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: #ffccd5;
	color: #334155;
	line-height: 1.5;
}

h1,h2,h3,h4,h5,h6 {
	color: #590d22;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 30px;
	background: #590d22;
	color: #F8FAFC;
	height: 100px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family:Au Bord de la Seine;
	font-size: 30px;
	font-weight: bold;
}

.logo img {
	height: 50px;
}

nav {
	background: #800f2f;
}

.menu {
	display: flex;
	list-style: none;
	gap: 10px;
	padding: 10px 30px;
}

.menu a {
	display: block;
	padding: 10px 20px;
	color: #F8FAFC;
	text-decoration: none;
	border-radius: 5px;
	width: auto;
	text-align: center;
}

.menu a:hover {
	background: #ffccd5;
}

.menu a.active {
	background: #E83F6DF;
	color: #FFFFFF;
	font-weight: bold;
}

.menu a.active:hover {
	background: #ffccd5;
}

.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: white;
	padding: 20px;
	margin-bottom: 20px;
	list-style-type:none;
	overflow:auto; 
}

article img {
	float: left;
	width: 20%;
	min-width: 100px;
	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);
}

aside {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.box {
	background: white;
	padding: 15px;
}

.box img {
	width: 100%;
	background: #ffffff;
	padding: 6px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

footer {
	background: #590d22;
	color: #F8FAFC;
	text-align: center;
	height: 50px;
}

footer a {
	color: #ff4d6d;
	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: #800f2f;
		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: #F8FAFC;
		background: none;
	}
  
	.menu a.active {
		color: #ffccd5;
		background: none;
	}

	.menu a.active:hover {
		color: #ffccd5;
		background: none;
	}

	.hamburger {
		display: flex;
		z-index: 101;
	}

	.hamburger .material-icons {
		font-size: 36px;
		color: #FFFFFF;
		cursor: pointer;
	}

	aside {
		flex-direction: column;
	}
}
