/* ==========================================================================
   NORDOVEST — Cablaggi e quadri elettrici industriali
   Foglio di stile unico. Palette dal logo: grafite (nero), rosso (linea),
   giallo (fulmine, solo dettagli su fondo scuro).
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* palette */
  --ink: #111418;          /* grafite — fondi scuri, titoli */
  --ink-2: #1a1f26;
  --ink-3: #252b33;
  --text: #2b3138;
  --muted: #5b6470;
  --bg: #ffffff;
  --bg-alt: #f2f4f6;
  --line: #dfe3e8;
  --accent: #d7262e;       /* rosso logo — SOLO azioni */
  --accent-dark: #b51c23;
  --volt: #f5c518;         /* giallo fulmine — dettagli su scuro */
  --on-dark: #e9ecef;
  --on-dark-muted: #a7b0bb;
  /* tipografia */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  /* sistema */
  --shadow-sm: 0 2px 8px rgba(17,20,24,.06);
  --shadow-md: 0 12px 30px rgba(17,20,24,.10);
  --shadow-lg: 0 24px 60px rgba(17,20,24,.22);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1240px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--volt); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: var(--on-dark-muted); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--muted); }
.section-dark .lead { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-banner .eyebrow { color: var(--volt); }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  padding: 15px 26px; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(215,38,46,.28); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90; height: var(--nav-h);
  background: rgba(17,20,24,.92); border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.3); background: rgba(17,20,24,.97); }
