/* ═════════════════════════════════════════════════════════════════
   Marsili — v2 "Editorial heritage"
   ─────────────────────────────────────────────────────────────────
   Stack: Fraunces (serif display, opsz) · Inter (sans) · JetBrains Mono
   Palette: deep teal + warm off-white + brass accent
   Approach: editorial grid · hairlines · numbered sections · subtle reveal
   ═════════════════════════════════════════════════════════════════ */

:root {
	/* — Color tokens ——————————————————————————————————— */
	--ink:        #0B1A1F;
	--ink-2:      #15292F;
	--teal:       #1F6571;
	--teal-2:     #164953;
	--teal-deep:  #0A2A30;
	--brass:      #B6892C;
	--brass-2:    #8A6620;
	--paper:      #F6F2EA;          /* warm off-white */
	--paper-2:    #EFE9DC;
	--paper-tint: #FBF8F2;
	--line:       #D9D2C2;
	--line-2:     #E8E1D0;
	--muted:      #6B6F73;
	--surface:    #FFFFFF;

	/* — Type ———————————————————————————————————————————— */
	--serif: "Fraunces", "Times New Roman", Georgia, serif;
	--sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono:  "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

	/* — Geometry ——————————————————————————————————————— */
	--max:       1320px;
	--gutter:    clamp(1.25rem, 3vw, 2.5rem);
	--section-y: clamp(5rem, 9vw, 8.5rem);
	--rule:      1px solid var(--line);
	--ease:      cubic-bezier(0.22, 1, 0.36, 1);
	--ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

	/* — Motion ————————————————————————————————————————— */
	--t-fast:   160ms;
	--t-base:   280ms;
	--t-slow:   600ms;
}

/* ─── Reset light ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "ss01", "cv11";
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 400; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--brass); color: var(--paper); }

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

.skip {
	position: fixed; top: -100px; left: 1rem;
	background: var(--ink); color: var(--paper);
	padding: 0.6rem 1rem;
	font-family: var(--mono); font-size: 0.8rem;
	z-index: 9999;
	transition: top var(--t-base);
}
.skip:focus { top: 1rem; }

/* ─── Section primitives ─────────────────────────────────────── */
.section__wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding-inline: var(--gutter);
}
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--split {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: end;
}
.section__num {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--brass);
	margin: 0 0 1rem;
	font-weight: 500;
}
.section__title {
	font-family: var(--serif);
	font-weight: 380;
	font-variation-settings: "opsz" 96, "SOFT" 10;
	font-size: clamp(2.2rem, 5.2vw, 4.2rem);
	letter-spacing: -0.035em;
	color: var(--ink);
	line-height: 1.02;
	max-width: 22ch;
}
.section__title em {
	font-style: italic;
	font-variation-settings: "opsz" 144, "SOFT" 50;
	color: var(--teal);
}
.section__lede {
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.6;
	max-width: 48ch;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.95rem 1.4rem;
	border-radius: 1px;
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-base);
	border: 1px solid transparent;
	cursor: pointer;
}
.btn svg { transition: transform var(--t-base); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--teal); }
.btn--ghost {
	background: transparent;
	color: var(--paper);
	border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--paper); }

/* CTA secondaria su hero scuro: senza questa regola l'<a> prende il colore-link
   teal di theme.json e risulta poco leggibile. Testo chiaro + bordo sottile. */
.btn--ghost-light {
	background: transparent;
	color: var(--paper);
	border-color: rgba(246, 242, 234, 0.45);
}
.btn--ghost-light:hover {
	background: rgba(246, 242, 234, 0.1);
	border-color: var(--paper);
	color: var(--paper);
}

.link-arrow {
	display: inline-flex;
	align-items: baseline;
	gap: 0.5rem;
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink);
	font-weight: 600;
	border-bottom: 1px solid currentColor;
	padding-bottom: 0.2rem;
	transition: color var(--t-base);
}
.link-arrow span { transition: transform var(--t-base); display: inline-block; }
.link-arrow:hover { color: var(--teal); }
.link-arrow:hover span { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: transparent;
	color: var(--paper);
	transition: background var(--t-base), color var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
	border-bottom: 1px solid transparent;
}
.header[data-scrolled="true"] {
	background: var(--paper);
	color: var(--ink);
	border-bottom-color: var(--line);
}
.header__wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 1.1rem var(--gutter);
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	/* row-gap 0: wpautop inietta un <p> vuoto come 4° figlio → 2ª riga griglia;
	   con row-gap a 0 la riga fantasma non gonfia la barra e il contenuto resta
	   centrato verticalmente. column-gap 1rem fra logo/menu/tools preservato. */
	gap: 0 1rem;
	transition: padding var(--t-base);
}
.header__brand { display: inline-flex; align-items: center; }
.header__brand img {
	height: 60.5px;
	width: auto;
	display: block;
	filter: brightness(0) invert(1);
	transition: filter var(--t-base), height var(--t-base);
}
.header[data-scrolled="true"] .header__brand img {
	filter: none;
	height: 46px;
}
/* Shrink-on-scroll: header più compatto quando scrollato (replica vecchio sito). */
.header[data-scrolled="true"] .header__wrap {
	padding-top: 0.55rem;
	padding-bottom: 0.55rem;
}
.header__nav {
	display: flex;
	justify-content: center;
	gap: clamp(0.7rem, 1.6vw, 1.5rem);
	font-family: var(--sans);
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.01em;
}
.header__nav a {
	padding: 0.3rem 0;
	position: relative;
	opacity: 0.85;
	transition: opacity var(--t-fast);
}
.header__nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -2px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--t-base) var(--ease);
}
.header__nav a:hover { opacity: 1; }
.header__nav a:hover::after,
.header__nav a[aria-current="page"]::after {
	transform: scaleX(1);
}
.header__tools {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.lang {
	display: inline-flex;
	gap: 0.4rem;
	font-family: var(--mono);
	font-size: 0.74rem;
	letter-spacing: 0.1em;
	opacity: 0.7;
}
.lang a[aria-current="true"] { opacity: 1; font-weight: 600; }
/* IT/EN seguono il colore dell'header (bianco su hero scuro, ink su header chiaro).
   Senza questa regola ereditano il colore-link globale teal di theme.json e
   spariscono sugli sfondi scuri. */
.header .lang a { color: inherit; }
.icon-btn {
	width: 32px; height: 32px;
	display: inline-flex;
	align-items: center; justify-content: center;
	opacity: 0.8;
	transition: opacity var(--t-fast);
}
.icon-btn:hover { opacity: 1; }
.header__cta {
	font-family: var(--mono);
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	border: 1px solid currentColor;
	padding: 0.55rem 1rem;
	border-radius: 1px;
	transition: background var(--t-base), color var(--t-base);
	white-space: nowrap;
}
.header__cta:hover {
	background: var(--brass);
	color: var(--ink);
	border-color: var(--brass);
}
.burger {
	display: none;
	width: 36px; height: 36px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
}
.burger span {
	display: block;
	width: 22px; height: 1.5px;
	background: currentColor;
	transition: transform var(--t-base);
}
/* Lingua + CTA mostrati solo dentro il drawer mobile (vedi @media 960). */
.header__nav-mobile-extra { display: none; }

/* ═══════════════════════════════════════════════════════════════
   HERO — editorial cinematic
   ═══════════════════════════════════════════════════════════════ */
.hero {
	position: relative;
	height: 100svh;
	min-height: 640px;
	max-height: 980px;
	color: var(--paper);
	overflow: hidden;
	isolation: isolate;
	display: flex;
	flex-direction: column;
}

/* Layered background: photo + grain noise + cinematic veil */
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--teal-deep); }
.hero__photo {
	position: absolute; inset: 0;
	background: url("../images/home/timone_mod01.jpg") center / cover no-repeat;
	filter: saturate(0.78) contrast(1.08) brightness(0.95);
	transform: scale(1.04);
	animation: heroDrift 28s ease-in-out infinite alternate;
}
@keyframes heroDrift {
	from { transform: scale(1.04) translate3d(0, 0, 0); }
	to   { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}
.hero__grain {
	position: absolute; inset: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
	opacity: 0.18;
	mix-blend-mode: overlay;
	pointer-events: none;
}
.hero__veil {
	position: absolute; inset: 0;
	background:
		radial-gradient(120% 90% at 35% 55%, transparent 0%, rgba(10,42,48,0.45) 55%, rgba(10,26,31,0.85) 100%),
		linear-gradient(90deg, rgba(10,26,31,0.92) 0%, rgba(10,26,31,0.55) 38%, transparent 72%),
		linear-gradient(180deg, rgba(10,26,31,0.50) 0%, transparent 30%, rgba(10,26,31,0.78) 100%);
}

/* Giant "1957" Fraunces watermark, low-opacity brass, kinetic feel */
.hero__watermark {
	position: absolute;
	right: clamp(-2rem, -3vw, -1rem);
	bottom: clamp(-3rem, -5vw, -2rem);
	z-index: 0;
	pointer-events: none;
	line-height: 0.85;
	font-family: var(--serif);
	font-weight: 300;
	font-variation-settings: "opsz" 144, "SOFT" 100;
	font-size: clamp(12rem, 30vw, 28rem);
	letter-spacing: -0.06em;
	color: rgba(182, 137, 44, 0.10);
	mix-blend-mode: screen;
	user-select: none;
}
.hero__watermark span { display: inline-block; }

/* Editorial grid: content left (60%), index sidebar right (40%) */
.hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--max);
	width: 100%;
	margin: 0 auto;
	padding: clamp(6rem, 11vh, 8rem) var(--gutter) clamp(4.5rem, 7vh, 6rem);
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: end;
	flex: 1;
	min-height: 0;
}

/* — Content lead block — */
.hero__lead { max-width: 38rem; }
.hero__rule {
	width: 64px;
	height: 1px;
	background: var(--brass);
	margin-bottom: 1.5rem;
	transform-origin: left;
	transform: scaleX(0);
	transition: transform 700ms var(--ease) 200ms;
}
.hero__rule[data-revealed="true"] { transform: scaleX(1); }
.hero__kicker {
	display: inline-flex; flex-wrap: wrap;
	align-items: center;
	gap: 0.7rem 0.9rem;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(246, 242, 234, 0.78);
	margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
}
.hero__kicker > span:first-child { color: var(--brass); }
.hero__kicker-dot {
	width: 4px; height: 4px;
	background: rgba(246, 242, 234, 0.45);
	border-radius: 50%;
}

/* Title: per-line mask reveal */
.hero__title {
	display: flex;
	flex-direction: column;
	gap: clamp(0.2rem, 0.7vw, 0.6rem);
	font-family: var(--serif);
	font-weight: 320;
	font-variation-settings: "opsz" 144, "SOFT" 60;
	font-size: clamp(3rem, 7.5vw, 6.5rem);
	letter-spacing: -0.045em;
	line-height: 0.92;
	color: var(--paper);
	margin: 0;
}
.hero__line {
	display: block;
	overflow: hidden;
	padding-top: 0.04em;
	padding-bottom: 0.22em;
}
.hero__line > span {
	display: block;
	transform: translateY(110%);
	transition: transform 1100ms var(--ease);
}
.hero__line[data-revealed="true"] > span { transform: translateY(0); }
.hero__title em {
	font-style: italic;
	color: var(--brass);
	font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero__lede {
	font-size: clamp(0.98rem, 1.05vw, 1.10rem);
	line-height: 1.5;
	letter-spacing: -0.005em;
	color: rgba(246, 242, 234, 0.82);
	max-width: 46ch;
	margin: clamp(1.25rem, 2.5vh, 2rem) 0 0;
}
.hero__cta {
	display: flex; flex-wrap: wrap; gap: 0.75rem;
	margin-top: clamp(1.5rem, 3vh, 2.25rem);
}

/* — Side index (right column) — */
.hero__index {
	border-top: 1px solid rgba(246, 242, 234, 0.15);
	padding-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	color: rgba(246, 242, 234, 0.85);
	justify-self: end;
	width: 100%;
	max-width: 24rem;
}
.hero__index-label {
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--brass);
	margin-bottom: 0.5rem;
}
.hero__index-list { display: flex; flex-direction: column; }
.hero__index-list li {
	display: block;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(246, 242, 234, 0.08);
	font-size: 0.88rem;
	transition: padding-left var(--t-base), color var(--t-base);
}
.hero__index-list li:last-child { border-bottom: 0; }
.hero__index-list li:hover { padding-left: 0.5rem; color: var(--paper); }
.hero__index-num {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	color: rgba(246, 242, 234, 0.45);
	font-weight: 600;
}
.hero__index-name { letter-spacing: -0.005em; color: var(--paper); }

