/* ==========================================================================
   Entony — minimal, chiaro, leggibile.
   Instrument Sans per tutto, JetBrains Mono solo per il codice.
   Monocromatico: nero su bianco (bianco su nero nel tema scuro).
   Le sezioni si distinguono per icona e copertina, non per colore.
   ========================================================================== */

/* --- Token --------------------------------------------------------------- */
:root,
:root[data-theme="light"] {
	color-scheme: light;
	--bg: #FCFCFD;
	--surface: #F4F5F7;
	--surface-2: #ECEEF1;
	--fg: #14161B;
	--fg-2: #454A54;
	--muted: #737884;
	--line: #E6E8EC;
	--line-2: #D5D8DE;
	--accent: #0A0A0B;
	--accent-hover: #2B2E34;
	--accent-soft: #EEEFF1;
	--on-accent: #FFFFFF;
	--ink-band: #0A0A0B;
	--on-band: #F4F5F7;
	--on-band-2: #A3A8B1;
	--band-line: #23262C;
	--code-bg: #16181D;
	--code-fg: #E4E6EA;
	--code-line: #16181D;
	--shadow: 0 1px 2px rgb(20 22 27 / 0.04), 0 8px 24px -12px rgb(20 22 27 / 0.12);
	/* copertine generate e punti di sezione */
	--cov-a: #F3F4F6;
	--cov-b: #E3E5E9;
	--cov-pat: rgb(20 22 27 / 0.07);
	--cov-icon: #14161B;
	--cov-dark-a: #17191D;
	--cov-dark-b: #0A0A0B;
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0F1013;
	--surface: #17191E;
	--surface-2: #1E2127;
	--fg: #EDEEF0;
	--fg-2: #C3C7CE;
	--muted: #8C919B;
	--line: #24272E;
	--line-2: #30343C;
	--accent: #FFFFFF;
	--accent-hover: #D9DBDF;
	--accent-soft: #24272E;
	--on-accent: #0F1013;
	--ink-band: #000000;
	--on-band: #F4F5F7;
	--on-band-2: #9CA1AA;
	--band-line: #23262C;
	--code-bg: #17191E;
	--code-fg: #E4E6EA;
	--code-line: #2A2E36;
	--shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.5);
	--cov-a: #1D2025;
	--cov-b: #15171B;
	--cov-pat: rgb(255 255 255 / 0.06);
	--cov-icon: #E4E6EA;
	--cov-dark-a: #F3F4F6;
	--cov-dark-b: #DADDE2;
}

:root {
	--sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--wrap: 72rem;
	--col: 42.5rem;
	--col-wide: 60rem;
	--pad: clamp(1.25rem, 4vw, 2.5rem);

	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 16px;

	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 5rem;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "ss01" 0;
}

.site {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
.site-main { flex: 1; outline: none; }

img,
video,
iframe { max-width: 100%; height: auto; }
svg { flex: none; }

a { color: inherit; }

::selection { background: var(--accent-soft); color: var(--fg); }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--pad));
	margin-inline: auto;
	padding-inline: var(--pad);
}
.col {
	width: 100%;
	max-width: calc(var(--col) + 2 * var(--pad));
	margin-inline: auto;
	padding-inline: var(--pad);
}
.col--wide { max-width: calc(var(--col-wide) + 2 * var(--pad)); }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: var(--pad);
	top: -100px;
	z-index: 100;
	padding: 0.7rem 1rem;
	border-radius: var(--r-sm);
	background: var(--fg);
	color: var(--bg);
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* --- Barra di lettura ---------------------------------------------------- */
.progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 2px;
	z-index: 60;
	pointer-events: none;
}
.progress__bar {
	display: block;
	height: 100%;
	background: var(--accent);
	transform-origin: 0 50%;
	transform: scaleX(var(--read, 0));
}

/* --- Intestazione -------------------------------------------------------- */
.masthead {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .masthead { top: 0; } }

