@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f6f7f5;
  --paper-2: #eceeeb;
  --ink: #15191b;
  --ink-2: #4b5357;
  --rule: #d3d8d6;
  --highlight: #ccff00;
  --highlight-2: #e2ff5c;
  --petrol: #15191b;
  --petrol-2: #000000;
  --on-petrol: #eef4f3;
  --on-petrol-2: #b8bcbd;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --sec: clamp(88px, 12vw, 168px);
  --cg: clamp(16px, 2vw, 32px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --rgap: clamp(24px, 3vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  caret-color: var(--petrol);
}

::selection { background: var(--highlight); color: var(--ink); }

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
}
.sign {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sign__mark { width: 30px; height: auto; fill: var(--ink); }
.sign__name { font-size: 1.0625rem; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__cta {
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--petrol);
  padding: 8px 0;
  border-bottom: 2px solid currentColor;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 var(--sec); }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--cg);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.6rem, 5.9vw, 5.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.038em;
}
.hero__title span { display: block; text-wrap: balance; }
.hero__lead {
  margin-top: clamp(28px, 3vw, 40px);
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  max-width: 36em;
}
.hero__place {
  margin-top: 16px;
  color: var(--ink-2);
  max-width: 36em;
}
.hero__actions {
  margin-top: clamp(32px, 3.4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.hero__mail { color: var(--ink-2); font-size: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  background: var(--petrol);
  color: var(--on-petrol);
  font-weight: 650;
  font-size: 1.0625rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.2s ease-out;
}
.btn::after {
  content: "";
  width: 18px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 4px, 13px 4px, 13px 0, 18px 5px, 13px 10px, 13px 6px, 0 6px);
  transition: transform 0.2s ease-out;
}
.btn:hover { background: var(--petrol-2); }
.btn:hover::after { transform: translateX(4px); }

/* Flusso (hero) */
.flow { margin: 0; justify-self: end; width: 100%; max-width: 380px; }
.flow__svg { width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.flow__in { fill: none; stroke: color-mix(in srgb, var(--ink) 22%, var(--paper)); stroke-width: 1.2; }
.flow__out { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.flow__bit { fill: var(--ink); }
.flow__done { fill: var(--highlight); stroke: var(--ink); stroke-width: 1.2; }
.flow__chips rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.flow__chips text { font-size: 13px; font-style: italic; fill: var(--ink-2); }
.flow__node rect { fill: var(--ink); }
.flow__ai { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; fill: var(--highlight); }
.flow__pulse { fill: none; stroke: var(--highlight); stroke-width: 2; opacity: 0; }
.flow__outs rect { fill: var(--highlight); stroke: var(--ink); stroke-width: 1.2; }
.flow__outs text { font-size: 13.5px; font-weight: 650; fill: var(--ink); }
.flow__cap {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--ink-2);
}
@media (prefers-reduced-motion: no-preference) {
  .flow__svg { animation: float 7s ease-in-out infinite; }
  .flow__pulse { transform-origin: 180px 270px; animation: pulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }

/* ---------- Sections ---------- */
.sec { padding: var(--sec) 0; border-top: 1px solid var(--rule); }
.sec__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px var(--cg);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.sec__head h2,
.split h2,
.about h2,
.contact h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.05;
}
.sec__head p { color: var(--ink-2); max-width: 34em; }
h2 .l { display: block; }
.tool__sketch--mail span { white-space: nowrap; overflow: hidden; }

/* Legend (cosa faccio) */
.legend { border-top: 2px solid var(--ink); }
.legend__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px var(--cg);
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--rule);
}
.legend dt { font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.legend dd { max-width: 38em; }

/* Tools (esempi) */
.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.tool {
  padding: clamp(24px, 2.6vw, 36px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
}
.tool h3 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.015em; margin-top: 14px; }
.tool p { font-size: 1rem; color: var(--ink-2); }

.tool__sketch {
  position: relative;
  height: 104px;
  padding: 12px 0 0;
  border-top: 1px dashed var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-2);
}
.tool__sketch em {
  position: absolute;
  top: 10px;
  right: 0;
  font-size: 0.6875rem;
  color: var(--petrol);
  letter-spacing: 0.04em;
}
.tool__sketch strong { color: var(--ink); font-weight: 650; font-size: 0.875rem; padding-right: 56px; }
.tool__sketch--mail b {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--petrol);
}
@media (prefers-reduced-motion: no-preference) {
  .tool__sketch--mail b { animation: blink 1.1s steps(1) 3; }
}
@keyframes blink { 50% { opacity: 0; } }

.tool__sketch--search .q {
  align-self: flex-start;
  max-width: calc(100% - 56px);
  padding: 5px 8px;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.tool__sketch--search .hit {
  align-self: flex-start;
  padding: 2px 6px;
  background: color-mix(in srgb, var(--petrol) 16%, var(--paper));
  color: var(--petrol-2);
}

.tool__sketch--quote .row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.tool__sketch--quote .row.muted { color: var(--ink-2); font-style: italic; border-bottom: 0; }

.tool__sketch--bars .bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; }
.tool__sketch--bars i { flex: 1; height: calc(var(--h) * 100%); background: color-mix(in srgb, var(--ink) 18%, var(--paper)); }
.tool__sketch--bars i:nth-child(4) { background: var(--highlight); box-shadow: inset 0 0 0 1px var(--ink); }

.tool__sketch--flow .flow { flex: 1; display: flex; align-items: center; }
.tool__sketch--flow i {
  flex: none;
  font-style: normal;
  font-size: 0.75rem;
  padding: 6px 8px;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.tool__sketch--flow i:last-child { border-color: var(--ink); color: var(--ink); background: var(--highlight); }
.tool__sketch--flow s { flex: 1; min-width: 10px; height: 0; border-top: 1px dashed var(--ink-2); }

.tool__sketch--report span { padding-left: 14px; position: relative; }
.tool__sketch--report span::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; border-top: 2px solid var(--petrol); }

/* Route (metodo) */
.route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--rgap);
  position: relative;
}
.route::before {
  content: "";
  position: absolute;
  left: 22px;
  right: calc((100% - 3 * var(--rgap)) / 4 - 22px);
  top: 21px;
  border-top: 2px solid var(--ink);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .route::before {
      transform-origin: left center;
      animation: route linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 45%;
    }
  }
}
@keyframes route { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.route__stop { position: relative; padding-top: 0; }
.route__n {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--highlight);
  border: 2px solid var(--ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  margin-bottom: 26px;
}
.route h3 { font-size: 1.375rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.route p { font-size: 1rem; color: var(--ink-2); }
.link-arrow {
  font-weight: 650;
  color: var(--petrol);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 10px;
  margin-left: 10px;
  background: currentColor;
  clip-path: polygon(0 4px, 13px 4px, 13px 0, 18px 5px, 13px 10px, 13px 6px, 0 6px);
}
.link-arrow:hover { color: var(--petrol-2); }

/* Works (progetti) */
.works { border-top: 2px solid var(--ink); }
.work {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px var(--cg);
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.work__id h3 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.05; }
.work__id a {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--petrol);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.work__id a:hover { border-bottom-width: 2px; }
.work__cat { display: table; margin-top: 8px; padding: 2px 8px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); background: linear-gradient(var(--highlight), var(--highlight)) left / 100% 100% no-repeat; }
.work__desc { max-width: 34em; }
.work__status {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--ink-2);
  border: 1px dashed var(--ink-2);
  padding: 3px 8px;
}
.work__parts { font-size: 0.875rem; color: var(--ink-2); line-height: 1.5; }
.work__parts strong { display: block; color: var(--ink); font-weight: 650; margin-bottom: 2px; }

/* Regole e AI */
.rules {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 var(--cg);
  border-top: 2px solid var(--ink);
}
.rules__col { grid-column: 1 / 7; padding: clamp(28px, 3.4vw, 44px) clamp(0px, 2vw, 32px) clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--rule); }
.rules__col--ai { grid-column: 7 / -1; padding-left: 0; }
.rules__col h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 14px; }
.rules__col p { max-width: 30em; }
.rules__note { margin-top: 12px; font-style: italic; color: var(--ink-2); }
.rules__bridge { grid-column: 1 / -1; padding-top: clamp(28px, 3.4vw, 44px); max-width: 58em; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); }
.rules__bridge mark { display: block; margin-bottom: 8px; background: none; color: var(--ink); font-weight: 650; font-size: clamp(1.25rem, 2vw, 1.625rem); letter-spacing: -0.015em; }
.rules__bridge mark::selection { background: var(--highlight); }

