/* Leyden: foglio di stile del sito */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F2F2EF;
  --surface: #FFFFFF;
  --ink: #000000;
  --text: #2B2D2F;
  --muted: #5E6266;
  --rule: #D3D4CF;
  --signal: #FAED23;
  --on-ink: #E6E7E3;
  --on-ink-muted: #A3A7A5;
  --on-ink-rule: rgba(255, 255, 255, 0.16);

  /* Stati macchina nei grafici */
  --st-prod: #FAED23;
  --st-setup: #7DB4E8;
  --st-trans: #F29A5B;
  --st-standby: #8F9493;
  --st-hot: #E0523F;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  --section: clamp(4rem, 2.6rem + 5.6vw, 8rem);
  --r-panel: 6px;
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 900px) {
  body { font-size: 1.125rem; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--signal); text-decoration-thickness: 3px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.site-footer :focus-visible,
.ink :focus-visible,
.instrument :focus-visible { outline-color: var(--signal); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  font-stretch: 116%;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}

h1, .display {
  font-size: clamp(2.3rem, 1.25rem + 3.3vw, 3.9rem);
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h2 { font-size: clamp(1.9rem, 1.25rem + 2.3vw, 3.25rem); }

h3 {
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  font-weight: 680;
  font-stretch: 108%;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p { margin: 0 0 1em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.375rem);
  line-height: 1.5;
  max-width: 54ch;
}

.note { font-size: 0.875rem; color: var(--muted); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 4px;
}
.skip:focus { top: 1rem; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 242, 239, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand:hover { text-decoration: none; }
.mark { width: 34px; height: 22px; flex: none; }

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a:not(.btn) {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 1rem;
  font-weight: 560;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(var(--signal), var(--signal)) no-repeat 0 100% / 0 4px;
  transition: background-size 0.2s;
}
.nav a:not(.btn):hover,
.nav a[aria-current="page"]:not(.btn) { background-size: 100% 4px; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.menu-icon,
.menu-icon::before {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}
.menu-icon { position: relative; transform: translateY(-3px); }
.menu-icon::before { content: ""; position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 959px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gut) 2rem;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-top: 1px solid var(--rule); }
  .nav a:not(.btn) { display: block; padding: 1rem 0; font-size: 1.25rem; background: none; }
  .nav a[aria-current="page"]:not(.btn) { box-shadow: inset 6px 0 0 var(--signal); padding-left: 1rem; }
  .nav .nav-cta { border-top: 0; padding-top: 1.25rem; }
}

/* Pulsanti */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 106%;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-sm { min-height: 2.6rem; padding: 0.5rem 1.2rem; font-size: 0.9375rem; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--signal); color: var(--ink); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.ink .btn-primary { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.ink .btn-primary:hover { background: #fff; border-color: #fff; }
.ink .btn-ghost { color: #fff; border-color: #fff; }
.ink .btn-ghost:hover { background: #fff; color: var(--ink); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Sezioni */

.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * 0.6); }

.ink {
  background: var(--ink);
  color: var(--on-ink);
}
.ink h1, .ink h2, .ink h3 { color: #fff; }
.ink .note { color: var(--on-ink-muted); }

.surface { background: var(--surface); }

.sec-head {
  display: grid;
  gap: 1.25rem 4rem;
  margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; }
}
.sec-head p { font-size: 1.125rem; color: var(--muted); }
.ink .sec-head p { color: var(--on-ink-muted); }

/* Hero */

.hero { padding-block: clamp(2rem, 1rem + 4vw, 5rem) var(--section); }

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
}
.hero h1 { margin-bottom: 1.5rem; }

.page-hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(2.5rem, 2rem + 3vw, 5rem); }
.page-hero h1 { max-width: 17ch; margin-bottom: 1.5rem; }

/* Strumento: il pannello con la traccia del segnale macchina */

.instrument {
  margin: 0;
  padding: clamp(1rem, 0.6rem + 1.6vw, 1.6rem);
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r-panel);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.instr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--on-ink-rule);
  font-size: 0.9375rem;
}
.instr-head .k {
  display: block;
  font-size: 0.75rem;
  color: var(--on-ink-muted);
}
.instr-head strong { color: #fff; font-weight: 620; font-stretch: 108%; }
.instr-head .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--signal);
  font-weight: 600;
  font-size: 0.875rem;
}
.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(250, 237, 35, 0.2);
}

