:root {
	--sc-color-background: #f3f8fc;
	--sc-color-surface: #ffffff;
	--sc-color-text: #0f2742;
	--sc-color-muted: #5e748c;
	--sc-color-accent: #1f6fb2;
	--sc-color-border: rgba(15, 39, 66, 0.14);

	--sc-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--sc-font-heading: Georgia, "Times New Roman", serif;
	--sc-font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--sc-container: 76rem;
	--sc-container-wide: 96rem;
	--sc-container-content: 48rem;
	--sc-gutter: clamp(1rem, 4vw, 3rem);
	--sc-section-space-min: 4rem;
	--sc-section-space-max: 8rem;
	--sc-section-space: clamp(var(--sc-section-space-min), 9vw, var(--sc-section-space-max));
	--sc-hero-height-min: 28rem;
	--sc-hero-height-max: 46rem;
	--sc-home-hero-min-height: calc(100svh - 4.75rem);
	--sc-hero-overlay-strong: rgba(34, 34, 34, 0.72);
	--sc-hero-overlay-medium: rgba(34, 34, 34, 0.44);
	--sc-hero-overlay-soft: rgba(34, 34, 34, 0.12);
	--sc-radius: 0;
	--sc-pattern-radius: 24px;
	--sc-pattern-radius-sm: calc(var(--sc-pattern-radius) * 0.7);
	--sc-pattern-radius-md: calc(var(--sc-pattern-radius) * 0.85);
	--sc-pattern-radius-lg: var(--sc-pattern-radius);
	--sc-pattern-radius-card: calc(var(--sc-pattern-radius) * 0.9);
}

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

