/* Oltremargine — un foglio stampato a due inchiostri su carta: nero per il testo, rosso per titoli e accenti, come una risograph. */

:root {
	--bg: #efe9dc;         /* carta */
	--surface: #e2d9c6;    /* carta più scura: riquadri e schede */
	--surface-2: #d8ceb8;  /* terzo tono per le alternanze */
	--ink: #ae2914;        /* rosso: titoli, link, accenti */
	--ink-strong: #1b1714; /* nero: enfasi e campi */
	--text: #1b1714;       /* nero: testo corrente */
	--muted: #5c5349;
	--accent: #ae2914;
	--accent-ink: #efe9dc;

	--font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
	--step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	--step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
	--step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
	--step-display: clamp(3.5rem, 1rem + 8.4vw, 9.5rem);

	--margin: clamp(20px, 3.4vw, 48px);
	--margin-min: 20px;
	--axis: 42%;
	--gap-section: clamp(96px, 12vw, 200px);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--r-pill: 999px;   /* pulsanti, etichette, campi a riga singola */
	--r-field: 16px;   /* campi di testo su più righe */
	--r-card: 24px;    /* riquadri e schede */
	--r-img: calc(var(--r-card) * 0.98); /* foto e copertina: 2% meno tonde delle schede */
	--gap-media: clamp(56px, 7vw, 128px); /* respiro tra immagini e testo */
	--r-band: 32px;    /* fasce di colore */
	--measure: 1120px; /* larghezza delle pagine di testo */

	/* Le regole della community (members.css) leggono questi nomi. */
	--gs-paper: var(--bg);
	--gs-ink: var(--ink);
	--gs-pink: var(--surface);
	--gs-surface: var(--surface);
	--gs-acid: var(--ink);
	--gs-acid-deep: var(--ink-strong);
	--gs-acid-light: var(--ink);
	--gs-grey: var(--muted);
	--gs-on-accent: var(--accent-ink);
	--gs-gutter: var(--margin);
	--gs-radius: var(--r-field);
	--gs-radius-lg: var(--r-card);
	--gs-radius-pill: var(--r-pill);
	--gs-control-sm: 44px;
	--gs-control: 52px;
	--gs-control-lg: 60px;
	--gs-ease: var(--ease);
	--gs-fast: 180ms;
	--gs-nudge: 4px;
}