.instr-plot { margin: 1.25rem 0 0.75rem; }
.instr-plot svg { display: block; width: 100%; height: auto; overflow: visible; }

.griglia { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fascia { opacity: 0.09; }
.trace {
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  animation: trace-draw 3.4s cubic-bezier(0.45, 0, 0.25, 1) 0.35s backwards;
}
.rib {
  transform-box: fill-box;
  transform-origin: left center;
  animation: rib-in 0.45s ease-out backwards;
  animation-delay: calc(0.35s + var(--d) * 3.4s);
}
.sweep {
  stroke: var(--signal);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  animation: sweep 3.4s cubic-bezier(0.45, 0, 0.25, 1) 0.35s forwards;
}
.js .instrument.wait .trace,
.js .instrument.wait .rib,
.js .instrument.wait .sweep { animation-play-state: paused; }

/* Gli elementi sono visibili di base: le animazioni applicano lo stato iniziale solo mentre girano. */
@keyframes trace-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rib-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sweep {
  0% { opacity: 1; transform: translateX(0); }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translateX(1000px); }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--on-ink-muted);
}
.legend li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.45rem;
  border-radius: 2px;
  background: var(--c);
  vertical-align: -1px;
}

.readouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--on-ink-rule);
  border: 1px solid var(--on-ink-rule);
  border-radius: 4px;
  overflow: hidden;
}
.instrument { container-type: inline-size; }
@container (min-width: 700px) {
  .readouts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.readouts > div { background: var(--ink); padding: 0.75rem 0.9rem 0.85rem; }
.readouts dt { font-size: 0.75rem; color: var(--on-ink-muted); line-height: 1.3; }
.readouts dd {
  margin: 0.2rem 0 0;
  color: #fff;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
  font-weight: 650;
  font-stretch: 110%;
  line-height: 1.2;
}
.readouts dd small { font-size: 0.75rem; font-weight: 400; color: var(--on-ink-muted); font-stretch: 100%; }
.readouts .hl dd { color: var(--signal); }

.instrument figcaption {
  margin-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--on-ink-muted);
}

/* Ripartizione dell'energia per stato */
.attrib {
  display: flex;
  height: 14px;
  margin: 0.25rem 0 0.75rem;
  border-radius: 3px;
  overflow: hidden;
  gap: 2px;
}
.attrib span { flex: var(--w) 1 0; background: var(--c); }
.attrib-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--on-ink-muted);
}
.attrib-list li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.45rem;
  border-radius: 2px;
  background: var(--c);
  vertical-align: -1px;
}
.attrib-list b { color: #fff; font-weight: 600; }

/* Home: servizi per area */

.svc-groups { display: grid; gap: 3rem clamp(2rem, 4vw, 4rem); }
@media (min-width: 900px) {
  .svc-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.svc-group > h3 {
  padding-top: 1rem;
  border-top: 4px solid var(--ink);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-stretch: 100%;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0;
}
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li + li { border-top: 1px solid var(--rule); }
.svc-list a { display: block; padding: 1.1rem 0 1.2rem; text-decoration: none; }
.svc-list strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.svc-list span { display: block; color: var(--muted); font-size: 0.9688rem; line-height: 1.5; }
.svc-list a:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

/* Flusso gestionale → macchina: sequenza numerata */

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
  counter-reset: step;
}
.flow li {
  position: relative;
  padding-left: 3.5rem;
}
.flow li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  font-weight: 750;
  font-size: 1rem;
}
.flow li::after {
  content: "";
  position: absolute;
  left: calc(1.2rem - 1px);
  top: 2.9rem;
  bottom: -1.9rem;
  width: 2px;
  background: var(--on-ink-rule);
}
.flow li:last-child::after { display: none; }
.flow h3 { margin: 0.35rem 0 0.5rem; }
.flow p { color: var(--on-ink-muted); font-size: 0.975rem; line-height: 1.55; }

@media (min-width: 1040px) {
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .flow li { padding: 3.6rem 1.75rem 0 0; }
  .flow li::after { left: 3rem; right: 0.6rem; top: calc(1.2rem - 1px); bottom: auto; width: auto; height: 2px; }
  .flow h3 { margin-top: 0; }
}

