/*
Theme Name: 	TESI
Description: 	Tema custom per TESI Tecnologia & Sicurezza S.r.l.
Version:     	1.0.0
Author:     	Ness Communication
Author URI:   https://www.nesscommunication.com
Text Domain: 	tesi
Domain Path: 	/languages
Requires at least: 6.5
Requires PHP: 7.4
License:    	GNU General Public License v3.0
License URI:	http://www.gnu.org/licenses/gpl-3.0.html
*/

/* =====================================================================
   GENERALE
   ===================================================================== */

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

:root {
	/* nero pieno solo in header e footer */
	--bg: #000000;
	--graphite: #2B2E31;
	--slate: #383C40;
	--steel: #4A4F54;
	--mist: #D7DBDE;
	--fog: #E5E8EA;
	--pearl: #F1F3F4;
	/* scala di grigi */
	--g-950: #16181A; --g-900: #1E2023; --g-800: #2B2E31; --g-700: #383C40; --g-600: #4A4F54;
	--g-500: #6A6F74; --g-400: #8E9398; --g-300: #B6BBBF; --g-200: #D2D6D9; --g-150: #DFE2E5;
	--g-100: #EBEDEF; --g-50: #F5F6F7;
	--surface: var(--slate);
	--surface2: var(--steel);
	--blue: #9A9A9A;
	--blue-light: #3cbdc8;
	--blue-dim: var(--slate);
	--teal-dark: #1F7F8A;
	--text: #F2F2F2;
	--muted: rgba(242,242,242,0.6);
	--line: rgba(255,255,255,0.18);
	--light: var(--fog);
	--card: #FFFFFF;
	--card-line: rgba(0,0,0,0.12);
	--ink: #1E1E1E;
	--ink-muted: rgba(30,30,30,0.62);
	--error: #B3261E;
	--font-display: 'Inter', sans-serif;
	--font-body: 'Inter', sans-serif;
}

body { background: var(--graphite); color: var(--text); font-family: var(--font-body); font-size: 1.0625em; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--graphite); }
::-webkit-scrollbar-thumb { background: var(--blue); }

/* Utility */
.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; position: relative; }
.section-header { margin-bottom: 60px; }
.section-header--center { text-align: center; }
.section-header--center .divider { margin: 10px auto 0; }
.label { font-family: var(--font-display); font-size: 1em; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); }
.section-title { font-family: var(--font-display); font-size: clamp(1.976em, 4.2vw, 3.576em); font-weight: 600; letter-spacing: 0.04em; line-height: 1.12; }
.divider { width: 40px; height: 1px; background: var(--blue); margin: 12px 0 22px; }

/* Scroll reveal: solo traslazione + opacità */
.reveal { opacity: 0; transform: translate3d(0, 48px, 0); transition: opacity 0.7s ease, transform 0.9s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-prep { will-change: transform, opacity; }
/* variante senza transform, per elementi con background-attachment:fixed */
.reveal-fade { opacity: 0; transition: opacity 1.2s ease; }
.reveal-fade.visible { opacity: 1; }
.reveal-left { opacity: 0; transform: translate3d(-60px, 0, 0); transition: opacity 0.7s ease, transform 0.9s cubic-bezier(.16,1,.3,1); }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translate3d(60px, 0, 0); transition: opacity 0.7s ease, transform 0.9s cubic-bezier(.16,1,.3,1); }
.reveal-right.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.6s; }

/* Titoli: le parole salgono da una maschera, una dopo l'altra */
.tw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.tw-i { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 0.9s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 70ms); }
.is-in .tw-i { transform: none; }

/* Video responsive (oEmbed) */
figure { margin: 0; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }


/* =====================================================================
   HEADER
   ===================================================================== */

header.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; height: auto; background: rgba(0, 0, 0, 0.92); transition: background 0.35s, box-shadow 0.35s; padding: 20px 40px; }
/* allo scroll la banda diventa bianca e il logo torna colorato */
header.site-header.header-scrolled { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 10px 30px rgba(0,0,0,0.06); }
.admin-bar header.site-header { top: 32px; }
.logo a { display: block; position: relative; }
.logo img { height: 50px; width: auto; display: block; transition: opacity 0.35s; }
.logo .logo-color { position: absolute; left: 0; top: 0; opacity: 0; }
.header-scrolled .logo .logo-light { opacity: 0; }
.header-scrolled .logo .logo-color { opacity: 1; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { position: relative; font-family: var(--font-body); font-size: .794em; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; text-transform: uppercase; transition: color 0.2s; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform 0.25s ease; }
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.nav-area::after { display: none; }
.main-nav a[aria-current="page"] { color: var(--text); }
.main-nav .nav-area { background: var(--blue-dim); color: var(--text); padding: 8px 18px; font-size: .706em; border: 1px solid var(--blue); transition: background 0.2s; }
.main-nav .nav-area:hover { background: var(--blue); }

/* Menu a tendina */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > .nav-trigger { font-size: .794em; }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; }
.nav-trigger svg { width: 10px; height: 10px; transition: transform 0.25s ease; }
.nav-item:hover .nav-trigger, .nav-item.is-open .nav-trigger { color: var(--text); }
.nav-item:hover .nav-trigger svg, .nav-item.is-open .nav-trigger svg { transform: rotate(180deg); }
.nav-dropdown {
	position: absolute; top: calc(100% + 24px); left: 50%; min-width: 280px; z-index: 110;
	background: #000; border: 1px solid var(--line); border-top: 2px solid var(--blue-light);
	box-shadow: 0 24px 48px rgba(0,0,0,0.35);
	opacity: 0; visibility: hidden; transform: translate(-50%, -8px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
/* "ponte" invisibile tra la voce e la tendina */
.nav-dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -26px; height: 26px; }
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown, .nav-item.is-open .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.nav-dropdown ul { list-style: none; margin: 0; padding: 10px 0; }
.nav-dropdown li + li { border-top: 1px solid rgba(255,255,255,0.06); }
.main-nav .nav-dropdown a {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 22px;
	font-size: .824em; letter-spacing: 0.02em; text-transform: none; color: rgba(242,242,242,0.75);
	transition: color 0.2s, background 0.2s, padding-left 0.25s ease;
}
.main-nav .nav-dropdown a::after { content: '→'; position: static; width: auto; height: auto; background: none; transform: none; color: var(--blue-light); opacity: 0; transition: opacity 0.2s, transform 0.25s; }
.main-nav .nav-dropdown a:hover, .main-nav .nav-dropdown a:focus-visible { color: var(--text); background: rgba(255,255,255,0.04); padding-left: 28px; outline: none; }
.main-nav .nav-dropdown a:hover::after, .main-nav .nav-dropdown a:focus-visible::after { opacity: 1; transform: none; }
.main-nav .nav-dropdown a[aria-current="page"] { color: var(--blue-light); }
.nav-dropdown .nav-all { border-top: 1px solid var(--line); }
.main-nav .nav-dropdown .nav-all a { font-size: .706em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-light); }

/* Social e lingue */
.header-social { display: flex; align-items: center; gap: 14px; margin-right: 4px; padding-right: 14px; border-right: 1px solid var(--line); }
.header-social a { color: var(--muted); display: flex; transition: color 0.2s, transform 0.2s; }
.header-social a svg { width: 15px; height: 15px; }
.header-social a:hover { color: var(--blue-light); transform: translateY(-2px); }
.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-switch a, .lang-switch span { font-size: .647em; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); padding: 2px 6px; text-decoration: none; transition: color 0.2s; }
.lang-switch a:hover { color: var(--text); }
.lang-switch .active { color: var(--blue); border-bottom: 1px solid var(--blue); }
.lang-switch .sep { color: var(--line); padding: 0; }