.site-header.has-menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.nav-brand { display: flex; align-items: center; flex: none; }
.nav-brand img { width: 150px; height: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: 10px 14px; color: var(--on-dark); text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: .98rem; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-menu a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-menu a[aria-current="page"] { color: var(--volt); }
.nav-menu .nav-cta a { background: var(--accent); color: #fff; padding: 11px 20px; margin-left: 10px; }
.nav-menu .nav-cta a:hover { background: var(--accent-dark); }
.nav-menu .nav-cta a[aria-current="page"] { color: #fff; }

/* ---------- MENU MOBILE (da templates/menu.css) ---------- */
body.is-locked { position: fixed; width: 100%; overflow: hidden; top: var(--scroll-lock-top, 0); overflow-anchor: none; }
.nav-overlay { display: none; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; position: relative; z-index: 2;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 89; background: rgba(0,0,0,.55);
    border: 0; padding: 0; cursor: pointer; opacity: 0; visibility: hidden;
    transition: opacity .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--ink-2);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px;
    padding: 100px 22px 40px; box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain;
    border-left: 3px solid var(--accent);
    transform: translateX(100%); visibility: hidden;
    transition: transform .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-menu.is-open { transform: none; visibility: visible; transition: transform .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu a { padding: 14px 16px; font-size: 1.08rem; }
  .nav-menu .nav-cta a { margin: 14px 0 0; text-align: center; }
}

/* ---------- HERO home ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark-muted);
  min-height: min(calc(100svh - var(--nav-h)), 880px); display: flex; align-items: center;
  padding: 90px 0 110px; isolation: isolate;
}
.hero::after { /* velo per la leggibilità del testo */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(17,20,24,.96) 0%, rgba(17,20,24,.82) 38%, rgba(17,20,24,.15) 70%, rgba(17,20,24,0) 100%);
}
.hero-wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero .container { position: relative; }
.hero-content { max-width: 640px; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--volt); }
.hero .lead { color: #c3cad3; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 44px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 28px 40px; margin: 0; padding: 0; list-style: none; }
.hero-badges li { display: flex; flex-direction: column; }
.hero-badges strong { font-family: var(--font-display); font-size: 1.9rem; color: #fff; line-height: 1.1; }
.hero-badges span { font-size: .88rem; color: var(--on-dark-muted); }

/* fili */
.hw-grid line { stroke: rgba(255,255,255,.035); stroke-width: 1; }
.hw-sec path { fill: none; stroke: #2a3039; stroke-width: 6; stroke-linecap: round; }
.hw-strip .hw-term { fill: #3b4350; stroke: #4f5865; }
.hw-strip .hw-screw { fill: #9aa3ad; }
.hw-strip .hw-tag { fill: #e9ecef; }
.hw-strip .hw-label { font: 600 13px/1 var(--font-display); fill: #111418; text-anchor: middle; }
.hw-ferrule { fill: #c9ced4; }
.hw-ties rect { fill: #0b0d10; stroke: #3a414b; stroke-width: 1.5; }
.wire path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wire .w-sh { stroke: #07090b; stroke-width: 11; opacity: .7; }
.wire .w-core { stroke-width: 8; }
.wire .w-hl { stroke: rgba(255,255,255,.28); stroke-width: 2; transform: translateY(-2px); }
.wire .w-pulse {
  stroke: #fff6c9; stroke-width: 3.5; stroke-dasharray: 34 966; stroke-dashoffset: 1000; opacity: 0;
  filter: url(#glow);
}
/* disegno iniziale dei fili */
.wire .w-sh, .wire .w-core, .wire .w-hl { stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: wire-draw 1.9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); }
.wire .w-pulse { animation: wire-pulse 3.6s linear infinite; animation-delay: calc(2s + var(--i) * 410ms); }
@keyframes wire-draw { to { stroke-dashoffset: 0; } }
@keyframes wire-pulse {
  0% { stroke-dashoffset: 1000; opacity: 0; }
  6% { opacity: 1; }
  88% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.hw-strip, .hw-ferrule, .hw-ties { opacity: 0; animation: fade-in .8s var(--ease) 1.2s forwards; }
@keyframes fade-in { to { opacity: 1; } }
/* parallasse leggera (impostata dal JS) */
.hero-wires { transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.03); transition: transform .6s var(--ease); }

/* striscia "conduttori" sotto l'hero */
.wire-rule { display: block; height: 14px; width: 100%; background:
  linear-gradient(#1f6fd6 0 0) 0 0/100% 2px no-repeat,
  linear-gradient(#7a4426 0 0) 0 4px/100% 2px no-repeat,
  linear-gradient(#d7262e 0 0) 0 8px/100% 2px no-repeat,
  repeating-linear-gradient(90deg, #f5c518 0 14px, #1f9d55 14px 22px) 0 12px/100% 2px no-repeat;
  background-color: var(--ink);
}

/* ---------- card vantaggi ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px 30px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature::before { /* "filo" che si accende al passaggio */
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--volt));
  transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: var(--volt); margin-bottom: 22px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }
.feature .num { position: absolute; top: 22px; right: 26px; font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: #c3c9d0; letter-spacing: .1em; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.split-media .tag {
  position: absolute; left: -18px; bottom: 30px; background: var(--ink); color: #fff;
  padding: 18px 22px; border-radius: 12px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--volt);
}
.split-media .tag strong { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.split-media .tag span { font-size: .85rem; color: var(--on-dark-muted); }
.check-list { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 6px;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c518' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- servizi ---------- */
.service-card {
  background: var(--ink-2); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,.06); transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(245,197,24,.4); }
.service-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; filter: saturate(.9); transition: transform .8s var(--ease); }
.service-card:hover img { transform: scale(1.04); }
.service-card .media { overflow: hidden; position: relative; }
.service-card .media .code {
  position: absolute; top: 14px; left: 14px; background: #e9ecef; color: var(--ink);
  font: 700 .78rem/1 var(--font-display); letter-spacing: .08em; padding: 7px 10px; border-radius: 4px;
}
.service-card .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { color: #fff; }
.service-card p { color: var(--on-dark-muted); font-size: 1rem; flex: 1; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; text-decoration: none; color: #fff; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--volt); }
.link-arrow:hover::after { transform: translateX(4px); }
.section:not(.section-dark) .link-arrow { color: var(--accent-dark); }

/* ---------- settori ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.sector { padding: 34px 30px 30px 0; border-bottom: 1px solid var(--line); }
.sector + .sector { padding-left: 30px; border-left: 1px solid var(--line); }
.sector .code { font: 700 .8rem/1 var(--font-display); color: var(--accent-dark); letter-spacing: .14em; display: block; margin-bottom: 14px; }
.sector p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- processo ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 10px, transparent 10px 18px); }
.steps li { position: relative; counter-increment: s; }
.steps li::before {
  content: counter(s, decimal-leading-zero); display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 50%; background: var(--ink); border: 2px solid var(--volt); color: var(--volt);
  font: 700 1rem/1 var(--font-display); margin-bottom: 22px; position: relative;
}
.steps h3 { color: #fff; font-size: 1.15rem; }
.steps p { font-size: .98rem; margin: 0; }

/* ---------- galleria ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; position: relative; background: var(--ink); }
.gallery img { aspect-ratio: 1/1; object-fit: cover; width: 100%; transition: transform .7s var(--ease), opacity .3s; }
.gallery a:hover img { transform: scale(1.05); opacity: .85; }
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-strip img { border-radius: 10px; aspect-ratio: 1/1; object-fit: cover; width: 100%; }

.lightbox {
  position: fixed; inset: 0; z-index: 150; background: rgba(8,10,12,.94); display: none;
  align-items: center; justify-content: center; padding: 60px 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 84vh; width: auto; border-radius: 8px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2);
  width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--on-dark-muted); font-size: .9rem; }

/* ---------- blog card ---------- */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent-dark); }
.post-card p { color: var(--muted); font-size: 1rem; flex: 1; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark-muted); padding: clamp(64px, 8vw, 100px) 0; isolation: isolate; }
.cta-banner::before {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(circle, rgba(215,38,46,.28), transparent 60%);
}
.cta-banner .wires-bg .w-pulse { filter: url(#glow2); }
.cta-banner .wires-bg .w-core { stroke-width: 5; }
.cta-banner .wires-bg { position: absolute; right: 0; top: 0; height: 100%; width: 50%; z-index: -1; opacity: .5; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: .3em; }
.cta-inner p { margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- page hero (interne) ---------- */
.page-hero { position: relative; background: var(--ink); color: var(--on-dark-muted); padding: clamp(70px, 9vw, 110px) 0 clamp(56px, 7vw, 80px); overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 20%, rgba(17,20,24,.6)); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 820px; }
.page-hero .lead { color: #c3cad3; max-width: 660px; margin: 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 26px; font-size: .88rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #5b6470; }
.breadcrumb a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: var(--volt); }

/* ---------- servizi pagina ---------- */
.service-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; padding: 40px 0; }
.service-row + .service-row { border-top: 1px solid var(--line); }
.service-row:nth-child(even) .split-media { order: 2; }
.service-row .split-media img { aspect-ratio: 4/3; }
.service-row .code { font: 700 .8rem/1 var(--font-display); color: var(--accent-dark); letter-spacing: .14em; display: block; margin-bottom: 14px; }

/* ---------- contatti ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-alt); border-radius: 12px; padding: 18px 20px; }
.contact-item .ic { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: var(--volt); display: grid; place-items: center; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item strong { display: block; font-family: var(--font-display); color: var(--ink); }
.contact-item a { color: var(--text); text-decoration: none; }
.contact-item a:hover { color: var(--accent-dark); text-decoration: underline; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,20,24,.08); }
.field textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); }
.form-status { margin: 14px 0 0; font-weight: 600; color: var(--ink); min-height: 1.5em; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- articolo / testo lungo ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius-lg); margin: 10px 0 30px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .98rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-display); color: var(--ink); background: var(--bg-alt); }
.prose .answer { background: var(--bg-alt); border-left: 4px solid var(--accent); padding: 18px 22px; border-radius: 0 10px 10px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }
.article-meta { color: var(--on-dark-muted); font-size: .92rem; margin-top: 18px; }

/* ---------- footer ---------- */
.site-footer { background: #0b0d10; color: var(--on-dark-muted); padding: 76px 0 0; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 54px; }
.footer-logo img { width: 210px; height: auto; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .04em; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 24px 26px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--on-dark-muted); }
.footer-credit a { color: var(--volt); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  .grid-3, .sectors { grid-template-columns: 1fr; }
  .sector + .sector { padding-left: 0; border-left: 0; }
  .split, .service-row, .contact-grid { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .split-media { order: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(17,20,24,.92) 0%, rgba(17,20,24,.78) 55%, rgba(17,20,24,.5) 100%); }
  .split-media .tag { left: 14px; }
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .gallery, .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 80px; }
  .hero-badges strong { font-size: 1.5rem; }
  .nav-brand img { width: 128px; }
}
@media (max-width: 480px) {
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .wire .w-sh, .wire .w-core, .wire .w-hl { stroke-dashoffset: 0; }
  .wire .w-pulse { display: none; }
  .hw-strip, .hw-ferrule, .hw-ties { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .hero-wires { transform: none; }
}
