/* ==========================================================================
   Vortex Soluzioni — design system
   Caratteri: Plus Jakarta Sans (titoli e testo), Saira come il logotipo (etichette e numeri).
   Ogni sito di settore ha la sua identità: caratteri, colori, forme e impaginazione
   (vedi "Identità dei settori" più sotto e brand/brand-kit.html).
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --ink: #0F1B2D;
  --muted: #55627A;
  --line: rgba(15, 27, 45, .12);
  --accent: #2563EB;
  --accent-2: #0E7490;
  --on-accent: #FFFFFF;
  --tint: rgba(37, 99, 235, .08);
  --fx1: #2563EB;
  --fx2: #22D3EE;

  --fd: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --fb: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --fl: "Saira", ui-sans-serif, system-ui, sans-serif;
  --h-weight: 700;
  --h-track: -.03em;
  --h-case: none;
  --h-scale: 1;
  --eyebrow-track: .2em;

  --r: 18px;
  --r-sm: 10px;
  --r-btn: 999px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 12px 32px -16px rgba(15, 27, 45, .22);
  --card-border: 1px solid var(--line);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header: 72px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); background: var(--bg); color-scheme: light; }
body { margin: 0; font: 400 clamp(16px, 1.02vw, 17px) / 1.65 var(--fb); color: var(--ink); background: transparent; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.section { position: relative; padding-block: clamp(56px, 8vw, 104px); }
.section--flush { padding-top: 0; }

/* tipografia */
.display, .h1, .h2, .h3, h1, h2, h3 { font-family: var(--fd); font-weight: var(--h-weight); letter-spacing: var(--h-track); text-transform: var(--h-case); line-height: 1.05; margin: 0; text-wrap: balance; }
.display { font-size: calc(clamp(40px, 6.2vw, 84px) * var(--h-scale)); }
.h1 { font-size: calc(clamp(34px, 4.6vw, 60px) * var(--h-scale)); }
.h2 { font-size: calc(clamp(27px, 3.1vw, 42px) * var(--h-scale)); line-height: 1.1; }
.h3, h3 { font-size: calc(clamp(19px, 1.6vw, 23px) * var(--h-scale)); line-height: 1.2; }
.display em, .h1 em, .h2 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 1.3vw, 20px); color: var(--muted); max-width: 60ch; margin: 18px 0 0; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 12.5px/1.2 var(--fl); letter-spacing: var(--eyebrow-track); text-transform: uppercase; color: var(--accent-2); }
.eyebrow::before { content: ""; width: 20px; height: 7px; background: var(--accent); clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }
p { margin: 0; }
.note { margin-top: 20px; font-size: 14.5px; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 14px; max-width: 70ch; }
.text-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.placeholder { background: #FEF3C7; color: #78350F; padding: 0 4px; border-radius: 4px; }

/* comparsa allo scroll (solo opacità e spostamento: composite, fluido) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border: 1.5px solid var(--ink); border-radius: var(--r-btn);
  background: var(--ink); color: #fff; font: 600 15px/1.2 var(--fb); letter-spacing: .01em; text-transform: var(--btn-case, none); cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.link-arrow { font-weight: 600; color: var(--accent); }

/* ---------------------------------------------------------------- sfondo animato */
.bgfx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* ---------------------------------------------------------------- header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header); transition: transform .4s var(--ease), background .3s, box-shadow .3s; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-group { display: flex; align-items: center; gap: 14px; }
.brand img { width: 150px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) { padding: 8px 12px; border-radius: var(--r-sm); font-weight: 500; font-size: 15px; color: var(--muted); transition: color .2s, background .2s; }
.nav > a:not(.btn):hover { color: var(--ink); background: var(--tint); }
.nav > a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav .btn { margin-left: 10px; }
.has-sub { position: relative; }
.sector-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.sector-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.sector-chip span { font-size: 10px; opacity: .6; }
.sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px; padding: 8px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .25s var(--ease); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; }
.sub a:hover { background: var(--tint); }
.sub i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sub small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); position: relative; cursor: pointer; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; gap: 2px; padding: calc(var(--header) + 16px) var(--gutter) 32px; background: var(--bg); overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.menu-open .mobile-nav { opacity: 1; visibility: visible; }
.menu-open, .menu-open body { overflow: hidden; }
.mobile-nav a:not(.btn) { padding: 9px 0; font: var(--h-weight) 24px/1.2 var(--fd); text-transform: var(--h-case); }
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav .mn-h { margin-top: 18px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }
.mobile-nav .mn-h:first-child { margin-top: 0; }
.mobile-nav .btn { margin-top: 24px; }