/* Header bianco (dopo lo scroll) */
.header-scrolled .main-nav a { color: var(--ink-muted); }
.header-scrolled .main-nav a:hover, .header-scrolled .main-nav a[aria-current="page"],
.header-scrolled .nav-item:hover .nav-trigger, .header-scrolled .nav-item.is-open .nav-trigger { color: var(--ink); }
.header-scrolled .main-nav a::after { background: var(--blue-light); }
/* le voci della tendina usano ::after per la freccia →: niente fondo, altrimenti diventa un quadrato */
.header-scrolled .main-nav .nav-dropdown a::after { background: none; color: var(--teal-dark); }
.header-scrolled .main-nav .nav-area { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.header-scrolled .main-nav .nav-area:hover { background: var(--ink); border-color: var(--ink); }
.header-scrolled .nav-dropdown { background: #fff; border-color: var(--card-line); border-top-color: var(--blue-light); box-shadow: 0 24px 48px rgba(0,0,0,0.12); }
.header-scrolled .nav-dropdown li + li { border-top-color: rgba(0,0,0,0.06); }
.header-scrolled .main-nav .nav-dropdown a { color: var(--ink-muted); }
.header-scrolled .main-nav .nav-dropdown a:hover, .header-scrolled .main-nav .nav-dropdown a:focus-visible { color: var(--ink); background: var(--g-50); }
.header-scrolled .main-nav .nav-dropdown a[aria-current="page"], .header-scrolled .main-nav .nav-dropdown .nav-all a { color: var(--teal-dark); }
.header-scrolled .nav-dropdown .nav-all { border-top-color: var(--card-line); }
.header-scrolled .header-social { border-right-color: var(--card-line); }
.header-scrolled .header-social a { color: var(--g-500); }
.header-scrolled .header-social a:hover { color: var(--teal-dark); }
.header-scrolled .lang-switch a, .header-scrolled .lang-switch span { color: var(--g-500); }
.header-scrolled .lang-switch a:hover { color: var(--ink); }
.header-scrolled .lang-switch .active { color: var(--teal-dark); border-bottom-color: var(--teal-dark); }
.header-scrolled .lang-switch .sep { color: var(--card-line); }

/* Hamburger (visibile solo da tablet) */
.header__icon-bar { display: none; background: none; border: 0; cursor: pointer; }

/* Breadcrumb: sovrapposto all'inizio della prima sezione, sotto l'header */
.breadcrumb-bar { position: absolute; top: 90px; left: 0; right: 0; z-index: 6; pointer-events: none; }
.admin-bar .breadcrumb-bar { top: 122px; }
.breadcrumb-bar .container { display: flex; align-items: center; justify-content: center; gap: 22px; padding-top: 28px; padding-bottom: 20px; }
.breadcrumb-bar--on-dark { color: rgba(242,242,242,0.85); --bc-current: var(--blue-light); }
.breadcrumb-bar--on-light { color: var(--ink); --bc-current: var(--teal-dark); }
.bc-line { flex: 1; height: 1px; background: currentColor; opacity: 0.22; }
.breadcrumb { pointer-events: auto; flex: 0 1 auto; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin: 0; padding: 0; font-size: .8125em; letter-spacing: 0.04em; }
.breadcrumb li { display: flex; align-items: center; gap: 12px; }
.breadcrumb li + li::before { content: ''; width: 5px; height: 5px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); opacity: 0.55; }
.breadcrumb a { color: inherit; opacity: 0.75; text-decoration: none; transition: opacity 0.2s, color 0.2s; }
.breadcrumb a:hover { opacity: 1; color: var(--bc-current); }
.breadcrumb a:focus-visible { outline: 1px solid var(--bc-current); outline-offset: 4px; opacity: 1; }
.breadcrumb [aria-current="page"] { color: var(--bc-current); font-weight: 600; }


/* =====================================================================
   FOOTER
   ===================================================================== */

footer.site-footer { position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--line); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 44px; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 20px; filter: brightness(0.8); }
.footer-brand p { font-size: .875em; color: var(--muted); line-height: 1.7; max-width: 260px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .824em; text-decoration: none; transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { border-color: var(--blue-light); color: var(--blue-light); transform: translateY(-2px); }
.footer-col h5 { font-family: var(--font-display); font-size: 1em; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .875em; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-contacts { margin-top: 32px; }
.footer-contacts p { font-size: .706em; color: var(--muted); line-height: 1.8; }
.footer-contacts a { color: inherit; text-decoration: none; }
.footer-contacts a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .75em; color: var(--muted); letter-spacing: 0.04em; }
.footer-bottom-links { display: flex; gap: 24px; list-style: none; }
.footer-bottom-links a { font-size: .75em; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--blue-light); }


/* =====================================================================
   HOME
   ===================================================================== */

.pg-home .section-title { font-size: clamp(1.882em, 4vw, 3.765em); line-height: 1.1; }
.pg-home .divider { margin: 10px 0 20px; }
.pg-home .section-header--center .divider { margin: 10px auto 0; }

/* Bottoni */
.pg-home .btn-primary, .pg-home .btn-secondary { font-family: var(--font-display); font-size: .875em; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 14px 32px; cursor: pointer; text-decoration: none; display: inline-block; }
.pg-home .btn-primary { background: var(--blue); color: var(--ink); border: none; transition: background 0.2s, transform 0.15s; }
.pg-home .btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }
.pg-home .btn-secondary { background: transparent; color: var(--text); border: 1px solid #fff; transition: border-color 0.2s, color 0.2s; }
.pg-home .btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-dark {
	font-family: var(--font-display); font-size: .875em; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	display: inline-block; text-decoration: none; color: #fff; background: var(--graphite); border: 1px solid var(--graphite);
	padding: 14px 32px; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-dark:hover { background: var(--blue-light); border-color: var(--blue-light); color: var(--ink); transform: translateY(-1px); }
.btn-dark:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }

/* Stella in filigrana */
.star-bg { position: absolute; right: -100px; top: 50%; width: 600px; height: 600px; opacity: 0.04; pointer-events: none; animation: starDrift 60s linear infinite; will-change: transform; }
@keyframes starDrift {
	from { transform: translateY(-50%) rotate(0deg); }
	to   { transform: translateY(-50%) rotate(360deg); }
}

/* Hero */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.hero-video-wrap { position: absolute; inset: 0; background: linear-gradient(135deg, #3A3F44 0%, #4A4F54 50%, #2B2E31 100%); }
.hero-video-wrap video { height: 100vh; width: 100%; object-fit: cover; display: block; }
.hero-video-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video-wrap::before {
	content: ''; position: absolute; inset: 0;
	background:
		radial-gradient(ellipse 60% 60% at 70% 50%, rgba(255,255,255,0.35) 0%, transparent 70%),
		radial-gradient(ellipse 30% 40% at 20% 80%, rgba(60,189,200,0.10) 0%, transparent 60%);
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(36,39,42,0.82) 35%, rgba(36,39,42,0.38) 75%, rgba(36,39,42,0.12) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 1200px; padding: 0 40px; margin: 0 auto; width: 100%; }
.hero-tag { font-family: var(--font-display); font-size: .875em; font-weight: 400; letter-spacing: 0.25em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.hero-tag::before { content: ''; display: block; width: 32px; height: 1px; background: var(--blue); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.824em, 6vw, 5.176em); font-weight: 600; line-height: 1.15; letter-spacing: 0.02em; margin-bottom: 24px; }
.hero h1 strong { font-weight: 700; color: var(--blue-light); display: block; }
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero h1 .word span { display: inline-block; transform: translateY(110%); animation: wordUp 0.7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: inherit; }
@keyframes wordUp { to { transform: translateY(0); } }
.hero-sub { font-size: 1em; color: #fff; max-width: 420px; line-height: 1.7; margin-bottom: 30px; font-weight: 300; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint span { font-size: .588em; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, #fff, transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* Gamma prodotti */
.pg-home #prodotti { background-color: var(--g-200); }
.pg-home #prodotti .section-title { color: var(--surface2); }
.pg-home .products-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; }
.pg-home .product-card {
	background-color: var(--surface); padding: 40px 32px;
	background-image: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 55%);
	border: 1px solid transparent;
	transition-property: opacity, border-color, background;
	transition-duration: 0.6s, 0.25s, 0.25s;
	cursor: pointer; position: relative; overflow: hidden;
	text-decoration: none; color: var(--text); display: block;
}
.pg-home .product-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.pg-home .product-card:hover { border-color: var(--line); background-color: var(--surface2); }
/* hover: il box si ingrandisce ed "esce" dalla griglia */
.pg-home .products-grid .product-card.visible { transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s cubic-bezier(.2,.8,.2,1), background-color 0.3s, border-color 0.3s, opacity 0.7s ease; }
.pg-home .products-grid .product-card:hover { transform: translate3d(0, -10px, 0) scale(1.05); box-shadow: 0 34px 60px rgba(20,24,28,0.38), 0 10px 20px rgba(20,24,28,0.2); z-index: 3; }
.pg-home .product-card:hover::after { transform: scaleX(1); }
.pg-home .card-icon { display: block; width: 60px; height: 60px; margin-bottom: 10px; color: var(--blue); opacity: 0.8; transition: transform 0.35s cubic-bezier(.2,.7,.3,1); }
.pg-home .card-icon svg { width: 100%; height: 100%; display: block; }
.pg-home .product-card:hover .card-icon { transform: scale(1.1) rotate(-4deg); }
.pg-home .card-title { font-family: var(--font-display); font-size: 1.882em; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 12px; }
.pg-home .card-desc { font-size: 1em; color: var(--muted); line-height: 1.65; }
.pg-home .card-arrow { position: absolute; top: 40px; right: 32px; color: var(--blue-light); font-size: 2em; transition: transform 0.2s, color 0.2s; }
.pg-home .product-card:hover .card-arrow { transform: translate(3px, -3px); color: var(--blue); }

/* Cosa facciamo */
.services-section { background-color: var(--g-900); padding: 110px 0 0; overflow: hidden; }
.svc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.svc-intro { max-width: 380px; color: var(--muted); font-size: 1.0625em; line-height: 1.7; }
.svc-list { list-style: none; margin: 0 auto; padding: 0 40px; max-width: 1440px; }
.svc-item { position: relative; }
.svc-item::before { content: ''; position: absolute; top: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); height: 1px; background: rgba(255,255,255,0.1); }
.svc-link { position: relative; display: grid; grid-template-columns: 72px 1fr 64px; align-items: center; gap: 10px 24px; padding: clamp(22px, 2.6vw, 38px) 0; color: var(--text); text-decoration: none; isolation: isolate; }
.svc-link::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; background: var(--g-800); transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(.7,0,.2,1); }
.svc-num { grid-row: 1 / span 2; font-family: var(--font-display); font-size: .875em; font-weight: 600; letter-spacing: 0.12em; color: var(--g-500); transition: color 0.3s; align-self: start; padding-top: 0.9em; }
.svc-word { display: block; font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; font-size: clamp(2.447em, 6.6vw, 6.965em); white-space: nowrap; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.svc-ch { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0 0.2em; margin-bottom: -0.2em; }
.svc-ch > span { display: inline-block; color: var(--g-700); transform: translate3d(0, 108%, 0); transition: transform 0.9s cubic-bezier(.16,1,.3,1), color 0.35s ease; transition-delay: calc(var(--d, 0) * 28ms), 0s; }
.svc-item.is-in .svc-ch > span { transform: none; }
.svc-ch.on > span { color: var(--text); }
.svc-desc { grid-column: 2; grid-row: 2; max-width: 560px; font-size: .9375em; line-height: 1.6; color: var(--muted); opacity: 0.55; transform: translate3d(0, 6px, 0); transition: opacity 0.4s, transform 0.4s; }
.svc-arrow { grid-column: 3; grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: var(--text); transition: background 0.35s, border-color 0.35s, transform 0.5s cubic-bezier(.2,.8,.2,1), color 0.35s; }
.svc-arrow svg { width: 20px; height: 20px; }
.svc-link:hover::before, .svc-link:focus-visible::before { transform: scaleX(1); }
.svc-link:hover .svc-word, .svc-link:focus-visible .svc-word { transform: translate3d(1.6vw, 0, 0); }
.svc-link:hover .svc-ch > span, .svc-link:focus-visible .svc-ch > span { color: var(--blue-light); }
.svc-link:hover .svc-num { color: var(--blue-light); }
.svc-link:hover .svc-desc, .svc-link:focus-visible .svc-desc { opacity: 1; transform: none; }
.svc-link:hover .svc-arrow, .svc-link:focus-visible .svc-arrow { background: var(--blue-light); border-color: var(--blue-light); color: var(--ink); transform: rotate(-45deg); }
.svc-link:focus-visible { outline: 2px solid var(--blue-light); outline-offset: -2px; }

/* Chi siamo */
.chi-siamo-section { background-color: var(--g-150); overflow: hidden; }
.chi-siamo-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 70px; align-items: center; }
.chi-siamo-section .label { color: var(--blue); }
.chi-siamo-section .section-title { color: var(--ink); }
.chi-siamo-text p { color: var(--ink-muted); font-size: 1.125em; line-height: 1.8; max-width: 520px; margin-top: 20px; }
.chi-siamo-figures { display: flex; flex-wrap: wrap; gap: 28px 48px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--card-line); max-width: 560px; }
.chi-siamo-figure strong { display: block; font-family: var(--font-display); font-size: clamp(1.694em, 2.6vw, 2.259em); font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -0.01em; }
.chi-siamo-figure span { display: block; margin-top: 8px; font-size: .875em; color: var(--ink-muted); line-height: 1.4; max-width: 15ch; }
.chi-siamo-cta { margin-top: 40px; }
.chi-siamo-visual { position: relative; aspect-ratio: 4/5; overflow: hidden; border: 1px solid rgba(0,0,0,0.08); background-size: cover; background-position: center; background-attachment: fixed; }