.masthead__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: 4rem;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
}
.brand__photo {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
}
.brand--logo img { display: block; max-height: 2.25rem; width: auto; }

.primary-nav { margin-left: auto; }
.primary-menu {
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.primary-menu a {
	display: block;
	padding: 0.45rem 0.75rem;
	border-radius: var(--r-sm);
	color: var(--fg-2);
	font-size: 0.9375rem;
	text-decoration: none;
	transition: color 150ms, background-color 150ms;
}
.primary-menu a:hover { color: var(--fg); background: var(--surface); }
.primary-menu .current-menu-item > a,
.primary-menu .current_page_parent > a,
.primary-menu .current-menu-ancestor > a {
	color: var(--fg);
	font-weight: 550;
}

.masthead__tools {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}
.masthead__inner > .brand + .masthead__tools,
.masthead__inner > .brand--logo + .masthead__tools { margin-left: auto; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 2.375rem;
	height: 2.375rem;
	padding: 0;
	border: 0;
	border-radius: var(--r-sm);
	background: transparent;
	color: var(--fg-2);
	cursor: pointer;
	transition: color 150ms, background-color 150ms;
}
.icon-btn:hover { color: var(--fg); background: var(--surface); }
.icon-btn svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.scheme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .scheme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .scheme-toggle .i-moon { display: none; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
	.masthead__inner { flex-wrap: wrap; gap: 0 0.5rem; }
	.primary-nav { display: contents; }
	.nav-toggle { display: inline-grid; order: 2; margin-left: auto; }
	.masthead__tools { order: 3; }
	.primary-menu {
		order: 4;
		flex-direction: column;
		width: 100%;
		padding: 0.25rem 0 1rem;
	}
	.js .primary-menu { display: none; }
	.js .primary-nav.is-open .primary-menu,
	.js .masthead.is-open .primary-menu { display: flex; }
	.primary-menu a { padding: 0.8rem 0.75rem; font-size: 1.0625rem; }
	html:not(.js) .nav-toggle { display: none; }
}

/* --- Presentazione ------------------------------------------------------- */
.intro {
	padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem);
}
.intro__who {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 0 0 1.75rem;
	font-weight: 600;
	font-size: 1rem;
}
.intro__photo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line);
}
.intro__title {
	max-width: 19ch;
	margin: 0;
	font-size: clamp(2.25rem, 1.55rem + 2.8vw, 3.75rem);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
.intro__lede {
	max-width: 44ch;
	margin: 1.25rem 0 0;
	font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	line-height: 1.5;
	color: var(--fg-2);
	text-wrap: pretty;
}

.social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
}
.social a {
	color: var(--muted);
	text-decoration: none;
	transition: color 150ms;
}
.social a:hover { color: var(--fg); }
.social--intro { margin-top: 1.75rem; }

/* --- Intestazioni di archivio e ricerca ---------------------------------- */
.page-head {
	padding-block: clamp(3rem, 8vw, 5rem) clamp(2rem, 4vw, 2.75rem);
}
.page-head__kind {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.85rem;
	font-size: 0.9375rem;
	color: var(--muted);
}
.page-head[style*="--hue"] .page-head__kind::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: currentColor;
}
.page-head__title {
	max-width: 22ch;
	margin: 0;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.03em;
	text-wrap: balance;
	overflow-wrap: anywhere;
}
.page-head__desc {
	max-width: 56ch;
	margin-top: 1rem;
	font-size: 1.125rem;
	color: var(--fg-2);
}
.page-head__desc p { margin: 0; }
.page-head__sub {
	margin: 1rem 0 0;
	font-size: 0.9375rem;
	color: var(--muted);
}
.page-head .search-form { margin-top: 1.75rem; }

/* --- Lista ---------------------------------------------------------------- */
.listing { padding-bottom: clamp(4rem, 9vw, 7rem); }
.listing--top { padding-top: clamp(3rem, 7vw, 5rem); }