/* — Corner mark (bottom-left editorial number) — */
.hero__corner {
	position: absolute;
	left: var(--gutter);
	bottom: 2rem;
	z-index: 1;
	display: inline-flex; gap: 0.4rem;
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	color: rgba(246, 242, 234, 0.55);
}
.hero__corner span:first-child { color: var(--brass); }

/* — Scroll indicator: animated vertical line — */
.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 2rem;
	transform: translateX(-50%);
	z-index: 1;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(246, 242, 234, 0.7);
	transition: color var(--t-base);
}
.hero__scroll:hover { color: var(--brass); }
.hero__scroll-line {
	position: relative;
	display: block;
	width: 1px;
	height: 56px;
	background: rgba(246, 242, 234, 0.18);
	overflow: hidden;
}
.hero__scroll-line::before {
	content: "";
	position: absolute;
	left: 0; top: 0;
	width: 100%;
	height: 40%;
	background: var(--brass);
	animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
	0%   { transform: translateY(-100%); opacity: 0; }
	35%  { opacity: 1; }
	100% { transform: translateY(260%); opacity: 0; }
}

/* — Hero responsive tweaks — */
@media (max-width: 960px) {
	.hero__inner { grid-template-columns: 1fr; gap: 3rem; align-items: start; }
	.hero__index { max-width: none; }
	.hero__watermark { font-size: clamp(10rem, 28vw, 18rem); right: -1rem; bottom: -2rem; }
	.hero__corner { display: none; }
}
@media (max-width: 640px) {
	.hero__title { font-size: clamp(2.75rem, 14vw, 4.5rem); line-height: 0.95; }
	.hero__index-list li { font-size: 0.85rem; }
	.hero__scroll { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   FIGURES (USP)
   ═══════════════════════════════════════════════════════════════ */
.figures {
	padding: calc(var(--section-y) * 0.6) 0;
	background: var(--paper);
	border-top: 1px solid transparent;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.figures .section__head { margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.figures .section__title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
/* Heritage watermark: timone Marsili — filigrana editoriale */
.figures::before {
	content: "";
	position: absolute;
	z-index: 0;
	right: clamp(-15rem, -10vw, -6rem);
	top: 50%;
	transform: translateY(-50%);
	width: clamp(36rem, 70vmin, 64rem);
	aspect-ratio: 1;
	background: url("../images/home/timone.png") center / contain no-repeat;
	opacity: 0.06;
	pointer-events: none;
	filter: saturate(0.5);
	mix-blend-mode: multiply;
}
.figures .section__wrap { position: relative; z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
	.figures::before {
		animation: heritage-rotate 120s linear infinite;
	}
}
@keyframes heritage-rotate {
	from { transform: translateY(-50%) rotate(0deg); }
	to   { transform: translateY(-50%) rotate(360deg); }
}
.figures__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: clamp(1.5rem, 3vw, 2.5rem);
}
.figure {
	padding-top: 1.1rem;
	border-top: 1px solid var(--line);
	position: relative;
}
.figure::before {
	content: "";
	position: absolute;
	top: -1px; left: 0;
	width: 28px;
	height: 1px;
	background: var(--ink);
}
.figure__num {
	display: block;
	font-family: var(--serif);
	font-weight: 320;
	font-variation-settings: "opsz" 144, "SOFT" 50;
	font-size: clamp(2.6rem, 5.2vw, 4.4rem);
	letter-spacing: -0.05em;
	line-height: 0.9;
	color: var(--ink);
	margin-bottom: 0.55rem;
}
.figure__num small {
	font-size: 0.45em;
	color: var(--muted);
	font-style: italic;
	font-weight: 350;
	letter-spacing: -0.02em;
	margin-left: 0.05em;
}
.figure__label {
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink);
	margin-bottom: 0.3rem;
	font-weight: 600;
}
.figure__desc {
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--muted);
	max-width: 26ch;
}
.figures__values {
	margin-top: clamp(1.8rem, 3.6vw, 3rem);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.1rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
	font-size: 0.86rem;
	color: var(--ink-2);
}
.figures__values li {
	display: flex;
	align-items: baseline;
	gap: 0.65rem;
	line-height: 1.55;
}
.figures__values .dot {
	width: 6px; height: 6px;
	background: var(--ink);
	border-radius: 50%;
	flex-shrink: 0;
	transform: translateY(-2px);
}
.figures__values .dot.rina { background: var(--brass); width: 8px; height: 8px; }
.figures__values strong { font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   CATALOGUE
   ═══════════════════════════════════════════════════════════════ */
.catalogue {
	padding: var(--section-y) 0;
	background: var(--paper-tint);
	border-top: 1px solid var(--line);
}
.catalogue__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}
.cat-card {
	background: var(--surface);
	padding: 2rem 2rem 2.25rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	position: relative;
	transition: background var(--t-base);
	min-height: 360px;
	color: var(--ink);
}
.cat-card__media {
	aspect-ratio: 4 / 3;
	background: var(--paper);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cat-card__media img {
	width: 100%; height: 100%;
	object-fit: contain;
	padding: 1rem;
	transition: transform var(--t-slow) var(--ease), filter var(--t-base);
	mix-blend-mode: multiply;
}
.cat-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.cat-card__num {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	color: var(--brass);
	font-weight: 600;
}
.cat-card__num--accent { color: var(--paper); }
.cat-card h3 {
	font-family: var(--serif);
	font-weight: 380;
	font-variation-settings: "opsz" 36;
	font-size: 1.55rem;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: var(--ink);
}
.cat-card p {
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.55;
}
.cat-card__cta {
	position: absolute;
	right: 1.5rem; bottom: 1.5rem;
	width: 36px; height: 36px;
	display: inline-flex;
	align-items: center; justify-content: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	font-family: var(--mono);
	color: var(--ink);
	transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-base);
}
.cat-card:hover { background: var(--paper); }
.cat-card:hover .cat-card__media img { transform: scale(1.04); }
.cat-card:hover .cat-card__cta {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
	transform: translate(4px, -4px);
}
.cat-card--cta {
	background: var(--ink);
	color: var(--paper);
	min-height: auto;
	justify-content: center;
}
.cat-card--cta h3 { color: var(--paper); }
.cat-card--cta p { color: rgba(246, 242, 234, 0.7); }
.cat-card--cta:hover { background: var(--teal); }
.cat-card--cta .link-arrow {
	color: var(--paper);
	border-bottom-color: var(--brass);
	align-self: flex-start;
	margin-top: 0.5rem;
}

/* ─── Catalogue v2 — soft monochrome teal ──────────────────────
   Card morbide, tutte tonalità teal, solo titolo. ~15% più compatta. */
.catalogue {
	padding: calc(var(--section-y) * 0.85) 0;
}
.catalogue .section__head {
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.catalogue__grid {
	background: transparent;
	border: 0;
	gap: clamp(0.85rem, 1.7vw, 1.35rem);
}
.cat-card {
	background: var(--surface);
	border-radius: 16px;
	box-shadow: 0 1px 0 rgba(11, 26, 31, 0.04), 0 10px 26px -20px rgba(11, 26, 31, 0.18);
	padding: 1.2rem 1.2rem 1.35rem;
	min-height: 238px;
	overflow: hidden;
	transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.cat-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 8px rgba(11, 26, 31, 0.04), 0 30px 60px -28px rgba(11, 26, 31, 0.28);
	background: var(--surface);
}

.cat-card__media {
	background: #E8F0F1;
	border-radius: 12px;
	aspect-ratio: 5 / 4;
}
.cat-card__media img {
	mix-blend-mode: multiply;
	padding: 1rem;
}

.cat-card__body { gap: 0; }
.cat-card h3 {
	font-size: 1.25rem;
	line-height: 1.1;
	font-variation-settings: "opsz" 60, "SOFT" 30;
	color: var(--ink);
}

.cat-card__cta {
	border: 0;
	background: rgba(31, 101, 113, 0.12);
	color: var(--teal-2);
	right: 0.95rem;
	bottom: 0.95rem;
	width: 34px; height: 34px;
	font-size: 0.95rem;
	transition: background var(--t-base), color var(--t-base), transform var(--t-base) var(--ease);
}
.cat-card:hover .cat-card__cta {
	background: var(--teal-2);
	color: var(--paper);
	transform: translate(0, -2px);
}
.cat-card:hover .cat-card__media img { transform: scale(1.04); }

/* CTA card "Tutto il catalogo" — gradiente teal→ink */
.cat-card--cta {
	background: linear-gradient(140deg, var(--teal-2) 0%, var(--ink) 70%);
	color: var(--paper);
	box-shadow: 0 1px 0 rgba(11, 26, 31, 0.06), 0 16px 36px -20px rgba(11, 26, 31, 0.55);
}
.cat-card--cta:hover {
	background: linear-gradient(140deg, var(--teal) 0%, var(--teal-2) 100%);
}
.cat-card--cta h3 { color: var(--paper); }

@media (max-width: 640px) {
	.cat-card { min-height: auto; }
}

/* ─── Catalogue — variante "rich" per la pagina Prodotti ──────────
   Card con eyebrow + descrizione + chip sotto-categorie. */
.cat-card--rich {
	min-height: 0;
	padding: 1.1rem 1.2rem 4rem;
	gap: 1rem;
}
.cat-card--rich .cat-card__body { gap: 0.55rem; }
.cat-card__eyebrow {
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--teal-2);
	font-weight: 600;
}
.cat-card--rich h3 { margin-bottom: 0.15rem; }
.cat-card--rich p {
	color: var(--muted);
	font-size: 0.88rem;
	line-height: 1.5;
	margin-top: 0.1rem;
}
.cat-card__subcats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.32rem;
	margin-top: 0.65rem;
	list-style: none;
	padding: 0;
}
.cat-card__subcats li {
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-2);
	background: rgba(31, 101, 113, 0.08);
	padding: 0.28rem 0.55rem;
	border-radius: 999px;
	white-space: nowrap;
}
.cat-card--rich:hover .cat-card__subcats li {
	background: rgba(31, 101, 113, 0.14);
}
@media (max-width: 640px) {
	.cat-card--rich { padding-bottom: 3.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   SISTEMI
   ═══════════════════════════════════════════════════════════════ */
.systems {
	padding: calc(var(--section-y) * 0.6) 0;
	background: linear-gradient(140deg, var(--teal-2) 0%, var(--ink) 70%);
	color: var(--paper);
}
.systems .section__head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.systems .section__num { color: var(--brass); }
.systems .section__title { color: var(--paper); font-size: clamp(1.8rem, 4vw, 3rem); }
.systems .section__title em { color: var(--brass); }
.systems .section__lede { color: rgba(246, 242, 234, 0.7); font-size: 0.98rem; }

.systems__list {
	display: flex;
	flex-direction: column;
	border-top: 1px solid rgba(246, 242, 234, 0.12);
}
.sys-row {
	display: grid;
	grid-template-columns: 110px 1fr auto;
	align-items: center;
	gap: 1.4rem;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(246, 242, 234, 0.12);
	position: relative;
	transition: background var(--t-base);
}
.sys-row::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0; bottom: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
	opacity: 0;
	transition: opacity var(--t-base);
	pointer-events: none;
}
.sys-row:hover::before { opacity: 1; }
.sys-row__code {
	font-family: var(--mono);
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--brass);
	font-weight: 600;
}
.sys-row__main h3 {
	font-family: var(--serif);
	font-weight: 380;
	font-variation-settings: "opsz" 60;
	font-size: clamp(1.1rem, 1.8vw, 1.4rem);
	letter-spacing: -0.02em;
	color: var(--paper);
	margin-bottom: 0.15rem;
	line-height: 1.1;
}
.sys-row__main p {
	color: rgba(246, 242, 234, 0.72);
	font-size: 0.86rem;
	line-height: 1.45;
	max-width: 60ch;
}
.sys-row__link {
	width: 36px; height: 36px;
	display: inline-flex;
	align-items: center; justify-content: center;
	border: 1px solid rgba(246, 242, 234, 0.3);
	border-radius: 50%;
	font-family: var(--mono);
	font-size: 0.95rem;
	color: var(--paper);
	transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-base);
}
.sys-row__link:hover {
	background: var(--brass);
	color: var(--ink);
	border-color: var(--brass);
	transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   SEIPEM
   ═══════════════════════════════════════════════════════════════ */
.seipem {
	padding: calc(var(--section-y) * 0.6) 0;
	background: var(--paper);
}
.seipem__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 4.5vw, 3.5rem);
	align-items: center;
}
.seipem__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--paper-2);
}
.seipem__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease);
}
.seipem__media:hover img { transform: scale(1.03); }
.seipem__tag {
	position: absolute;
	left: 1rem; top: 1rem;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	padding: 0.35rem 0.75rem;
}
.seipem__copy { display: flex; flex-direction: column; gap: 0.85rem; align-items: flex-start; }
.seipem__copy .section__num { margin: 0; }
.seipem__logo {
	width: 160px;
	height: auto;
	margin: 0.1rem 0;
}
.seipem__copy .section__title {
	max-width: 18ch;
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.seipem__copy > p {
	color: var(--ink-2);
	font-size: 0.95rem;
	line-height: 1.55;
	max-width: 52ch;
}
.seipem__copy strong { color: var(--ink); font-weight: 600; }
.seipem__specs {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	width: 100%;
	max-width: 480px;
	border-top: 1px solid var(--line);
	margin: 0.4rem 0;
}
.seipem__specs > div {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 0.85rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--line);
	align-items: baseline;
}
.seipem__specs dt {
	font-family: var(--mono);
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--brass);
	font-weight: 600;
}
.seipem__specs dd {
	font-size: 0.86rem;
	color: var(--ink-2);
	line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   WORKS
   ═══════════════════════════════════════════════════════════════ */
.works {
	padding: calc(var(--section-y) * 0.6) 0;
	background: linear-gradient(140deg, var(--teal-2) 0%, var(--ink) 70%);
	color: var(--paper);
	border-top: 0;
}
.works .section__head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.works .section__num { color: var(--brass); }
.works .section__title { color: var(--paper); font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.works .section__title em { color: var(--brass); }
.works .section__lede { color: rgba(246, 242, 234, 0.7); font-size: 0.95rem; }
.works__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1rem, 2vw, 1.6rem);
}
.work__card {
	display: flex;
	flex-direction: column;
	gap: 1.05rem;
	color: var(--paper);
	transition: transform var(--t-base);
}
.work__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.05);
	position: relative;
	border-radius: 8px;
}
.work__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease) , filter var(--t-base);
}
.work__card:hover .work__media img {
	transform: scale(1.05);
	filter: saturate(1.1);
}
.work__body { display: flex; flex-direction: column; gap: 0.6rem; }
.work__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(246, 242, 234, 0.65);
}
.work__meta .sep { color: rgba(246, 242, 234, 0.25); }
.work__card h3 {
	font-family: var(--serif);
	font-weight: 380;
	font-variation-settings: "opsz" 72, "SOFT" 30;
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	letter-spacing: -0.025em;
	line-height: 1.08;
	color: var(--paper);
}
.work__body > p {
	color: rgba(246, 242, 234, 0.78);
	font-size: 0.85rem;
	line-height: 1.5;
	max-width: 56ch;
}
.work__body em { font-style: italic; color: var(--brass); font-weight: 500; }
.work__body strong { color: var(--paper); font-weight: 600; }
.work__specs {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	border-top: 1px solid rgba(246, 242, 234, 0.15);
}
.work__specs > div {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 0.7rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid rgba(246, 242, 234, 0.12);
	align-items: baseline;
	font-size: 0.82rem;
}
.work__specs dt {
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--brass);
	font-weight: 500;
}
.work__specs dd { color: var(--paper); font-weight: 500; }
.works .link-arrow {
	color: var(--paper);
	border-bottom-color: var(--brass);
}
.works .link-arrow:hover { color: var(--brass); }
.works__more {
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	text-align: center;
}
.works__more a {
	font-family: var(--mono);
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--paper);
	border-bottom: 1px solid var(--brass);
	padding-bottom: 0.25rem;
	font-weight: 600;
	transition: color var(--t-base), border-color var(--t-base);
}
.works__more a:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* ═══════════════════════════════════════════════════════════════
   VIDEO
   ═══════════════════════════════════════════════════════════════ */