.keynote {
  display: grid;
  gap: 0.75rem 3rem;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--on-ink-rule);
}
@media (min-width: 900px) {
  .keynote { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: baseline; }
}
.keynote h3 { color: var(--signal); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.keynote p { color: var(--on-ink); }

/* Principi */

.principles {
  display: grid;
  gap: 2.75rem clamp(2rem, 6vw, 6rem);
}
@media (min-width: 760px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.principle h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-stretch: 116%;
  font-weight: 750;
  margin-bottom: 0.75rem;
}
.principle p { color: var(--text); }

/* Blocchi a due colonne */

.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split.split-wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .split.top { align-items: start; }
}
.split h2 { margin-bottom: 1.25rem; }

/* Elenco a righe (aree di ricerca in home, ecc.) */

.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--on-ink-rule); }
.rows li {
  display: grid;
  gap: 0.25rem 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--on-ink-rule);
}
@media (min-width: 640px) {
  .rows li { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
.rows strong { color: #fff; font-weight: 650; font-stretch: 108%; }
.rows span { color: var(--on-ink-muted); font-size: 0.975rem; line-height: 1.5; }

/* Composizione immagini: foto + schermata sovrapposta */

.stack { position: relative; margin: 0; padding-bottom: 14%; }
.stack .photo { width: 72%; margin-left: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.stack .shot {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 82%;
  border-radius: var(--r-panel);
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
  background: #fff;
}

/* Fascia finale */

.cta-band { background: var(--signal); color: var(--ink); padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.cta-grid { display: grid; gap: 2rem clamp(2rem, 6vw, 6rem); }
@media (min-width: 960px) {
  .cta-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; }
}
.cta-band h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); }
.cta-band p { font-size: 1.125rem; }
.cta-band .actions { margin-top: 1.5rem; }
.cta-band .btn-primary:hover { background: #fff; color: var(--ink); }

/* Pagina Servizi */

.svc-layout { display: grid; gap: 2rem clamp(3rem, 5vw, 5rem); }
@media (min-width: 1040px) {
  .svc-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.toc p { font-size: 0.875rem; font-weight: 650; color: var(--muted); margin: 1.25rem 0 0.35rem; }
.toc p:first-child { margin-top: 0; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 0.3rem 0; font-size: 0.9688rem; text-decoration: none; color: var(--ink); line-height: 1.35; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 1039px) {
  .toc { display: none; }
}

.svc { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 8px); }
.svc:first-child { border-top: 4px solid var(--ink); }
.svc .area { font-size: 0.9375rem; font-weight: 650; color: var(--muted); margin-bottom: 0.5rem; }
.svc h2 { font-size: clamp(1.8rem, 1.35rem + 1.6vw, 2.7rem); margin-bottom: 1rem; }
.svc .svc-lead { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); color: var(--ink); font-weight: 500; line-height: 1.4; max-width: 44ch; margin-bottom: 1.75rem; }
.svc-body { display: grid; gap: 2rem clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) {
  .svc-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.svc-body h3 { font-size: 1rem; font-stretch: 100%; font-weight: 650; color: var(--muted); margin-bottom: 0.5rem; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.6rem;
  border-top: 1px solid var(--rule);
  font-size: 0.975rem;
  line-height: 1.45;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 9px;
  height: 9px;
  background: var(--signal);
  box-shadow: 0 0 0 1.5px var(--ink);
}

.fit {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-left: 4px solid var(--signal);
  font-size: 0.975rem;
  max-width: none;
}
.fit b { color: var(--ink); }

/* Pagina Ricerca */

.statement {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  line-height: 1.2;
  font-weight: 560;
  font-stretch: 106%;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 34ch;
  margin: 0;
  text-wrap: pretty;
}
.statement + p { margin-top: 1.5rem; color: var(--muted); }

.areas { display: grid; gap: 0 clamp(2rem, 5vw, 5rem); }
@media (min-width: 900px) {
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.area-item { padding-block: 1.75rem 2.75rem; border-top: 2px solid var(--ink); }
.area-item h3 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem); font-stretch: 114%; font-weight: 740; margin-bottom: 0.9rem; }
.area-item h4 { font-size: 0.9375rem; font-stretch: 100%; font-weight: 650; color: var(--muted); letter-spacing: 0; margin: 1.25rem 0 0.4rem; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem clamp(2rem, 4vw, 4rem);
  counter-reset: step;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { border-top: 1px solid var(--on-ink-rule); padding-top: 1.25rem; }
@media (min-width: 900px) { .principles.principles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  margin-bottom: 0.75rem;
  color: var(--signal);
  font-size: 2.6rem;
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--on-ink-muted); font-size: 0.975rem; }

.quote {
  margin: 0 0 clamp(3rem, 5vw, 4.5rem);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 6px solid var(--signal);
}
.quote p {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.9rem);
  font-weight: 700;
  font-stretch: 114%;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  max-width: 26ch;
}

.kpis {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpis li { background: var(--surface); padding: 1.5rem 1.5rem 1.75rem; }
.kpis .unit {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 800;
  font-stretch: 120%;
  letter-spacing: -0.02em;
  line-height: 1;
}
.kpis strong { display: block; color: var(--ink); font-weight: 650; margin-bottom: 0.3rem; }
.kpis span:not(.unit) { display: block; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

.person {
  display: grid;
  gap: 1rem 2.5rem;
  padding-top: 1.5rem;
  border-top: 4px solid var(--ink);
}
@media (min-width: 760px) { .person { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.person h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); font-stretch: 116%; font-weight: 750; }
.person .role { color: var(--muted); margin-top: 0.35rem; font-size: 1rem; }

/* Pagina Software (Balance) */

.bal-logo { width: 190px; height: auto; margin-bottom: 2rem; }

.facts {
  display: grid;
  gap: 0 clamp(1.5rem, 3vw, 3rem);
  margin: 0;
}
@media (min-width: 700px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts > div { padding: 1.25rem 0 1.5rem; border-top: 2px solid var(--ink); }
.facts dt { font-size: 0.9375rem; font-weight: 650; color: var(--muted); margin-bottom: 0.35rem; }
.facts dd { margin: 0; color: var(--ink); font-size: 1.0625rem; line-height: 1.45; }

.features {
  display: grid;
  gap: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 800px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature { margin: 0; }
.feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: var(--r-panel);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  background: #fff;
}
.feature figcaption { margin-top: 1.1rem; }
.feature h3 { margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.975rem; }

.plans {
  display: grid;
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 800px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plans li { padding-top: 1.25rem; border-top: 4px solid var(--ink); }
.plans h3 { font-size: 1.6rem; font-stretch: 122%; font-weight: 800; margin-bottom: 0.25rem; }
.plans .price { color: var(--ink); font-size: 1.125rem; font-weight: 650; margin-bottom: 0.75rem; }
.plans .price span { font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
.plans p:not(.price) { color: var(--muted); font-size: 0.975rem; }

.eu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.eu img { width: 240px; height: auto; }
.eu p { color: var(--muted); font-size: 0.9375rem; max-width: 60ch; }

/* Pagina Azienda */

.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.jar { width: min(100%, 260px); height: auto; color: var(--ink); }
.jar .foil { fill: var(--signal); }

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 clamp(2rem, 5vw, 5rem);
}
@media (min-width: 800px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.values li { padding-block: 1.4rem 1.6rem; border-top: 1px solid var(--rule); }
.values strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 720;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}
.values span { color: var(--muted); }

.company {
  display: grid;
  gap: 0 2rem;
  margin: 0;
}
@media (min-width: 700px) { .company { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.company > div { padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.company dt { font-size: 0.875rem; color: var(--muted); }
.company dd { margin: 0; color: var(--ink); font-weight: 560; }

/* Pagina Contatti */

.big-mail {
  display: inline-block;
  font-size: clamp(1.9rem, 1rem + 4vw, 4.4rem);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--signal), var(--signal)) no-repeat 0 92% / 100% 0.28em;
  word-break: break-word;
}
.big-mail:hover { background-size: 100% 0.9em; text-decoration: none; }

.contact-grid {
  display: grid;
  gap: 0 clamp(2rem, 4vw, 4rem);
  margin-top: clamp(3rem, 5vw, 4.5rem);
}
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-grid > div { padding-block: 1.25rem 1.75rem; border-top: 2px solid var(--ink); }
.contact-grid h2 { font-size: 1.15rem; font-stretch: 108%; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em; }

.bullets { margin: 0; padding-left: 1.2rem; }
.bullets li { margin-bottom: 0.5rem; }
.bullets li::marker { color: var(--ink); }

/* Testi lunghi (privacy) */

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  padding-block: clamp(3.5rem, 3rem + 3vw, 6rem) 2rem;
  font-size: 0.9688rem;
}
.site-footer .brand { color: #fff; margin-bottom: 1.25rem; }
.site-footer .mark rect { fill: var(--signal); }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) {
  .foot-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
}
.foot-brand p { max-width: 36ch; }
.foot-h { color: #fff; font-size: 0.9375rem; font-weight: 650; font-stretch: 100%; letter-spacing: 0; margin-bottom: 0.75rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 0.4rem; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--on-ink-rule);
  font-size: 0.8125rem;
}

/* Hero: l'hub da cui si diramano le attività */

.hub {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  margin-inline: auto;
}
.hub > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-orbit {
  fill: none;
  stroke: #BCBEB8;
  stroke-width: 1;
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
}
.hub-line {
  stroke: var(--ink);
  stroke-width: 0.28;
  stroke-dasharray: 1;
  animation: trace-draw 0.6s ease-out backwards;
  animation-delay: calc(0.25s + var(--i) * 0.08s);
}
.hub-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 23%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--signal);
  box-shadow: 0 0 0 10px var(--paper), 0 0 0 11.5px var(--ink);
}
.hub-core .mark { width: 48%; height: auto; }
.hub-node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0.5rem 0.95rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(0.8rem, 0.72rem + 0.3vw, 0.98rem);
  font-weight: 620;
  font-stretch: 106%;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  animation: node-in 0.35s ease-out backwards;
  animation-delay: calc(0.7s + var(--i) * 0.08s);
  transition: background-color 0.15s;
}
.hub-node:hover { background: var(--signal); text-decoration: none; }
@keyframes node-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Home: missione e problemi */

.keywords {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0 0 0 1.25rem;
  border-left: 6px solid var(--signal);
}
.keywords li {
  color: var(--ink);
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.problems {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 clamp(2rem, 4vw, 4rem);
}
@media (min-width: 760px) { .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.problems li {
  position: relative;
  padding: 1.2rem 0 1.2rem 2rem;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 520;
  line-height: 1.35;
}
.problems li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.6rem;
  width: 11px;
  height: 11px;
  background: var(--signal);
  box-shadow: 0 0 0 1.5px var(--ink);
}

@media (min-width: 900px) {
  .keynote.keynote-instrument { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
}
.instrument-framed { border: 1px solid var(--on-ink-rule); }

.brand-mini {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-left: 4px solid var(--signal);
}
.brand-mini img { width: 150px; height: auto; }
.brand-mini p { font-size: 0.975rem; }

/* Pagina Brand */

.brand-label { font-size: 0.9375rem; font-weight: 650; color: var(--muted); margin-bottom: 1.25rem; }

.shots-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}
@media (min-width: 900px) { .shots-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shots-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: var(--r-panel);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.func-grid {
  list-style: none;
  margin: clamp(2.5rem, 4vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0 clamp(1.5rem, 3vw, 3rem);
}
@media (min-width: 700px) { .func-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .func-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.func-grid li { padding: 1.1rem 0 1.3rem; border-top: 1px solid var(--rule); }
.func-grid strong { display: block; margin-bottom: 0.3rem; color: var(--ink); font-weight: 680; font-stretch: 108%; }
.func-grid span { display: block; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

.next-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border: 2px dashed #B9BBB5;
  border-radius: var(--r-panel);
  color: #B9BBB5;
}
.next-slot .mark { width: 22%; height: auto; }

/* Movimento ridotto */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .hub-line { animation: none; stroke-dashoffset: 0; }
  .hub-node { animation: none; opacity: 1; }
  .trace { animation: none; stroke-dashoffset: 0; }
  .rib { animation: none; transform: none; }
  .sweep { animation: none; display: none; }
}
