/* =========================================================
   FINTECNO S.r.l. — foglio di stile del sito ("dossier tecnico", v4)
   Palette "Petrolio e acciaio": bianco puro, grigio acciaio #F1F4F5,
   petrolio del marchio #00474B, scuro #042A2D, accento azzurro acciaio.
   Impaginazione editoriale allineata a sinistra su 12 colonne, capitoli
   numerati. Segno grafico: la tacca quadrata del marchio FINTECNO,
   ritagliata in alto a destra su foto e pannelli principali (.notch).
   ========================================================= */

/* ---------- Caratteri (self-hosted, licenza OFL) ---------- */
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Token ---------- */
:root {
  --white: #fff;
  --grey: #f1f4f5;
  --grey-2: #e4eaeb;
  --line: #dce3e5;
  --line-2: #c3ced1;
  --ink: #0f1d20;
  --ink-2: #2a3a3e;
  --muted: #55666a;
  --petrol: #00474b;
  --petrol-700: #00363a;
  --petrol-50: #eaf1f1;
  --dark: #042a2d;
  --dark-2: #031f22;
  --steel: #3e7c99;
  --steel-text: #356c86;
  --steel-light: #8dbbd0;
  --on-dark: #f2f7f7;
  --on-dark-2: rgb(242 247 247 / .72);
  --dark-line: rgb(255 255 255 / .16);
  --f-sans: "Plex Sans", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 4px;
  /* ombre: morbide ma visibili (Robert: "giusto poco piu' presenti") */
  --sh-1: 0 1px 2px rgb(4 42 45 / .06), 0 12px 28px -16px rgb(4 42 45 / .28);
  --sh-2: 0 2px 4px rgb(4 42 45 / .06), 0 26px 48px -26px rgb(4 42 45 / .42);
  --sh-3: 0 4px 10px rgb(4 42 45 / .08), 0 40px 70px -34px rgb(4 42 45 / .5);
  --ease: cubic-bezier(.22, .72, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --util-h: 0px;
  --bar-h: 64px;
  --gutter: 16px;
  --nw: clamp(22px, 3.6vw, 56px);
}
@media (min-width: 760px) { :root { --gutter: 32px; --bar-h: 72px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; --bar-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; scrollbar-gutter: stable; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; overflow-x: clip; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.65 var(--f-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { display: block; padding-top: calc(var(--util-h) + var(--bar-h)); }
main:focus { outline: none; }
img { display: block; max-width: 100%; height: auto; }
img[style] { background-size: cover; background-position: center; background-repeat: no-repeat; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 12px 18px; border-radius: var(--r); background: var(--white); color: var(--petrol); font-weight: 600; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* la tacca del marchio: un quadrato ritagliato in alto a destra */
.notch { clip-path: polygon(0 0, calc(100% - var(--nw)) 0, calc(100% - var(--nw)) var(--nw), 100% var(--nw), 100% 100%, 0 100%); }
/* sulle schede con ombra la tacca e' un quadrato del colore di fondo (il clip-path taglierebbe l'ombra) */
.notch-c { position: relative; }
.notch-c::after { content: ""; position: absolute; top: -3px; right: 0; width: var(--nw); height: calc(var(--nw) + 3px); background: var(--notch-bg, var(--white)); pointer-events: none; }
.sec--grey { --notch-bg: var(--grey); }

/* ---------- Passaggio tra le pagine (View Transitions, dove il browser le supporta) ---------- */
@view-transition { navigation: auto; }
/* sui telefoni il passaggio animato tra le pagine puo' lampeggiare: lo togliamo */
@media (hover: none), (pointer: coarse) { @view-transition { navigation: none; } }
/* niente riquadro colorato del browser al tocco di link e bottoni (gli stati :active restano) */
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
.site-header { view-transition-name: testata; }
::view-transition-old(root) { animation: vt-out .32s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease-out) .08s both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Logo (marchio e scritta originali, affiancati) ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 36px; height: auto; }
.logo__word { width: 108px; height: auto; }
.logo--footer .logo__mark { width: 42px; }
.logo--footer .logo__word { width: 126px; }

/* ---------- Pulsanti e link: fermi, si muove solo la freccia ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: var(--r); border: 1px solid transparent; font: 600 1rem/1.2 var(--f-sans); letter-spacing: .005em; text-decoration: none; white-space: nowrap; transition: background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease), transform .16s var(--ease); }
.btn__ic { width: 20px; height: 20px; stroke-width: 1.8; transition: transform .3s var(--ease); }
.btn:hover .btn__ic { transform: translateX(3px); }
.btn[download]:hover .btn__ic { transform: translateY(2px); }
.btn:active { transform: scale(.985); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; }
.btn--primary { background: var(--petrol); color: #fff; box-shadow: 0 10px 22px -14px rgb(0 71 75 / .8); }
.btn--primary:hover { background: var(--petrol-700); box-shadow: 0 14px 26px -14px rgb(0 71 75 / .9); }
.btn--light { background: #fff; color: var(--petrol); box-shadow: 0 10px 24px -14px rgb(0 0 0 / .6); }
.btn--light:hover { background: #dde9ea; }
.btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .42); }
.btn--ghost:hover { background: rgb(255 255 255 / .08); border-color: #fff; }
.btn--light:focus-visible, .btn--ghost:focus-visible { outline-color: var(--steel-light); }
.more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: .98rem; color: var(--petrol); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.more:hover { background-size: calc(100% - 30px) 1px; }
.more__ic { width: 20px; height: 20px; stroke-width: 1.8; transition: transform .3s var(--ease); }
.more:hover .more__ic { transform: translateX(4px); }

/* ---------- Header: barra di servizio scura + barra bianca ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 80; transition: transform .45s var(--ease); }
.site-header.is-scrolled { transform: translateY(calc(-1 * var(--util-h))); }
.site-header.is-hidden { transform: translateY(-101%); }
.site-header:has(:focus-visible) { transform: none; }
.util { display: none; height: var(--util-h); background: var(--dark-2); color: var(--on-dark-2); font-size: .84rem; }
.util__in { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.util__r { display: flex; gap: 28px; }
.util__r a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; text-decoration: none; transition: color .2s var(--ease); }
.util__r a:hover, .util__r a[aria-current="page"] { color: #fff; }
.util__r .ic { width: 16px; height: 16px; color: var(--steel-light); }
.bar { background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled .bar { box-shadow: 0 12px 30px -22px rgb(4 42 45 / .55); }
.bar__in { height: var(--bar-h); display: flex; align-items: center; gap: 24px; }
.header__brand { display: inline-flex; align-items: center; min-height: 48px; flex: none; text-decoration: none; }
.nav { margin-left: auto; display: none; }
.nav__list { display: flex; gap: 2px; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 13px; border: 0; background: none; font-weight: 500; font-size: .97rem; text-decoration: none; color: var(--ink-2); transition: color .2s var(--ease); }
.nav__link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 8px; height: 1.5px; background: var(--petrol); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"], .nav__link.is-current { color: var(--petrol); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__link.is-current::after, .nav__dd-btn[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__chev { width: 16px; height: 16px; stroke-width: 1.8; transition: transform .3s var(--ease); }
.nav__dd-btn[aria-expanded="true"] { color: var(--petrol); }
.nav__dd-btn[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header__actions > .btn { display: none; min-height: 46px; padding: 0 20px; font-size: .95rem; }
.header__call, .header__burger { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--white); color: var(--petrol); text-decoration: none; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.header__call:hover, .header__burger:hover { background: var(--petrol-50); border-color: var(--petrol); }
.header__call .ic { width: 20px; height: 20px; }
@media (min-width: 1100px) {
  .util { display: block; }
  .nav { display: block; }
  .header__actions { margin-left: 12px; }
  .header__actions > .btn { display: inline-flex; }
  .header__call, .header__burger { display: none; }
}
@media (min-width: 1100px) and (max-width: 1259px) { .nav__link { padding: 0 9px; font-size: .94rem; } .nav__link::after { left: 9px; right: 9px; } .bar__in { gap: 16px; } }

/* menu a tendina delle competenze (solo desktop): si allinea alla larghezza dell'header */
.nav__item--dd { position: static; }
.dd { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--sh-3); opacity: 0; transform: translateY(-6px); transition: opacity .32s var(--ease), transform .32s var(--ease); }
.dd.is-open { opacity: 1; transform: none; }
.dd__in { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding-top: 36px; padding-bottom: 40px; }
.dd__intro { display: grid; justify-items: start; align-content: start; gap: 14px; }
.dd__k { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-text); }
.dd__t { font-size: 1.3rem; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.dd__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; border-top: 1px solid var(--line); }
.dd__grid li { border-bottom: 1px solid var(--line); }
.dd__a { position: relative; display: flex; gap: 16px; padding: 16px 14px 16px 12px; text-decoration: none; transition: background-color .35s var(--ease); }
.dd__a::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--petrol); transform: scaleY(0); transform-origin: 50% 0; transition: transform .4s var(--ease-out); }
.dd__x { flex: 1; min-width: 0; transition: translate .4s var(--ease-out); }
.dd__go { flex: none; align-self: center; width: 18px; height: 18px; color: var(--petrol); opacity: 0; translate: -8px 0; transition: opacity .35s var(--ease), translate .4s var(--ease-out); }
.dd__a:hover, .dd__a:focus-visible { background: var(--grey); }
.dd__a:hover::before, .dd__a:focus-visible::before { transform: none; }
.dd__a:hover .dd__x, .dd__a:focus-visible .dd__x { translate: 4px 0; }
.dd__a:hover .dd__go, .dd__a:focus-visible .dd__go { opacity: 1; translate: 0 0; }
.dd__a:hover .dd__n, .dd__a:focus-visible .dd__n, .dd__a:hover strong, .dd__a:focus-visible strong { color: var(--petrol); }
.dd__n { flex: none; width: 24px; padding-top: 2px; font-size: .8rem; font-weight: 600; color: var(--steel-text); font-variant-numeric: tabular-nums; transition: color .3s var(--ease); }
.dd__a strong { display: block; font-weight: 600; line-height: 1.3; color: var(--ink); transition: color .3s var(--ease); }
/* all'apertura le voci entrano una dopo l'altra */
.motion .dd.is-open .dd__intro { animation: dd-in .5s var(--ease-out) both; }
.motion .dd.is-open .dd__grid li { animation: dd-in .5s var(--ease-out) both; }
.motion .dd.is-open .dd__grid li:nth-child(1) { animation-delay: 40ms; }
.motion .dd.is-open .dd__grid li:nth-child(2) { animation-delay: 75ms; }
.motion .dd.is-open .dd__grid li:nth-child(3) { animation-delay: 110ms; }
.motion .dd.is-open .dd__grid li:nth-child(4) { animation-delay: 145ms; }
.motion .dd.is-open .dd__grid li:nth-child(5) { animation-delay: 180ms; }
.motion .dd.is-open .dd__grid li:nth-child(6) { animation-delay: 215ms; }
.motion .dd.is-open .dd__grid li:nth-child(7) { animation-delay: 250ms; }
@keyframes dd-in { from { opacity: 0; transform: translateY(10px); } }
.dd__a span span { display: block; margin-top: 3px; font-size: .9rem; line-height: 1.45; color: var(--muted); }
@media (min-width: 1240px) { .dd__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1099px) { .dd { display: none !important; } }