@media (prefers-reduced-motion: reduce) {
	:root { --gs-fast: 0ms; --gs-nudge: 0px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	overflow-x: clip;
	background: var(--bg);
	color: var(--text, var(--ink));
	font-family: var(--font);
	font-size: var(--step-body);
	line-height: 1.5;
	letter-spacing: -0.01em;
	-webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink-strong); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
/* Sui fondi rossi i titoli prendono il colore del testo del riquadro invece del rosso. */
.om-stairs li:last-child, .om-diary li:last-child, .om-field--ink, .om-close, .om-tile, .om-mosaic > *, .om-cover__art, .gs-ws__welcome, .gs-ws__msg, .om-help__msg { --heading: currentColor; }
h1, h2, h3 { margin: 0; color: var(--heading, var(--ink)); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
cite { font-style: italic; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; /* taste-skill-ignore: testo per i lettori di schermo */
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.om-skip:focus {
	position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto;
	padding: 12px 18px; background: var(--ink); color: var(--bg); font-weight: 600;
}

/* Pulsanti: rettangoli pieni, un solo tipo in tutto il sito */
.om-btn, .um .um-button, .gs-nl button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	min-height: 52px; padding: 0 1.4em;
	background: var(--accent); color: var(--accent-ink) !important;
	font: 600 var(--step-body)/1 var(--font); letter-spacing: -0.01em;
	text-decoration: none; border: 0; border-radius: var(--r-pill); cursor: pointer;
	transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}
.om-btn:hover, .gs-nl button:hover { background: var(--ink-strong); color: var(--accent-ink); }
.om-btn:active, .gs-nl button:active { transform: translateY(2px); }
.om-btn--small { min-height: 44px; padding: 0 1em; font-size: var(--step-small); }
.om-btn--line { background: transparent; color: var(--ink) !important; border: 2px solid var(--ink); }
.om-btn:focus-visible, .om-chip input:focus-visible + span { outline-offset: 4px; border-radius: var(--r-pill); }
.om-btn--line:hover { background: var(--ink); color: var(--bg) !important; }

/* Testata: resta in alto mentre si scorre, più compatta dopo i primi pixel */
.om-top {
	position: sticky; top: 0; z-index: 50; background: var(--bg);
	transition: padding 220ms var(--ease), background-color 220ms var(--ease);
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
	padding: 28px var(--margin);
	font-weight: 600; font-size: var(--step-small);
}
.om-top.is-stuck { padding-top: 12px; padding-bottom: 12px; background: color-mix(in srgb, var(--bg) 94%, var(--ink)); }
.om-top.is-stuck .om-wordmark { font-size: 1.4rem; }
.om-wordmark { display: inline-grid; justify-items: start; font-weight: 800; font-size: 1.75rem; letter-spacing: -0.05em; line-height: 0.88; text-decoration: none; }
/* Il logo: "oltre" nel margine come correzione di bozza, il filo rosso del margine, il segno ‸, l'onda che esce */
.om-logo { display: inline-grid; grid-template-columns: auto auto; column-gap: 0.14em; line-height: 0.9; font-weight: 800; letter-spacing: -0.05em; white-space: nowrap; color: var(--ink-strong); }
.om-logo::before { content: ""; grid-column: 1; grid-row: 1 / span 2; justify-self: end; width: 0.055em; margin: -0.2em 0 -0.3em; background: var(--ink); }
.om-logo__note { grid-column: 1; grid-row: 1; align-self: end; padding: 0 0.22em 0.08em 0; font-size: 0.5em; font-weight: 700; font-style: italic; letter-spacing: -0.02em; color: var(--ink); }
.om-logo__word { grid-column: 2; grid-row: 2; position: relative; padding-bottom: 0.26em; }
.om-logo__caret { position: absolute; left: -0.2em; top: -0.5em; font-size: 0.55em; font-weight: 700; color: var(--ink); }
.om-logo svg { position: absolute; left: 0; bottom: 0; width: calc(100% + 0.9em); max-width: none; height: 0.24em; overflow: visible; }
.om-logo path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.om-logo--big path { stroke-width: max(3px, 0.9vw); }
.om-nav ul, .om-account { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.om-nav a, .om-account a:not(.om-btn) { text-decoration: none; padding: 10px 0; display: inline-block; }
.om-nav a:hover, .om-account a:not(.om-btn):hover, .om-nav a[aria-current="page"] { text-decoration: underline; }
/* voci del menu in maiuscolo (anche lingua e account), con un filo d'aria tra le lettere */
.om-nav a, .om-account a, .om-lang a, .om-menu-toggle { text-transform: uppercase; letter-spacing: 0.02em; }
.om-right { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.om-nav ul { justify-content: center; }
.om-lang a { text-decoration: none; padding: 10px 0; display: inline-block; }
.om-menu-toggle { display: none; }

@media (min-width: 1321px) { .om-nav ul { flex-wrap: nowrap; white-space: nowrap; } }
@media (max-width: 1320px) {
	.om-top { grid-template-columns: 1fr auto; }
	.om-menu-toggle {
		display: inline-flex; min-height: 44px; padding: 0 2px; align-items: center;
		background: none; border: 0; color: var(--ink); font: 600 var(--step-body) var(--font); cursor: pointer;
	}
	.om-menu { display: none; grid-column: 1 / -1; padding-top: 24px; }
	.om-menu.is-open { display: block; }
	.om-menu .om-nav ul { flex-direction: column; gap: 0; font-size: var(--step-lead); }
	.om-right { grid-column: 1 / -1; display: none; padding-top: 16px; }
	.om-top.is-open .om-right { display: flex; flex-wrap: wrap; }
}

/* Home: il vuoto, poi la frase sull'asse */
.om-hero {
	position: relative; min-height: calc(100svh - 110px);
	display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center;
	gap: var(--gap-media); padding: 24px var(--margin) 72px;
}
.om-hero__cover { grid-column: 1; }
.om-hero__text { grid-column: 2; }
.om-hero h1 { font-size: clamp(2.6rem, 6vw, 6.25rem); line-height: 0.9; letter-spacing: -0.05em; }
@media (max-width: 1000px) {
	.om-hero { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 0; padding-top: 40px; gap: var(--gap-media); }
	.om-hero__text { grid-column: 1; grid-row: 1; }
	.om-hero__cover { grid-column: 1; grid-row: 2; padding-right: 0; max-width: 620px; width: 100%; margin: 0 auto; }
	.om-hero h1 { font-size: 10.5vw; }
}
.om-hero h1 .om-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.om-hero h1 .om-line > span { display: block; white-space: nowrap; }
.om-hero__lead { max-width: 34ch; margin-top: 40px; font-size: var(--step-lead); line-height: 1.3; color: var(--ink-strong); }
.om-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

/* La copertina generativa del Refuso 0 */
.om-cover { margin: 0; }
.om-cover__art { position: relative; aspect-ratio: 4 / 5; background: var(--ink); overflow: hidden; border-radius: var(--r-img); max-height: 80svh; margin: 0 auto; }
.om-cover__art svg { width: 100%; height: 100%; }
.om-cover__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2); mix-blend-mode: multiply; opacity: 0.55; }
.om-cover figcaption { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
/* La copertina da scrivere: righe del tema sullo sfondo, lo zero pieno, il tema sotto con l'onda di correzione */
.om-cover__art svg text { font-family: var(--font); font-weight: 800; }
.om-cover__head { font-size: 28px; letter-spacing: -1.2px; fill: var(--bg); }
.om-cover__mark { fill: none; stroke: var(--bg); stroke-width: 2.6; stroke-linecap: round; }
.om-cover__sign { fill: none; stroke: var(--bg); stroke-width: 38; stroke-linecap: round; stroke-linejoin: round; }
.om-cover__mark-fill { fill: var(--bg); }
.om-cover__mark-text { fill: var(--bg); }
.om-cover__theme { font-size: 48px; letter-spacing: -2px; fill: var(--bg); }
.om-cover__theme.is-empty { opacity: 0.6; }
.om-cover__rows text { font-size: 16px; font-weight: 600 !important; letter-spacing: -0.2px; fill: var(--ink-strong); opacity: 0.5; }
.om-cover__caret { fill: var(--bg); opacity: 0; }
.om-cover.is-typing .om-cover__caret { opacity: 1; animation: om-blink 900ms steps(1) infinite; }
.om-cover__write { display: grid; gap: 8px; max-width: 460px; margin: 20px auto 0; }
.om-cover__write label { font-weight: 600; font-size: var(--step-small); text-align: center; }
.om-cover__write input {
	min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-pill);
	background: var(--ink-strong); color: var(--bg); font: 600 var(--step-body) var(--font); text-align: center;
}
.om-cover__write input::placeholder { color: color-mix(in srgb, var(--bg) 70%, var(--ink-strong)); opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	.om-cover__rows g { animation: om-row 7s ease-in-out infinite alternate; }
	.om-cover__rows g:nth-child(even) { animation-direction: alternate-reverse; animation-duration: 9s; }
}
@keyframes om-row { from { transform: translateX(0); } to { transform: translateX(-60px); } }

/* Sezioni */
.om-section { padding: var(--gap-section) var(--margin) 0; }
.om-section:last-of-type { padding-bottom: var(--gap-section); }
.om-lead { font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem); line-height: 1.2; max-width: 46ch; color: var(--ink-strong); }
.om-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 72px; }
.om-four p { font-size: var(--step-body); color: var(--muted); }
.om-four strong { color: var(--ink-strong); }
@media (max-width: 900px) { .om-four { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .om-four { grid-template-columns: 1fr; row-gap: 28px; } }

.om-head { font-size: var(--step-head); margin-bottom: 40px; }
.om-sub { font-size: var(--step-lead); letter-spacing: -0.03em; margin: 40px 0 12px; line-height: 1.1; }

/* Le quattro fasi: quattro riquadri, due per riga; l'ultimo in rosa */
.om-stairs { list-style: none; margin: 0; padding: var(--gap-section) var(--margin) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.om-stairs li { padding: clamp(28px, 3.4vw, 48px); background: var(--surface); border-radius: var(--r-card); min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.om-stairs li:last-child { background: var(--ink); color: var(--bg); }
.om-stairs h2, .om-stairs h3 { font-size: clamp(2rem, 1rem + 2.6vw, 3.75rem); line-height: 1; }
.om-stairs li:last-child h2, .om-stairs li:last-child h3 { color: var(--bg); }
.om-stairs p { max-width: 42ch; margin: 0; color: var(--muted); }
.om-stairs li:last-child p { color: var(--bg); }
.om-stairs-more { padding: 32px var(--margin) 0; margin: 0; text-align: center; }
@media (max-width: 700px) {
	.om-stairs { grid-template-columns: 1fr; }
	.om-stairs li { min-height: 0; }
	.om-stairs h2, .om-stairs h3 { font-size: 8.4vw; }
}

/* Mosaico senza fughe: foto e campi pieni */
.om-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(190px, 24vw, 400px); gap: clamp(14px, 1.8vw, 28px); margin: var(--gap-section) var(--margin) 0; }
.om-mosaic > * { margin: 0; position: relative; overflow: hidden; background: var(--ink); border-radius: var(--r-img); }
.om-mosaic > .om-tile { border-radius: var(--r-card); }
.om-mosaic + .om-section { padding-top: calc(var(--gap-section) + var(--gap-media) / 2); }
.om-mosaic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; transition: transform 1200ms var(--ease); }
.om-mosaic figure:hover img { transform: scale(1.04); }
.om-mosaic .is-gen { background: var(--surface); }
.om-mosaic .is-gen img { filter: none; mix-blend-mode: normal; } /* illustrazioni generate: a colori */
.om-mosaic figcaption { position: absolute; left: 16px; bottom: 16px; padding: 6px 14px; background: var(--bg); color: var(--ink); font-size: var(--step-small); border-radius: var(--r-pill); }
.om-mosaic .w2 { grid-column: span 2; } .om-mosaic .w3 { grid-column: span 3; } .om-mosaic .h2 { grid-row: span 2; }
.om-tile { display: flex; align-items: flex-end; padding: 24px; color: var(--bg); font-weight: 800; font-size: clamp(1.75rem, 3.4vw, 4rem); letter-spacing: -0.05em; line-height: 0.9; }
.om-tile--dark { background: var(--surface) !important; color: var(--ink); }
@media (max-width: 700px) {
	.om-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 56vw; }
	.om-mosaic .w2, .om-mosaic .w3 { grid-column: span 2; }
	.om-mosaic .h2 { grid-row: span 1; }
}