html {
	margin: 0;
	padding: 0;
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background: var(--sc-color-background);
	color: var(--sc-color-text);
	font-family: var(--sc-font-body);
	font-size: var(--sc-body-size);
	line-height: var(--sc-body-leading);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.no-scroll {
	overflow: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

.alignleft {
	float: left;
	margin: 0.35rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.35rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption,
.gallery-caption {
	max-width: 100%;
	color: var(--sc-color-muted);
	font-size: var(--sc-size-small);
	line-height: 1.5;
}

.wp-caption-text {
	margin-top: 0.5rem;
	color: var(--sc-color-muted);
	font-size: var(--sc-size-small);
	line-height: 1.5;
}

.sticky {
	position: relative;
}

.bypostauthor {
	position: relative;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--sc-color-accent);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--sc-color-accent);
	outline-offset: 0.25rem;
}

button,
input,
textarea,
select {
	font: inherit;
	font-family: var(--sc-font-ui);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.75em;
	font-family: var(--sc-font-heading);
	font-weight: 400;
	line-height: 1.05;
}

/*
 * Le misure vengono dalla scala impostata nel Customizer, non da numeri
 * scritti qui: erano tre valori scelti uno alla volta, e h4, h5 e h6 non ne
 * avevano nessuno — restavano alle misure di ripiego del browser, che con un
 * h3 grande non stanno in proporzione con niente.
 */
h1 {
	font-size: var(--sc-h1);
	letter-spacing: 0;
}

h2 {
	font-size: var(--sc-h2);
	letter-spacing: 0;
}

h3 {
	font-size: var(--sc-h3);
	letter-spacing: 0;
}

h4 {
	font-size: var(--sc-h4);
	letter-spacing: 0;
}

p {
	margin: 0 0 1.25rem;
}

.entry__footer {
	margin-top: clamp(2rem, 4vw, 3rem);
	padding-top: 1.25rem;
	border-top: 1px solid var(--sc-color-border);
	color: var(--sc-color-muted);
	font-family: var(--sc-font-ui);
	font-size: 0.92rem;
}

.entry__tags a {
	color: var(--sc-color-text);
}

.comments-area {
	margin-top: clamp(3rem, 7vw, 5rem);
	padding-top: clamp(2rem, 4vw, 3rem);
	border-top: 1px solid var(--sc-color-border);
}

.comments-title,
.comment-reply-title {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.comment-list {
	display: grid;
	gap: 1.5rem;
	padding: 0;
	margin: 0 0 clamp(2rem, 5vw, 3rem);
	list-style: none;
}

.comment-list .children {
	margin-top: 1.5rem;
	margin-left: clamp(1rem, 4vw, 2.5rem);
	list-style: none;
}

.comment-body {
	padding: 1.25rem;
	border: 1px solid var(--sc-color-border);
	background: var(--sc-color-surface);
}

.comment-meta {
	margin-bottom: 0.75rem;
	color: var(--sc-color-muted);
	font-family: var(--sc-font-ui);
	font-size: var(--sc-size-small);
}

.comment-author {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	color: var(--sc-color-text);
	font-weight: 700;
}

.comment-author .avatar {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
}

.comment-form {
	display: grid;
	gap: 1rem;
}

.site-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
	margin-top: clamp(2rem, 5vw, 3rem);
	padding-top: clamp(1.5rem, 4vw, 2.5rem);
	border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.widget {
	margin: 0;
}

.widget__title {
	margin-bottom: 0.75rem;
	font-size: 1.1rem;
}

.sc-container {
	width: min(100% - (var(--sc-gutter) * 2), var(--sc-container));
	margin-inline: auto;
}

.sc-container--wide {
	--sc-container: var(--sc-container-wide);
}

.sc-container--content {
	--sc-container: var(--sc-container-content);
}

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

.screen-reader-text:focus {
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	clip: auto;
	padding: 1rem;
	background: var(--sc-color-surface);
	color: var(--sc-color-text);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--sc-header-background);
	border-bottom: 1px solid var(--sc-color-border);
	backdrop-filter: blur(12px);
	transition: background-color 180ms ease, box-shadow 180ms ease, transform 220ms ease;
}

.site-header.is-scrolled {
	background: var(--sc-header-background-scrolled);
	box-shadow: 0 0.5rem 2rem rgba(34, 34, 34, 0.08);
}

.site-header--position-static {
	position: relative;
}

.site-header--overlay-hero.site-header--position-static {
	position: absolute;
	inset: 0 0 auto;
	width: 100%;
}

.site-header--overlay-hero.site-header--position-sticky {
	position: fixed;
	inset: 0 0 auto;
	width: 100%;
}

.site-header--overlay-hero:not(.is-scrolled) {
	background: transparent;
	border-bottom-color: transparent;
	box-shadow: none;
}

/* Header ink tokens.
 *
 * Every header state declares its colors ONLY through these tokens; the
 * component rules right below consume them once, with fallbacks equal to
 * the historical base values. No state may remap the global semantic
 * roles (--sc-color-*) on the header subtree: that hijack is what broke
 * dropdowns and hovers repeatedly. Values must be palette-independent
 * where the backdrop is an image (tones), palette-driven elsewhere.
 */
.site-header--overlay-hero:not(.is-scrolled).site-header--overlay-tone-light {
	color: #fff;
	--sc-header-ink: #fff;
	--sc-header-ink-muted: rgba(255, 255, 255, 0.72);
	--sc-header-ink-hover: rgba(255, 255, 255, 0.72);
	--sc-header-text-shadow: 0 0.08rem 0.55rem rgba(0, 0, 0, 0.28);
	--sc-header-chip-border: rgba(255, 255, 255, 0.34);
	--sc-header-chip-bg: rgba(0, 0, 0, 0.08);
	--sc-header-chip-hover-bg: #fff;
	--sc-header-chip-hover-ink: rgba(0, 0, 0, 0.85);
}

/* Like tone light's explicit #fff, tone dark must force genuinely dark
 * ink: palette roles cannot be trusted here, in Dark palette mode
 * --sc-color-text is light and "dark text" would render light.
 */
.site-header--overlay-hero:not(.is-scrolled).site-header--overlay-tone-dark {
	color: #15181f;
	--sc-header-ink: #15181f;
	--sc-header-ink-muted: rgba(0, 0, 0, 0.6);
	--sc-header-ink-hover: rgba(0, 0, 0, 0.62);
	--sc-header-text-shadow: 0 0.08rem 0.55rem rgba(255, 255, 255, 0.34);
	--sc-header-chip-border: rgba(0, 0, 0, 0.22);
	--sc-header-chip-bg: rgba(255, 255, 255, 0.12);
	--sc-header-chip-hover-bg: rgba(0, 0, 0, 0.85);
	--sc-header-chip-hover-ink: #fff;
}

/* The open mobile panel draws on its own opaque background: pin its
 * tokens back to the palette, whatever tone the header above is in.
 */
.site-navigation.is-open {
	--sc-header-ink: var(--sc-color-text);
	--sc-header-ink-muted: var(--sc-color-muted);
	--sc-header-ink-hover: var(--sc-color-accent);
	--sc-header-text-shadow: none;
}

/* Token consumers: one rule per component, valid in every header state. */
.site-header .site-title,
.site-header .site-navigation__menu > .menu-item > a {
	color: var(--sc-header-ink, inherit);
	text-shadow: var(--sc-header-text-shadow, none);
}

.site-header .site-branding__tagline {
	color: var(--sc-header-ink-muted, var(--sc-color-muted));
	text-shadow: var(--sc-header-text-shadow, none);
}

.site-header .site-navigation__menu > .menu-item > a:hover,
.site-header .site-navigation__menu > .menu-item > a:focus-visible {
	color: var(--sc-header-ink-hover, var(--sc-color-accent));
}

.site-header .menu-toggle {
	color: var(--sc-header-ink, inherit);
	border-color: var(--sc-header-chip-border, currentColor);
	background: var(--sc-header-chip-bg, transparent);
	text-shadow: var(--sc-header-text-shadow, none);
}

.site-header .site-social__link {
	color: var(--sc-header-ink, inherit);
	border-color: var(--sc-header-chip-border, var(--sc-color-border));
	background: var(--sc-header-chip-bg, transparent);
	text-shadow: var(--sc-header-text-shadow, none);
}

.site-header .site-social__link:hover,
.site-header .site-social__link:focus-visible {
	color: var(--sc-header-chip-hover-ink, var(--sc-color-on-accent));
	border-color: var(--sc-header-chip-hover-bg, var(--sc-color-accent));
	background: var(--sc-header-chip-hover-bg, var(--sc-color-accent));
	text-shadow: none;
}

.site-header .menu-toggle:hover,
.site-header .menu-toggle:focus-visible {
	color: var(--sc-header-chip-hover-ink, inherit);
	border-color: var(--sc-header-chip-hover-bg, currentColor);
	background: var(--sc-header-chip-hover-bg, transparent);
	text-shadow: none;
}

.admin-bar .site-header--overlay-hero {
	top: 32px;
}

.site-header--sticky-scroll_up.is-hidden {
	transform: translateY(-100%);
}

.admin-bar .site-header--sticky-scroll_up.is-hidden {
	transform: translateY(calc(-100% - 32px));
}

.site-header--style-solid {
	background: var(--sc-header-background-solid, var(--sc-color-background));
	backdrop-filter: none;
}

.site-header--style-solid.is-scrolled {
	background: var(--sc-header-background-solid, var(--sc-color-background));
}

.site-header--style-minimal {
	background: transparent;
	border-bottom-color: transparent;
	backdrop-filter: none;
}

.site-header--style-minimal.is-scrolled {
	background: var(--sc-color-background);
	border-bottom-color: var(--sc-color-border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 4.75rem;
}

.site-header--layout-centered .site-header__inner {
	justify-content: center;
	text-align: center;
}

.site-header--density-compact .site-header__inner {
	min-height: 3.75rem;
}

.site-branding {
	display: grid;
	gap: 0.25rem;
	min-width: 0;
}

.site-branding__identity {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.site-branding--logo_title_vertical .site-branding__identity {
	align-items: flex-start;
	flex-direction: column;
	gap: 0.4rem;
}

.site-branding .custom-logo-link {
	display: block;
	flex: 0 0 auto;
	line-height: 0;
}

.site-branding .custom-logo {
	width: auto;
	max-height: var(--sc-logo-height, 3rem);
}

.site-header--density-compact .site-branding .custom-logo {
	max-height: calc(var(--sc-logo-height, 3rem) * 0.75);
}

.site-title,
.site-footer__title {
	font-family: var(--sc-font-heading);
	font-size: 1.35rem;
	line-height: 1;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.site-branding__tagline,
.site-footer__tagline,
.site-footer__text,
.site-footer__credit {
	margin: 0;
	color: var(--sc-color-muted);
	font-family: var(--sc-font-ui);
	font-size: var(--sc-size-small);
	line-height: 1.5;
}

.menu-toggle {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

@media (max-width: 759px) {
	.site-branding {
		max-width: calc(100% - 5.5rem);
	}

	.site-title {
		display: block;
		font-size: clamp(1rem, 5vw, 1.35rem);
	}
}

.site-navigation {
	display: none;
}

.site-navigation.is-open {
	display: block;
	position: absolute;
	inset: 100% 0 auto;
	padding: 1rem var(--sc-gutter) 1.5rem;
	background: var(--sc-color-background);
	border-bottom: 1px solid var(--sc-color-border);
	color: var(--sc-color-text);
	text-shadow: none;
}

.site-navigation__menu,
.site-social__menu,
.site-footer__menu {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-social__menu {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.site-social__link {
	display: grid;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0.5rem;
	place-items: center;
	border: 1px solid var(--sc-color-border);
	border-radius: 999px;
	color: inherit;
	transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.site-social__link:hover,
.site-social__link:focus-visible {
	border-color: var(--sc-color-accent);
	background: var(--sc-color-accent);
	color: var(--sc-color-on-accent);
}

.site-social__icon,
.site-social__icon svg {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
}

.site-social__icon svg {
	fill: currentColor;
}

.site-navigation a,
.site-footer a {
	font-family: var(--sc-font-ui);
	text-decoration: none;
}

.site-main {
	padding-block: var(--sc-section-space);
}

.home .site-main {
	padding-block: 0;
}

.sc-has-opening-hero .site-main {
	padding-block-start: 0;
}

/* Sotto l'hero lo spazio si sommava: il margine dell'hero piu' il
   padding-block che ogni fascia di primo livello porta gia' con se'. Il
   margine si toglie, e resta quello della fascia. Se pero' la prima cosa
   dopo l'hero non e' una fascia — un titolo, un paragrafo nudo — quello
   spazio non ce l'ha nessuno e glielo si da' qui: i due casi sono
   complementari, non si sovrappongono mai. */
.sc-has-opening-hero .sc-hero {
	margin-block-end: 0;
}

.sc-has-opening-hero .entry__content > :first-child:not(.wp-block-group):not(.wp-block-cover) {
	margin-block-start: var(--sc-section-space);
}

.sc-hero {
	position: relative;
	display: grid;
	min-height: clamp(var(--sc-hero-height-min), 72vh, var(--sc-hero-height-max));
	margin-block: calc(var(--sc-section-space) * -1) var(--sc-section-space);
	background: var(--sc-color-text);
	color: var(--sc-color-background);
	overflow: hidden;
}

.sc-hero__media {
	position: absolute;
	inset: 0;
}

.sc-hero__media::after {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(
		90deg,
		var(--sc-hero-overlay-strong) 0%,
		var(--sc-hero-overlay-medium) 44%,
		var(--sc-hero-overlay-soft) 100%
	);
}

.sc-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Al centro il ritaglio taglia quasi sempre le teste: in una foto di
	   gruppo la parte che conta sta in alto. Un quarto dall'alto e' il
	   compromesso; una pagina che ha bisogno d'altro ridefinisce la
	   variabile. */
	object-position: var(--sc-hero-focus, 50% 25%);
}

.sc-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	align-items: end;
	padding-block: clamp(8rem, 18vh, 14rem) clamp(3rem, 8vw, 6rem);
}

.sc-hero__content {
	max-width: min(44rem, 100%);
}

.sc-hero__title {
	margin-bottom: 0;
	color: inherit;
}

.sc-hero__text {
	max-width: 34rem;
	margin-top: 1.5rem;
	font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.sc-hero__text > *:last-child {
	margin-bottom: 0;
}

.entry {
	margin-bottom: var(--sc-section-space);
}

.wp-singular .entry {
	margin-bottom: 0;
}

.home .entry--page {
	margin-bottom: 0;
}

.entry__header {
	width: min(100% - (var(--sc-gutter) * 2), var(--sc-container));
	margin-inline: auto;
	margin-bottom: 2rem;
}

.entry__title a {
	text-decoration: none;
}

.entry__media {
	display: block;
	aspect-ratio: 16 / 10;
	margin: 0 0 2rem;
	overflow: hidden;
}

.entry__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home .entry__content > .wp-block-group:first-child:not(.sc-pattern-hero-cinematic),
.home .entry__content > .wp-block-cover:first-child:not(.sc-pattern-hero-cinematic) {
	display: grid;
	align-content: center;
	min-height: var(--sc-home-hero-min-height);
	margin-block-start: 0;
	padding-block: clamp(4rem, 10vh, 8rem);
}

.home .entry__content > .wp-block-group:first-child:not(.sc-pattern-hero-cinematic):not(.alignfull):not(.alignwide),
.home .entry__content > .wp-block-cover:first-child:not(.sc-pattern-hero-cinematic):not(.alignfull):not(.alignwide) {
	width: 100%;
}

.home .entry__content > .wp-block-group:first-child:not(.sc-pattern-hero-cinematic) > *,
.home .entry__content > .wp-block-cover:first-child:not(.sc-pattern-hero-cinematic) .wp-block-cover__inner-container > * {
	max-width: var(--sc-container-content);
}

.home .entry__content > .wp-block-group:first-child:not(.sc-pattern-hero-cinematic) .wp-block-heading,
.home .entry__content > .wp-block-cover:first-child:not(.sc-pattern-hero-cinematic) .wp-block-heading {
	font-size: clamp(3rem, 8vw, 7rem);
	letter-spacing: 0;
}

.home .entry__content > .wp-block-group:first-child:not(.sc-pattern-hero-cinematic) p,
.home .entry__content > .wp-block-cover:first-child:not(.sc-pattern-hero-cinematic) p {
	max-width: 42rem;
	font-size: clamp(1.1rem, 1.7vw, 1.45rem);
}

.home .entry__content > .wp-block-group:first-child:not(.sc-pattern-hero-cinematic) .wp-block-buttons,
.home .entry__content > .wp-block-cover:first-child:not(.sc-pattern-hero-cinematic) .wp-block-buttons {
	margin-top: 2rem;
}

.site-footer {
	padding-block: clamp(3rem, 6vw, 5rem);
}

.site-footer__body {
	display: grid;
	gap: 2rem;
}

.site-footer__inner {
	display: grid;
	gap: 2rem;
}

.site-footer__brand {
	display: grid;
	gap: 0.65rem;
	max-width: 34rem;
}

.site-footer__navigation-area {
	display: grid;
	gap: 1.25rem;
}

.site-footer__social--bottom {
	margin-top: 2rem;
}

.site-footer--align-left :is(.site-footer__brand, .site-footer__navigation-area, .site-footer__social--bottom) {
	justify-items: start;
	text-align: left;
}

.site-footer--align-left :is(.site-footer__brand, .site-footer__navigation-area) {
	justify-self: start;
}

.site-footer--align-center :is(.site-footer__brand, .site-footer__navigation-area, .site-footer__social--bottom) {
	justify-items: center;
	text-align: center;
}

.site-footer--align-center :is(.site-footer__brand, .site-footer__navigation-area) {
	justify-self: center;
}

.site-footer--align-right :is(.site-footer__brand, .site-footer__navigation-area, .site-footer__social--bottom) {
	justify-items: end;
	text-align: right;
}

.site-footer--align-right :is(.site-footer__brand, .site-footer__navigation-area) {
	justify-self: end;
}

.site-footer--align-left :is(.site-footer__menu, .site-footer__social .site-social__menu) {
	justify-content: flex-start;
}

.site-footer--align-center :is(.site-footer__menu, .site-footer__social .site-social__menu) {
	justify-content: center;
}

.site-footer--align-right :is(.site-footer__menu, .site-footer__social .site-social__menu) {
	justify-content: flex-end;
}

.site-footer--align-auto:is(.site-footer--layout-stacked, .site-footer--layout-compact) :is(.site-footer__brand, .site-footer__navigation-area, .site-footer__social--bottom) {
	justify-items: center;
	text-align: center;
}

.site-footer--align-auto:is(.site-footer--layout-stacked, .site-footer--layout-compact) :is(.site-footer__brand, .site-footer__navigation-area) {
	justify-self: center;
}

.site-footer--align-auto:is(.site-footer--layout-stacked, .site-footer--layout-compact) :is(.site-footer__menu, .site-footer__social .site-social__menu) {
	justify-content: center;
}

.site-footer__tagline,
.site-footer__text,
.site-footer__credit {
	color: currentColor;
	opacity: 0.74;
}

.site-footer__credit {
	margin-top: 0;
}

.site-footer--layout-compact {
	padding-block: 2rem;
}

.site-footer--layout-compact .site-footer__brand {
	max-width: none;
}

.site-footer--layout-compact .site-footer__credit {
	margin-top: 1rem;
}

.site-footer--layout-compact.site-footer--align-auto .site-footer__credit {
	text-align: center;
}

.site-footer--align-left .site-footer__credit {
	text-align: left;
}

.site-footer--align-center .site-footer__credit {
	text-align: center;
}

.site-footer--align-right .site-footer__credit {
	text-align: right;
}

.archive-header {
	margin-bottom: clamp(3rem, 6vw, 5rem);
	max-width: var(--sc-container-content);
}

.archive-header__title {
	margin-bottom: 0.35em;
}

.archive-header__description > *:last-child {
	margin-bottom: 0;
}

.archive-grid {
	display: grid;
	gap: clamp(2rem, 4vw, 4rem);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	margin-top: clamp(2rem, 5vw, 4rem);
}

.nav-links a,
.nav-links .current {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
}

@media (min-width: 760px) {
	.menu-toggle {
		display: none;
	}

	.site-navigation {
		display: flex;
		align-items: center;
		gap: 1rem;
	}

	.site-header--layout-centered .site-header__inner {
		flex-direction: column;
		gap: 1rem;
		padding-block: 1rem;
	}

	.site-header--density-compact .site-navigation__menu {
		gap: 0.75rem;
	}

	.site-navigation__menu,
	.site-footer__menu {
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
	}

	.site-header--layout-centered .site-navigation__menu,
	.site-footer--align-center .site-footer__menu {
		justify-content: center;
	}

	.site-header--layout-centered .site-navigation {
		justify-content: center;
	}

	.archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer__inner {
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.site-footer--order-menu_first.site-footer--layout-split .site-footer__inner {
		grid-template-columns: auto 1fr;
	}

	.site-footer--order-menu_first.site-footer--layout-split .site-footer__brand {
		order: 2;
	}

	.site-footer--order-menu_first.site-footer--layout-split .site-footer__navigation-area {
		order: 1;
	}

	.site-footer--layout-stacked .site-footer__inner,
	.site-footer--layout-compact .site-footer__inner {
		grid-template-columns: 1fr;
	}

	.site-footer--layout-split.site-footer--align-right .site-footer__brand,
	.site-footer--layout-split.site-footer--align-right .site-footer__navigation-area {
		justify-self: end;
	}

	.site-footer--layout-split.site-footer--align-center .site-footer__brand,
	.site-footer--layout-split.site-footer--align-center .site-footer__navigation-area {
		justify-self: center;
	}

	.site-footer--layout-split.site-footer--align-left .site-footer__brand,
	.site-footer--layout-split.site-footer--align-left .site-footer__navigation-area {
		justify-self: start;
	}

	.site-footer--layout-split.site-footer--align-auto .site-footer__brand {
		justify-self: start;
	}

	.site-footer--layout-split.site-footer--align-auto .site-footer__navigation-area {
		justify-items: end;
		justify-self: end;
		text-align: right;
	}

	.site-footer--layout-split.site-footer--align-auto :is(.site-footer__menu, .site-footer__social .site-social__menu) {
		justify-content: flex-end;
	}

	.site-footer--layout-split.site-footer--align-auto .site-footer__credit,
	.site-footer--layout-split.site-footer--align-right .site-footer__credit {
		text-align: right;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header--overlay-hero {
		top: 46px;
	}

	.admin-bar .site-header--sticky-scroll_up.is-hidden {
		transform: translateY(calc(-100% - 46px));
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.site-header {
		transition: none;
	}
}

/* --------------------------------------------------------------------------
 * Link social come icone
 *
 * Nel contenuto icona e nome stanno insieme. Nel pie' di pagina il nome si
 * nasconde alla vista — la colonna si chiama gia' «Social» e sarebbe la
 * stessa parola due volte — ma resta nel collegamento per chi legge con la
 * voce: il nome accessibile non cambia, cambia solo cosa si vede.
 * ----------------------------------------------------------------------- */
.sc-social {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: inherit;
	text-decoration: none;
	/* Dentro una colonna stretta il nome andava a capo una lettera per riga:
	   icona e nome sono una cosa sola e non si spezzano. */
	white-space: nowrap;
	transition: color 0.18s ease;
}

.sc-social__icona {
	display: inline-flex;
	flex: none;
}

.sc-social__icona svg {
	width: 1.35rem;
	height: 1.35rem;
	fill: currentColor;
}

.sc-social:hover,
.sc-social:focus-visible {
	color: var(--sc-color-accent);
}

/* Nel pie' di pagina: solo icona, in fila, con un bersaglio che si tocca. */
.site-footer .sc-social {
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	gap: 0;
	border-radius: 50%;
}

.site-footer .sc-social:hover,
.site-footer .sc-social:focus-visible {
	background: color-mix(in srgb, currentColor 12%, transparent);
}

/* Le stesse regole di .screen-reader-text: il nome esce dalla vista, non
   dal documento. display:none lo toglierebbe anche ai lettori di schermo. */
.site-footer .sc-social__nome {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (pointer: coarse) {
	.site-footer .sc-social {
		width: 2.75rem;
		height: 2.75rem;
	}
}

/* La riga di credito della foto dell'hero. Piccola ma leggibile: se non si
   legge non e' un credito. */
.sc-hero__credit {
	position: absolute;
	right: var(--sc-gutter, 1.5rem);
	bottom: 0.7rem;
	z-index: 2;
	max-width: 60%;
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.72rem;
	line-height: 1.35;
	text-align: right;
}

@media (max-width: 40rem) {
	.sc-hero__credit {
		position: static;
		max-width: none;
		padding: 0.4rem var(--sc-gutter, 1.5rem);
		color: var(--sc-color-muted);
		text-align: left;
	}
}