/* ---------- Drawer (telefono e tablet) ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgb(3 31 34 / .6); opacity: 0; transition: opacity .42s var(--ease); }
.drawer-backdrop.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; z-index: 95; display: flex; flex-direction: column; width: min(92vw, 400px); height: 100dvh; background: var(--white); box-shadow: -24px 0 48px -24px rgb(0 0 0 / .4); transform: translateX(104%); visibility: hidden; transition: transform .42s var(--ease), visibility 0s .42s; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .42s var(--ease), visibility 0s 0s; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer__close { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); color: var(--petrol); transition: background-color .2s var(--ease); }
.drawer__close:hover { background: var(--petrol-50); }
.drawer__list { flex: 1; overflow-y: auto; padding: 4px 0; }
.drawer__list a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 20px; border-bottom: 1px solid var(--grey-2); font-size: 1.12rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.drawer__ic { width: 18px; height: 18px; color: var(--line-2); transition: transform .3s var(--ease), color .3s var(--ease); }
.drawer__list a:hover, .drawer__list a[aria-current="page"] { color: var(--petrol); background: var(--grey); }
.drawer__list a:hover .drawer__ic, .drawer__list a[aria-current="page"] .drawer__ic { color: var(--petrol); transform: translateX(3px); }
.motion .drawer.is-open .drawer__list li { animation: drawer-in .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms + 80ms); }
@keyframes drawer-in { from { opacity: 0; transform: translateX(18px); } }
.drawer__foot { display: flex; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer__foot .btn { flex: 1; min-width: 0; padding: 0 16px; gap: 8px; }
.drawer__call { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: var(--r); border: 1px solid var(--petrol); color: var(--petrol); transition: background-color .2s var(--ease); }
.drawer__call:hover { background: var(--petrol-50); }
@media (max-width: 379px) { .drawer__foot .btn__ic { display: none; } }
@media (min-width: 1100px) { .drawer, .drawer-backdrop { display: none; } }

/* ---------- Barra di avanzamento ---------- */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 85; height: 2px; background: var(--steel); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; will-change: transform; }

/* ---------- Hero: palcoscenico di foto + pannello scuro con la tacca ---------- */
.hero { position: relative; display: flex; flex-direction: column; background: var(--white); }
.hero__stage { position: relative; z-index: 0; isolation: isolate; order: 2; height: 300px; overflow: hidden; background: var(--dark); }
.hero__slide { position: absolute; inset: -9% 0 0 0; overflow: hidden; opacity: 0; transform: translate3d(0, calc(var(--hy, 0) * 1px), 0); transition: opacity 1.4s var(--ease-io); }
.hero__slide.is-on { opacity: 1; z-index: 1; }
.hero__slide picture { display: block; width: 100%; height: 100%; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 8s cubic-bezier(.25, .1, .25, 1); }
.hero__slide.is-on img { transform: scale(1.0); }
.hero--page .hero__slide img { transform: scale(1.04); }
.hero__wrap { display: contents; }
.hero__panel { --nw: 28px; position: relative; z-index: 2; order: 1; padding: 36px var(--gutter) 40px; background: var(--dark); color: #fff; }
.hero__tag { margin-bottom: 18px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-light); }
.hero__title { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; max-width: 13ch; }
.hero__title--page { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); max-width: 16ch; }
.hero__lede { margin-top: 22px; max-width: 58ch; font-size: clamp(1.04rem, .98rem + .3vw, 1.16rem); line-height: 1.62; color: var(--on-dark-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__nav { order: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px var(--gutter) 0; }
.hero__count { font-size: .85rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.hero__now { color: var(--petrol); }
.hero__dots { display: flex; gap: 2px; }
.hero__dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; }
.hero__dot i { position: relative; display: block; width: 32px; height: 2px; background: #7f9095; overflow: hidden; }
.hero__dot i::after { content: ""; position: absolute; inset: 0; background: var(--petrol); transform: scaleX(0); transform-origin: 0 50%; }
.hero__dot[aria-current="true"] i::after { transform: scaleX(var(--hp, 1)); }
.hero__dot:hover i { background: var(--steel); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 20px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-light); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-2); text-decoration: none; }
.crumb a:hover { color: #fff; }
.crumb__ic { width: 14px; height: 14px; stroke-width: 1.8; }
.hero--plain .hero__panel { order: 0; clip-path: none; }
@media (max-width: 479px) { .hero__ctas { flex-direction: column; } .hero__ctas .btn { width: 100%; } }
@media (min-width: 760px) {
  /* il pannello parte sempre alla stessa distanza dall'header (uguale in tutte le pagine),
     la foto riempie lo spazio dietro e il pannello sporge in basso nella fascia bianca */
  .hero { --hero-gap: clamp(110px, 17vh, 160px); --hero-ov: 72px; display: block; padding-top: var(--hero-gap); }
  .hero__stage { position: absolute; left: 0; right: 0; top: 0; bottom: var(--hero-ov); height: auto; }
  .hero__wrap { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; }
  .hero__wrap { z-index: 2; filter: drop-shadow(0 30px 40px rgb(4 42 45 / .35)); }
  .hero__panel { --nw: 40px; grid-column: 1 / -1; padding: 44px 44px 46px; }
  .hero__nav { position: absolute; right: var(--gutter); bottom: 14px; padding: 0; gap: 12px; }
  .hero--page { --hero-ov: 56px; }
  .hero--plain { padding: 0; background: var(--dark); }
  .hero--plain .hero__wrap { position: static; }
  .hero--plain .hero__wrap { filter: none; }
  .hero--plain .hero__panel { grid-column: 1 / span 10; padding: 64px 0 72px; clip-path: none; }
}
@media (min-width: 1100px) {
  .hero__panel { grid-column: 1 / span 8; padding: 58px 64px 62px; }
  .hero__nav { flex-direction: column; align-items: flex-end; gap: 2px; bottom: 10px; }
  .hero--page .hero__panel { grid-column: 1 / span 9; }
  .hero--plain .hero__panel { padding: 84px 0 92px; }
}

/* ---------- Cifre ---------- */
.figures { padding: clamp(50px, 6.3vw, 86px) 0; border-bottom: 1px solid var(--line); }
.figures__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fig { position: relative; padding: 22px 16px 22px 0; border-top: 1px solid var(--line); }
.fig:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
.fig::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--petrol); transform: scaleX(var(--fl, 1)); transform-origin: 0 50%; transition: transform .9s var(--ease) .2s; }
.fig:nth-child(2n)::before { left: 16px; }
.fig__v { display: flex; align-items: baseline; gap: 6px; font-size: clamp(2.3rem, 1.6rem + 3vw, 4.4rem); font-weight: 400; line-height: 1; letter-spacing: -.045em; color: var(--petrol); font-variant-numeric: tabular-nums; }
.fig__u { font-size: .3em; font-weight: 600; letter-spacing: .01em; color: var(--steel-text); }
.fig__t { margin-top: 12px; max-width: 26ch; font-size: .92rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 1000px) {
  .figures__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fig, .fig:nth-child(2n) { padding: 4px 24px 0; border-top: 0; border-left: 1px solid var(--line); }
  .fig:first-child { padding-left: 0; border-left: 0; }
  .fig::before, .fig:nth-child(2n)::before { display: none; }
}
@media (min-width: 1000px) and (max-width: 1279px) { .fig__v { font-size: clamp(2.3rem, .6rem + 3.6vw, 3.4rem); } }

/* ---------- Sezioni e testate di capitolo ---------- */
.sec { padding: clamp(72px, 9vw, 126px) 0; }
.sec--tight { padding: clamp(56px, 6.8vw, 96px) 0; }
.sec--grey { background: var(--grey); }
.chap { margin-bottom: clamp(36px, 4.5vw, 58px); }
.chap__rule { position: relative; display: flex; gap: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.chap__rule::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--petrol); transform-origin: 0 50%; }
.chap__n { color: var(--petrol); font-variant-numeric: tabular-nums; }
.chap__name { color: var(--muted); }
.chap__grid { display: grid; gap: 18px; margin-top: 26px; }
.chap__t { font-size: clamp(2.1rem, 1.35rem + 2.9vw, 3.7rem); line-height: 1.04; letter-spacing: -.032em; color: var(--ink); }
.chap__side { display: grid; justify-items: start; gap: 10px; }
.chap__lead { max-width: 46ch; font-size: clamp(1.04rem, 1rem + .2vw, 1.14rem); color: var(--muted); }
@media (min-width: 900px) {
  .chap__grid { grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: start; }
  .chap__t { grid-column: 1 / span 7; }
  .chap__side { grid-column: 9 / -1; padding-top: 8px; }
}