/* Spezzata emozionale */
.parallax-section { position: relative; height: 82vh; min-height: 480px; max-height: 760px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; background-size: cover; background-position: center; background-attachment: fixed; }
.parallax-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.7) 100%); }
.parallax-content { position: relative; z-index: 2; max-width: 680px; padding: 0 40px; }
.parallax-content .label { color: var(--blue-light); }
.parallax-title { font-family: var(--font-display); font-size: clamp(1.882em, 4vw, 3.765em); font-weight: 600; line-height: 1.1; letter-spacing: 0.02em; color: var(--text); margin: 16px 0 20px; }
.parallax-content p { color: rgba(242,242,242,0.82); font-size: 1.0625em; line-height: 1.7; }

/* KPI */
.kpi-section { background-color: var(--g-600); padding: 60px 0 100px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.kpi-item { padding: 0 40px; border-right: 1px solid var(--line); text-align: center; position: relative; }
.kpi-item:last-child { border-right: none; }
.kpi-value { font-family: var(--font-display); font-size: clamp(2.824em, 5vw, 4.706em); font-weight: 700; line-height: 1; color: var(--text); letter-spacing: -0.02em; }
.kpi-value span { color: var(--blue); }
.kpi-label { font-family: var(--font-display); font-size: .875em; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.kpi-line { width: 24px; height: 1px; background: var(--blue); margin: 10px auto 0; }

/* Clienti (marquee) */
.clients-section { padding: 60px 0 100px; background-color: var(--g-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 64px; padding-right: 64px; flex-shrink: 0; }
.client-item { display: flex; align-items: center; justify-content: center; height: 100px; transition: opacity 0.25s; white-space: nowrap; flex-shrink: 0; }
.client-item img { height: 100px; width: auto; max-width: none; transition: all .5s; filter: grayscale(1); }
.client-item img:hover { filter: grayscale(0); }
.client-item:hover { opacity: 0.8; }
@keyframes marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}


/* =====================================================================
   CATEGORIA PRODOTTO
   ===================================================================== */

/* Hero a tutto schermo: immagine su layer interno spostato in transform */
.cat-hero { position: relative; height: 100vh; min-height: 640px; max-height: 920px; display: flex; align-items: center; overflow: hidden; background: var(--g-800); }
.cat-hero-bg { position: absolute; left: 0; right: 0; top: -12%; bottom: -12%; background-size: cover; background-position: center 42%; will-change: transform; }
.cat-hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(36,39,42,0.80) 0%, rgba(36,39,42,0.50) 45%, rgba(36,39,42,0.18) 100%); }
.cat-hero-content { position: relative; z-index: 2; width: 100%; }
.cat-hero-content .section-title { color: var(--text); }
.cat-desc { color: rgba(242,242,242,0.8); font-size: 1.1875em; line-height: 1.8; margin-top: 20px; max-width: 900px; }
.cat-count { margin-top: 22px; font-size: .875em; color: var(--muted); letter-spacing: 0.04em; }
.cat-count strong { color: var(--text); }
.cat-features { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 38px; }
.cat-feature { display: flex; align-items: center; gap: 11px; font-size: .9375em; color: rgba(242,242,242,0.88); }
.cat-feature svg { width: 23px; height: 23px; flex-shrink: 0; color: var(--blue-light); opacity: 0.95; }