/* ---------------------------------------------------------------- aperture */
.hero { padding: calc(var(--header) + clamp(28px, 6vw, 72px)) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-media .art { border-radius: var(--r); overflow: hidden; border: var(--card-border); box-shadow: var(--shadow); }
.page-hero { padding: calc(var(--header) + clamp(32px, 5vw, 64px)) 0 clamp(36px, 5vw, 64px); }
.ph-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.page-hero.has-media .ph-grid { grid-template-columns: 1.05fr .95fr; }
.ph-copy .h1 { margin-top: 14px; }
.crumbs { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--accent); font-weight: 600; }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .h2 { margin-top: 14px; }

/* ---------------------------------------------------------------- foto con ruolo */
.shot { margin: 0; }
.shot-img { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--line); }
.shot-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover .shot-img img { transform: scale(1.03); }
.role { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border: 0; border-radius: var(--r-btn);
  background: rgba(255, 255, 255, .94); color: var(--ink); font: 600 13px/1 var(--fb); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35); cursor: pointer; transition: background .2s, color .2s; }
.role i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.role i::before { content: ""; position: absolute; left: 6px; top: 3.5px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.role i::after { content: ""; position: absolute; left: 4px; bottom: 3px; width: 10px; height: 4.5px; border-radius: 5px 5px 0 0; background: #fff; }
.role:hover, .role[aria-expanded="true"] { background: var(--accent); color: var(--on-accent); }
.role:hover i, .role[aria-expanded="true"] i { background: rgba(255, 255, 255, .3); }
.role-pop { position: absolute; left: 14px; top: 56px; z-index: 3; width: min(320px, calc(100% - 28px)); padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow); font-size: 14.5px; line-height: 1.5; }
.role-pop small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }
.role-pop b { display: block; margin: 2px 0 6px; font-family: var(--fd); font-size: 18px; }
.role-pop p { color: var(--muted); }
.shot figcaption { margin-top: 14px; }
.shot figcaption b { display: block; font-family: var(--fd); font-weight: var(--h-weight); font-size: calc(19px * var(--h-scale)); text-transform: var(--h-case); letter-spacing: var(--h-track); }
.shot figcaption p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------------------------------------------------------------- blocchi */
.brief { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.ticks { list-style: none; margin: 12px 0 0; padding: 0; }
.ticks li { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.ticks li::before { content: ""; flex: none; width: 14px; height: 6px; background: var(--accent); clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); transform: translateY(-3px); }
.onfield { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chapter { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 54px; border-radius: var(--r); background: var(--surface); border: var(--card-border); transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.chapter:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.chapter .k { font: 700 13px var(--fl); color: var(--accent-2); letter-spacing: .1em; }
.chapter p { color: var(--muted); font-size: 15px; }
.chapter .arr { position: absolute; left: 26px; bottom: 22px; color: var(--accent); font-size: 20px; }
.split-2 { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar { padding: 24px; border-radius: var(--r); background: var(--surface); border: var(--card-border); display: grid; gap: 10px; align-content: start; }
.pillar .k, .kpi h3 { color: var(--accent-2); }
.pillar .k { font-weight: 700; font-size: 13px; letter-spacing: .1em; }
.pillar p, .kpi p { color: var(--muted); font-size: 15px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 24px; border-radius: var(--r); background: var(--surface); border: var(--card-border); display: grid; gap: 8px; align-content: start; }
.steps .n { font: 700 14px var(--fl); color: var(--on-accent); background: var(--accent); width: 34px; height: 34px; border-radius: var(--r-btn); display: grid; place-items: center; }
.steps p { color: var(--muted); font-size: 15px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { padding: 22px; border-radius: var(--r); background: var(--surface); border: var(--card-border); border-top: 3px solid var(--accent); display: grid; gap: 6px; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.guarantee { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: center; }
.seal { max-width: 300px; }
.seal .ring { transform-origin: 200px 200px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.svc { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.svc .ico { width: 48px; height: 48px; }

/* schede */
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab { padding: 10px 18px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tab:hover { border-color: var(--accent); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* elenchi espandibili */
.accs { display: grid; gap: 10px; }
.acc { border-radius: var(--r); background: var(--surface); border: var(--card-border); }
.acc summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; font: var(--h-weight) calc(18px * var(--h-scale)) / 1.3 var(--fd); text-transform: var(--h-case); letter-spacing: var(--h-track); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .k { font: 700 13px var(--fl); color: var(--accent-2); letter-spacing: .08em; }
.acc .pm { margin-left: auto; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .3s var(--ease), background .2s; }
.acc .pm::before, .acc .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: currentColor; }
.acc .pm::after { transform: rotate(90deg); transition: transform .3s; }
.acc[open] .pm { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.acc[open] .pm::after { transform: rotate(0); }
.acc-body { padding: 0 22px 22px; color: var(--muted); display: grid; gap: 10px; }
.acc-body b { color: var(--ink); }
.acc-body .ticks li { font-size: 15.5px; }

/* ---------------------------------------------------------------- aree di lavoro (Esplora) */
.explorer { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.tablist--areas { position: sticky; top: calc(var(--header) + 16px); display: grid; gap: 8px; margin: 0; }
.area { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .25s var(--ease); }
.area:hover { border-color: var(--accent); transform: translateX(3px); }
.area .n { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent-2); font: 700 13px var(--fl); }
.area-t { display: grid; gap: 2px; min-width: 0; }
.area, .ops, .op { min-width: 0; }
.area-t b { font: 700 17px/1.2 var(--fd); }
.area-t small { color: var(--muted); font-size: 14px; }
.area[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.area[aria-selected="true"] .n { background: var(--accent); color: var(--on-accent); }
.area[aria-selected="true"] small { color: rgba(255, 255, 255, .75); }
.ops { min-width: 0; }
.op { padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r); background: var(--surface); border: var(--card-border); box-shadow: var(--shadow); }
.op-head { display: grid; gap: 8px; justify-items: start; }
.op-head .k { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.role-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border-radius: var(--r-btn); background: var(--tint); color: var(--accent-2); font-weight: 700; font-size: 13.5px; }
.role-tag i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.op-work { margin-top: 16px; color: var(--muted); }
.op-work b { color: var(--ink); }
.op-steps { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.op-steps li::marker { color: var(--accent); font-weight: 700; }
.op-dl { margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.op-dl div { padding: 14px; border-radius: var(--r-sm); background: var(--bg); }
.op-dl dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.op-dl div:last-child dt { color: var(--accent-2); }
.op-dl dd { margin: 4px 0 0; font-size: 15px; }
.svc-link { margin-top: 16px; display: inline-flex; gap: 6px; align-items: center; font-size: 15px; color: var(--muted); }
.svc-link b { color: var(--accent); }

/* ---------------------------------------------------------------- navigazione tra capitoli */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: clamp(48px, 6vw, 80px); }
.pg { display: grid; gap: 4px; padding: 20px 24px; border-radius: var(--r); background: var(--surface); border: var(--card-border); transition: border-color .25s; }
.pg:hover { border-color: var(--accent); }
.pg small { color: var(--muted); }
.pg b { font: var(--h-weight) calc(20px * var(--h-scale)) var(--fd); text-transform: var(--h-case); }
.pg.next { text-align: right; background: var(--ink); color: #fff; border-color: var(--ink); }
.pg.next small { color: rgba(255, 255, 255, .7); }
.pg.next:hover { background: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------------- invito e footer */
.cta-band { padding-block: clamp(48px, 7vw, 88px); background: var(--ink); color: #fff; }
.cta-grid { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band .h2 { margin-top: 14px; max-width: 24ch; }
.cta-band .eyebrow { color: rgba(255, 255, 255, .75); }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand img { width: 110px; margin-bottom: 14px; }
.foot-brand p { color: var(--muted); max-width: 32ch; margin-bottom: 10px; }
.foot-brand a { color: var(--accent); font-weight: 600; }
.foot-h { font: 700 12px var(--fl); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a:hover, .lf-links a:hover { color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lf-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------------------------------------------------------------- contatti */
.contact-page { padding-top: calc(var(--header) + clamp(32px, 5vw, 64px)); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-aside .h1 { margin-top: 14px; }
.contact-aside > p:last-child { margin-top: 24px; color: var(--muted); }
.mini-steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: m; display: grid; gap: 12px; }
.mini-steps li { counter-increment: m; display: flex; gap: 12px; align-items: center; font-weight: 500; }
.mini-steps li::before { content: counter(m); width: 30px; height: 30px; flex: none; border-radius: var(--r-btn); display: grid; place-items: center; background: var(--tint); color: var(--accent-2); font-weight: 700; font-size: 14px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r); background: var(--surface); border: var(--card-border); box-shadow: var(--shadow); }
.form .full { grid-column: 1 / -1; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { padding: 9px 15px; border-radius: var(--r-btn); border: 1px solid var(--line); cursor: pointer; font-size: 14.5px; font-weight: 500; transition: .2s; }
.choice input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + label { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field[hidden] { display: none; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid transparent; border-radius: var(--r-sm); padding: 12px 14px; transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.field textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; border-radius: var(--r-sm); font-size: 15px; }
.form-status.ok { background: #DCFCE7; color: #14532D; }
.form-status.err { background: #FEE2E2; color: #7F1D1D; }

/* ---------------------------------------------------------------- pagine legali e 404 */
.legal-page { padding-top: calc(var(--header) + 48px); }
.legal .site-header { background: color-mix(in srgb, var(--bg) 90%, transparent); box-shadow: 0 1px 0 var(--line); }
.prose-grid { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 8px; font-size: 14.5px; }
.toc b { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc a { color: var(--muted); } .toc a.on, .toc a:hover { color: var(--accent); }
.prose { max-width: 72ch; }
.prose .h1 { margin-top: 14px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.notfound .big { font: 800 clamp(96px, 18vw, 200px)/1 var(--fd); color: var(--accent); }
.notfound .lead { margin: 12px auto 28px; }

/* ---------------------------------------------------------------- landing (marchio madre) */
.landing { background: transparent; }
.land { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto; isolation: isolate; }
.land canvas.vortex { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.land-top { display: flex; justify-content: space-between; align-items: center; height: 84px; }
.land-claim { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.land-body { align-self: center; padding-block: 3vh 4vh; }
.land-body .display { margin-top: 18px; max-width: 12ch; }
.land-body .lead { max-width: 46ch; }
.picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 20px; }
.pick { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 190px; padding: 22px; border-radius: var(--r); overflow: hidden; isolation: isolate; color: #fff;
  background: var(--ink); transition: transform .4s var(--ease), box-shadow .4s; }
.pick-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.pick::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 18, 32, .25) 0%, rgba(10, 18, 32, .82) 62%); }
.pick::after { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 4px; background: var(--c); }
.pick:hover, .pick:focus-visible, .pick.is-hot { transform: translateY(-6px); box-shadow: 0 24px 40px -20px rgba(10, 18, 32, .6); }
.pick:hover .pick-bg { transform: scale(1.05); }
.pick-top { display: flex; justify-content: space-between; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(255, 255, 255, .8); }
.pick-name { margin-top: auto; font: 700 clamp(21px, 1.8vw, 27px)/1.05 var(--fd); letter-spacing: -.02em; }
.pick-desc { color: rgba(255, 255, 255, .85); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pick-go { font-weight: 600; font-size: 15px; }
.pick-go .arr { display: inline-block; transition: transform .3s var(--ease); }
.pick:hover .pick-go .arr { transform: translateX(5px); }
.land-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 8px 22px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- fiducia */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case { padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r); background: var(--surface); border: var(--card-border); display: grid; gap: 10px; align-content: start; }
.case-tag { justify-self: start; padding: 4px 10px; border-radius: var(--r-btn); border: 1px dashed var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case-sit, .case-m { color: var(--muted); }
.case-sit b, .case-m b { color: var(--ink); }
.case-h { margin-top: 4px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.case .ticks { margin: 0; } .case .ticks li { font-size: 15.5px; padding: 9px 0; }
.case-m { padding-top: 6px; }
.commits { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--r); overflow: hidden; background: var(--line); border: var(--card-border); }
.commit { padding: 20px 22px; background: var(--surface); display: grid; gap: 6px; align-content: start; }
.commit h3 { font-size: 17px; color: var(--accent-2); }
.commit p { font-size: 14.5px; color: var(--muted); }
.refs { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.ref { margin: 0; padding: 26px; border-radius: var(--r); background: var(--surface); border-left: 4px solid var(--accent); }
.ref p { font-size: 18px; }
.ref footer { margin-top: 14px; display: grid; font-size: 14.5px; color: var(--muted); }
.ref footer b { color: var(--ink); }

/* ---------------------------------------------------------------- lavora con noi */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.job { padding: 24px; border-radius: var(--r); background: var(--surface); border: var(--card-border); display: grid; gap: 10px; align-content: start; justify-items: start; }
.job .ticks { margin: 0; width: 100%; } .job .ticks li { font-size: 15px; padding: 9px 0; }
.offer { padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: var(--ink); color: #fff; }
.offer h3 { margin-bottom: 6px; }
.offer .ticks li { border-color: rgba(255, 255, 255, .16); }
.offer .note { color: rgba(255, 255, 255, .75); border-color: var(--accent); }
.split-2 .steps { grid-template-columns: 1fr 1fr; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field small { font-weight: 400; color: var(--muted); }
.field input::placeholder, .field textarea::placeholder { color: #8A94A6; }

/* ==========================================================================
   Settori: stesso stile e stessa impaginazione; cambiano solo il colore d'accento
   e lo sfondo animato (main.js, canvas .bgfx)
   ========================================================================== */
:root:has(> body[data-sector="hotel"]), body[data-sector="hotel"] { --accent: #2563EB; --accent-2: #1D4ED8; --tint: rgba(37, 99, 235, .09); --fx1: rgba(37, 99, 235, .55); --fx2: rgba(34, 211, 238, .7); }
:root:has(> body[data-sector="agricoltura"]), body[data-sector="agricoltura"] { --accent: #3F7A1F; --accent-2: #2F5D17; --tint: rgba(63, 122, 31, .1); --fx1: rgba(63, 122, 31, .8); --fx2: rgba(183, 121, 31, .85); }
:root:has(> body[data-sector="allevamento"]), body[data-sector="allevamento"] { --accent: #C2410C; --accent-2: #9A3412; --tint: rgba(194, 65, 12, .09); --fx1: #0F1B2D; --fx2: #C2410C; }
:root:has(> body[data-sector="acquacoltura"]), body[data-sector="acquacoltura"] { --accent: #0E7C86; --accent-2: #0B6169; --tint: rgba(14, 124, 134, .1); --fx1: rgba(14, 124, 134, .7); --fx2: rgba(18, 163, 154, .9); }

:root:has(> body[data-sector="silvicoltura"]), body[data-sector="silvicoltura"] { --accent: #2F6B45; --accent-2: #24543A; --tint: color-mix(in srgb, #2F6B45 10%, transparent); --fx1: rgba(47, 107, 69, .8); --fx2: rgba(133, 94, 52, .85); }
:root:has(> body[data-sector="alimentare"]), body[data-sector="alimentare"] { --accent: #B45309; --accent-2: #92400E; --tint: color-mix(in srgb, #B45309 10%, transparent); --fx1: rgba(180, 83, 9, .6); --fx2: rgba(234, 179, 8, .7); }
:root:has(> body[data-sector="tessile"]), body[data-sector="tessile"] { --accent: #7C3AED; --accent-2: #6D28D9; --tint: color-mix(in srgb, #7C3AED 10%, transparent); --fx1: rgba(124, 58, 237, .55); --fx2: rgba(236, 72, 153, .55); }
:root:has(> body[data-sector="metallurgia"]), body[data-sector="metallurgia"] { --accent: #475569; --accent-2: #334155; --tint: color-mix(in srgb, #475569 10%, transparent); --fx1: rgba(71, 85, 105, .8); --fx2: rgba(249, 115, 22, .95); }
:root:has(> body[data-sector="costruzioni"]), body[data-sector="costruzioni"] { --accent: #A16207; --accent-2: #854D0E; --tint: color-mix(in srgb, #A16207 10%, transparent); --fx1: #1F2937; --fx2: rgba(234, 179, 8, .95); }
:root:has(> body[data-sector="commercio"]), body[data-sector="commercio"] { --accent: #BE185D; --accent-2: #9D174D; --tint: color-mix(in srgb, #BE185D 10%, transparent); --fx1: rgba(190, 24, 93, .45); --fx2: rgba(244, 114, 182, .6); }
:root:has(> body[data-sector="logistica"]), body[data-sector="logistica"] { --accent: #0369A1; --accent-2: #075985; --tint: color-mix(in srgb, #0369A1 10%, transparent); --fx1: rgba(3, 105, 161, .7); --fx2: rgba(245, 158, 11, .85); }
:root:has(> body[data-sector="turismo"]), body[data-sector="turismo"] { --accent: #B91C1C; --accent-2: #991B1B; --tint: color-mix(in srgb, #B91C1C 10%, transparent); --fx1: rgba(185, 28, 28, .4); --fx2: rgba(251, 191, 36, .6); }
:root:has(> body[data-sector="supporto"]), body[data-sector="supporto"] { --accent: #4F46E5; --accent-2: #4338CA; --tint: color-mix(in srgb, #4F46E5 10%, transparent); --fx1: #1E1B4B; --fx2: rgba(79, 70, 229, .9); }
:root:has(> body[data-sector="sanita"]), body[data-sector="sanita"] { --accent: #047857; --accent-2: #065F46; --tint: color-mix(in srgb, #047857 10%, transparent); --fx1: rgba(4, 120, 87, .75); --fx2: rgba(16, 185, 129, .9); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1140px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 1000px) {
  :root { --header: 64px; }
  .hero-grid, .page-hero.has-media .ph-grid, .brief, .explorer, .split-2, .people, .guarantee, .contact-grid { grid-template-columns: 1fr; }
  .onfield, .chapters, .jobs { grid-template-columns: 1fr 1fr; }
  .cases { grid-template-columns: 1fr; }
  .commits { grid-template-columns: 1fr 1fr; }
  .pillars, .steps, .kpis { grid-template-columns: 1fr 1fr; }
  .picks { grid-template-columns: 1fr 1fr; }
  .tablist--areas { position: static; grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .prose-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 680px) {
  .onfield, .chapters, .pillars, .steps, .kpis, .picks, .op-dl, .form, .pager, .jobs, .commits, .split-2 .steps, .tablist--areas { grid-template-columns: 1fr; }
  .brand img { width: 128px; }
  .sector-chip { padding: 5px 10px; font-size: 13px; }
  .sub { position: fixed; top: calc(var(--header) - 4px); left: 12px; right: 12px; min-width: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .pg.next { text-align: left; }
  .land-claim { display: none; }
  .pick { min-height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

.sector-chip-wrap .sub { max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
