/* Tema OMEF - foglio di stile principale */
:root {
  /* Layout: griglia da tavola tecnica; fasce scure "officina" alternate a fasce chiare "lamiera"; richiami numerati, targa e cartiglio portano dati reali */
  --graphite: #1F2429;
  --graphite-2: #272D33;
  --graphite-3: #171B1F;
  --line-dk: #39414A;
  --steel: #C3C8CC;
  --steel-hi: #EDEFF0;
  --steel-txt: #C2C8CD;
  --steel-dim: #8E979F;
  --copper: #C8783E;
  --copper-hi: #DE935C;
  --copper-ink: #9A5426;
  --zinc: #EEF0F1;
  --zinc-2: #E2E6E8;
  --line-lt: #C8CED2;
  --ink: #1C2125;
  --ink-2: #414A52;
  --ink-3: #636D76;

  --font-display: "Saira", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(18px, 4vw, 40px);
  --band: clamp(64px, 8vw, 112px);

  --fs-hero: clamp(2.25rem, 1.3rem + 3.5vw, 4.35rem);
  --fs-h1: clamp(2.15rem, 1.5rem + 2.4vw, 3.45rem);
  --fs-h2: clamp(1.75rem, 1.32rem + 1.5vw, 2.55rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .4vw, 1.42rem);
  --fs-lead: clamp(1.1rem, 1.03rem + .3vw, 1.26rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--zinc);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 110%;
  line-height: 1.1;
  letter-spacing: -.005em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 200; padding: 10px 16px; background: var(--steel-hi); color: var(--ink); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

/* ---------- bande ---------- */
.band { padding-block: var(--band); }
.band--dark { background-color: var(--graphite); color: var(--steel-txt); color-scheme: dark; }
.band--dark h1, .band--dark h2, .band--dark h3 { color: var(--steel-hi); }
.band--grid {
  background-image:
    linear-gradient(rgba(195,200,204,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(195,200,204,.065) 1px, transparent 1px),
    linear-gradient(rgba(195,200,204,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(195,200,204,.03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
.band--light { background: var(--zinc); }
.band--plate { background: var(--zinc-2); }
.band--deep { background: var(--graphite-3); }

.section-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; gap: 20px 72px; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }
.band--dark .lead { color: var(--steel-txt); }
.muted { color: var(--ink-3); }
.lead--spaced { margin-bottom: 28px; }
.actions--spaced { margin-top: 28px; }
.band--dark .muted { color: var(--steel-dim); }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 3px;
  font-family: var(--font-display); font-weight: 600; font-stretch: 106%; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--copper); color: var(--graphite-3); }
.btn--primary:hover { background: var(--copper-hi); }
.btn--ghost { border-color: rgba(195,200,204,.45); color: var(--steel-hi); background: transparent; }
.btn--ghost:hover { border-color: var(--steel-hi); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--zinc); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link-more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  font-family: var(--font-display); font-weight: 600; font-stretch: 106%;
  color: var(--copper-ink); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.band--dark .link-more { color: var(--copper-hi); }
.link-more:hover { color: var(--ink); }
.band--dark .link-more:hover { color: var(--steel-hi); }

/* ---------- richiamo (balloon) ---------- */
.balloon {
  display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px;
  border: 1.5px solid currentColor; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1;
}
.balloon--lg { width: 52px; height: 52px; font-size: 1.3rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(31,36,41,.97);
  border-bottom: 1px solid var(--line-dk);
  color: var(--steel);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 42px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav ul a {
  display: block; padding: 10px 12px;
  font-family: var(--font-display); font-weight: 600; font-stretch: 106%; font-size: .98rem;
  color: var(--steel); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav ul a:hover { color: var(--steel-hi); }
.nav ul a[aria-current="page"] { color: var(--steel-hi); border-bottom-color: var(--copper); }
.nav-extra { display: none; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-stretch: 104%;
  color: var(--steel-hi); text-decoration: none; white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; fill: none; stroke: var(--copper); stroke-width: 1.7; }
.header-phone:hover { color: var(--copper-hi); }
.nav-toggle {
  display: none; align-items: center; gap: 8px; margin-left: auto;
  min-height: 44px; padding: 8px 14px;
  background: transparent; color: var(--steel-hi);
  border: 1.5px solid rgba(195,200,204,.4); border-radius: 3px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-toggle .i-close { display: none; }
body.nav-open .nav-toggle .i-menu { display: none; }
body.nav-open .nav-toggle .i-close { display: block; }

@media (max-width: 1240px) { .header-phone { display: none; } }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 77px 0 0 0; z-index: 59;
    display: none; overflow-y: auto;
    padding: 12px var(--gutter) 40px;
    background: var(--graphite);
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { font-size: 1.45rem; padding: 16px 0; border-bottom: 1px solid var(--line-dk); }
  .nav ul a[aria-current="page"] { color: var(--copper-hi); border-bottom-color: var(--line-dk); }
  .nav-extra { display: grid; justify-items: start; gap: 18px; margin-top: 30px; }
  .nav-extra .header-phone { display: inline-flex; font-size: 1.2rem; }
}

/* ---------- hero (home) ---------- */
.hero { padding-block: clamp(40px, 6vw, 84px) clamp(44px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.hero h1 { font-size: var(--fs-hero); font-weight: 750; font-stretch: 114%; line-height: 1.03; max-width: 21ch; margin-bottom: clamp(26px, 3.5vw, 44px); }
.hero .lead { max-width: 34em; }
.hero .actions { margin-top: 30px; }
.hero .targa { margin-top: 40px; }
.hero-figure { margin: 0; }
.hero-figure figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--steel-dim); max-width: 64ch; }
@media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr; } .hero-copy { max-width: 760px; } }
@media (max-width: 1100px) and (min-width: 521px) { .hero .targa--2 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hero .targa--2 > div { border-top: 0; border-left: 1px solid rgba(195,200,204,.16); } .hero .targa--2 > div:first-child { border-left: 0; } }
@media (max-width: 760px) and (min-width: 521px) { .hero .targa--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero .targa--2 > div:nth-child(3) { border-left: 0; } .hero .targa--2 > div:nth-child(n+3) { border-top: 1px solid rgba(195,200,204,.16); } }

/* disegno tecnico */
.drawing { width: 100%; height: auto; overflow: visible; }
.drawing .d-out { fill: none; stroke: var(--steel); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.drawing .d-fill { fill: var(--graphite); }
.drawing .d-frame { fill: rgba(195,200,204,.035); }
.drawing .d-thin, .drawing .d-ext { fill: none; stroke: var(--steel-dim); stroke-width: .8; vector-effect: non-scaling-stroke; }
.drawing .d-ctr { stroke: var(--steel-dim); stroke-width: .7; stroke-dasharray: 12 3 2 3; vector-effect: non-scaling-stroke; }
.drawing .d-hid { stroke: var(--steel-dim); stroke-width: .8; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.drawing .d-hatch { stroke: var(--steel-dim); stroke-opacity: .5; stroke-width: .7; vector-effect: non-scaling-stroke; }
.drawing .d-layer { fill: none; stroke: var(--steel); stroke-opacity: .26; stroke-width: .8; vector-effect: non-scaling-stroke; }
.drawing .d-emboss { fill: none; stroke: var(--steel); stroke-opacity: .5; stroke-width: 1.6; stroke-dasharray: 1 4; vector-effect: non-scaling-stroke; }
.drawing .d-web { fill: none; stroke: var(--steel-hi); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.drawing .d-flow { fill: none; stroke: var(--graphite); stroke-width: 1.2; stroke-dasharray: 3 15; vector-effect: non-scaling-stroke; }
.drawing .d-belt { stroke: var(--steel); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.drawing .d-cu { fill: none; stroke: var(--copper); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.drawing .d-cu-box { fill: var(--graphite); stroke: var(--copper); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.drawing .d-estop { fill: var(--copper); }
.drawing .d-hmi { fill: rgba(200,120,62,.16); stroke: none; }
.drawing .d-dim { stroke: var(--steel-dim); stroke-width: .8; vector-effect: non-scaling-stroke; }
.drawing .d-arrow { fill: var(--steel-dim); }
.drawing .d-txt { fill: var(--steel-dim); font-family: var(--font-display); font-size: 12.5px; }
.drawing .d-notes-h { fill: var(--steel); font-size: 13.5px; font-weight: 600; }
.drawing .d-notes { font-size: 12px; }
.drawing .d-small { font-size: 11.5px; }
.drawing .d-leader { stroke: var(--steel); stroke-width: .9; vector-effect: non-scaling-stroke; }
.drawing .d-dot { fill: var(--steel); }
.drawing .d-bcircle { fill: var(--graphite); stroke: var(--steel); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill .15s, stroke .15s; }
.drawing .d-bnum { fill: var(--steel-hi); font-family: var(--font-display); font-size: 14.5px; font-weight: 700; }
.drawing .d-blabel { fill: var(--steel); font-family: var(--font-display); font-size: 15px; font-weight: 600; font-stretch: 106%; }
.drawing .d-balloon { cursor: pointer; }
.drawing .d-balloon:hover .d-bcircle, .drawing .d-balloon:focus-visible .d-bcircle { stroke: var(--copper); fill: #3a2c22; }
.drawing .d-balloon:hover .d-bnum, .drawing .d-balloon:hover .d-blabel,
.drawing .d-balloon:focus-visible .d-bnum, .drawing .d-balloon:focus-visible .d-blabel { fill: var(--copper-hi); }
.drawing .d-balloon:hover .d-leader { stroke: var(--copper); }
.drawing .d-balloon:hover .d-dot { fill: var(--copper); }
.drawing .d-bhead { transform-box: fill-box; transform-origin: center; }
.drawing .d-spin { animation: d-rot var(--dur) linear infinite; }
.drawing .d-ccw { animation-direction: reverse; }
.drawing .d-flow { animation: d-flow .53s linear infinite; }
@keyframes d-rot { to { transform: rotate(360deg); } }
@keyframes d-flow { to { stroke-dashoffset: -18; } }
@media (prefers-reduced-motion: reduce) { .drawing .d-spin, .drawing .d-flow { animation: none; } }
@media (max-width: 640px) {
  .drawing .d-notes, .drawing .d-notes-h, .drawing .d-blabel, .drawing .d-dimtxt, .drawing .d-small { display: none; }
  .drawing .d-bhead { transform: scale(1.7); }
}

/* targa dati */
.targa {
  position: relative; margin: clamp(40px, 5vw, 64px) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)), var(--graphite-2);
  border: 1px solid rgba(195,200,204,.3); border-radius: 4px;
}
.targa::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .75;
  background:
    radial-gradient(circle at 11px 11px, var(--steel-dim) 0 2.3px, transparent 2.9px),
    radial-gradient(circle at calc(100% - 11px) 11px, var(--steel-dim) 0 2.3px, transparent 2.9px),
    radial-gradient(circle at 11px calc(100% - 11px), var(--steel-dim) 0 2.3px, transparent 2.9px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), var(--steel-dim) 0 2.3px, transparent 2.9px);
}
.targa > div { padding: 22px 26px 24px; border-left: 1px solid rgba(195,200,204,.16); }
.targa > div:first-child { border-left: 0; }
.targa dt { font-size: .82rem; color: var(--steel-dim); margin-bottom: 6px; }
.targa dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-stretch: 106%; font-size: 1.1rem; line-height: 1.32; color: var(--steel-hi); }
.targa--flush { margin: 0; }
.targa--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.targa--2 > div:nth-child(odd) { border-left: 0; }
.targa--2 > div:nth-child(n+3) { border-top: 1px solid rgba(195,200,204,.16); }
@media (max-width: 960px) {
  .targa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .targa > div:nth-child(3) { border-left: 0; }
  .targa > div:nth-child(n+3) { border-top: 1px solid rgba(195,200,204,.16); }
}
@media (max-width: 520px) {
  .targa { grid-template-columns: 1fr; }
  .targa > div { border-left: 0; }
  .targa > div + div { border-top: 1px solid rgba(195,200,204,.16); }
}

/* ---------- distinta servizi ---------- */
.distinta { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.distinta li { border-bottom: 1px solid var(--line-lt); }
.distinta a {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1.75fr) 28px;
  gap: 8px 28px; align-items: center;
  padding: 26px 10px; text-decoration: none; color: inherit;
  transition: background-color .15s;
}
.distinta a:hover { background: rgba(255,255,255,.6); }
.distinta .t { font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: var(--fs-h3); line-height: 1.15; }
.distinta .d { color: var(--ink-2); }
.distinta .go { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.6; transition: transform .15s; }
.distinta a:hover .go { transform: translateX(4px); stroke: var(--copper-ink); }
.distinta a:hover .balloon { color: var(--copper-ink); }
@media (max-width: 780px) {
  .distinta a { grid-template-columns: 46px minmax(0, 1fr) 24px; gap: 6px 16px; padding: 22px 4px; }
  .distinta .balloon { width: 38px; height: 38px; grid-row: span 2; align-self: start; }
  .distinta .d { grid-column: 2; grid-row: 2; }
  .distinta .go { grid-column: 3; grid-row: 1; }
}

/* ---------- layout a due colonne ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.split h2 { font-size: var(--fs-h2); }
.split .lead { margin-top: 20px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 2px; opacity: .5;
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: calc(.3em + 2.5px);
  width: 5px; height: 9px; border: solid var(--copper-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.band--dark .checklist li::after { border-color: var(--copper); }
.checklist--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 36px; }
@media (max-width: 680px) { .checklist--2col { grid-template-columns: 1fr; } }

/* grafica trasferte */
.range { width: 100%; height: auto; }
.range .r-ring { fill: none; stroke: var(--steel-dim); stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.range .r-axis { stroke: var(--steel-dim); stroke-opacity: .6; stroke-width: .8; stroke-dasharray: 12 3 2 3; vector-effect: non-scaling-stroke; }
.range .r-route { fill: none; stroke: var(--copper); stroke-width: 1.6; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.range .r-end { fill: var(--graphite); stroke: var(--copper); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.range .r-pin { fill: var(--copper); }
.range .r-pin-ring { fill: none; stroke: var(--copper); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.range .r-txt { fill: var(--steel); font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.range .r-sub { fill: var(--steel-dim); font-family: var(--font-display); font-size: 14px; }

/* ---------- settori (griglia) ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-lt); border-left: 1px solid var(--line-lt); }
.sector {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 26px 30px;
  border-right: 1px solid var(--line-lt); border-bottom: 1px solid var(--line-lt);
  text-decoration: none; color: inherit; background: var(--zinc);
  transition: background-color .15s;
}
.sector:hover { background: #fff; }
.sector .ico { width: 58px; height: 58px; color: var(--ink); margin-bottom: 6px; }
.sector h3 { font-size: 1.24rem; }
.sector p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.sector--cta { background: var(--graphite); color: var(--steel-txt); }
.sector--cta h3 { color: var(--steel-hi); }
.sector--cta p { color: var(--steel-txt); }
.sector--cta:hover { background: var(--graphite-2); }
.sector--cta .cta-link { margin-top: auto; font-family: var(--font-display); font-weight: 600; color: var(--copper-hi); }
@media (max-width: 1040px) { .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sector-grid { grid-template-columns: 1fr; } }

/* icone tecniche */
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ico .ih, .ico .it { stroke-width: .8; opacity: .75; }
.ico .ic { stroke-width: .7; stroke-dasharray: 6 2 1.5 2; opacity: .55; }
.ico .ia { stroke: var(--accent, var(--copper-ink)); }
.ico .ia-f { fill: var(--accent, var(--copper-ink)); stroke: none; }
.ico .ia-dash { stroke-dasharray: 3 3; }
.band--dark .ico, .sector--cta .ico { --accent: var(--copper); }
.ui { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- metodo (sequenza) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; left: 24px; right: 0; top: 24px; height: 1px; background: linear-gradient(90deg, var(--copper), rgba(200,120,62,.12)); }
.step { position: relative; }
.hexnum { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; }
.hexnum svg { position: absolute; inset: 0; width: 48px; height: 48px; fill: var(--graphite); stroke: var(--copper); stroke-width: 1.5; }
.hexnum span { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--steel-hi); }
.step h3 { margin-top: 20px; font-size: 1.16rem; }
@media (min-width: 1081px) { .step h3 { min-height: 2.25em; } }
.step p { margin-top: 10px; font-size: .98rem; color: var(--steel-txt); }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; } .steps::before { display: none; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---------- perché OMEF ---------- */
.reasons { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); }
.reasons-head { position: sticky; top: 112px; align-self: start; display: grid; gap: 18px; }
.reasons-head h2 { font-size: var(--fs-h2); }
.rows { border-top: 1.5px solid var(--ink); }
.row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); gap: 10px 36px; padding: 26px 0; border-bottom: 1px solid var(--line-lt); }
.row h3 { font-size: 1.18rem; line-height: 1.25; }
.row p { margin: 0; color: var(--ink-2); }
.band--dark .rows { border-top-color: rgba(195,200,204,.5); }
.band--dark .row { border-bottom-color: var(--line-dk); }
.band--dark .row p { color: var(--steel-txt); }
@media (max-width: 960px) { .reasons { grid-template-columns: 1fr; } .reasons-head { position: static; } }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; margin: 0; }
.faq > div { padding: 26px 0; border-top: 1px solid var(--line-lt); }
.faq dt { font-family: var(--font-display); font-weight: 700; font-stretch: 106%; font-size: 1.15rem; line-height: 1.3; color: var(--ink); }
.faq dd { margin: 10px 0 0; color: var(--ink-2); }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

/* ---------- invito all'azione ---------- */
.cta { background: var(--graphite-2); border-top: 3px solid var(--copper); padding-block: clamp(56px, 7vw, 88px); color: var(--steel-txt); color-scheme: dark; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) auto; gap: 32px 56px; align-items: center; }
.cta h2 { font-size: var(--fs-h2); color: var(--steel-hi); }
.cta p { margin-top: 14px; max-width: 54ch; }
.cta .actions { justify-content: flex-end; }
@media (max-width: 880px) { .cta-inner { grid-template-columns: 1fr; } .cta .actions { justify-content: flex-start; } }

/* ---------- testata pagine interne ---------- */
.page-hero { padding-block: clamp(36px, 5vw, 72px) clamp(44px, 6vw, 80px); }
.crumbs { font-size: .9rem; color: var(--steel-dim); margin-bottom: 26px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-dk); }
.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--steel-hi); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.page-hero h1 { font-size: var(--fs-h1); font-weight: 750; font-stretch: 114%; line-height: 1.04; }
.page-hero .lead { margin-top: 22px; max-width: 40em; }
@media (max-width: 920px) { .page-hero-grid { grid-template-columns: 1fr; align-items: start; } }

.index { border-top: 1.5px solid rgba(195,200,204,.5); }
.index p { margin: 0 0 10px; padding-top: 12px; font-size: .85rem; color: var(--steel-dim); }
.index ul { list-style: none; margin: 0; padding: 0; }
.index a {
  display: flex; align-items: center; gap: 14px; padding: 11px 0;
  border-bottom: 1px solid var(--line-dk);
  font-family: var(--font-display); font-weight: 600; font-stretch: 106%;
  color: var(--steel); text-decoration: none;
}
.index a:hover { color: var(--steel-hi); }
.index a:hover .balloon { color: var(--copper-hi); }
.index .balloon { width: 30px; height: 30px; font-size: .85rem; }
.index .ico { width: 30px; height: 30px; color: var(--steel); }

/* emblema (azienda) */
.emblem { position: relative; margin: 0 auto; width: min(340px, 80%); aspect-ratio: 1; display: grid; place-items: center; }
.emblem img { width: 74%; height: auto; position: relative; }
.emblem::before, .emblem::after { content: ""; position: absolute; background: rgba(195,200,204,.4); }
.emblem::before { left: 0; right: 0; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, rgba(195,200,204,.45) 0 14px, transparent 14px 18px, rgba(195,200,204,.45) 18px 20px, transparent 20px 24px); }
.emblem::after { top: 0; bottom: 0; left: 50%; width: 1px; background: repeating-linear-gradient(180deg, rgba(195,200,204,.45) 0 14px, transparent 14px 18px, rgba(195,200,204,.45) 18px 20px, transparent 20px 24px); }
.emblem-ring { position: absolute; inset: 4%; border: 1px dashed rgba(195,200,204,.35); border-radius: 50%; }
.emblem .ico { position: relative; width: 66%; height: auto; color: var(--steel); }
.emblem--sm { width: min(280px, 70%); }

/* ---------- sezioni di dettaglio (servizi/settori) ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.detail-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.detail-head h2 { font-size: var(--fs-h2); }
.detail .lead { margin-bottom: 22px; max-width: 62ch; color: var(--ink); }
.detail-body p { max-width: 68ch; color: var(--ink-2); }
.sub { font-size: 1.06rem; font-stretch: 106%; margin: 34px 0 4px; color: var(--ink); }
.outcome { margin-top: 34px; padding: 20px 24px; border-left: 3px solid var(--copper-ink); background: rgba(255,255,255,.6); max-width: 68ch; }
.band--plate .outcome { background: rgba(255,255,255,.55); }
.outcome strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; font-stretch: 106%; color: var(--ink); }
.outcome p { margin: 0; color: var(--ink-2); }
.fig {
  --c: var(--ink-3);
  position: sticky; top: 112px; margin: 0;
  display: grid; grid-template-rows: 1fr auto;
  border: 1px solid var(--line-lt);
  background:
    linear-gradient(var(--c), var(--c)) top left / 16px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1.5px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 16px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1.5px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 16px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1.5px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 16px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1.5px 16px no-repeat,
    rgba(255,255,255,.45);
}
.fig .fig-art { aspect-ratio: 1; display: grid; place-items: center; }
.fig .ico { width: 62%; height: auto; color: var(--ink); stroke-width: 1.5; }
.fig .ico * { vector-effect: non-scaling-stroke; }
.fig .ico .ih, .fig .ico .it { stroke-width: .8; }
.fig .ico .ic { stroke-width: .8; }
.fig figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line-lt); font-size: .82rem; color: var(--ink-3); }
.fig figcaption b { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.band--dark .detail .lead { color: var(--steel-hi); }
.band--dark .detail-body p, .band--dark .outcome p { color: var(--steel-txt); }
.band--dark .sub, .band--dark .outcome strong { color: var(--steel-hi); }
.band--dark .outcome { background: rgba(255,255,255,.04); border-left-color: var(--copper); }
.band--dark .fig { --c: var(--steel-dim); border-color: var(--line-dk); background-color: rgba(255,255,255,.02); }
.band--dark .fig .ico { color: var(--steel); }
.band--dark .fig figcaption { border-top-color: var(--line-dk); color: var(--steel-dim); }
.band--dark .fig figcaption b { color: var(--steel); }
@media (max-width: 920px) {
  .detail { grid-template-columns: 1fr; }
  .fig { position: static; max-width: 300px; grid-row: 1; }
}

/* ---------- azienda ---------- */
.prose-cols { columns: 2 22em; column-gap: 56px; }
.prose-cols p { break-inside: avoid; color: var(--ink-2); }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(195,200,204,.35); }
.figures > div { padding: 26px 24px 0 0; }
.figures > div + div { padding-left: 24px; border-left: 1px solid rgba(195,200,204,.2); }
.figures .num { font-family: var(--font-display); font-weight: 700; font-stretch: 116%; font-size: clamp(3rem, 2.2rem + 3vw, 4.6rem); line-height: 1; color: var(--copper-hi); }
.figures .cap { margin-top: 12px; color: var(--steel-txt); }
.source { margin-top: 22px; font-size: .85rem; color: var(--steel-dim); }
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.mv > div { padding: 30px 40px 6px 0; }
.mv > div + div { padding-left: 40px; border-left: 1px solid var(--line-lt); }
.mv h3 { font-size: 1.05rem; font-stretch: 106%; color: var(--ink-3); margin-bottom: 12px; }
.mv p { font-family: var(--font-display); font-weight: 500; font-stretch: 104%; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.38; color: var(--ink); }
@media (max-width: 760px) { .mv, .figures { grid-template-columns: 1fr; } .mv > div + div, .figures > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-lt); } .figures > div + div { border-top-color: rgba(195,200,204,.2); } }