/* Storia ViviBrescia */
.clock__title { font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 28px; }
.clock {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--cg);
  border-top: 2px solid var(--ink);
  padding-top: 26px;
}
.clock__stop { position: relative; }
.clock__stop::before {
  content: "";
  position: absolute;
  top: -34px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--highlight);
  border: 2px solid var(--ink);
}
.clock__t { display: block; font-size: clamp(1.5rem, 2.4vw, 2.125rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.clock__stop p { font-size: 1rem; color: var(--ink-2); }
.clock__week { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); font-style: italic; color: var(--ink-2); max-width: 60em; }
.story {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--cg);
  margin-top: clamp(48px, 6vw, 80px);
  align-items: start;
}
.story__human { grid-column: 1 / 7; }
.story__human h3 { font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.story__human p { max-width: 36em; }
.story__bridge { grid-column: 7 / -1; font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; }
.story__bridge mark { background: linear-gradient(var(--highlight), var(--highlight)) left / 100% 100% no-repeat; color: var(--ink); padding: 0 4px; }

.chain { margin-top: 20px; }
.chain summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.chain summary span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.chain summary::-webkit-details-marker { display: none; }
.chain summary::after { content: "+"; font-weight: 750; line-height: 1; display: inline-grid; place-items: center; width: 22px; height: 22px; padding-bottom: 2px; box-sizing: border-box; background: var(--highlight); }
.chain[open] summary::after { content: "−"; }
.chain__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--cg); margin-top: 16px; align-items: start; }
.chain__t { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.chain__t caption { text-align: left; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.chain__t th, .chain__t td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.chain__t th { width: 9.5em; font-weight: 650; padding-right: 12px; }
.chain__t td { color: var(--ink-2); }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: clamp(1.125rem, 1.7vw, 1.4375rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.faq__item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 750;
  font-size: 1.125rem;
}
.faq__item[open] summary::after { content: "−"; background: var(--highlight); }
.faq__item summary:hover h3 { text-decoration: underline; text-underline-offset: 0.2em; }
.faq__item p { padding: 0 56px 24px 0; max-width: 46em; color: var(--ink-2); }

/* Come si comincia */
.start {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px var(--cg);
  border-top: 2px solid var(--ink);
  padding-top: clamp(28px, 3.4vw, 44px);
}
.start__meet { grid-column: 1 / 6; }
.start__ways { grid-column: 7 / -1; }
.start h3 { font-size: clamp(1.375rem, 2.2vw, 1.875rem); letter-spacing: -0.025em; line-height: 1.15; }
.start__tag {
  display: inline-block;
  vertical-align: 0.2em;
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--highlight);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0;
}
.start__steps { counter-reset: step; margin: 24px 0 0; }
.start__steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 44px;
  border-bottom: 1px solid var(--rule);
}
.start__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--highlight);
  font-weight: 750;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.start__note { margin: 20px 0 28px; font-style: italic; color: var(--ink-2); }
.start__ways .start__note { margin-bottom: 0; }
.start__ways-title { margin-bottom: 8px; }
.way { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.way h4 { margin: 0 0 6px; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.015em; }
.way p { max-width: 38em; }

/* Dai progetti alla tua azienda */
.caps { border-top: 2px solid var(--ink); }
.cap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px var(--cg);
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.cap__what { grid-column: 1 / 6; }
.cap__what h3 { font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.cap__what p { margin-top: 6px; color: var(--ink-2); font-size: 1rem; }
.cap__pmi { grid-column: 6 / 10; }
.cap__proof { grid-column: 10 / -1; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.cap__k { display: block; width: 100%; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.cap__proof a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 8px;
  background: var(--highlight);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.cap__proof a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Dati */
.sec--quiet { background: var(--paper-2); }
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px var(--cg);
}
.split__body p + p { margin-top: 18px; }
.split__body p { max-width: 38em; }
.checks { margin-top: 32px; border-top: 1px solid var(--ink); }
.checks li {
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.35em;
  width: 12px;
  height: 0;
  border-top: 2px solid var(--petrol);
}

/* Chi sono */
.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px var(--cg);
  align-items: start;
}
.about__photo {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
}
.about__text h2 { margin-bottom: 28px; }
.about__text p { max-width: 38em; }
.about__text p + p { margin-top: 18px; }

/* Contatti */
.contact {
  background: var(--petrol);
  color: var(--on-petrol);
  padding: var(--sec) 0;
}
.contact ::selection { background: var(--highlight); color: var(--ink); }
.contact :focus-visible { outline-color: var(--on-petrol); }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px var(--cg);
  align-items: end;
}
.contact h2 { font-size: clamp(2.4rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -0.035em; }
.contact__lead { margin: 28px 0 40px; max-width: 30em; color: var(--on-petrol-2); font-size: clamp(1.125rem, 1.5vw, 1.3125rem); }
.btn--inverse { background: var(--highlight); color: var(--ink); }
.btn--inverse:hover { background: var(--highlight-2); }
.contact__card {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--on-petrol) 40%, transparent);
  color: var(--on-petrol-2);
}
.contact__name { color: var(--on-petrol); font-weight: 700; font-size: 1.25rem; }
.contact__mail { color: var(--highlight); font-weight: 600; font-size: 1.25rem; margin-top: 8px; word-break: break-word; }

/* Footer (cartiglio) */
.foot { padding: 40px 0 48px; font-size: 0.875rem; color: var(--ink-2); }
.foot__block {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.foot__cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  margin: 0 -1px -1px 0;
}
.foot__cell--main { grid-column: span 2; color: var(--ink); font-weight: 600; }
.foot__cell--wide { grid-column: span 2; }
.foot__cell--full { grid-column: 1 / -1; }
.foot__k { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }

/* 12-column placement: second column always starts on line 7 */
.hero__text { grid-column: 1 / 9; }
.flow { grid-column: 9 / -1; }
.sec__head h2 { grid-column: 1 / 7; }
.sec__head p { grid-column: 7 / -1; }
.legend dt { grid-column: 1 / 6; }
.legend dd { grid-column: 7 / -1; }
.work__id { grid-column: 1 / 5; }
.work__desc { grid-column: 5 / 10; }
.work__parts { grid-column: 10 / -1; }
.split h2 { grid-column: 1 / 6; }
.split__body { grid-column: 7 / -1; }
.about__photo { grid-column: 1 / 5; }
.about__text { grid-column: 7 / -1; }
.contact__grid > div { grid-column: 1 / 8; }
.contact__card { grid-column: 9 / -1; }


/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work__id { grid-column: 1 / 6; }
  .work__desc { grid-column: 7 / -1; }
  .work__parts { grid-column: 7 / -1; }
}