/* Principi: definizioni sull'asse */
.om-axis { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.om-axis:has(.om-photo) { gap: var(--gap-media); }
@media (min-width: 801px) { .om-axis:has(.om-photo) { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.om-axis > .om-head, .om-axis > .om-axis__side { grid-column: 1; }
.om-axis > :not(.om-head):not(.om-axis__side) { grid-column: 2; }
@media (max-width: 800px) { .om-axis { grid-template-columns: 1fr; } .om-axis > * { grid-column: 1 !important; } }
.om-defs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.om-defs dt { font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.1; color: var(--ink-strong); }
.om-defs dd { margin: 10px 0 0; max-width: 40ch; }
.om-defs > div { display: block; }
.om-defs:not(:has(> div)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.om-defs:not(:has(> div)) dd { margin: 0; }
@media (max-width: 640px) { .om-defs { grid-template-columns: 1fr; } }

/* Diario */
.om-diary { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.om-diary li { padding: 28px 24px 32px; min-height: 340px; background: var(--surface); border-radius: var(--r-card); }
.om-diary li:nth-child(even) { background: var(--surface-2); }
.om-diary li:last-child { background: var(--ink); color: var(--bg); }
.om-diary h2, .om-diary h3 { font-size: clamp(1.5rem, 1rem + 1vw, 2rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 14px; }
.om-diary p { font-size: var(--step-body); }
.om-diary__when { font-weight: 600; margin-bottom: 40px !important; }
@media (max-width: 1100px) { .om-diary { grid-template-columns: 1fr 1fr; } .om-diary li { min-height: 0; } .om-diary li:last-child { grid-column: 1 / -1; } .om-diary__when { margin-bottom: 20px !important; } }
@media (max-width: 600px) { .om-diary { grid-template-columns: 1fr; } .om-diary li { min-height: 0; } }

/* Campi pieni */
.om-field { margin: var(--gap-section) var(--margin) 0; padding: clamp(56px, 7vw, 112px) clamp(24px, 5vw, 80px); border-radius: var(--r-band); }
.om-field > * { max-width: var(--measure); margin-left: auto !important; margin-right: auto !important; }
.om-field--ink { background: var(--ink); color: var(--bg); }
.om-field--ink a { color: var(--bg); }
.om-field--ink :focus-visible { outline-color: var(--bg); }
.om-field--surface { background: var(--surface); }
.om-quote { margin: 0; max-width: 30ch; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
.om-note-text { max-width: 60ch; margin-top: 32px; }

/* Pagine di testo: una colonna centrata, stessi margini a destra e a sinistra */
.om-page { padding-bottom: var(--gap-section); }
.om-text { padding: clamp(56px, 8vw, 120px) var(--margin) 0; max-width: calc(var(--measure) + 2 * var(--margin)); margin: 0 auto; }
.om-text > * { max-width: 72ch; }
.om-text > .om-title { max-width: none; font-size: var(--step-display); line-height: 0.88; letter-spacing: -0.05em; margin-bottom: 32px; }
.om-text > .om-head { margin-bottom: 24px; max-width: none; }
.om-text > .om-issue, .om-text > .om-cols, .om-text > .om-defs { max-width: none; }
.om-standfirst { font-size: var(--step-lead); line-height: 1.3; color: var(--ink-strong); margin-bottom: 32px; }
.om-cols { columns: 2 34ch; column-gap: 48px; }
.om-cols p { break-inside: avoid; }
.om-list { margin: 0; padding-left: 1.2em; display: grid; gap: 14px; }
.om-list li::marker { color: var(--muted); }
.om-sources { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: var(--step-body); color: var(--muted); }
.om-faq { margin: 0; display: grid; gap: 28px; }
.om-faq dt { font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.02em; color: var(--ink-strong); }
.om-faq dd { margin: 8px 0 0; }
.om-page > .om-stairs, .om-page > .om-diary { max-width: calc(var(--measure) + 2 * var(--margin)); margin: clamp(48px, 6vw, 88px) auto 0; padding-left: var(--margin); padding-right: var(--margin); }
.om-page > .om-stairs { padding-top: 0; }

/* Numeri e call */
.om-issue { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: end; margin-top: 24px; padding: 32px 40px; background: var(--surface); border-radius: var(--r-card); }
.om-issue__no { margin: 0; font-weight: 800; font-size: clamp(7rem, 4rem + 10vw, 14rem); line-height: 0.75; letter-spacing: -0.06em; }
.om-issue h2 { font-size: var(--step-head); }
.om-status { display: inline-block; margin: 14px 0; padding: 6px 14px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-weight: 600; font-size: var(--step-small); }
@media (max-width: 560px) { .om-issue { grid-template-columns: 1fr; padding: 24px; } }

.om-admin-note { grid-column: 1 / -1; margin: 40px auto 0; max-width: var(--measure); padding: 18px 22px; border-radius: var(--r-field); background: #fff3b0; color: #160f2e; font-size: var(--step-small); max-width: none; }
.om-admin-note strong { display: block; margin-bottom: 4px; }

/* Chiusura: i colori si rovesciano */
.om-close { margin: var(--gap-section) var(--margin) 0; min-height: 0; display: grid; gap: clamp(48px, 7vw, 120px); padding: clamp(56px, 7vw, 112px) clamp(24px, 5vw, 80px); background: var(--ink); color: var(--bg); border-radius: var(--r-band); }
.om-close h2 { font-size: clamp(3rem, 8.4vw, 9rem); line-height: 0.9; letter-spacing: -0.05em; }
@media (max-width: 640px) { .om-close h2 { font-size: 11vw; } }
.om-close__foot { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.om-close__foot p { max-width: 40ch; font-size: var(--step-lead); line-height: 1.3; }
.om-close .om-btn { background: var(--bg); color: var(--ink) !important; min-height: 56px; }
.om-close .om-btn:hover { background: var(--surface); }
.om-close :focus-visible { outline-color: var(--bg); }
@media (max-width: 640px) { .om-close__foot { grid-template-columns: 1fr; } .om-close .om-btn { width: 100%; } }
/* In home la fascia sta subito sotto la copertina, in evidenza */
.om-close--top { margin-top: clamp(24px, 4vw, 64px); }
.om-close--top h2 { font-size: clamp(2.75rem, 7vw, 7.5rem); }

/* Newsletter */
.gs-nl { max-width: 560px; }
.gs-nl__hp { position: absolute; left: -9999px; }
.gs-nl__row { display: flex; gap: 8px; }
.gs-nl input[type="email"] {
	flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border: 0; border-radius: var(--r-pill);
	background: var(--ink-strong); color: var(--bg); font: var(--step-body) var(--font);
}
.gs-nl input[type="email"]::placeholder { color: color-mix(in srgb, var(--bg) 70%, var(--ink-strong)); opacity: 1; }
.gs-nl__consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: var(--step-small); }
.gs-nl__consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.gs-nl__msg { margin-top: 14px; padding: 12px 18px; background: var(--surface); border-radius: var(--r-field); }

/* Piede */
.om-foot { min-height: 60svh; display: grid; grid-template-rows: auto 1fr auto; gap: 40px; padding: 48px var(--margin) 24px; background: var(--bg); }
.om-foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: var(--step-small); overflow-wrap: anywhere; }
.om-foot__cols h2 { font-size: var(--step-body); letter-spacing: -0.01em; margin-bottom: 10px; color: var(--ink-strong); }
.om-foot__cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.om-foot__cols a { text-decoration: none; } .om-foot__cols a:hover { text-decoration: underline; }
.om-foot__word { display: block; margin: 0; padding-top: 0.2em; font-size: 15vw; overflow-x: clip; }
.om-foot__legal { font-size: var(--step-small); color: var(--muted); }
.om-foot__legal a { color: var(--muted); }
@media (max-width: 800px) { .om-foot__cols { grid-template-columns: 1fr 1fr; } }

/* Pagine della community (Ultimate Member): centrate, moduli e testo sulla stessa larghezza */
.om-um { padding: clamp(48px, 7vw, 100px) var(--margin) var(--gap-section); max-width: calc(var(--measure) + 2 * var(--margin)); margin: 0 auto; }
.om-um > .om-title, .om-um .gs-um-intro { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.om-um .gs-um-intro { margin-bottom: 40px; }
.om-um .gs-um-intro .gs-title, .om-um > .om-title { font-size: clamp(2.75rem, 1rem + 5.4vw, 6rem); line-height: 0.9; letter-spacing: -0.05em; margin-bottom: 24px; }
.om-um .gs-um-intro .gs-lead { font-size: var(--step-lead); line-height: 1.3; color: var(--ink-strong); }
html body .om-um .gs-um-steps { margin: 24px 0 0; padding: 0; display: flex !important; flex-wrap: wrap; justify-content: center; gap: 8px; }
html body .om-um .gs-um-steps li { display: inline-flex !important; align-items: center; gap: 10px; padding: 8px 18px 8px 8px !important; border-radius: var(--r-pill); background: var(--surface); font-size: var(--step-small); }
html body .om-um .gs-um-steps li::before { position: static !important; margin: 0 !important; flex: none; }
html body .om-um .um { margin-left: auto !important; margin-right: auto !important; width: auto !important; }
html body .om-um .um-directory { max-width: 100% !important; }
body .um input[type="text"], body .um input[type="email"], body .um input[type="password"], body .um input[type="url"], body .um select {
	background: var(--ink-strong) !important; color: var(--bg) !important; border: 0 !important; border-radius: var(--r-pill) !important; min-height: 48px; padding-left: 20px !important; padding-right: 20px !important;
}
body .um textarea { background: var(--ink-strong) !important; color: var(--bg) !important; border: 0 !important; border-radius: var(--r-field) !important; padding: 14px 18px !important; }
body .um .select2-container .select2-selection { border-radius: var(--r-pill) !important; border: 0 !important; background: var(--ink-strong) !important; min-height: 48px; }

/* Comparsa delle parti di ogni sezione */
@media (prefers-reduced-motion: no-preference) {
	.js .om-rise { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
	.js .om-rise.is-in { opacity: 1; transform: none; }
	.js .om-hero h1 .om-line > span { transform: translateY(105%); transition: transform 900ms var(--ease); }
	.js .om-hero h1 .om-line:nth-child(2) > span { transition-delay: 110ms; }
	.js.is-loaded .om-hero h1 .om-line > span { transform: none; }
	.js .om-hero__lead, .js .om-hero__actions { opacity: 0; transition: opacity 600ms var(--ease) 500ms; }
	.js.is-loaded .om-hero__lead, .js.is-loaded .om-hero__actions { opacity: 1; }
}

.om-photo { margin: var(--gap-media) 0 0; }
.om-photo__art { background: var(--ink); }
.om-photo__art img { width: 100%; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; }
.om-photo figcaption { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }
/* illustrazioni generate: a colori, senza la stampa a due inchiostri delle foto d'archivio */
.om-photo--gen .om-photo__art { background: none; border-radius: var(--r-img); overflow: hidden; }
.om-photo--gen .om-photo__art img { filter: none; mix-blend-mode: normal; }
.om-text > .om-photo--page { max-width: none; margin: 8px 0 48px; }

/* Pagina aperta in background: tutto visibile, senza animazione */
.om-static .om-rise, .om-static .om-hero__lead, .om-static .om-hero__actions { opacity: 1 !important; transform: none !important; transition: none !important; }
.om-static .om-hero h1 .om-line > span { transform: none !important; transition: none !important; }

/* Moduli della community: pulsanti del sito, etichette sopra i campi, caselle leggibili */
body .um input[type="submit"].um-button, body .um .um-button, body .um a.um-button {
	background: var(--accent) !important; color: var(--accent-ink) !important; border: 0 !important;
	min-height: 52px !important; padding: 0 1.6em !important; font: 600 var(--step-body)/1 var(--font) !important; box-shadow: none !important; /* taste-skill-ignore: toglie l ombra di Ultimate Member */ border-radius: var(--r-pill) !important;
}
body .um input[type="submit"].um-button:hover, body .um .um-button:hover { background: var(--ink-strong) !important; }
body .um a.um-button.um-alt, body .um input[type="submit"].um-button.um-alt { background: transparent !important; color: var(--ink) !important; border: 2px solid var(--ink) !important; }
body .um .um-field-label { float: none !important; width: auto !important; margin-bottom: 8px !important; }
body .um .um-field-label label { font-size: var(--step-small) !important; font-weight: 600 !important; color: var(--ink-strong) !important; }
body .um .um-field-area { width: 100% !important; float: none !important; }
body .um .um-field-checkbox, body .um .um-field-radio { width: 100% !important; float: none !important; display: flex !important; align-items: flex-start; gap: 10px; }
body .um .um-field-checkbox-option, body .um .um-field-radio-option { white-space: normal !important; line-height: 1.4 !important; font-size: var(--step-body) !important; color: var(--ink) !important; margin-left: 0 !important; }
body .um .um-field-error { background: var(--ink-strong) !important; color: var(--bg) !important; border-radius: var(--r-field) !important; }
body .um .um-field-error .um-field-arrow { color: var(--ink-strong) !important; }
.gs-nl__row { flex-wrap: wrap; }
.gs-nl input[type="email"] { flex: 1 1 180px; }
.gs-nl button { flex: 0 0 auto; }

/* "Il mio spazio": pannelli in blu più chiaro, benvenuto rosa pieno, campi chiari con testo blu */
html body .gs-ws { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px !important; margin-top: 24px; }
html body .gs-ws__card { background: var(--surface) !important; border: 0 !important; border-radius: var(--r-card) !important; padding: 28px !important; color: var(--ink) !important; }
html body .gs-ws__card h2, html body .gs-ws__card h3 { color: var(--ink-strong) !important; font-size: var(--step-lead) !important; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px !important; }
html body .gs-ws__card p, html body .gs-ws__small { color: var(--muted) !important; }
html body .gs-ws__welcome { background: var(--ink) !important; color: var(--bg) !important; }
html body .gs-ws__welcome h2 { color: var(--bg) !important; font-size: var(--step-head) !important; }
html body .gs-ws__welcome p, html body .gs-ws__welcome .gs-ws__small { color: var(--bg) !important; }
html body .gs-ws__welcome .gs-ws__btn, html body .gs-ws__welcome a { color: var(--bg) !important; }
html body .gs-ws__meter { background: color-mix(in srgb, var(--ink-strong) 20%, transparent) !important; height: 8px !important; border-radius: var(--r-pill) !important; overflow: hidden; }
html body .gs-ws__meter span { background: var(--bg) !important; border-radius: var(--r-pill) !important; display: block; height: 100%; }
html body .gs-ws__form { display: grid; gap: 16px; }
html body .gs-ws__form label { display: grid; gap: 6px; }
html body .gs-ws__form label > span { font-size: var(--step-small); font-weight: 600; color: var(--ink-strong) !important; }
html body .gs-ws .gs-ws__form :is(input[type="text"], select, textarea), html body .um .gs-ws__form :is(input[type="text"], select, textarea) {
	background: var(--ink-strong) !important; color: var(--bg) !important; border: 0 !important; border-radius: var(--r-field) !important;
	min-height: 48px !important; padding: 10px 16px !important; font: var(--step-body) var(--font) !important;
}
html body .gs-ws__two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
html body .gs-ws__drop { padding: 16px !important; border: 2px dashed var(--muted) !important; border-radius: var(--r-field) !important; }
html body .gs-ws__drop small { color: var(--muted); }
html body .gs-ws__check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px; }
html body .gs-ws__check input { width: 20px; height: 20px; accent-color: var(--ink); }
html body .gs-ws__btn, html body .gs-ws__form button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.2em;
	background: var(--accent) !important; color: var(--accent-ink) !important; border: 0 !important; border-radius: var(--r-pill) !important;
	font: 600 var(--step-small)/1 var(--font) !important; text-decoration: none; cursor: pointer;
}
html body .gs-ws__btn--ghost { background: transparent !important; color: var(--ink) !important; border: 2px solid currentColor !important; }
html body .gs-ws__welcome .gs-ws__btn { background: var(--bg) !important; color: var(--ink) !important; }
html body .gs-ws__welcome .gs-ws__btn--ghost { background: transparent !important; color: var(--bg) !important; }
html body .gs-ws__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
html body .gs-ws__tag { background: var(--bg) !important; color: var(--ink) !important; border-radius: var(--r-pill) !important; padding: 3px 12px !important; font-size: var(--step-small); }
html body .gs-ws__empty { border: 2px dashed var(--muted) !important; border-radius: var(--r-field) !important; color: var(--muted) !important; padding: 16px 18px; }
html body .gs-ws__msg { background: var(--ink) !important; color: var(--bg) !important; border: 0 !important; border-radius: var(--r-field) !important; padding: 14px 16px; }
html body .gs-ws__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
html body .gs-ws a:not(.gs-ws__btn) { color: inherit !important; }
@media (max-width: 860px) { html body .gs-ws { grid-template-columns: minmax(0, 1fr); } html body .gs-ws__two { grid-template-columns: 1fr; } }

/* Profilo: copertina e barra delle schede nei colori del sito (il colore scelto dal membro le sostituisce) */
html body .um-profile .um-cover, html body .um-profile .um-cover-e { background: var(--surface) !important; }
html body .um-profile .um-cover-add { color: var(--muted) !important; }
html body .um-profile .um-profile-nav { background: var(--surface) !important; }
html body .um-profile .um-profile-nav-item a { color: var(--ink) !important; }
html body .um-profile .um-name a, html body .um-profile .um-name { color: var(--ink-strong) !important; }
html body .um-profile .um-profile-meta { color: var(--muted) !important; }
html body .um-profile .um-field-label label, html body .um-profile .um-field-value { color: var(--ink) !important; }
html body .um-profile { background: transparent !important; }

html body .um-profile .um-profile-navbar, html body .um-profile .um-header { border-color: transparent !important; }

/* Profilo: copertina, foto e barra delle schede arrotondate */
html body .um-profile .um-cover { border-radius: var(--r-card) !important; overflow: hidden; }
html body .um-profile .um-profile-nav { border-radius: var(--r-pill) !important; padding: 6px !important; }
html body .um-profile .um-profile-nav-item a { border-radius: var(--r-pill) !important; }
html body.um-page-user .um-profile-nav-item.active a { background: var(--ink) !important; color: var(--bg) !important; }
html body.um-page-account .um-account-side li a.um-account-link { border-radius: var(--r-pill) !important; border: 0 !important; background: var(--surface) !important; }
html body.um-page-account .um-account-side li a.um-account-link.current { background: var(--ink) !important; color: var(--bg) !important; }
html body .um .um-members .um-member { border-radius: var(--r-card) !important; background: var(--surface) !important; border: 0 !important; }
html body .um .um-search, html body .um .um-member-directory-header { border-radius: var(--r-card); }
.om-photo__art { border-radius: var(--r-img); overflow: hidden; }
.om-cover figcaption { text-align: center; width: 100%; }
.om-cover__art img { border-radius: inherit; }

/* Elenco dei membri: ricerca centrata, schede nei colori del sito */
html body .um-directory .um-member-directory-header, html body .um-directory .um-member-directory-search-row { justify-content: center !important; margin-left: auto !important; margin-right: auto !important; }
html body .um-directory .um-member-directory-search-line { max-width: 640px; margin: 0 auto !important; }
html body .um .um-members .um-member .um-member-cover, html body .um .um-members .um-member-cover-e { background: var(--ink) !important; border-radius: var(--r-card) var(--r-card) 0 0 !important; }
html body .um .um-members .um-member-name a { color: var(--ink-strong) !important; }
html body .um .um-members .um-member-tagline, html body .um .um-members .um-member-meta { color: var(--muted) !important; }
html body .um .um-members .um-member { overflow: hidden; }
html body .um-directory .um-member-directory-search-line { display: flex !important; gap: 8px; width: 100%; }
html body .um-directory .um-member-directory-search-line label, html body .um-directory .um-search-line { flex: 1 1 auto; width: 100% !important; max-width: none !important; }
html body .um-directory .um-search-line input { width: 100% !important; }
html body .um-directory .um-do-search { flex: 0 0 auto; }
html body .um-directory .um-member-directory-header { flex-direction: column !important; align-items: center !important; }
html body .um-directory .um-member-directory-search-row { width: 100% !important; max-width: 640px; }
html body .um-directory .um-member-directory-search-line { flex: 1 1 auto; }
html body .um-directory .um-member-directory-search-line label { flex: 1 1 auto; }

/* Loader */
.om-loader { display: none; }
[data-om-loader] .om-loader {
	position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 14px;
	background: var(--bg); color: var(--ink); transition: opacity 450ms var(--ease), visibility 0s linear 450ms;
	animation: om-cover-safety 0s linear 4s forwards; /* se il JavaScript non parte, dopo 4 secondi la pagina si vede comunque */
}
[data-om-loader="out"] .om-loader { opacity: 0; visibility: hidden; }
@keyframes om-cover-safety { to { opacity: 0; visibility: hidden; } }
/* Loader: il logo si compone come una correzione di bozza: il filo del margine, "oltre" a lato, il segno ‸, "margine", l'onda che esce e respira */
.om-loader__name { margin: 0; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); }
.om-logo--loader::before { transform-origin: top; animation: om-l-rule 380ms var(--ease) both; }
.om-logo--loader .om-logo__note { animation: om-l-note 380ms 180ms var(--ease) both; }
.om-logo--loader .om-logo__caret { animation: om-l-caret 260ms 400ms var(--ease) both; }
.om-logo--loader .om-logo__word { animation: om-l-word 420ms 480ms var(--ease) both; }
.om-logo--loader path { stroke-width: 3.5; stroke-dasharray: 260; animation: om-l-wave 500ms 800ms ease-out both, om-wave 1.1s 1300ms ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes om-l-rule { from { transform: scaleY(0); } }
@keyframes om-l-note { from { opacity: 0; transform: translateX(-0.6em) rotate(-6deg); } }
@keyframes om-l-caret { from { opacity: 0; transform: translateY(0.4em); } }
@keyframes om-l-word { from { clip-path: inset(-1em 100% -1em -1em); } to { clip-path: inset(-1em -2em -1em -1em); } }
@keyframes om-l-wave { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes om-wave { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

/* Linea di lettura: un'onda morbida che si colora mentre si scorre */
.om-readline { position: fixed; top: 0; left: 0; right: 0; height: 10px; z-index: 60; pointer-events: none; opacity: 0; transition: opacity 300ms var(--ease); }
.om-readline.is-on { opacity: 1; }
.om-readline svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.om-readline path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.om-readline__base path { stroke: color-mix(in srgb, var(--ink) 18%, transparent); }
.om-readline__fill { clip-path: inset(0 calc(100% - var(--om-read, 0%)) 0 0); }
.om-readline__fill path { stroke: var(--ink-strong); }

/* Torna su */
.om-totop {
	position: fixed; right: max(16px, var(--margin)); bottom: 88px; z-index: 40; /* sopra il pulsante di accessibilità */
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	background: var(--accent); color: var(--accent-ink); text-decoration: none;
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s linear 220ms, background-color 160ms var(--ease);
}
.om-totop.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.om-totop:hover { background: var(--ink-strong); color: var(--accent-ink); }
.om-totop:focus-visible { outline-offset: 4px; }

/* Pannello di accessibilità: pulsante tondo fisso in basso a destra, il pannello si apre verso l'alto */
.om-a11y { position: fixed; right: max(16px, var(--margin)); bottom: 24px; z-index: 46; }
.om-a11y__toggle {
	display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
	background: var(--bg); color: var(--ink); border: 2px solid var(--ink); border-radius: 50%; cursor: pointer;
}
.om-a11y__toggle svg { width: 24px; height: 24px; }
.om-a11y__toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.om-a11y__toggle[aria-expanded="true"], .om-a11y__toggle:hover { background: var(--ink); color: var(--bg); }
.om-a11y__panel {
	position: absolute; right: 0; bottom: calc(100% + 12px); z-index: 60; width: min(320px, calc(100vw - 32px)); max-height: calc(100svh - 120px); overflow-y: auto;
	display: grid; gap: 8px; padding: 18px; background: var(--surface); color: var(--ink);
	border-radius: var(--r-card); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35); /* taste-skill-ignore: è un pannello che si apre sopra la pagina */
}
.om-a11y__panel[hidden] { display: none; }
.om-a11y__title { margin: 0 0 4px; font-weight: 800; font-size: var(--step-body); color: var(--ink-strong); }
.om-a11y__opt, .om-a11y__reset {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 16px;
	background: var(--bg); color: var(--ink); border: 0; border-radius: var(--r-pill); text-align: left;
	font: 600 var(--step-small)/1.2 var(--font); cursor: pointer;
}
.om-a11y__opt:hover { background: color-mix(in srgb, var(--bg) 80%, var(--ink)); }
.om-a11y__dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; }
.om-a11y__opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.om-a11y__opt[aria-pressed="true"] .om-a11y__dot { background: currentColor; box-shadow: inset 0 0 0 3px var(--ink); /* taste-skill-ignore: segno della scelta attiva */ }
.om-a11y__reset { justify-content: center; background: transparent; border: 2px solid var(--muted); color: var(--muted); margin-top: 4px; }
@media (max-width: 1320px) {
	.om-top.is-open { max-height: 100svh; overflow-y: auto; }
}

/* Modalità scelte dal pannello */
html.om-a-big { font-size: 118.75%; }
html.om-a-contrast {
	--bg: #000000; --surface: #161616; --surface-2: #222222; --ink: #ffffff; --ink-strong: #ffffff; --text: #ffffff; --muted: #e8e8e8;
	--accent: #ffe14d; --accent-ink: #000000;
}
html.om-a-contrast .om-mosaic img, html.om-a-contrast .om-photo__art img, html.om-a-contrast .om-cover__art img { mix-blend-mode: normal; }
html.om-a-contrast .om-tile, html.om-a-contrast .om-cover__art { color: #000; }
html.om-a-links a:not(.om-btn):not(.om-wordmark) { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html.om-a-links .om-btn { text-decoration: underline; }
html.om-a-spacing body { line-height: 1.8 !important; letter-spacing: 0.04em !important; word-spacing: 0.12em !important; }
html.om-a-spacing p, html.om-a-spacing li, html.om-a-spacing dd { line-height: 1.8 !important; }
html.om-a-spacing p { margin-bottom: 1.6em; }
html.om-a-still *, html.om-a-still *::before, html.om-a-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.om-a-still .om-rise, html.om-a-still .om-hero__lead, html.om-a-still .om-hero__actions { opacity: 1 !important; transform: none !important; }
html.om-a-still .om-hero h1 .om-line > span { transform: none !important; }

/* Ancore: con la testata fissa il titolo di arrivo non finisce sotto */
html { scroll-padding-top: 96px; }
main:focus { outline: none; }

.om-account { flex-wrap: nowrap; white-space: nowrap; }
html.om-a-big .om-nav ul { gap: 4px 14px; }

/* Assistenza: pulsante in basso a sinistra (computer) e pannello d'aiuto */
.om-help__toggle {
	position: fixed; left: max(16px, var(--margin)); bottom: 24px; z-index: 40;
	display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px;
	background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-pill);
	font: 600 var(--step-small)/1 var(--font); cursor: pointer;
	transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.om-help__toggle:hover, .om-help__toggle[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.om-help__toggle:active { transform: translateY(2px); }
.om-help__panel {
	position: fixed; left: max(16px, var(--margin)); bottom: 88px; z-index: 70;
	width: min(420px, calc(100vw - 32px)); max-height: min(78svh, 760px); display: flex; flex-direction: column;
	background: var(--surface); color: var(--ink); border-radius: var(--r-card); overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); /* taste-skill-ignore: pannello che si apre sopra la pagina */
}
.om-help__panel[hidden] { display: none; }
.om-help__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 12px 24px; }
.om-help__title { font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.1; color: var(--ink-strong); }
.om-help__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); cursor: pointer; }
.om-help__close:hover { background: var(--ink); color: var(--bg); }
.om-help__body { padding: 4px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.om-help__sub { font-size: var(--step-body); letter-spacing: -0.01em; margin: 18px 0 10px; color: var(--ink-strong); }
.om-help__faq { display: grid; gap: 6px; }
.om-help__faq details { background: var(--bg); border-radius: var(--r-field); }
.om-help__faq summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: var(--step-small); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.om-help__faq summary::-webkit-details-marker { display: none; }
.om-help__faq summary::after { content: "+"; font-weight: 800; }
.om-help__faq details[open] summary::after { content: "–"; }
.om-help__faq details p { margin: 0; padding: 0 16px 12px; font-size: var(--step-small); color: var(--muted); }
.om-help__faq details a { color: var(--ink-strong); }
.om-help__form { display: grid; gap: 12px; }
.om-help__form label { display: grid; gap: 6px; font-size: var(--step-small); font-weight: 600; color: var(--ink-strong); }
.om-help__form input[type="text"], .om-help__form input[type="email"], .om-help__form select {
	min-height: 46px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: var(--ink-strong); color: var(--bg); font: var(--step-small) var(--font);
}
.om-help__form textarea { padding: 12px 16px; border: 0; border-radius: var(--r-field); background: var(--ink-strong); color: var(--bg); font: var(--step-small)/1.4 var(--font); resize: vertical; }
.om-help__form .om-help__consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink); }
.om-help__consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.om-help__form .om-btn { justify-self: start; }
.om-help__msg { margin: 0 0 8px; padding: 12px 16px; border-radius: var(--r-field); background: var(--ink); color: var(--bg); font-size: var(--step-small); }
.om-help__msg--err { background: var(--ink-strong); }
/* Telefono e tablet: niente pulsante fisso (resta il link nel piede); il pannello occupa lo schermo */
@media (max-width: 1023px) {
	.om-help__toggle { display: none; }
	.om-help__panel { left: 0; right: 0; bottom: 0; top: 0; width: 100%; max-height: none; border-radius: 0; }
}

/* Blocchi dell'editor con la grafica del sito (pattern "Oltremargine") */
.om-text > .wp-block-group, .om-text > .wp-block-shortcode, .om-text > .om-people, .om-text > .om-calls, .om-text > .om-issues, .om-text > .om-steps, .om-text > .wp-block-details, .om-text > .wp-block-image { max-width: none; }
.om-text > .wp-block-heading + *, .om-text > .om-head + * { margin-top: 0; }
.om-text > p, .om-text > .wp-block-buttons { margin-bottom: 1em; }
.om-defs > .om-def h3 { font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.1; color: var(--ink-strong); margin: 0; }
.om-defs > .om-def p { margin: 10px 0 0; max-width: 40ch; }
.om-subhead { font-size: var(--step-lead); letter-spacing: -0.03em; color: var(--ink-strong); margin: 56px 0 20px; }
.om-steps { list-style: none; counter-reset: om-step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.om-steps li { counter-increment: om-step; padding: 28px 24px; background: var(--surface); border-radius: var(--r-card); }
.om-steps li::before { content: counter(om-step); display: block; font-weight: 800; font-size: var(--step-head); line-height: 1; letter-spacing: -0.05em; color: var(--ink-strong); margin-bottom: 18px; }
.om-steps strong { display: block; color: var(--ink-strong); font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 8px; }
.wp-block-details { border-top: 2px solid var(--surface); padding: 18px 0; }
.wp-block-details:last-of-type { border-bottom: 2px solid var(--surface); }
.wp-block-details summary { cursor: pointer; font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.02em; color: var(--ink-strong); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; flex: none; }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > :not(summary) { margin: 12px 0 0; max-width: 64ch; }
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.6em;
	background: var(--accent); color: var(--accent-ink); border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
}
.wp-block-button__link:hover { background: var(--ink-strong); color: var(--accent-ink); }
.om-close .wp-block-button__link, .om-field--ink .wp-block-button__link { background: var(--bg); color: var(--ink); }
.om-text > .om-figure { max-width: 760px; }
.om-figure img { width: 100%; border-radius: var(--r-img); }
.om-figure figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.om-empty { color: var(--muted); }
.om-entry { padding-top: 32px; }
.om-entry__cta { margin-top: 40px; }

/* Redazione: schede di persone e collettivi */
.om-people { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.om-person { background: var(--surface); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.om-person__img { aspect-ratio: 4 / 3; background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.om-person__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; }
.om-person__img span { font-weight: 800; font-size: clamp(4rem, 3rem + 4vw, 7rem); letter-spacing: -0.06em; color: var(--bg); line-height: 1; }
.om-person__body { padding: 22px 24px 26px; }
.om-person__kind, .om-call__type, .om-issue-card__no { margin: 0 0 6px; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.om-call__type a { color: inherit; }
.om-person h3 { font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.05; color: var(--ink-strong); }
.om-person__practice { margin: 8px 0 0; font-weight: 600; }
.om-person__text { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.om-person__links { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--step-small); font-weight: 600; }

/* Call */
.om-calls { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.om-call { padding: 26px 28px; background: var(--surface); border-radius: var(--r-card); }
.om-call h3 { font-size: var(--step-head); line-height: 0.95; }
.om-call h3 a { text-decoration: none; color: var(--ink-strong); }
.om-call h3 a:hover { text-decoration: underline; }
.om-call--closed { background: transparent; border: 2px solid var(--surface); }
.om-call--closed .om-status, .om-status--closed { background: var(--surface); color: var(--muted); }
.om-facts { margin: 8px 0 0; }

/* Numeri */
.om-issues { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px 10px; }
.om-issue-card a { display: block; text-decoration: none; }
.om-issue-card__cover { aspect-ratio: 4 / 5; background: var(--ink); border-radius: var(--r-img); overflow: hidden; display: grid; place-items: center; margin-bottom: 14px; }
.om-issue-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.om-issue-card__cover span { font-weight: 800; font-size: clamp(6rem, 4rem + 6vw, 10rem); line-height: 0.8; letter-spacing: -0.06em; color: var(--bg); }
.om-issue-card h3 { font-size: var(--step-lead); letter-spacing: -0.03em; color: var(--ink-strong); }
.om-issue-card a:hover h3 { text-decoration: underline; }
.om-issue-card__meta { margin: 6px 0 0; font-size: var(--step-small); color: var(--muted); }
.om-issue-single { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-media); align-items: end; max-width: calc(var(--measure) + 2 * var(--margin)); }
.om-issue-single > * { max-width: none; }
.om-issue-single__cover { aspect-ratio: 4 / 5; background: var(--ink); border-radius: var(--r-img); overflow: hidden; display: grid; place-items: center; }
.om-issue-single__cover img { width: 100%; height: 100%; object-fit: cover; }
.om-issue-single__cover span { font-weight: 800; font-size: clamp(8rem, 5rem + 10vw, 16rem); line-height: 0.8; letter-spacing: -0.06em; color: var(--bg); }
@media (max-width: 800px) { .om-issue-single { grid-template-columns: 1fr; } }

/* App installabile: pannello con le istruzioni, pulsante per salvare un numero */
.om-install {
	position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90;
	width: min(420px, calc(100vw - 32px)); padding: 20px 22px; background: var(--surface); color: var(--ink-strong);
	border-radius: var(--r-card); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4); /* taste-skill-ignore: pannello che si apre sopra la pagina */
}
.om-install[hidden] { display: none; }
.om-install__title { margin: 0 0 6px; font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.03em; color: var(--ink); }
.om-install__text { margin: 0 0 14px; }
.om-install__close { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font: 600 var(--step-small) var(--font); cursor: pointer; }
.om-issue-single__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
[data-om-save].is-saved { background: var(--ink); color: var(--bg) !important; }
/* Dentro l'app installata la testata tiene conto della barra di stato */
.om-app .om-top { padding-top: max(12px, env(safe-area-inset-top, 0px)); }

/* Community: Stampino col cartello sopra accesso e iscrizione, e pensieroso negli spazi vuoti */
.om-um-hello { margin: 0 auto 24px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.om-um-hello img { width: clamp(110px, 18vw, 150px); height: auto; }
.om-um-hello figcaption { max-width: 30ch; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .om-um-hello img { animation: om-hello-bob 3s ease-in-out infinite; } }
@keyframes om-hello-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
html.om-a-still .om-um-hello img { animation: none; }
html body .gs-ws__empty { display: flex; align-items: center; gap: 14px; }
html body .gs-ws__empty::before { content: ""; flex: none; width: 64px; height: 64px; background: url(../img/stampino/pensa.png) center / contain no-repeat; }

/* Pagina Community (inc/community-page.php) */
.om-cm { display: grid; gap: clamp(64px, 9vw, 140px); }
.om-cm-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
/* il titolo sta nella sua colonna: niente sconfinamenti sopra l'illustrazione */
.om-cm-hero__text { min-width: 0; }
.om-cm-hero__title { font-size: clamp(2.75rem, 0.8rem + 4.6vw, 5.75rem); line-height: 0.88; letter-spacing: -0.055em; margin-bottom: 20px; overflow-wrap: anywhere; }
.om-cm-hero__lead { font-size: var(--step-lead); line-height: 1.3; color: var(--ink-strong); margin-bottom: 28px; }
.om-cm-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.om-cm-hero__more { font-weight: 600; }
.om-cm-hero__art { margin: 0; }
.om-cm-hero__art img { width: 100%; border-radius: var(--r-img); }
.om-cm-hero__art figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.om-cm-head { font-size: var(--step-head); margin-bottom: 32px; }
.om-cm-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.om-cm-card { display: flex; flex-direction: column; padding: 18px 20px 22px; background: var(--surface); border-radius: var(--r-card); transition: transform 300ms var(--ease); }
.om-cm-card:nth-child(odd) { transform: rotate(-1deg); } .om-cm-card:nth-child(even) { transform: rotate(1deg); }
.om-cm-card:hover { transform: rotate(0) translateY(-6px); }
.om-cm-card img { width: 112px; height: 112px; object-fit: contain; margin: -4px 0 10px -6px; transition: transform 500ms var(--ease); }
.om-cm-card:hover img { transform: rotate(-8deg) scale(1.08); }
.om-cm-card h3 { font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 8px; }
.om-cm-card p { font-size: var(--step-small); color: var(--muted); flex: 1; }
.om-cm-card a { margin-top: 14px; font-weight: 700; text-decoration: none; }
.om-cm-card a:hover { text-decoration: underline; }
.om-cm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: om-step; }
.om-cm-steps li { position: relative; padding: 64px 22px 24px; border: 2px dashed color-mix(in srgb, var(--ink) 50%, transparent); border-radius: var(--r-card); counter-increment: om-step; }
.om-cm-steps li::before { content: counter(om-step); position: absolute; top: 18px; left: 22px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; }
.om-cm-steps h3 { font-size: var(--step-lead); letter-spacing: -0.03em; margin-bottom: 8px; }
.om-cm-steps p { font-size: var(--step-small); color: var(--muted); }
.om-cm-steps__cta { margin: 24px 0 0; }
.om-cm-new__row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.om-cm-new__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; flex: 1; }
.om-cm-new__list a { display: grid; justify-items: center; gap: 6px; width: 88px; text-align: center; text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.2; }
.om-cm-new__list img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); transition: transform 300ms var(--ease); } /* taste-skill-ignore: anello rosso attorno all'avatar */
.om-cm-new__list a:hover img { transform: translateY(-4px) rotate(-4deg); }
.om-cm-new__hello { display: flex; align-items: center; gap: 10px; margin: 0; max-width: 300px; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.om-cm-new__hello img { width: 80px; height: 80px; }
.om-cm-head--members { margin-bottom: 8px; }
/* elenco membri: figurine un po' storte, avatar con l'anello rosso */
html body .om-um .om-cm .um-members-grid .um-member { background: var(--surface) !important; border: 0 !important; border-radius: var(--r-card) !important; overflow: hidden; transform: rotate(-0.8deg); transition: transform 300ms var(--ease) !important; }
html body .om-um .om-cm .um-members-grid .um-member:nth-child(even) { transform: rotate(0.8deg); }
html body .om-um .om-cm .um-members-grid .um-member:hover { transform: rotate(0) translateY(-6px); }
html body .om-um .om-cm .um-member-photo img { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--ink) !important; } /* taste-skill-ignore: anello rosso */
html body .om-um .om-cm .um-members-filter-tag { border-radius: var(--r-pill) !important; background: var(--ink) !important; color: var(--bg) !important; }
/* elenco vuoto: Stampino con le sedie al posto del messaggio di Ultimate Member */
.om-cm-empty { display: none; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: -40px; }
.om-cm-empty img { width: 100%; } /* scena scontornata: si fonde con la pagina */
.om-cm-empty h3 { font-size: var(--step-head); letter-spacing: -0.04em; margin-bottom: 14px; }
.om-cm-empty p { color: var(--ink-strong); margin-bottom: 20px; }
.om-cm:has(.um-members-none) .om-cm-empty { display: grid; }
html body .om-cm .um-members-none { display: none !important; }
@media (max-width: 1000px) {
	.om-cm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.om-cm-hero, .om-cm-empty { grid-template-columns: 1fr; }
	.om-cm-hero__art { order: -1; }
}
@media (max-width: 640px) {
	.om-cm-cards, .om-cm-steps { grid-template-columns: 1fr; }
	.om-cm-card:nth-child(n) { transform: none; }
}

/* Partecipa: la sezione delle call (inc/pagine.php) */
.om-call-section { scroll-margin-top: 96px; }
.om-call-lead { font-size: var(--step-lead); line-height: 1.3; color: var(--ink-strong); margin-bottom: 28px; }
.om-text > .om-call-section, .om-call-section > .om-issue, .om-call-section > .om-calls { max-width: none; }

/* Archivio dei refusi: l'ultimo in grande, poi gli altri per anno, il pilota in fondo */
.om-issue-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin: 32px 0 clamp(56px, 7vw, 96px); max-width: none !important; }
.om-issue-hero__cover { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-img); background: var(--ink); transform: rotate(-1.5deg); transition: transform 400ms var(--ease); }
.om-issue-hero__cover:hover { transform: rotate(0) scale(1.01); }
.om-issue-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.om-issue-hero__cover span { font-weight: 800; font-size: clamp(6rem, 3rem + 8vw, 12rem); letter-spacing: -0.06em; color: var(--bg); }
.om-issue-hero__kicker { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-size: var(--step-small); font-weight: 700; transform: rotate(-2deg); }
.om-issue-hero h2 { font-size: var(--step-head); line-height: 0.95; margin: 4px 0 10px; }
.om-issue-hero h2 a { text-decoration: none; }
.om-issue-hero h2 a:hover { text-decoration: underline; }
.om-issue-hero__excerpt { font-size: var(--step-lead); line-height: 1.3; color: var(--ink-strong); margin: 16px 0 24px; }
.om-issues__year { display: flex; align-items: center; gap: 16px; font-size: var(--step-lead); letter-spacing: -0.03em; margin: 48px 0 0; max-width: none !important; }
.om-issues__year::after { content: ""; flex: 1; border-top: 1.5px dashed color-mix(in srgb, var(--ink) 45%, transparent); }
.om-issues--pilot .om-issue-card { max-width: 300px; }
@media (max-width: 800px) { .om-issue-hero { grid-template-columns: 1fr; } .om-issue-hero__cover { max-width: 420px; } }