.listing__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: 2rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--line);
}
.listing__bar--only-chips { border-top: 0; padding-top: 0; }
.listing__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.015em;
}

/* Filtro per sezione */
.chips__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	color: var(--fg-2);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 150ms, border-color 150ms, background-color 150ms;
}

.chip:hover { color: var(--fg); border-color: var(--fg-2); }
.chip[aria-current="page"] {
	color: var(--bg);
	background: var(--fg);
	border-color: var(--fg);
}

/* Etichetta di sezione */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.8125rem;
	font-weight: 550;
	color: var(--fg-2);
	text-decoration: none;
}
.badge::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--fg);
}
a.badge:hover { color: var(--fg); }

/* --- Card ----------------------------------------------------------------- */
.cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem 2rem;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.card__media {
	display: block;
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--surface);
	isolation: isolate;
}
.cover {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}
.cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms var(--ease);
}
.card__media:hover .cover img,
.card:focus-within .cover img { transform: scale(1.03); }

/* Copertina generata quando l'articolo non ha un'immagine:
   tre varianti stabili per articolo (griglia, punti su fondo scuro, linee) e l'icona della sezione. */
.cover--generated {
	--a: var(--cov-a);
	--b: var(--cov-b);
	--pat: var(--cov-pat);
	--icon: var(--cov-icon);
	display: grid;
	place-items: center;
	background:
		radial-gradient(90% 80% at var(--gx, 80%) var(--gy, 0%), color-mix(in srgb, var(--a) 70%, #fff) 0%, transparent 70%),
		linear-gradient(160deg, var(--a), var(--b));
}
.cover--p1 {
	--a: var(--cov-dark-a);
	--b: var(--cov-dark-b);
	--pat: color-mix(in srgb, var(--cov-dark-a) 60%, var(--cov-a));
	--icon: var(--cov-a);
	background: linear-gradient(160deg, var(--a), var(--b));
}
.cover--generated::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, var(--pat) 1px, transparent 1px),
		linear-gradient(to bottom, var(--pat) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 25%, transparent 100%);
	mask-image: radial-gradient(75% 75% at 50% 50%, #000 25%, transparent 100%);
}
.cover--p1::before {
	background-image: radial-gradient(circle, var(--pat) 1.2px, transparent 1.7px);
	background-size: 18px 18px;
	opacity: 0.55;
}
.cover--p2::before {
	background-image: repeating-linear-gradient(135deg, var(--pat) 0 1px, transparent 1px 14px);
	background-size: auto;
}
.cover__icon {
	position: relative;
	width: 20%;
	max-width: 5rem;
	height: auto;
	fill: none;
	stroke: var(--icon);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 500ms var(--ease);
}
.card__media:hover .cover__icon { transform: scale(1.06); }

.card__body { padding-top: 1.1rem; }
.card__cat { margin: 0 0 0.55rem; }
.card__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.28;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.card__title a {
	text-decoration: none;
	transition: color 150ms;
}
.card__title a {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 250ms var(--ease);
}
.card__title a:hover,
.card__title a:focus-visible { background-size: 100% 1px; }
.card__excerpt {
	margin: 0.55rem 0 0;
	font-size: 0.975rem;
	line-height: 1.55;
	color: var(--fg-2);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card__meta { margin: 0.85rem 0 0; }

.meta {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	font-size: 0.875rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

/* Articolo in evidenza */
.card--featured {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: clamp(3rem, 7vw, 4.5rem);
}
.card--featured .card__media { border-radius: var(--r-lg); }
.card--featured .card__body { padding-top: 0; }
.card--featured .card__title {
	font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
	line-height: 1.12;
	letter-spacing: -0.03em;
}
.card--featured .card__excerpt {
	margin-top: 0.85rem;
	font-size: 1.125rem;
	-webkit-line-clamp: 4;
}
.card--featured .card__meta { margin-top: 1.25rem; }
@media (min-width: 900px) {
	.card--featured {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		gap: 3rem;
		align-items: center;
	}
}

/* --- Paginazione --------------------------------------------------------- */
.pagination { margin-top: 4rem; }
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
}
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.85rem;
	border-radius: var(--r-sm);
	font-size: 0.9375rem;
	color: var(--fg-2);
	text-decoration: none;
}
.pagination a.page-numbers:hover { background: var(--surface); color: var(--fg); }
.pagination .page-numbers.current { background: var(--fg); color: var(--bg); font-weight: 600; }
.pagination .prev { margin-right: auto; border: 1px solid var(--line-2); }
.pagination .next { margin-left: auto; border: 1px solid var(--line-2); }

/* --- Articolo ------------------------------------------------------------ */
.entry-head { padding-block: clamp(3rem, 8vw, 5rem) 0; }
.entry-head__cat { margin: 0 0 1.25rem; }
.entry-title {
	margin: 0;
	font-size: clamp(2.125rem, 1.45rem + 2.7vw, 3.25rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
.entry-lede {
	margin: 1.25rem 0 0;
	font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
	line-height: 1.5;
	color: var(--fg-2);
	text-wrap: pretty;
}
.byline {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}
.byline__photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline__name { margin: 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.byline__meta { margin: 0.1rem 0 0; line-height: 1.3; }

.entry-figure { margin-block: clamp(2rem, 5vw, 3rem) 0; }
.entry-figure img {
	display: block;
	width: 100%;
	border-radius: var(--r-lg);
}
.entry-figure figcaption,
.prose figcaption {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	color: var(--muted);
	text-align: center;
}

.entry--page .entry-head { padding-bottom: 0.5rem; }

/* --- Prosa --------------------------------------------------------------- */
.prose {
	padding-block: clamp(2rem, 5vw, 3rem) 1rem;
	padding-inline: var(--pad);
	font-size: 1.125rem;
	line-height: 1.75;
}
.prose > * {
	max-width: var(--col);
	margin-inline: auto;
	margin-block: 0 1.35em;
}
.prose > .alignwide { max-width: var(--col-wide); }
.prose > .alignfull { max-width: none; margin-inline: calc(-1 * var(--pad)); }
.prose p,
.prose li { text-wrap: pretty; }

.prose a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	text-decoration-color: var(--line-2);
	transition: text-decoration-color 150ms;
}
.prose a:hover { text-decoration-color: currentColor; }

.prose h2,
.prose h3,
.prose h4 {
	font-weight: 600;
	letter-spacing: -0.025em;
	text-wrap: balance;
	scroll-margin-top: 5.5rem;
}
.prose h2 {
	margin-top: 2.2em;
	margin-bottom: 0.6em;
	font-size: 1.625rem;
	line-height: 1.2;
}
.prose h3 {
	margin-top: 1.9em;
	margin-bottom: 0.5em;
	font-size: 1.3125rem;
	line-height: 1.3;
}
.prose h4 {
	margin-top: 1.6em;
	margin-bottom: 0.4em;
	font-size: 1.125rem;
	line-height: 1.4;
}

.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 600; }

.prose hr,
.prose .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--line);
	margin-block: 3em;
}