/* Filtri */
.filters-section { background-color: var(--g-700); padding: 26px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip { font-family: var(--font-display); font-size: .875em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: transparent; border: 1px solid var(--line); padding: 10px 20px; cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s; }
.filter-chip:hover { color: var(--text); border-color: var(--blue); transform: translateY(-2px); }
.filter-chip.active { background: var(--blue); color: var(--ink); border-color: var(--blue); }

/* Griglia prodotti a tutta larghezza */
.cat-grid-section { padding: 40px 0 110px; background-color: var(--g-150); }
.grid-wrap { padding: 0 40px; }
.pg-categoria .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 3px; margin-top: 8px; }
.pg-categoria .product-card {
	background: var(--card); border: 1px solid var(--card-line); text-decoration: none; color: var(--ink);
	display: block; position: relative; overflow: hidden; box-shadow: none;
	transition-property: opacity, transform, box-shadow, border-color;
	transition-duration: 0.6s, 0.45s, 0.3s, 0.3s;
	transition-timing-function: ease, cubic-bezier(.2,.7,.3,1), ease, ease;
	transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s;
}
.pg-categoria .product-card.is-hidden { display: none; }
.pg-categoria .product-card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(0,0,0,0.18); border-color: var(--blue); z-index: 2; }
.pg-categoria .product-card:hover .product-photo img { transform: scale(1.06); }
.pg-categoria .product-photo { aspect-ratio: 1/1; overflow: hidden; text-align: center; background: #fff; border-bottom: 1px solid var(--card-line); }
.pg-categoria .product-photo img { width: auto; height: 100%; margin: 0 auto; display: block; object-fit: contain; transition: transform 0.5s ease; padding: 34px; }
.pg-categoria .product-info { padding: 26px 28px 30px; }
.pg-categoria .card-title { font-family: var(--font-display); font-size: 1.765em; font-weight: 600; margin-bottom: 10px; }
.pg-categoria .card-desc { font-size: 1.0625em; color: var(--ink-muted); line-height: 1.65; margin-bottom: 18px; }
.pg-categoria .card-link { font-size: .8125em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); font-weight: 500; }
.pg-categoria .card-link::after { content: ' →'; transition: margin-left 0.2s; }
.pg-categoria .product-card:hover .card-link::after { margin-left: 4px; }
.cat-empty { color: var(--ink-muted); padding: 40px 0; }


/* =====================================================================
   PRODOTTO
   ===================================================================== */

html:has(body.pg-prodotto) { overflow-anchor: none; }
.pg-prodotto .section { padding: 90px 0; }
.pg-prodotto .section-title { font-size: clamp(1.788em, 3.6vw, 3.012em); line-height: 1.1; }

/* tutto su fondo bianco, testi scuri */
.flow { position: relative; background: #FFFFFF; color: var(--ink); }
.flow .label { color: var(--g-500); }

/* Hero */
.product-hero { padding: 190px 0 100px; }
.product-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.viewer-wrap { background: radial-gradient(circle at 50% 38%, #FFFFFF 0%, #EEF0F2 55%, #DCE0E3 100%); border: 1px solid var(--card-line); box-shadow: 0 20px 50px rgba(30,40,50,0.08); aspect-ratio: 1/1; position: relative; overflow: hidden; }
.viewer-wrap--img { display: flex; align-items: center; justify-content: center; padding: 8%; }
.viewer-wrap--img img { width: 100%; height: 100%; object-fit: contain; display: block; }
#viewer-canvas { width: 100%; height: 100%; display: block; cursor: grab; }
#viewer-canvas:active { cursor: grabbing; }
.viewer-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .8125em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); transition: opacity 0.4s; pointer-events: none; }
.viewer-loading.hidden { opacity: 0; }
.viewer-hint { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: .647em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); display: flex; align-items: center; gap: 8px; pointer-events: none; }
.viewer-hint::before { content: '↻'; }
.product-category { display: inline-block; font-family: var(--font-display); font-size: .875em; letter-spacing: 0.15em; text-transform: uppercase; color: var(--g-500); margin-bottom: 12px; }
.product-title { font-family: var(--font-display); font-size: clamp(2.259em, 4.5vw, 3.388em); font-weight: 600; line-height: 1.05; margin-bottom: 18px; }
.product-desc { color: var(--ink-muted); font-size: 1.125em; line-height: 1.75; max-width: 460px; margin-bottom: 28px; }
.product-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.product-badge { font-size: .8125em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); border: 1px solid var(--card-line); background: var(--g-50); padding: 8px 15px; }
.product-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Bottoni: grigi con la scritta azzurra */
.pg-prodotto .btn-primary, .pg-prodotto .btn-secondary {
	font-family: var(--font-display); font-size: .875em; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; padding: 15px 32px;
	transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.pg-prodotto .btn-primary { background: var(--g-700); color: #4FD1DC; border: 1px solid var(--g-700); }
.pg-prodotto .btn-primary:hover { background: var(--g-800); color: #8AE4EA; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,40,50,0.18); }
.pg-prodotto .btn-secondary { background: var(--g-150); color: #1B7FC0; border: 1px solid var(--g-200); }
.pg-prodotto .btn-secondary:hover { background: var(--g-200); color: #136AA3; transform: translateY(-2px); }
.pg-prodotto .btn-primary:focus-visible, .pg-prodotto .btn-secondary:focus-visible { outline: 2px solid #1B7FC0; outline-offset: 3px; }

/* Galleria: carosello 3 alla volta */
.gallery-section { padding: 90px 0; }
.gallery-section .container:first-child { margin-bottom: 44px; }
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: 20px; transition: transform 0.55s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.carousel-slide { flex: 0 0 calc((100% - 40px) / 3); aspect-ratio: 4/3; overflow: hidden; position: relative; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(0.15); transition: transform 0.6s ease; }
[data-zoom] { cursor: zoom-in; }
.carousel-slide:hover img { transform: scale(1.06); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid var(--card-line); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; box-shadow: 0 8px 20px rgba(0,0,0,0.16); transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease; }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow:hover { background: var(--blue-light); color: #fff; }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; }
.carousel-arrow:disabled:hover { background: #fff; color: var(--ink); }
.carousel-arrow.prev { left: -24px; }
.carousel-arrow.next { right: -24px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); border: none; padding: 0; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.carousel-dot.active { background: var(--blue-light); transform: scale(1.35); }
.gallery-section .carousel-dot { background: rgba(30,30,30,0.22); }
.gallery-section .carousel-dot.active, .related-section .carousel-dot.active { background: var(--blue-light); }

/* Descrizione */
.description-section { color: var(--ink); }
.description-section .section-title { color: var(--ink); }
.description-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.description-text p { font-size: 1.125em; line-height: 1.85; color: var(--ink-muted); margin-bottom: 20px; }
.description-text p:last-child { margin-bottom: 0; }
.description-text ul, .description-text ol { margin: 0 0 20px 1.2em; color: var(--ink-muted); }

/* Scheda prodotto a fisarmonica */
.datasheet-section { padding: 70px 0 90px; color: var(--ink); }
.datasheet-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.pg-prodotto .datasheet-intro .section-title { color: var(--ink); font-size: clamp(1.506em, 2.8vw, 2.259em); }
.datasheet-note { font-size: .875em; color: var(--ink-muted); }
.acc-item { border-top: 1px solid rgba(30,30,30,0.16); }
.acc-item:last-child { border-bottom: 1px solid rgba(30,30,30,0.16); }
.acc-heading { margin: 0; font-size: 1em; }
.acc-trigger { width: 100%; display: grid; grid-template-columns: 1fr auto 44px; align-items: center; gap: 24px; padding: 26px 0; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.acc-name { font-family: var(--font-display); font-size: clamp(1.271em, 2.2vw, 1.788em); font-weight: 600; letter-spacing: 0.02em; transition: color 0.3s; }
.acc-hint { font-size: .875em; color: var(--ink-muted); white-space: nowrap; }
.acc-icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(30,30,30,0.22); display: flex; align-items: center; justify-content: center; transition: background 0.3s, border-color 0.3s, transform 0.45s cubic-bezier(.2,.7,.2,1); }
.acc-icon svg { width: 16px; height: 16px; }
.acc-trigger:hover .acc-name { color: var(--teal-dark); }
.acc-trigger:hover .acc-icon { border-color: var(--blue-light); }
.acc-trigger:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 4px; }
.acc-item.is-open .acc-icon { transform: rotate(180deg); background: var(--blue-light); border-color: var(--blue-light); }
.acc-item.is-open .acc-name { color: var(--ink); }
.acc-panel { height: 0; overflow: hidden; }
.acc-item.is-open .acc-panel { height: auto; }
.acc-inner { padding: 4px 0 44px; }
.acc-item.is-open .acc-inner { animation: accIn 0.55s cubic-bezier(.16,1,.3,1) both; }
.acc-item.is-leaving .acc-inner { animation: accOut 0.22s ease forwards; }
@keyframes accIn { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes accOut { from { opacity: 1; } to { opacity: 0; } }

/* Contenuti dei pannelli */
.specs-drawing { position: relative; background: #fff; border: 1px solid var(--card-line); padding: 28px; display: flex; align-items: center; justify-content: center; }
.specs-drawing img { width: 100%; height: auto; display: block; }
.specs-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 28px; margin-top: 36px; }
.spec-tile dt { font-size: .75em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 7px; }
.spec-tile dd { font-size: 1.1875em; font-weight: 600; color: var(--ink); }
.app-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
.app-list li { font-size: 1.0625em; color: var(--ink); padding-left: 30px; position: relative; }
.app-list li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 9px; height: 9px; transform: rotate(45deg); border: 1.5px solid var(--blue-light); }
.cert-list { display: flex; flex-wrap: wrap; gap: 14px; }
.cert-chip { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--card-line); padding: 14px 20px; font-size: .9375em; color: var(--ink); }
.cert-chip::before { content: '✓'; color: var(--teal-dark); font-weight: 700; }
.equipment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.equip-title { font-size: .8125em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
.equip-list { list-style: none; }
.equip-list li { font-size: 1em; color: var(--ink); padding: 11px 0 11px 30px; position: relative; border-bottom: 1px solid rgba(30,30,30,0.1); }
.equip-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal-dark); font-weight: 700; }
.equip-list-optional li::before { content: '+'; }

/* Download */
.download-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.download-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border: 1px solid var(--card-line); padding: 22px 26px; text-decoration: none; color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,0.05); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.download-item:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.12); border-color: var(--blue-light); }
.download-name { font-size: 1.0625em; }
.download-meta { font-size: .8125em; color: var(--ink-muted); margin-top: 3px; }
.download-arrow { color: var(--teal-dark); font-size: 1.2em; }
.download-item.locked { background: #FAFAFA; }
.download-lock { display: flex; color: var(--ink-muted); transition: color 0.25s ease; }
.download-lock svg { width: 19px; height: 19px; }
.download-item.locked:hover .download-lock { color: var(--teal-dark); }

/* Accessori suggeriti */
.accessories-section { padding: 56px 0 64px; color: var(--ink); }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.row-head .label { font-size: .8125em; }
.row-title-sm { font-family: var(--font-display); font-size: clamp(1.224em, 2vw, 1.506em); font-weight: 600; color: var(--ink); margin-top: 6px; }
.row-nav { display: flex; gap: 8px; }
.row-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(30,30,30,0.22); background: transparent; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s, opacity 0.2s; }
.row-nav button svg { width: 16px; height: 16px; }
.row-nav button:hover:not(:disabled) { background: var(--blue-light); border-color: var(--blue-light); }
.row-nav button:disabled { opacity: 0.3; cursor: default; }
.acc-scroller { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0; padding-bottom: 10px; scrollbar-width: thin; }
.acc-scroller::-webkit-scrollbar { height: 3px; }
.acc-scroller::-webkit-scrollbar-thumb { background: rgba(30,30,30,0.25); }
.accessory-card { flex: 0 0 236px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,0.7); border: 1px solid var(--card-line); padding: 20px 20px 18px; text-decoration: none; color: var(--ink); transition: background 0.25s, border-color 0.25s, transform 0.25s; }
.accessory-card:hover { background: #fff; border-color: var(--blue-light); transform: translateY(-3px); }
.accessory-icon { width: 34px; height: 34px; color: var(--teal-dark); }
.accessory-icon svg { width: 100%; height: 100%; }
.accessory-name { font-size: 1em; font-weight: 600; line-height: 1.3; }
.accessory-desc { font-size: .8125em; color: var(--ink-muted); line-height: 1.5; flex: 1; }
.accessory-link { font-size: .75em; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-dark); }

/* Prodotti correlati */
.related-section { padding: 90px 0 110px; color: var(--ink); }
.related-section .section-title { color: var(--ink); }
.related-section .row-head { margin-bottom: 40px; }
.related-section .row-nav button { width: 48px; height: 48px; }
.related-card { width: 100%; display: flex; flex-direction: column; background: #fff; text-decoration: none; color: var(--ink); box-shadow: 0 10px 30px rgba(30,40,50,0.08); border: 1px solid rgba(0,0,0,0.06); height: 100%; transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s; }
.related-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(30,40,50,0.16); }
.related-photo { aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid rgba(0,0,0,0.06); padding: 6%; }
.related-photo img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.5s ease; }
.related-card:hover .related-photo img { transform: scale(1.05); }
.related-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.related-cat { font-size: .75em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.related-title { font-family: var(--font-display); font-size: 1.765em; font-weight: 600; line-height: 1.15; }
.related-desc { font-size: 1em; color: var(--ink-muted); line-height: 1.6; flex: 1; }
.related-link { margin-top: 8px; font-size: .8125em; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-dark); }
/* min-width:0: le card hanno sempre la stessa larghezza */
.related-section .carousel-slide { aspect-ratio: auto; overflow: visible; min-width: 0; display: flex; }
.related-section .carousel-track { align-items: stretch; }
.related-section .carousel-viewport { padding: 6px 0 14px; margin: -6px 0 -14px; }
.related-section .carousel-dot { background: rgba(30,30,30,0.18); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; visibility: hidden; }
.lb.is-open { visibility: visible; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(18,20,22,0.92); opacity: 0; transition: opacity 0.4s ease; }
.lb.is-open .lb-backdrop { opacity: 1; }
.lb-img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,0.45); will-change: transform; }
.lb-btn { position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(0,0,0,0.35); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s 0.15s, background 0.2s; }
.lb.is-open .lb-btn { opacity: 1; }
.lb-btn:hover { background: var(--blue-light); color: var(--ink); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; margin-top: -26px; }
.lb-next { right: 24px; top: 50%; margin-top: -26px; }
.lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,0.7); font-size: .8125em; letter-spacing: 0.14em; opacity: 0; transition: opacity 0.3s 0.15s; }
.lb.is-open .lb-count { opacity: 1; }
.lb[data-single] .lb-prev, .lb[data-single] .lb-next, .lb[data-single] .lb-count { display: none; }

