/* Stile base: Desktop (>768px) */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	height: auto;
}

body {
	display: flex;
	flex-direction: column;
	font-family: 'Rubik', sans-serif;
	background: #ADA8B6;
	color: #334155;
	line-height: 1.5;
	min-height: 100vh;
}

h1,h2,h3,h4,h5,h6 {
	color: #0F172A;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 30px;
	background: #23022E;
	color: #F8FAFC;
	height: 100px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Russo One', sans-serif;
	font-size: 30px;
	font-weight: bold;
	letter-spacing: 1.5px;
}

.logo img {
	height: 70px;
}

nav {
	background: #573280;
	position: sticky;
	top: 0;
	z-index: 3;
}

.menu {
	display: flex;
	list-style: none;
	gap: 10px;
	padding: 10px 30px;
}

.menu a {
	display: block;
	padding: 10px 20px;
	background: #23022E;
	color: #F8FAFC;
	text-decoration: none;
	border-radius: 5px;
	width: 100px;
	text-align: center;
}

.menu a:hover {
	background: #ae55f1;
}

.menu a.active {
	background: #380349;
	color: #FFFFFF;
	font-weight: bold;
}

.menu a.active:hover {
	background: #ae55f1;
}

.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;
	text-align: justify;
}

main {
	flex: 3;
}

article {
	display: flex;
	background: #FFFFFF;
	padding: 20px;
	margin-bottom: 20px;
}

.colonne {
	flex-direction: column;
}

.righe {
	flex-direction: row;
}

.lista {
	list-style-position: inside;
}

.lista ul {
	margin-left: 20px;
}

.lista a:link, article ul a:visited {
	color:#573280;
	text-decoration: none;
}

.lista a:hover, article ul a:active {
	color:#f25a02;
	text-decoration: none;
}

.link:link, .link:visited {
	color:#573280;
	text-decoration: none;
}

.link:hover, .link:active {
	color:#f25a02;
	text-decoration: none;
}

article img {
	width: 33%;
	min-width: 400px;
	max-width: 450px;
	background: #ffffff;
	padding: 6px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.destra {
	float: right;
	margin-left: 20px;
	margin-bottom: 10px;
}

.sinistra {
	float: left;
	margin-right: 20px;
	margin-bottom: 10px;
}

article a:hover img {
	background-color: #23022E;
}

aside {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.box {
	background: white;
	padding: 15px;
	text-align: left;
}

.box img {
	width: 100%;
	background: #ffffff;
	padding: 6px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

#indice {
	position: sticky;
	top: 84px;
}

#cpu, #cpu1, #cpu2, #gpu, #gpu1, #gpu2, #npu, #npu1, #npu2, #ssd, #ssd1, #ssd2, #hdd, #hdd1, #hdd2, #sd, #sd1, #sd2, #cd, #cd1, #cd2, #cd3, #cd4, #atx, #atx1, #atx2, #eps, #eps1, #eps2, #sata, #sata1, #sata2, #ethernet, #ethernet1, #ethernet2, #wifi, #wifi1, #wifi2, #mouse, #mouse1, #mouse2, #tastiera, #tastiera1, #tastiera2, #controller, #controller1, #controller2, #ram, #ram1, #ram2, #cache, #cache1, #cache2, #paging, #paging1, #paging2, #schermo, #schermo1, #schermo2, #casse, #casse1, #casse2, #cuffie, #cuffie1, #cuffie2, #aria, #aria1, #aria2, #liquido, #liquido1, #liquido2, #custom, #custom1, #custom2, #atx, #micro, #itx, #eatx {
	scroll-margin-top: 60px;
}

button {
	background-color: #380349;
	color: white;
	padding: 12px 24px;
	font-weight: bold;
	border-width: 0px;
}

button:hover {
	background-color: #573280;
}

.galleria {
	display: flex;
	flex-direction: column;
	align-content: flex-start;
}

.galleria div {
	display: flex;
	flex-flow: row wrap;
}

.galleria div div {
	display: flex;
	flex: 1;
	flex-flow: column;
	align-items: center;
	justify-content: space-between;
}

.galleria div div a {
	width: 100%;
	transition: 0.5s ease;
}

.galleria div div a:hover {
	z-index: 2;
	width: 130%;
}

.galleria div div img {
	margin: 0;
	padding: 4px;
	border: 0;
	width: 100%;
	height: auto;
	max-width: none;
}

footer {
	background: #23022E;
	color: #F8FAFC;
	text-align: center;
	align-content: center;
	height: 100px;
	margin-top: auto;
}

footer a {
	color: #93C5FD;
	text-decoration: none;
}

/* Tablet e smartphone grandi (≤768px) */
@media (max-width: 927px) {
	.container {
		flex-direction: column-reverse;
	}

	aside {
		flex-direction: row;
	}
  
	aside .box {
		flex: 1;
	}

	.lista {
		text-align: left;
	}

	article img {
	min-width: 300px;
	}

	#indice {
		position: static;
	}

	#indietro {
		position: static;
	}
}

/* Smartphone piccoli (≤480px) */
@media (max-width: 480px) {
	nav {
		position: fixed;
		top:0;
		right:0;
		bottom:0;
		left:0;
		background: #23022E;
		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: #cce6ff;
		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;
	}

	.righe {
		flex-wrap: wrap;
	}

	article img {
	min-width: 260px;
	}
}

@media (min-width: 1299px) and (max-width: 1700px) {
	.galleria div div {
		flex: none;
		width: 50%;
	}
}