.prose blockquote,
.prose .wp-block-quote {
	padding: 0.1em 0 0.1em 1.25em;
	border-left: 3px solid var(--accent);
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--fg);
}
.prose blockquote p { margin: 0 0 0.5em; }
.prose blockquote cite,
.prose .wp-block-quote cite {
	display: block;
	margin-top: 0.6em;
	font-size: 0.9375rem;
	font-style: normal;
	color: var(--muted);
}
.prose .wp-block-pullquote {
	padding: 2rem 0;
	border-block: 1px solid var(--line);
	text-align: left;
}
.prose .wp-block-pullquote blockquote { border: 0; padding: 0; font-size: 1.625rem; letter-spacing: -0.02em; }

/* Codice */
code,
kbd,
samp,
pre { font-family: var(--mono); }
.prose :not(pre) > code {
	padding: 0.12em 0.4em;
	font-size: 0.85em;
	background: var(--surface-2);
	border-radius: 5px;
	overflow-wrap: anywhere;
}
.prose kbd {
	padding: 0.1em 0.45em;
	font-size: 0.8em;
	border: 1px solid var(--line-2);
	border-bottom-width: 2px;
	border-radius: 5px;
	background: var(--surface);
}
.prose pre,
.prose .wp-block-code,
.prose .wp-block-preformatted {
	margin-block: 1.75em;
	padding: 1.25rem 1.5rem;
	overflow-x: auto;
	font-size: 0.875rem;
	line-height: 1.7;
	background: var(--code-bg);
	color: var(--code-fg);
	border: 1px solid var(--code-line);
	border-radius: var(--r-md);
	tab-size: 4;
	-webkit-overflow-scrolling: touch;
}
.prose .wp-block-code code { font-size: inherit; background: none; padding: 0; color: inherit; white-space: pre; overflow-wrap: normal; }
.code-wrap { position: relative; }
.code-wrap > pre { margin: 0; }
.prose > .code-wrap { margin-block: 1.75em; }
.code-copy {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	z-index: 1;
	padding: 0.35rem 0.65rem;
	font: 500 0.75rem / 1 var(--sans);
	color: #B9BEC7;
	background: rgb(255 255 255 / 0.06);
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: 6px;
	cursor: pointer;
	opacity: 0;
	transition: opacity 150ms, background-color 150ms;
}
.code-wrap:hover .code-copy,
.code-copy:focus-visible,
.code-copy.is-done { opacity: 1; }
.code-copy:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.code-copy.is-done { color: #0F1013; background: #fff; border-color: #fff; }
@media (hover: none) { .code-copy { opacity: 1; } }

/* Tabelle */
.prose .wp-block-table { overflow-x: auto; }
.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}
.prose th,
.prose td {
	padding: 0.7rem 1rem 0.7rem 0;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}