.video {
	padding: var(--section-y) 0;
	background: var(--paper);
	border-top: 1px solid var(--line);
}
.video__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: center;
}
.video__head { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.video__head .section__num { margin: 0; }
.video__head .section__title { max-width: 18ch; margin: 0; }
.video__lead {
	color: var(--ink-2);
	font-size: 1.05rem;
	line-height: 1.65;
	max-width: 46ch;
	margin: 0;
}
.video__player { margin: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--ink);
	overflow: hidden;
	box-shadow: 0 30px 60px -28px rgba(11, 26, 31, 0.45);
}
.video__frame iframe {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	border: 0;
	display: block;
}
.video__caption {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-2);
	opacity: 0.65;
}
.btn--youtube {
	background: #c4302b;
	color: #FFFFFF;
}
.btn--youtube:hover { background: #a3271f; color: #FFFFFF; }
.btn--youtube svg { transition: transform var(--t-base); }
.btn--youtube:hover svg { transform: scale(1.08); }

@media (max-width: 960px) {
	.video__inner { grid-template-columns: 1fr; gap: 2.25rem; }
	.video__head .section__title { max-width: none; }
}

/* ═══════════════════════════════════════════════════════════════
   EDITORIAL DEPTH — grain texture · timone watermark · brass tick · microcopy
   ═══════════════════════════════════════════════════════════════ */

/* (B) Paper grain: SVG noise riutilizzabile, blend "multiply" sui fondi chiari */
:root {
	--grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0.07  0 0 0 0 0.11  0 0 0 0 0.13  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
}

/* Sezioni che ospitano effetti: serve stacking context + overflow */
.catalogue, .seipem, .works, .video {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.catalogue > .section__wrap,
.seipem > .section__wrap,
.works > .section__wrap,
.video > .section__wrap { position: relative; z-index: 2; }

/* Paper grain (B) — applicato via ::after così non confligge col timone su ::before */
.figures::after,
.catalogue::after,
.seipem::after,
.works::after,
.video::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--grain);
	background-size: 220px 220px;
	opacity: 0.07;
	mix-blend-mode: multiply;
	pointer-events: none;
	z-index: 1;
}

/* (C) Timone watermark — SEIPEM: in basso a sinistra, statico */
.seipem::before {
	content: "";
	position: absolute;
	z-index: 0;
	left: clamp(-14rem, -10vw, -6rem);
	bottom: clamp(-12rem, -8vw, -4rem);
	width: clamp(28rem, 55vmin, 46rem);
	aspect-ratio: 1;
	background: url("../images/home/timone.png") center / contain no-repeat;
	opacity: 0.045;
	pointer-events: none;
	filter: saturate(0.3);
	mix-blend-mode: multiply;
}

/* (C) Timone watermark — VIDEO: dietro la testata, lato sinistro */
.video::before {
	content: "";
	position: absolute;
	z-index: 0;
	left: clamp(-16rem, -12vw, -7rem);
	top: 50%;
	transform: translateY(-50%);
	width: clamp(32rem, 60vmin, 52rem);
	aspect-ratio: 1;
	background: url("../images/home/timone.png") center / contain no-repeat;
	opacity: 0.05;
	pointer-events: none;
	filter: saturate(0.3);
	mix-blend-mode: multiply;
}

/* (D) Brass tick — piccola lineetta oro prima di ogni section__num
   (editorial mark che lega tutte le sezioni come "firme" di pagina) */
.section__num::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 1px;
	background: var(--brass);
	vertical-align: middle;
	margin-right: 0.85rem;
	transform: translateY(-2px);
}
.hero__kicker::before { content: none; }   /* la hero ha già il suo trattamento */

/* (D) Microcopy verticale — running mark editoriale ai margini di sezione */
.editorial-rail {
	position: absolute;
	top: 50%;
	transform: translateY(-50%) rotate(180deg);
	writing-mode: vertical-rl;
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--brass);
	opacity: 0.55;
	z-index: 3;
	pointer-events: none;
	white-space: nowrap;
}
.editorial-rail--left  { left:  clamp(0.4rem, 1.2vw, 1.1rem); }
.editorial-rail--right { right: clamp(0.4rem, 1.2vw, 1.1rem); transform: translateY(-50%); }
@media (max-width: 1180px) { .editorial-rail { display: none; } }

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact {
	padding: calc(var(--section-y) * 0.6) 0;
	background: linear-gradient(140deg, var(--teal-2) 0%, var(--ink) 70%);
	color: var(--paper);
}
.contact__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(2rem, 4.5vw, 3.5rem);
	align-items: start;
}
.contact .section__num { color: var(--brass); margin: 0 0 0.85rem; }
.contact .section__title {
	color: var(--paper);
	margin: 0 0 1rem;
	max-width: 18ch;
	font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}
.contact .section__title em { color: var(--brass); font-style: italic; }
.contact__lede {
	color: rgba(246, 242, 234, 0.75);
	font-size: 0.95rem;
	line-height: 1.55;
	max-width: 52ch;
	margin: 0 0 1.75rem;
}
.contact__info {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem 1.5rem;
	border-top: 1px solid rgba(246, 242, 234, 0.15);
	padding-top: 1.25rem;
}
.contact__info dt {
	font-family: var(--mono);
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--brass);
	margin-bottom: 0.25rem;
	font-weight: 600;
}
.contact__info dd {
	color: var(--paper);
	font-size: 0.88rem;
	line-height: 1.45;
}
.contact__info a {
	color: var(--paper);
	border-bottom: 1px solid rgba(246, 242, 234, 0.3);
	transition: border-color var(--t-base);
}
.contact__info a:hover { border-bottom-color: var(--brass); }

.contact__form {
	display: flex;
	flex-direction: column;
	gap: 0.61rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(246, 242, 234, 0.12);
	padding: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.32rem; }
.field label {
	font-family: var(--mono);
	font-size: 0.63rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(246, 242, 234, 0.7);
	font-weight: 600;
}
.field input,
.field select,
.field textarea {
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(246, 242, 234, 0.25);
	padding: 0.45rem 0;
	color: var(--paper);
	font-family: var(--sans);
	font-size: 0.88rem;
	transition: border-color var(--t-base);
	width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-bottom-color: var(--brass);
}
.field textarea { resize: vertical; min-height: 58px; }
/* Menu a discesa: le <option> ereditano il color chiaro del select (pensato per
   il fondo scuro del form). Su Firefox il popup nativo è su fondo bianco → testo
   chiaro su bianco = illeggibile. Forziamo testo scuro su fondo chiaro. */
