/* =====================================================================
   ROBIS Engineering — stile del sito
   Design system ricavato dalla presentazione aziendale:
   colori Night / Blue / Mist / Ink, Sora per titoli e cifre,
   IBM Plex Sans per i testi, motivo grafico a linee "A + cerchi".
   ===================================================================== */

@font-face { font-family: "Sora"; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Palette (slide "Colours and typography") */
  --night: #0A0E15;
  --night-2: #121823;
  --night-3: #1A2230;
  --blue: #0064FE;
  --blue-hover: #0052D4;
  --blue-soft: #6FA6FF;
  --mist: #F4F5F7;
  --ink: #10141C;
  --ink-2: #4A5260;
  --ink-3: #7C8594;
  --line: #E3E6EB;
  --line-dark: rgba(255, 255, 255, .12);
  --white: #FFFFFF;

  --font-title: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-text: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-text); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

/* ---------- Tipografia ricorrente ---------- */
.eyebrow {
  font-family: var(--font-text); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; flex: none; }
.title { font-size: clamp(30px, 3.6vw, 48px); }
.tail { color: var(--ink-3); }
.block-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 900px; }
.intro { font-size: 19px; color: var(--ink-2); max-width: 720px; margin: -24px 0 48px; }
.lead { color: var(--blue); font-weight: 500; font-size: 19px; line-height: 1.55; }
.prose { color: var(--ink-2); }
.prose h3 { font-size: 22px; color: var(--ink); margin: 1.6em 0 .6em; }
.prose h4 { font-size: 18px; color: var(--ink); margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: .35em; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--blue); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--blue); font-size: 19px; color: var(--ink); }

