/**
 * Crescita Studio: homepage v3 (scroll-craft redesign, 2026-10-24). Italian home only.
 * Loaded after the scroll engine's stylesheet (assets/scrollcraft/scrollcraft.css,
 * unedited), which this file themes through its --sc-* tokens. Brief and score:
 * scrollcraft/builds/crescita-redesign/BRIEF.md.
 *
 * Two states run through the whole patient path: data-mode="off" (marketing in
 * separate pieces) and data-mode="on" (one system). Every panel carries both and
 * the switch shows one. With no script the page stays "off" and fully readable,
 * the switch hidden, because it needs home-v3.js to do anything.
 */

/* ── Engine tokens, set to the Crescita palette ──────────────────── */
body.crescita-page-hx {
  --sc-canvas: #fff;
  --sc-surface: #fff;
  --sc-ink: var(--crescita-midnight);
  --sc-ink-soft: var(--color-text-secondary);
  --sc-accent: var(--crescita-ocean-bright);
  --sc-accent-ink: #fff;
  --sc-font-display: var(--font-primary);
  --sc-font-text: var(--font-primary);
  --sc-font-mono: var(--font-secondary);
  font-family: var(--font-primary);
}

.hx {
  --hx-head: 72px;          /* the sticky header, measured by home-v3.js */
  --hx-rail: 64px;          /* the path rail */
  --hx-gutter: clamp(1.25rem, 5vw, 4rem);
  --hx-max: 76rem;
  --hx-line: rgba(15, 23, 34, 0.1);
  --hx-shadow: 0 1px 2px rgba(15, 23, 34, 0.06), 0 18px 40px -18px rgba(15, 23, 34, 0.22);
  --hx-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --hx-h2: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  color: var(--crescita-midnight);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: #fff;
}
.hx :where(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; padding: 0; }
.hx :where(ul, ol) { list-style: none; }
.hx img { display: block; max-width: 100%; height: auto; }

.hx-wrap { width: 100%; max-width: var(--hx-max); margin-inline: auto; padding-inline: var(--hx-gutter); }

.hx-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-secondary);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--crescita-ocean);
  padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  border: 1px solid rgba(30, 58, 95, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}
.hx-eyebrow::before {
  content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%;
  background: var(--crescita-ocean-bright);
  box-shadow: 0 0 0 3px rgba(46, 90, 143, 0.16);
}

.hx-h2 {
  font-size: var(--hx-h2);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--crescita-midnight);
}
.hx-h3 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 600; line-height: 1.15; letter-spacing: -0.02em;
  text-wrap: balance;
}
.hx-line { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--color-text-secondary); max-width: 40ch; text-wrap: pretty; }
.hx-fine { font-family: var(--font-secondary); font-size: 0.8125rem; color: var(--color-text-secondary); }

.hx-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ── The two states ─────────────────────────────────────────────── */
.hx[data-mode="off"] .hx-state--on,
.hx[data-mode="on"] .hx-state--off { display: none !important; }
.hx .hx-state--on, .hx .hx-state--off { animation: hx-swap 420ms var(--hx-ease); }
@keyframes hx-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── 1 · Hero: four planes, copy at 1x ─────────────────────────── */
.hx-hero {
  position: relative;
  min-height: calc(100svh - var(--hx-head));
  display: grid;
  align-items: center;
  overflow: clip;
  background: #fff;
  isolation: isolate;
}
.hx-hero__scene { position: absolute; inset: -60px 0; z-index: 0; pointer-events: none; }
.hx-hero__plate {
  position: absolute; inset: 0;
  background: var(--hx-plate) 0% 100% / cover no-repeat;
}
/* The plate's left half is open wall: a soft wash makes it the copy's page
   without flattening the room on the right. */
.hx-hero__bloom {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(251, 250, 247, 0.94) 0%, rgba(251, 250, 247, 0.82) 30%, rgba(251, 250, 247, 0.2) 52%, rgba(251, 250, 247, 0) 64%);
}
/* Above the figure and the floor fade: a chip is never tucked behind either. */
.hx-hero__panels { position: absolute; inset: 0; z-index: 5; }
.hx-chip {
  position: absolute;
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem; line-height: 1.35;
  color: var(--crescita-midnight);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 34, 0.08), 0 20px 44px -20px rgba(15, 23, 34, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hx-chip small { color: var(--color-text-secondary); font-size: 0.8125rem; }
.hx-chip__g {
  display: inline-grid; place-items: center;
  width: 1.75rem; height: 1.75rem; flex: none;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 34, 0.08);
}
.hx-chip__dot {
  width: 0.625rem; height: 0.625rem; flex: none; border-radius: 50%;
  background: #2f8a5b; box-shadow: 0 0 0 4px rgba(47, 138, 91, 0.16);
}
.hx-chip--result { flex-direction: column; align-items: flex-start; gap: 0.125rem; }
.hx-chip--result span { color: var(--color-text-secondary); font-size: 0.8125rem; }

.hx-hero__patient {
  position: absolute; z-index: 2;
  right: 3%; bottom: 3%;
  height: min(80%, 48rem);
  aspect-ratio: 2 / 3;
}
.hx-hero__patient img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
/* The cutout has no floor of its own: this is its contact with the terrazzo. */
.hx-hero__shadow {
  position: absolute; z-index: 0;
  left: 12%; right: 8%; bottom: 0.5%; height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 32, 22, 0.42), rgba(40, 32, 22, 0.12) 62%, transparent);
  filter: blur(6px);
}
.hx-hero__floor {
  position: absolute; inset: auto 0 0 0; height: 18%; z-index: 3;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
}

.hx-hero__copy {
  position: relative; z-index: 4;
  width: 100%; max-width: var(--hx-max);
  margin-inline: auto;
  padding: clamp(3rem, 8vh, 6rem) var(--hx-gutter) clamp(4rem, 12vh, 8rem);
  display: grid; gap: 1.5rem; justify-items: start;
}
.hx-hero__title {
  max-width: 15ch;
  font-size: clamp(2.5rem, 1.7rem + 2.6vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--crescita-midnight);
}
.hx-hero__lede { max-width: 34ch; font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.5; color: rgba(15, 23, 34, 0.76); text-wrap: pretty; }
.hx-note { font-family: var(--font-secondary); font-size: 0.875rem; color: var(--color-text-secondary); max-width: 44ch; }
/* The second hero CTA: a solid white pill with a Midnight rim, so it reads as a
   button on the pale plate rather than an outline that disappears into it. */
