/* Numero Zero — un foglio stampato a due colori: blu notte e rosa, come una risograph. */

:root {
	--bg: #1a2039;
	--surface: #232b4d;
	--ink: #f9a3c0;
	--ink-strong: #ffd3e2;
	--muted: #d7a6ba;
	--accent: #f9a3c0;
	--accent-ink: #1a2039;

	--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, foto, copertina */
	--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(--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-strong); }
:focus-visible { outline: 3px solid var(--ink-strong); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
h1, h2, h3 { margin: 0; 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;
}
.nz-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 */
.nz-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);
}
.nz-btn:hover, .gs-nl button:hover { background: var(--ink-strong); color: var(--accent-ink); }
.nz-btn:active, .gs-nl button:active { transform: translateY(2px); }
.nz-btn--small { min-height: 44px; padding: 0 1em; font-size: var(--step-small); }
.nz-btn--line { background: transparent; color: var(--ink) !important; border: 2px solid var(--ink); }
.nz-btn:focus-visible, .nz-chip input:focus-visible + span { outline-offset: 4px; border-radius: var(--r-pill); }
.nz-btn--line:hover { background: var(--ink); color: var(--bg) !important; }

/* Testata: resta in alto mentre si scorre, più compatta dopo i primi pixel */
.nz-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);
}
.nz-top.is-stuck { padding-top: 12px; padding-bottom: 12px; background: color-mix(in srgb, var(--bg) 94%, var(--ink)); }
.nz-top.is-stuck .nz-wordmark { font-size: 1.15rem; }
.nz-wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.05em; text-decoration: none; }
.nz-nav ul, .nz-account { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.nz-nav a, .nz-account a:not(.nz-btn) { text-decoration: none; padding: 10px 0; display: inline-block; }
.nz-nav a:hover, .nz-account a:not(.nz-btn):hover, .nz-nav a[aria-current="page"] { text-decoration: underline; }
.nz-right { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.nz-nav ul { justify-content: center; }
.nz-lang a { text-decoration: none; padding: 10px 0; display: inline-block; }
.nz-menu-toggle { display: none; }

@media (min-width: 1321px) { .nz-nav ul { flex-wrap: nowrap; white-space: nowrap; } }
@media (max-width: 1320px) {
	.nz-top { grid-template-columns: 1fr auto; }
	.nz-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;
	}
	.nz-menu { display: none; grid-column: 1 / -1; padding-top: 24px; }
	.nz-menu.is-open { display: block; }
	.nz-menu .nz-nav ul { flex-direction: column; gap: 0; font-size: var(--step-lead); }
	.nz-right { grid-column: 1 / -1; display: none; padding-top: 16px; }
	.nz-top.is-open .nz-right { display: flex; flex-wrap: wrap; }
}

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

/* La copertina generativa del numero zero */
.nz-cover { margin: 0; }
.nz-cover__art { position: relative; aspect-ratio: 4 / 5; background: var(--ink); overflow: hidden; border-radius: var(--r-card); max-height: 68svh; margin: 0 auto; }
.nz-cover__art svg { width: 100%; height: 100%; }
.nz-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; }
.nz-cover figcaption { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.nz-cover__pick { border: 0; margin: 20px 0 0; padding: 0; }
.nz-cover__pick legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: var(--step-small); }
.nz-cover__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.nz-chip { position: relative; }
.nz-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nz-chip span {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
	border: 2px solid var(--ink); border-radius: var(--r-pill); font-weight: 600; font-size: var(--step-small); cursor: pointer;
	transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.nz-chip input:checked + span { background: var(--ink); color: var(--bg); }
.nz-chip input:focus-visible + span { outline: 3px solid var(--ink-strong); outline-offset: 3px; }

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

.nz-head { font-size: var(--step-head); margin-bottom: 40px; }
.nz-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 */
.nz-stairs { list-style: none; margin: 0; padding: var(--gap-section) var(--margin) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nz-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; }
.nz-stairs li:last-child { background: var(--ink); color: var(--bg); }
.nz-stairs h2, .nz-stairs h3 { font-size: clamp(2rem, 1rem + 2.6vw, 3.75rem); line-height: 1; }
.nz-stairs li:last-child h2, .nz-stairs li:last-child h3 { color: var(--bg); }
.nz-stairs p { max-width: 42ch; margin: 0; color: var(--muted); }
.nz-stairs li:last-child p { color: var(--bg); }
.nz-stairs-more { padding: 32px var(--margin) 0; margin: 0; text-align: center; }
@media (max-width: 700px) {
	.nz-stairs { grid-template-columns: 1fr; }
	.nz-stairs li { min-height: 0; }
	.nz-stairs h2, .nz-stairs h3 { font-size: 8.4vw; }
}

/* Mosaico senza fughe: foto e campi pieni */
.nz-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(140px, 18vw, 280px); gap: 10px; margin: var(--gap-section) var(--margin) 0; }
.nz-mosaic > * { margin: 0; position: relative; overflow: hidden; background: var(--ink); border-radius: var(--r-card); }
.nz-mosaic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; transition: transform 1200ms var(--ease); }
.nz-mosaic figure:hover img { transform: scale(1.04); }
.nz-mosaic figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 14px; background: var(--bg); color: var(--ink); font-size: var(--step-small); border-radius: var(--r-pill); }
.nz-mosaic .w2 { grid-column: span 2; } .nz-mosaic .w3 { grid-column: span 3; } .nz-mosaic .h2 { grid-row: span 2; }
.nz-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; }
.nz-tile--dark { background: var(--surface) !important; color: var(--ink); }
@media (max-width: 700px) {
	.nz-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
	.nz-mosaic .w2, .nz-mosaic .w3 { grid-column: span 2; }
	.nz-mosaic .h2 { grid-row: span 1; }
}

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

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