/* Nome prodotto che si riduce e resta in alto a destra */
.product-dock { position: fixed; inset: 0; z-index: 90; pointer-events: none; visibility: hidden; }
.product-dock.is-active { visibility: visible; }
.dock-name, .dock-plate { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.dock-name { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: normal; color: var(--ink); white-space: nowrap; }
.dock-plate { transform: none; border-radius: 999px; background: #FFFFFF; box-shadow: 0 10px 30px rgba(20,30,40,0.14); border: 1px solid var(--card-line); opacity: 0; cursor: pointer; padding: 0; }
.dock-plate:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }
.product-dock.is-docked .dock-plate { pointer-events: auto; }


/* =====================================================================
   CONTATTI
   ===================================================================== */

.contact-section { padding: 190px 0 0; background-color: var(--g-100); }
.contact-section .section-title { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: start; }
.contact-intro-text p { color: var(--ink-muted); font-size: 1.1875em; line-height: 1.8; max-width: 420px; margin-top: 20px; }
.contact-intro-text { margin-bottom: 44px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.info-block { border-top: 1px solid var(--card-line); padding-top: 20px; }
.info-label { font-size: .8125em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.info-value { font-size: 1.0625em; color: var(--ink); }
.info-value a { color: var(--ink); text-decoration: none; }
.info-value a:hover { color: var(--blue); }

.contact-form { background: var(--card); border: 1px solid var(--card-line); border-radius: 2px; padding: 48px; box-shadow: 0 18px 44px rgba(0,0,0,0.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .8125em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.field input, .field textarea { width: 100%; background: var(--light); border: 1px solid var(--card-line); color: var(--ink); font-family: var(--font-body); font-size: 1.0625em; padding: 14px 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field textarea:focus { border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(63,188,201,0.18); }
.field textarea { resize: vertical; min-height: 120px; }
.req { color: var(--error); margin-left: 2px; }
.form-required-note { font-size: .8125em; color: var(--ink-muted); margin: -4px 0 20px; }
/* errori di validazione */
.field-error { display: none; font-size: .8125em; color: var(--error); margin-top: 6px; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); background: #FDF6F5; }
.field.has-error .field-error, .field-check.has-error .field-error, .captcha-wrap.has-error .field-error { display: block; }
.field-check.has-error label { color: var(--error); }
.form-alert { display: none; margin: 0 0 20px; padding: 12px 16px; font-size: .875em; line-height: 1.5; border-left: 3px solid var(--error); background: #FDF6F5; color: #7A1A14; }
.form-alert.visible { display: block; }
/* campo trappola anti-bot */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Motivo della richiesta */
.topic-group { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.topic-group legend { font-size: .8125em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; padding: 0; }
.topic-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.topic-chip { position: relative; cursor: pointer; display: block; }
.topic-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic-box { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; padding: 14px 14px 13px; background: var(--light); border: 1px solid var(--card-line); font-family: var(--font-display); font-size: .75em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.35; color: var(--ink-muted); transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s; }
.topic-box svg { width: 24px; height: 24px; color: var(--ink-muted); transition: color 0.2s; }
.topic-chip:hover .topic-box { border-color: var(--blue-light); color: var(--ink); transform: translateY(-2px); }
.topic-chip input:checked + .topic-box { background: #fff; border-color: var(--teal-dark); color: var(--ink); box-shadow: inset 0 -3px 0 var(--blue-light); }
.topic-chip input:checked + .topic-box svg { color: var(--teal-dark); }
.topic-chip input:focus-visible + .topic-box { outline: 2px solid var(--blue-light); outline-offset: 2px; }

/* reCAPTCHA, privacy, invio */
.captcha-wrap { margin: 0 0 24px; }
.captcha-wrap .g-recaptcha { min-height: 78px; }
.field-check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 4px 0 22px; }
.field-check .field-error { flex-basis: 100%; margin-top: 0; padding-left: 26px; }
.field-check input { margin-top: 3px; accent-color: var(--blue); }
.field-check label { font-size: .875em; color: var(--ink-muted); line-height: 1.5; flex: 1; }
.field-check a { color: var(--blue); }
.pg-contatti .btn-primary { font-family: var(--font-display); font-size: .9375em; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; background: var(--blue); color: var(--ink); padding: 16px 36px; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s; width: 100%; }
.pg-contatti .btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }
.pg-contatti .btn-primary[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.form-note { font-size: .8125em; color: var(--ink-muted); margin-top: 16px; text-align: center; }
.form-success { display: none; text-align: center; padding: 40px 0; }
.form-success.visible { display: block; }
.form-success h3 { font-family: var(--font-display); font-size: 1.765em; color: var(--ink); margin-bottom: 12px; }
.form-success p { color: var(--ink-muted); font-size: 1.0625em; }

/* Mappa: si apre fino ai bordi dello schermo durante lo scroll */
.map-block { margin-top: 110px; padding-bottom: 0; }
.map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.map-title { font-family: var(--font-display); font-size: clamp(1.412em, 2.6vw, 2.071em); font-weight: 600; color: var(--ink); line-height: 1.2; }
.map-link { font-size: .8125em; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding-bottom: 6px; }
.map-link:hover { color: var(--ink); }
.map-frame { --mx: 0px; --my: 0%; position: relative; height: clamp(520px, 78vh, 860px); clip-path: inset(var(--my) var(--mx)); background: var(--g-200); }
.map-embed { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.2) contrast(1.02); }


/* =====================================================================
   PAGINE INTERNE — componenti comuni (Servizi, Chi siamo, Azienda)
   ===================================================================== */

/* Testata */
.page-hero { position: relative; min-height: 78vh; max-height: 860px; display: flex; align-items: flex-end; padding: 240px 0 90px; overflow: hidden; background: var(--g-800); }
.page-hero--compact { min-height: 0; padding: 230px 0 70px; }
.page-hero-bg { position: absolute; left: 0; right: 0; top: -12%; bottom: -12%; background-size: cover; background-position: center; will-change: transform; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(36,39,42,0.86) 0%, rgba(36,39,42,0.58) 50%, rgba(36,39,42,0.25) 100%); }
.page-hero-content { position: relative; z-index: 2; width: 100%; }
.page-hero .section-title { color: var(--text); max-width: 1050px; }
.page-hero-intro { color: rgba(242,242,242,0.82); font-size: 1.1875em; line-height: 1.75; max-width: 760px; margin-top: 22px; }

/* Navigazione area Azienda */
.azienda-nav { background: var(--g-700); padding: 18px 0; }
.azienda-nav .container { display: flex; flex-wrap: wrap; gap: 10px; }
.azienda-nav a { font-size: .8125em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 10px 18px; text-decoration: none; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.azienda-nav a:hover { color: var(--text); border-color: var(--blue); }
.azienda-nav a.is-current { background: var(--blue-light); border-color: var(--blue-light); color: var(--ink); }

/* Elenco con marcatore a rombo */
.check-list { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.check-list li { position: relative; padding-left: 30px; font-size: 1.0625em; color: var(--ink); line-height: 1.5; }
.check-list li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 9px; height: 9px; transform: rotate(45deg); border: 1.5px solid var(--blue-light); }
.check-list--light li { color: var(--text); }

/* Numeri */
.figures { display: flex; flex-wrap: wrap; gap: 28px 48px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--card-line); }
.figure strong { display: block; font-family: var(--font-display); font-size: clamp(1.694em, 2.6vw, 2.259em); font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -0.01em; }
.figure span { display: block; margin-top: 8px; font-size: .875em; color: var(--ink-muted); line-height: 1.4; max-width: 18ch; }
.figures--big { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 0; padding: 0; border: 0; }
.figures--big .figure { border-top: 1px solid var(--card-line); padding-top: 22px; }
.figures--big .figure strong { font-size: clamp(2.259em, 4vw, 3.765em); }

/* Invito al contatto */
.cta-band { background: var(--g-800); padding: 80px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band-title { font-family: var(--font-display); font-size: clamp(1.506em, 3vw, 2.635em); font-weight: 600; line-height: 1.15; color: var(--text); }
.cta-band p { color: var(--muted); margin-top: 10px; font-size: 1.0625em; }
.btn-dark--light { background: var(--blue-light); border-color: var(--blue-light); color: var(--ink); }
.btn-dark--light:hover { background: #fff; border-color: #fff; color: var(--ink); }


/* =====================================================================
   SERVIZI
   ===================================================================== */

/* Indice sticky delle ancore */
.svc-index { position: sticky; top: 90px; z-index: 50; background: var(--g-900); border-bottom: 1px solid var(--line); }
.admin-bar .svc-index { top: 122px; }
.svc-index-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.svc-index-inner::-webkit-scrollbar { display: none; }
.svc-index a { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 20px 22px; font-size: .8125em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.svc-index a span { color: var(--g-500); font-weight: 600; transition: color 0.2s; }
.svc-index a:hover { color: var(--text); }
.svc-index a.is-current { color: var(--text); border-bottom-color: var(--blue-light); }
.svc-index a.is-current span { color: var(--blue-light); }

/* Sezioni dei servizi */
.svc-detail { padding: 110px 0; background: #fff; color: var(--ink); scroll-margin-top: 160px; }
.svc-detail--alt { background: var(--g-100); }
.svc-detail .label { color: var(--g-500); display: inline-flex; align-items: center; gap: 12px; }
.svc-detail-num { color: var(--teal-dark); }
.pg-servizi .svc-detail .section-title { color: var(--ink); font-size: clamp(1.647em, 3vw, 2.635em); line-height: 1.15; letter-spacing: 0.01em; }
.svc-detail-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: start; }
.svc-detail--alt .svc-detail-grid { grid-template-columns: 0.9fr 1.1fr; }
.svc-detail--alt .svc-detail-media { order: -1; }
.svc-detail-grid--full, .svc-detail--alt .svc-detail-grid--full { grid-template-columns: 1fr; max-width: 900px; }
.svc-detail-body { margin-top: 8px; }
.svc-detail-body p { color: var(--ink-muted); font-size: 1.125em; line-height: 1.8; margin-top: 18px; }
.svc-detail-body h3 { font-size: 1.235em; font-weight: 600; color: var(--ink); margin-top: 32px; }
.svc-detail-body strong { color: var(--ink); font-weight: 600; }
.svc-detail-media { position: sticky; top: 180px; aspect-ratio: 4/5; overflow: hidden; border: 1px solid var(--card-line); background: var(--g-200); }
.svc-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* FAQ */
.faq-section { background: var(--g-150); color: var(--ink); }
.faq-section .section-title { color: var(--ink); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-item { border-top: 1px solid rgba(30,30,30,0.16); }
.faq-item:last-child { border-bottom: 1px solid rgba(30,30,30,0.16); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 1.125em; font-weight: 600; color: var(--ink); transition: color 0.2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal-dark); }
.faq-item summary:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 4px; }
.faq-icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(30,30,30,0.22); display: flex; align-items: center; justify-content: center; transition: transform 0.35s, background 0.3s, border-color 0.3s; }
.faq-icon svg { width: 14px; height: 14px; }
.faq-item[open] .faq-icon { transform: rotate(180deg); background: var(--blue-light); border-color: var(--blue-light); }
.faq-item p { color: var(--ink-muted); font-size: 1.0625em; line-height: 1.75; padding: 0 60px 26px 0; }


/* =====================================================================
   CHI SIAMO
   ===================================================================== */

.about-intro { background: var(--g-150); color: var(--ink); }
.about-intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.about-intro-text p { color: var(--ink-muted); font-size: 1.1875em; line-height: 1.85; }
.about-intro-text p + p { margin-top: 20px; }

/* Organizzazione */
.dept-section { background: var(--g-900); }
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.dept-card { background-color: var(--surface); background-image: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 55%); padding: 36px 32px; border-top: 2px solid transparent; transition: border-color 0.3s, background-color 0.3s; }
.dept-card:hover { background-color: var(--surface2); border-top-color: var(--blue-light); }
.dept-card h3 { font-size: 1.294em; font-weight: 600; line-height: 1.25; margin-bottom: 12px; }
.dept-card p { color: var(--muted); font-size: .9375em; line-height: 1.65; }

/* Filiera */
.process-section { background: #fff; color: var(--ink); }
.process-section .section-title { color: var(--ink); }
.process-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.process-intro { max-width: 460px; color: var(--ink-muted); font-size: 1.0625em; line-height: 1.75; }
.process-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--card-line); }
.process-steps li { position: relative; padding: 26px 40px 30px 0; border-bottom: 1px solid var(--card-line); font-size: 1.125em; font-weight: 600; color: var(--ink); line-height: 1.35; }
.process-steps li::after { content: '→'; position: absolute; right: 18px; top: 26px; color: var(--blue-light); }
.process-steps li:nth-child(4n)::after, .process-steps li:last-child::after { content: none; }
.process-num { display: block; font-size: .765em; color: var(--g-500); letter-spacing: 0.12em; margin-bottom: 10px; }

/* Progetti */
.projects-section { background: var(--g-100); color: var(--ink); }
.projects-section .section-title { color: var(--ink); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { background: #fff; border: 1px solid var(--card-line); display: flex; flex-direction: column; transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(30,40,50,0.14); }
.project-photo { aspect-ratio: 4/3; overflow: hidden; background: var(--g-200); }
.project-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.project-card:hover .project-photo img { transform: scale(1.05); }
.project-photo--empty { display: flex; align-items: center; justify-content: center; color: var(--g-400); }
.project-photo--empty svg { width: 64px; height: 64px; }
.project-body { padding: 26px 28px 30px; }
.project-meta { font-size: .75em; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-dark); font-weight: 600; }
.project-title { font-size: 1.647em; font-weight: 600; line-height: 1.2; margin: 6px 0 12px; }
.project-body p:last-child { color: var(--ink-muted); font-size: 1em; line-height: 1.65; }

/* Sostenibilità */
.sustain-section { background: var(--g-800); }
.sustain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.sustain-media { aspect-ratio: 4/3; overflow: hidden; }
.sustain-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sustain-text p { color: var(--muted); font-size: 1.0625em; line-height: 1.8; }

/* Rete nazionale */
.network-title { font-family: var(--font-display); font-size: clamp(1.506em, 3vw, 2.635em); font-weight: 600; line-height: 1.15; color: var(--text); margin-top: 14px; }
.network-text { color: var(--muted); max-width: 640px; margin: 14px auto 0; font-size: 1.0625em; line-height: 1.7; }
.kpi-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Approfondimenti */
.more-section { background: #fff; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.more-card { display: flex; flex-direction: column; gap: 10px; padding: 40px 34px; background: var(--g-100); color: var(--ink); text-decoration: none; transition: background 0.3s; }
.more-card:hover { background: var(--g-150); }
.more-card .label { font-size: .8125em; color: var(--g-500); }
.more-title { font-family: var(--font-display); font-size: 1.882em; font-weight: 600; line-height: 1.15; }
.more-link { margin-top: 18px; font-size: .8125em; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-dark); }
.more-card--accent { background: var(--g-800); color: var(--text); }
.more-card--accent:hover { background: var(--g-700); }
.more-card--accent .label { color: var(--muted); }
.more-card--accent .more-link { color: var(--blue-light); }


/* =====================================================================
   AZIENDA — CERTIFICAZIONI E POLITICA PER LA QUALITÀ
   ===================================================================== */

/* Certificazioni */
.cert-section { background: var(--g-100); color: var(--ink); }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.cert-card { background: #fff; border: 1px solid var(--card-line); display: flex; flex-direction: column; }
.cert-preview { aspect-ratio: 3/4; background: var(--g-50); border-bottom: 1px solid var(--card-line); padding: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cert-preview img { max-height: 100%; width: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.cert-preview--empty { color: var(--g-300); }
.cert-preview--empty svg { width: 80px; height: 80px; }
.cert-body { padding: 26px 28px 30px; }
.cert-title { font-size: 1.412em; font-weight: 600; line-height: 1.25; }
.cert-body p { color: var(--ink-muted); margin-top: 10px; line-height: 1.65; }
.cert-link { display: inline-block; margin-top: 18px; font-size: .8125em; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-dark); text-decoration: none; }
.cert-link:hover { color: var(--ink); }

/* Politica per la qualità */
.quality-section { background: #fff; color: var(--ink); }
.quality-wrap { max-width: 1000px; }
.quality-lead { font-size: clamp(1.294em, 2.2vw, 1.765em); line-height: 1.5; font-weight: 500; color: var(--ink); padding-left: 28px; border-left: 3px solid var(--blue-light); }
.quality-text p { color: var(--ink-muted); font-size: 1.125em; line-height: 1.85; margin-top: 28px; }
.quality-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 60px; padding-top: 48px; border-top: 1px solid var(--card-line); }
.quality-block h2 { font-size: 1.294em; font-weight: 600; line-height: 1.3; }
.quality-closing { margin-top: 56px; font-size: 1.1875em; font-style: italic; line-height: 1.6; color: var(--ink); }


/* =====================================================================
   PAGINE GENERICHE (page.php, index.php, 404)
   ===================================================================== */

.page-plain { background: #fff; color: var(--ink); padding: 200px 0 110px; min-height: 60vh; }
.page-plain .section-title { color: var(--ink); margin-bottom: 40px; }
.entry-content { max-width: 860px; font-size: 1.0625em; line-height: 1.8; color: var(--ink-muted); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); font-weight: 600; line-height: 1.25; margin-top: 1.8em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content a { color: var(--teal-dark); }
.post-list-item { padding: 28px 0; border-bottom: 1px solid var(--card-line); }
.post-list-item h2 { font-size: 1.5em; font-weight: 600; }
.post-list-item h2 a { color: var(--ink); text-decoration: none; }
.post-list-item h2 a:hover { color: var(--teal-dark); }
.pagination { margin-top: 40px; display: flex; gap: 8px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--card-line); color: var(--ink); text-decoration: none; }


/* =====================================================================
   TABLET (max-width: 900px)
   ===================================================================== */

@media (max-width: 900px) {

	/* ── Generale ── */
	.container { padding: 0 24px; }
	.section { padding: 72px 0; }

	/* ── Header + menu mobile ── */
	header.site-header { padding: 10px 20px; }
	.admin-bar header.site-header { top: 46px; }
	.header-social { display: none; }
	.lang-switch { margin-left: auto; margin-right: 14px; }
	.main-nav {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 1; width: min(86vw, 380px);
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 100px 28px 40px; background: #000; border-left: 1px solid var(--line);
		overflow-y: auto; transform: translateX(100%); transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
	}
	.main-nav.show-menu { transform: translateX(0); }
	.main-nav > a, .main-nav > .nav-item { border-bottom: 1px solid var(--line); }
	.main-nav > a, .nav-item > .nav-trigger { font-size: .941em; padding: 16px 0; }
	.main-nav a::after { display: none; }
	.nav-item { flex-direction: column; align-items: stretch; }
	.nav-trigger { justify-content: space-between; }
	.nav-dropdown, .nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { position: static; display: none; min-width: 0; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: transparent; transition: none; }
	.nav-item.is-open .nav-dropdown { display: block; transform: none; }
	.nav-dropdown::before { display: none; }
	.nav-dropdown ul { padding: 0 0 12px; }
	.main-nav .nav-dropdown a { padding: 11px 0 11px 14px; }
	.main-nav .nav-dropdown a:hover, .main-nav .nav-dropdown a:focus-visible { padding-left: 18px; }
	.main-nav > a.nav-area { align-self: flex-start; margin-top: 28px; border-bottom: 1px solid var(--blue); padding: 10px 18px; font-size: .765em; }
	.header__icon-bar { display: block; position: relative; z-index: 2; width: 24px; height: 50px; transition-duration: 0.5s; }
	.header__icon-bar .icon-left, .header__icon-bar .icon-right { transition-duration: 0.5s; position: absolute; height: 2px; width: 12px; top: 50%; transform: translateY(-50%); background-color: #fff; }
	.header__icon-bar .icon-left { left: 0; }
	.header__icon-bar .icon-right { left: 11px; }
	.header__icon-bar .icon-left::before, .header__icon-bar .icon-left::after,
	.header__icon-bar .icon-right::before, .header__icon-bar .icon-right::after { transition-duration: 0.5s; position: absolute; left: 0; width: 12px; height: 2px; background-color: #fff; content: ""; }
	.header__icon-bar .icon-left::before, .header__icon-bar .icon-right::before { top: -7px; }
	.header__icon-bar .icon-left::after, .header__icon-bar .icon-right::after { top: 7px; }
	.header__icon-bar.open .icon-left, .header__icon-bar.open .icon-right { background: transparent; }
	.header__icon-bar.open .icon-left::before { transform: rotateZ(45deg) scaleX(1.4) translate(2px, 2px); }
	.header__icon-bar.open .icon-left::after { transform: rotateZ(-45deg) scaleX(1.4) translate(2px, -2px); }
	.header__icon-bar.open .icon-right::before { transform: rotateZ(-45deg) scaleX(1.4) translate(-2px, 2px); }
	.header__icon-bar.open .icon-right::after { transform: rotateZ(45deg) scaleX(1.4) translate(-2px, -2px); }
	.header-scrolled .header__icon-bar:not(.open) .icon-left, .header-scrolled .header__icon-bar:not(.open) .icon-right,
	.header-scrolled .header__icon-bar:not(.open) span::before, .header-scrolled .header__icon-bar:not(.open) span::after { background-color: var(--ink); }
	/* il pannello del menu resta nero anche con l'header bianco */
	.header-scrolled .main-nav a, .header-scrolled .main-nav .nav-dropdown a { color: rgba(242,242,242,0.75); background: transparent; }
	.header-scrolled .main-nav a:hover, .header-scrolled .main-nav a[aria-current="page"], .header-scrolled .nav-item.is-open .nav-trigger { color: var(--text); }
	.header-scrolled .main-nav .nav-dropdown a[aria-current="page"], .header-scrolled .main-nav .nav-dropdown .nav-all a { color: var(--blue-light); }
	.header-scrolled .main-nav .nav-area { background: var(--blue-dim); border-color: var(--blue); color: var(--text); }
	.header-scrolled .nav-dropdown li + li { border-top-color: rgba(255,255,255,0.06); }
	.breadcrumb-bar { top: 70px; }
	.admin-bar .breadcrumb-bar { top: 116px; }
	.breadcrumb-bar .container { gap: 14px; padding-top: 20px; padding-bottom: 14px; }
	.bc-line { max-width: 40px; }

	/* ── Footer ── */
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

	/* ── Home ── */
	.hero-content { padding: 0 24px; }
	.pg-home .products-grid { grid-template-columns: 1fr 1fr; }
	.services-section { padding: 80px 0 0; }
	.svc-list { padding: 0 24px; }
	.svc-link { grid-template-columns: 40px 1fr; gap: 6px 14px; padding: 22px 0; }
	.svc-num { padding-top: 0.4em; }
	.svc-word { font-size: clamp(1.976em, 10.5vw, 3.2em); white-space: normal; }
	.svc-desc { grid-column: 2; opacity: 1; transform: none; font-size: .875em; }
	.svc-arrow { display: none; }
	.chi-siamo-grid { grid-template-columns: 1fr; gap: 48px; }
	.chi-siamo-visual { order: -1; aspect-ratio: 16/9; }
	.parallax-section { height: 60vh; min-height: 380px; }
	.parallax-section, .chi-siamo-visual { background-attachment: scroll; }
	.kpi-grid { grid-template-columns: repeat(2,1fr); }
	.kpi-item { border-bottom: 1px solid var(--line); padding: 24px 20px; }

	/* ── Categoria ── */
	.grid-wrap { padding: 0 24px; }
	.cat-hero { height: 86vh; min-height: 520px; }
	.cat-features { gap: 20px 26px; }
	.pg-categoria .products-grid { grid-template-columns: 1fr 1fr; }

	/* ── Prodotto ── */
	.product-hero { padding: 160px 0 72px; }
	.product-hero-grid { grid-template-columns: 1fr; gap: 44px; }
	.carousel-slide { flex-basis: calc((100% - 20px) / 2); }
	.carousel-arrow.prev { left: 8px; }
	.carousel-arrow.next { right: 8px; }
	.description-layout { grid-template-columns: 1fr; gap: 24px; }
	.specs-tiles { grid-template-columns: 1fr 1fr; }
	.app-list { grid-template-columns: 1fr; }
	.equipment-grid { grid-template-columns: 1fr; gap: 12px; }
	.download-list { grid-template-columns: 1fr; }
	.acc-trigger { grid-template-columns: 1fr 38px; gap: 14px; padding: 20px 0; }
	.acc-hint { display: none; }
	.acc-icon { width: 38px; height: 38px; }
	.accessory-card { flex-basis: 200px; }
	.related-title { font-size: 1.412em; }

	/* ── Contatti ── */
	.contact-section { padding: 160px 0 0; }
	.contact-grid { grid-template-columns: 1fr; gap: 48px; }
	.form-row { grid-template-columns: 1fr; gap: 0; }
	.contact-form { padding: 30px; }
	.topic-chips { grid-template-columns: 1fr 1fr; }
	.map-block { margin-top: 70px; }
	.map-frame { height: 70vh; }

	/* ── Pagine interne (comuni) ── */
	.page-hero { min-height: 0; padding: 180px 0 64px; }
	.page-hero--compact { padding: 170px 0 52px; }
	.figures--big { gap: 28px; }
	.cta-band { padding: 56px 0; }

	/* ── Servizi ── */
	.svc-index { top: 70px; }
	.admin-bar .svc-index { top: 116px; }
	.svc-index a { padding: 16px 14px; }
	.svc-detail { padding: 72px 0; scroll-margin-top: 130px; }
	.svc-detail-grid, .svc-detail--alt .svc-detail-grid { grid-template-columns: 1fr; gap: 36px; }
	.svc-detail-media, .svc-detail--alt .svc-detail-media { order: -1; position: static; aspect-ratio: 16/9; }
	.faq-grid { grid-template-columns: 1fr; gap: 24px; }
	.faq-item p { padding-right: 0; }

	/* ── Chi siamo ── */
	.about-intro-grid { grid-template-columns: 1fr; gap: 48px; }
	.dept-grid { grid-template-columns: 1fr 1fr; }
	.process-steps { grid-template-columns: 1fr 1fr; }
	.process-steps li::after { content: none; }
	.projects-grid { grid-template-columns: 1fr 1fr; }
	.sustain-grid { grid-template-columns: 1fr; gap: 40px; }
	.more-grid { grid-template-columns: 1fr; }
	.kpi-grid--3 { grid-template-columns: repeat(3, 1fr); }

	/* ── Azienda ── */
	.quality-columns { grid-template-columns: 1fr; gap: 40px; margin-top: 44px; padding-top: 36px; }

	/* ── Pagine generiche ── */
	.page-plain { padding: 160px 0 72px; }
}


/* =====================================================================
   SMARTPHONE (max-width: 560px)
   ===================================================================== */

@media (max-width: 560px) {

	/* ── Footer ── */
	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }

	/* ── Home ── */
	.hero h1 { font-size: 2.635em; }
	.pg-home .products-grid { grid-template-columns: 1fr; }
	.kpi-grid { grid-template-columns: 1fr 1fr; }
	.client-item, .client-item img { height: 70px; }
	.marquee-group { gap: 40px; padding-right: 40px; }

	/* ── Categoria ── */
	.pg-categoria .products-grid { grid-template-columns: 1fr; }

	/* ── Prodotto ── */
	.carousel-slide { flex-basis: 100%; }
	.specs-tiles { grid-template-columns: 1fr; }
	.row-head { flex-wrap: wrap; }

	/* ── Contatti ── */
	.contact-form { padding: 24px 20px; }

	/* ── Chi siamo ── */
	.figures--big { grid-template-columns: 1fr 1fr; gap: 24px; }
	.dept-grid, .process-steps, .projects-grid { grid-template-columns: 1fr; }
	.kpi-grid--3 { grid-template-columns: 1fr; }

	/* ── Azienda ── */
	.cert-grid { grid-template-columns: 1fr; }
	.quality-lead { padding-left: 18px; }
}


/* =====================================================================
   ACCESSIBILITÀ: movimento ridotto e dispositivi touch
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
	.reveal, .reveal-fade, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
	.tw-i { transform: none; transition: none; }
	.star-bg, .marquee-track { animation: none; }
	.hero h1 .word span { animation: none; transform: none; }
	.svc-ch > span { transform: none; transition: color 0.3s; }
	.acc-item .acc-inner { animation: none !important; }
}

@media (hover: none) {
	.pg-home .products-grid .product-card:hover { transform: none; box-shadow: none; }
}