/* ---------- lavora con noi ---------- */
.profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-lt); border-left: 1px solid var(--line-lt); }
.profile { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 22px; padding: 30px 30px 32px; border-right: 1px solid var(--line-lt); border-bottom: 1px solid var(--line-lt); background: var(--zinc); }
.profile .ico { width: 56px; height: 56px; color: var(--ink); grid-row: span 2; }
.profile h3 { font-size: 1.24rem; }
.profile p { margin: 0; color: var(--ink-2); }
.note { margin-top: 24px; max-width: 72ch; font-size: .95rem; color: var(--ink-3); }
@media (max-width: 860px) { .profiles { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .profile { grid-template-columns: 1fr; } .profile .ico { grid-row: auto; } }

/* ---------- moduli ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 7px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 600; font-stretch: 104%; font-size: .96rem; }
.field label .req { color: var(--copper-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-lt); border-radius: 3px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--copper); outline-offset: 0; border-color: var(--copper); }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--copper-ink); }
.check a { color: var(--copper-ink); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-note { font-size: .9rem; color: var(--ink-3); margin: 0; max-width: 52ch; }
.band--dark .field input, .band--dark .field select, .band--dark .field textarea { background: var(--graphite-3); border-color: var(--line-dk); color: var(--steel-hi); }
.band--dark .field label .req, .band--dark .check a { color: var(--copper-hi); }
.band--dark .check, .band--dark .form-note { color: var(--steel-txt); }
.band--dark .check input { accent-color: var(--copper); }
.form-result { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line-lt); border-left: 3px solid var(--copper-ink); background: #fff; }
.form-result h3 { font-size: 1.15rem; }
.form-result p { margin: 10px 0 0; color: var(--ink-2); }
.form-result pre { margin: 14px 0 0; padding: 14px 16px; max-height: 260px; overflow: auto; white-space: pre-wrap; font: inherit; font-size: .95rem; background: var(--zinc); border: 1px solid var(--line-lt); }
.form-result .actions { margin-top: 16px; }
.band--dark .form-result { background: var(--graphite-2); border-color: var(--line-dk); border-left-color: var(--copper); }
.band--dark .form-result p { color: var(--steel-txt); }
.band--dark .form-result pre { background: var(--graphite-3); border-color: var(--line-dk); color: var(--steel-hi); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- contatti ---------- */
.contact-list { border-top: 1.5px solid var(--ink); }
.contact-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line-lt); }
.contact-item .ui { margin-top: 2px; color: var(--copper-ink); grid-row: span 2; }
.contact-item .lbl { font-size: .86rem; color: var(--ink-3); }
.contact-item .val { font-family: var(--font-display); font-weight: 600; font-stretch: 104%; font-size: 1.14rem; line-height: 1.35; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-item a.val:hover { color: var(--copper-ink); }
.contact-item .val, .contact-item .extra { display: block; }
.contact-item .extra { font-size: .92rem; margin-top: 4px; }
.contact-item .extra a { color: var(--copper-ink); }
.coord { width: 100%; height: auto; }
.coord .c-ring { fill: none; stroke: var(--steel-dim); stroke-opacity: .55; stroke-width: 1; vector-effect: non-scaling-stroke; }
.coord .c-tick { stroke: var(--steel-dim); stroke-width: 1; vector-effect: non-scaling-stroke; }
.coord .c-axis { stroke: var(--steel-dim); stroke-opacity: .7; stroke-width: .8; stroke-dasharray: 12 3 2 3; vector-effect: non-scaling-stroke; }
.coord .c-pin { fill: var(--copper); }
.coord .c-pin-ring { fill: none; stroke: var(--copper); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.coord text, .range text, .drawing text { paint-order: stroke; stroke: var(--graphite); stroke-width: 4px; stroke-linejoin: round; }
.coord .c-txt { fill: var(--steel); font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.coord .c-sub { fill: var(--steel-dim); font-family: var(--font-display); font-size: 13px; }

/* ---------- testi legali ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.42rem; margin: 2.1em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--copper-ink); }
.prose .updated { font-size: .92rem; color: var(--ink-3); }

/* ---------- footer con cartiglio ---------- */
.site-footer { background: var(--graphite-3); color: #AEB5BB; padding-block: clamp(56px, 7vw, 88px) 28px; font-size: .95rem; color-scheme: dark; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: min(330px, 100%); height: auto; }
.footer-brand p { margin-top: 20px; max-width: 40ch; }
.footer-col h2 { font-size: 1rem; font-stretch: 106%; color: var(--steel-hi); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: #AEB5BB; text-decoration: none; }
.footer-col a:hover { color: var(--steel-hi); }
.cartiglio { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(195,200,204,.22); border-left: 1px solid rgba(195,200,204,.22); }
.cartiglio .cell { padding: 14px 18px 16px; display: grid; gap: 4px; align-content: start; min-width: 0; border-right: 1px solid rgba(195,200,204,.22); border-bottom: 1px solid rgba(195,200,204,.22); }
.cartiglio .lbl { font-size: .76rem; color: var(--steel-dim); }
.cartiglio .val { font-family: var(--font-display); font-weight: 500; font-stretch: 104%; font-size: .98rem; line-height: 1.4; color: var(--steel-hi); overflow-wrap: anywhere; }
.cartiglio a { text-decoration: none; }
.cartiglio a:hover { color: var(--copper-hi); }
.cartiglio .span2 { grid-column: span 2; }
.cartiglio .span3 { grid-column: span 3; }
.cartiglio .span4 { grid-column: span 4; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 22px; font-size: .85rem; color: var(--steel-dim); }
.footer-bottom a { color: var(--steel-dim); }
.footer-bottom a:hover { color: var(--steel-hi); }
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; } .cartiglio { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cartiglio .span3, .cartiglio .span4 { grid-column: span 2; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } .cartiglio { grid-template-columns: 1fr; } .cartiglio .span2, .cartiglio .span3, .cartiglio .span4 { grid-column: auto; } }

/* ---------- WordPress ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.custom-logo-link { display: block; flex: none; }
.custom-logo-link img { height: 42px; width: auto; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 1020px) { .admin-bar .nav { top: calc(77px + 32px); } }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .nav { top: calc(77px + 46px); } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } .admin-bar .nav { top: 77px; } }

/* moduli: anti-spam, suggerimenti, esito */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-hint { font-size: .86rem; color: var(--ink-3); }
.field input[type="file"] { padding: 10px 12px; cursor: pointer; }
.form-status { margin-bottom: 26px; padding: 18px 22px; border: 1px solid var(--line-lt); border-left: 3px solid var(--copper-ink); background: #fff; }
.form-status strong { display: block; font-family: var(--font-display); font-weight: 700; font-stretch: 106%; color: var(--ink); }
.form-status p { margin: 6px 0 0; color: var(--ink-2); }
.form-status--ok { border-left-color: #2E7D4F; }
.form-status--err { border-left-color: #B3261E; }

/* posizioni aperte */
.jobs { border-top: 1.5px solid var(--ink); }
.job { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 14px 44px; padding: 30px 0; border-bottom: 1px solid var(--line-lt); align-items: start; }
.job-head h3 { font-size: var(--fs-h3); }
.job-meta { margin: 14px 0 0; display: grid; gap: 6px; }
.job-meta div { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.job-meta dt { color: var(--ink-3); font-size: .9rem; }
.job-meta dd { margin: 0; font-weight: 600; font-size: .95rem; color: var(--ink); }
.job-body { grid-column: 2; grid-row: 1 / span 2; }
.job .btn { grid-column: 1; grid-row: 2; justify-self: start; }
@media (max-width: 760px) { .job { grid-template-columns: 1fr; } .job-body, .job .btn { grid-column: auto; grid-row: auto; } }

/* articoli */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1.5px solid var(--ink); }
.post-card { padding: 28px 0; border-bottom: 1px solid var(--line-lt); }
.post-card h2 { font-size: var(--fs-h3); margin: 6px 0 10px; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: var(--copper-ink); }
.post-card p { color: var(--ink-2); }
.post-date { margin: 0; font-size: .88rem; color: var(--ink-3); }
.post-card .link-more { margin-top: 14px; }
.post-thumb { width: 100%; height: auto; margin: 0 0 28px; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-lt); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.pagination .page-numbers.current { background: var(--ink); color: var(--zinc); border-color: var(--ink); }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }

/* contenuti scritti nell'editor */
.prose img { height: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .prose .wp-caption-text { margin-top: 8px; font-size: .88rem; color: var(--ink-3); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--copper-ink); font-size: 1.1rem; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line-lt); text-align: left; }
.prose ol { padding-left: 1.4em; }
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.job-body.prose { max-width: none; }

@media print {
  .site-header, .nav, .cta, .drawing .d-flow { display: none !important; }
  .band--dark, .site-footer { background: #fff !important; color: #000 !important; }
}
