/* =========================================================================
   Il Giornale delle PMI · edizione sfogliabile (/sfoglia/)

   Grafica da magazine editoriale: pagine bianche, testata con il logo vero,
   titoli serif grandi e chiari, occhielli rossi, sommari in grassetto,
   riquadri neri, foto tagliate in diagonale o a tutta altezza, citazioni e
   brevi a colonne.

   Dimensioni e numero di pagine affiancate li calcola sfoglia.js e li passa
   qui come --page-w, --page-h e --per-view. Dentro la pagina tipografia e
   spazi usano cqi/cqb, cioe' la larghezza e l'altezza della pagina stessa.
   ====================================================================== */

@font-face {
	font-family: "Roboto Local";
	src: url("../fonts/roboto-latin-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* Newsreader, servito dal sito (licenza SIL OFL 1.1, vedi assets/fonts/OFL-Newsreader.txt).
   Variabile: spessore 200-800 e dimensione ottica 6-72. Solo latino e latino esteso. */

@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/newsreader-normal-400-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/newsreader-normal-400-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/newsreader-italic-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/newsreader-italic-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--paper: #fff;
	--ink: #111214;
	--ink-2: #3b3f45;
	--muted: #6e737a;
	--line: #dadbdd;
	--rule: #111214;
	--accent: #d9281f;
	--desk: #d8d8d5;

	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Roboto Local", Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

	--bar-h: 48px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	display: flex;
	flex-direction: column;
	background: var(--desk);
	color: var(--ink);
	font-family: var(--sans);
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
}

button {
	font: inherit;
	color: inherit;
}

[hidden] {
	display: none !important;
}

.noscript {
	margin: auto;
	padding: 24px;
	font-family: var(--serif);
	font-size: 18px;
	text-align: center;
}

/* -------------------------------------------------------------------------
   Barra del prototipo e cornice del dispositivo
   ---------------------------------------------------------------------- */

.demo {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding: 8px 16px;
	background: #111316;
	color: #c9cdd3;
	font-size: 13px;
}

.demo strong {
	color: #fff;
	font-weight: 600;
}

.demo label {
	display: flex;
	align-items: center;
	gap: 8px;
}

.demo select {
	font: inherit;
	background: #23262b;
	color: #fff;
	border: 1px solid #3a3e45;
	border-radius: 6px;
	padding: 4px 8px;
}

.demo-info {
	color: #8b9099;
}

.no-demo .demo {
	display: none;
}

.viewport {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.device {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--desk);
	overflow: hidden;
	container-type: size;
	container-name: device;
}

/* Centrata con la posizione: sfoglia.js aggiunge translate(-50%, -50%) e la scala. */
.device.framed {
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius: 30px;
	box-shadow: 0 0 0 10px #0b0c0e, 0 30px 80px rgb(0 0 0 / 40%);
	transform-origin: center;
}

/* Linea della cerniera, solo nella simulazione. */
.fold {
	position: absolute;
	z-index: 10;
	pointer-events: none;
}

.fold.v {
	top: 0;
	bottom: 0;
	left: 50%;
	border-left: 1px dashed rgb(0 160 255 / 70%);
}

.fold.h {
	left: 0;
	right: 0;
	top: 50%;
	border-top: 1px dashed rgb(0 160 255 / 70%);
}

/* -------------------------------------------------------------------------
   Barra dell'app
   ---------------------------------------------------------------------- */

.bar {
	flex: 0 0 calc(var(--bar-h) + env(safe-area-inset-top));
	padding: env(safe-area-inset-top) 10px 0;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 8px;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-size: 13px;
}

.bar-start {
	display: flex;
}

.bar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 34px;
	padding: 0 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.bar-btn:hover {
	background: rgb(0 0 0 / 6%);
}

.bar-btn:focus-visible {
	outline: 2px solid var(--ink);
}

.bar-btn:disabled {
	opacity: .3;
	cursor: default;
	background: transparent;
}

.bar-mid {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	overflow: hidden;
	white-space: nowrap;
}

.bar-logo {
	display: block;
	width: auto;
	height: 17px;
}

.bar-count {
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.bar-nav {
	justify-self: end;
	display: flex;
	gap: 2px;
}

.bar-nav .bar-btn {
	width: 40px;
	padding: 0;
	font-size: 24px;
	line-height: 1;
}

@container device (max-width: 560px) {
	.bar-btn .lbl {
		display: none;
	}

	.bar-logo {
		height: 13px;
	}

	.bar-mid {
		flex-direction: column;
		gap: 2px;
	}

	.bar-count {
		font-size: 11px;
	}
}

/* -------------------------------------------------------------------------
   Palcoscenico e sfoglio
   ---------------------------------------------------------------------- */

.stage {
	position: relative;
	flex: 1;
	min-height: 0;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.book,
.r-scroll {
	width: calc(var(--page-w) * var(--per-view));
	height: var(--page-h);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	background: var(--paper);
	box-shadow: 0 14px 40px rgb(0 0 0 / 22%);
	outline: none;
}

.book {
	display: flex;
}

.book::-webkit-scrollbar,
.r-scroll::-webkit-scrollbar {
	display: none;
}

.page {
	position: relative;
	flex: 0 0 var(--page-w);
	width: var(--page-w);
	height: var(--page-h);
	overflow: hidden;
	background: var(--paper);
	container-type: size;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

/* Due pagine affiancate: si aggancia solo la pagina di sinistra. */
.spread .page:nth-child(even) {
	scroll-snap-align: none;
}

/* La piega centrale, dove cade anche la cerniera dell'iPhone Duo. */
.spread .page::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 5%;
	pointer-events: none;
}

.spread .page:nth-child(odd)::after {
	right: 0;
	background: linear-gradient(to left, rgb(0 0 0 / 9%), rgb(0 0 0 / 0));
}

.spread .page:nth-child(even)::after {
	left: 0;
	background: linear-gradient(to right, rgb(0 0 0 / 6%), rgb(0 0 0 / 0));
}

.single .page + .page {
	box-shadow: inset 1px 0 0 var(--line);
}

/* -------------------------------------------------------------------------
   Struttura della pagina
   ---------------------------------------------------------------------- */

.pg {
	--px: max(14px, 4.6cqi);
	--py: max(12px, 3cqb);
	--g: max(10px, 2.6cqi);
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: var(--py) var(--px) max(10px, 2.2cqb);
	font-family: var(--serif);
	font-size: clamp(11px, 2.15cqi, 15.5px);
	line-height: 1.36;
	color: var(--ink);
}

/* Testatina delle pagine interne: sezione, logo, data. */
.rh {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 1em;
	margin-bottom: var(--g);
	padding-bottom: .6em;
	border-bottom: 1px solid var(--rule);
	font-family: var(--sans);
	font-size: clamp(8px, 1.45cqi, 10.5px);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
}

.rh-sec {
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 700;
	color: var(--accent);
}

.rh-logo {
	display: block;
	width: auto;
	height: clamp(9px, 2cqi, 15px);
}

.rh-date {
	justify-self: end;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pg-body {
	flex: 1;
	min-height: 0;
	display: grid;
	gap: var(--g);
}

.pf {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: var(--g);
	padding-top: .5em;
	border-top: 1px solid var(--rule);
	font-family: var(--sans);
	font-size: clamp(8px, 1.4cqi, 10.5px);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.pf-n {
	font-family: var(--serif);
	font-size: 1.6em;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--ink);
}

/* Numero di pagina sul lato esterno. */
.single .pf,
.spread .page:nth-child(even) .pf {
	flex-direction: row-reverse;
}

.rule-t {
	border-top: 1px solid var(--line);
	padding-top: var(--g);
}

.rule-l {
	border-left: 1px solid var(--line);
	padding-left: var(--g);
}

/* -------------------------------------------------------------------------
   Articoli
   ---------------------------------------------------------------------- */

.slot {
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.card {
	position: relative;
	flex: 1;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: .6em;
	overflow: hidden;
}

/* Il titolo e' il link; la sua ombra copre tutta la scheda, cosi' si tocca ovunque. */
.c-link {
	color: inherit;
	text-decoration: none;
}

.c-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.c-link:focus-visible {
	outline: none;
}

.card:focus-within,
.teaser:focus-within,
.brief:focus-within,
.box-it:focus-within,
.quote:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.card:hover .c-title .c-link,
.brief:hover .c-link,
.box-it:hover .c-link,
.teaser:hover .c-link {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .12em;
}

.c-img {
	flex: 0 0 var(--img-h, 30cqb);
	min-height: 0;
	margin: 0;
	overflow: hidden;
	background: #ececec;
}

.c-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Taglio diagonale sul fondo della foto, come nelle aperture dei magazine. */
.c-img.cut-diag {
	clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}

.c-txt {
	flex: 1;
	/* Senza min-width, accanto a una foto il testo non si restringe ed esce dalla pagina. */
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: .4em;
}

.kicker {
	margin: 0;
	font-family: var(--sans);
	font-size: clamp(8px, 1.4cqi, 10.5px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent);
}

.c-title {
	flex: 0 0 auto;
	margin: 0;
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -.015em;
	text-wrap: balance;
	overflow: hidden;
}

.s-xxl .c-title { font-size: clamp(26px, 8.4cqi, 70px); line-height: .98; letter-spacing: -.025em; }
.s-xl .c-title  { font-size: clamp(21px, 6.2cqi, 50px); line-height: 1; letter-spacing: -.02em; }
.s-l .c-title   { font-size: clamp(18px, 4.6cqi, 36px); }
.s-m .c-title   { font-size: clamp(15px, 3.3cqi, 25px); font-weight: 500; line-height: 1.08; }
.s-s .c-title   { font-size: clamp(13.5px, 2.7cqi, 19px); font-weight: 600; line-height: 1.12; letter-spacing: -.005em; }

/* Sommario: grassetto sans sotto il titolo. */
.c-deck {
	flex: 0 1 auto;
	min-height: 0;
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-family: var(--sans);
	font-size: clamp(11px, 2cqi, 15px);
	font-weight: 700;
	line-height: 1.28;
	color: var(--ink);
}

.c-meta {
	margin: 0;
	font-family: var(--sans);
	font-size: clamp(8.5px, 1.4cqi, 11px);
	color: var(--muted);
}

/* Riassunto: sfoglia.js imposta quante righe intere entrano nello spazio rimasto. */
.c-exc {
	flex: 1 1 0;
	min-height: 0;
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: .95em;
	color: var(--ink-2);
}

/* Testo su colonne, giustificato, con capolettera. */
.c-cols {
	flex: 1 1 0;
	min-height: 0;
	overflow: hidden;
	column-count: var(--cols, 1);
	column-gap: var(--g);
	column-fill: auto;
	column-rule: 1px solid var(--line);
	text-align: justify;
	-webkit-hyphens: auto;
	hyphens: auto;
}

.c-cols p {
	margin: 0;
	text-indent: 1.1em;
}

.c-cols p:first-child {
	text-indent: 0;
}

.s-xxl .c-cols p:first-child::first-letter,
.s-xl .c-cols p:first-child::first-letter,
.s-l .c-cols p:first-child::first-letter {
	float: left;
	margin: .05em .1em 0 0;
	font-size: 3.35em;
	font-weight: 500;
	line-height: .8;
}

.c-more {
	flex: none;
	font-family: var(--sans);
	font-size: clamp(8.5px, 1.45cqi, 11px);
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--accent);
}

/* Varianti */

.card.row,
.card.split {
	flex-direction: row;
	gap: var(--g);
}

.row .c-img {
	flex: 0 0 32%;
}

.split .c-img {
	flex: 0 0 44%;
}

.card.no-img .c-img {
	display: none;
}

/* Scheda in negativo. */
.card.invert {
	padding: max(12px, 3cqi);
	background: var(--ink);
	color: #fff;
}

.invert .kicker {
	color: #ff7a72;
}

.invert .c-exc {
	color: #cfd2d6;
}

.invert .c-title {
	font-weight: 400;
}

/* -------------------------------------------------------------------------
   Prima pagina
   ---------------------------------------------------------------------- */

.pg-body.cover {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mast {
	text-align: center;
}

.mast-motto {
	margin: 0 0 .4em;
	font-family: var(--serif);
	font-size: clamp(9px, 1.75cqi, 13px);
	font-style: italic;
	color: var(--muted);
}

.mast-logo {
	margin: 0;
	line-height: 0;
}

.mast-logo img {
	display: block;
	width: 100%;
	height: auto;
}

.mast-rule {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 1em;
	margin-top: max(6px, 1.4cqb);
	padding: .55em 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	font-family: var(--sans);
	font-size: clamp(8px, 1.4cqi, 10.5px);
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.mast-rule span {
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
}

.mast-rule .mast-mid {
	font-weight: 700;
	color: var(--accent);
}

.mast-rule .mast-url {
	text-align: right;
}

.cls-S .mast-rule {
	grid-template-columns: minmax(0, 1fr) auto;
}

.cls-S .mast-mid {
	display: none;
}

/* Richiami con il numero di pagina. */
.teasers {
	display: grid;
	grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
	margin-bottom: var(--g);
	padding: max(6px, 1.5cqb) 0;
	border-bottom: 1px solid var(--line);
}

.teaser {
	position: relative;
	min-width: 0;
	display: flex;
	align-items: flex-start;
	gap: .6em;
	padding: 0 .8em;
}

.teaser:first-child {
	padding-left: 0;
}

.teaser:last-child {
	padding-right: 0;
}

.teaser + .teaser {
	border-left: 1px solid var(--line);
}

.teaser img {
	flex: none;
	width: clamp(34px, 8cqi, 64px);
	aspect-ratio: 1;
	object-fit: cover;
}

.t-txt {
	min-width: 0;
	margin: 0;
	font-family: var(--sans);
	font-size: clamp(9.5px, 1.7cqi, 12.5px);
	font-weight: 700;
	line-height: 1.2;
}

.t-txt .c-link {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	max-height: 3.6em;
	overflow: hidden;
}

.t-pag {
	display: block;
	margin-top: .3em;
	font-size: .9em;
	color: var(--accent);
}

.cover-grid {
	flex: 1;
	min-height: 0;
	display: grid;
	gap: var(--g);
}

.cls-S .cover-grid {
	grid-template: "hero" minmax(0, 1fr) / minmax(0, 1fr);
}

.cls-M .cover-grid {
	grid-template: "side hero" minmax(0, 1fr) / minmax(0, .92fr) minmax(0, 1.08fr);
}

.cls-L .cover-grid {
	grid-template:
		"side hero" minmax(0, 1fr)
		"foot foot" minmax(0, .24fr)
		/ minmax(0, .92fr) minmax(0, 1.08fr);
}

/* -------------------------------------------------------------------------
   Pagine interne
   ---------------------------------------------------------------------- */

/* Apertura: foto tagliata, titolo enorme e riquadro nero "Da leggere". */
.cls-S .pg-body.apertura {
	grid-template: "big" minmax(0, 2.8fr) "box" minmax(0, 1fr) / minmax(0, 1fr);
}

.cls-M .pg-body.apertura {
	grid-template: "big" minmax(0, 2.4fr) "box" minmax(0, 1fr) / minmax(0, 1fr);
}

.cls-L .pg-body.apertura {
	grid-template: "big box" minmax(0, 1fr) / minmax(0, 2.3fr) minmax(0, 1fr);
}

.box {
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: var(--g);
	padding: max(10px, 2.6cqi);
	overflow: hidden;
	background: var(--ink);
	color: #fff;
}

.cls-M .box {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: auto minmax(0, 1fr);
}

.cls-M .box-h {
	grid-column: 1 / -1;
}

.box-h {
	align-self: flex-start;
	justify-self: start;
	margin: 0;
	padding-bottom: .35em;
	border-bottom: 2px solid var(--accent);
	font-family: var(--sans);
	font-size: clamp(9px, 1.6cqi, 12px);
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.box-it {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: .35em;
	overflow: hidden;
}

.box .kicker {
	color: #ff7a72;
}

.box-t {
	flex: none;
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(14px, 3cqi, 22px);
	font-weight: 500;
	line-height: 1.1;
}

.box .c-exc {
	color: #c9ccd1;
}

/* Griglia. */
.cls-S .pg-body.griglia {
	grid-template-rows: repeat(3, minmax(0, 1fr));
}

.cls-M .pg-body.griglia {
	grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));
}

.cls-L .pg-body.griglia {
	grid-template: repeat(2, minmax(0, 1fr)) / repeat(3, minmax(0, 1fr));
}

/* Ritratto: foto a tutta altezza, al vivo sul bordo. */
.cls-S .pg-body.ritratto {
	grid-template: "big" minmax(0, 1fr) / minmax(0, 1fr);
}

.cls-M .pg-body.ritratto {
	grid-template:
		"img txt" minmax(0, 1fr)
		"img r1" minmax(0, .42fr)
		/ minmax(0, 1fr) minmax(0, 1fr);
}

.cls-L .pg-body.ritratto {
	grid-template:
		"img txt" minmax(0, 1fr)
		"img r1" minmax(0, .3fr)
		"img r2" minmax(0, .3fr)
		/ minmax(0, 1fr) minmax(0, 1fr);
}

.portrait {
	min-height: 0;
	margin-left: calc(-1 * var(--px));
	overflow: hidden;
	background: #ececec;
}

.spread .page:nth-child(even) .portrait {
	margin-left: 0;
}

.portrait img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Citazione in grande. */
.pg-body.citazione {
	grid-template:
		"quote" auto
		"main" minmax(0, 1fr)
		"row" minmax(0, .3fr)
		/ minmax(0, 1fr);
}

.quote {
	position: relative;
	margin: 0;
	padding: .15em 0 .1em max(14px, 5cqi);
	border-left: 3px solid var(--accent);
}

.quote p {
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	max-height: 5.4em;
	overflow: hidden;
	font-family: var(--serif);
	font-size: clamp(19px, 5.4cqi, 44px);
	font-style: italic;
	line-height: 1.08;
	letter-spacing: -.01em;
}

.quote p::before {
	content: "“";
	color: var(--accent);
}

.quote footer {
	margin-top: .7em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: var(--sans);
	font-size: clamp(8.5px, 1.5cqi, 11px);
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
}

.thumbs {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: var(--g);
}

/* In breve: fascia nera e notizie a colonne. */
.pg-body.brevi {
	display: flex;
	flex-direction: column;
	gap: var(--g);
}

.brevi-h {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1em;
	padding: .55em .8em;
	background: var(--ink);
	color: #fff;
	font-family: var(--sans);
	font-size: clamp(10px, 2cqi, 14px);
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
}

.brevi-h span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: .75em;
	font-weight: 400;
	letter-spacing: .06em;
	color: #c9ccd1;
}

.brevi-list {
	flex: 1;
	min-height: 0;
	display: grid;
	gap: 0 var(--g);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cls-S .brevi-list {
	grid-template-rows: repeat(5, minmax(0, 1fr));
}

.cls-M .brevi-list {
	grid-template: repeat(4, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));
	grid-auto-flow: column;
}

.cls-L .brevi-list {
	grid-template: repeat(5, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));
	grid-auto-flow: column;
}

.brief {
	position: relative;
	min-height: 0;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: .7em;
	padding: .6em 0;
	border-top: 1px solid var(--line);
	overflow: hidden;
}

.brief time {
	padding-top: .2em;
	font-family: var(--sans);
	font-size: clamp(9px, 1.6cqi, 12px);
	font-weight: 700;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}

.b-txt {
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: .25em;
	overflow: hidden;
}

.b-t {
	flex: none;
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	max-height: 3.36em;
	overflow: hidden;
	font-family: var(--serif);
	font-size: clamp(13px, 2.6cqi, 19px);
	font-weight: 600;
	line-height: 1.12;
}

.brief .c-exc {
	font-size: .88em;
}

/* Pubblicita' a pagina intera */

.ad {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: .6em;
}

.ad-label {
	font-family: var(--sans);
	font-size: clamp(8.5px, 1.5cqi, 11px);
	letter-spacing: .14em;
	text-transform: uppercase;
	text-align: center;
	color: var(--muted);
}

.ad-box {
	flex: 1;
	display: grid;
	place-content: center;
	gap: .7em;
	padding: 1em;
	border: 1px solid var(--rule);
	background: repeating-linear-gradient(-45deg, #fff 0 14px, #f3f3f3 14px 28px);
	font-family: var(--sans);
	text-align: center;
	color: var(--ink-2);
}

.ad-box strong {
	font-family: var(--serif);
	font-size: clamp(24px, 7cqi, 54px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.02em;
	color: var(--ink);
}

/* Pagina di coda: caricamento o fine */

.tail {
	height: 100%;
	display: grid;
	place-content: center;
	gap: .8em;
	padding: 12%;
	font-family: var(--serif);
	font-size: clamp(14px, 3cqi, 20px);
	text-align: center;
	color: var(--muted);
}

.tail strong {
	font-size: 2em;
	font-weight: 400;
	color: var(--ink);
}

.spinner {
	justify-self: center;
	width: 28px;
	height: 28px;
	border: 3px solid var(--line);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: spin .9s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* -------------------------------------------------------------------------
   Lettura dell'articolo, impaginato in colonne orizzontali
   ---------------------------------------------------------------------- */

.reader {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: grid;
	place-items: center;
	background: var(--desk);
}

.r-sheet {
	position: relative;
	height: 100%;
	min-width: 100%;
	background-color: var(--paper);
}

.spread .r-sheet {
	background-image: linear-gradient(to right, rgb(0 0 0 / 0) 46%, rgb(0 0 0 / 7%) 50%, rgb(0 0 0 / 0) 54%);
	background-size: calc(var(--page-w) * 2) 100%;
}

.snap {
	position: absolute;
	top: 0;
	width: 1px;
	height: 1px;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.r-flow {
	--px: max(18px, calc(var(--page-w) * .075));
	--py: max(16px, calc(var(--page-h) * .055));
	position: absolute;
	top: 0;
	left: 0;
	width: var(--page-w);
	height: var(--page-h);
	padding: var(--py) var(--px);
	column-count: 1;
	column-gap: calc(var(--px) * 2);
	column-fill: auto;
	font-family: var(--serif);
	font-size: clamp(15px, calc(var(--page-w) * .034), 19px);
	line-height: 1.5;
	text-align: justify;
	-webkit-hyphens: auto;
	hyphens: auto;
	color: var(--ink);
}

.r-head {
	margin-bottom: 1em;
	break-inside: avoid;
	text-align: left;
	-webkit-hyphens: manual;
	hyphens: manual;
}

.r-head .kicker {
	font-size: 12px;
}

.r-title {
	margin: .3em 0 .35em;
	font-size: clamp(28px, calc(var(--page-w) * .075), 52px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.02em;
	text-wrap: balance;
	outline: none;
}

.r-deck {
	margin: 0 0 .8em;
	font-family: var(--sans);
	font-size: .92em;
	font-weight: 700;
	line-height: 1.3;
}

.r-meta {
	margin: 0 0 .9em;
	padding: .5em 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--line);
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.r-fig {
	margin: 0;
}

.r-fig img {
	display: block;
	width: 100%;
	max-height: calc(var(--page-h) * .36);
	object-fit: cover;
}

.r-body p {
	margin: 0 0 .75em;
}

.r-body > p:first-of-type::first-letter {
	float: left;
	margin: .06em .1em 0 0;
	font-size: 3.3em;
	font-weight: 500;
	line-height: .8;
}

.r-body img {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: calc(var(--page-h) * .42);
	margin: 0 auto;
	object-fit: contain;
}

.r-body figure,
.r-body .wp-caption {
	max-width: 100% !important;
	margin: .8em 0;
	break-inside: avoid;
}

.r-body figcaption,
.r-body .wp-caption-text {
	margin-top: .3em;
	font-family: var(--sans);
	font-size: .72em;
	text-align: left;
	color: var(--muted);
}

.r-body h2,
.r-body h3,
.r-body h4 {
	margin: 1em 0 .4em;
	font-family: var(--sans);
	font-size: 1em;
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
	break-after: avoid;
}

.r-body a {
	color: var(--accent);
}

.r-body ul,
.r-body ol {
	padding-left: 1.2em;
}

.r-body blockquote {
	margin: 1em 0;
	padding-left: 1em;
	border-left: 3px solid var(--accent);
	font-size: 1.15em;
	font-style: italic;
	line-height: 1.3;
}

.r-body table {
	display: block;
	max-width: 100%;
	overflow: auto;
	border-collapse: collapse;
	font-size: .8em;
}

.r-body .embed-link {
	padding: .6em .8em;
	background: #f1f1f1;
	font-family: var(--sans);
	font-size: .8em;
	text-align: left;
}

.r-end {
	margin: 1.2em 0 0;
	padding-top: .6em;
	border-top: 1px solid var(--rule);
	font-family: var(--sans);
	font-size: .8em;
	font-weight: 700;
	text-align: left;
}

.r-end a {
	color: var(--accent);
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   Avvisi
   ---------------------------------------------------------------------- */

.status {
	position: absolute;
	left: 50%;
	bottom: 16px;
	z-index: 4;
	max-width: calc(100% - 32px);
	margin: 0;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 13px;
	transform: translateX(-50%);
	box-shadow: 0 4px 16px rgb(0 0 0 / 25%);
}

/* -------------------------------------------------------------------------
   Pagina nel tema
   ---------------------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Indice scritto dal server: lo vedono i motori di ricerca e chi non ha JavaScript. */
.indice {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	padding: 24px max(16px, 6vw) 40px;
	background: var(--paper);
	font-family: var(--serif);
	font-size: 17px;
	line-height: 1.45;
}

.indice-intro {
	max-width: 42em;
	margin: 0 0 1.2em;
	font-family: var(--sans);
	font-size: 15px;
	color: var(--ink-2);
}

.indice ol {
	max-width: 42em;
	margin: 0 0 1.5em;
	padding-left: 1.4em;
}

.indice li {
	margin-bottom: 1em;
}

.indice a {
	color: var(--ink);
	font-size: 1.1em;
	font-weight: 600;
}

.indice time {
	display: block;
	font-family: var(--sans);
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--accent);
}

.indice p {
	margin: .2em 0 0;
	color: var(--ink-2);
}

.logo-testo {
	font-family: var(--serif);
	font-weight: 500;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.mast-logo .logo-testo {
	font-size: clamp(22px, 7cqi, 60px);
}

/* Pubblicita vera: la creativita si adatta alla pagina senza deformarsi. */
.ad-creative {
	flex: 1;
	min-height: 0;
	display: grid;
	place-items: center;
}

.ad-creative img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