.field select option {
	color: var(--ink);
	background: var(--paper);
}
.field select option:checked,
.field select option:hover {
	color: var(--ink);
	background: var(--paper-tint, #ece6da);
}
/* Placeholder coerente e leggibile sul form scuro (default browser = grigio
   medio su Chrome, diverso su Firefox). opacity:1 perché Firefox lo attenua. */
.field input::placeholder,
.field textarea::placeholder {
	color: rgba(246, 242, 234, 0.45);
	opacity: 1;
}
.field--check label {
	font-family: var(--sans);
	font-size: 0.74rem;
	text-transform: none;
	letter-spacing: normal;
	color: rgba(246, 242, 234, 0.75);
	font-weight: 400;
	/* NON flex: il testo deve scorrere come testo (con flex i nodi di testo e
	   il link <a> diventano flex-item separati e si spezzano in colonnine).
	   Checkbox in absolute a sinistra, testo indentato e a capo normalmente. */
	display: block;
	position: relative;
	padding-left: 1.6rem;
	line-height: 1.45;
}
.field--check input {
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 15px; height: 15px;
	flex-shrink: 0;
	accent-color: var(--brass);
}
.field--check a {
	color: var(--paper);
	border-bottom: 1px solid var(--brass);
}
.contact__form .btn--primary {
	background: var(--brass);
	color: var(--ink);
	align-self: flex-start;
	margin-top: 0.4rem;
	padding: 0.75rem 1.1rem;
	font-size: 0.72rem;
}
.contact__form .btn--primary:hover { background: var(--paper); }
.field__note {
	font-size: 0.76rem;
	color: rgba(246, 242, 234, 0.55);
	margin-top: 0.4rem;
}
.field__note a { color: var(--paper); border-bottom: 1px dotted rgba(246, 242, 234, 0.4); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
	background: #050E11;
	color: rgba(246, 242, 234, 0.7);
	padding: clamp(4rem, 7vw, 6rem) 0 2rem;
}
.footer__wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding-inline: var(--gutter);
}
.footer__wrap.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer .footer__wrap:first-of-type {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
	gap: clamp(2rem, 5vw, 4rem);
	margin-bottom: 4rem;
}
.footer__brand img {
	height: 52px;
	width: auto;
	filter: brightness(0) invert(1);
	opacity: 0.95;
	margin-bottom: 1.5rem;
}
.footer__strap {
	font-family: var(--serif);
	font-weight: 380;
	font-variation-settings: "opsz" 72;
	font-size: 1.5rem;
	color: var(--paper);
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin-bottom: 1.5rem;
	max-width: 22ch;
}
.footer__addr {
	font-style: normal;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.86rem;
	line-height: 1.5;
	color: rgba(246, 242, 234, 0.75);
	margin-bottom: 1.25rem;
}
.footer__addr a.footer__addr-row {
	color: var(--paper);
	transition: color var(--t-base);
}
.footer__addr a.footer__addr-row:hover { color: var(--brass); }

.footer__est {
	font-family: var(--mono);
	font-size: 0.74rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(246, 242, 234, 0.45);
}
.footer__est strong { color: var(--brass); font-weight: 600; }
.footer__cols {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}
.footer__cols h4 {
	font-family: var(--mono);
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--paper);
	margin-bottom: 1.25rem;
	font-weight: 600;
}
.footer__cols ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__cols a {
	font-size: 0.9rem;
	color: rgba(246, 242, 234, 0.65);
	transition: color var(--t-fast);
}
.footer__cols a:hover { color: var(--brass); }
.footer__rule {
	max-width: var(--max);
	margin: 0 auto;
	padding-inline: var(--gutter);
}
.footer__rule::before {
	content: "";
	display: block;
	border-top: 1px solid rgba(246, 242, 234, 0.12);
	margin: 0 0 1.5rem;
}
.footer__bottom {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	color: rgba(246, 242, 234, 0.45);
}
.footer__credit a { color: var(--paper); border-bottom: 1px solid var(--brass); padding-bottom: 1px; }

/* ═══════════════════════════════════════════════════════════════
   REVEAL ON SCROLL
   ═══════════════════════════════════════════════════════════════ */
.reveal,
.hero__kicker,
.hero__lede,
.hero__cta,
.hero__index {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 800ms var(--ease), transform 800ms var(--ease);
	transition-delay: 0ms;
}
.reveal[data-revealed="true"],
.hero__kicker[data-revealed="true"],
.hero__lede[data-revealed="true"],
.hero__cta[data-revealed="true"],
.hero__index[data-revealed="true"] {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
	.reveal,
	.hero__kicker,
	.hero__lede,
	.hero__cta,
	.hero__index,
	.hero__rule,
	.hero__line > span { opacity: 1; transform: none; }
	.hero__scroll svg { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1180px) {
	.header__nav { gap: 0.9rem; font-size: 0.78rem; }
	.figures__grid { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
	.figures__values { grid-template-columns: 1fr; gap: 0.85rem; }
	.catalogue__grid { grid-template-columns: repeat(2, 1fr); }
	.sys-row { grid-template-columns: 110px 1fr auto; gap: 1.5rem; }
}

@media (max-width: 960px) {
	/* Burger a DESTRA: il nav diventa drawer position:fixed (fuori griglia),
	   quindi riduco a 2 colonne (logo | tools) così i tool/burger restano a destra. */
	.header__wrap { grid-template-columns: 1fr auto; }
	.section__head--split { grid-template-columns: 1fr; gap: 1.5rem; }
	.section__lede { max-width: none; }
	/* Mostra burger, nascondi CTA e ricerca desktop (la grafica completa del
	   drawer mobile è nel blocco consolidato "MOBILE NAV — drawer + accordion"). */
	.burger { display: inline-flex; }
	.header__cta { display: none; }
	.icon-btn { display: none; }
	.hero__title .display { font-size: clamp(2.6rem, 11vw, 4.5rem); }
	.hero__inner { padding-top: 6rem; padding-bottom: 4rem; }
	.hero__marquee { margin-top: 3rem; }
	.seipem__inner,
	.contact__inner,
	.works__grid { grid-template-columns: 1fr; gap: 2.5rem; }
	.works__grid { gap: 3.5rem; }
	.seipem__media { aspect-ratio: 16 / 10; }
	.footer .footer__wrap:first-of-type { grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
	.footer__cols { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (max-width: 640px) {
	.section__title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
	.figures__grid { grid-template-columns: 1fr; }
	.catalogue__grid { grid-template-columns: 1fr; }
	.sys-row {
		grid-template-columns: 1fr auto;
		gap: 1rem;
	}
	.sys-row__code {
		grid-column: 1 / -1;
	}
	.sys-row__main {
		grid-column: 1 / 2;
	}
	.contact__info { grid-template-columns: 1fr; }
	.contact__form { padding: 1.5rem; }
	.hero__cta .btn { padding: 0.85rem 1rem; font-size: 0.72rem; }
	.hero__scroll { display: none; }
	.work__specs > div { grid-template-columns: 110px 1fr; gap: 0.75rem; }
	.seipem__specs > div { grid-template-columns: 90px 1fr; }
	.footer__cols { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}

@media (max-width: 480px) {
	.lang { display: none; }
	.hero__marquee-track { font-size: 0.7rem; gap: 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PRODOTTI — page header (compact hero, inner page)
   ═══════════════════════════════════════════════════════════════ */
.pagehead {
	position: relative;
	background: linear-gradient(140deg, var(--teal) 0%, var(--teal-2) 100%);
	color: var(--paper);
	padding: clamp(6.5rem, 10vh, 7.5rem) 0 clamp(3rem, 5vh, 4rem);
	overflow: hidden;
	isolation: isolate;
}
.pagehead__bg { position: absolute; inset: 0; z-index: 0; }
.pagehead__bg::before {
	content: "";
	position: absolute; inset: 0;
	background:
		radial-gradient(120% 100% at 90% 0%, rgba(31,101,113,0.35) 0%, transparent 55%),
		radial-gradient(80% 80% at 10% 100%, rgba(182,137,44,0.14) 0%, transparent 60%);
}
.pagehead__grain {
	position: absolute; inset: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
	opacity: 0.12;
	mix-blend-mode: overlay;
	pointer-events: none;
}
.pagehead__wrap {
	position: relative;
	z-index: 1;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* Breadcrumb */
.crumbs {
	display: inline-flex;
	gap: 0.7rem;
	font-family: var(--mono);
	font-size: 0.82rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(246, 242, 234, 0.72);
	margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}
.crumbs a { color: rgba(246, 242, 234, 0.9); transition: color var(--t-base); }
.crumbs a:hover { color: var(--brass); }
.crumbs span[aria-current="page"] { color: var(--brass); }
.crumbs span[aria-hidden] { color: rgba(246, 242, 234, 0.45); }

.pagehead .hero__kicker {
	font-size: 0.82rem;
	letter-spacing: 0.16em;
	color: rgba(246, 242, 234, 0.92);
}

.pagehead__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: end;
}
.pagehead__lead { display: flex; flex-direction: column; }
.pagehead__title {
	display: flex;
	flex-direction: column;
	gap: clamp(0.2rem, 0.7vw, 0.6rem);
	font-family: var(--serif);
	font-weight: 320;
	font-variation-settings: "opsz" 144, "SOFT" 60;
	font-size: clamp(2.5rem, 6vw, 5rem);
	letter-spacing: -0.045em;
	line-height: 0.95;
	color: var(--paper);
	margin: 0;
}
.pagehead__title em {
	font-style: italic;
	color: var(--brass);
	font-variation-settings: "opsz" 144, "SOFT" 100;
}
.pagehead__lede {
	max-width: 46ch;
	font-size: clamp(0.98rem, 1.05vw, 1.10rem);
	line-height: 1.55;
	color: rgba(246, 242, 234, 0.78);
	margin: clamp(1.5rem, 3vh, 2.25rem) 0 0;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.pagehead__lede[data-revealed="true"] { opacity: 1; transform: none; }

/* Stats panel */
.pagehead__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 2rem;
	border-left: 1px solid rgba(246, 242, 234, 0.16);
	padding: 0 0 0 clamp(1.5rem, 2.5vw, 2.5rem);
	opacity: 0;
	transform: translateX(16px);
	transition: opacity 1000ms var(--ease), transform 1000ms var(--ease);
}
.pagehead__stats[data-revealed="true"] { opacity: 1; transform: none; }
.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat__num {
	font-family: var(--serif);
	font-weight: 320;
	font-variation-settings: "opsz" 96, "SOFT" 50;
	font-size: clamp(2rem, 4vw, 3rem);
	letter-spacing: -0.04em;
	line-height: 0.9;
	color: var(--brass);
}
.stat__label {
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(246, 242, 234, 0.7);
	font-weight: 500;
	line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   CAT INDEX (sticky table of contents)
   ═══════════════════════════════════════════════════════════════ */
.catindex {
	position: sticky;
	top: 80px;
	z-index: 30;
	background: rgba(246, 242, 234, 0.92);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: top var(--t-base);
}
.catindex__wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0.85rem var(--gutter);
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1.5rem);
	overflow-x: auto;
	scrollbar-width: none;
}
.catindex__wrap::-webkit-scrollbar { display: none; }
.catindex__label {
	font-family: var(--mono);
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--brass);
	font-weight: 600;
	flex-shrink: 0;
}
.catindex__label::after {
	content: "—";
	margin-left: 0.75rem;
	color: var(--line);
}
.catindex__list {
	display: inline-flex;
	gap: clamp(0.5rem, 1.5vw, 1.25rem);
}
.catindex__list li { flex-shrink: 0; }
.catindex__list a {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-2);
	padding: 0.4rem 0.65rem;
	transition: color var(--t-base);
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}
.catindex__list a:hover { color: var(--brass); }

/* ═══════════════════════════════════════════════════════════════
   FAMIGLIE — blocchi editoriali alternati
   ═══════════════════════════════════════════════════════════════ */
.famiglie {
	background: var(--paper);
}
.famiglia {
	border-top: 1px solid var(--line);
	scroll-margin-top: 130px;
}
.famiglia:first-child { border-top: 0; }
.famiglia__wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(4.5rem, 9vw, 8rem) var(--gutter);
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: center;
}
.famiglia__wrap--photo-right { direction: rtl; }
.famiglia__wrap--photo-right > * { direction: ltr; }

.famiglia--alt { background: var(--paper-tint); }

/* Media (photo) */
.famiglia__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--paper-2);
	border: 1px solid var(--line);
	display: block;
}
.famiglia__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	filter: saturate(0.92);
	transition: transform var(--t-slow) var(--ease), filter var(--t-base);
}
.famiglia__media:hover img { transform: scale(1.04); filter: saturate(1.05); }
.famiglia__hover {
	position: absolute;
	bottom: 1rem; left: 1rem;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 600;
	padding: 0.55rem 0.85rem;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity var(--t-base), transform var(--t-base);
}
.famiglia__media:hover .famiglia__hover { opacity: 1; transform: none; }

/* Body */
.famiglia__body { display: flex; flex-direction: column; gap: 1.2rem; max-width: 38rem; }
.famiglia__eyebrow {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--teal);
	font-weight: 600;
	margin: 0;
}
.famiglia__eyebrow::before {
	content: "";
	display: inline-block;
	width: 30px;
	height: 1px;
	background: var(--brass);
	transform: translateY(-0.25em);
	margin-right: 0.6rem;
}
.famiglia__sub-brand {
	color: var(--brass);
	font-weight: 500;
}
.famiglia__title {
	font-family: var(--serif);
	font-weight: 320;
	font-variation-settings: "opsz" 144, "SOFT" 50;
	font-size: clamp(2.25rem, 4.5vw, 3.75rem);
	letter-spacing: -0.04em;
	line-height: 0.95;
	color: var(--ink);
	margin: 0;
}
.famiglia__desc {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ink-2);
	margin: 0;
}
.famiglia__desc strong { color: var(--ink); font-weight: 600; }