.hx-hero .hx-btn-solid { background: #fff; border: 1.5px solid var(--crescita-midnight); font-weight: 600; box-shadow: 0 10px 24px -16px rgba(15, 23, 34, 0.45); }
/* The hero shows only the outcome (founder, 2026-10-26): the feed runs whatever the switch below says. */
.hx-feed { position: absolute; inset: 0; }
/* Three slots spread over the open wall, window and floor of his office, never on
   him or his desk (founder, 2026-10-26). home-v3.js keeps at most three cards in, swapping one
   at a time: the oldest fades out, then the next fades into its slot. */
.hx-feed__chip { opacity: 0; transform: translateY(10px); transition: opacity 900ms var(--hx-ease), transform 1100ms var(--hx-ease); }
.hx-feed__chip:not([data-slot]) { visibility: hidden; }
.hx-feed__chip.is-in { opacity: 1; transform: none; }
.hx-feed__chip[data-slot="0"] { top: 10%; left: 49%; }
.hx-feed__chip[data-slot="1"] { top: 84%; left: 79%; }
.hx-feed__chip[data-slot="2"] { top: 82%; left: 43%; }
.hx-chip__dot--new { background: var(--crescita-ocean-bright); box-shadow: 0 0 0 4px rgba(46, 90, 143, 0.16); }
.hx-chip__dot--sent { background: #c8902e; box-shadow: 0 0 0 4px rgba(200, 144, 46, 0.18); }

/* ── The patient path ───────────────────────────────────────────── */
.hx-path { position: relative; }

.hx-rail {
  position: sticky; top: var(--hx-head); z-index: 30;
  height: var(--hx-rail);
  display: flex; align-items: center; gap: 1.5rem;
  padding-inline: var(--hx-gutter);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hx-line);
}
.hx-rail__stages { position: relative; display: flex; gap: 0.25rem; flex: 1; min-width: 0; counter-reset: none; }
.hx-rail__stages a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(15, 23, 34, 0.56);
  text-decoration: none;
  border-radius: 999px;
  transition: color 200ms ease, background-color 200ms ease;
}
.hx-rail__stages a::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: 0.7;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.hx-rail__stages a:hover { color: var(--crescita-midnight); background: rgba(15, 23, 34, 0.04); }
.hx-rail__stages a.is-past { color: rgba(15, 23, 34, 0.76); }
.hx-rail__stages a.is-past::before { background: currentColor; }
.hx-rail__stages a[aria-current="step"] { color: var(--crescita-midnight); background: rgba(46, 90, 143, 0.09); }
.hx-rail__stages a[aria-current="step"]::before { background: var(--crescita-ocean-bright); border-color: var(--crescita-ocean-bright); opacity: 1; }
/* In the separated mode the path breaks at the website: the rail says so too. */
.hx[data-mode="off"] .hx-rail__stages a.is-lost { color: rgba(15, 23, 34, 0.38); text-decoration: line-through; text-decoration-thickness: 1px; }
.hx-rail__marker { display: none; }

.hx-switch {
  display: none;               /* home-v3.js reveals it: without the script it does nothing */
  align-items: center; gap: 0.625rem;
  flex: none;
  padding: 0.375rem 0.5rem;
  font: inherit; font-size: 0.8125rem; font-weight: 500;
  color: var(--color-text-secondary);
  background: none; border: 0; border-radius: 999px;
  cursor: pointer;
}
/* GeneratePress paints every <button>; this one is a control on a light bar. */
.hx .hx-switch, .hx .hx-switch:hover, .hx .hx-switch:focus { background: transparent; color: var(--color-text-secondary); box-shadow: none; }
.hx.is-live .hx-switch { display: inline-flex; }
.hx-switch__track {
  position: relative; width: 2.75rem; height: 1.5rem; flex: none;
  border-radius: 999px;
  background: rgba(15, 23, 34, 0.16);
  transition: background-color 260ms var(--hx-ease);
}
.hx-switch__track span {
  position: absolute; top: 0.1875rem; left: 0.1875rem;
  width: 1.125rem; height: 1.125rem; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 34, 0.3);
  transition: transform 300ms var(--hx-ease);
}
.hx-switch[aria-checked="true"] .hx-switch__track { background: var(--crescita-ocean-bright); }
.hx-switch[aria-checked="true"] .hx-switch__track span { transform: translateX(1.25rem); }
.hx-switch[aria-checked="false"] .hx-switch__off,
.hx-switch[aria-checked="true"] .hx-switch__on { font-weight: 700; }
.hx-switch:focus-visible { outline: 2px solid var(--crescita-ocean-bright); outline-offset: 2px; }
.hx:not(.is-touched)[data-mode="off"] .hx-switch__track { animation: hx-nudge 3.6s ease-in-out 1.2s infinite; }
@keyframes hx-nudge {
  0%, 70%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(46, 90, 143, 0); }
  74% { transform: translateX(-3px) rotate(-2deg); box-shadow: 0 0 0 4px rgba(46, 90, 143, 0.28); }
  78% { transform: translateX(3px) rotate(2deg); }
  82% { transform: translateX(-2px); box-shadow: 0 0 0 8px rgba(46, 90, 143, 0.12); }
  86% { transform: translateX(1px); }
  92% { transform: none; box-shadow: 0 0 0 12px rgba(46, 90, 143, 0); }
}

/* 2 · intro */
.hx-intro { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(2.5rem, 6vw, 4rem); text-align: center; }
.hx-intro .hx-wrap { display: grid; justify-items: center; gap: 1rem; }
.hx-intro .hx-h2 { max-width: 18ch; }
.hx-intro .hx-line { max-width: 46ch; }