.prose th { font-weight: 600; border-bottom-color: var(--line-2); }
.prose .wp-block-table table,
.prose .wp-block-table th,
.prose .wp-block-table td,
.prose .wp-block-table thead { border-width: 0 0 1px 0; border-style: solid; border-color: var(--line); }
.prose .wp-block-table thead { border-bottom-color: var(--line-2); }
.prose td code { white-space: nowrap; }
.prose .wp-block-table figcaption { text-align: left; }

/* Immagini e media */
.prose figure { margin-inline: auto; }
.prose img { display: block; border-radius: var(--r-md); }
.prose .wp-block-image.alignwide img,
.prose .wp-block-image.alignfull img { width: 100%; }
.prose .wp-block-image.alignfull img { border-radius: 0; }
.prose .alignleft { float: left; margin: 0.3em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: 0.3em 0 1em 1.5em; max-width: 50%; }

/* Stili di paragrafo del tema */
.prose .is-style-nota,
.prose .nota {
	padding-left: 1rem;
	border-left: 2px solid var(--line-2);
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--muted);
}
.prose .is-style-avviso,
.prose .avviso {
	padding: 1rem 1.25rem;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--fg);
	background: var(--surface);
	border-left: 3px solid var(--fg);
	border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.builder-content { width: 100%; }

/* --- Piè dell'articolo --------------------------------------------------- */
.entry-foot { padding-bottom: clamp(3rem, 7vw, 4.5rem); }
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.5rem 0 2.5rem;
	padding: 0;
	list-style: none;
}
.tags a {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: var(--surface);
	color: var(--fg-2);
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 150ms, color 150ms;
}
.tags a:hover { background: var(--surface-2); color: var(--fg); }

.author {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
}
.author__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.author__name { margin: 0; font-weight: 600; }
.author__bio { margin: 0.35rem 0 0; font-size: 0.975rem; color: var(--fg-2); }
.social--author { margin-top: 0.85rem; font-size: 0.875rem; }