/* Tags pill list */
.famiglia__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0.5rem 0 0.5rem;
	padding: 0;
}
.famiglia__tags li {
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	color: var(--ink-2);
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--line);
	background: var(--surface);
	border-radius: 999px;
	transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.famiglia--alt .famiglia__tags li { background: var(--paper); }
.famiglia__tags li:hover {
	border-color: var(--teal);
	color: var(--teal);
}

/* ═══════════════════════════════════════════════════════════════
   CATALOGO CTA (PDF download)
   ═══════════════════════════════════════════════════════════════ */
.catalogo-cta {
	background: var(--ink);
	color: var(--paper);
	padding: clamp(4rem, 8vw, 6.5rem) 0;
	border-top: 1px solid rgba(246, 242, 234, 0.08);
}
.catalogo-cta__wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: clamp(2.5rem, 5vw, 5rem);
	align-items: end;
}
.catalogo-cta__copy .hero__kicker { color: var(--brass); margin-bottom: 1.5rem; }
.catalogo-cta__title {
	font-family: var(--serif);
	font-weight: 320;
	font-variation-settings: "opsz" 144, "SOFT" 50;
	font-size: clamp(2.25rem, 4.5vw, 3.5rem);
	letter-spacing: -0.04em;
	line-height: 0.95;
	color: var(--paper);
	margin: 0 0 1.25rem;
}
.catalogo-cta__lede {
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(246, 242, 234, 0.78);
	max-width: 50ch;
	margin: 0;
}
.catalogo-cta__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: stretch;
}
.catalogo-cta__actions .btn { justify-content: space-between; padding: 1.1rem 1.5rem; }
.catalogo-cta__actions .btn--ghost {
	color: var(--paper);
	border: 1px solid rgba(246, 242, 234, 0.4);
}
.catalogo-cta__actions .btn--ghost:hover {
	background: var(--paper);
	color: var(--ink);
	border-color: var(--paper);
}

/* Inner header variant (always solid paper, no hero-overlap) */
.header--inner { background: rgba(246, 242, 234, 0.92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.header--inner .header__brand img { filter: none; }
.header--inner .header__nav a { color: var(--ink-2); }
.header--inner .header__nav a:hover,
.header--inner .header__nav a[aria-current="page"] { color: var(--ink); }
.header--inner .lang a[aria-current="true"] { color: var(--ink); }
.header--inner .lang { color: var(--ink-2); }
.header--inner .icon-btn { color: var(--ink-2); }
.header--inner .header__cta { color: var(--ink); border-color: var(--ink); }
.header--inner .header__cta:hover { background: var(--ink); color: var(--paper); }

/* Responsive */
@media (max-width: 960px) {
	.pagehead__grid { grid-template-columns: 1fr; align-items: start; }
	.pagehead__stats { border-left: 0; border-top: 1px solid rgba(246, 242, 234, 0.16); padding: 1.5rem 0 0; }
	.famiglia__wrap { grid-template-columns: 1fr; gap: 2rem; }
	.famiglia__wrap--photo-right { direction: ltr; }
	.famiglia__wrap--photo-right .famiglia__media { order: -1; }
	.catalogo-cta__wrap { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
	.catindex { top: 64px; }
	.pagehead__stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
	.stat__num { font-size: 2rem; }
}

/* ═══════════════════════════════════════════════════════════════
   SCHEDA PRODOTTO (prodotto.html) — contenuti verbatim
   ─────────────────────────────────────────────────────────────
   Pagehead slim, image + CTAs, descrizione, caratteristiche,
   prodotti correlati. Form preventivo riusa .contact dalla home.
   ═══════════════════════════════════════════════════════════════ */

/* — Pagehead variant: nessun pannello stats, titolo più contenuto — */
.pagehead--product { padding: clamp(6.5rem, 11vh, 8.5rem) 0 clamp(4rem, 6vh, 5.5rem); }
.pagehead--product .pagehead__title { font-size: clamp(2.5rem, 6.5vw, 5rem); }
.pagehead--product .pagehead__lead { max-width: 56rem; }

/* ─── IMMAGINE + CTA a due colonne ─────────────────────────────── */
/* `section.product` (non `.product` da solo) per non collidere
   con la classe "product" che WooCommerce aggiunge a <body>. */
section.product {
	background: var(--paper);
	padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}
.product__wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}
.product__gallery { margin: 0; }
.product-gallery__stage {
	background: var(--paper-tint);
	border: 1px solid var(--line);
	border-radius: 4px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}
.product-gallery__stage img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}

.product__intro {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-top: 0.25rem;
}
.product__eyebrow {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--brass);
	font-weight: 600;
	margin: 0;
}
.product__code {
	font-family: var(--serif);
	font-weight: 380;
	font-variation-settings: "opsz" 96, "SOFT" 50;
	font-size: clamp(2rem, 4vw, 3rem);
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--ink);
	margin: 0;
}
.product__sku {
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: var(--ink-2);
	margin: 0.25rem 0 0;
}
.product__sku span {
	color: var(--brass);
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.16em;
	margin-right: 0.55rem;
}
.product__excerpt {
	color: var(--ink-2);
	font-size: 1.02rem;
	line-height: 1.6;
	max-width: 42ch;
	margin: 0.25rem 0 0.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}

.product-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}
.product-cta .btn { padding: 1rem 1.4rem; }

.btn--ink-ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--ink);
}
.btn--ink-ghost:hover { background: var(--ink); color: var(--paper); }

/* ─── DESCRIZIONE (prosa) ──────────────────────────────────────── */
.prosesection {
	background: var(--paper-tint);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: clamp(4.5rem, 8vw, 7rem) 0;
}
.prosesection__wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}
.prosesection__head { position: sticky; top: 120px; }
.prosesection__title {
	font-family: var(--serif);
	font-weight: 380;
	font-variation-settings: "opsz" 96, "SOFT" 30;
	font-size: clamp(1.9rem, 3.6vw, 2.8rem);
	letter-spacing: -0.025em;
	line-height: 1.05;
	color: var(--ink);
	margin: 0.5rem 0 0;
}
.prosesection__body { display: flex; flex-direction: column; gap: 1.1rem; }
.prosesection__body p {
	font-size: 1.02rem;
	line-height: 1.7;
	color: var(--ink-2);
	max-width: 64ch;
	margin: 0;
}
.prosesection__pdf {
	margin-top: 1.5rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}
.prosesection__pdf .btn { padding: 0.9rem 1.3rem; }

/* ─── CARATTERISTICHE PRINCIPALI ───────────────────────────────── */
.specs {
	background: var(--paper);
	padding: clamp(4.5rem, 8vw, 7rem) 0;
}
.specs__wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.specs__head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 60rem; }
.specs__title {
	font-family: var(--serif);
	font-weight: 380;
	font-variation-settings: "opsz" 96, "SOFT" 30;
	font-size: clamp(1.9rem, 3.6vw, 2.8rem);
	letter-spacing: -0.025em;
	line-height: 1.05;
	color: var(--ink);
	margin: 0.5rem 0 0;
}

.specs__list {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 4px;
	overflow: hidden;
	max-width: 60rem;
}
.specs__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	align-items: baseline;
	gap: 1rem;
	padding: 1rem clamp(1.2rem, 2vw, 1.75rem);
	border-bottom: 1px solid var(--line-2);
}
.specs__row:last-child { border-bottom: 0; }
.specs__row dt {
	font-size: 0.92rem;
	color: var(--ink-2);
	font-weight: 500;
}
.specs__row dd {
	margin: 0;
	font-family: var(--mono);
	font-size: 0.88rem;
	color: var(--ink);
	font-weight: 500;
}

/* ─── PRODOTTI CORRELATI ───────────────────────────────────────── */
.related {
	background: var(--paper-tint);
	border-top: 1px solid var(--line);
	padding: clamp(4.5rem, 8vw, 7rem) 0;
}
.related__wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.related__head {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}
.related__title {
	font-family: var(--serif);
	font-weight: 380;
	font-variation-settings: "opsz" 96, "SOFT" 30;
	font-size: clamp(1.9rem, 3.6vw, 2.8rem);
	letter-spacing: -0.025em;
	line-height: 1.05;
	color: var(--ink);
	margin: 0.5rem 0 0;
}

