/* Pagina di un articolo: schermo e stampa (A4). Font in fonts.css. */

:root {
	--font-title: "Les Flos Sage", "Fredoka", sans-serif; /* font dei titoli */
	--olive: #98992b;
	--red: #e1141c;
	--ink: #1c1c1c;
	--brown: #432f2c;
	--cream: #fbf9e1;
}
* {
	box-sizing: border-box;
}
html {
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}
body {
	margin: 0;
	background: #ebe7d3;
	color: var(--ink);
	font-family: Calibri, Carlito, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.bar {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 20px;
	background: var(--brown);
	color: var(--cream);
}
.bar a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}
.bar button {
	padding: 8px 16px;
	border: 0;
	border-radius: 99px;
	background: #17fc96;
	color: var(--brown);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.preview-banner {
	padding: 8px 16px;
	background: #c8a627;
	color: var(--brown);
	text-align: center;
	font-weight: 700;
}
.paper {
	max-width: 880px;
	margin: 26px auto 60px;
	padding: 36px 56px 30px;
	background: #fff;
	box-shadow: 0 20px 44px -24px rgba(0, 0, 0, 0.5);
}
table.sheet {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
}
table.sheet > thead > tr > td,
table.sheet > tbody > tr > td,
table.sheet > tfoot > tr > td {
	padding: 0;
	vertical-align: top;
}
.mast {
	position: relative;
	padding: 4px 0 24px;
	text-align: center;
}
.mast .brand {
	display: inline-block;
	padding: 0 10px 8px;
	border-bottom: 2px solid var(--olive);
	color: var(--olive);
	font:
		700 38px/1.1 var(--font-title),
		"Segoe UI",
		Arial,
		sans-serif;
	text-decoration: none;
}
.mast img {
	position: absolute;
	right: 0;
	top: -6px;
	width: auto;
	height: 84px;
}
.title {
	font-family: var(--font-title);
	margin: 6px 0 20px;
	color: var(--red);
	font-size: 1.5rem;
	line-height: 1.3;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
}
.subtitle {
	margin: -8px 0 20px;
	color: #444;
	font-size: 1.1rem;
	font-style: italic;
	text-align: center;
}
.byline {
	margin: -8px 0 20px;
	color: #555;
	text-align: center;
}
.art p {
	margin: 0 0 14px;
	text-align: justify;
	hyphens: auto;
}
.art strong {
	font-weight: 700;
}
.art a {
	color: #2d6a7a;
}
.art .sub {
	font-family: var(--font-title);
	margin: 26px 0 10px;
	font-size: 1.2rem;
	line-height: 1.3;
	font-weight: 700;
}
.art .pull {
	margin: 22px 30px;
	padding: 2px 0 2px 18px;
	border-left: 3px solid var(--olive);
	font-size: 1.15rem;
	font-style: italic;
	font-weight: 600;
}
.art hr {
	margin: 26px 0;
	border: 0;
	border-top: 1px solid #ccc;
}
.fig {
	margin: 20px 0;
}
.fig img {
	display: block;
	width: 100%;
	height: auto;
}
.fig figcaption {
	margin-top: 6px;
	color: #555;
	font-size: 0.82rem;
	line-height: 1.4;
}
.fig-center {
	width: 64%;
	margin-left: auto;
	margin-right: auto;
}
.fig-left {
	float: left;
	width: 46%;
	margin: 6px 24px 12px 0;
}
.fig-right {
	float: right;
	width: 46%;
	margin: 6px 0 12px 24px;
}
.art::after {
	content: "";
	display: table;
	clear: both;
}
.art .signature {
	margin-top: 44px;
	font-style: italic;
	text-align: right;
}
.notes {
	margin-top: 40px;
}
.notes::before {
	content: "";
	display: block;
	width: 32%;
	margin-bottom: 8px;
	border-top: 1px solid #222;
}
.art .note {
	margin: 0 0 2px;
	font-size: 0.8rem;
	line-height: 1.4;
	text-align: left;
	hyphens: none;
}
.note a {
	word-break: break-all;
}
sup.fn a {
	color: inherit;
	text-decoration: none;
}
.contacts {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 12px;
	margin-top: 34px;
	padding-top: 10px;
	color: var(--olive);
	font-size: 0.78rem;
	font-weight: 700;
}
.contacts span:nth-child(2) {
	text-align: center;
}
.contacts span:last-child {
	text-align: right;
}
.contacts a {
	color: inherit;
	text-decoration: underline;
}
@page {
	size: A4;
	margin: 14mm 17mm 12mm;
}
@media print {
	body {
		background: #fff;
		font-size: 11.5pt;
		line-height: 1.45;
	}
	.no-print {
		display: none !important;
	}
	.paper {
		max-width: none;
		margin: 0;
		padding: 0;
		box-shadow: none;
	}
	table.sheet {
		height: 266mm;
	}
	table.sheet > tbody > tr > td {
		height: 100%;
	}
	table.sheet > thead > tr > td,
	table.sheet > tfoot > tr > td {
		height: 1px;
	}
	thead {
		display: table-header-group;
	}
	tfoot {
		display: table-footer-group;
	}
	.mast {
		padding-bottom: 18px;
	}
	.mast .brand {
		font-size: 26pt;
	}
	.mast img {
		height: 22mm;
	}
	.title {
		font-size: 15pt;
	}
	.fig,
	.pull,
	.note {
		break-inside: avoid;
	}
	.title,
	.sub {
		break-after: avoid;
	}
	.art p {
		orphans: 3;
		widows: 3;
	}
}
@media (max-width: 640px) {
	.paper {
		margin: 0 0 40px;
		padding: 22px 18px;
	}
	.mast .brand {
		font-size: 26px;
	}
	.mast img {
		height: 54px;
	}
	.fig-left,
	.fig-right,
	.fig-center {
		float: none;
		width: 100%;
		margin: 16px 0;
	}
	.art .pull {
		margin: 18px 6px;
	}
	.contacts {
		grid-template-columns: 1fr;
	}
	.contacts span {
		text-align: center !important;
	}
}

/* sullo schermo (non in stampa) i link della pagina sono più comodi da toccare */
@media screen {
	.bar a {
		display: inline-block;
		padding: 10px 6px;
	}

	.bar button {
		padding: 10px 18px;
	}

	.contacts a {
		display: inline-block;
		padding: 8px 0;
	}
}