/* Campi pieni */
.nz-field { margin: var(--gap-section) var(--margin) 0; padding: clamp(56px, 7vw, 112px) clamp(24px, 5vw, 80px); border-radius: var(--r-band); }
.nz-field > * { max-width: var(--measure); margin-left: auto !important; margin-right: auto !important; }
.nz-field--ink { background: var(--ink); color: var(--bg); }
.nz-field--ink a { color: var(--bg); }
.nz-field--ink :focus-visible { outline-color: var(--bg); }
.nz-field--surface { background: var(--surface); }
.nz-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; }
.nz-note-text { max-width: 60ch; margin-top: 32px; }

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

/* Numeri e call */
.nz-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); }
.nz-issue__no { margin: 0; font-weight: 800; font-size: clamp(7rem, 4rem + 10vw, 14rem); line-height: 0.75; letter-spacing: -0.06em; }
.nz-issue h2 { font-size: var(--step-head); }
.nz-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) { .nz-issue { grid-template-columns: 1fr; padding: 24px; } }

.nz-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: #1a2039; font-size: var(--step-small); max-width: none; }
.nz-admin-note strong { display: block; margin-bottom: 4px; }

/* Chiusura: i colori si rovesciano */
.nz-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); }
.nz-close h2 { font-size: clamp(3rem, 8.4vw, 9rem); line-height: 0.9; letter-spacing: -0.05em; }
@media (max-width: 640px) { .nz-close h2 { font-size: 11vw; } }
.nz-close__foot { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.nz-close__foot p { max-width: 40ch; font-size: var(--step-lead); line-height: 1.3; }
.nz-close .nz-btn { background: var(--bg); color: var(--ink) !important; min-height: 56px; }
.nz-close .nz-btn:hover { background: var(--surface); }
.nz-close :focus-visible { outline-color: var(--bg); }
@media (max-width: 640px) { .nz-close__foot { grid-template-columns: 1fr; } .nz-close .nz-btn { width: 100%; } }

/* 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: #4a3a55; 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 */
.nz-foot { min-height: 60svh; display: grid; grid-template-rows: auto 1fr auto; gap: 40px; padding: 48px var(--margin) 24px; background: var(--bg); }
.nz-foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: var(--step-small); overflow-wrap: anywhere; }
.nz-foot__cols h2 { font-size: var(--step-body); letter-spacing: -0.01em; margin-bottom: 10px; color: var(--ink-strong); }
.nz-foot__cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.nz-foot__cols a { text-decoration: none; } .nz-foot__cols a:hover { text-decoration: underline; }
.nz-foot__word { display: inline-block; font-weight: 800; letter-spacing: -0.06em; line-height: 0.8; font-size: 15.4vw; white-space: nowrap; margin: 0; }
.nz-foot__legal { font-size: var(--step-small); color: var(--muted); }
.nz-foot__legal a { color: var(--muted); }
@media (max-width: 800px) { .nz-foot__cols { grid-template-columns: 1fr 1fr; } }