/* --- Correlati ----------------------------------------------------------- */
.related {
	padding-block: clamp(3.5rem, 8vw, 5rem);
	background: var(--surface);
	border-top: 1px solid var(--line);
}
.related__title {
	margin: 0 0 2rem;
	font-size: 1.375rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.related .card__media { background: var(--surface-2); }

/* --- Commenti ------------------------------------------------------------ */
.comments { padding-block: clamp(3rem, 7vw, 4.5rem); }
.related + .comments { border-top: 1px solid var(--line); }
.comments__title,
.comment-reply-title {
	margin: 0 0 1.5rem;
	font-size: 1.375rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.comment-reply-title small { margin-left: 1rem; font-size: 0.875rem; font-weight: 500; }
.comment-list,
.comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list { margin-bottom: 3rem; }
.comment-list .children { margin-left: 1.25rem; padding-left: 1.25rem; border-left: 1px solid var(--line); }
.comment-body { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-author .fn a { text-decoration: none; }
.comment-metadata { margin-top: 0.15rem; font-size: 0.8125rem; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { font-size: 1rem; }
.comment-content p { margin: 0.6rem 0; }
.reply { font-size: 0.875rem; font-weight: 550; }
.reply a { color: var(--fg); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--line-2); }
.bypostauthor > .comment-body .fn::after {
	content: "autore";
	margin-left: 0.5rem;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 550;
	color: var(--fg);
	background: var(--surface-2);
}

/* --- Moduli -------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	font: inherit;
	font-size: 1rem;
	color: var(--fg);
	background: var(--bg);
	border: 1px solid var(--line-2);
	border-radius: var(--r-sm);
	appearance: none;
	transition: border-color 150ms, box-shadow 150ms;
}
input:focus,
textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 9rem; resize: vertical; }
label { font-size: 0.9375rem; font-weight: 550; }
.comment-form p { margin: 0 0 1.1rem; }
.comment-form label { display: block; margin-bottom: 0.4rem; }
.comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; color: var(--fg-2); }
.comment-notes,
.logged-in-as { font-size: 0.9375rem; color: var(--muted); }

.button,
button[type="submit"],
input[type="submit"],
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--bg);
	background: var(--fg);
	border: 1px solid var(--fg);
	border-radius: 10px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 150ms, border-color 150ms;
}
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
	color: var(--bg);
	background: var(--accent-hover);
	border-color: var(--accent-hover);
}
.prose .wp-block-button__link { color: var(--bg); text-decoration: none; }
.prose .wp-block-button__link:hover { color: var(--bg); }
.prose .is-style-outline .wp-block-button__link { color: var(--fg); background: transparent; border-color: var(--line-2); }

.search-form {
	display: flex;
	align-items: center;
	max-width: 36rem;
	padding: 0.35rem 0.35rem 0.35rem 0.9rem;
	background: var(--bg);
	border: 1px solid var(--line-2);
	border-radius: var(--r-md);
	box-shadow: var(--shadow);
	transition: border-color 150ms, box-shadow 150ms;
}
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-form__icon {
	width: 1.15rem;
	height: 1.15rem;
	fill: none;
	stroke: var(--muted);
	stroke-width: 1.7;
	stroke-linecap: round;
}
.search-form__field {
	flex: 1;
	min-width: 0;
	padding: 0.55rem 0.7rem !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
.search-form__submit { padding: 0.6rem 1rem; border-radius: var(--r-sm); }

/* --- Vuoto e 404 --------------------------------------------------------- */
.empty { padding-block: 2rem; }
.empty__text { max-width: 52ch; color: var(--fg-2); }
.empty .search-form { margin-top: 1.25rem; }

.notfound { padding-block: clamp(4rem, 12vw, 8rem); }
.notfound__code {
	margin: 0;
	font-size: clamp(4rem, 2rem + 10vw, 8rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.05em;
	color: var(--line-2);
}
.notfound__title {
	margin: 1rem 0 0;
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
	font-weight: 600;
	letter-spacing: -0.03em;
}
.notfound__help { max-width: 50ch; color: var(--fg-2); }
.notfound .search-form { margin-block: 1.75rem; }

/* --- Footer -------------------------------------------------------------- */
.colophon {
	border-top: 1px solid var(--line);
	font-size: 0.9375rem;
	color: var(--fg-2);
}
.colophon__inner { padding-block: 3rem 2rem; }
.colophon__widgets {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	padding-bottom: 2.5rem;
	margin-bottom: 2.5rem;
	border-bottom: 1px solid var(--line);
}
.widget-title { margin: 0 0 0.75rem; font-size: 0.9375rem; font-weight: 600; color: var(--fg); }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li + li { margin-top: 0.4rem; }
.widget a { text-decoration: none; color: var(--fg-2); }
.widget a:hover { color: var(--fg); }

.colophon__grid { display: grid; gap: 1.75rem; }
@media (min-width: 800px) {
	.colophon__grid {
		grid-template-columns: 1fr auto;
		align-items: start;
	}
	.colophon__grid .pgp { grid-column: 1 / -1; }
}
.colophon__name { margin: 0; font-weight: 600; color: var(--fg); }
.colophon__note { margin: 0.3rem 0 0; color: var(--muted); }
.pgp__label { margin: 0 0 0.3rem; font-size: 0.8125rem; color: var(--muted); }
.pgp__label a { color: inherit; }
.pgp__fp {
	display: block;
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	color: var(--fg-2);
	overflow-wrap: anywhere;
}
.colophon__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	font-size: 0.875rem;
	color: var(--muted);
}
.colophon__copy { margin: 0; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: var(--muted); text-decoration: none; }
.footer-menu a:hover { color: var(--fg); }

/* --- Classi di WordPress ------------------------------------------------- */
.wp-caption { max-width: 100%; }
.wp-caption-text,
.gallery-caption { font-size: 0.875rem; color: var(--muted); }
.page-links { margin-top: 2rem; font-size: 0.9375rem; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* --- Movimento ridotto --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* --- Stampa -------------------------------------------------------------- */
@media print {
	.masthead,
	.colophon,
	.progress,
	.related,
	.comments,
	.code-copy { display: none !important; }
	.prose a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}

/* --- Sezione politica in home -------------------------------------------- */
.band {
	padding-block: clamp(3.5rem, 8vw, 5.5rem);
	background: var(--ink-band);
	color: var(--on-band);
}
.band__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem 3rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--band-line);
}
.band__title {
	margin: 0;
	font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
}
.band__desc {
	max-width: 52ch;
	margin: 0.75rem 0 0;
	color: var(--on-band-2);
}
.band__all {
	padding: 0.6rem 1rem;
	border: 1px solid var(--band-line);
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 550;
	color: var(--on-band);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 150ms, border-color 150ms;
}
.band__all:hover { background: #1A1C20; border-color: #3A3E46; }
.band__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 800px) {
	.band__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
}
.band__item {
	padding-block: 1.75rem;
	border-bottom: 1px solid var(--band-line);
}
@media (min-width: 800px) { .band__item { border-bottom: 0; padding-bottom: 0; } }
.band__date { font-size: 0.875rem; color: var(--on-band-2); }
.band__item-title {
	margin: 0.5rem 0 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.band__item-title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 250ms var(--ease);
}
.band__item-title a:hover,
.band__item-title a:focus-visible { background-size: 100% 1px; }
.band__excerpt {
	margin: 0.6rem 0 0;
	font-size: 0.975rem;
	line-height: 1.55;
	color: var(--on-band-2);
}
.band :focus-visible { outline-color: #fff; }

/* Avviso di anteprima per la sezione nascosta (visibile solo a chi modifica). */
.preview-note {
	margin: 0;
	padding: 0.65rem var(--pad);
	font-size: 0.875rem;
	text-align: center;
	color: var(--bg);
	background: var(--fg);
}