.related__carousel {
	position: relative;
	min-width: 0;
}
.related__grid {
	--rel-gap: 1rem;
	--rel-visible: 3;
	display: flex;
	flex-wrap: nowrap;
	gap: var(--rel-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	max-width: 100%;
	min-width: 0;
}
.related__grid::-webkit-scrollbar { display: none; }
.related__grid > .rel-card {
	flex: 0 0 calc((100% - (var(--rel-visible) - 1) * var(--rel-gap)) / var(--rel-visible));
	min-width: 0;
	scroll-snap-align: start;
}

.related__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px; height: 44px;
	display: inline-flex;
	align-items: center; justify-content: center;
	background: var(--surface);
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 8px 24px -16px rgba(11, 26, 31, 0.45);
	transition: background var(--t-base), color var(--t-base), border-color var(--t-base), opacity var(--t-base), transform var(--t-base);
}
.related__nav:hover:not(:disabled) {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
}
.related__nav:disabled {
	opacity: 0.35;
	cursor: default;
}
.related__nav--prev { left: -22px; }
.related__nav--next { right: -22px; }
@media (max-width: 720px) {
	.related__nav--prev { left: 4px; }
	.related__nav--next { right: 4px; }
}
.rel-card {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.rel-card:hover {
	border-color: var(--ink);
	transform: translateY(-3px);
	box-shadow: 0 12px 28px -22px rgba(11, 26, 31, 0.45);
}
.rel-card__media {
	aspect-ratio: 4 / 3;
	background: var(--paper-tint);
	overflow: hidden;
}
.rel-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform var(--t-slow) var(--ease);
}
.rel-card:hover .rel-card__media img { transform: scale(1.04); }
.rel-card__body {
	padding: 1.1rem 1.2rem 1.3rem;
}
.rel-card__code {
	font-family: var(--mono);
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	color: var(--ink);
	font-weight: 600;
	text-transform: uppercase;
}
.rel-card__cta {
	position: absolute;
	right: 1rem; bottom: 1rem;
	width: 30px; height: 30px;
	display: inline-flex;
	align-items: center; justify-content: center;
	font-family: var(--mono);
	color: var(--muted);
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-base);
}
.rel-card:hover .rel-card__cta {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
	transform: translate(3px, -3px);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
	.product__wrap,
	.prosesection__wrap { grid-template-columns: 1fr; }
	.prosesection__head { position: static; }
	.related__grid { --rel-visible: 2; }
}
@media (max-width: 640px) {
	.related__grid { --rel-visible: 1.15; }
	.specs__row { grid-template-columns: 1fr; gap: 0.25rem; }
	.specs__row dd { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════════
   WP FSE LAYOUT OVERRIDES — front-page v2
   Annulla i margin auto del block-flow layout tra le sezioni.
   ═══════════════════════════════════════════════════════════════ */
.front-page-v2,
.front-page-v2 > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}
.front-page-v2 > section + section {
	margin-top: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   NO UNDERLINE — front-page v2
   ═══════════════════════════════════════════════════════════════ */
.header a,
.front-page-v2 a,
.footer a,
.front-page-v2 a:hover,
.header a:hover,
.footer a:hover {
	text-decoration: none !important;
}
/* Rimuovi la linea decorativa ::after del nav header (sotto link active/hover). */
.header__nav a::after { display: none !important; }
/* Stato attivo: niente linea, solo colore enfatizzato. */
.header__nav a[aria-current="page"] { opacity: 1; color: var(--brass); }
.header__nav a:hover { opacity: 1; color: var(--brass); }

/* ═══════════════════════════════════════════════════════════════
   HERO BG — leggermente schiarita, foto più leggibile
   ═══════════════════════════════════════════════════════════════ */
.hero__photo {
	filter: saturate(0.78) contrast(1.04) brightness(0.92);
}
.hero__veil {
	background:
		radial-gradient(120% 90% at 35% 55%, rgba(10,26,31,0.10) 0%, rgba(10,26,31,0.40) 55%, rgba(10,26,31,0.72) 100%),
		linear-gradient(90deg, rgba(10,26,31,0.80) 0%, rgba(10,26,31,0.45) 42%, rgba(10,26,31,0.08) 78%),
		linear-gradient(180deg, rgba(10,26,31,0.32) 0%, rgba(10,26,31,0.05) 35%, rgba(10,26,31,0.62) 100%);
}

/* ═══════════════════════════════════════════════════════════════
   HERO BG — effetto Ken Burns (zoom + pan diagonale lento)
   ═══════════════════════════════════════════════════════════════ */
.hero__photo {
	transform-origin: center center;
	animation: heroKenBurns 32s ease-in-out infinite alternate;
	will-change: transform;
}
@keyframes heroKenBurns {
	0%   { transform: scale(1.06) translate3d(2.5%, 1.5%, 0); }
	100% { transform: scale(1.18) translate3d(-3%, -2%, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.hero__photo { animation: none; transform: scale(1.04); }
}

/* ═══════════════════════════════════════════════════════════════
   NO GAP PRIMA DEL FOOTER — annulla il margin di layout WP
   ═══════════════════════════════════════════════════════════════ */
.footer,
body > footer,
.wp-site-blocks > footer,
.wp-block-template-part:has(.footer) {
	margin-top: 0 !important;
	margin-block-start: 0 !important;
}
main.front-page-v2,
main.page-prodotti-v2 {
	margin-bottom: 0 !important;
	margin-block-end: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   Pagine generiche (no hero/pagehead) — padding sotto l'header fixed
   ═══════════════════════════════════════════════════════════════ */
body:not(:has(.hero)):not(:has(.pagehead)) main {
	padding-top: clamp(5rem, 8vh, 6.5rem);
}

/* ═══════════════════════════════════════════════════════════════
   CATALOG SHELL — layout 2 colonne (grid + sidebar) per /catalogo/
   ═══════════════════════════════════════════════════════════════ */
.catalog-shell {
	padding: clamp(2rem, 4vw, 3.5rem) 0;
	background: var(--paper-tint, var(--paper));
}
.catalog-shell__wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding-inline: var(--gutter);
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 320px);
	gap: clamp(2rem, 3.5vw, 3.5rem);
	align-items: start;
}
.catalog-shell__content { min-width: 0; }
.catalog-shell__aside { min-width: 0; position: sticky; top: 100px; }

/* Quando la catalogue è dentro la shell, niente wrap interno + 2 col invece di 3 */
.catalog-shell .catalogue {
	padding: 0;
	background: transparent;
}
.catalog-shell .catalogue .section__wrap {
	max-width: none;
	padding: 0;
}
.catalog-shell .catalogue__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Sidebar */
.catalog-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}
.catalog-sidebar__block {
	background: var(--surface, #fff);
	border: 1px solid var(--line, rgba(15, 27, 31, 0.08));
	border-radius: 14px;
	padding: 1.15rem 1.2rem 1.3rem;
}
.catalog-sidebar__title {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--teal-2, var(--teal));
	font-weight: 600;
	margin: 0 0 0.85rem;
}
/* Form ricerca WP */
.catalog-sidebar .wp-block-search {
	margin: 0;
}
.catalog-sidebar .wp-block-search__inside-wrapper {
	border: 1px solid var(--line);
	border-radius: 999px;
	overflow: hidden;
	background: var(--paper);
}
.catalog-sidebar .wp-block-search__input {
	border: 0;
	background: transparent;
	padding: 0.6rem 0.9rem;
	font-family: var(--sans);
	font-size: 0.9rem;
	color: var(--ink);
	min-width: 0;
}
.catalog-sidebar .wp-block-search__input:focus { outline: none; box-shadow: none; }
.catalog-sidebar .wp-block-search__button {
	border: 0;
	background: var(--teal-2);
	color: var(--paper);
	font-family: var(--mono);
	font-size: 0.9rem;
	padding: 0 0.95rem;
	cursor: pointer;
	transition: background var(--t-base);
}
.catalog-sidebar .wp-block-search__button:hover { background: var(--ink); }

/* Lista categorie WooCommerce */
.catalog-sidebar .wc-block-product-categories,
.catalog-sidebar ul.wc-block-product-categories-list,
.catalog-sidebar .wp-block-woocommerce-product-categories ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.catalog-sidebar .wc-block-product-categories-list-item,
.catalog-sidebar .wp-block-woocommerce-product-categories li {
	border-top: 1px solid var(--line);
	padding: 0;
}
.catalog-sidebar .wc-block-product-categories-list-item:first-child,
.catalog-sidebar .wp-block-woocommerce-product-categories li:first-child {
	border-top: 0;
}
.catalog-sidebar .wc-block-product-categories-list-item a,
.catalog-sidebar .wp-block-woocommerce-product-categories a {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.55rem 0;
	color: var(--ink);
	font-size: 0.92rem;
	transition: color var(--t-base);
}
.catalog-sidebar .wc-block-product-categories-list-item a:hover,
.catalog-sidebar .wp-block-woocommerce-product-categories a:hover {
	color: var(--teal-2);
}
.catalog-sidebar .wc-block-product-categories-list-item-count,
.catalog-sidebar .wp-block-woocommerce-product-categories .count {
	font-family: var(--mono);
	font-size: 0.72rem;
	color: var(--muted);
	letter-spacing: 0.05em;
}
.catalog-sidebar ul ul {
	margin: 0 0 0.4rem 0.8rem;
	padding: 0;
	border-left: 1px solid var(--line);
}
.catalog-sidebar ul ul li {
	border-top: 0;
	padding-left: 0.6rem;
}
.catalog-sidebar ul ul a {
	font-size: 0.82rem;
	color: var(--muted);
	padding: 0.3rem 0;
}

/* CTA block in sidebar */
.catalog-sidebar__block--cta {
	background: linear-gradient(140deg, var(--teal-2) 0%, var(--ink) 70%);
	color: var(--paper);
	border-color: transparent;
}
.catalog-sidebar__lede {
	color: rgba(246, 242, 234, 0.85);
	font-size: 0.92rem;
	line-height: 1.5;
	margin: 0 0 1rem;
}
.btn--block { display: inline-flex; width: 100%; justify-content: center; }

/* Responsive: sidebar sotto il contenuto in mobile */
@media (max-width: 960px) {
	.catalog-shell__wrap {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	.catalog-shell__aside { position: static; }
}
@media (max-width: 640px) {
	.catalog-shell .catalogue__grid { grid-template-columns: 1fr; }
}

/* Sidebar catalogo — search form e lista 5 macro categorie (ad hoc) */
.catalog-search {
	display: flex;
	border: 1px solid var(--line);
	border-radius: 999px;
	overflow: hidden;
	background: var(--paper);
}
.catalog-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.6rem 0.95rem;
	font-family: var(--sans);
	font-size: 0.9rem;
	color: var(--ink);
	outline: none;
}
.catalog-search input[type="search"]::placeholder { color: var(--muted); }
.catalog-search button {
	border: 0;
	background: var(--teal-2);
	color: var(--paper);
	font-family: var(--mono);
	font-size: 1rem;
	padding: 0 1rem;
	cursor: pointer;
	transition: background var(--t-base);
}
.catalog-search button:hover { background: var(--ink); }

.catalog-sidebar__cats {
	list-style: none;
	margin: 0;
	padding: 0;
}
.catalog-sidebar__cat {
	border-top: 1px solid var(--line);
}
.catalog-sidebar__cat:first-child { border-top: 0; }
.catalog-sidebar__cat a {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.7rem 0;
	color: var(--ink);
	transition: color var(--t-base);
}
.catalog-sidebar__cat a:hover { color: var(--teal-2); }
.catalog-sidebar__cat-eyebrow {
	font-family: var(--mono);
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.catalog-sidebar__cat-name {
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.3;
}
.catalog-sidebar__cat.is-active > a { color: var(--teal-2); }
.catalog-sidebar__cat.is-active .catalog-sidebar__cat-eyebrow { color: var(--brass); }

/* ─── Sub-categorie ad albero ─── */
.catalog-sidebar__subcats {
	list-style: none;
	margin: 0 0 0.5rem;
	padding: 0 0 0 0.85rem;
	border-left: 1px solid var(--line);
}
.catalog-sidebar__subcats .catalog-sidebar__subcats {
	margin-left: 0.25rem;
	padding-left: 0.85rem;
}
.catalog-sidebar__subcat {
	position: relative;
}
.catalog-sidebar__subcat > a {
	display: block;
	padding: 0.4rem 0;
	font-size: 0.86rem;
	line-height: 1.35;
	color: var(--muted);
	transition: color var(--t-base);
}
.catalog-sidebar__subcat > a:hover { color: var(--ink); }
.catalog-sidebar__subcat.is-open > a { color: var(--ink); font-weight: 500; }
.catalog-sidebar__subcat.is-current > a {
	color: var(--teal-2);
	font-weight: 600;
}
.catalog-sidebar__subcat.is-current::before {
	content: "";
	position: absolute;
	left: -0.86rem;
	top: 0.7rem;
	width: 3px; height: 1rem;
	background: var(--teal-2);
	border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE CATEGORIA — pagehead variant
   ═══════════════════════════════════════════════════════════════ */
.pagehead--category .pagehead__title {
	font-size: clamp(2.2rem, 5vw, 4rem);
}
.pagehead--category .crumbs a + a,
.pagehead--category .crumbs span[aria-current="page"] { color: var(--brass); }

/* Catalog browser shortcode — vincoli leggeri perché il markup è custom del tema. */
.page-categoria-v2 .catalog-shell__content {
	background: transparent;
}
.page-categoria-v2 .catalog-shell__content > * {
	max-width: 100%;
}
/* In pagine categoria la grid card cataloghe NON esiste — la sidebar resta proprio. */

/* ═══════════════════════════════════════════════════════════════
   SOTTO-CATEGORIE & PRODOTTI nel catalog browser
   Replica lo stile delle .cat-card v2.
   ═══════════════════════════════════════════════════════════════ */
.page-categoria-v2 .marsili-cat-grid,
.page-categoria-v2 .marsili-product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.85rem, 1.7vw, 1.35rem);
}
@media (max-width: 640px) {
	.page-categoria-v2 .marsili-cat-grid,
	.page-categoria-v2 .marsili-product-grid { grid-template-columns: 1fr; }
}

/* Card */
.marsili-cat-card,
.marsili-product-card {
	background: var(--surface);
	border: 0 !important;
	border-radius: 16px;
	padding: 1.1rem 1.2rem 3.5rem;
	box-shadow: 0 1px 0 rgba(11, 26, 31, 0.04), 0 10px 26px -20px rgba(11, 26, 31, 0.18);
	transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
	color: var(--ink);
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
	position: relative;
	overflow: hidden;
}
.marsili-cat-card:hover,
.marsili-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 8px rgba(11, 26, 31, 0.04), 0 30px 60px -28px rgba(11, 26, 31, 0.28);
	background: var(--surface);
}

/* Media area */
.marsili-cat-card__media,
.marsili-product-card__media {
	aspect-ratio: 5 / 4;
	background: #E8F0F1;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.marsili-cat-card__img,
.marsili-product-card__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 1rem;
	transition: transform var(--t-slow) var(--ease), filter var(--t-base);
	mix-blend-mode: multiply;
}
.marsili-cat-card:hover .marsili-cat-card__img,
.marsili-product-card:hover .marsili-product-card__img {
	transform: scale(1.04);
}

/* Placeholder (no thumb): motivo timone tenue invece di linee diagonali */
.marsili-cat-card__img--placeholder,
.marsili-product-card__img--placeholder {
	width: 100%;
	height: 100%;
	background:
		url("../images/home/timone.png") center / 65% no-repeat,
		linear-gradient(140deg, #E8F0F1 0%, #DAE6E8 100%);
	opacity: 0.95;
	mix-blend-mode: normal;
	padding: 0;
}

/* Body */
.marsili-cat-card__body,
.marsili-product-card__body {
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.marsili-cat-card__title,
.marsili-product-card__title {
	font-family: var(--serif);
	font-weight: 380;
	font-variation-settings: "opsz" 60, "SOFT" 30;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--ink);
	margin: 0;
}
.marsili-cat-card:hover .marsili-cat-card__title,
.marsili-product-card:hover .marsili-product-card__title {
	color: var(--ink);
}
.marsili-cat-card__title > span[aria-hidden] { display: none; }

.marsili-cat-card__desc {
	color: var(--muted);
	font-size: 0.88rem;
	line-height: 1.5;
	margin: 0;
}

/* SKU del prodotto: eyebrow mono */
.marsili-product-card__sku {
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--teal-2);
	font-weight: 600;
}

/* CTA freccia in basso a destra come .cat-card__cta */
.marsili-cat-card::after,
.marsili-product-card::after {
	content: "→";
	position: absolute;
	right: 0.95rem;
	bottom: 0.95rem;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(31, 101, 113, 0.12);
	color: var(--teal-2);
	font-family: var(--mono);
	font-size: 0.95rem;
	transition: background var(--t-base), color var(--t-base), transform var(--t-base) var(--ease);
}
.marsili-cat-card:hover::after,
.marsili-product-card:hover::after {
	background: var(--teal-2);
	color: var(--paper);
	transform: translate(0, -2px);
}

/* Empty/pagination utility */
.page-categoria-v2 .marsili-empty {
	padding: 2rem;
	background: var(--surface);
	border-radius: 12px;
	color: var(--muted);
	text-align: center;
}
.page-categoria-v2 .marsili-pagination {
	margin-top: 2rem;
	display: flex;
	justify-content: center;
}

/* override grid columns forzato */
.page-categoria-v2 .catalog-shell__content .marsili-cat-grid,
.page-categoria-v2 .catalog-shell__content .marsili-product-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
@media (max-width: 640px) {
	.page-categoria-v2 .catalog-shell__content .marsili-cat-grid,
	.page-categoria-v2 .catalog-shell__content .marsili-product-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ═══════════════════════════════════════════════════════════════
   HEADER NAV — supporto sottomenu (dropdown depth 2)
   ═══════════════════════════════════════════════════════════════ */
/* Item top: wrapper inline (sia con sia senza children) */
.header__nav-item {
	display: inline-flex;
	align-items: center;
}
.header__nav-item--has-children {
	position: relative;
}
.header__nav-link {
	padding: 0.3rem 0;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	opacity: 0.85;
	transition: opacity var(--t-fast), color var(--t-base);
	color: inherit;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.header__nav-link:hover { opacity: 1; color: var(--brass); }
.header__nav-link[aria-current="page"] { opacity: 1; color: var(--brass); }
.header__nav-caret {
	transition: transform var(--t-base) var(--ease);
	opacity: 0.7;
}
.header__nav-item--has-children:hover .header__nav-caret,
.header__nav-item--has-children:focus-within .header__nav-caret {
	transform: rotate(180deg);
	opacity: 1;
}

/* Dropdown panel — premium card stile cat-card */
.header__submenu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%, 10px) scale(0.985);
	transform-origin: top center;
	min-width: 288px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 0.7rem;
	box-shadow:
		0 1px 0 rgba(11, 26, 31, 0.04),
		0 4px 10px rgba(11, 26, 31, 0.05),
		0 30px 60px -22px rgba(11, 26, 31, 0.32);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 240ms var(--ease),
		transform 240ms var(--ease),
		visibility 0s linear 240ms;
	z-index: 110;
}
.header__nav-item--has-children:hover .header__submenu,
.header__nav-item--has-children:focus-within .header__submenu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 6px) scale(1);
	transition:
		opacity 240ms var(--ease),
		transform 240ms var(--ease),
		visibility 0s;
}