/* Pagine della community (Ultimate Member): centrate, moduli e testo sulla stessa larghezza */
.nz-um { padding: clamp(48px, 7vw, 100px) var(--margin) var(--gap-section); max-width: calc(var(--measure) + 2 * var(--margin)); margin: 0 auto; }
.nz-um > .nz-title, .nz-um .gs-um-intro { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.nz-um .gs-um-intro { margin-bottom: 40px; }
.nz-um .gs-um-intro .gs-title, .nz-um > .nz-title { font-size: clamp(2.75rem, 1rem + 5.4vw, 6rem); line-height: 0.9; letter-spacing: -0.05em; margin-bottom: 24px; }
.nz-um .gs-um-intro .gs-lead { font-size: var(--step-lead); line-height: 1.3; color: var(--ink-strong); }
html body .nz-um .gs-um-steps { margin: 24px 0 0; padding: 0; display: flex !important; flex-wrap: wrap; justify-content: center; gap: 8px; }
html body .nz-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 .nz-um .gs-um-steps li::before { position: static !important; margin: 0 !important; flex: none; }
html body .nz-um .um { margin-left: auto !important; margin-right: auto !important; width: auto !important; }
html body .nz-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 .nz-rise { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
	.js .nz-rise.is-in { opacity: 1; transform: none; }
	.js .nz-hero h1 .nz-line > span { transform: translateY(105%); transition: transform 900ms var(--ease); }
	.js .nz-hero h1 .nz-line:nth-child(2) > span { transition-delay: 110ms; }
	.js.is-loaded .nz-hero h1 .nz-line > span { transform: none; }
	.js .nz-hero__lead, .js .nz-hero__actions { opacity: 0; transition: opacity 600ms var(--ease) 500ms; }
	.js.is-loaded .nz-hero__lead, .js.is-loaded .nz-hero__actions { opacity: 1; }
	.nz-cover__art svg * { transition: transform 900ms var(--ease), opacity 600ms var(--ease); }
}

.nz-photo { margin: 56px 0 0; }
.nz-photo__art { background: var(--ink); }
.nz-photo__art img { width: 100%; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; }
.nz-photo figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }

/* Pagina aperta in background: tutto visibile, senza animazione */
.nz-static .nz-rise, .nz-static .nz-hero__lead, .nz-static .nz-hero__actions { opacity: 1 !important; transform: none !important; transition: none !important; }
.nz-static .nz-hero h1 .nz-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: rgba(26, 32, 57, 0.2) !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); }
.nz-photo__art { border-radius: var(--r-card); overflow: hidden; }
.nz-cover__opts { justify-content: center; }
.nz-cover__pick legend, .nz-cover figcaption { text-align: center; width: 100%; }
.nz-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; }

/* Linea di caricamento in alto */
.nz-loadbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; }
.nz-loadbar span { display: block; height: 100%; width: 100%; background: var(--ink-strong); border-radius: 0 var(--r-pill) var(--r-pill) 0; transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.nz-loadbar.is-on span { opacity: 1; animation: nz-load 1.6s var(--ease) forwards; }
.nz-loadbar.is-done span { opacity: 0; transform: scaleX(1); transition: transform 200ms var(--ease), opacity 400ms ease 200ms; }
@keyframes nz-load { from { transform: scaleX(0); } 40% { transform: scaleX(0.55); } to { transform: scaleX(0.85); } }

/* Torna su */
.nz-totop {
	position: fixed; right: max(16px, var(--margin)); bottom: 24px; z-index: 40;
	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);
}
.nz-totop.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nz-totop:hover { background: var(--ink-strong); color: var(--accent-ink); }
.nz-totop:focus-visible { outline-offset: 4px; }