/* ---------- Azienda: linea del tempo + racconto + scheda dei dati ---------- */
.tline { position: relative; margin-bottom: clamp(44px, 5.5vw, 72px); }
.tline__track { position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); overflow: hidden; }
.tline__track i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--steel), var(--petrol)); transform: scaleX(var(--tf, 1)); transform-origin: 0 50%; will-change: transform; }
.tline__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
.tline__it { position: relative; padding-top: 34px; }
.tline__dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 2px var(--line-2); transition: background-color .45s var(--ease), box-shadow .45s var(--ease); }
.tline__it.is-on .tline__dot { background: var(--petrol); box-shadow: inset 0 0 0 2px var(--petrol), 0 0 0 6px rgb(0 71 75 / .12); }
.tline__y { display: flex; align-items: baseline; gap: 6px; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); font-weight: 400; line-height: 1; letter-spacing: -.045em; color: var(--petrol); font-variant-numeric: tabular-nums; }
.tline__y small { font-size: .3em; font-weight: 600; letter-spacing: .02em; color: var(--steel-text); }
.tl__c { margin-top: 12px; max-width: 30ch; font-size: .97rem; color: var(--muted); }
.motion .tline__it .tl__c { opacity: .45; transition: opacity .6s var(--ease); }
.motion .tline__it.is-on .tl__c { opacity: 1; }
/* telefono: linea del tempo verticale, una tappa per riga, la linea scende mentre si scorre */
@media (max-width: 759px) {
  .tline__list { grid-template-columns: 1fr; gap: 26px; }
  .tline__track { top: 10px; bottom: 10px; left: 7px; right: auto; width: 2px; height: auto; }
  .tline__track i { background: linear-gradient(180deg, var(--steel), var(--petrol)); transform: scaleY(var(--tf, 1)); transform-origin: 50% 0; }
  .tline__it { padding-top: 0; padding-left: 36px; }
  .tline__dot { top: 6px; }
  .tline__y { font-size: 2.3rem; }
  .tl__c { max-width: none; }
}
@media (min-width: 760px) { .tline__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.story { display: grid; gap: 32px; }
.story__text { display: grid; gap: 18px; }
.story__lead { max-width: 44ch; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.5; letter-spacing: -.01em; color: var(--ink-2); }
.story__lead strong { font-weight: 500; color: var(--petrol); box-shadow: inset 0 -.38em 0 rgb(62 124 153 / .14); }
.story__p { max-width: 58ch; color: var(--muted); }
.story__facts { --nw: 26px; display: grid; padding: 8px 28px; background: var(--white); box-shadow: var(--sh-2); border-top: 3px solid var(--petrol); }
.sfact { padding: 18px 0; }
.sfact + .sfact { border-top: 1px solid var(--line); }
.sfact dt { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.sfact dt .ic { width: 22px; height: 22px; color: var(--steel); }
.sfact dd { margin-top: 4px; padding-left: 34px; color: var(--muted); }
@media (min-width: 900px) {
  .story { grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: start; }
  .story__text { grid-column: 1 / span 7; }
  .story__facts { grid-column: 9 / -1; }
}

/* ---------- Competenze: griglia a mosaico ---------- */
.bento { display: grid; gap: 12px; }
.bento__it { display: flex; }
.sk { position: relative; display: flex; width: 100%; background: var(--white); text-decoration: none; color: var(--ink); overflow: hidden; box-shadow: var(--sh-1); }
.sk__ph { position: relative; flex: none; width: 112px; overflow: hidden; background: var(--grey-2); }
.sk__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sk__ph--icon { display: grid; place-items: center; background: radial-gradient(120% 120% at 100% 0%, var(--petrol) 0%, var(--dark) 70%); color: var(--steel-light); }
.sk__ph--icon .ic { width: 64px; height: 64px; stroke-width: 1; transition: transform .8s var(--ease); }
@media (hover: hover) and (pointer: fine) { .sk:hover .sk__ph--icon .ic { transform: scale(1.08); } }
.sk__body { display: grid; align-content: start; gap: 4px; padding: 16px 16px 18px; }
.sk__n { font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--steel-text); font-variant-numeric: tabular-nums; }
.sk__t { font-size: 1.08rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.sk__p { font-size: .92rem; line-height: 1.5; color: var(--muted); }
.sk--lead { flex-direction: column; gap: 10px; padding: 30px 24px 26px; background: var(--petrol); color: #fff; }
.sk--lead .sk__n { color: var(--steel-light); }
/* foto di sfondo della scheda Progettazione, coperta dal petrolio perche' il testo resti leggibile */
.sk__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sk__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; filter: grayscale(.4); transition: transform 1.2s var(--ease-out), opacity .6s var(--ease); }
.sk__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgb(0 71 75 / .55) 0%, rgb(0 54 58 / .92) 62%); }
.sk--lead > :not(.sk__bg) { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) { .sk--lead:hover .sk__bg img { transform: scale(1.05); opacity: .42; } }
.sk__ic { color: var(--steel-light); margin: 6px 0 4px; }
.sk__ic .ic { width: 44px; height: 44px; stroke-width: 1.2; }
.sk--lead .sk__t { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); font-weight: 500; letter-spacing: -.02em; }
.sk--lead .sk__p { color: var(--on-dark-2); font-size: 1rem; max-width: 34ch; }
.sk__list { display: grid; margin-top: 8px; border-top: 1px solid var(--dark-line); }
.sk__list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--dark-line); font-size: .95rem; color: var(--on-dark); }
.sk__list li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--steel-light); }
.sk__go { display: grid; place-items: center; width: 46px; height: 46px; margin-top: auto; border-radius: 50%; border: 1px solid rgb(255 255 255 / .42); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.sk__go .ic { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.sk--lead .sk__go { margin-top: 18px; }
.sk--all { flex-direction: column; justify-content: center; gap: 6px; padding: 26px 24px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.sk--all .sk__t { font-size: 1.2rem; }
.sk--all .sk__go { margin-top: 12px; border-color: var(--petrol); color: var(--petrol); }
@media (hover: hover) and (pointer: fine) {
  .sk:hover { box-shadow: var(--sh-3); }
  .sk:hover .sk__ph img { transform: scale(1.05); }
  .sk--lead:hover .sk__go { background: #fff; color: var(--petrol); border-color: #fff; }
  .sk--all:hover { box-shadow: inset 0 0 0 1px var(--petrol); }
  .sk--all:hover .sk__go { background: var(--petrol); color: #fff; }
  .sk:hover .sk__go .ic { transform: translateX(2px); }
}
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .bento__it--lead, .bento__it--all { grid-column: 1 / -1; }
  .sk { flex-direction: column; }
  .sk__ph { width: 100%; aspect-ratio: 16 / 10; }
  .sk__body { padding: 22px 24px 26px; gap: 6px; }
  .sk__t { font-size: 1.15rem; }
  .sk__p { font-size: .95rem; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento__it--lead { grid-column: 1; grid-row: span 2; }
  .bento__it--all { grid-column: 3; }
  .sk--lead { padding: 40px 36px 36px; }
  .sk--lead .sk__go { margin-top: auto; }
  .sk--lead .sk__list { margin-bottom: 26px; }
}

/* ---------- Progetti: caso in evidenza + binario delle referenze ---------- */
.case { position: relative; }
.case__ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey-2); }
.case__ph img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.case__panel { position: relative; display: grid; gap: 12px; margin: -36px 12px 0; padding: 28px 22px 26px; background: var(--white); box-shadow: var(--sh-3); border-top: 3px solid var(--petrol); }
.case__k { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-text); }
.case__t { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.3rem); line-height: 1.1; letter-spacing: -.025em; }
.case__p { color: var(--muted); max-width: 52ch; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 6px; border-top: 1px solid var(--line); }
.spec > div { padding-top: 14px; }
.spec dt { font-size: .7rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin-top: 4px; font-size: .97rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
@media (min-width: 760px) {
  .case__ph { aspect-ratio: 16 / 9; }
  .case__panel { margin: -72px 32px 0 auto; max-width: 78%; padding: 36px 40px 34px; }
}
@media (min-width: 1100px) {
  .case__ph { aspect-ratio: 21 / 10; }
  .case__panel { width: min(560px, 56%); margin: -160px 0 0 auto; padding: 40px 44px 38px; }
}
.refs { margin-top: clamp(58px, 7.2vw, 94px); }
.refs--flat { margin-top: 0; }
.refs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.refs__t { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); letter-spacing: -.02em; }
.rail__ctrl { display: flex; gap: 8px; }
.rail__btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--white); color: var(--petrol); transition: background-color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease); }
.rail__btn:hover { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.rail__btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.rail__btn[aria-disabled="true"]:hover { background: var(--white); border-color: var(--line-2); color: var(--petrol); }
.rail__prev .ic { transform: rotate(180deg); }
/* il binario arriva fino al bordo dello schermo, anche oltre i 1280 px del contenuto */
.rail { --bleed: calc(var(--gutter) + max(0px, (100vw - 1280px) / 2)); display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 380px); gap: 16px; margin-right: calc(-1 * var(--bleed)); padding: 6px var(--bleed) 30px 2px; margin-left: -2px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.ref { display: flex; flex-direction: column; padding: 30px 26px 22px; scroll-snap-align: start; background: var(--white); box-shadow: var(--sh-1); }
.ref__v { display: flex; align-items: baseline; gap: 6px; height: 1em; font-size: clamp(2.6rem, 2.1rem + 1.6vw, 3.4rem); font-weight: 400; line-height: 1; letter-spacing: -.045em; color: var(--petrol); font-variant-numeric: tabular-nums; }
.ref__w { font-size: .62em; letter-spacing: -.03em; }
.ref__u { font-size: .32em; font-weight: 600; letter-spacing: .01em; color: var(--steel-text); }
.ref__t { margin-top: 22px; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.ref__p { margin: 8px 0 22px; font-size: .95rem; color: var(--muted); }
.spec--ref { margin-top: auto; }
.rail__bar { position: relative; height: 2px; margin-top: -8px; background: var(--line); overflow: hidden; }
.rail__bar i { position: absolute; inset: 0; background: var(--petrol); transform: scaleX(var(--rp, .3)); transform-origin: 0 50%; transition: transform .2s linear; }

/* ---------- Metodo: quattro fasi con linea che si riempie ---------- */
.phases { display: grid; gap: 40px; }
.phase { position: relative; display: grid; align-content: start; gap: 8px; padding-top: 26px; }
.phase__line { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-2); overflow: hidden; }
.phase__line i { position: absolute; inset: 0; background: var(--petrol); transform: scaleX(var(--f, 0)); transform-origin: 0 50%; }
.phase.is-on .phase__line i { --f: 1; transition: transform .9s var(--ease); }
.phases.is-scroll .phase .phase__line i { transition: none; }
.phase__n { font-size: clamp(2.4rem, 2rem + 1.4vw, 3.2rem); font-weight: 400; line-height: 1; letter-spacing: -.04em; color: var(--steel-text); font-variant-numeric: tabular-nums; transition: color .5s var(--ease); }
.phase.is-on .phase__n { color: var(--petrol); }
.phase__t { margin-top: 10px; font-size: 1.2rem; font-weight: 600; }
.phase__p { color: var(--muted); font-size: .98rem; max-width: 32ch; }
@media (min-width: 600px) { .phases { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; } }
@media (min-width: 1000px) { .phases { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
html:not(.motion) .phase__line i { transform: none; }

/* ---------- Certificazioni: tabella ---------- */
.quals { width: 100%; border-collapse: collapse; }
.quals thead th { padding: 0 24px 14px 0; border-bottom: 1px solid var(--ink-2); text-align: left; font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.quals tbody tr { border-bottom: 1px solid var(--line); transition: background-color .3s var(--ease); }
.quals tbody th { width: 24%; padding: 24px 24px 24px 0; text-align: left; vertical-align: top; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; color: var(--petrol); white-space: nowrap; }
.quals td { padding: 24px 24px 24px 0; vertical-align: top; }
.quals td:nth-child(2) { width: 42%; font-weight: 500; color: var(--ink-2); }
.quals td:last-child { color: var(--muted); font-size: .97rem; }
@media (hover: hover) and (pointer: fine) { .quals tbody tr:hover { background: var(--grey); } }
@media (max-width: 759px) {
  .quals thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .quals, .quals tbody, .quals tr, .quals th, .quals td { display: block; width: auto !important; }
  .quals tbody tr { padding: 20px 0; }
  .quals tbody tr:first-child { border-top: 1px solid var(--ink-2); }
  .quals tbody th, .quals td { padding: 0; white-space: normal; }
  .quals td:nth-child(2) { margin-top: 6px; }
  .quals td:last-child { margin-top: 4px; }
}

/* ---------- Galleria: parete di foto con schede ---------- */
.tabs__list { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); }
.tabs__tab { position: relative; min-height: 48px; padding: 0 16px 0 0; margin-right: 12px; border: 0; background: transparent; font-weight: 600; font-size: 1rem; color: var(--muted); transition: color .3s var(--ease); }
.tabs__tab::after { content: ""; position: absolute; left: 0; right: 16px; bottom: -1px; height: 2px; background: var(--petrol); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { color: var(--petrol); }
.tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__panel:focus-visible { outline-offset: 8px; }
.wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wall__it { aspect-ratio: 4 / 3; }
.wall__it--big { grid-column: 1 / -1; }
.wall__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--r); background: var(--grey-2); overflow: hidden; box-shadow: var(--sh-1); }
.wall__ph { position: absolute; inset: 0; overflow: hidden; }
.wall__ph img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease); }
.wall__zoom { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgb(3 31 34 / .8); color: #fff; opacity: 0; transform: scale(.85); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.wall__zoom .ic { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .wall__btn:hover .wall__ph img { scale: 1.04; }
  .wall__btn:hover .wall__zoom, .wall__btn:focus-visible .wall__zoom { opacity: 1; transform: none; }
}
@media (min-width: 760px) {
  .wall { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .wall__it--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgb(3 31 34 / .95); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .35s var(--ease) both; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img { max-width: min(94vw, 1600px); max-height: 84dvh; width: auto; height: auto; border-radius: var(--r); object-fit: contain; }
.lightbox__btn { position: fixed; display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgb(255 255 255 / .35); border-radius: var(--r); background: rgb(0 0 0 / .25); color: #fff; transition: background-color .2s var(--ease); }
.lightbox__btn:hover { background: rgb(255 255 255 / .14); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev, .lightbox__next { bottom: 20px; }
.lightbox__prev { left: calc(50% - 60px); }
.lightbox__next { left: calc(50% + 10px); }
.lightbox__prev .ic { transform: rotate(180deg); }
@media (min-width: 900px) {
  .lightbox__prev, .lightbox__next { top: 50%; bottom: auto; margin-top: -25px; }
  .lightbox__prev { left: 24px; }
  .lightbox__next { left: auto; right: 24px; }
}

/* ---------- Clienti: schede per settore con la tacca ---------- */
.sectors { display: grid; gap: 14px; }
.sector { --nw: 22px; padding: 26px 24px 24px; background: var(--white); box-shadow: var(--sh-1); border-top: 3px solid var(--petrol); }
.sector__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.sector__ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: var(--r); background: var(--petrol); color: #fff; transition: transform .45s var(--ease); }
.sector__ic .ic { width: 24px; height: 24px; }
.sector__t { font-size: 1.15rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.sector__l { display: grid; gap: 2px; }
.sector__l li { display: flex; align-items: baseline; gap: 12px; padding: 5px 0; font-size: .98rem; line-height: 1.4; color: var(--ink-2); }
.sector__l li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 2px; background: var(--steel); transform: translateY(-2px); }
@media (hover: hover) and (pointer: fine) { .sector:hover .sector__ic { transform: rotate(-6deg) scale(1.05); } }
/* Schede larghe: i settori con molti nomi occupano due colonne e la lista va su due colonne, così ogni fila ha altezze simili */
.sector--w .sector__l, .sector--wd .sector__l { column-gap: 32px; }
.sector--w .sector__l li, .sector--wd .sector__l li { break-inside: avoid; }
@media (min-width: 700px) {
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .sector--w { grid-column: span 2; }
  .sector--w .sector__l { display: block; columns: 2; }
}
@media (min-width: 1100px) {
  .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .sector { padding: 30px 30px 28px; }
  .sector--wd { grid-column: span 2; }
  .sector--wd .sector__l { display: block; columns: 2; }
}

/* ---------- Contatti: pannello scuro finale ---------- */
.final { padding: clamp(72px, 9vw, 126px) 0 clamp(44px, 5.4vw, 64px); background: var(--dark); color: #fff; }
.final__k { display: flex; gap: 18px; padding-top: 16px; border-top: 1px solid var(--dark-line); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
.final__k .chap__n { color: var(--steel-light); }
.final__t { margin: 28px 0 clamp(32px, 4.5vw, 58px); max-width: 13ch; font-size: clamp(2.6rem, 1.3rem + 5.4vw, 6.2rem); line-height: .98; letter-spacing: -.045em; }
.final__row { display: grid; gap: 40px; }
.final__intro { display: grid; justify-items: start; align-content: start; gap: 24px; }
.final__p { max-width: 36ch; font-size: 1.12rem; color: var(--on-dark-2); }
.final__spec { display: grid; gap: 0 24px; }
.final__spec > div { padding: 16px 0 18px; border-top: 1px solid var(--dark-line); }
.final__spec dt { font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--steel-light); }
.final__spec dd { margin-top: 6px; font-size: 1.1rem; font-weight: 500; }
.final__spec a { display: inline-block; padding: 10px 0; margin: -10px 0; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.final__spec a:hover { background-size: 100% 1px; }
.final__collab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: clamp(44px, 5.4vw, 72px); padding-top: 18px; border-top: 1px solid var(--dark-line); color: var(--on-dark-2); }
.final__collab .more { color: #fff; }
@media (min-width: 760px) { .final__spec { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .final__row { grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
  .final__intro { grid-column: 1 / span 5; }
  .final__spec { grid-column: 7 / -1; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: var(--on-dark-2); font-size: .95rem; }
.foot__top { display: grid; gap: 18px; padding: 44px 0 26px; border-bottom: 1px solid var(--dark-line); }
.foot__brand { display: inline-flex; min-height: 48px; align-items: center; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot__nav a, .foot__list a, .foot__legal a:not(.hh) { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-dark); text-decoration: none; transition: color .2s var(--ease); }
.foot__nav a:hover, .foot__list a:hover, .foot__legal a:not(.hh):hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot__mid { display: grid; gap: 28px; padding: 30px 0 34px; }
.foot__h { margin-bottom: 8px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-light); }
.foot__list { columns: 1; }
.foot__list li { break-inside: avoid; }
.foot__list--plain { columns: 1 !important; }
.foot__list--plain li { display: flex; align-items: center; min-height: 40px; color: var(--on-dark); }
.foot__bar { display: grid; gap: 4px; padding: 16px 0 24px; border-top: 1px solid var(--dark-line); font-size: .86rem; }
.foot__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
/* il piccolo bottone di Hard Hat: l'elmetto si inclina e la scritta diventa gialla */
.hh { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-dark-2); text-decoration: none; }
.hh img { width: 22px; height: auto; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.hh b { font-weight: 600; letter-spacing: .1em; color: var(--on-dark); transition: color .2s var(--ease); }
.hh:hover b, .hh:focus-visible b { color: #feca11; }
.hh:hover img, .hh:focus-visible img { transform: rotate(-10deg) translateY(-2px); }
@media (min-width: 760px) {
  .foot__mid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
  .foot__list { columns: 2; column-gap: 32px; }
  .foot__bar { display: flex; align-items: center; justify-content: space-between; }
}
@media (min-width: 1100px) { .foot__top { display: flex; align-items: center; justify-content: space-between; } }

/* ---------- Altre referenze: elenco a righe, niente scorrimento laterale ---------- */
.refs__t { margin-bottom: 18px; }
.ledger { border-top: 1px solid var(--ink-2); }
.led { position: relative; isolation: isolate; display: grid; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.led::before { content: ""; position: absolute; z-index: -1; inset: 0 -20px; background: var(--grey); opacity: 0; transition: opacity .5s var(--ease); }
.led::after { content: ""; position: absolute; left: -20px; top: 18px; bottom: 18px; width: 2px; background: var(--petrol); transform: scaleY(0); transform-origin: 50% 0; transition: transform .5s var(--ease-out); }
.led__v { display: flex; align-items: baseline; gap: 6px; font-size: clamp(2.1rem, 1.7rem + 1.4vw, 2.9rem); font-weight: 400; line-height: 1; letter-spacing: -.045em; color: var(--petrol); font-variant-numeric: tabular-nums; transition: translate .55s var(--ease-out); }
.led__v small { font-size: .34em; font-weight: 600; letter-spacing: .01em; color: var(--steel-text); }
.led__w { font-size: .68em; letter-spacing: -.03em; }
.led__t { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.led__p { margin-top: 4px; max-width: 58ch; font-size: .97rem; color: var(--muted); }
.led__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.led__meta dt { font-size: .7rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.led__meta dd { margin-top: 3px; font-size: .95rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .led:hover::before { opacity: 1; }
  .led:hover::after { transform: none; }
  .led:hover .led__v { translate: 6px 0; }
}
@media (max-width: 759px) { .led::before, .led::after { display: none; } }
@media (min-width: 900px) { .led { grid-template-columns: 240px minmax(0, 1fr) 300px; align-items: center; gap: 32px; padding: 28px 0; } }

/* ---------- Collaborazioni: testo e muro dei loghi ---------- */
.partners { display: grid; gap: 28px; margin-bottom: clamp(32px, 4vw, 52px); }
.partners__lead { max-width: 36ch; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.65rem); line-height: 1.45; letter-spacing: -.012em; color: var(--ink-2); }
.partners__k { margin-bottom: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-text); }
.partners__more ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; border-top: 1px solid var(--line); }
.partners__more li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .97rem; line-height: 1.35; color: var(--ink-2); }
@media (min-width: 900px) {
  .partners { grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: start; }
  .partners__lead { grid-column: 1 / span 7; }
  .partners__more { grid-column: 9 / -1; }
}
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.logo-t { display: grid; place-items: center; min-height: 112px; padding: 20px 16px; background: var(--white); box-shadow: var(--sh-1); }
.sec--grey .logo-t { background: var(--white); }
.logo-t img { width: auto; max-width: 82%; height: auto; max-height: 72px; object-fit: contain; filter: grayscale(1) brightness(.82) contrast(1.2); opacity: .8; transition: filter .5s var(--ease), opacity .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .logo-t:hover img { filter: none; opacity: 1; } }
@media (min-width: 700px) { .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } .logo-t { min-height: 132px; } }
/* loghi dei clienti: una sola riga che scorre in continuo, sfumata ai bordi, ferma sotto il mouse */
.mq { position: relative; overflow: hidden; padding: clamp(22px, 3vw, 34px) 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.mq__track { display: flex; width: max-content; animation: mq-run 48s linear infinite; }
.mq__list { display: flex; flex: none; align-items: center; gap: clamp(52px, 6vw, 96px); padding-right: clamp(52px, 6vw, 96px); }
.mq__it { flex: none; display: grid; place-items: center; height: 76px; }
.mq__it img { display: block; height: auto; max-width: none; object-fit: contain; }
@media (max-width: 699px) { .mq__it { height: 62px; zoom: .8; } }
@keyframes mq-run { to { transform: translate3d(-50%, 0, 0); } }
@media (hover: none), (pointer: coarse) { .mq__track { animation-duration: 36s; } }
@media (prefers-reduced-motion: reduce) { .mq { -webkit-mask-image: none; mask-image: none; } .mq__track { animation: none; width: auto; } .mq__list { flex-wrap: wrap; justify-content: center; gap: 28px 48px; padding: 0 var(--gutter); } .mq__list[aria-hidden] { display: none; } }

/* nota sulla fonte delle qualifiche */
.quals__src { margin-top: 14px; font-size: .86rem; color: var(--muted); }

/* =========================================================
   PAGINE INTERNE
   ========================================================= */

/* registro degli interventi: ricerca, filtro con i conteggi, gruppi per settore */
.reg2__bar { display: grid; gap: 18px; }
.reg2__search { position: relative; display: flex; align-items: center; }
.reg2__search .ic { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.reg2__search input { width: 100%; min-height: 52px; padding: 12px 14px 12px 46px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); font: 400 16px/1.4 var(--f-sans); color: var(--ink); box-shadow: var(--sh-1); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.reg2__search input:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgb(0 71 75 / .15); }
.filter__n { margin-left: 6px; font-size: .76rem; font-weight: 600; color: var(--steel-text); font-variant-numeric: tabular-nums; }
.filter__b[aria-pressed="true"] .filter__n { color: var(--petrol); }
@media (min-width: 1000px) { .reg2__bar { grid-template-columns: 340px 1fr; align-items: end; gap: 32px; } }
.rg { margin-top: clamp(28px, 3.5vw, 44px); }
.rg[hidden] { display: none; }
.rg__h { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--petrol); }
.rg__ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r); background: var(--petrol); color: #fff; }
.rg__ic .ic { width: 22px; height: 22px; }
.rg__t { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); font-weight: 600; letter-spacing: -.01em; }
.rg__n { margin-left: auto; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.rg__list { display: grid; }
.rgi { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rgi[hidden] { display: none; }
.rgi__c { font-weight: 600; line-height: 1.35; color: var(--ink); }
.rgi__l { display: inline-flex; align-items: center; gap: 5px; font-size: .86rem; line-height: 1.4; color: var(--muted); text-align: right; }
.rgi__l .ic { width: 14px; height: 14px; color: var(--steel); }
.rgi__i { grid-column: 1 / -1; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.motion .rgi.is-new { animation: row-in .45s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 25ms); }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } }
.reg2__empty { padding: 48px 0 8px; color: var(--muted); }
.reg2__empty[hidden] { display: none; }
@media (min-width: 760px) { .rg__list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (max-width: 479px) { .rgi { grid-template-columns: 1fr; } .rgi__l { text-align: left; } }

/* aree (Azienda, Collabora) */
.areas { display: grid; gap: 12px; }
.area a { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; height: 100%; padding: 22px 22px 22px; background: var(--white); box-shadow: var(--sh-1); text-decoration: none; transition: box-shadow .4s var(--ease); }
.area__n { grid-row: span 3; font-size: .8rem; font-weight: 600; color: var(--steel-text); font-variant-numeric: tabular-nums; padding-top: 3px; }
.area__ic { color: var(--petrol); }
.area__ic .ic { width: 30px; height: 30px; stroke-width: 1.3; }
.area__t { font-size: 1.1rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.area__p { font-size: .94rem; line-height: 1.5; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .area a:hover { box-shadow: var(--sh-3); } }
@media (min-width: 700px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .areas { grid-template-columns: repeat(4, minmax(0, 1fr)); } .areas > li:first-child { grid-column: span 2; } }

/* sedi (Azienda) */
.places { display: grid; gap: 16px; }
.place { --nw: 26px; display: grid; justify-items: start; align-content: start; gap: 8px; padding: 30px 28px 26px; background: var(--white); box-shadow: var(--sh-2); border-top: 3px solid var(--petrol); }
.place__ic { color: var(--steel); margin-bottom: 6px; }
.place__ic .ic { width: 30px; height: 30px; stroke-width: 1.3; }
.place__k { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-text); }
.place__t { font-size: 1.35rem; line-height: 1.25; letter-spacing: -.015em; }
.place__t a { display: inline-block; padding: 8px 0; margin: -8px 0; text-decoration: none; }
.place__p { color: var(--muted); }
.place__p a { color: var(--petrol); }
@media (min-width: 900px) { .places { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } .places--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* dossier delle competenze: indice fisso a sinistra, schede a destra */
.dossier { display: grid; gap: 40px; }
.dossier__nav { display: none; }
.dossier__k { margin-bottom: 14px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dossier__list { display: grid; border-top: 1px solid var(--line-2); }
.dossier__list a { position: relative; display: flex; gap: 12px; align-items: baseline; min-height: 44px; padding: 11px 0 11px 14px; border-bottom: 1px solid var(--line); font-size: .95rem; font-weight: 500; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: color .25s var(--ease), padding .35s var(--ease); }
.dossier__list a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--petrol); transform: scaleY(0); transition: transform .35s var(--ease); }
.dossier__list a span { font-size: .78rem; font-weight: 600; color: var(--steel-text); }
.dossier__list a:hover { color: var(--petrol); }
.dossier__list a[aria-current="true"] { color: var(--petrol); padding-left: 20px; }
.dossier__list a[aria-current="true"]::before { transform: none; }
.area-doc { padding: 0 0 clamp(56px, 7vw, 92px); scroll-margin-top: 110px; }
.area-doc + .area-doc { padding-top: clamp(4px, 1vw, 12px); }
.area-doc__t { margin-top: 22px; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); line-height: 1.06; letter-spacing: -.03em; }
.area-doc__lead { margin-top: 14px; max-width: 58ch; font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); }
.motion .area-doc__head .area-doc__lead { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease) .3s, transform .7s var(--ease) .3s; }
.motion .area-doc__head.is-in .area-doc__lead { opacity: 1; transform: none; }
.area-doc__media { position: relative; display: grid; gap: 12px; margin: 28px 0; }
.area-doc__ph { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--grey-2); box-shadow: var(--sh-2); }
.area-doc__ph img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.area-doc__media--two { grid-template-columns: 1.6fr 1fr; }
.area-doc__media--two .area-doc__ph { aspect-ratio: auto; min-height: 220px; }
.area-doc__media--two .area-doc__ph--b { margin-top: 40px; }
.area-doc__mark { --nw: 32px; display: grid; place-items: center; margin: 28px 0; aspect-ratio: 21 / 7; background: linear-gradient(135deg, var(--petrol), var(--dark)); color: var(--steel-light); box-shadow: var(--sh-2); }
.area-doc__mark .ic { width: 72px; height: 72px; stroke-width: 1; }
.area-doc__cols { display: grid; gap: 28px; }
.area-doc__h { margin-bottom: 10px; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-text); }
.ticks { display: grid; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); line-height: 1.5; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; background: var(--petrol); }
.ticks--sm li { padding: 8px 0 8px 20px; font-size: .94rem; }
.ticks--sm li::before { top: 15px; width: 7px; height: 7px; }
.refs-list { display: grid; border-top: 1px solid var(--line); }
.refs-list li { padding: 11px 0; border-bottom: 1px solid var(--line); line-height: 1.5; color: var(--muted); font-size: .97rem; }
@media (min-width: 760px) { .area-doc__cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (min-width: 1100px) {
  .dossier { grid-template-columns: 250px 1fr; gap: 64px; align-items: start; }
  .dossier__nav { display: block; position: sticky; top: calc(var(--bar-h) + 28px); }
}

/* schede caso (Progetti) */
.cases { display: grid; gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.cs { display: grid; align-content: start; gap: 8px; padding: 30px 26px 24px; background: var(--white); box-shadow: var(--sh-1); }
.cs__t { margin-top: 18px; font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.cs__m { margin-bottom: 8px; font-size: .86rem; font-weight: 600; letter-spacing: .04em; color: var(--steel-text); }
@media (min-width: 700px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

/* filtro e registro (Progetti) */
.filter { display: flex; flex-wrap: wrap; gap: 0 4px; border-bottom: 1px solid var(--line-2); }
.filter__b { position: relative; min-height: 48px; padding: 0 14px 0 0; margin-right: 10px; border: 0; background: none; font-weight: 600; font-size: .97rem; color: var(--muted); transition: color .25s var(--ease); }
.filter__b::after { content: ""; position: absolute; left: 0; right: 14px; bottom: -1px; height: 2px; background: var(--petrol); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.filter__b:hover { color: var(--ink); }
.filter__b[aria-pressed="true"] { color: var(--petrol); }
.filter__b[aria-pressed="true"]::after { transform: scaleX(1); }
.filter__count { margin: 16px 0 8px; font-size: .9rem; color: var(--muted); }
.reg { background: var(--white); box-shadow: var(--sh-1); overflow-x: auto; }
.reg__t { width: 100%; min-width: 0; border-collapse: collapse; }
.reg__t thead th { padding: 16px 20px; border-bottom: 1px solid var(--ink-2); text-align: left; font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.reg__t tbody tr { border-bottom: 1px solid var(--line); transition: background-color .25s var(--ease), opacity .3s var(--ease); }
.reg__t tbody tr:last-child { border-bottom: 0; }
.reg__t tbody th { padding: 14px 20px; text-align: left; font-weight: 600; color: var(--ink); vertical-align: top; }
.reg__t td { padding: 14px 20px; vertical-align: top; color: var(--ink-2); }
.reg__t td:nth-child(2), .reg__t td:last-child { color: var(--muted); font-size: .94rem; white-space: nowrap; }
.reg__t tr.is-new { animation: row-in .45s var(--ease) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }
@media (hover: hover) and (pointer: fine) { .reg__t tbody tr:hover { background: var(--grey); } }
@media (max-width: 759px) {
  .reg { background: none; box-shadow: none; }
  .reg__t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .reg__t, .reg__t tbody, .reg__t tr, .reg__t th, .reg__t td { display: block; }
  .reg__t tbody tr { padding: 16px 0; }
  .reg__t tbody th, .reg__t td { padding: 0; white-space: normal !important; }
  .reg__t td:nth-child(2) { margin-top: 2px; }
  .reg__t td.reg__i { margin-top: 6px; }
  .reg__t td:last-child { margin-top: 4px; font-size: .82rem; font-weight: 600; letter-spacing: .06em; color: var(--steel-text); }
}

/* certificazioni in dettaglio e partner */
.certs { display: grid; gap: 16px; }
.cert { --nw: 26px; display: grid; align-content: start; gap: 10px; padding: 30px 28px 28px; background: var(--white); box-shadow: var(--sh-2); border-top: 3px solid var(--petrol); }
.cert__s { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; color: var(--petrol); }
.cert__t { font-size: 1.1rem; font-weight: 600; }
.cert__p { color: var(--muted); }
@media (min-width: 760px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
.partner { display: grid; gap: 28px; padding: clamp(28px, 4vw, 48px); background: var(--grey); border-left: 3px solid var(--petrol); }
.partner__lead { max-width: 62ch; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); }
.partner__list { display: grid; gap: 16px; }
.partner__list li { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.partner__list strong { font-size: 1.1rem; font-weight: 600; }
.partner__list span { color: var(--muted); }
@media (min-width: 900px) { .partner { grid-template-columns: 1.6fr 1fr; align-items: start; gap: 48px; } }
.docs { display: grid; gap: 20px; align-items: center; justify-items: start; }
.docs__t { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); letter-spacing: -.025em; }
.docs__p { margin-top: 8px; max-width: 52ch; color: var(--muted); }
@media (min-width: 900px) { .docs { grid-template-columns: 1fr auto; gap: 40px; } }

/* contatti e moduli */
.contact { display: grid; gap: 40px; }
.contact__t { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); line-height: 1.06; letter-spacing: -.03em; }
.contact__p { margin: 12px 0 26px; max-width: 52ch; color: var(--muted); }
.contact__card { --nw: 26px; align-self: start; padding: 10px 28px; background: var(--white); box-shadow: var(--sh-2); border-top: 3px solid var(--petrol); }
.cspec > div { padding: 16px 0; }
.cspec > div + div { border-top: 1px solid var(--line); }
.cspec dt { font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--steel-text); }
.cspec dd { margin-top: 4px; font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.cspec dd a { color: var(--petrol); text-decoration: none; }
.cspec dd a:not(.more) { display: inline-block; padding: 10px 0; margin: -10px 0; }
.cspec dd a:not(.more):hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1000px) { .contact { grid-template-columns: repeat(12, 1fr); gap: 0 24px; } .contact__form { grid-column: 1 / span 7; } .contact__card { grid-column: 9 / -1; } }
.contact--solo .contact__form { grid-column: 1 / -1; }
.form { --nw: 26px; padding: clamp(22px, 3vw, 40px); background: var(--white); box-shadow: var(--sh-2); border-top: 3px solid var(--petrol); }
.sec--grey .form, .contact .form { background: var(--white); }
.form__grid { display: grid; gap: 18px; }
.fld { display: grid; gap: 6px; }
.fld__l { font-size: .92rem; font-weight: 600; color: var(--ink); }
.fld__opt { font-weight: 400; color: var(--muted); }
.fld__c { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); font: 400 16px/1.4 var(--f-sans); color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.fld__c:hover { border-color: var(--muted); }
.fld__c:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgb(0 71 75 / .15); }
textarea.fld__c { resize: vertical; min-height: 130px; }
select.fld__c { appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300474b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
input[type="file"].fld__c { padding: 10px; }
.form.was-checked .fld__c:invalid { border-color: #b3261e; }
.fld__h { font-size: .85rem; color: var(--muted); }
.form__foot { display: grid; gap: 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--petrol); }
.check a { color: var(--petrol); }
.form__send { justify-self: start; }
.form__send.is-busy { opacity: .7; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 700px) { .form__grid { grid-template-columns: 1fr 1fr; } .fld--full { grid-column: 1 / -1; } .form__foot { grid-template-columns: 1fr auto; align-items: center; } }

/* profili (Collabora) */
.profiles { display: grid; gap: 16px; }
.profile { --nw: 24px; display: grid; align-content: start; gap: 10px; padding: 30px 28px 28px; background: var(--white); box-shadow: var(--sh-2); border-top: 3px solid var(--petrol); }
.profile__ic { color: var(--steel); margin-bottom: 4px; }
.profile__ic .ic { width: 34px; height: 34px; stroke-width: 1.3; }
.profile__t { font-size: 1.3rem; font-weight: 600; }
.profile__p { color: var(--muted); }
@media (min-width: 900px) { .profiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

/* testo legale */
.prose { max-width: 780px; }
.prose h2 { margin: 40px 0 12px; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); font-weight: 600; letter-spacing: -.015em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; color: var(--ink-2); }
.prose a { color: var(--petrol); }

/* collegamenti rapidi (404, Grazie) */
.quick { display: grid; border-top: 1px solid var(--line-2); max-width: 780px; }
.quick a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 500; text-decoration: none; color: var(--ink); transition: color .2s var(--ease), padding .3s var(--ease); }
.quick a .ic { width: 20px; height: 20px; color: var(--petrol); transition: transform .3s var(--ease); }
.quick a:hover { color: var(--petrol); padding-left: 8px; }
.quick a:hover .ic { transform: translateX(4px); }

/* =========================================================
   MOVIMENTO (livello High). Gli stati nascosti valgono solo con
   html.motion, che lo script in <head> toglie se site.js non parte.
   Le foto non partono mai vuote: hanno un'anteprima sfocata e si muovono, non spariscono.
   ========================================================= */
.motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease), background-color .3s var(--ease), box-shadow .4s var(--ease); transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms; }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .bento .reveal .sk__ph img { transform: scale(1.07); transition: transform 1.2s var(--ease-out); }
.motion .bento .reveal.is-in .sk__ph img { transform: none; }
@media (hover: hover) and (pointer: fine) { .motion .bento .reveal.is-in .sk:hover .sk__ph img { transform: scale(1.05); } }

/* schede: si sollevano piano sotto il mouse e tornano giu' con la stessa morbidezza.
   Si usa la proprieta' translate, separata dal transform delle comparse, cosi' le due cose non si scontrano. */
.sk, .area a, .sector, .cs, .cert, .profile, .place, .logo-t { transition: translate .55s var(--ease-out), box-shadow .55s var(--ease-out), background-color .3s var(--ease); }
.motion .reveal.sector, .motion .reveal.cs, .motion .reveal.cert, .motion .reveal.profile, .motion .reveal.place, .motion .reveal.logo-t { transition: opacity .55s var(--ease), transform .55s var(--ease), translate .55s var(--ease-out), box-shadow .55s var(--ease-out); transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms; }
@media (hover: hover) and (pointer: fine) {
  .sk:hover, .area a:hover, .sector:hover, .cs:hover, .cert:hover, .profile:hover, .place:hover, .logo-t:hover { translate: 0 -5px; box-shadow: var(--sh-3); }
  .sk--all:hover { translate: 0 -3px; }
}

/* testate: la riga si disegna, le parole salgono da una maschera */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; }
.motion .reveal-head .chap__rule::before { transform: scaleX(0); transition: transform .9s var(--ease) .05s; }
.motion .reveal-head .chap__rule > span { opacity: 0; transition: opacity .6s var(--ease) .15s; }
.motion .reveal-head .wi { transform: translateY(108%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--wi) * 45ms + 120ms); }
.motion .reveal-head .chap__side { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease) .35s, transform .7s var(--ease) .35s; }
.motion .reveal-head.is-in .chap__rule::before { transform: none; }
.motion .reveal-head.is-in .chap__rule > span, .motion .reveal-head.is-in .chap__side { opacity: 1; transform: none; }
.motion .reveal-head.is-in .wi { transform: none; }