@media (max-width: 820px) {
  .flow { max-width: 300px; }
  .sec__head,
  .legend__row,
  .split,
  .contact__grid { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; gap: 36px; padding-left: 0; }
  .route::before { left: 21px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px solid var(--ink); }
  @supports (animation-timeline: view()) {
    .route::before { transform-origin: center top; animation-name: route-v; }
  }
  .route__stop { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; }
  .route__n { grid-row: span 2; margin-bottom: 0; }
  .route h3 { margin-top: 8px; margin-bottom: 6px; }
  .wrap .sec__head > *, .wrap .legend__row > *, .wrap.split > *, .wrap.contact__grid > *,
  .wrap .work > *, .wrap.about > *, .wrap .cap > *, .wrap .start > *, .wrap .story > *, .wrap .rules > * { grid-column: 1 / -1; }
  .rules__col { padding-right: 0; }
  .clock { grid-template-columns: 1fr; gap: 22px; border-top: 0; border-left: 2px solid var(--ink); padding: 0 0 0 26px; }
  .clock__stop::before { top: 4px; left: -35px; }
  .chain__body { grid-template-columns: 1fr; }
  .faq__item p { padding-right: 0; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 200px; }
  .foot__block { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap.hero__grid > * { grid-column: 1 / -1; }
  .flow { justify-self: center; max-width: 320px; margin-top: 16px; }
}
@keyframes route-v { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .tools { grid-template-columns: 1fr; }
  .tool { grid-template-rows: auto; }
  .hero__title { font-size: clamp(2.25rem, 10.4vw, 3rem); letter-spacing: -0.035em; }
  .btn { width: 100%; justify-content: center; }
  .foot__block { grid-template-columns: 1fr; }
  .foot__cell--main, .foot__cell--wide { grid-column: auto; }
}

/* Target di tocco >= 44px per i link isolati */
.sign, .hero__mail, .work__id a, .contact__mail { min-height: 44px; display: inline-flex; align-items: center; }
.work__id a { margin-top: 2px; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.work__id a:hover { text-decoration-thickness: 2px; }
.link-arrow { display: inline-block; padding: 10px 0; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.foot a { display: inline-block; padding: 10px 0; margin: -10px 0; }

@media (max-width: 380px) {
  .btn { padding: 0 18px; font-size: 1rem; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Animazioni d'ingresso (una volta, via .anim + .is-in) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes reveal-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes grow-y { from { transform: scaleY(0.04); } to { transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes lit { from { background-color: var(--paper); } to { background-color: var(--highlight); } }
@keyframes dot { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }

/* email: oggetto e testo si scrivono, poi il cursore */
.anim .tool:not(.is-in) .tool__sketch--mail :is(strong, span) { clip-path: inset(0 100% 0 0); }
.anim .is-in .tool__sketch--mail strong { animation: reveal-x 700ms steps(22, end) 150ms both; }
.anim .is-in .tool__sketch--mail span { animation: reveal-x 1100ms steps(30, end) 900ms both; }
.anim .tool__sketch--mail b { animation: none; }
.anim .is-in .tool__sketch--mail b { animation: blink 1.1s steps(1) 2.1s 3; }

/* ricerca: domanda, poi il risultato */
.anim .tool:not(.is-in) .tool__sketch--search :is(.q, .hit) { opacity: 0; }
.anim .is-in .tool__sketch--search .q { animation: rise 450ms var(--ease-out) 150ms both; }
.anim .is-in .tool__sketch--search .hit { animation: rise 450ms var(--ease-out) 900ms both; }

/* offerta: titolo, intestazione, valori */
.anim .tool:not(.is-in) .tool__sketch--quote :is(strong, .row) { opacity: 0; }
.anim .is-in .tool__sketch--quote strong { animation: rise 450ms var(--ease-out) 100ms both; }
.anim .is-in .tool__sketch--quote .row { animation: rise 450ms var(--ease-out) 350ms both; }
.anim .is-in .tool__sketch--quote .row.muted { animation-delay: 650ms; }

/* grafico: le barre crescono dalla base, una dopo l'altra */
.tool__sketch--bars i { transform-origin: bottom; }
.anim .tool:not(.is-in) .tool__sketch--bars i { transform: scaleY(0.04); }
.anim .is-in .tool__sketch--bars i { animation: grow-y 650ms var(--ease-out) both; }
.anim .is-in .tool__sketch--bars i:nth-child(1) { animation-delay: 150ms; }
.anim .is-in .tool__sketch--bars i:nth-child(2) { animation-delay: 210ms; }
.anim .is-in .tool__sketch--bars i:nth-child(3) { animation-delay: 270ms; }
.anim .is-in .tool__sketch--bars i:nth-child(4) { animation-delay: 330ms; }
.anim .is-in .tool__sketch--bars i:nth-child(5) { animation-delay: 390ms; }
.anim .is-in .tool__sketch--bars i:nth-child(6) { animation-delay: 450ms; }

/* flusso: i dati passano da un box all'altro, l'ultimo si accende */
.tool__sketch--flow s { transform-origin: left; }
.anim .tool:not(.is-in) .tool__sketch--flow i { opacity: 0; }
.anim .tool:not(.is-in) .tool__sketch--flow s { transform: scaleX(0); }
.anim .is-in .tool__sketch--flow i { animation: rise 400ms var(--ease-out) both; }
.anim .is-in .tool__sketch--flow i:nth-child(1) { animation-delay: 100ms; }
.anim .is-in .tool__sketch--flow i:nth-child(3) { animation-delay: 650ms; }
.anim .is-in .tool__sketch--flow i:nth-child(5) { animation: rise 400ms var(--ease-out) 1200ms both, lit 350ms ease 1550ms both; }
.anim .is-in .tool__sketch--flow s { animation: grow-x 400ms var(--ease-out) both; }
.anim .is-in .tool__sketch--flow s:nth-child(2) { animation-delay: 350ms; }
.anim .is-in .tool__sketch--flow s:nth-child(4) { animation-delay: 900ms; }

/* report: titolo e righe in sequenza */
.anim .tool:not(.is-in) .tool__sketch--report :is(strong, span) { opacity: 0; }
.anim .is-in .tool__sketch--report :is(strong, span) { animation: rise 450ms var(--ease-out) both; }
.anim .is-in .tool__sketch--report strong { animation-delay: 100ms; }
.anim .is-in .tool__sketch--report span:nth-of-type(1) { animation-delay: 350ms; }
.anim .is-in .tool__sketch--report span:nth-of-type(2) { animation-delay: 450ms; }
.anim .is-in .tool__sketch--report span:nth-of-type(3) { animation-delay: 550ms; }

/* linea del tempo: la linea si traccia, poi le tappe in ordine */
.anim .clock:not(.is-in) .clock__stop { opacity: 0; }
.anim .is-in .clock__stop { animation: rise 500ms var(--ease-out) both; }
.anim .is-in .clock__stop::before { animation: dot 400ms var(--ease-out) both; animation-delay: inherit; }
.anim .is-in .clock__stop:nth-child(1) { animation-delay: 250ms; }
.anim .is-in .clock__stop:nth-child(2) { animation-delay: 370ms; }
.anim .is-in .clock__stop:nth-child(3) { animation-delay: 490ms; }
.anim .is-in .clock__stop:nth-child(4) { animation-delay: 610ms; }
.anim .is-in .clock__stop:nth-child(5) { animation-delay: 730ms; }
.anim .is-in .clock__stop:nth-child(6) { animation-delay: 850ms; }
@media (min-width: 821px) {
  .anim .clock { border-top-color: transparent; }
  .anim .clock::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    height: 2px;
    background: var(--ink);
    transform-origin: left;
    transform: scaleX(0);
  }
  .anim .clock.is-in::after { animation: grow-x 1100ms var(--ease-out) both; }
}

/* Blocchi di contenuto: salgono una volta, in sequenza nel gruppo */
.anim .rv {
  transition: opacity 600ms var(--ease-out) var(--d, 0ms), transform 700ms var(--ease-out) var(--d, 0ms);
}
.anim .rv:not(.is-in) { opacity: 0; transform: translateY(14px); }

/* Evidenziatore che si stende: etichette progetti e frase ponte */
.anim .work__cat, .anim .story__bridge mark { transition: background-size 650ms var(--ease-out) 350ms; }
.anim .work:not(.is-in) .work__cat, .anim .story__bridge:not(.is-in) mark { background-size: 0% 100%; }

/* Etichette "già costruito in": entrano una dopo l'altra */
.anim .cap:not(.is-in) .cap__proof a { opacity: 0; }
.anim .cap.is-in .cap__proof a { animation: rise 450ms var(--ease-out) both; }
.anim .cap.is-in .cap__proof a:nth-of-type(1) { animation-delay: 300ms; }
.anim .cap.is-in .cap__proof a:nth-of-type(2) { animation-delay: 380ms; }
.anim .cap.is-in .cap__proof a:nth-of-type(3) { animation-delay: 460ms; }

/* Hero: titolo e testo entrano al caricamento */
@media (prefers-reduced-motion: no-preference) {
  .hero__title span, .hero__lead, .hero__place, .hero__actions { animation: rise 700ms var(--ease-out) both; }
  .hero__title span:nth-child(1) { animation-delay: 80ms; }
  .hero__title span:nth-child(2) { animation-delay: 200ms; }
  .hero__lead { animation-delay: 360ms; }
  .hero__place { animation-delay: 440ms; }
  .hero__actions { animation-delay: 520ms; }
  .flow { animation: fade 900ms var(--ease-out) 300ms both; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Icone ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Icona accanto ai titoli di sezione */
.h-ico { display: flex; align-items: flex-start; gap: 0.42em; }
.h-ico__i {
  flex: none;
  display: grid;
  place-items: center;
  width: 0.92em;
  height: 0.92em;
  margin-top: 0.08em;
  border-radius: 50%;
  background: var(--highlight);
  color: var(--ink);
}
.h-ico__i .ico { width: 58%; height: 58%; stroke-width: 1.9; }

/* ---------- Header: azioni ---------- */
.top__act { display: flex; align-items: center; gap: 22px; }
.nav__cta { white-space: nowrap; }
.mbtn {
  position: relative;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px 0 16px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 650 0.9375rem/1 var(--font);
  cursor: pointer;
}
.mbtn__bars { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); transition: background-color 300ms var(--ease-out); }
.mbtn__bars i { position: absolute; width: 16px; height: 2px; background: var(--paper); transition: transform 400ms var(--ease-out), background-color 300ms var(--ease-out); }
.mbtn__bars i:first-child { transform: translateY(-3px); }
.mbtn__bars i:last-child { transform: translateY(3px); }
.menu-open .mbtn__bars { background: var(--highlight); }
.menu-open .mbtn__bars i { background: var(--ink); }
.menu-open .mbtn__bars i:first-child { transform: rotate(45deg); }
.menu-open .mbtn__bars i:last-child { transform: rotate(-45deg); }
@media (hover: hover) and (pointer: fine) {
  .mbtn:hover .mbtn__bars { transform: scale(1.06); }
  .mbtn__bars { transition: background-color 300ms var(--ease-out), transform 200ms var(--ease-out); }
}

/* ---------- Menu a schermo intero ---------- */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  background: var(--paper);
  clip-path: inset(0 0 100% 0);
}
.menu-open .mnav { clip-path: inset(0 0 0 0); transition: clip-path 750ms var(--ease-drawer); }
.menu-open .top { z-index: 55; background: var(--paper); border-bottom-color: var(--rule); }
.menu-open body { overflow: hidden; }
.mnav__in {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 104px var(--gutter) 40px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mnav__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.mnav__list li { position: relative; border-bottom: 1px solid var(--rule); }
.mnav__list li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out); }
.mnav__list a { opacity: 0; transform: translateY(18px); }
.menu-open .mnav__list a {
  opacity: 1;
  transform: none;
  transition: opacity 450ms var(--ease-out) calc(120ms + var(--i) * 55ms), transform 650ms var(--ease-out) calc(120ms + var(--i) * 55ms);
}
.mnav__list a {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  padding: 18px 20px 18px 6px;
  text-decoration: none;
  color: var(--ink);
}
.mnav__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  transition: background-color 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.mnav__t { font-size: clamp(1.25rem, 2.1vw, 1.75rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.1; }
@media (hover: hover) and (pointer: fine) {
  .mnav__list a:hover .mnav__ico { background: var(--highlight); }
  .mnav__list li:hover::after { transform: scaleX(1); }
}
.mnav__list a:focus-visible .mnav__ico { background: var(--highlight); }
.mnav__foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 32px;
  color: var(--ink-2);
  opacity: 0;
}
.menu-open .mnav__foot { opacity: 1; transition: opacity 500ms var(--ease-out) 700ms; }
.mnav__foot a { color: var(--ink); font-weight: 650; }

/* Le icone galleggiano piano, ognuna col suo ritmo */
@keyframes galleggia {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: no-preference) {
  .menu-open .mnav__ico { animation: galleggia calc(4.2s + var(--i) * 0.37s) ease-in-out calc(var(--i) * -0.9s) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .mnav, .menu-open .mnav, .menu-closing .mnav { clip-path: none; transition: opacity 200ms ease; opacity: 0; }
  .mnav-edge { display: none; }
  .menu-open .mnav { opacity: 1; }
  .mnav__list a, .menu-open .mnav__list a { transform: none; transition: opacity 200ms ease; }
}

@media (max-width: 1080px) {
  .mnav__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav__cta { display: none; }
  .mnav__in { justify-content: flex-start; padding-top: 88px; }
  .mnav__list { grid-template-columns: 1fr; }
  .mnav__list a { min-height: 64px; padding: 10px 4px; gap: 14px; }
  .mnav__ico { width: 42px; height: 42px; }
}

/* Sotto-blocchi dentro una sezione (esempi, metodo) */
.sub { margin-top: clamp(64px, 8vw, 112px); }
.sub__t { font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 12px; }
.sub__p { color: var(--ink-2); max-width: 44em; margin-bottom: clamp(28px, 3.4vw, 44px); }
#come-si-comincia .route { margin: clamp(28px, 3.4vw, 44px) 0 clamp(64px, 8vw, 112px); }
#come-si-comincia .sub__t#metodo { margin-bottom: 0; }

.mnav:focus { outline: none; }
.mnav__list a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 0; }
@media (max-width: 1080px) {
  .mnav__in { justify-content: flex-start; padding-top: 112px; }
}

/* Chiusura del menu: dissolvenza breve, header sempre visibile */
.menu-closing .top { z-index: 55; }
.menu-closing .mnav { clip-path: inset(0 0 100% 0); transition: clip-path 480ms cubic-bezier(0.77, 0, 0.175, 1) 60ms; }
.menu-closing .mnav__list a, .menu-closing .mnav__foot { opacity: 0; transform: translateY(-10px); transition: opacity 160ms ease-out, transform 220ms var(--ease-out); }
.menu-closing .mnav__ico { animation: none; }
.mbtn, .mnav a, .btn, summary { -webkit-tap-highlight-color: transparent; }

/* Bordo lime della tenda: scende con lei in apertura, risale in chiusura */
.mnav-edge {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 52;
  height: 3px;
  background: var(--highlight);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}
@keyframes tenda-giu { 0% { opacity: 1; transform: translateY(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(100vh); } }
@keyframes tenda-su { 0% { opacity: 1; transform: translateY(100vh); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .menu-open .mnav-edge { animation: tenda-giu 750ms var(--ease-drawer) both; }
  .menu-closing .mnav-edge { animation: tenda-su 480ms cubic-bezier(0.77, 0, 0.175, 1) 60ms both; }
}

/* Header fermo quando il menu si apre o si chiude:
   etichetta Menu/Chiudi a larghezza fissa e spazio della barra di scorrimento sempre riservato */
.mbtn__t { display: inline-block; min-width: 3.6em; text-align: right; }
html { scrollbar-gutter: stable; }

/* Focus del bottone menu: niente riquadro sul tocco; da tastiera un anello sul solo cerchio */
.mbtn:focus { outline: none; }
.mbtn:focus-visible { outline: none; }
.mbtn:focus-visible .mbtn__bars { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Ritratto: il retino si apre dal centro quando entra nello schermo */
/* il ritaglio va sul genitore: IntersectionObserver non vede un elemento ritagliato quasi a zero */
.anim .about__photo { transition: clip-path 1100ms var(--ease-out); clip-path: circle(50% at 50% 50%); }
.anim .about:not(:has(.about__text.is-in)) .about__photo { clip-path: circle(8% at 50% 50%); }

/* Logo che si riempie di lime con lo scorrimento */
.sign__base polygon { fill: var(--ink); }
.sign__lime polygon { fill: var(--highlight); }

/* ---------- Dashboard di esempio ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dash {
  margin: 0;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
}
.dash__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 16px clamp(16px, 2.4vw, 28px);
  border-bottom: 1px solid var(--rule);
}
.dash__title { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.dash__live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--ink-2); }
.dash__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--petrol); }
@media (prefers-reduced-motion: no-preference) {
  .dash__dot { animation: battito 2s var(--ease-out) infinite; }
}
@keyframes battito { 0% { box-shadow: 0 0 0 0 rgb(14 75 90 / 0.45); } 70% { box-shadow: 0 0 0 8px rgb(14 75 90 / 0); } 100% { box-shadow: 0 0 0 0 rgb(14 75 90 / 0); } }
.dash__tag { margin-left: auto; font-size: 0.75rem; font-style: italic; color: var(--ink-2); border: 1px dashed var(--ink-2); padding: 2px 8px; }

.dash__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.dash__tile { display: flex; flex-direction: column; gap: 6px; padding: clamp(16px, 2.2vw, 26px) clamp(16px, 2.4vw, 28px); border-right: 1px solid var(--rule); }
.dash__tile:last-child { border-right: 0; }
.dash__k { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--ink-2); }
.dash__k .ico { width: 16px; height: 16px; }
.dash__v { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.dash__d { font-size: 0.8125rem; color: var(--ink-2); }
.dash__tile--alert { background: var(--highlight); }
.dash__tile--alert .dash__k, .dash__tile--alert .dash__d { color: var(--ink); }

.dash__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.dash__chart { grid-column: 1 / 8; padding: clamp(16px, 2.4vw, 28px); border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.dash__list { grid-column: 8 / -1; padding: clamp(16px, 2.4vw, 28px); }
.dash__h { font-size: 0.875rem; font-weight: 650; margin-bottom: 16px; }

.dash__bars { display: flex; align-items: flex-end; gap: 10px; flex: 1; min-height: 170px; margin: 0; padding: 0 0 26px; list-style: none; border-bottom: 1px solid var(--rule); position: relative; }
.dash__bar { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.dash__col {
  position: relative;
  display: block;
  height: calc(var(--h) * 100%);
  background: color-mix(in srgb, var(--petrol) 30%, #fff);
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
}
.dash__bar--now .dash__col { background: var(--petrol); }
.dash__wk { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font-size: 0.75rem; color: var(--ink-2); }
.dash__tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 7px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease-out;
}
.dash__bar--now .dash__tip { opacity: 1; background: none; color: var(--ink); font-weight: 650; padding: 0; left: auto; right: 0; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .dash__bar:hover .dash__tip { opacity: 1; }
  .dash__bar:hover .dash__col { filter: brightness(0.9); }
}

.dash__list ul { margin: 0; padding: 0; list-style: none; }
.dash__list li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "cli st" "city st"; gap: 0 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.dash__list li:last-child { border-bottom: 0; }
.dash__cli { grid-area: cli; font-weight: 600; font-size: 0.9375rem; }
.dash__city { grid-area: city; font-size: 0.8125rem; color: var(--ink-2); }
.dash__st { grid-area: st; align-self: center; display: inline-flex; align-items: center; gap: 5px; font-size: 0.8125rem; padding: 3px 9px; border: 1px solid var(--rule); white-space: nowrap; }
.dash__st .ico { width: 14px; height: 14px; }
.dash__st--ok { border-color: var(--petrol); color: var(--petrol); }
.dash__st--prep { color: var(--ink-2); }
.dash__st--late { background: var(--highlight); border-color: var(--ink); color: var(--ink); font-weight: 650; }

.dash__alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px clamp(16px, 2.4vw, 28px);
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.dash__alert .ico { flex: none; width: 20px; height: 20px; margin-top: 1px; }

.dash-how { margin-top: clamp(48px, 6vw, 80px); }
.dash-how__note { margin-top: 24px; max-width: 44em; font-style: italic; color: var(--ink-2); }
.dash-how__proof { margin-top: 20px; }

/* animazione d'ingresso della dashboard */
.anim .dash:not(.is-in) .dash__col { transform: scaleY(0.04); }
.anim .dash.is-in .dash__col { animation: grow-y 700ms var(--ease-out) both; }
.anim .dash.is-in .dash__bar:nth-child(1) .dash__col { animation-delay: 300ms; }
.anim .dash.is-in .dash__bar:nth-child(2) .dash__col { animation-delay: 350ms; }
.anim .dash.is-in .dash__bar:nth-child(3) .dash__col { animation-delay: 400ms; }
.anim .dash.is-in .dash__bar:nth-child(4) .dash__col { animation-delay: 450ms; }
.anim .dash.is-in .dash__bar:nth-child(5) .dash__col { animation-delay: 500ms; }
.anim .dash.is-in .dash__bar:nth-child(6) .dash__col { animation-delay: 550ms; }
.anim .dash.is-in .dash__bar:nth-child(7) .dash__col { animation-delay: 600ms; }
.anim .dash.is-in .dash__bar:nth-child(8) .dash__col { animation-delay: 650ms; }
.anim .dash:not(.is-in) :is(.dash__tile, .dash__list li, .dash__alert) { opacity: 0; }
.anim .dash.is-in :is(.dash__tile, .dash__list li, .dash__alert) { animation: rise 500ms var(--ease-out) both; }
.anim .dash.is-in .dash__tile:nth-child(2) { animation-delay: 80ms; }
.anim .dash.is-in .dash__tile:nth-child(3) { animation-delay: 160ms; }
.anim .dash.is-in .dash__tile:nth-child(4) { animation-delay: 240ms; }
.anim .dash.is-in .dash__list li:nth-child(1) { animation-delay: 500ms; }
.anim .dash.is-in .dash__list li:nth-child(2) { animation-delay: 580ms; }
.anim .dash.is-in .dash__list li:nth-child(3) { animation-delay: 660ms; }
.anim .dash.is-in .dash__list li:nth-child(4) { animation-delay: 740ms; }
.anim .dash.is-in .dash__list li:nth-child(5) { animation-delay: 820ms; }
.anim .dash.is-in .dash__alert { animation-delay: 1100ms; }

@media (max-width: 820px) {
  .dash__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash__tile:nth-child(2) { border-right: 0; }
  .dash__tile:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .wrap .dash__body > * { grid-column: 1 / -1; }
  .dash__chart { border-right: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 420px) {
  .dash__tag { margin-left: 0; }
  .dash__bars { gap: 6px; }
}

/* Dove posso fare la differenza */
.gains { border-top: 2px solid var(--ink); }
.gain {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px var(--cg);
  padding: clamp(26px, 3.4vw, 42px) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.gain h3 { grid-column: 1 / 7; font-size: clamp(1.625rem, 3vw, 2.5rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; }
.gain p { grid-column: 7 / -1; max-width: 36em; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); }
@media (max-width: 820px) {
  .wrap .gain > * { grid-column: 1 / -1; }
}

/* ======================================================================
   Redesign "memoria aziendale" (anteprima)
   ====================================================================== */

/* Header: nome e ruolo */
.sign__txt { display: flex; flex-direction: column; line-height: 1.15; }
.sign__name { font-size: 1.0625rem; font-weight: 750; letter-spacing: -0.01em; }
.sign__role { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }

/* 01 Visione */
.hero { padding: clamp(64px, 11vw, 148px) 0 var(--sec); }
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: none;
}
.hero__title span { display: block; text-wrap: balance; }
.hero__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 var(--cg);
  margin-top: clamp(40px, 6vw, 80px);
}
.hero__body > * { grid-column: 6 / -1; }
.hero__lead { font-size: clamp(1.1875rem, 1.9vw, 1.5rem); line-height: 1.45; color: var(--ink-2); max-width: 30em; margin-top: 0; }
.hero__lead--b { color: var(--ink); margin-top: 18px; }
.hero__lead mark, .claim mark, .big mark { background: linear-gradient(var(--highlight), var(--highlight)) left 0 bottom 0.08em / 100% 0.5em no-repeat; color: var(--ink); padding: 0 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__actions { margin-top: clamp(28px, 3.4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--ink); }
.hero__more span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.hero__more:hover span { text-decoration-thickness: 2px; }
.hero__more .ico { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__more .ico { animation: giu 2.2s var(--ease-out) 1.6s infinite; }
}
@keyframes giu { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(4px); } }

/* Titoli grandi delle sezioni narrative */
.big { font-size: clamp(2.1rem, 4.8vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; max-width: 18ch; }
.big .l { display: block; }
.big .l--soft { color: var(--ink-2); }

/* 02 Problema */
.scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--cg);
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 2px solid var(--ink);
}
.scene { padding: clamp(22px, 2.8vw, 34px) 0 0; }
.scene__k { display: block; font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.scene p { margin-top: 6px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--ink-2); max-width: 18em; }
.absence {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px var(--cg);
  margin-top: clamp(72px, 10vw, 140px);
  align-items: baseline;
}
.absence__t { grid-column: 1 / 7; font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.08; }
.absence__p { grid-column: 7 / -1; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); max-width: 28em; }

/* 03 Memoria */
.memory {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--cg);
  margin-top: clamp(40px, 6vw, 72px);
}
.memory__lead { grid-column: 1 / 7; font-size: clamp(1.1875rem, 1.9vw, 1.5rem); line-height: 1.45; max-width: 26em; }
.memory__def { grid-column: 7 / -1; padding-top: 14px; border-top: 2px solid var(--ink); }
.memory__def h3 { font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; }
.memory__def p { margin-top: 10px; max-width: 32em; }
.memory__aka { color: var(--ink-2); font-size: 1rem; }
.memory__props {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 var(--cg);
  border-top: 1px solid var(--rule);
}
.memory__props li { position: relative; padding: 18px 0 0 22px; font-size: 1rem; color: var(--ink-2); }
.memory__props li::before { content: ""; position: absolute; left: 0; top: 25px; width: 10px; height: 10px; border-radius: 50%; background: var(--highlight); box-shadow: inset 0 0 0 1.5px var(--ink); }

.claim {
  margin-top: clamp(64px, 9vw, 120px);
  font-size: clamp(1.75rem, 3.8vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 22ch;
}
.claim--center { max-width: none; text-align: center; margin-left: auto; margin-right: auto; }

/* 04 Demo */
.sec--demo { background: var(--paper-2); }
.demo { background: #fff; border: 1px solid var(--rule); border-top: 2px solid var(--ink); max-width: 860px; }
.demo__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--rule); }
.demo__name { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.demo__name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); box-shadow: inset 0 0 0 1.5px var(--ink); }
.demo__tag { font-size: 0.75rem; font-style: italic; color: var(--ink-2); border: 1px dashed var(--ink-2); padding: 2px 8px; }
.demo__tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px clamp(16px, 2.4vw, 28px) 0; }
.demo__tab {
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: 600 0.9375rem/1 var(--font);
  cursor: pointer;
  border-radius: 999px;
  transition: background-color 200ms var(--ease-out);
}
.demo__tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .demo__tab[aria-selected="false"]:hover { background: var(--highlight); }
}
.demo__panel { padding: clamp(20px, 2.8vw, 32px) clamp(16px, 2.4vw, 28px) clamp(24px, 3vw, 36px); min-height: 300px; }
.demo__who { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.demo__q {
  margin-left: auto;
  max-width: 34em;
  width: fit-content;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  font-weight: 600;
  border-radius: 14px 14px 2px 14px;
}
.demo__q .demo__who { color: #b8bcbd; }
.demo__wait { display: none; align-items: center; gap: 6px; margin-top: 22px; font-size: 0.875rem; color: var(--ink-2); font-style: italic; }
.demo__wait i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); }
.demo__a {
  margin-top: 22px;
  max-width: 38em;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px 14px 14px 2px;
}
.demo__a p:not(.demo__who) { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.5; }
.demo__src { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 4px 10px; background: var(--highlight); font-size: 0.8125rem !important; font-weight: 600; }
.demo__src .ico { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .anim .demo__panel:not(.is-run) .demo__a { opacity: 0; }
  .anim .is-run .demo__q { animation: rise 450ms var(--ease-out) both; }
  .anim .is-run .demo__wait { display: flex; animation: attesa 1000ms linear 200ms both; }
  .anim .is-run .demo__wait i { animation: punto 0.9s ease-in-out infinite; }
  .anim .is-run .demo__wait i:nth-child(2) { animation-delay: 0.15s; }
  .anim .is-run .demo__wait i:nth-child(3) { animation-delay: 0.3s; }
  .anim .is-run .demo__a { animation: rise 550ms var(--ease-out) 1150ms both; }
}
@keyframes attesa { 0% { opacity: 0; max-height: 40px; } 10%, 80% { opacity: 1; max-height: 40px; } 100% { opacity: 0; max-height: 0; margin-top: 0; } }
@keyframes punto { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.demo__after { margin-top: 32px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.demo__privacy { margin-top: 20px; max-width: 44em; font-size: 0.9375rem; color: var(--ink-2); font-style: italic; }

/* 05 Strumenti */
.hub { position: relative; }
.hub__core {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 28px;
  padding: 10px 18px;
  background: var(--highlight);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
}
.hub__core .ico { width: 20px; height: 20px; }
.hub__note { margin-top: 18px; font-size: 0.9375rem; font-style: italic; color: var(--ink-2); }
.tool__sketch--learn span { position: relative; padding-left: 18px; }
.tool__sketch--learn span::before { content: ""; position: absolute; left: 0; top: 0.25em; width: 10px; height: 10px; border: 1.5px solid var(--ink-2); border-radius: 2px; }
.tool__sketch--learn span.ok::before { background: var(--highlight); border-color: var(--ink); }

/* 06 Chi sono */
.about__text h2 { margin-bottom: 24px; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.05; }
.about__text h2 .l { display: block; }
.about__text p { max-width: 36em; }
.proof { margin-top: 36px; border-top: 2px solid var(--ink); }
.proof__k { margin-top: 14px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.proof ul { margin-top: 6px; }
.proof li { display: grid; grid-template-columns: 9em 1fr; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.proof a { font-weight: 750; font-size: 1.1875rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.proof span { color: var(--ink-2); font-size: 1rem; }

/* 07 Contatti */
.contact h2 { font-size: clamp(2.1rem, 4.8vw, 4rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; max-width: 20ch; }
.contact__sub { margin-top: 18px; font-size: clamp(1.375rem, 2.4vw, 2rem); font-weight: 700; color: var(--highlight); letter-spacing: -0.02em; }
.contact__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px var(--cg);
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--on-petrol) 30%, transparent);
  align-items: end;
}
.contact__lead { grid-column: 1 / 7; color: var(--on-petrol-2); font-size: clamp(1.125rem, 1.5vw, 1.3125rem); max-width: 30em; margin: 0; }
.contact__act { grid-column: 8 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.contact__act .contact__mail { margin-top: 0; }

/* Responsive */
@media (max-width: 1080px) {
  .memory__props { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .wrap .hero__body > *, .wrap .absence > *, .wrap .memory > *, .wrap .contact__row > * { grid-column: 1 / -1; }
  .scenes { grid-template-columns: 1fr; }
  .scene { padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
  .claim--center { text-align: left; }
  .hub__core { margin-left: 0; }
}
@media (max-width: 560px) {
  .sign__role { font-size: 0.6875rem; }
  .memory__props { grid-template-columns: 1fr; }
  .proof li { grid-template-columns: 1fr; }
  .demo__panel { min-height: 340px; }
  .hero__title { font-size: clamp(2.3rem, 10.5vw, 3rem); }
}

.absence__p p + p { margin-top: 12px; color: var(--ink-2); }
.memory__keep { margin-top: clamp(40px, 5vw, 64px); font-size: clamp(1.25rem, 2.1vw, 1.75rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; max-width: 30em; }
.memory__keep + .claim { margin-top: clamp(48px, 6vw, 80px); }
.hub__start { margin-top: clamp(36px, 4.5vw, 56px); font-size: clamp(1.125rem, 1.7vw, 1.375rem); font-weight: 600; max-width: 36em; }

.memory__fix {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px var(--cg);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  align-items: baseline;
}
.memory__fix h3 { grid-column: 1 / 6; font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; }
.memory__fix p { grid-column: 7 / -1; max-width: 34em; }
@media (max-width: 820px) { .wrap .memory__fix > * { grid-column: 1 / -1; } }

/* Demo: due gruppi di scenari, bozze di lavoro */
.demo__group { flex-basis: 100%; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }
.demo__group:first-child { margin-top: 0; }
.demo__q--in { margin-left: 0; background: var(--paper-2); color: var(--ink); border-radius: 14px 14px 14px 2px; font-weight: 500; }
.demo__q--in .demo__who { color: var(--ink-2); }
.demo__note { margin-top: 12px; font-size: 0.9375rem !important; color: var(--ink-2); font-style: italic; }
.demo__check { margin-top: 10px; font-size: 0.9375rem !important; font-weight: 650; }
.demo__quote { width: 100%; border-collapse: collapse; font-size: 1rem; margin-top: 4px; }
.demo__quote th { text-align: left; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; padding: 0 0 6px; border-bottom: 1.5px solid var(--ink); }
.demo__quote td { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.demo__quote th:not(:first-child), .demo__quote td:not(:first-child) { text-align: right; padding-left: 12px; white-space: nowrap; }
.demo__tot td { font-weight: 750; border-bottom: 0; }
.demo__panel { min-height: 380px; }
.demo__match { padding: 10px 12px; background: #fff; border: 1px dashed var(--ink-2); font-size: 0.9375rem !important; margin-bottom: 12px; }

/* Collegamento alla Formazione AI */
.top__link { font-size: 0.9375rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.top__link:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.fm-band { border-top: 1px solid var(--rule); }
.fm-band__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px var(--cg); align-items: baseline; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.fm-band__k { grid-column: 1 / 4; display: inline-block; justify-self: start; padding: 2px 8px; background: var(--highlight); font-weight: 700; font-size: 0.9375rem; }
.fm-band__t { grid-column: 4 / 10; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); max-width: 34em; }
.fm-band .link-arrow { grid-column: 10 / -1; justify-self: end; }
@media (max-width: 820px) {
  .wrap.fm-band__in > * { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) { .top__link { display: none; } }

/* Voce di menu verso la pagina Formazione: icona lime e freccia di uscita */
.mnav__ext .mnav__ico { background: var(--highlight); }
.mnav__ext .mnav__t { background: linear-gradient(var(--highlight), var(--highlight)) left 88% / 100% 0.32em no-repeat; padding: 0 0.08em; }
.mnav__go { flex: none; width: 30px; height: 30px; margin-left: -8px; stroke-width: 2.4; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .mnav__ext:hover .mnav__go { transform: translate(3px, -3px); }
}

.memory__lead mark { background: linear-gradient(var(--highlight), var(--highlight)) left 0 bottom 0.08em / 100% 0.5em no-repeat; color: var(--ink); padding: 0 0.12em; font-weight: 650; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.anim .memory__lead mark { transition: background-size 800ms var(--ease-out) 400ms; }
.anim .memory > .memory__lead:not(.is-in) mark { background-size: 0% 0.5em; }

/* gli evidenziatori a metà si stendono quando la frase entra nello schermo */
.anim .claim mark, .anim .hero__lead mark { transition: background-size 800ms var(--ease-out) 400ms; }
.anim .claim:not(.is-in) mark { background-size: 0% 0.5em; }
@media (prefers-reduced-motion: no-preference) {
  .hero__lead mark { animation: stendi 900ms var(--ease-out) 600ms both; }
}
@keyframes stendi { from { background-size: 0% 0.5em; } to { background-size: 100% 0.5em; } }

/* Pagina Formazione AI: solo ciò che manca al sistema di style.css */

.fm-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.fm-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.fm-link:hover { text-decoration-thickness: 2px; }
.fm-sign { margin-top: 28px; font-size: 0.9375rem; font-style: italic; color: var(--ink-2); }
.fm-node { font-size: 19px !important; }

/* Due percorsi */
.corsi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cg); align-items: stretch; }
.corso {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
}
.corso__k { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.corso h3 { margin-top: 8px; font-size: clamp(1.625rem, 2.8vw, 2.25rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; }
.corso__for { margin-top: 12px; color: var(--ink-2); }
.corso__list { margin-top: 22px; border-top: 1px solid var(--ink); }
.corso__list li { position: relative; padding: 11px 0 11px 24px; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.corso__list li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 10px; height: 10px; border-radius: 50%; background: var(--highlight); box-shadow: inset 0 0 0 1.5px var(--ink); }
.corso__plus { margin-top: 20px; padding: 14px 16px; background: var(--paper); border: 1px dashed var(--ink-2); font-size: 0.9375rem; }
.corso__cta { margin-top: auto; align-self: flex-start; }
.corso__plus + .corso__cta { margin-top: 28px; }

.fm-note { font-style: italic; color: var(--ink-2); }

/* Credenziali in "Chi ti accompagna" */
.fm-cv { margin: 28px 0; border-top: 1px solid var(--ink); }
.fm-cv > div { display: grid; grid-template-columns: 11em 1fr; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.fm-cv dt { font-weight: 700; }
.fm-cv dd { color: var(--ink-2); }

@media (max-width: 820px) {
  .corsi { grid-template-columns: 1fr; }
  .fm-cv > div { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .corso__cta { width: 100%; white-space: normal; text-align: center; justify-content: center; }
}

/* Scarica il curriculum */
.fm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 20px; }
.fm-file { font-size: 0.875rem; color: var(--ink-2); }
@media (max-width: 560px) { .fm-actions .btn { width: 100%; justify-content: center; } }

/* ======================================================================
   Sito multipagina (riposizionamento): petrolio come colore delle azioni
   ====================================================================== */
:root { --petrol: #0e4b5a; --petrol-2: #0a3a46; --on-petrol-2: #b9cdd1; }

/* Header: navigazione in linea su desktop, menu a tenda sotto i 1080px */
.tnav ul { display: flex; gap: 26px; }
.tnav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.tnav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.tnav a[aria-current="page"] { background: linear-gradient(var(--highlight), var(--highlight)) left 0 bottom 12px / 100% 0.4em no-repeat; }
.top__cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; background: var(--petrol); color: #fff; font-size: 0.9375rem; font-weight: 650; text-decoration: none; border-radius: 999px; white-space: nowrap; }
.top__cta:hover { background: var(--petrol-2); }
@media (min-width: 1081px) { .mbtn { display: none; } }
@media (max-width: 1080px) { .tnav { display: none; } }
@media (max-width: 480px) { .top__cta { display: none; } }

.mnav a[aria-current="page"] .mnav__ico { background: var(--highlight); }

/* Home: testo e ritratto */
.hero--home .hero__text { grid-column: 1 / 8; }
.hero__me { grid-column: 9 / -1; margin: 0; justify-self: end; width: 100%; max-width: 400px; }
.hero__me img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; }
.hero__me figcaption { margin-top: 12px; text-align: center; font-size: 0.875rem; color: var(--ink-2); }
.hero--home .hero__title { font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 1; }
.hero__sub { margin-top: clamp(24px, 3vw, 36px); font-size: clamp(1.1875rem, 1.9vw, 1.5rem); font-weight: 650; line-height: 1.35; letter-spacing: -0.015em; max-width: 26em; }
.hero--home .hero__lead { margin-top: 14px; color: var(--ink-2); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); max-width: 34em; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 0.9375rem; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--highlight); box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (max-width: 820px) {
  .wrap.hero__grid > * { grid-column: 1 / -1; }
  .hero__me { justify-self: start; max-width: 200px; order: -1; }
  .hero__me figcaption { display: none; }
}

/* Pagine interne: titolo e attacco */
.hero--page { padding-bottom: clamp(56px, 8vw, 112px); }
.page-title { font-size: clamp(2.4rem, 5.6vw, 4.75rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; max-width: 20ch; }
.page-title span { display: block; }
.page-title .l--soft { color: var(--ink-2); }
.page-title--s { font-size: clamp(2.2rem, 4.4vw, 3.5rem); margin-bottom: 28px; }
.page-lead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--cg); margin-top: clamp(32px, 5vw, 64px); }
.page-lead > * { grid-column: 6 / -1; max-width: 36em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.page-lead p + p { margin-top: 16px; }
.page-lead .hero__actions { margin-top: 28px; }
@media (max-width: 820px) { .wrap .page-lead > * { grid-column: 1 / -1; } }

/* Due paragrafi affiancati */
.two-p { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px var(--cg); margin-top: clamp(32px, 4vw, 48px); }
.two-p p { grid-column: span 5; color: var(--ink-2); max-width: 32em; }
.two-p p + p { grid-column: 7 / span 5; }
@media (max-width: 820px) { .wrap .two-p p { grid-column: 1 / -1; } }

/* Metodo a tre fasi */
.route--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route--3::before { right: calc((100% - 2 * var(--rgap)) / 3 - 22px); }
@media (max-width: 820px) { .route--3 { grid-template-columns: 1fr; } .route--3::before { right: auto; } }
.sec__more { margin-top: clamp(32px, 4vw, 48px); }

/* Ambiti */
.areas2 { border-top: 2px solid var(--ink); }
.area2 a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px var(--cg); align-items: baseline; padding: clamp(18px, 2.4vw, 28px) 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.area2__t { grid-column: 1 / 6; font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; }
.area2__d { grid-column: 7 / 12; color: var(--ink-2); }
.area2__go { grid-column: 12; justify-self: end; align-self: center; }
.area2__go .ico { width: 26px; height: 26px; transition: transform 250ms var(--ease-out); }
.area2--main .area2__t { background: linear-gradient(var(--highlight), var(--highlight)) left 0 bottom 0.08em / 100% 0.45em no-repeat; justify-self: start; padding: 0 0.1em; }
@media (hover: hover) and (pointer: fine) {
  .area2 a:hover .area2__t { color: var(--petrol); }
  .area2 a:hover .area2__go .ico { transform: translate(3px, -3px); }
}
@media (max-width: 820px) {
  .area2 a { grid-template-columns: 1fr 32px; }
  .area2__t { grid-column: 1; }
  .area2__d { grid-column: 1; grid-row: 2; }
  .area2__go { grid-column: 2; grid-row: 1 / 3; }
}
.indep { margin-top: clamp(28px, 3.5vw, 44px); padding-left: 16px; border-left: 3px solid var(--highlight); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); font-weight: 600; max-width: 40em; }
.indep .link-arrow { margin-left: 6px; }

/* Anteprima Second Brain in home */
.sbt { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--cg); align-items: center; }
.sbt__text { grid-column: 1 / 7; }
.sbt__text p { margin: 24px 0 32px; color: var(--ink-2); max-width: 32em; }
.sbt__demo { grid-column: 8 / -1; display: flex; flex-direction: column; gap: 14px; }
.big--m { font-size: clamp(2rem, 4vw, 3.25rem); max-width: 16ch; }
.sbt__demo .demo__a { opacity: 1; }
@media (max-width: 820px) { .wrap.sbt > * { grid-column: 1 / -1; } }

/* Consulenza: elenco attività */
.checks2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--cg); border-top: 2px solid var(--ink); counter-reset: att; }
.checks2 li { counter-increment: att; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); font-weight: 600; line-height: 1.35; }
.checks2 li::before { content: counter(att, decimal-leading-zero); display: block; margin-bottom: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .checks2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .checks2 { grid-template-columns: 1fr; } }
.legend--top { margin-top: clamp(40px, 5vw, 64px); }

/* Second Brain: stato del progetto */
.stato { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cg); }
.stato__col { border-top: 2px solid var(--ink); padding-top: 16px; }
.stato__k { display: inline-block; margin-bottom: 14px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.stato__k--ok { background: var(--highlight); padding: 2px 8px; }
.stato__k--dev { box-shadow: inset 0 0 0 1.5px var(--ink); padding: 2px 8px; }
.stato li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
@media (max-width: 820px) { .stato { grid-template-columns: 1fr; gap: 40px; } }

/* Progetti (pagina non pubblicata) */
.casi { display: flex; flex-direction: column; }
.caso { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px var(--cg); padding: clamp(28px, 4vw, 48px) 0; border-top: 2px solid var(--ink); }
.caso__id { grid-column: 1 / 5; }
.caso__area { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.caso h2 { margin: 6px 0 10px; font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.03em; }
.caso__stato { display: inline-block; padding: 2px 8px; font-size: 0.8125rem; font-weight: 700; }
.caso__stato--ok { background: var(--highlight); }
.caso__stato--dev { box-shadow: inset 0 0 0 1.5px var(--ink); }
.caso__id .link-arrow { display: block; }
.caso__body { grid-column: 6 / -1; display: grid; gap: 18px; }
.caso__body dt { font-weight: 700; }
.caso__body dd { color: var(--ink-2); max-width: 38em; }
.altri { padding-top: 28px; border-top: 2px solid var(--ink); }
.altri__k { font-weight: 700; margin-bottom: 8px; }
.altri li { display: grid; grid-template-columns: 12em 1fr; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.altri a { font-weight: 650; }
.altri span { color: var(--ink-2); }
@media (max-width: 820px) { .wrap .caso > * { grid-column: 1 / -1; } .altri li { grid-template-columns: 1fr; } }

/* Chi sono */
.about__photo--hero { max-width: 320px; }
.about__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 32px !important; }
.claim { font-size: clamp(1.625rem, 3.2vw, 2.625rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.15; max-width: 28ch; }

/* Contatti e modulo */
.contact__grid { align-items: start; }
.contact__h { font-size: clamp(2.4rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -0.035em; font-weight: 800; }
.contact__grid > div { grid-column: 1 / 6; }
.cform { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.cform__row { display: flex; flex-direction: column; gap: 6px; }
.cform__row--full, .cform__privacy, .cform__act, .cform__esito { grid-column: 1 / -1; }
.cform label { font-size: 0.875rem; font-weight: 600; color: var(--on-petrol); }
.cform__opt { font-weight: 400; color: var(--on-petrol-2); }
.cform input, .cform textarea { width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid transparent; border-radius: 4px; }
.cform textarea { resize: vertical; min-height: 140px; }
.cform input:focus-visible, .cform textarea:focus-visible { outline: 3px solid var(--highlight); outline-offset: 1px; }
.cform [aria-invalid="true"] { border-color: var(--highlight); box-shadow: 0 0 0 2px var(--highlight); }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__privacy { font-size: 0.8125rem; color: var(--on-petrol-2); }
.cform__esito { min-height: 1.6em; font-weight: 600; }
.cform__esito.is-ok { color: var(--highlight); }
.cform button[disabled] { opacity: 0.6; cursor: progress; }
.contact__li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-petrol); font-weight: 600; }
.contact__li .ico { width: 20px; height: 20px; }
.contact__card { margin-top: 8px; }
@media (max-width: 820px) { .wrap.contact__grid > * { grid-column: 1 / -1; } }
@media (max-width: 560px) { .cform { grid-template-columns: 1fr; } }

/* Footer: elenco pagine */
.foot__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.hero--form .hero__lead { margin-top: clamp(24px, 3vw, 36px); }
.contact__grid .contact__lead { margin-top: 28px; }
.wrap > .claim:first-child { margin-top: 0; }

/* ======================================================================
   Animazioni: una volta all'ingresso, ferme con movimento ridotto
   ====================================================================== */
@keyframes apri-cerchio { from { clip-path: circle(8% at 50% 50%); } to { clip-path: circle(50% at 50% 50%); } }
@keyframes stendi-h { from { background-size: 0% 0.45em; } to { background-size: 100% 0.45em; } }
@keyframes puntini { 0%, 80%, 100% { opacity: 0.25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes via { to { opacity: 0; height: 0; margin: -14px 0 0; padding: 0; border-width: 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* hero delle pagine: entra al caricamento, senza aspettare lo scroll */
  .fm-eyebrow, .page-title span, .page-lead > *, .hero__sub, .trust li { animation: rise 700ms var(--ease-out) both; }
  .page-title span:nth-child(1) { animation-delay: 80ms; }
  .page-title span:nth-child(2) { animation-delay: 200ms; }
  .hero__sub { animation-delay: 300ms; }
  .page-lead > :nth-child(1) { animation-delay: 360ms; }
  .page-lead > :nth-child(2) { animation-delay: 440ms; }
  .page-lead > :nth-child(3) { animation-delay: 520ms; }
  .trust li { animation-delay: 700ms; }
  .trust li:nth-child(2) { animation-delay: 780ms; }
  .trust li:nth-child(3) { animation-delay: 860ms; }
  .trust li::before { animation: dot 400ms var(--ease-out) both; animation-delay: inherit; }
  /* ritratto in home: il retino si apre dal centro */
  .hero__me img { animation: apri-cerchio 1100ms var(--ease-out) 250ms both; }
  .hero__me figcaption { animation: rise 600ms var(--ease-out) 900ms both; }
}

/* metodo: ogni tappa si accende quando entra */
.anim .route__stop.rv:not(.is-in) .route__n { opacity: 0; transform: scale(0.6); }
.anim .route__stop.is-in .route__n { animation: dot 450ms var(--ease-out) both, lit 400ms ease 250ms both; }

/* ambiti: l'evidenziatore della voce principale si stende */
.anim .area2--main:not(.is-in) .area2__t { background-size: 0% 0.45em; }
.anim .area2--main.is-in .area2__t { animation: stendi-h 800ms var(--ease-out) 300ms both; }

/* anteprima Second Brain: domanda, l'assistente "pensa", poi la risposta con la fonte */
.demo__think { display: flex; gap: 6px; align-self: flex-start; padding: 14px 18px; background: #fff; border: 1px solid var(--rule); border-radius: 14px; }
.demo__think i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); }
.demo__think { display: none; }
.anim .sbt__demo .demo__think { display: flex; }
.anim .sbt__demo:not(.is-in) > * { opacity: 0; }
.anim .sbt__demo.is-in .demo__q { animation: rise 450ms var(--ease-out) 100ms both; }
.anim .sbt__demo.is-in .demo__think { animation: rise 300ms var(--ease-out) 650ms both, via 1ms linear 1900ms forwards; }
.anim .sbt__demo.is-in .demo__think i { animation: puntini 900ms ease-in-out infinite; }
.anim .sbt__demo.is-in .demo__think i:nth-child(2) { animation-delay: 150ms; }
.anim .sbt__demo.is-in .demo__think i:nth-child(3) { animation-delay: 300ms; }
.anim .sbt__demo.is-in .demo__a { animation: rise 550ms var(--ease-out) 1950ms both; }
.anim .sbt__demo.is-in .demo__src { animation: lit 400ms ease 2500ms both; }
.anim .sbt__demo.rv { opacity: 1; transform: none; }

/* stato del progetto: le voci scorrono una dopo l'altra */
.anim .stato__col:not(.is-in) li { opacity: 0; }
.anim .stato__col.is-in li { animation: rise 450ms var(--ease-out) both; }
.anim .stato__col.is-in li:nth-child(2) { animation-delay: 90ms; }
.anim .stato__col.is-in li:nth-child(3) { animation-delay: 180ms; }
.anim .stato__col.is-in li:nth-child(4) { animation-delay: 270ms; }
.anim .stato__col.is-in li:nth-child(5) { animation-delay: 360ms; }

/* modulo: l'esito compare morbido */
.cform__esito:not(:empty) { animation: rise 350ms var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  .cform__esito:not(:empty) { animation: none; }
}
