/* ==========================================================================
   Saba Engineering – stili del tema
   ========================================================================== */

@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url(../fonts/archivo-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url(../fonts/archivo-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url(../fonts/archivo-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Russo: Archivo non ha il cirillico, i titoli ricadono su Inter. Hindi: Noto Sans Devanagari.
   Con unicode-range il browser scarica questi file solo nelle pagine che ne hanno bisogno. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../fonts/inter-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../fonts/inter-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../fonts/inter-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(../fonts/inter-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url(../fonts/inter-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-devanagari-devanagari-400-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 500; font-display: swap; src: url(../fonts/noto-sans-devanagari-devanagari-500-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-devanagari-devanagari-600-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 700; font-display: swap; src: url(../fonts/noto-sans-devanagari-devanagari-700-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 800; font-display: swap; src: url(../fonts/noto-sans-devanagari-devanagari-800-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }

:root {
	--red: #c4002a;
	--red-dark: #9e0022;
	--ink: #16181d;
	--ink-2: #1f2229;
	--steel: #5b6472;
	--line: #e3e5e9;
	--mist: #f2f3f5;
	--white: #fff;
	--text: #2a2e36;
	--muted: #646b78;

	--f-head: "Archivo", "Inter", "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
	--f-body: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--max: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--pad-x: max(var(--gutter), calc((100% - var(--max)) / 2));
	--sec-y: clamp(64px, 9vw, 120px);
	--radius: 4px;
	--header-h: 76px;
	--shadow: 0 1px 2px rgba(22, 24, 29, .06), 0 8px 24px rgba(22, 24, 29, .08);
}

/* --- Base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font: 400 17px/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .18em; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* --- Pulsanti ----------------------------------------------------------- */

.btn,
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .75em 1.5em;
	border: 2px solid transparent; border-radius: var(--radius);
	font: 600 .95rem/1.2 var(--f-body); letter-spacing: .01em; text-decoration: none;
	cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:active, .wp-block-button__link:active { transform: translateY(1px); }
.btn--red, .is-style-saba-red .wp-block-button__link,
.wp-block-button:not([class*="is-style-saba"]) .wp-block-button__link { background: var(--red); color: #fff; }
.btn--red:hover, .is-style-saba-red .wp-block-button__link:hover { background: var(--red-dark); color: #fff; }
.is-style-saba-ghost .wp-block-button__link, .btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.is-style-saba-ghost .wp-block-button__link:hover, .btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.is-style-saba-light .wp-block-button__link, .btn--light { background: #fff; color: var(--ink); }
.is-style-saba-light .wp-block-button__link:hover, .btn--light:hover { background: var(--ink); color: #fff; }
.is-style-saba-dark .wp-block-button__link { background: var(--ink); color: #fff; }
.is-style-saba-dark .wp-block-button__link:hover { background: var(--red); color: #fff; }
/* Su sfondo chiaro il pulsante "bordo" diventa scuro. */
.sec:not(.hero):not(.sec--dark):not(.sec--ink):not(.cta) .is-style-saba-ghost .wp-block-button__link { color: var(--ink); border-color: var(--ink); }
.sec:not(.hero):not(.sec--dark):not(.sec--ink):not(.cta) .is-style-saba-ghost .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.wp-block-button { margin: 0; }

/* --- Topbar & header ---------------------------------------------------- */

.topbar { background: var(--ink); color: #b9bec8; font-size: .82rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; min-height: 36px; align-items: center; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__links { display: flex; gap: 24px; }
@media (max-width: 1100px) { .topbar__addr { display: none; } .topbar__links { width: 100%; justify-content: flex-end; } }
@media (max-width: 640px) { .topbar__links { justify-content: space-between; } .topbar__links a[href^="mailto"] { display: none; } }
@media (max-width: 400px) { .topbar__links { gap: 12px; font-size: .78rem; } }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: var(--shadow); }
.header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { flex: none; }
.brand img { width: auto; height: 46px; aspect-ratio: 512 / 139; max-width: none; } /* SVG: senza aspect-ratio il flex lo schiaccia */
.mainnav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 12px; color: var(--ink); font: 500 .95rem/1 var(--f-body); text-decoration: none; position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav .current-menu-item > a::after { transform: scaleX(1); }
.mainnav__cta { min-height: 42px; padding: .6em 1.1em; }
.nav a, .mainnav__cta { white-space: nowrap; }
/* Voci di menu più lunghe (francese, spagnolo, russo): menu più compatto prima del burger. */
@media (min-width: 1241px) and (max-width: 1440px) {
	.header__in, .mainnav { gap: 16px; }
	.nav a { padding: 10px 8px; font-size: .9rem; }
	.nav a::after { left: 8px; right: 8px; }
}
.header__tools { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); font: 600 .78rem/1 var(--f-body); letter-spacing: .06em; color: var(--ink); cursor: pointer; list-style: none; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.lang[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang summary:hover { border-color: var(--steel); }
.lang__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 168px; margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lang__list a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 14px; font: 500 .92rem/1.3 var(--f-body); color: var(--ink); text-decoration: none; }
.lang__list a small { font-weight: 600; font-size: .72rem; letter-spacing: .06em; color: var(--muted); }
.lang__list a:hover { background: var(--mist); color: var(--red); }
.lang__list a.is-current { color: var(--red); font-weight: 600; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger__bars, .burger__bars::before, .burger__bars::after { position: absolute; left: 11px; width: 24px; height: 2px; background: var(--ink); transition: transform .25s, top .25s, opacity .2s; content: ""; }
.burger__bars { top: 22px; }
.burger__bars::before { left: 0; top: -7px; }
.burger__bars::after { left: 0; top: 7px; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { top: 0; transform: rotate(45deg); background: var(--ink); }
.burger[aria-expanded="true"] .burger__bars::after { top: 0; transform: rotate(-45deg); background: var(--ink); }

@media (max-width: 1240px) {
	.header__in { gap: 12px; }
	.burger { display: block; }
	.mainnav {
		position: fixed; inset: calc(var(--header-h) + 36px) 0 auto 0; margin: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		padding: 8px var(--gutter) 24px;
		visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s;
		max-height: calc(100vh - var(--header-h) - 36px); overflow-y: auto;
	}
	.header.is-scrolled .mainnav { top: var(--header-h); }
	.mainnav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
	.nav { flex-direction: column; }
	.nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
	.nav a::after { display: none; }
	.mainnav__cta { margin-top: 20px; }
	.header__tools { margin-left: auto; }
}
@media (max-width: 420px) { .brand img { height: 38px; } }

/* --- Sezioni ------------------------------------------------------------ */

.entry > .wp-block-group, .sec { margin: 0; }
.wp-block-column { min-width: 0; }
.sec { padding: var(--sec-y) var(--pad-x); position: relative; }
.sec--tight { padding-top: 48px; padding-bottom: 48px; }
.sec--mist { background: var(--mist); }
.sec--dark, .sec--ink { background: var(--ink); color: #c6cad2; }
.sec--dark { background: radial-gradient(1200px 500px at 85% 0%, #2a2e37 0%, var(--ink) 60%); }
.sec--dark h2, .sec--dark h3, .sec--ink h2, .sec--ink h3, .sec--dark strong, .sec--ink strong { color: #fff; }
.sec > h2, .sec > .wp-block-group__inner-container > h2 { max-width: 780px; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	margin-bottom: 18px; color: var(--red);
	font: 700 .78rem/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 680px; }
.muted { color: var(--muted); font-size: .9rem; }

/* --- Hero --------------------------------------------------------------- */

.hero {
	min-height: clamp(460px, 62vh, 640px);
	display: flex; flex-direction: column; justify-content: center;
	padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 128px);
	background-color: var(--ink); background-size: cover; background-position: center;
	color: #d7dae0; isolation: isolate;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(22, 24, 29, .94) 0%, rgba(22, 24, 29, .82) 42%, rgba(22, 24, 29, .35) 100%);
}
.hero::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: min(38%, 420px); height: 6px; background: var(--red);
}
.hero h1 { color: #fff; max-width: 860px; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--red); }
.hero .lead { color: #d7dae0; }
.hero--home { min-height: clamp(520px, 78vh, 760px); background-image: url(../img/hero.jpg); }
.hero--home h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
.hero--company { background-image: url(../img/estrusore.jpg); }
.hero--overhauled { background-image: url(../img/rotativa.jpg); }
.hero--assistance { background-image: url(../img/iniettore.jpg); }
.hero--parts { background-image: url(../img/granuli.jpg); }
.hero--machines { background-image: url(../img/rotativa.jpg); }
.hero--services { background-image: url(../img/iniettore.jpg); }
.hero--safety { background-image: url(../img/pressa.jpg); background-position: center 30%; }
.hero--contact { background-image: url(../img/multistazione.jpg); min-height: 380px; }
@media (max-width: 700px) {
	.hero::before { background: linear-gradient(180deg, rgba(22, 24, 29, .78) 0%, rgba(22, 24, 29, .92) 100%); }
}

/* --- Numeri ------------------------------------------------------------- */

.wp-block-columns.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; }
.stat { padding: 8px 28px; border-left: 1px solid rgba(255, 255, 255, .12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { margin: 0 0 6px; color: #fff; font: 800 clamp(2rem, 3.6vw, 2.8rem)/1 var(--f-head); letter-spacing: -.02em; }
.stat__num::after { content: ""; display: block; width: 24px; height: 3px; margin-top: 14px; background: var(--red); }
.stat__label { margin: 0; font-size: .92rem; line-height: 1.5; color: #aab0bb; }
@media (max-width: 860px) {
	.wp-block-columns.stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
	.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 420px) { .stat { padding: 0 0 0 16px; } }

.wp-block-columns.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats--3 .stat__label strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 4px; }
@media (max-width: 860px) { .wp-block-columns.stats--3 { grid-template-columns: 1fr; } .stats--3 .stat { border-left: 0; padding-left: 0; } }

/* --- Card --------------------------------------------------------------- */

.wp-block-columns.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 40px 0 0; }
.wp-block-columns.cards--3 { grid-template-columns: repeat(3, 1fr); }
.wp-block-columns.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.sec--mist .card { border-color: transparent; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5em; }
.card p { font-size: .97rem; color: var(--muted); }
.card > :last-child { margin-bottom: 0; }
.card__img { margin: -28px -28px 24px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__img--contain { background: #fff; }
.card__img--contain img { object-fit: contain; padding: 12px; }
.card__link { margin-top: auto; padding-top: 8px; }
.card__code { margin: 0 0 6px; font: 800 2rem/1 var(--f-head); color: var(--red); letter-spacing: -.02em; }
.card__link a { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.card__link a::after { content: "→"; transition: transform .2s; }
.card__link a:hover::after { transform: translateX(4px); }
.cards--3:not(.cards--icons) .card { border-top: 3px solid var(--red); }
.card--feature { padding: 36px; border-top: 3px solid var(--red); }
.card--feature p { font-size: 1rem; }

/* Famiglie ricambi: numerazione automatica come "codice" */
.cards--icons { counter-reset: fam; }
.cards--icons .card { position: relative; padding-top: 64px; }
.cards--icons .card::before {
	counter-increment: fam; content: counter(fam, decimal-leading-zero);
	position: absolute; top: 24px; left: 28px;
	font: 800 .85rem/1 var(--f-head); letter-spacing: .1em; color: var(--red);
}
.cards--icons .card::after { content: ""; position: absolute; top: 31px; left: 58px; right: 28px; height: 1px; background: var(--line); }

@media (max-width: 1000px) {
	.wp-block-columns.cards, .wp-block-columns.cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.wp-block-columns.cards, .wp-block-columns.cards--3, .wp-block-columns.cards--2 { grid-template-columns: 1fr; }
}

/* --- Split immagine/testo ---------------------------------------------- */

.wp-block-columns.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin: 0; }
.wp-block-columns.split--reverse .split__media { order: 2; }
.wp-block-columns.split--form { grid-template-columns: 5fr 7fr; align-items: start; }
.split__text > :last-child { margin-bottom: 0; }
.split__media { position: relative; isolation: isolate; }
.photo { margin: 0; position: relative; }
.photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.split__media .photo::after {
	content: ""; position: absolute; z-index: -1; right: -16px; bottom: -16px; width: 55%; height: 55%;
	border-right: 3px solid var(--red); border-bottom: 3px solid var(--red);
}
.split--reverse .split__media .photo::after { right: auto; left: -16px; border-right: 0; border-left: 3px solid var(--red); }
@media (max-width: 860px) {
	.wp-block-columns.split, .wp-block-columns.split--form { grid-template-columns: 1fr; }
	.wp-block-columns.split--reverse .split__media { order: 0; }
	.split__media .photo::after { display: none; }
}

/* --- Liste ------------------------------------------------------------- */

.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding: 8px 0 8px 34px; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
	content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.card .checks li { font-size: .97rem; }

.tiles { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tiles li { background: var(--mist); padding: 28px; color: var(--muted); font-size: .97rem; transition: background-color .2s; }
.tiles li:hover { background: #fff; }
.tiles strong { display: block; margin-bottom: 6px; font: 700 1.1rem/1.3 var(--f-head); color: var(--ink); }
.tiles strong::before { content: ""; display: block; width: 24px; height: 3px; background: var(--red); margin-bottom: 16px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 48px 0 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--3 { grid-template-columns: repeat(3, 1fr); column-gap: 32px; row-gap: 48px; }
.steps--3 li::after { right: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 72px; font-size: .97rem; line-height: 1.6; }
.steps li::before {
	content: counter(step, decimal-leading-zero);
	position: absolute; top: 0; left: 0;
	font: 800 2.6rem/1 var(--f-head); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55);
}
.steps li::after { content: ""; position: absolute; top: 54px; left: 0; right: -24px; height: 2px; background: linear-gradient(90deg, var(--red) 0 40px, rgba(255, 255, 255, .14) 40px); }
.steps li:last-child::after { right: 0; }
.steps strong { display: block; margin-bottom: 6px; font: 700 1.1rem/1.3 var(--f-head); }
.sec:not(.sec--ink):not(.sec--dark) .steps li::before { -webkit-text-stroke-color: var(--steel); }
@media (max-width: 1000px) { .steps, .steps--4, .steps--3 { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } .steps li::after { right: 0; } }
@media (max-width: 560px) { .steps, .steps--4, .steps--3 { grid-template-columns: 1fr; } }

/* Chip: materiali, resine, marchi */
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 .9rem/1.2 var(--f-body); color: var(--ink); }
.sec--mist .chips li { border-color: transparent; }
.sec--dark .chips li, .sec--ink .chips li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.chips--brands li { padding: 12px 22px; font: 800 1rem/1 var(--f-head); letter-spacing: .02em; text-transform: uppercase; }

/* Logo partner */
.partner-logo { margin: 0 0 24px; }
.partner-logo img { width: 180px; height: auto; }

/* Citazione */
.quote p.quote__text { max-width: 900px; font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.35 var(--f-head); color: #fff; letter-spacing: -.01em; }
.quote p.quote__text::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--red); margin-bottom: 16px; }
.quote .quote__by { color: #9aa1ad; font-size: .95rem; }

/* --- Galleria & lightbox ----------------------------------------------- */

.gallery-grid { list-style: none; padding: 0; margin: 40px 0 0; columns: 4 240px; column-gap: 12px; }
.gallery-grid li { break-inside: avoid; margin-bottom: 12px; }
.gallery-grid a { display: block; overflow: hidden; border-radius: var(--radius); position: relative; background: var(--ink-2); }
.gallery-grid img { width: 100%; transition: transform .5s, opacity .3s; }
.gallery-grid a::after {
	content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
	background: rgba(196, 0, 42, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 4a7 7 0 105.2 11.7l3.6 3.6M11 8v6M8 11h6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 40px no-repeat;
}
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid--products { columns: 3 220px; }
.gallery-grid--products a { background: #fff; border: 1px solid var(--line); }
.gallery-grid--products img { padding: 12px; }
.gallery-grid a:hover::after, .gallery-grid a:focus-visible::after { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 11, 14, .94); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; width: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; font-size: 2rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%; }
.lightbox button:hover { background: var(--red); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* --- CTA --------------------------------------------------------------- */

.cta { background: var(--red); color: #fff; overflow: hidden; isolation: isolate; }
.cta::before {
	content: ""; position: absolute; z-index: -1; right: -80px; top: 50%; width: 640px; height: 200px; transform: translateY(-50%);
	background: url(../img/logo-mono.svg) center / contain no-repeat; opacity: .09;
}
.cta h2 { color: #fff; max-width: 760px; }
.cta p { font-size: 1.15rem; max-width: 640px; color: rgba(255, 255, 255, .9); }

/* --- Modulo contatti --------------------------------------------------- */

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
.sec--mist .form { border-color: transparent; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--ink); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
	width: 100%; padding: 12px 14px; border: 1px solid #cdd1d8; border-radius: var(--radius);
	font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 24, 29, .1); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.check.field { flex-direction: row; align-self: end; padding-bottom: 14px; font-weight: 400; }
.field input[type="file"] { padding: 10px; background: #f6f7f9; border-style: dashed; cursor: pointer; }
.field input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: var(--radius); background: var(--ink); color: #fff; font: 600 .85rem/1 var(--f-body); cursor: pointer; }
.req { color: var(--red); }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form__foot small { color: var(--muted); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__notice { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 500; }
.form__notice--ok { background: #e7f6ec; color: #135c2c; }
.form__notice--err { background: #fde8eb; color: #8a0b20; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } .form__foot .btn { width: 100%; } }

/* --- Contatti ---------------------------------------------------------- */

.offices { display: grid; gap: 24px; margin-bottom: 32px; }
.offices__item { padding-left: 20px; border-left: 3px solid var(--red); }
.offices__item h3 { margin-bottom: .35em; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.offices__item p { margin: 0; color: var(--ink); }
.depts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.depts li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.depts span { color: var(--muted); font-size: .82rem; }
.depts a { font-weight: 500; }

.map { margin-top: 32px; position: relative; height: clamp(320px, 38vw, 480px); border-radius: var(--radius); overflow: hidden; background: var(--ink) url(../img/multistazione.jpg) center / cover; }
.map::before { content: ""; position: absolute; inset: 0; background: rgba(22, 24, 29, .82); }
.map__placeholder { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #c6cad2; }
.map__placeholder strong { color: #fff; font-size: 1.15rem; }
.map__note { font-size: .85rem; max-width: 460px; }
.map__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px 0 0; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Pagine semplici, legali, 404 -------------------------------------- */

.pagehead { background: var(--ink); padding: 64px 0 48px; border-bottom: 6px solid var(--red); }
.pagehead h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.entry--plain { max-width: calc(800px + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter) 96px; }
.legal { max-width: 100%; }
.legal > .wp-block-group__inner-container, .legal { --measure: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p { max-width: var(--measure); }
.notfound { padding: 120px 0; text-align: left; }
.notfound .eyebrow { font-size: 1rem; }
.postlist { list-style: none; padding: 0; }
.postlist li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* --- Footer ------------------------------------------------------------ */

.footer { background: var(--ink); color: #9aa1ad; font-size: .93rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 72px; padding-bottom: 48px; }
.footer__brand img { width: 200px; height: auto; margin: -8px 0 16px -6px; }
.footer__name { color: #fff; font: 700 1.1rem/1.3 var(--f-head); margin-bottom: 8px; }
.footer__h { color: #fff; font: 700 .75rem/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.footer__h:not(:first-child) { margin-top: 24px; }
.footer__nav { list-style: none; margin: 0; padding: 0; }
.footer__nav li { margin-bottom: 8px; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; }
.footer__legal p { margin: 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* --- WhatsApp ---------------------------------------------------------- */

.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 60;
	width: 56px; height: 56px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
	transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { color: #fff; transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
@media print { .wa-float { display: none; } }

/* --- Animazioni d'ingresso (solo con JS e senza riduzione movimento) ----- */

@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
	.js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --- Aggiunte per i contenuti della presentazione aziendale ------------- */
.photo--contain img { object-fit: contain; background: #fff; padding: 16px; }
.tiles-title { margin-top: 56px; }
.lead.note { margin-top: 32px; padding-left: 20px; border-left: 3px solid var(--red); font-size: 1.05rem; }
.gallery-grid--products { margin-top: 32px; }

/* --- Lingue ------------------------------------------------------------- */
/* Devanagari: niente spaziatura negativa e più interlinea, le matre sopra e sotto la riga non vanno tagliate. */
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(hi) h4,
:lang(hi) .eyebrow, :lang(hi) .footer__h, :lang(hi) .quote p.quote__text { letter-spacing: 0; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { line-height: 1.35; }
body:lang(hi) { line-height: 1.8; }
/* Parole lunghe (russo, francese): a capo con il trattino invece di uscire dallo schermo su telefono. */
h1, h2, h3 { overflow-wrap: break-word; }
:lang(ru) h1, :lang(ru) h2 { hyphens: auto; }
/* Su telefono alcune parole russe ("восстановленные") non stanno nella riga alla dimensione normale. */
@media (max-width: 560px) {
	:lang(ru) h1, :lang(ru) .hero--home h1 { font-size: 2rem; }
}

/* --- Macchine usate ------------------------------------------------------ */
.hero--used { background-image: url(../img/rotativa-officina.jpg); }
.used-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.used-card { border-top: 3px solid var(--red); }
.used-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.used-cond, .used-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--mist); }
.used-badge--reserved { background: #e4ecfb; color: #1f4fa0; }
.used-badge--sold { background: #2a2d34; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.used-card--sold .card__img img { filter: grayscale(1); opacity: .7; }
.used-card__facts { font-weight: 600; color: var(--ink, #16181d); margin-top: -4px; }
.used-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; margin: 18px 0; background: #e3e5e9; border: 1px solid #e3e5e9; border-radius: var(--radius); overflow: hidden; }
.used-specs div { background: #fff; padding: 10px 14px; }
.used-specs dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7079; }
.used-specs dd { margin: 2px 0 0; font-weight: 700; }
.used-similar .used-grid { margin-bottom: 32px; }
.used-cond--working { background: #e3f3e6; color: #1d6b34; }
.used-cond--dismantled { background: #fff1d6; color: #7a4f00; }
.used-cond--overhaul { background: #fde4e6; color: #a3132a; }
.used-card .card__img { display: block; background: var(--mist); }
.used-card h3 a { color: inherit; text-decoration: none; }
.used-card h3 a:hover { color: var(--red); }
/* più specifica di .card p */
.used-card .used-card__ref { margin: 0 0 8px; font: 700 .78rem/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.used-nophoto { display: block; width: 100%; height: 100%; min-height: 200px; aspect-ratio: 4 / 3; background: var(--mist) url(../img/logo-mono.svg) center / 40% no-repeat; opacity: .5; }
@media (max-width: 1000px) { .used-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .used-grid { grid-template-columns: 1fr; } }

.used-detail { padding-top: clamp(32px, 5vw, 56px); }
.used-detail__back { margin-bottom: 24px; font-size: .95rem; }
.used-detail__back a { text-decoration: none; font-weight: 600; }
.used-detail__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.used-detail h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.used-detail__desc p { color: var(--text); }
.used-detail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1da851; color: #fff; }
.used-gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.used-gallery li:first-child { grid-column: 1 / -1; }
.used-gallery a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); aspect-ratio: 4 / 3; }
.used-gallery li:first-child a { aspect-ratio: 3 / 2; }
.used-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.used-gallery a:hover img { transform: scale(1.04); }
@media (max-width: 860px) {
	.used-detail__grid { grid-template-columns: 1fr; }
	.used-gallery { grid-template-columns: repeat(3, 1fr); }
}
.form input[readonly] { background: var(--mist); color: var(--ink); font-weight: 600; }
.used-tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 0; padding: 12px 16px; border-left: 3px solid var(--red); background: var(--mist); font-size: .9rem; color: var(--muted); }
.used-detail .used-tr { margin-top: 20px; }
.used-tr__btn { padding: 0; border: 0; background: none; font: 600 .9rem/1.4 var(--f-body); color: var(--red); cursor: pointer; text-decoration: underline; }
.used-tr__btn:hover { color: var(--red-dark); }
.used-tr__btn[hidden] { display: none; }