/* entrata della hero: solo CSS, con ritardi brevi (titolo gia' diviso nell'HTML) */
.motion .hero__tag, .motion .crumb { animation: rise .7s var(--ease) .05s both; }
.motion .hero__title .wi { animation: word-up 1s var(--ease-out) both; animation-delay: calc(var(--wi) * 50ms + 60ms); }
.motion .hero__lede { animation: rise .75s var(--ease) .16s both; }
.motion .hero__ctas { animation: rise .75s var(--ease) .24s both; }
.motion .hero__nav { animation: rise .8s var(--ease) .4s both; }
/* il pannello sale solo dove sta sopra una foto: nella testata semplice (Contatti, Privacy...) sconfinerebbe nella sezione bianca */
@media (min-width: 760px) { .motion .hero:not(.hero--plain) .hero__panel { animation: panel-in 1s var(--ease-out) both; } }
.hero--plain { overflow: clip; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes word-up { from { transform: translateY(108%); } }
@keyframes panel-in { from { transform: translateY(26px); } }

/* sequenze illuminate */
html:not(.motion) .tline__dot { background: var(--petrol); box-shadow: inset 0 0 0 2px var(--petrol); }

/* foto legate allo scroll (solo desktop, impostato da site.js) */
.drift-on [data-drift] img { top: -7%; height: 114%; transform: translate3d(0, calc((var(--p, .5) - .5) * -10%), 0); will-change: transform; }
.drift-on .case__ph img { top: -10%; height: 120%; transform: translate3d(0, calc((var(--p, .5) - .5) * -14%), 0) scale(calc(1.08 - var(--p, .5) * .08)); }

/* pannelli delle schede */
.motion .tabs__panel.is-entering .wall__it { animation: tab-in .6s var(--ease) both; animation-delay: calc(var(--k, 0) * 60ms); }
@keyframes tab-in { from { opacity: .25; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =========================================================
   TELEFONO E TABLET (touch): gli effetti del mouse diventano effetti di scroll.
   site.js aggiunge html.touch-motion e mette .is-focus sulla scheda che passa
   al centro dello schermo (si accende e si spegne con la stessa morbidezza),
   .is-lit sui loghi quando entrano in vista, .is-shown sulle foto.
   Solo classi e proprieta' leggere (translate, opacity, box-shadow, filter su
   immagini ferme): niente blur, maschere o lavoro durante lo scroll.
   ========================================================= */
.touch-motion .sk.is-focus, .touch-motion .sector.is-focus, .touch-motion .cs.is-focus, .touch-motion .cert.is-focus, .touch-motion .profile.is-focus, .touch-motion .place.is-focus, .touch-motion .area a.is-focus { translate: 0 -4px; box-shadow: var(--sh-3); }
.touch-motion .bento .reveal.is-in .sk.is-focus .sk__ph img { transform: scale(1.06); }
.touch-motion .sk--lead.is-focus .sk__go { background: #fff; color: var(--petrol); border-color: #fff; }
.touch-motion .sk--all.is-focus { box-shadow: inset 0 0 0 1px var(--petrol); }
.touch-motion .sk--all.is-focus .sk__go { background: var(--petrol); color: #fff; }
.touch-motion .sk__ph--icon .ic { transition: transform .8s var(--ease); }
.touch-motion .sk.is-focus .sk__ph--icon .ic { transform: scale(1.1); }
.touch-motion .sector.is-focus .sector__ic { transform: rotate(-6deg) scale(1.06); }
.touch-motion .area a.is-focus .area__ic, .touch-motion .profile.is-focus .profile__ic, .touch-motion .place.is-focus .place__ic { color: var(--petrol); }
.touch-motion .cs.is-focus .ref__v, .touch-motion .cert.is-focus .cert__s { color: var(--petrol-700); }
/* righe delle referenze: fondo grigio, barra petrolio e numero che scivola */
@media (max-width: 759px) {
  .touch-motion .led::before, .touch-motion .led::after { display: block; }
  .touch-motion .led::before { inset: 0 -16px; }
  .touch-motion .led::after { left: -8px; }
}
.touch-motion .led.is-focus::before { opacity: 1; }
.touch-motion .led.is-focus::after { transform: none; }
.touch-motion .led.is-focus .led__v { translate: 6px 0; }
/* loghi: si accendono uno dopo l'altro quando entrano in vista */
/* sul telefono i loghi sono a colori di base (anche senza script o con "riduci movimento");
   con lo script partono grigi e si accendono uno dopo l'altro quando entrano in vista */
@media (hover: none), (pointer: coarse) {
  .logo-t img { filter: none; opacity: 1; }
  .touch-motion .logo-t:not(.is-lit) img { filter: grayscale(1) brightness(.82) contrast(1.2); opacity: .8; }
}
.touch-motion .logo-t img { transition: filter .9s var(--ease), opacity .9s var(--ease); transition-delay: var(--ld, 0ms); }
.touch-motion .logo-t.is-lit { box-shadow: var(--sh-2); }
/* righe del registro e del menu della galleria */
.touch-motion .rgi { transition: background-color .45s var(--ease), padding .45s var(--ease-out); }
.touch-motion .rgi.is-focus { background: var(--white); padding-left: 10px; padding-right: 10px; box-shadow: inset 2px 0 0 var(--petrol); }
.touch-motion .wall__btn .wall__ph img { transition: scale .9s var(--ease-out); }
.touch-motion .wall__btn.is-focus .wall__ph img { scale: 1.05; }
/* foto: entrano con un leggero zoom che si scioglie (sempre visibili, mai vuote) */
.touch-motion [data-drift] img { transform: scale(1.08); transition: transform 1.4s var(--ease-out), scale .9s var(--ease-out); }
.touch-motion [data-drift].is-shown img { transform: none; }
.touch-motion .area-doc__mark .ic, .touch-motion .feature__ph img { transition: transform 1.2s var(--ease-out); }

/* ---------- Mappa dei lavori ---------- */
.map { display: grid; gap: 36px; }
.map__fig { position: relative; margin: 0; padding: clamp(14px, 3vw, 34px); background: var(--white); box-shadow: var(--sh-1); border-top: 3px solid var(--petrol); }
.map__svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; overflow: visible; }
.map__r { fill: var(--grey-2); stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; transition: fill .35s var(--ease); }
.map__r.is-on { fill: var(--petrol); cursor: pointer; }
.map__r.is-on.is-hov, .map__r.is-on.is-sel { fill: var(--steel); }
.map__pt { fill: #fff; stroke: var(--petrol-700); stroke-width: 1.8; pointer-events: none; transform-box: fill-box; transform-origin: center; }
.map__hq { pointer-events: none; }
.map__dot { fill: #fff; stroke: var(--steel); stroke-width: 3.5; }
.map__ring { fill: none; stroke: var(--steel-light); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.map__lbl { font: 600 17px var(--f-sans); fill: var(--ink); paint-order: stroke; stroke: rgb(255 255 255 / .9); stroke-width: 5px; stroke-linejoin: round; }
.map__src { margin-top: 14px; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.map__figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mfig { position: relative; padding: 20px 14px 20px 0; border-top: 1px solid var(--line-2); }
.mfig:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line-2); }
.mfig::before { content: ""; position: absolute; top: -1px; left: 0; width: 36px; height: 2px; background: var(--petrol); }
.mfig:nth-child(2n)::before { left: 16px; }
.mfig__v { display: flex; align-items: baseline; gap: 5px; font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.3rem); line-height: 1; letter-spacing: -.045em; color: var(--petrol); font-variant-numeric: tabular-nums; }
.mfig__u { font-size: .36em; font-weight: 600; letter-spacing: .01em; color: var(--steel-text); }
.mfig__t { margin-top: 10px; max-width: 24ch; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.map__h { margin: 34px 0 12px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.map__figs + .map__h { margin-top: 30px; }
.map__list { border-top: 1px solid var(--line-2); }
.mreg { position: relative; border-bottom: 1px solid var(--line-2); }
.mreg::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--petrol); transform: scaleY(0); transform-origin: 50% 0; transition: transform .4s var(--ease-out); }
.mreg.is-hov::before, .mreg.is-open::before { transform: none; }
.mreg__b { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 12px 6px 12px 16px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: background-color .25s var(--ease); }
.mreg.is-hov .mreg__b, .mreg.is-open .mreg__b { background: rgb(0 71 75 / .045); }
.mreg__n { flex: 1; font-weight: 600; font-size: 1.04rem; }
.mreg__c { font-size: .88rem; color: var(--steel-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mreg__ic { width: 18px; height: 18px; color: var(--petrol); transition: transform .35s var(--ease); }
.mreg.is-open .mreg__ic { transform: rotate(180deg); }
.mreg__p { padding: 2px 8px 18px 16px; font-size: .95rem; line-height: 1.6; color: var(--muted); }
.mreg__p a { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--petrol); text-underline-offset: 3px; }
.js .mreg__p { display: none; }
.js .mreg.is-open .mreg__p { display: block; animation: mreg-in .4s var(--ease-out); }
@keyframes mreg-in { from { opacity: 0; transform: translateY(-6px); } }
.map__note { margin-top: 14px; font-size: .92rem; color: var(--muted); }
/* entrata: le regioni si colorano una dopo l'altra, poi compaiono i punti e la sede pulsa piano */
.motion .map:not(.is-in) .map__r.is-on { fill: var(--grey-2); }
.motion .map:not(.is-in) .map__pt, .motion .map:not(.is-in) .map__hq { opacity: 0; }
.motion .map.is-in .map__r.is-on { animation: reg-in .8s var(--ease) backwards; animation-delay: calc(var(--wi) * 110ms + 150ms); }
.motion .map.is-in .map__pt { animation: pt-in .5s var(--ease-out) backwards; animation-delay: calc(var(--wi) * 30ms + 650ms); }
.motion .map.is-in .map__hq { animation: hq-in .6s var(--ease-out) .5s backwards; }
@keyframes reg-in { from { fill: var(--grey-2); } }
@keyframes pt-in { from { opacity: 0; transform: scale(0); } }
@keyframes hq-in { from { opacity: 0; } }
@media (min-width: 700px) and (max-width: 1099px) { .map__figs { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mfig:nth-child(n+2) { padding-left: 14px; border-left: 1px solid var(--line-2); } .mfig:nth-child(n+2)::before { left: 14px; } }
@media (max-width: 699px) { .map__lbl { font-size: 26px; stroke-width: 7px; } .map__pt { stroke-width: 2.4; } }
/* su desktop la mappa resta ferma mentre si scorre l'elenco delle regioni */
@media (min-width: 1100px) { .map { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 64px; align-items: start; } .map__side { padding-top: 6px; } .map__fig { position: sticky; top: calc(var(--bar-h) + 24px); } }
/* header con sette voci: tra 1100 e 1280 px le voci si stringono un poco per lasciare spazio al pulsante */
@media (min-width: 1100px) and (max-width: 1279px) { .nav__link { padding: 0 8px; font-size: .94rem; } }
@media (min-width: 1100px) and (max-width: 1199px) { .nav__link { padding: 0 6px; font-size: .92rem; } .header__actions .btn { padding-left: 18px; padding-right: 18px; } }

/* ---------- Manutenzione: fascia scura della telegestione e schede degli impianti seguiti ---------- */
.sec--dark { --notch-bg: var(--dark); background: var(--dark); color: var(--on-dark); }
.sec--dark .chap__rule { border-top-color: var(--dark-line); }
.sec--dark .chap__rule::before { background: var(--steel-light); }
.sec--dark .chap__n { color: var(--steel-light); }
.sec--dark .chap__name { color: var(--on-dark-2); }
.tg { display: grid; gap: 44px; }
/* una foto grande e, sopra, la scheda con la schermata reale di supervisione */
.tg__media { position: relative; margin-bottom: 56px; }
.tg__ph { --nw: clamp(22px, 3.6vw, 48px); position: relative; overflow: hidden; margin: 0; aspect-ratio: 16 / 11; background: var(--dark-2); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
.tg__ph img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.tg__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(3 31 34 / .45)); pointer-events: none; }
.tg__card { position: absolute; right: 12px; bottom: -44px; width: min(46%, 300px); margin: 0; padding: 8px 8px 12px; background: #fff; box-shadow: 0 24px 50px -20px rgb(0 0 0 / .65); border-top: 3px solid var(--steel-light); }
.tg__shot { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--grey-2); }
.tg__shot img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.tg__card figcaption { margin-top: 9px; padding: 0 4px; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.tg__t { margin-top: 22px; font-size: clamp(2rem, 1.35rem + 2.5vw, 3.2rem); font-weight: 500; line-height: 1.06; letter-spacing: -.032em; color: #fff; }
.tg__v { display: flex; align-items: baseline; gap: 6px; margin-top: 30px; font-size: clamp(3.6rem, 2.4rem + 4.6vw, 6.4rem); line-height: .95; letter-spacing: -.055em; color: #fff; font-variant-numeric: tabular-nums; }
.tg__u { font-size: .42em; font-weight: 600; color: var(--steel-light); }
.tg__p { margin-top: 14px; max-width: 46ch; font-size: 1.08rem; color: var(--on-dark-2); }
.ticks--light { margin-top: 28px; border-top-color: var(--dark-line); }
.ticks--light li { color: var(--on-dark); border-bottom-color: var(--dark-line); }
.ticks--light li::before { background: var(--steel-light); }
.tg__refs { display: grid; gap: 10px; margin-top: 24px; font-size: .94rem; line-height: 1.5; color: var(--on-dark-2); }
.tg__refs li { position: relative; padding-left: 22px; }
.tg__refs li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--steel-light); }
@media (max-width: 1099px) { .tg__media { order: 2; } }
@media (min-width: 1100px) { .tg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; } .tg__media { position: sticky; top: calc(var(--bar-h) + 40px); margin: 40px 0 0; } .tg__ph { aspect-ratio: 4 / 5; } .tg__card { right: -28px; bottom: -36px; width: 52%; } }
.mcards, .recent { display: grid; gap: 16px; }
.mc { --nw: 22px; display: grid; align-content: start; gap: 16px; padding: 26px 24px; background: var(--white); box-shadow: var(--sh-1); border-top: 3px solid var(--petrol); }
.mc__head { display: flex; align-items: flex-start; gap: 14px; }
.mc__ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: var(--r); background: var(--petrol); color: #fff; transition: transform .45s var(--ease); }
.mc__ic .ic { width: 24px; height: 24px; }
.mc__t { font-size: 1.14rem; font-weight: 600; line-height: 1.25; }
.mc__d { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .9rem; color: var(--steel-text); }
.mc__d .ic { flex: none; width: 15px; height: 15px; }
.mc__p { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.rc { --nw: 22px; display: grid; align-content: start; background: var(--white); box-shadow: var(--sh-1); border-top: 3px solid var(--petrol); }
.rc__ph { position: relative; overflow: hidden; margin: 0; aspect-ratio: 16 / 10; background: var(--grey-2); }
.rc__ph img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.rc__b { padding: 22px 24px 26px; }
.rc__k { display: flex; gap: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-text); }
.rc__t { margin-top: 8px; font-size: 1.14rem; font-weight: 600; }
.rc__p { margin-top: 8px; color: var(--muted); }
@media (min-width: 700px) { .mcards, .recent { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .mcards, .recent { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } .mc { padding: 30px 28px; } }
.mc, .rc { transition: translate .55s var(--ease-out), box-shadow .55s var(--ease-out); }
.motion .reveal.mc, .motion .reveal.rc { transition: opacity .55s var(--ease), transform .55s var(--ease), translate .55s var(--ease-out), box-shadow .55s var(--ease-out); transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms; }
@media (hover: hover) and (pointer: fine) { .mc:hover, .rc:hover { translate: 0 -5px; box-shadow: var(--sh-3); } .mc:hover .mc__ic { transform: rotate(-6deg) scale(1.05); } }
.touch-motion .mc.is-focus, .touch-motion .rc.is-focus { translate: 0 -4px; box-shadow: var(--sh-3); }
.touch-motion .mc.is-focus .mc__ic { transform: rotate(-6deg) scale(1.06); }
.cert__dl { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 600; color: var(--petrol); text-decoration: none; }
.cert__dl .ic { width: 20px; height: 20px; }
.cert__dl small { font-weight: 400; color: var(--muted); }
.cert__dl:hover span { text-decoration: underline; text-underline-offset: 3px; }
.area-doc__more { margin-top: 24px; }

/* hero sul telefono: la foto scorre dietro al testo, con un velo scuro che lo rende leggibile */
@media (max-width: 759px) {
  .hero:not(.hero--plain) { position: relative; }
  .hero:not(.hero--plain) .hero__stage { position: absolute; inset: 0; height: auto; z-index: 0; }
  .hero:not(.hero--plain) .hero__panel { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(84svh, 700px); padding: 96px var(--gutter) 44px; clip-path: none; background: linear-gradient(180deg, rgb(4 42 45 / .08) 0%, rgb(4 42 45 / .5) 30%, rgb(4 42 45 / .9) 62%, var(--dark) 100%); }
  .hero--page .hero__panel { min-height: min(70svh, 600px); }
  .hero:not(.hero--plain) .hero__nav { position: absolute; z-index: 2; top: 14px; right: var(--gutter); padding: 0; }
  .hero__nav .hero__dot i { background: rgb(255 255 255 / .45); }
  .hero__nav .hero__dot i::after { background: #fff; }
  .hero__title { text-shadow: 0 2px 24px rgb(0 0 0 / .25); }
}

/* leggibilita' sul telefono: testi un po' piu' grandi, grigi piu' scuri, righe piu' ariose */
@media (max-width: 759px) {
  :root { --muted: #475a5e; }
  body { font-size: 1.0625rem; line-height: 1.7; }
  .chap__lead, .story__p, .area-doc__lead { font-size: 1.08rem; line-height: 1.65; }
  .sk__p, .led__p, .tl__c, .phase__p, .cert__p, .profile__p, .place__p, .case__p, .ref__p, .rgi__i, .area__p, .spec__p { font-size: 1rem; line-height: 1.6; }
  .sk__t { font-size: 1.12rem; }
  .fig__t { font-size: .96rem; }
  .sector__l li, .ticks li, .refs-list li, .partners__more li { font-size: 1rem; }
  .mc__p, .rc__p, .mreg__p, .tg__refs { font-size: 1rem; }
  .mfig__t { font-size: .94rem; }
  .led__meta dd, .spec dd { font-size: 1rem; }
  .chap__t { font-size: clamp(2.1rem, 1.6rem + 3vw, 2.6rem); }
  .story__lead { font-size: 1.22rem; line-height: 1.55; }
  .partners__more ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__slide img { transform: none; }
  @view-transition { navigation: none; }
}