/* Pannello di accessibilità */
.nz-a11y { position: relative; }
.nz-a11y__toggle {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
	background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-pill);
	font: 600 var(--step-small)/1 var(--font); cursor: pointer;
}
.nz-a11y__toggle[aria-expanded="true"], .nz-a11y__toggle:hover { background: var(--ink); color: var(--bg); }
.nz-a11y__panel {
	position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: min(320px, calc(100vw - 32px));
	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 */
}
.nz-a11y__panel[hidden] { display: none; }
.nz-a11y__title { margin: 0 0 4px; font-weight: 800; font-size: var(--step-body); color: var(--ink-strong); }
.nz-a11y__opt, .nz-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;
}
.nz-a11y__opt:hover { background: color-mix(in srgb, var(--bg) 80%, var(--ink)); }
.nz-a11y__dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; }
.nz-a11y__opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.nz-a11y__opt[aria-pressed="true"] .nz-a11y__dot { background: currentColor; box-shadow: inset 0 0 0 3px var(--ink); /* taste-skill-ignore: segno della scelta attiva */ }
.nz-a11y__reset { justify-content: center; background: transparent; border: 2px solid var(--muted); color: var(--muted); margin-top: 4px; }
@media (max-width: 1320px) {
	.nz-a11y__panel { position: static; width: 100%; margin-top: 10px; box-shadow: none; /* taste-skill-ignore: toglie l ombra sul telefono */ }
	.nz-a11y { width: 100%; }
	.nz-top.is-open { max-height: 100svh; overflow-y: auto; }
}

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

/* Schermi medi: il pulsante di accessibilità diventa solo icona (il nome resta per i lettori di schermo) */
.nz-account { flex-wrap: nowrap; white-space: nowrap; }
@media (min-width: 1321px) and (max-width: 1620px) {
	.nz-a11y__toggle { width: 44px; padding: 0; justify-content: center; }
	.nz-a11y__toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
html.nz-a-big .nz-nav ul { gap: 4px 14px; }

/* Assistenza: pulsante in basso a sinistra (computer) e pannello d'aiuto */
.nz-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);
}
.nz-help__toggle:hover, .nz-help__toggle[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.nz-help__toggle:active { transform: translateY(2px); }
.nz-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 */
}
.nz-help__panel[hidden] { display: none; }
.nz-help__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 12px 24px; }
.nz-help__title { font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.1; color: var(--ink-strong); }
.nz-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; }
.nz-help__close:hover { background: var(--ink); color: var(--bg); }
.nz-help__body { padding: 4px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.nz-help__sub { font-size: var(--step-body); letter-spacing: -0.01em; margin: 18px 0 10px; color: var(--ink-strong); }
.nz-help__faq { display: grid; gap: 6px; }
.nz-help__faq details { background: var(--bg); border-radius: var(--r-field); }
.nz-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; }
.nz-help__faq summary::-webkit-details-marker { display: none; }
.nz-help__faq summary::after { content: "+"; font-weight: 800; }
.nz-help__faq details[open] summary::after { content: "–"; }
.nz-help__faq details p { margin: 0; padding: 0 16px 12px; font-size: var(--step-small); color: var(--muted); }
.nz-help__faq details a { color: var(--ink-strong); }
.nz-help__form { display: grid; gap: 12px; }
.nz-help__form label { display: grid; gap: 6px; font-size: var(--step-small); font-weight: 600; color: var(--ink-strong); }
.nz-help__form input[type="text"], .nz-help__form input[type="email"], .nz-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);
}
.nz-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; }
.nz-help__form .nz-help__consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink); }
.nz-help__consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.nz-help__form .nz-btn { justify-self: start; }
.nz-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); }
.nz-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) {
	.nz-help__toggle { display: none; }
	.nz-help__panel { left: 0; right: 0; bottom: 0; top: 0; width: 100%; max-height: none; border-radius: 0; }
}