/* ---------- Sfondi delle sezioni ---------- */
.block { position: relative; padding: var(--section-y) 0; overflow: hidden; }
.bg-light { background: var(--white); }
.bg-mist { background: var(--mist); }
.bg-dark { background: var(--night); color: #fff; }
.bg-blue { background: var(--blue); color: #fff; }
.bg-light + .bg-light, .bg-mist + .bg-mist { padding-top: 0; }
.bg-dark + .bg-dark { padding-top: 0; }
.bg-dark .tail { color: rgba(255, 255, 255, .5); }
.bg-blue .tail { color: rgba(255, 255, 255, .62); }
.bg-dark .eyebrow { color: var(--blue-soft); }
.bg-blue .eyebrow { color: rgba(255, 255, 255, .85); }
.bg-dark .intro, .bg-dark .prose, .bg-blue .intro, .bg-blue .prose { color: rgba(255, 255, 255, .72); }
.bg-dark .prose strong, .bg-blue .prose strong { color: #fff; }
.bg-dark .lead { color: var(--blue-soft); }
.bg-blue .lead { color: #fff; }
.bg-dark a:not(.btn), .bg-blue a:not(.btn) { color: #fff; }
.bg-dark .prose ul li::before { background: var(--blue-soft); }
.bg-blue .prose ul li::before { background: #fff; }

/* ---------- Motivo grafico ---------- */
.motif { display: block; }
.hero-motif, .process-motif, .cta-motif, .footer-motif, .case-motif, .split-motif, .card-motif { position: absolute; pointer-events: none; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-text); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff !important; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-white { background: #fff; color: var(--blue) !important; }
.btn-white:hover { background: var(--mist); }
.btn-ghost { border-color: currentColor; color: inherit !important; background: transparent; }
.bg-light .btn-ghost, .bg-mist .btn-ghost { color: var(--blue) !important; }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.link-arrow { display: inline-flex; gap: 6px; font-weight: 600; font-size: 15px; margin-top: 18px; color: var(--blue); }
.bg-dark .link-arrow { color: var(--blue-soft) !important; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.has-dark-hero .site-header { position: fixed; left: 0; right: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: block; flex: none; }
.brand .logo { height: 30px; width: auto; }
.site-header.on-light { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.on-light .logo-white, .site-header.on-dark .logo-dark { display: none; }
.site-header.on-dark { color: #fff; }
.site-header.on-dark.is-scrolled { background: rgba(10, 14, 21, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line-dark); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > ul { display: flex; list-style: none; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav a { color: inherit; text-decoration: none; }
.main-nav > ul > li > a { display: block; padding: 10px 14px; font-size: 15px; font-weight: 500; border-radius: 8px; color: var(--ink); }
.on-dark .main-nav > ul > li > a { color: rgba(255, 255, 255, .86); }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a[aria-current] { color: var(--blue); }
.on-dark .main-nav > ul > li > a:hover, .on-dark .main-nav > ul > li > a[aria-current] { color: #fff; }
.main-nav > ul > li > a[aria-current]::after { content: ""; display: block; height: 2px; background: var(--blue); margin-top: 4px; border-radius: 2px; }
.has-sub > a::after { content: ""; }
.sub { position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 18px 50px rgba(10, 14, 21, .16); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink) !important; font-size: 15px; }
.sub a:hover { background: var(--mist); }
.nav-extra { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; gap: 2px; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.lang-switch a { padding: 6px 8px; border-radius: 6px; color: var(--ink-3); }
.lang-switch a[aria-current] { color: var(--ink); }
.on-dark .lang-switch a { color: rgba(255, 255, 255, .5); }
.on-dark .lang-switch a[aria-current] { color: #fff; }
.lang-switch a:hover { text-decoration: none; color: var(--blue); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 10px; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; margin: 0 auto; transition: .25s var(--ease); }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }
.preview-bar { background: #FFB020; color: var(--ink); text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; position: relative; z-index: 120; }

/* ---------- Hero ---------- */
.block-hero { display: flex; align-items: flex-end; isolation: isolate; }
.block-hero.bg-dark { background: radial-gradient(120% 90% at 80% 20%, #12233F 0%, var(--night) 55%); }
.hero-full { min-height: min(100svh, 920px); padding: calc(var(--header-h) + 80px) 0 clamp(56px, 7vw, 96px); }
.hero-compact { min-height: 520px; padding: calc(var(--header-h) + 96px) 0 clamp(56px, 6vw, 88px); }
.bg-light.block-hero { min-height: 0; padding-top: clamp(64px, 8vw, 112px); }
.hero-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 50% at 78% 38%, rgba(0, 100, 254, .30), transparent 70%); }
.bg-blue .hero-glow { background: radial-gradient(50% 60% at 80% 30%, rgba(255, 255, 255, .12), transparent 70%); }
.bg-light .hero-glow { display: none; }
.hero-motif { right: -4%; bottom: -8%; width: min(64vw, 820px); height: auto; color: rgba(255, 255, 255, .18); z-index: -1; }
.bg-light .hero-motif { color: rgba(16, 20, 28, .09); }
.bg-blue .hero-motif { color: rgba(255, 255, 255, .32); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.has-image .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 21, .92) 0%, rgba(10, 14, 21, .6) 55%, rgba(10, 14, 21, .25) 100%); }
.hero-inner { max-width: calc(var(--container) + 2 * var(--gutter)); }
.hero-title { font-size: clamp(40px, 6vw, 80px); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; }
.hero-compact .hero-title { font-size: clamp(38px, 5vw, 64px); max-width: 18ch; }
.hero-text { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, .74); max-width: 560px; margin-top: 28px; }
.bg-light .hero-text { color: var(--ink-2); }
.bg-blue .hero-text { color: rgba(255, 255, 255, .86); }
.section-number { font-family: var(--font-title); font-weight: 600; font-size: clamp(56px, 8vw, 104px); line-height: 1; color: var(--blue); letter-spacing: -0.04em; margin-bottom: 18px; }
.bg-dark .section-number { color: #3D7BFF; }
.bg-blue .section-number { color: rgba(255, 255, 255, .55); }
.hero-foot { margin-top: clamp(48px, 7vw, 96px); padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 13px; letter-spacing: .08em; color: rgba(255, 255, 255, .55); }
.bg-light .hero-foot { border-color: var(--line); color: var(--ink-3); }

/* ---------- Statement ---------- */
.statement-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement-title { font-size: clamp(28px, 3vw, 42px); line-height: 1.16; }
.statement-body { padding-top: 34px; }
.statement-body .lead { margin-bottom: 22px; }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 32px 40px; }
.kpi-grid.n5 .kpi-value, .kpi-grid.n6 .kpi-value { font-size: clamp(30px, 3.2vw, 46px); }
.kpi-grid.n1 { --cols: 1; } .kpi-grid.n2 { --cols: 2; } .kpi-grid.n3 { --cols: 3; } .kpi-grid.n4 { --cols: 4; } .kpi-grid.n5 { --cols: 5; } .kpi-grid.n6 { --cols: 6; }
.kpi { border-top: 1px solid var(--line); padding-top: 22px; }
.bg-dark .kpi, .bg-blue .kpi { border-color: var(--line-dark); }
.kpi-value { font-family: var(--font-title); font-weight: 600; white-space: nowrap; font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -0.03em; margin: 0 0 10px; }
.bg-dark .kpi-value { color: var(--blue-soft); }
.kpi-label { font-weight: 600; font-size: 16px; margin: 0; }
.kpi-text { font-size: 15px; color: var(--ink-3); margin-top: 8px; }
.bg-dark .kpi-text, .bg-blue .kpi-text { color: rgba(255, 255, 255, .6); }

/* ---------- Grafici ---------- */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.chart { margin: 0; background: var(--mist); border-radius: var(--radius); padding: 28px 28px 20px; }
.bg-mist .chart { background: #fff; }
.chart.chart-dark, .bg-dark .chart { background: var(--night-2); color: #fff; }
.chart figcaption { font-family: var(--font-title); font-weight: 600; font-size: 17px; margin-bottom: 20px; }
.bars { display: flex; align-items: flex-end; gap: clamp(4px, 1vw, 12px); height: 260px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; padding-top: 22px; }
.bar { position: relative; display: block; width: 100%; max-width: 40px; height: var(--h); background: linear-gradient(180deg, var(--blue) 0%, #3D86FF 100%); border-radius: 4px 4px 0 0; transform-origin: bottom; }
.chart-dark .bar, .bg-dark .bar { background: linear-gradient(180deg, #3D86FF 0%, var(--blue) 100%); }
.bar-val { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.chart-dark .bar-val, .bg-dark .bar-val { color: rgba(255, 255, 255, .8); }
.bar-lab { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; white-space: nowrap; }
.chart-dark .bar-lab, .bg-dark .bar-lab { color: rgba(255, 255, 255, .5); }
.js .bar { transform: scaleY(0); transition: transform .9s var(--ease); }
.js .in-view .bar { transform: scaleY(1); }

/* ---------- Card ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.card-grid.cols-2 { --cols: 2; } .card-grid.cols-3 { --cols: 3; } .card-grid.cols-4 { --cols: 4; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); }
.style-panel .card, .style-icon .card { background: var(--mist); padding: 30px 28px 32px; }
.bg-mist .style-panel .card, .bg-mist .style-icon .card { background: #fff; }
.bg-dark .style-panel .card, .bg-dark .style-icon .card { background: var(--night-2); }
.card.is-highlight { background: var(--night) !important; color: #fff; }
.bg-dark .card.is-highlight { background: var(--blue) !important; }
.card .card-body { display: flex; flex-direction: column; flex: 1; }
.card .card-body > .link-arrow { margin-top: auto; padding-top: 18px; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: 16px; }
.bg-dark .card p, .card.is-highlight p { color: rgba(255, 255, 255, .7); }
.card-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center; background: rgba(0, 100, 254, .08); color: var(--blue); margin-bottom: 22px; }
.bg-dark .card-icon, .card.is-highlight .card-icon { background: rgba(111, 166, 255, .12); color: var(--blue-soft); }
.card-icon .icon { width: 24px; height: 24px; stroke-width: 1.6; }
.card-img { border-radius: 10px; margin-bottom: 20px; }
.card-photo { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--night-3), var(--night)); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-photo img { transform: scale(1.04); }
.card-photo .card-motif { width: 120%; right: -30%; bottom: -40%; color: rgba(255, 255, 255, .16); }
.card-photo .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 14, 21, .85) 0%, rgba(10, 14, 21, 0) 60%); }
.card-photo h3 { position: absolute; left: 22px; bottom: 18px; margin: 0; color: #fff; font-size: 22px; }
.style-photo .card-body { padding: 18px 2px 0; border-top: 2px solid var(--blue); margin-top: 14px; }
.square-list, .plain-list, .dash-list { list-style: none; }
.square-list li, .dash-list li { position: relative; padding-left: 18px; font-size: 15.5px; color: var(--ink-2); margin-top: 7px; }
.square-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--blue); }
.bg-dark .square-list li, .card.is-highlight .square-list li { color: rgba(255, 255, 255, .75); }
.card.is-highlight .square-list li::before, .bg-dark .square-list li::before { background: var(--blue-soft); }
.plain-list li { font-size: 15.5px; color: var(--ink-2); padding: 5px 0; }
.bg-dark .plain-list li { color: rgba(255, 255, 255, .7); }

/* ---------- Feature (colonne / lista) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 32px 40px; }
.feature-grid.cols-1 { --cols: 1; } .feature-grid.cols-2 { --cols: 2; } .feature-grid.cols-3 { --cols: 3; } .feature-grid.cols-4 { --cols: 4; }
.feature { display: block; position: relative; color: inherit; text-decoration: none !important; }
.feature-grid a.feature .feature-head { padding-right: 32px; }
.feature-grid .feature-arrow { position: absolute; right: 0; top: 4px; }
.feature-head { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 2px solid var(--blue); margin-bottom: 14px; }
.bg-dark .feature-head { border-color: var(--blue); }
.feature-icon { color: var(--blue); flex: none; display: flex; }
.bg-dark .feature-icon { color: var(--blue-soft); }
.feature-icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.feature h3 { font-size: 21px; }
.feature .sub { font-size: 14px; color: var(--ink-3); margin: 4px 0 0; }
.bg-dark .feature .sub { color: rgba(255, 255, 255, .5); }
.feature-arrow { margin-left: auto; color: var(--ink-3); transition: transform .25s var(--ease), color .25s; }
a.feature:hover .feature-arrow { transform: translate(3px, -3px); color: var(--blue); }
a.feature:hover h3 { color: var(--blue); }
.bg-dark a.feature:hover h3 { color: var(--blue-soft); }
.feature-list { border-top: 1px solid var(--line); }
.bg-dark .feature-list { border-color: var(--line-dark); }
.feature-list .feature { padding: 26px 0; border-bottom: 1px solid var(--line); display: flex; gap: 24px; align-items: center; }
.feature-list .feature-head { flex: 1 1 50%; }
.feature-list .plain-list { flex: 1 1 50%; }
.bg-dark .feature-list .feature { border-color: var(--line-dark); }
.feature-list .feature-head { border: 0; padding: 0; margin: 0; }
.feature-list .plain-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; }
.feature-list .plain-list li { padding: 0; }

/* ---------- Processo ---------- */
.block-process .process-motif { right: -6%; top: -18%; width: 520px; color: rgba(255, 255, 255, .08); }
.bg-light.block-process .process-motif, .bg-mist.block-process .process-motif { color: rgba(16, 20, 28, .06); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 38px; left: 6%; right: 6%; border-top: 1px dashed rgba(255, 255, 255, .25); }
.bg-light .steps::before, .bg-mist .steps::before { border-color: rgba(16, 20, 28, .2); }
.step { text-align: center; position: relative; }
.node { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; border: 1.5px solid var(--blue-soft); background: var(--night); font-family: var(--font-title); font-weight: 600; font-size: 20px; margin-bottom: 22px; transition: background .3s, border-color .3s; }
.bg-light .node { background: #fff; border-color: var(--blue); color: var(--ink); }
.bg-mist .node { background: var(--mist); border-color: var(--blue); color: var(--ink); }
.step:hover .node { background: var(--blue); border-color: var(--blue); color: #fff; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: rgba(255, 255, 255, .6); }
.bg-light .step p, .bg-mist .step p { color: var(--ink-3); }

/* ---------- Split ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.media-left .split-text { order: 2; }
.split-text .block-head { margin-bottom: 28px; }
.split-text .prose { font-size: 17px; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 32px; }
.point h3 { font-family: var(--font-text); font-weight: 600; font-size: 17px; color: var(--blue); margin-bottom: 6px; letter-spacing: 0; }
.bg-dark .point h3 { color: var(--blue-soft); }
.point p { font-size: 15.5px; color: var(--ink-2); }
.bg-dark .point p { color: rgba(255, 255, 255, .65); }
.highlight-box { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 28px 30px; margin-top: 36px; }
.highlight-box .eyebrow { color: rgba(255, 255, 255, .85); margin-bottom: 10px; }
.hl-title { font-family: var(--font-title); font-weight: 600; font-size: 22px; margin-bottom: 8px; line-height: 1.25; }
.highlight-box p:not(.hl-title):not(.eyebrow) { color: rgba(255, 255, 255, .82); font-size: 15.5px; }
.split-media { position: relative; }
.media-photo, .media-motif { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-height: 640px; width: 100%; }
.media-photo img { width: 100%; height: 100%; object-fit: cover; }
.media-motif { position: relative; background: linear-gradient(160deg, #E9EDF3 0%, #C9D2DF 100%); }
.bg-dark .media-motif { background: linear-gradient(160deg, var(--night-3), var(--night-2)); }
.media-motif .split-motif { width: 130%; left: -5%; bottom: -12%; color: rgba(16, 20, 28, .18); }
.bg-dark .media-motif .split-motif { color: rgba(255, 255, 255, .14); }
.screen { background: var(--night); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(10, 14, 21, .45); }
.screen-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--night-2); }
.screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.screen-empty { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.screen-empty .card-motif { width: 100%; right: -10%; bottom: -30%; color: rgba(255, 255, 255, .12); }

/* ---------- Tabella ---------- */
.table-grid { display: grid; gap: 28px; }
.table-grid.has-side { grid-template-columns: minmax(0, 2.6fr) minmax(260px, 1fr); align-items: start; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 600px; }
.data-table thead th { background: var(--night); color: #fff; text-align: left; font-weight: 600; font-size: 13px; letter-spacing: .04em; padding: 14px 18px; }
.data-table thead th:first-child { border-radius: 8px 0 0 8px; }
.data-table thead th:last-child { border-radius: 0 8px 8px 0; }
.data-table tbody th { text-align: left; font-weight: 600; color: var(--ink); width: 18%; }
.data-table td, .data-table tbody th { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.data-table tr.group-start th, .data-table tr.group-start td { border-top: 1px solid #CCD2DB; }
.side-card { background: var(--night); color: #fff; border-radius: var(--radius); padding: 30px; }
.side-card .eyebrow { color: var(--blue-soft); }
.side-title { font-family: var(--font-title); font-weight: 600; font-size: 24px; line-height: 1.2; margin-bottom: 14px; }
.side-card p:last-child { color: rgba(255, 255, 255, .7); font-size: 15.5px; }

/* ---------- Case study ---------- */
.block-case { padding: 0; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.media-right .case-media { order: 2; }
.case-media { position: relative; overflow: hidden; background: linear-gradient(160deg, #1F2A3A, var(--night)); min-height: 320px; }
.case-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-media .case-motif { width: 110%; left: -10%; bottom: -20%; color: rgba(255, 255, 255, .12); }
.case-text { padding: clamp(48px, 7vw, 104px) clamp(24px, 6vw, 96px); align-self: center; max-width: 720px; }
.case-text .title { font-size: clamp(28px, 3vw, 42px); margin-bottom: 22px; }
.case-text > p { color: rgba(255, 255, 255, .72); }
.case-figures { display: flex; gap: clamp(28px, 5vw, 64px); margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.case-figures .kpi-value { font-size: clamp(32px, 3.4vw, 44px); color: #fff; }
.case-figures .kpi-label { color: rgba(255, 255, 255, .6); font-weight: 400; font-size: 14px; }

/* ---------- News ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none !important; }
.post-cover { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--night-3), var(--night)); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-link:hover .post-cover img { transform: scale(1.04); }
.post-cover .card-motif { width: 120%; right: -30%; bottom: -40%; color: rgba(255, 255, 255, .16); }
.post-body { padding: 18px 2px 0; }
.post-body time { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.bg-dark .post-body time { color: var(--blue-soft); }
.post-body h3 { font-size: 21px; margin: 10px 0; }
.post-link:hover h3 { color: var(--blue); }
.post-body p { color: var(--ink-2); font-size: 15.5px; }
.bg-dark .post-body p { color: rgba(255, 255, 255, .7); }
.post-body .link-arrow { margin-top: 10px; }
.posts-empty { font-size: 18px; color: var(--ink-2); padding: 32px; border: 1px dashed #C9D0DA; border-radius: var(--radius); max-width: 720px; }
.bg-dark .posts-empty { color: rgba(255, 255, 255, .7); border-color: var(--line-dark); }

/* ---------- Loghi ---------- */
.logo-row { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; }
.logo-row li { flex: 0 1 200px; height: 96px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 18px; }
.bg-dark .logo-row li { border-color: var(--line-dark); }
.logo-row img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .8; transition: .2s; }
.logo-row li:hover img { filter: none; opacity: 1; }
.logo-row span { font-family: var(--font-title); font-size: 14px; color: var(--ink-3); text-align: center; }

/* ---------- Testo libero ---------- */
.is-narrow .container { max-width: calc(820px + 2 * var(--gutter)); }
.block-richtext .prose { max-width: 820px; font-size: 17px; }

/* ---------- CTA ---------- */
.block-cta .cta-motif { right: -4%; top: -30%; width: 640px; color: rgba(255, 255, 255, .28); }
.bg-dark.block-cta .cta-motif { color: rgba(255, 255, 255, .1); }
.bg-mist.block-cta .cta-motif { color: rgba(16, 20, 28, .07); }
.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.cta-title { font-size: clamp(36px, 5vw, 68px); line-height: 1.05; letter-spacing: -0.035em; }
.cta-text { margin-top: 20px; font-size: 19px; opacity: .85; max-width: 560px; }
.cta-details { list-style: none; font-size: 17px; }
.cta-details li { padding: 6px 0; }
.cta-details a { color: inherit !important; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-info .intro { margin: -12px 0 32px; }
.contact-lines { list-style: none; margin-bottom: 32px; }
.contact-lines li { display: flex; gap: 12px; align-items: center; font-size: 19px; font-family: var(--font-title); font-weight: 600; padding: 8px 0; }
.contact-lines .icon { width: 22px; height: 22px; color: var(--blue); flex: none; }
.contact-lines a { color: inherit; }
.offices { display: grid; gap: 18px; border-top: 1px solid var(--line); padding-top: 28px; }
.bg-dark .offices { border-color: var(--line-dark); }
.office { display: flex; gap: 12px; }
.office .icon { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 3px; }
.office-name { font-weight: 600; margin: 0; }
.office p:not(.office-name) { color: var(--ink-2); font-size: 15.5px; }
.bg-dark .office p:not(.office-name) { color: rgba(255, 255, 255, .65); }
.contact-form-wrap { background: var(--mist); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.bg-mist .contact-form-wrap { background: #fff; }
.bg-dark .contact-form-wrap { background: var(--night-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #D5DAE1; border-radius: 10px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 100, 254, .14); }
.has-error input, .has-error textarea { border-color: #D93025; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 22px 0 26px; cursor: pointer; }
.bg-dark .check { color: rgba(255, 255, 255, .7); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.check.has-error span { color: #D93025; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { color: #D93025; font-weight: 600; margin-bottom: 18px; }
.form-ok { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; font-weight: 500; }
.form-ok .icon { width: 28px; height: 28px; color: #fff; background: var(--blue); border-radius: 50%; padding: 5px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--night); color: rgba(255, 255, 255, .7); padding: clamp(64px, 8vw, 104px) 0 32px; font-size: 15px; }
.footer-motif { right: -120px; bottom: -200px; width: 560px; color: rgba(255, 255, 255, .06); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 360px; }
.footer-nav ul { list-style: none; columns: 2; column-gap: 24px; }
.footer-nav li { padding: 4px 0; break-inside: avoid; }
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-contact p { margin-top: 8px; }
.social { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Comparsa allo scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .bar { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .kpi-grid.n5, .kpi-grid.n6 { --cols: 3; }
  .card-grid.cols-4, .feature-grid.cols-4 { --cols: 2; }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; position: relative; z-index: 3; }
  .main-nav { position: fixed; inset: 0; background: var(--night); color: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; gap: 28px; overflow-y: auto; opacity: 0; visibility: hidden; transition: .3s var(--ease); z-index: 2; }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: #fff; }
  .nav-open .site-header .logo-white { display: block !important; position: relative; z-index: 3; }
  .nav-open .site-header .logo-dark { display: none !important; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a { color: #fff !important; font-family: var(--font-title); font-size: 26px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .main-nav > ul > li > a[aria-current]::after { display: none; }
  .main-nav > ul > li > a[aria-current] { color: var(--blue-soft) !important; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; padding: 4px 0 8px 12px; }
  .sub a { color: rgba(255, 255, 255, .7) !important; }
  .sub a:hover { background: transparent; color: #fff !important; }
  .nav-extra { justify-content: space-between; }
  .lang-switch a { color: rgba(255, 255, 255, .5) !important; font-size: 15px; }
  .lang-switch a[aria-current] { color: #fff !important; }
  body.nav-open { overflow: hidden; }
  .statement-grid, .split-grid, .contact-grid, .cta-grid, .table-grid.has-side { grid-template-columns: 1fr; }
  .statement-body { padding-top: 0; }
  .media-left .split-text { order: 0; }
  .media-photo, .media-motif { aspect-ratio: 16 / 11; }
  .case-grid { grid-template-columns: 1fr; }
  .media-right .case-media { order: 0; }
  .case-media { min-height: 280px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .card-grid.cols-3, .feature-grid.cols-3 { --cols: 2; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid.n4 { --cols: 2; }
  .feature-list .feature { flex-wrap: wrap; gap: 10px; }
  .feature-list .plain-list { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .card-grid, .feature-grid { --cols: 1 !important; }
  .post-grid { grid-template-columns: 1fr; }
  .kpi-grid { --cols: 2 !important; gap: 28px 20px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points, .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav ul { columns: 1; }
  .hero-full { min-height: 100svh; }
  .hero-compact { min-height: 440px; }
  .intro { font-size: 17px; }
  .btn-row .btn { flex: 1 1 auto; }
  .case-figures { gap: 24px; flex-wrap: wrap; }
  .bars { height: 200px; }
  .bar-lab { font-size: 10px; transform: rotate(-45deg); transform-origin: center; margin-top: 12px; }
  .nav-extra .btn { display: none; }
}
@media print {
  .site-header, .site-footer, .contact-form-wrap, .hero-motif, .hero-glow { display: none !important; }
  .block { padding: 24px 0; }
  .bg-dark, .bg-blue { background: #fff !important; color: #000 !important; }
}
