﻿@import url('https://fonts.googleapis.com/css2?family=Homenaje&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
:root {
	--padding-vert: 25px;
	--padding-oriz: 40px;
	--padding-vert-small: 20px;
	--padding-oriz-small: 20px;
	--scuro: linear-gradient(15deg, #DD8DFF, #61FFA8);
	--accent: #8d03ff;
	--ombra: 0 0 0 white;
}
body {
	background: #f5f5f5;
	margin: 20px;
	font-family: Inter, sans-serif;
	#container {
		width: 80%;
		margin: 0 auto;
	}
	h1 {
		margin: 0 0 10px;
		font-size: 3.5em;
		line-height: 49px;
		font-family: Homenaje;
		font-weight: 400;
	}
	h2 {
		margin: 5px 0 15px;
		line-height: 40px;
		font-family: Homenaje;
		font-size: 35px;
		font-weight: 400;
	}
	p {
		margin: 0 0 15px;
		font-size: 16px;
		line-height: 24px;
	}
	header, footer {
		border-radius: 5px;
	}
	header {
		position: relative;
		#switcher {
			position: absolute;
			right: var(--padding-oriz);
			bottom: var(--padding-vert);
			border-radius: 15px;
			width: 160px;
			height: 30px;
			background: #fff8;
			cursor: pointer;
			div {
				position: absolute;
				left: 0;
				width: 80px;
				height: 30px;
				border-radius: 15px;
				background: var(--accent);
				box-shadow: 0 0 10px var(--scuro);
				transition: .4s;
			}
			span {
				position: absolute;
				top: 0;
				width: 80px;
				line-height: 30px;
				font-size: .8em;
				text-align: center;
				&.ita {
					right: 0;
				}
				&.selected {
					color: white;
					font-weight: bold;
				}
			}
			&:hover {
				color: var(--accent);
			}
		}
	}
	main {
		margin: 30px 0;
		article {
			padding: 20px 10px;
			border-top: 2px solid black;
			a {
				font-weight: bold;
				color: var(--accent);
				text-decoration-thickness: 2px;
				text-underline-offset: 2px;
				transition: .1s;
				&:hover {
					color: #58007b;
					text-decoration-thickness: 3px;
					text-underline-offset: 5px;
				}
			}
			ul {
				padding-left: 10px;
				list-style-type: none;
				li {
					margin: 0 0 10px;
					a::before {
						display: inline-block;
						width: 20px;
						content: url('/img/page.svg');
						vertical-align: sub;
					}
				}
			}
		}
	}
}
@media screen and (max-width: 1024px) {
	body #container {
		width: 100%;
	}
}
@media screen and (max-width: 768px) {
	body {
		margin: 10px;
		header #switcher {
			right: var(--padding-oriz-small);
			bottom: var(--padding-vert-small);
		}
		main article {
			padding: var(--padding-vert-small) var(--padding-oriz-small);
		}
		footer {
			padding: var(--padding-vert-small) var(--padding-oriz-small);
		}
	}
}
@media print {
	#back {
		display: none;
	}
	body {
		margin: 0;
		#container {
			width: 100%;
		}
		h1 {
			font-size: 35px;
		}
		h2 {
			font-size: 25px;
		}
		p {
			font-size: 13px;
			line-height: 18px;
		}
		header, article, footer {
			border-radius: 0;
			box-shadow: none;
			border-bottom: 1px solid gray;
			page-break-inside: avoid;
		}
		header {
			color: black;
			#switcher {
				display: none;
			}
		}
		main {
			margin: 0;
			article {
				padding: var(--padding-vert-small) 0;
			}
		}
		footer {
			padding: var(--padding-vert-small) 0;
			background: initial;
			p, p a {
				color: black;
			}
		}
	}
}