/* Stages */
.hx-stage { scroll-margin-top: calc(var(--hx-head) + var(--hx-rail)); }
.hx-stage:not(.hx-stage--pin):not(.hx-peak) { padding-block: clamp(4rem, 9vw, 7rem); }
.hx-ground--white { background: #fff; }
.hx-ground--sand { background: #fff; border-top: 1px solid var(--hx-line); }
.hx-ground--stone { background: #fff; border-top: 1px solid var(--hx-line); }

.hx-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.hx-split--rev .hx-copy { order: 2; }
.hx-copy { display: grid; gap: 1rem; align-content: start; max-width: 32rem; }
.hx-step {
  font-family: var(--font-secondary);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--crescita-ocean-bright);
}
.hx-state { font-size: 1.125rem; line-height: 1.55; color: rgba(15, 23, 34, 0.74); max-width: 34ch; }
.hx-state.hx-state--off { color: rgba(15, 23, 34, 0.62); }
.hx-get {
  margin-top: 0.5rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--hx-line);
  font-size: 0.9375rem; color: var(--color-text-secondary);
  max-width: 36ch;
}
.hx-get b { color: var(--crescita-midnight); font-weight: 600; }
.hx-get--off { color: #7d4a33; }
.hx-get--off b { color: #9a5a3c; }
.hx-get--on { color: rgba(15, 23, 34, 0.82); }
.hx-get--on b { color: #2b7350; }

/* Panels: real markup, one imaginary practice */
.hx-panel {
  position: relative;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: 20px;
  box-shadow: var(--hx-shadow);
}
.hx-ground--white .hx-panel { background: #fcfbf9; }
.hx-panel figcaption {
  margin-top: 1.25rem;
  font-family: var(--font-secondary); font-size: 0.75rem;
  color: rgba(15, 23, 34, 0.66); /* 0.5 measured 3.4:1 on white, under AA for 12px */
}
.hx-miss { color: #9a5a3c; }
.hx[data-mode="on"] .hx-panel { border-color: rgba(46, 90, 143, 0.22); }

.hx-serp__bar {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hx-line); border-radius: 999px;
  font-size: 0.9375rem;
}
.hx-serp__list { display: grid; gap: 0.5rem; margin-top: 1rem !important; }
.hx-serp__item {
  display: grid; gap: 0.125rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem; color: var(--color-text-secondary);
}
.hx-serp__item b { color: var(--crescita-midnight); font-size: 0.9375rem; font-weight: 600; }
.hx-serp__item:not(.hx-serp__item--us) { opacity: 0.6; }
.hx-serp__item--us { background: var(--crescita-sand); }
.hx[data-mode="on"] .hx-serp__item--us { background: rgba(46, 90, 143, 0.08); box-shadow: inset 3px 0 0 var(--crescita-ocean-bright); }

.hx-profile__photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0.375rem; height: 6.5rem; margin-bottom: 1rem; }
.hx-profile__photos img { width: 100%; height: 6.5rem; min-height: 0; object-fit: cover; border-radius: 10px; }
/* Without the system: one dull photo, and nothing else to look at. */
.hx-profile__photos--poor span { border-radius: 10px; background: repeating-linear-gradient(135deg, #f3efe9 0 6px, #ece6de 6px 12px); }
.hx-profile__photos--poor img { filter: saturate(0.85); }
.hx-profile__name { display: block; font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.75rem; }
.hx-profile dl { display: grid; grid-template-columns: auto 1fr; gap: 0.625rem 1rem; font-size: 0.875rem; }
.hx-profile dt { color: var(--color-text-secondary); }
.hx-profile dd { font-weight: 500; }

/* 5 · Sito, pinned */
.hx-pinstage {
  display: grid; align-items: center;
  padding-top: calc(var(--hx-head) + var(--hx-rail));
  background: inherit;
}
.hx-stage--pin { background: #fff; }
.hx-stage--pin .hx-pinstage .hx-wrap { padding-block: 2rem; }
.hx-phone {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.5rem; align-items: center;
}
.hx-phone__screen {
  position: relative; overflow: hidden;
  aspect-ratio: 9 / 17;
  border: 8px solid var(--crescita-midnight);
  border-radius: 32px;
  background: #fff;
  container-type: inline-size;
}
.hx-site { position: absolute; inset: 0; display: flex; flex-direction: column; }
.hx-site p { margin: 0; }
/* The poor site: everything a visitor has to fight through */
.hx-site--poor { gap: 3cqw; padding: 6cqw 4cqw; background: #f3efe3; font-family: "Times New Roman", Times, serif; color: #333; }
.hx-site__load { position: absolute; top: 0; left: 0; height: 1.6cqw; width: 30%; background: #b7b7b7; animation: hx-crawl 6s ease-out infinite; }
@keyframes hx-crawl { 0% { width: 4%; } 60% { width: 58%; } 100% { width: 64%; } }
.hx-site__brand { text-align: center; font-weight: 700; font-size: 6.4cqw; letter-spacing: 0.04em; color: #7a1f1f; }
.hx-site__menu { font-size: 3.6cqw; line-height: 1.3; color: #1a3fb3; text-decoration: underline; text-align: center; }
.hx-site__banner { padding: 1.8cqw; text-align: center; font-weight: 700; font-size: 4.4cqw; color: #ffe94d; background: #c41e1e; }
.hx-site__img { height: 26cqw; background: repeating-linear-gradient(45deg, #c9c3b4 0 4cqw, #bdb6a5 4cqw 8cqw); filter: blur(0.3px); }
.hx-site__text { font-size: 4cqw; line-height: 1.3; text-align: justify; color: #555; }
/* The optimised site: one promise, the facts, and the two actions always on screen */
.hx-site--good { gap: 4cqw; padding: 5cqw 5cqw 22cqw; background: #fff; color: var(--crescita-midnight); }
.hx-site__nav { display: flex; justify-content: space-between; align-items: center; font-size: 5.4cqw; }
.hx-site__nav span { padding: 1.4cqw 3.6cqw; border-radius: 999px; font-size: 4.2cqw; font-weight: 600; color: #fff; background: #2f7d6d; }
.hx-site__photo { height: 52cqw; border-radius: 4cqw; background: #e9e2d8 center / cover no-repeat; }
.hx-site__h { font-size: 8.4cqw; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.hx-site__info { font-size: 4.4cqw; color: var(--color-text-secondary); }
.hx-site__cta span { display: inline-block; padding: 3cqw 6cqw; border-radius: 999px; font-size: 4.6cqw; font-weight: 600; color: #fff; background: var(--crescita-midnight); }
.hx-site__bar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; padding: 3.4cqw 4cqw 4.4cqw; background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--hx-line); }
.hx-site__bar span { padding: 3cqw 0; border-radius: 999px; text-align: center; font-size: 4.4cqw; font-weight: 600; color: #fff; background: #2f7d6d; }
.hx-site__bar span + span { background: var(--crescita-midnight); }
.hx-notes { display: grid; gap: 0.625rem; }
.hx-notes li {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem; font-weight: 500;
  border: 1px solid var(--hx-line); border-radius: 12px;
  background: #fff;
}
.hx-notes li::before {
  content: ""; width: 1.25rem; height: 1.25rem; flex: none; border-radius: 50%;
  background: rgba(154, 90, 60, 0.12) center / 0.625rem no-repeat;
  background-image: linear-gradient(45deg, transparent 44%, #9a5a3c 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, #9a5a3c 44% 56%, transparent 56%);
}
.hx[data-mode="on"] .hx-notes li::before {
  background-color: rgba(47, 138, 91, 0.14);
  background-image: none;
  box-shadow: inset 0 0 0 5px rgba(47, 138, 91, 0.14), inset 0 0 0 10px #2f8a5b;
}
.hx-phone figcaption { grid-column: 1 / -1; }

/* 6 · Richiesta */
.hx-thread__log { display: grid; gap: 0.75rem; }
.hx-thread__in, .hx-thread__out { display: grid; gap: 0.25rem; max-width: 88%; margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.hx-thread__in > span, .hx-thread__out > span { padding: 0.75rem 1rem; border-radius: 16px; }
.hx-thread time { font-family: var(--font-secondary); font-size: 0.75rem; color: rgba(15, 23, 34, 0.5); }
.hx-thread__in span { background: var(--crescita-sand); border-bottom-left-radius: 4px; }
.hx-thread__out { justify-self: end; text-align: right; }
.hx-thread__out span { background: var(--crescita-midnight); color: var(--crescita-sand); border-bottom-right-radius: 4px; text-align: left; }
.hx-thread__sys { justify-self: center; margin: 0; font-family: var(--font-secondary); font-size: 0.8125rem; color: #9a5a3c; padding: 0.375rem 0.75rem; border-radius: 999px; background: rgba(154, 90, 60, 0.08); }
.hx-thread__lost { justify-self: center; margin: 0.25rem 0 0; padding: 0.875rem 1.125rem; text-align: center; font-weight: 600; color: #8a4b2f; border: 1px dashed rgba(154, 90, 60, 0.45); border-radius: 14px; background: rgba(154, 90, 60, 0.05); }
.hx-thread__slotbox { position: relative; display: grid; justify-items: end; }
.hx-thread__typing { display: none; position: absolute; top: 0; right: 0; margin: 0; }
.hx-thread__typing span { display: inline-flex; gap: 0.3rem; padding: 0.875rem 1rem; border-radius: 16px; border-bottom-right-radius: 4px; background: var(--crescita-midnight); }
.hx-thread__typing i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: rgba(247, 245, 240, 0.7); animation: hx-type 1s infinite ease-in-out; }
.hx-thread__typing i:nth-child(2) { animation-delay: 0.15s; }
.hx-thread__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hx-type { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
.hx-slots { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.625rem; }
.hx-slots b { padding: 0.375rem 0.625rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; border: 1px solid rgba(247, 245, 240, 0.35); transition: background-color 300ms ease, color 300ms ease; }
.hx-slots b.is-picked { color: var(--crescita-midnight); background: #fff; border-color: #fff; }
/* home-v3.js plays the conversation once it is on screen; until it is armed, everything shows. */
.hx-thread.is-armed [data-at] { opacity: 0; transform: translateY(8px); transition: opacity 360ms var(--hx-ease), transform 360ms var(--hx-ease); }
.hx-thread.is-armed [data-at].is-shown { opacity: 1; transform: none; }
.hx-thread.is-armed .hx-thread__typing.is-shown { display: block; }
.hx-thread.is-armed .hx-thread__typing.is-gone { display: none; }

/* 7 · Segreteria */
.hx-script__off { font-size: 1.25rem; font-style: italic; color: rgba(15, 23, 34, 0.6); padding: 1.5rem 0; }
.hx-script__on { display: grid; gap: 0.5rem; counter-reset: hx-step; }
.hx-script__on li {
  counter-increment: hx-step;
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 12px; background: var(--crescita-sand);
  font-weight: 500;
}
.hx-script__on li::before {
  content: counter(hx-step);
  display: inline-grid; place-items: center;
  width: 1.75rem; height: 1.75rem; flex: none; border-radius: 50%;
  font-family: var(--font-secondary); font-size: 0.8125rem; font-weight: 700;
  color: #fff; background: var(--crescita-ocean-bright);
}

/* 8 · Poltrona: the peak */
.hx-peak { background: var(--crescita-midnight); color: var(--crescita-sand); }
.hx-peak__stage { background: var(--crescita-midnight); }
.hx-peak__inner { display: grid; justify-items: center; gap: 1.5rem; text-align: center; padding-block: 2rem; }
.hx-peak .hx-step { color: #9fc1e8; }
.hx-peak__title { color: var(--crescita-sand); font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem); max-width: 18ch; }
.hx-run { position: relative; width: min(100%, 56rem); margin: 1.5rem auto 0.5rem; padding-top: 2.25rem; }
.hx-run__nodes { display: grid; grid-template-columns: repeat(6, 1fr); font-family: var(--font-secondary); font-size: 0.8125rem; color: rgba(247, 245, 240, 0.6); }
.hx-run__nodes li { position: relative; }
.hx-run__nodes li::before {
  content: ""; position: absolute; left: 50%; top: -1.75rem;
  width: 0.75rem; height: 0.75rem; margin-left: -0.375rem; border-radius: 50%;
  background: var(--crescita-midnight); border: 1.5px solid rgba(247, 245, 240, 0.4);
}
.hx-run__line { position: absolute; top: 1.125rem; left: calc(100% / 12); right: calc(100% / 12); height: 2px; }
/* Two segments meeting at Sito (2/5 of the way), so the line can snap there. */
.hx-run__seg { position: absolute; top: 0; height: 2px; background: rgba(247, 245, 240, 0.14); overflow: hidden; transition: transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 700ms ease; } /* impeccable-disable-line bounce-easing */
.hx-run__seg--a { left: 0; width: 40%; transform-origin: 0 50%; }
.hx-run__seg--b { left: 40%; width: 60%; transform-origin: 100% 50%; }
.hx-run__fill { position: absolute; inset: 0; transform-origin: 0 50%; background: #9fc1e8; }
.hx-run__seg--a .hx-run__fill { transform: scaleX(min(1, calc(var(--hx-run, 0) / 0.4))); }
.hx-run__seg--b .hx-run__fill { transform: scaleX(max(0, calc((var(--hx-run, 0) - 0.4) / 0.6))); }
.hx-run__dot {
  position: absolute; top: 0.6875rem; left: calc(100% / 12 + (100% * 5 / 6) * var(--hx-run, 0));
  width: 1.125rem; height: 1.125rem; margin-left: -0.5625rem; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(159, 193, 232, 0.25), 0 0 24px rgba(159, 193, 232, 0.6);
}
.hx-run__dot { transition: transform 700ms cubic-bezier(0.55, 0, 0.85, 0.4), background-color 200ms ease, box-shadow 200ms ease; }
.hx-run__dot::before, .hx-run__dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.75rem; height: 2px; margin: -1px 0 0 -0.375rem; border-radius: 2px; background: #fff; opacity: 0; transform: rotate(45deg); }
.hx-run__dot::after { transform: rotate(-45deg); }
/* Lost at Sito: the dot turns into a red X and drops, the line snaps in two. */
.hx-peak.is-lost .hx-run__dot { background: #d64545; box-shadow: 0 0 0 6px rgba(214, 69, 69, 0.22), 0 0 24px rgba(214, 69, 69, 0.55); transform: translateY(3.25rem) rotate(28deg); }
.hx-peak.is-lost .hx-run__dot::before, .hx-peak.is-lost .hx-run__dot::after { opacity: 1; }
.hx-peak.is-lost .hx-run__seg--a { transform: rotate(5deg); }
.hx-peak.is-lost .hx-run__seg--a .hx-run__fill { background: rgba(247, 245, 240, 0.45); }
.hx-peak.is-lost .hx-run__seg--b { transform: translateY(0.875rem) rotate(-7deg); opacity: 0.35; }
.hx-peak.is-lost .hx-run__nodes li:nth-child(n+3) { opacity: 0.4; }
.hx-peak__card {
  display: inline-flex; align-items: center; gap: 0.875rem; flex-wrap: wrap; justify-content: center;
  padding: 1rem 1.5rem;
  color: var(--crescita-midnight);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.hx-peak__card span:last-child { color: var(--color-text-secondary); font-size: 0.9375rem; }
.hx-peak__try { display: grid; justify-items: center; gap: 1rem; }
.hx-peak__try p { color: rgba(247, 245, 240, 0.78); }
.hx-peak .crescita-btn-primary.hx-btn-on-dark { background-color: var(--crescita-sand); border-color: var(--crescita-sand); color: var(--crescita-midnight); }
.hx-peak .crescita-btn-primary.hx-btn-on-dark:hover,
.hx-peak .crescita-btn-primary.hx-btn-on-dark:focus-visible { background-color: #fff; border-color: #fff; box-shadow: var(--cta-lit-on-dark); }
.hx-get--dark { border-top-color: rgba(247, 245, 240, 0.16); color: rgba(247, 245, 240, 0.7); text-align: center; max-width: 40ch; }
.hx-get--dark b { color: var(--crescita-sand); }
.hx-get--dark.hx-get--off { color: #e8b9a1; }
.hx-get--dark.hx-get--off b { color: #f0c9b4; }
.hx-get--dark.hx-get--on { color: rgba(247, 245, 240, 0.86); }
.hx-get--dark.hx-get--on b { color: #9fdcb8; }
.hx-peak :focus-visible { outline-color: #fff; }

/* 9 · Cosa ricevi: lateral rail */
.hx-receive { background: #fff; }
.hx-receive__stage { display: grid; align-items: center; padding-top: var(--hx-head); }
.hx-receive__switch .hx-switch { white-space: nowrap; }
.hx-receive__switch { position: absolute; z-index: 5; top: calc(var(--hx-head) + 1.25rem); right: var(--hx-gutter); padding: 0.375rem 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--hx-line); box-shadow: 0 12px 30px -18px rgba(15, 23, 34, 0.35); }
.hx-rail-x > * { flex: none; }
.hx-rail-x { gap: 1rem; padding-inline: var(--hx-gutter); align-items: stretch; width: max-content; }
.hx-rail-x__lead { display: grid; align-content: center; gap: 1rem; width: min(28rem, 80vw); padding-right: 2rem; }
.hx-item {
  display: grid; grid-template-rows: 1fr auto auto; gap: 0.5rem;
  width: clamp(17.5rem, 25vw, 22rem); min-height: clamp(23rem, 62vh, 29rem);
  padding: 0.75rem 0.75rem 1.5rem;
  border: 1px solid var(--hx-line); border-radius: 22px;
  background: var(--crescita-sand);
}
.hx-item__t, .hx-item__p { margin: 0; padding-inline: 0.75rem; }
.hx-item__t { align-self: end; margin-top: 1rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.hx-item__p { font-size: 0.9375rem; color: var(--color-text-secondary); }
.hx[data-mode="off"] .hx-item { background: #f4f1ec; border-style: dashed; }
.hx[data-mode="off"] .hx-item__t { color: #7d4a33; }
.hx-rail-x__end { align-self: center; width: 20rem; padding-left: 1.5rem; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; color: var(--crescita-ocean); }
.hx-rail-x__end.hx-state--off { color: #7d4a33; }

/* Card visuals: illustrations, each alive in both states */
.hx-viz { position: relative; min-height: clamp(11rem, 30vh, 14rem); border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--hx-line); }
.hx-viz > div { position: absolute; inset: 0; }
.hx[data-mode="off"] .hx-viz { background: #fbfaf8; }

/* plan */
.hx-viz--plan .hx-viz__on { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; padding: 1rem 1.125rem; }
.hx-ring { position: relative; display: grid; place-items: center; width: 5.25rem; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--crescita-ocean-bright) calc(var(--hx-ring, 0.74) * 360deg), rgba(46, 90, 143, 0.12) 0); animation: hx-ring 6s ease-in-out infinite; }
.hx-ring::before { content: ""; position: absolute; inset: 0.5rem; border-radius: 50%; background: #fff; }
.hx-ring b { position: relative; font-size: 0.8125rem; color: var(--crescita-ocean); }
@property --hx-ring { syntax: "<number>"; inherits: false; initial-value: 0.74; }
@keyframes hx-ring { 0% { --hx-ring: 0.1; } 35%, 100% { --hx-ring: 0.74; } }
.hx-prio { display: grid; gap: 0.375rem; counter-reset: hx-p; }
.hx-prio li { counter-increment: hx-p; display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; border-radius: 8px; background: var(--crescita-sand); font-size: 0.75rem; font-weight: 600; animation: hx-in 6s ease infinite both; }
.hx-prio li::before { content: counter(hx-p); display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; flex: none; border-radius: 50%; font-size: 0.625rem; color: #fff; background: var(--crescita-ocean-bright); }
.hx-prio li:nth-child(2) { animation-delay: 0.4s; }
.hx-prio li:nth-child(3) { animation-delay: 0.8s; }
@keyframes hx-in { 0%, 8% { opacity: 0; transform: translateX(8px); } 18%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.hx-note-s { position: absolute; padding: 0.5rem 0.625rem; font-size: 0.75rem; font-weight: 600; background: #fff3b8; color: #5b4a1a; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.3); animation: hx-jig 3.2s ease-in-out infinite; }
.hx-note-s:nth-child(1) { top: 12%; left: 8%; --r: -6deg; }
.hx-note-s:nth-child(2) { top: 18%; right: 10%; --r: 5deg; animation-delay: 0.5s; background: #ffd9cc; }
.hx-note-s:nth-child(3) { bottom: 18%; left: 16%; --r: 4deg; animation-delay: 1s; background: #d9ecff; }
.hx-note-s:nth-child(4) { bottom: 12%; right: 12%; --r: -8deg; animation-delay: 1.5s; }
@keyframes hx-jig { 0%, 100% { transform: rotate(var(--r)); } 50% { transform: rotate(calc(var(--r) * -1)) translateY(-2px); } }

/* google: a search-performance panel, illustrative */
.hx-gsc { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0.5rem; padding: 0.75rem 0.875rem; }
.hx-gsc__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.375rem; margin: 0; }
.hx-gsc__tiles span { display: grid; padding: 0.375rem 0.5rem; border-radius: 8px; font-size: 0.625rem; color: #fff; background: #4285f4; }
.hx-gsc__tiles span:nth-child(2) { background: #5e35b1; }
.hx-gsc__tiles span:nth-child(3) { background: #e8710a; }
.hx-gsc__tiles b { font-size: 0.9375rem; white-space: nowrap; }
.hx-gsc svg { display: block; width: 100%; height: 100%; min-height: 0; overflow: hidden; padding: 0.25rem 0; }
.hx-gsc path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hx-draw 6s ease-out infinite; }
.hx-gsc__l1 { stroke: #4285f4; }
.hx-gsc__l2 { stroke: #5e35b1; animation-delay: 0.3s !important; }
@keyframes hx-draw { 0% { stroke-dashoffset: 1; } 45%, 100% { stroke-dashoffset: 0; } }
.hx-gsc__serp { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.75rem; font-weight: 600; }
.hx-gsc__serp small { margin-left: auto; font-size: 0.625rem; font-weight: 400; color: var(--color-text-secondary); }
.hx-gsc__serp b { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.25rem; border-radius: 6px; color: #fff; background: #2b7350; }
.hx-gsc--down .hx-gsc__tiles span { background: #5f6b78; } /* #9aa3ad put white text at 2.6:1 */
.hx-gsc--down .hx-gsc__l1 { stroke: #c0503b; }
.hx-gsc--down .hx-gsc__l2 { stroke: #c7a29a; }
.hx-gsc--down .hx-gsc__serp b { background: #c0503b; }

/* site */
.hx-mini { display: grid; place-items: center; }
.hx-mini__screen { position: relative; display: grid; align-content: start; gap: 0.375rem; width: 6.5rem; height: 9.5rem; padding: 0.625rem 0.5rem; border: 5px solid var(--crescita-midnight); border-radius: 18px; background: #fff; }
.hx-mini__screen i { height: 0.5rem; border-radius: 4px; background: #ece8e2; }
.hx-mini__screen i:first-child { height: 2.6rem; border-radius: 8px; background: #e3ddd4; }
.hx-mini__screen em { position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.5rem; padding: 0.375rem 0; border-radius: 999px; text-align: center; font-style: normal; font-size: 0.625rem; font-weight: 700; color: #fff; background: #2f7d6d; animation: hx-pulse 2.4s ease-in-out infinite; }
@keyframes hx-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 125, 109, 0.4); } 50% { box-shadow: 0 0 0 7px rgba(47, 125, 109, 0); } }
.hx-mini__screen--slow { place-items: center; align-content: center; background: #f1efea; }
.hx-spin { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 3px solid #d8d3ca; border-top-color: #8b8478; animation: hx-spin 1.4s linear infinite; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
.hx-toast { position: absolute; left: 50%; top: 0.75rem; padding: 0.4rem 0.75rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 600; white-space: nowrap; transform: translate(-50%, -140%); animation: hx-toast 4.5s ease infinite; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.4); }
.hx-toast--ok { color: #fff; background: #2b7350; }
.hx-toast--err { color: #fff; background: #c0503b; animation-delay: 1.5s; }
@keyframes hx-toast { 0%, 15% { transform: translate(-50%, -140%); opacity: 0; } 25%, 75% { transform: translate(-50%, 0); opacity: 1; } 90%, 100% { transform: translate(-50%, -140%); opacity: 0; } }

/* reply */
.hx-bub { display: grid; align-content: center; gap: 0.5rem; padding: 1rem; }
.hx-bub span { max-width: 80%; padding: 0.5rem 0.75rem; border-radius: 14px; font-size: 0.75rem; animation: hx-in 6s ease infinite both; }
.hx-bub__in { justify-self: start; background: var(--crescita-sand); border-bottom-left-radius: 4px; }
.hx-bub__out { justify-self: end; color: var(--crescita-sand); background: var(--crescita-midnight); border-bottom-right-radius: 4px; animation-delay: 0.8s !important; }
.hx-bub__read { justify-self: end; padding: 0 !important; font-size: 0.6875rem !important; font-weight: 600; color: #4285f4; animation-delay: 1.4s !important; }
.hx-inbox { display: grid; align-content: center; gap: 0.375rem; padding: 1rem; }
.hx-inbox__row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.5rem 0.625rem 0.5rem 1.375rem; border-radius: 10px; font-size: 0.75rem; font-weight: 600; background: #fff; border: 1px solid var(--hx-line); position: relative; }
.hx-inbox__row::before { content: ""; position: absolute; left: 0.5rem; top: 50%; width: 0.45rem; height: 0.45rem; margin-top: -0.225rem; border-radius: 50%; background: #c0503b; }
.hx-inbox__row small { font-weight: 400; color: var(--color-text-secondary); }
.hx-inbox__badge { position: absolute; top: 0.625rem; right: 0.625rem; display: grid; place-items: center; min-width: 1.5rem; height: 1.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: #fff; background: #c0503b; animation: hx-throb 1.8s ease-in-out infinite; }
@keyframes hx-throb { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* desk: the week's agenda */
.hx-week { display: grid; grid-template-rows: auto 1fr auto; gap: 0.375rem; padding: 0.875rem 0.875rem 0.75rem; }
.hx-week__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.3rem; margin: 0; font-size: 0.625rem; font-weight: 600; color: var(--color-text-secondary); text-align: center; }
.hx-week__grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-flow: column; grid-template-rows: repeat(4, 1fr); gap: 0.3rem; margin: 0; }
.hx-week__grid i { border-radius: 6px; background: rgba(15, 23, 34, 0.05); }
.hx-week:not(.hx-week--gaps) .hx-week__grid i { background: linear-gradient(135deg, var(--crescita-ocean-bright), #6f97c8); animation: hx-book 7s ease infinite both; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(1) { animation-delay: 0.00s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(2) { animation-delay: 0.13s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(3) { animation-delay: 0.26s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(4) { animation-delay: 0.39s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(5) { animation-delay: 0.52s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(6) { animation-delay: 0.65s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(7) { animation-delay: 0.78s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(8) { animation-delay: 0.91s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(9) { animation-delay: 1.04s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(10) { animation-delay: 1.17s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(11) { animation-delay: 1.30s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(12) { animation-delay: 1.43s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(13) { animation-delay: 1.56s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(14) { animation-delay: 1.69s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(15) { animation-delay: 1.82s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(16) { animation-delay: 1.95s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(17) { animation-delay: 2.08s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(18) { animation-delay: 2.21s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(19) { animation-delay: 2.34s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(20) { animation-delay: 2.47s; }
.hx-week:not(.hx-week--gaps) .hx-week__grid i:nth-child(7n) { background: linear-gradient(135deg, #2b7350, #59a37d); }
@keyframes hx-book { 0%, 4% { opacity: 0; transform: scale(0.6); } 12%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.hx-week--gaps .hx-week__grid i { background: transparent; border: 1px dashed rgba(15, 23, 34, 0.18); }
.hx-week--gaps .hx-week__grid i:nth-child(3), .hx-week--gaps .hx-week__grid i:nth-child(9), .hx-week--gaps .hx-week__grid i:nth-child(14) { border: 0; background: #b9b2a6; }
.hx-call { justify-self: center; padding: 0.375rem 0.75rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 600; color: #fff; }
.hx-call--ok { background: #2b7350; animation: hx-in 7s ease 2.6s infinite both; }
.hx-call--miss { background: #c0503b; animation: hx-throb 1.8s ease-in-out infinite; }

/* report */
.hx-rep { display: grid; align-content: center; gap: 0.625rem; padding: 1rem 1.125rem; }
.hx-rep__h { margin: 0; font-size: 0.8125rem; font-weight: 700; }
.hx-rep__row { display: grid; grid-template-columns: 4.25rem 1fr; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.75rem; }
.hx-rep__row i { height: 0.625rem; border-radius: 999px; background: linear-gradient(90deg, var(--crescita-ocean-bright), #9fc1e8); transform-origin: 0 50%; transform: scaleX(var(--w)); animation: hx-bar 6s ease-out infinite; }
@keyframes hx-bar { 0% { transform: scaleX(0); } 40%, 100% { transform: scaleX(var(--w)); } }
.hx-files { display: block; }
.hx-files span { position: absolute; padding: 0.375rem 0.5rem; border-radius: 6px; font-size: 0.6875rem; font-family: ui-monospace, monospace; background: #fff; border: 1px solid #ddd6cc; box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.3); animation: hx-jig 3.6s ease-in-out infinite; }
.hx-files span:nth-child(1) { top: 14%; left: 8%; --r: -5deg; }
.hx-files span:nth-child(2) { top: 26%; right: 8%; --r: 6deg; animation-delay: 0.6s; }
.hx-files span:nth-child(3) { bottom: 26%; left: 14%; --r: 3deg; animation-delay: 1.2s; }
.hx-files span:nth-child(4) { bottom: 12%; right: 14%; --r: -7deg; animation-delay: 1.8s; }
.hx-files b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 2.5rem; color: #c0503b; opacity: 0.6; }

/* 10 · Fiducia */
.hx-trust { padding-block: clamp(4.5rem, 10vw, 8rem) clamp(1.5rem, 3vw, 2.5rem); background: #fff; border-top: 1px solid var(--hx-line); }
.hx-trust .hx-wrap { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.hx-mech { display: grid; gap: 2rem; justify-items: center; text-align: center; }
.hx-mech .hx-h2 { max-width: 20ch; }
.hx-mech__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; max-width: 56rem; text-align: left; }
.hx-mech__cols p { display: grid; gap: 0.5rem; padding: 1.5rem; border-radius: 20px; font-size: 1.0625rem; }
.hx-mech__cols span { font-family: var(--font-secondary); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; }
.hx-mech__old { background: transparent; border: 1px dashed rgba(15, 23, 34, 0.22); color: var(--color-text-secondary); }
.hx-mech__new { background: var(--crescita-midnight); color: var(--crescita-sand); }
.hx-mech__new span { color: #9fc1e8; }
.hx-team, .hx-risk { display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 24px; background: #fff; border: 1px solid var(--hx-line); }
.hx-trust .hx-wrap { grid-template-columns: 1fr 1fr; }
.hx-mech { grid-column: 1 / -1; }
.hx-risk ul { display: grid; gap: 0.75rem; }
.hx-risk li { display: flex; gap: 0.75rem; align-items: baseline; font-weight: 500; }
.hx-risk li::before { content: ""; flex: none; width: 1rem; height: 0.5rem; border-left: 2px solid var(--crescita-ocean-bright); border-bottom: 2px solid var(--crescita-ocean-bright); transform: translateY(-0.2rem) rotate(-45deg); } /* impeccable-disable-line side-tab */

/* 11 · Close */
.hx-close { padding-block: clamp(5rem, 12vw, 9rem); background: #fff; text-align: center; border-top: 1px solid var(--hx-line); }
.hx-close .hx-wrap { display: grid; justify-items: center; gap: 1.25rem; }
.hx-close .hx-actions { justify-content: center; margin-top: 0.75rem; }

/* ── Tablet and phone ───────────────────────────────────────────── */
@media (max-width: 1023.98px) {
  .hx-rail__stages a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hx-rail__stages a { padding: 0.625rem; }
  .hx-rail__stages a[aria-current="step"] span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .hx-switch__off, .hx-switch__on { display: none; }
  .hx-switch::before { content: "Con il nostro sistema"; }
  .hx-switch--hero::before { content: none; }
  .hx-split, .hx-phone { grid-template-columns: 1fr; }
  .hx-split--rev .hx-copy { order: 0; }
  .hx-phone__screen { max-width: 13rem; }
  .hx-trust .hx-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .hx { --hx-rail: 56px; font-size: 1rem; }
  .hx-hero { min-height: calc(100svh - var(--hx-head)); align-items: start; }
  /* Phone: the portrait crop of his office, full width at the foot of the hero, so he stays large. */
  .hx-hero__plate { background: #f3f2ef var(--hx-plate-m) 50% 100% / 100% auto no-repeat; }
  .hx-hero__bloom { background: linear-gradient(0deg, rgba(243, 242, 239, 0) 0, rgba(243, 242, 239, 0) calc(150vw - 1.5rem), #f3f2ef calc(150vw + 0.75rem)); }
  /* The photo (1.5:1, so 150vw tall) starts 3rem under the buttons; the scene overhangs the hero by 60px. */
  .hx-hero__copy { padding-top: 2.5rem; padding-bottom: calc(150vw - 60px + 3rem); gap: 1.125rem; }
  .hx-hero__title { font-size: clamp(2.125rem, 9.4vw, 2.75rem); }
  .hx-receive__switch { top: calc(var(--hx-head) + 0.75rem); left: 50%; right: auto; transform: translateX(-50%); }
  .hx-item { width: 80vw; min-height: 0; }
  /* Phone: staggered on the empty wall at the top of the photo, clear of his head. */
  .hx-feed__chip { max-width: calc(100vw - 2 * var(--hx-gutter)); padding: 0.5rem 0.75rem; font-size: 0.8125rem; gap: 0.5rem; white-space: nowrap; }
  .hx-feed__chip small, .hx-chip--result span { font-size: 0.75rem; }
  .hx-feed__chip[data-slot="0"] { top: auto; bottom: calc(150vw - 0.75rem); left: var(--hx-gutter); }
  .hx-feed__chip[data-slot="1"] { top: auto; bottom: calc(150vw - 4.5rem); left: auto; right: var(--hx-gutter); }
  .hx-feed__chip[data-slot="2"] { top: auto; bottom: calc(150vw - 8.25rem); left: calc(var(--hx-gutter) + 1rem); }
  .hx-hero__try { border-radius: 18px; }
  .hx-hero .hx-actions { width: 100%; }
  .hx-hero .hx-actions a { flex: 1 1 100%; text-align: center; }
  .hx-rail { gap: 0.5rem; }
  .hx-rail__stages { gap: 0; }
  .hx-rail__stages a { padding: 0.5rem 0.4375rem; font-size: 0.8125rem; }
  .hx-rail__stages a[aria-current="step"] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hx-rail__stages a[aria-current="step"] { padding-inline: 0.625rem; }
  .hx-mech__cols { grid-template-columns: 1fr; }
  .hx-peak__title { font-size: clamp(1.75rem, 7.4vw, 2.25rem); }
  .hx-run__nodes { font-size: 0.625rem; }
  .hx-stage--pin .hx-copy .hx-state, .hx-stage--pin .hx-get { font-size: 0.9375rem; }
  .hx-stage--pin .hx-pinstage .hx-wrap { padding-block: 1rem; gap: 1.25rem; }
  .hx-phone { grid-template-columns: 8rem 1fr; gap: 0.875rem; }
  .hx-phone__screen { border-width: 5px; border-radius: 20px; }
  .hx-notes li { padding: 0.5rem 0.625rem; font-size: 0.8125rem; }
  .hx-phone figcaption { margin-top: 0.5rem; }
}

/* ── Reduced motion, reduced transparency, print ────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hx .hx-state--on, .hx .hx-state--off { animation: none; }
  .hx-switch__track, .hx-switch__track span, .hx-run__dot, .hx-run__seg { transition: none; }
  .hx-viz *, .hx-viz *::before, .hx-viz *::after { animation: none !important; }
  /* Their resting states are the finished frame, not the first one. */
  .hx-gsc path { stroke-dashoffset: 0; }
  .hx-toast { transform: translate(-50%, 0); }
  .hx:not(.is-touched)[data-mode="off"] .hx-switch__track { animation: none; box-shadow: 0 0 0 4px rgba(46, 90, 143, 0.28); }
  .hx-site__load, .hx-thread__typing i { animation: none; }
  .hx-feed__chip { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .hx-rail, .hx-chip { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media print {
  .hx-rail, .hx-switch, .hx-hero__try, .hx-receive__switch, .hx-hero__scene, .hx-peak__try { display: none !important; }
  .hx-thread [data-at] { opacity: 1 !important; transform: none !important; }
  .hx[data-mode] .hx-state--on { display: revert !important; }
  .hx[data-mode] .hx-state--off { display: none !important; }
  .hx-peak, .hx-peak__stage { background: #fff !important; color: var(--crescita-midnight) !important; }
  .hx-peak__title, .hx-get--dark b { color: var(--crescita-midnight) !important; }
  .hx [data-sc-cue], .hx [data-sc-in], .hx [data-sc-stagger] > * { opacity: 1 !important; transform: none !important; }
  .hx [data-sc-reveal] { clip-path: none !important; }
  .hx [data-sc-act] { height: auto !important; }
  .hx .sc-stage, .hx [data-sc-stage] { position: static !important; height: auto !important; }
  .hx [data-sc-pan] { flex-wrap: wrap; transform: none !important; width: auto; }
}

/* ── The promise strip: the rail's place, sticky under the header (founder,
   2026-10-26). One commitment at a time, rolling up like a counter. ───── */
.hx-rail--promise { justify-content: center; }
.hx-promise { display: flex; align-items: center; justify-content: center; gap: 0.75rem; min-width: 0; margin: 0; font-size: 0.9375rem; color: var(--crescita-midnight); }
.hx-promise__label { flex: none; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; background: var(--crescita-midnight); border-radius: 999px; }
.hx-promise__roll { position: relative; display: inline-grid; min-width: 0; height: 1.5em; line-height: 1.5; overflow: hidden; }
.hx-promise__roll > span { grid-area: 1 / 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; opacity: 0; transform: translateY(110%); transition: transform 600ms var(--hx-ease), opacity 450ms ease; }
.hx-promise__roll > span.is-current { opacity: 1; transform: none; }
.hx-promise__roll > span.is-leaving { opacity: 0; transform: translateY(-110%); }
/* The patient journey, back in the intro as clickable stops (founder, 2026-10-26). */
.hx-journey .hx-rail__stages { flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.5rem; }
.hx-journey .hx-rail__stages a span { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip-path: none !important; }
/* The two states named in colour wherever a switch appears: lost in red, our system in green. */
.hx-switch__off { color: #b3261e; }
.hx-switch__on { color: #1f7a4d; }
@media (max-width: 767.98px) {
  .hx-promise { gap: 0.5rem; font-size: 0.8125rem; }
  .hx-promise__label { padding: 0.2rem 0.5rem; font-size: 0.625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-promise__roll > span { transition: none; }
}

/* ── Round 6 (founder, 2026-10-26) ─────────────────────────────── */
/* A switch above every stage card, so each one can be flipped where it is read. */
.hx-panelwrap { display: grid; gap: 0.875rem; min-width: 0; }
.hx-try { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.hx-try p { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--crescita-midnight); }
/* Both states stay named at every width here (the rail's one-label fallback does not apply). */
.hx-try .hx-switch__off, .hx-try .hx-switch__on { display: inline; }
.hx-try .hx-switch::before { content: none; }

/* The peak must fit one screen when the path breaks: tighter rhythm on short screens. */
@media (max-height: 1000px) and (min-width: 768px) {
  .hx-peak__inner { gap: 1rem; padding-block: 1rem; }
  .hx-peak__title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem); }
}

/* Wherever the window beside him is on screen (wide aspect), the third card sits there, not on the floor. */
@media (min-width: 1024px) and (min-aspect-ratio: 8/5) {
  .hx-feed__chip[data-slot="2"] { top: 34%; left: auto; right: 2%; }
}

@media (max-width: 767.98px) {
  /* Journey stops in a 3 × 2 grid, so Poltrona never sits alone on a line. */
  .hx-journey .hx-rail__stages { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; }
}

/* ── Round 7 (founder, 2026-10-26) ─────────────────────────────── */
/* Room between a stage's "Cosa ottieni" and the switch under it on phone. */
@media (max-width: 1023.98px) {
  .hx-split > .hx-panelwrap { margin-top: 1.75rem; }
  .hx-panelwrap { gap: 1rem; }
}

/* The two models, marked: a red cross on the agencies' top-left corner, a green
   tick on our top-right corner, each sitting on the card's line. */
.hx-mech__old, .hx-mech__new { position: relative; }
.hx-mech__old::before, .hx-mech__new::before {
  content: ""; position: absolute; top: -0.75rem; left: -0.75rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: #fff no-repeat center / 0.875rem;
  box-shadow: 0 0 0 1px rgba(15, 23, 34, 0.08), 0 4px 10px -4px rgba(15, 23, 34, 0.35);
}
.hx-mech__old::before { background-color: #b3261e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 3.5l7 7M10.5 3.5l-7 7' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.hx-mech__new::before { left: auto; right: -0.75rem; background-color: #1f7a4d; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.5l2.6 2.6L11 4.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* The commitments, then the identity card sliding up over them. Both stick at the
   same line under the rail; the second arrives later and covers the first. */
/* The padding is how long the second card holds fully over the first before both leave. */
.hx-trust .hx-stack { grid-column: 1 / -1; display: grid; gap: 45vh; padding-bottom: 12vh; width: 100%; max-width: 44rem; margin-inline: auto; }
.hx-stack > .hx-risk, .hx-stack > .hx-team { position: sticky; top: calc(var(--hx-head) + var(--hx-rail) + 1.5rem); align-self: start; min-height: 18rem; align-content: center; }
@media (max-width: 767.98px) { .hx-stack > .hx-risk, .hx-stack > .hx-team { min-height: 22rem; } }
.hx-stack > .hx-team { box-shadow: 0 -18px 40px -24px rgba(15, 23, 34, 0.35); }
@media (prefers-reduced-motion: reduce) {
  .hx-trust .hx-stack { gap: 1.5rem; padding-bottom: 0; }
  .hx-stack > .hx-risk, .hx-stack > .hx-team { position: static; }
}
@media print {
  .hx-trust .hx-stack { gap: 1.5rem; padding-bottom: 0; }
  .hx-stack > .hx-risk, .hx-stack > .hx-team { position: static; }
}

/* Phone: the Sito stage scrolls as a normal section instead of pinning to one
   screen. With the switch above its card it no longer fits a phone's visible
   height once the browser bars take theirs, and a pinned stage clips what does
   not fit (founder-reported, 2026-10-26). Its reveals show in full. */
@media (max-width: 767.98px) {
  #tappa-sito.hx-stage--pin { height: auto !important; }
  #tappa-sito .hx-pinstage { height: auto; padding-top: 0; padding-block: clamp(3rem, 9vw, 4rem); }
  #tappa-sito [data-sc-cue] { opacity: 1 !important; transform: none !important; }
}