/* Hover-gap filler (evita che chiuda mentre attraversi lo spazio tra link e panel) */
.header__nav-item--has-children::before {
	content: "";
	position: absolute;
	left: -14px; right: -14px;
	top: 100%;
	height: 12px;
}

/* Lista voci */
.header__submenu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}
.header__submenu li { margin: 0; }
.header__submenu ul > li + li {
	border-top: 1px solid var(--line-2);
}
.header__submenu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 0.9rem;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 0.88rem;
	font-weight: 500;
	letter-spacing: 0.005em;
	line-height: 1.25;
	border-radius: 8px;
	opacity: 1;
	white-space: nowrap;
	position: relative;
	transition:
		background 200ms var(--ease),
		color 200ms var(--ease),
		padding-left 200ms var(--ease);
}
.header__submenu a:hover,
.header__submenu a:focus-visible {
	background: var(--paper-tint);
	color: var(--teal-2);
	padding-left: 1.1rem;
}
.header__submenu a[aria-current="page"] {
	color: var(--brass);
}

/* Freccia → animata sulle voci foglia (senza figli) */
.header__submenu li:not(.has-children) > a::after {
	content: "→";
	font-family: var(--mono);
	font-size: 0.95rem;
	color: var(--teal-2);
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 200ms var(--ease), transform 200ms var(--ease);
	margin-left: auto;
}
.header__submenu li:not(.has-children) > a:hover::after,
.header__submenu li:not(.has-children) > a:focus-visible::after {
	opacity: 1;
	transform: translateX(0);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER NAV — flyout di terzo livello (sotto-sotto-menu)
   ═══════════════════════════════════════════════════════════════ */
/* Un <li> di sottomenu con figli: posiziona il flyout a destra */
.header__submenu ul li.has-children {
	position: relative;
}
.header__sub-caret {
	opacity: 0.55;
	flex-shrink: 0;
	color: var(--teal-2);
	transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.header__submenu ul li.has-children:hover > a .header__sub-caret,
.header__submenu ul li.has-children:focus-within > a .header__sub-caret {
	opacity: 1;
	transform: translateX(3px);
}

/* Flyout panel (sotto-sotto-menu) — stesso linguaggio del dropdown principale */
.header__submenu--nested {
	position: absolute;
	top: -0.7rem;
	left: 100%;
	margin-left: 0.5rem;
	min-width: 260px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 0.7rem;
	box-shadow:
		0 1px 0 rgba(11, 26, 31, 0.04),
		0 4px 10px rgba(11, 26, 31, 0.05),
		0 24px 50px -22px rgba(11, 26, 31, 0.3);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-8px) scale(0.985);
	transform-origin: top left;
	transition:
		opacity 220ms var(--ease),
		transform 220ms var(--ease),
		visibility 0s linear 220ms;
	z-index: 1;
	list-style: none;
	/* indicatore di gerarchia: filo teal sottile a sinistra */
	background-image: linear-gradient(var(--teal-2), var(--teal-2));
	background-repeat: no-repeat;
	background-size: 2px calc(100% - 1.4rem);
	background-position: 0 0.7rem;
}
.header__submenu ul li.has-children:hover > .header__submenu--nested,
.header__submenu ul li.has-children:focus-within > .header__submenu--nested {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(0) scale(1);
	transition:
		opacity 220ms var(--ease),
		transform 220ms var(--ease),
		visibility 0s;
}
/* Riempi gap tra <li> parent e flyout (per evitare hover-out) */
.header__submenu ul li.has-children::before {
	content: "";
	position: absolute;
	left: 100%;
	top: 0;
	width: 0.65rem;
	height: 100%;
	pointer-events: auto;
}

.header__submenu--nested li > a {
	font-size: 0.85rem;
	color: var(--ink);
}

/* Mobile: il flyout di terzo livello è gestito dal blocco "MOBILE NAV" sopra
   (accordion). Qui resta solo lo spegnimento del filler hover desktop. */
@media (max-width: 960px) {
	.header__submenu ul li.has-children::before { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV — drawer + accordion multi-livello (redesign 2026-06)
   Sostituisce il vecchio adattamento del dropdown desktop.
   Stato gestito da home-v2.js: data-open sul nav, .is-open sulle righe
   con figli, max-height inline per l'animazione (apertura→scrollHeight→
   none, così i livelli annidati non vengono mai tagliati).
   ═══════════════════════════════════════════════════════════════ */
.nav-overlay { display: none; }
/* Toggle accordion iniettato da JS: invisibile su desktop (solo drawer mobile). */
.nav-acc__btn { display: none; }

@media (max-width: 960px) {
	/* — Backdrop — */
	.nav-overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 190;
		background: rgba(11, 26, 31, 0.42);
		opacity: 0;
		visibility: hidden;
		transition: opacity 320ms var(--ease), visibility 0s linear 320ms;
	}
	.nav-overlay[data-open="true"] {
		opacity: 1;
		visibility: visible;
		transition: opacity 320ms var(--ease);
	}

	/* — Header in stato "drawer aperto": barra chiara, logo+X scuri sopra il drawer — */
	.header[data-nav-open="true"] {
		background: var(--paper);
		color: var(--ink);
		border-bottom-color: var(--line);
		z-index: 300;
	}
	.header[data-nav-open="true"] .header__brand img { filter: none; }
	/* logo e tools (burger→X) restano sopra il drawer: il nav è dentro .header
	   con z-index più alto, quindi lo coprirebbe se non li rialzassimo. */
	.header[data-nav-open="true"] .header__brand,
	.header[data-nav-open="true"] .header__tools { position: relative; z-index: 210; }
	/* burger → X */
	.header[data-nav-open="true"] .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
	.header[data-nav-open="true"] .burger span:nth-child(2) { opacity: 0; }
	.header[data-nav-open="true"] .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

	/* Cappello opaco sopra il drawer: copre la barra header (auto-altezza via
	   inset:0) così le voci che scorrono in alto spariscono SOTTO al logo invece
	   di vedersi dietro/intorno. z 205 = sopra il drawer (200), sotto logo/X (210). */
	.header[data-nav-open="true"]::before {
		content: "";
		position: absolute;
		inset: 0;
		background: var(--paper);
		z-index: 205;
		pointer-events: none;
	}
	/* A menu aperto l'header NON si rimpicciolisce: altezza costante in entrambi
	   gli stati di scroll, così il cappello e il padding del drawer combaciano. */
	.header[data-nav-open="true"] .header__wrap {
		padding-top: 1.1rem;
		padding-bottom: 1.1rem;
	}
	.header[data-nav-open="true"] .header__brand img { height: 60.5px; }

	/* — Drawer — */
	.header__nav {
		--nav-pad: 1.6rem;          /* padding orizzontale base (distacco dal bordo) */
		position: fixed;
		top: 0; right: 0; bottom: 0; left: auto;
		width: min(440px, 100%);
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		padding: calc(env(safe-area-inset-top, 0px) + 100px) 0 calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
		background: var(--paper);
		color: var(--ink);
		font-family: var(--sans);
		font-size: 1rem;
		letter-spacing: 0;
		text-transform: none;
		transform: translateX(100%);
		transition: transform 360ms var(--ease);
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		z-index: 200;
		box-shadow: -24px 0 60px -34px rgba(11, 26, 31, 0.55);
	}
	.header__nav[data-open="true"] { transform: translateX(0); }

	/* annulla underline/colore-link desktop dentro il drawer */
	.header__nav a::after { display: none; }
	.header__nav a { opacity: 1; }

	/* — Riga generica (item top) — */
	.header__nav-item {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
		width: 100%;
		border-bottom: 1px solid var(--line);
	}
	.header__nav-item--has-children { position: static; }

	/* Label/link della voce top */
	.header__nav-link {
		flex: 1 1 0;
		min-width: 0;
		display: flex;
		align-items: center;
		min-height: 56px;
		padding: 0.7rem var(--nav-pad);
		font-family: var(--sans);
		font-size: 1.0625rem;
		font-weight: 600;
		letter-spacing: -0.006em;
		text-transform: none;
		color: var(--ink);
		opacity: 1;
		white-space: normal;
	}
	.header__nav-link[aria-current="page"] { color: var(--brass); }
	/* il caret desktop dentro il link non serve: il toggle è il bottone dedicato */
	.header__nav-caret { display: none; }

	/* — Bottone toggle accordion (iniettato da JS) — */
	.nav-acc__btn {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 60px;
		min-height: 56px;
		margin: 0;
		padding: 0;
		border: 0;
		border-left: 1px solid var(--line);
		background: transparent;
		color: var(--ink-2);
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.nav-acc__btn svg {
		width: 18px; height: 18px;
		transition: transform 300ms var(--ease);
	}
	.nav-acc__btn[aria-expanded="true"] { color: var(--brass); }
	.nav-acc__btn[aria-expanded="true"] svg { transform: rotate(180deg); }

	/* — Pannelli accordion (livello 1 e annidati) — */
	.header__submenu,
	.header__submenu--nested {
		flex: 1 1 100%;
		width: 100%;
		box-sizing: border-box;
		position: static;
		transform: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		box-shadow: none;
		border: 0;
		border-radius: 0;
		background: var(--paper-tint, rgba(11,26,31,0.025));
		background-image: none;
		min-width: 0;
		margin: 0;
		padding: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 340ms var(--ease);
	}
	.header__submenu ul,
	ul.header__submenu--nested { display: block; width: 100%; margin: 0; padding: 0; list-style: none; }
	.header__submenu ul > li + li { border-top: 0; }

	/* righe interne (qualsiasi livello) */
	.header__submenu li { position: static; }
	.header__submenu li,
	.header__submenu--nested li {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
		width: 100%;
		box-sizing: border-box;
		border-top: 1px solid var(--line-2);
	}
	.header__submenu > ul > li:first-child,
	.header__submenu--nested > li:first-child { border-top: 0; }

	.header__submenu a,
	.header__submenu--nested a {
		flex: 1 1 0;
		min-width: 0;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 0;
		min-height: 48px;
		padding: 0.55rem var(--nav-pad);
		font-family: var(--sans);
		font-size: 0.95rem;
		font-weight: 500;
		line-height: 1.3;
		letter-spacing: 0;
		color: var(--ink-2);
		background: transparent;
		border: 0;
		border-radius: 0;
		white-space: normal;
	}
	.header__submenu a[aria-current="page"],
	.header__submenu--nested a[aria-current="page"] { color: var(--brass); }
	.header__submenu a::after,
	.header__submenu--nested a::after,
	.header__submenu li:not(.has-children) > a::after { content: none; }

	/* indentazione per livello (filo teal a sinistra come indicatore gerarchia) */
	.header__submenu > ul { box-shadow: inset 3px 0 0 -1px var(--line); }
	.header__submenu > ul > li > a { padding-left: calc(var(--nav-pad) + 1rem); }
	.header__submenu--nested > li > a { padding-left: calc(var(--nav-pad) + 2.1rem); }
	.header__submenu--nested .header__submenu--nested > li > a { padding-left: calc(var(--nav-pad) + 3.2rem); }

	.header__sub-caret { display: none; }

	/* — Footer drawer: lingua + CTA — */
	.header__nav-mobile-extra {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 1.2rem;
		width: 100%;
		margin-top: auto;
		padding: 1.6rem var(--nav-pad) 0.5rem;
		border-bottom: 0;
	}
	.header__nav-mobile-extra a { border: 0; }
	.header__nav-lang {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		font-family: var(--mono);
		font-size: 0.95rem;
		letter-spacing: 0.14em;
		color: var(--ink-2);
	}
	.header__nav-mobile-extra .header__nav-lang a { color: var(--ink-2); padding: 0; min-height: 0; }
	.header__nav-mobile-extra .header__nav-lang a[aria-current="true"] { color: var(--ink); font-weight: 700; }
	.header__nav-mobile-extra .header__nav-cta {
		display: inline-flex;
		align-items: center;
		align-self: stretch;
		justify-content: center;
		font-family: var(--mono);
		font-size: 0.8rem;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		font-weight: 600;
		background: var(--brass);
		color: var(--ink);
		padding: 0.95rem 1.4rem;
		border-radius: 2px;
		min-height: 0;
	}
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV — hardening difensivo (forza il layout accordion a piena
   larghezza sovrascrivendo qualsiasi residuo del dropdown desktop).
   Specificità alta (.header__nav …) + !important: vince a prescindere
   dall'ordine sorgente. Cintura e bretelle.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
	.header__nav-item--has-children::before { content: none !important; display: none !important; }

	.header__nav .header__submenu,
	.header__nav .header__submenu--nested {
		position: static !important;
		inset: auto !important;
		transform: none !important;
		width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		box-shadow: none !important;
		background-image: none !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
	}
	.header__nav .header__submenu > ul,
	.header__nav ul.header__submenu--nested {
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
	}
	.header__nav .header__submenu li {
		display: flex !important;
		flex-wrap: wrap !important;
		width: 100% !important;
		position: static !important;
	}
	.header__nav .header__submenu a,
	.header__nav .header__submenu--nested a {
		flex: 1 1 0 !important;
		min-width: 0 !important;
		width: auto !important;
		color: var(--ink-2) !important;
		white-space: normal !important;
		opacity: 1 !important;
		visibility: visible !important;
	}
	.header__nav .nav-acc__btn { flex: 0 0 auto !important; }
	/* voci principali: senza questo il padding sinistro lo azzererebbe la regola
	   desktop `.header__nav a {padding:0.3rem 0}` (0,1,1 > 0,1,0 di .header__nav-link). */
	.header__nav .header__nav-link { padding-left: var(--nav-pad) !important; padding-right: var(--nav-pad) !important; }
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH RESULTS
   ═══════════════════════════════════════════════════════════════ */
.search-results {
	background: var(--paper);
	padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}
.search-results__wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding-inline: var(--gutter);
}

.search-results__form {
	display: flex;
	gap: 0.5rem;
	max-width: 720px;
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	padding: 0.35rem 0.35rem 0.35rem 1.25rem;
	transition: border-color var(--t-base), box-shadow var(--t-base);
}
.search-results__form:focus-within {
	border-color: var(--teal);
	box-shadow: 0 0 0 4px rgba(31, 101, 113, 0.12);
}
.search-results__form input[type="search"] {
	flex: 1;
	background: transparent;
	border: 0;
	outline: 0;
	font: inherit;
	font-size: 0.95rem;
	color: var(--ink);
	min-width: 0;
}
.search-results__form button {
	background: var(--ink);
	color: var(--paper);
	border: 0;
	border-radius: 999px;
	padding: 0.6rem 1.4rem;
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background var(--t-base);
}
.search-results__form button:hover { background: var(--teal); }

.search-results__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.search-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.search-card:hover {
	border-color: var(--teal);
	box-shadow: 0 10px 30px -18px rgba(11, 26, 31, 0.18);
	transform: translateY(-1px);
}
.search-card__link {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: clamp(1rem, 2.5vw, 2rem);
	padding: 1rem 1.25rem 1rem 1rem;
	color: inherit;
	text-decoration: none;
	align-items: center;
}
.search-card__media {
	aspect-ratio: 16 / 11;
	background: var(--paper-2);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.search-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.search-card__placeholder {
	color: rgba(11, 26, 31, 0.22);
}
.search-card__body { min-width: 0; }
.search-card__type {
	display: inline-block;
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--teal);
	font-weight: 600;
	padding: 0.2rem 0.6rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	margin-bottom: 0.6rem;
}
.search-card.is-product .search-card__type { color: var(--brass); }
.search-card.is-post    .search-card__type { color: var(--ink); }
.search-card.is-page    .search-card__type { color: var(--teal); }
.search-card.is-project .search-card__type { color: var(--ink-2); }
.search-card__title {
	font-family: var(--serif);
	font-weight: 380;
	font-variation-settings: "opsz" 96;
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--ink);
	margin: 0 0 0.5rem;
}
.search-card__excerpt {
	font-size: 0.93rem;
	line-height: 1.55;
	color: var(--muted, rgba(11, 26, 31, 0.62));
	margin: 0 0 0.8rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.search-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--teal);
	font-weight: 600;
}
.search-card__cta svg { transition: transform var(--t-base); }
.search-card:hover .search-card__cta svg { transform: translateX(3px); }

@media (max-width: 720px) {
	.search-card__link {
		grid-template-columns: 1fr;
		gap: 0.9rem;
	}
	.search-card__media { aspect-ratio: 16 / 9; }
}

.search-results__pager {
	display: flex;
	gap: 0.3rem;
	margin: 2.5rem 0 0;
	justify-content: center;
	flex-wrap: wrap;
}
.search-results__pager a,
.search-results__pager span {
	min-width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.7rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-family: var(--mono);
	font-size: 0.78rem;
	color: var(--ink-2);
	text-decoration: none;
	transition: border-color var(--t-base), background var(--t-base), color var(--t-base);
}
.search-results__pager a:hover { border-color: var(--teal); color: var(--teal); }
.search-results__pager .current {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
}

.search-results__empty {
	background: var(--paper-tint);
	border: 1px dashed var(--line);
	border-radius: 10px;
	padding: clamp(2rem, 4vw, 3rem);
	text-align: center;
}
.search-results__empty p {
	font-size: 1.05rem;
	color: var(--ink-2);
	margin: 0 0 1.5rem;
}
.search-results__empty-cta {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

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