/**
 * Crescita Studio: the /servizi/ hub, scroll-craft pass (2026-10-26).
 * Brief and score: scrollcraft/builds/crescita-redesign/BRIEF.md, "Servizi hub".
 * Grounds alternate white and Midnight, one per chapter, hard edges (founder, 2026-10-26).
 * The engine (assets/scrollcraft/) is themed here, never edited; servizi-hub.js draws the peak.
 */

body.crescita-page-svh {
  --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);
}

.svh {
  --svh-head: 72px;          /* the sticky header, measured by servizi-hub.js */
  --svh-gutter: clamp(1.25rem, 5vw, 4rem);
  --svh-line: rgba(15, 23, 34, 0.1);
  --svh-line-dark: rgba(247, 245, 240, 0.14);
  --svh-ease: cubic-bezier(0.23, 1, 0.32, 1);
  color: var(--crescita-midnight);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: #fff;
}
.svh :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
.svh :where(ul, ol) { list-style: none; }
.svh-wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--svh-gutter); }
.svh-wrap--text { max-width: 52rem; }
.svh-center { text-align: center; }
.svh-light { background: #fff; }
.svh-dark { background: var(--crescita-midnight); color: var(--color-text-on-dark); }
.svh-h2 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.svh-dark .svh-h2, .svh-dark h3 { color: #fff; }
.svh-line { font-size: 1.125rem; color: var(--color-text-secondary); max-width: 52ch; }
.svh-dark .svh-line, .svh-dark p { color: var(--color-text-on-dark-secondary); }
.svh-fine { font-family: var(--font-secondary); font-size: 0.875rem; color: var(--color-text-secondary); max-width: 70ch; }
.svh-dark .svh-fine { color: var(--color-text-on-dark-secondary); }

/* ── 1 · Hero: centred title between two planes of service names ── */
.svh-hero { position: relative; overflow: clip; isolation: isolate; padding: clamp(5rem, 12vw, 9rem) 0 clamp(4.5rem, 10vw, 7.5rem); text-align: center; background: #fff; }
.svh-hero__copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: 1.25rem; }
.svh .svh-title { max-width: 16ch; margin: 0 auto; font-size: clamp(2.5rem, 1.6rem + 4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.04em; text-align: center; }
.svh-lede { max-width: 40ch; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); color: var(--color-text-secondary); }
.svh-sub { max-width: 52ch; font-size: 1rem; color: var(--color-text-secondary); }
.svh-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; margin-top: 0.75rem; padding: 0.3125rem; border-radius: 999px; background: #fff; border: 1px solid var(--svh-line); box-shadow: 0 18px 36px -28px rgba(15, 23, 34, 0.45); }
.svh-index a { padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; color: var(--crescita-midnight); text-decoration: none; transition: background-color 200ms ease, color 200ms ease; }
.svh-index a:hover, .svh-index a:focus-visible { background: var(--crescita-midnight); color: #fff; }

.svh-hero__plane { position: absolute; inset: 0; pointer-events: none; }
.svh-hero__plane span {
  position: absolute; left: var(--x); top: var(--y);
  padding: 0.5rem 0.875rem; border-radius: 999px; white-space: nowrap;
  font-size: 0.875rem; font-weight: 500;
}
.svh-hero__plane--back { z-index: 1; }
.svh-hero__plane--back span { color: rgba(15, 23, 34, 0.64); border: 1px solid var(--svh-line); background: #fff; filter: blur(0.6px); transform: scale(0.88); }
.svh-hero__plane--front { z-index: 3; }
.svh-hero__plane--front span { color: var(--crescita-midnight); background: #fff; border: 1px solid rgba(30, 58, 95, 0.16); box-shadow: 0 2px 4px rgba(15, 23, 34, 0.05), 0 22px 40px -22px rgba(15, 23, 34, 0.45); font-size: 0.9375rem; }
.svh-hero__plane--front span::before { content: ""; display: inline-block; width: 0.4375rem; height: 0.4375rem; margin-right: 0.5rem; border-radius: 50%; background: var(--crescita-ocean-bright); vertical-align: 0.1em; }
.svh-hero__plane--back span:nth-child(1) { --x: 5%; --y: 14%; }
.svh-hero__plane--back span:nth-child(2) { --x: 79%; --y: 10%; }
.svh-hero__plane--back span:nth-child(3) { --x: 2%; --y: 60%; }
.svh-hero__plane--back span:nth-child(4) { --x: 84%; --y: 54%; }
.svh-hero__plane--back span:nth-child(5) { --x: 13%; --y: 88%; }
.svh-hero__plane--back span:nth-child(6) { --x: 72%; --y: 90%; }
.svh-hero__plane--front span:nth-child(1) { --x: 7%; --y: 34%; }
.svh-hero__plane--front span:nth-child(2) { --x: 80%; --y: 30%; }
.svh-hero__plane--front span:nth-child(3) { --x: 10%; --y: 76%; }
.svh-hero__plane--front span:nth-child(4) { --x: 78%; --y: 74%; }
/* On a phone the index is four separate pills, not one pill broken over two lines. */
@media (max-width: 600px) {
  .svh-index { padding: 0; border: 0; background: none; box-shadow: none; gap: 0.5rem; }
  .svh-index a { border: 1px solid var(--svh-line); background: #fff; padding: 0.4375rem 0.875rem; font-size: 0.875rem; }
}
/* The planes sit in the margins beside the title; below 1100px there is no margin, so they go. */
@media (max-width: 1100px) { .svh-hero__plane { display: none; } }

/* ── 2 · The base: lateral rail on Midnight ───────────────────── */
.svh-basics__stage { display: grid; align-items: center; padding-top: var(--svh-head); }
.svh-rail { display: flex; gap: 1rem; width: max-content; padding-inline: var(--svh-gutter); align-items: stretch; }
.svh-rail > * { flex: none; }
.svh-rail__lead { display: grid; align-content: center; gap: 1rem; width: min(30rem, 82vw); padding-right: 2.5rem; }
.svh-card {
  position: relative; display: grid; align-content: space-between; gap: 1.5rem;
  width: clamp(17rem, 24vw, 21rem); min-height: clamp(17rem, 46vh, 22rem); padding: 1.75rem;
  border-radius: 22px; border: 1px solid var(--svh-line-dark); background: rgba(247, 245, 240, 0.04);
  color: #fff; text-decoration: none;
  transition: background-color 250ms ease, border-color 250ms ease, transform 250ms var(--svh-ease);
}
.svh-card b { font-size: 1.375rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.svh-card span { font-size: 0.9375rem; line-height: 1.55; color: var(--color-text-on-dark-secondary); }
.svh-card i { font-style: normal; justify-self: end; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--svh-line-dark); color: #9fc1e8; transition: background-color 250ms ease, color 250ms ease; }
.svh-card:hover, .svh-card:focus-visible { background: rgba(247, 245, 240, 0.08); border-color: rgba(159, 193, 232, 0.45); transform: translateY(-3px); }
.svh-card:hover i, .svh-card:focus-visible i { background: #fff; color: var(--crescita-midnight); }

/* ── 3 · Made to measure: one row, each card arriving in turn ─── */
/* servizi-hub.js sets --e on each card: 0 = waiting off to the right, 1 = in place, with an
   eased overshoot just past 1 that reads as a slight bounce. Below 1100px the row is wider
   than the screen and the script also slides it (--x). Without the script every card is in. */
.svh-custom__stage { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding-top: var(--svh-head); }
.svh-wrap--wide { max-width: 96rem; }
.svh-head { display: grid; justify-items: center; gap: 1rem; margin-bottom: clamp(2rem, 4vh, 3rem); text-align: center; }
.svh-row { --x: 0px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.875rem; align-items: stretch; transform: translateX(var(--x)); }
.svh-tile {
  --e: 1;
  display: grid; align-content: start; gap: 0.625rem; padding: 1.25rem 1.125rem;
  border-radius: 20px; border: 1px solid var(--svh-line); background: #fff;
  color: var(--crescita-midnight); text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 34, 0.04), 0 22px 44px -34px rgba(15, 23, 34, 0.4);
  transform: translateX(calc((1 - var(--e)) * 9rem)) rotate(calc((1 - var(--e)) * 4deg));
  opacity: clamp(0, var(--e) * 1.6, 1);
  transition: box-shadow 250ms ease, border-color 250ms ease;
}
.svh-tile b { font-size: 1.0625rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.svh-tile span { font-size: 0.875rem; line-height: 1.5; color: var(--color-text-secondary); }
.svh-tile::after { content: "→"; margin-top: auto; padding-top: 0.5rem; color: var(--crescita-ocean-bright); transition: transform 250ms var(--svh-ease); }
.svh-tile:hover, .svh-tile:focus-visible { border-color: rgba(46, 90, 143, 0.4); box-shadow: 0 2px 4px rgba(15, 23, 34, 0.05), 0 28px 50px -30px rgba(15, 23, 34, 0.45); }
.svh-tile:hover::after, .svh-tile:focus-visible::after { transform: translateX(4px); }
.svh-custom .svh-fine { margin: clamp(1.75rem, 3.5vh, 2.5rem) auto 0; text-align: center; }
@media (max-width: 1099.98px) {
  .svh-row { display: flex; width: max-content; }
  .svh-tile { width: min(16rem, 72vw); transform: translateX(calc((1 - var(--e)) * 3.5rem)) scale(calc(0.92 + 0.08 * min(1, var(--e)))); }
}
@media (max-height: 760px) and (min-width: 1100px) { .svh-tile span { font-size: 0.8125rem; } .svh-head .svh-line { font-size: 1rem; } }
/* Phones: the stage starts under the header instead of centring, which pushed the heading off the top. */
@media (max-width: 760px) {
  .svh-custom__stage { align-items: start; padding-top: calc(var(--svh-head) + 1.75rem); }
  .svh-custom .svh-head { gap: 0.625rem; margin-bottom: 1.5rem; }
  .svh-custom .svh-head .svh-line { font-size: 0.9375rem; }
  .svh-custom .svh-fine { font-size: 0.75rem; margin-top: 1.25rem; }
}

/* ── 4 · The peak: the chain ──────────────────────────────────── */
.svh-peak__stage { display: grid; align-items: center; padding-top: var(--svh-head); }
.svh-peak__inner { display: grid; justify-items: center; gap: clamp(0.75rem, 2vh, 1.25rem); text-align: center; }
.svh-peak__title { max-width: 22ch; font-size: clamp(1.625rem, 1.1rem + 2vw, 2.5rem); }
.svh-peak__state { position: relative; display: grid; min-height: 2.25rem; font-family: var(--font-secondary); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em; }
.svh-peak__state > span { grid-area: 1 / 1; padding: 0.375rem 0.875rem; border-radius: 999px; }
.svh-peak .svh-peak__off { color: #f3a3a6; border: 1px solid rgba(229, 72, 77, 0.45); }
.svh-peak .svh-peak__on { color: #9fe3c4; border: 1px solid rgba(48, 164, 108, 0.55); }

.svh-chain { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem; width: 100%; max-width: 62rem; }
.svh-chain > span {
  position: relative; z-index: 1; padding: 0.5rem 0.875rem; border-radius: 999px; white-space: nowrap;
  font-size: 0.875rem; font-weight: 500; color: #fff;
  border: 1px solid rgba(159, 193, 232, 0.45); background: #172233;
}
.svh-chain > span.is-base { border-color: rgba(159, 193, 232, 0.75); background: #1b2c45; }
.svh-chain__lines { display: none; }
/* Live: servizi-hub.js places every chip absolutely and draws the joins. */
.svh-chain.is-live { display: block; height: clamp(14rem, 40vh, 22rem); margin-bottom: 1.75rem; } /* room for the loop label under the chain */
.svh-chain.is-live > span { position: absolute; left: 0; top: 0; will-change: transform; opacity: var(--o, 1); }
.svh-chain.is-live .svh-chain__lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.svh-chain__lines line { stroke: #9fc1e8; stroke-width: 1.5; stroke-linecap: round; }

.svh-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: 68rem; counter-reset: svh; text-align: left; }
.svh-steps li { counter-increment: svh; position: relative; padding: 2.25rem 0 0; border-top: 1px solid var(--svh-line-dark); font-size: 0.9375rem; line-height: 1.5; color: var(--color-text-on-dark-secondary); }
.svh-steps li::before { content: counter(svh); position: absolute; top: 0.625rem; left: 0; font-family: var(--font-secondary); font-size: 0.8125rem; font-weight: 600; color: #9fc1e8; }
@media (max-width: 860px) {
  .svh-steps { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .svh-steps li { padding-top: 1.75rem; font-size: 0.8125rem; }
  .svh-chain.is-live { height: clamp(13rem, 34vh, 17rem); }
  .svh-chain > span { font-size: 0.75rem; padding: 0.375rem 0.625rem; }
}
@media (max-height: 760px) and (min-width: 861px) { .svh-chain.is-live { height: 30vh; } .svh-steps li { font-size: 0.875rem; } }

/* ── 5 · Agency or growth partner ──────────────────────────────── */
.svh-vs { padding: clamp(5rem, 11vw, 8rem) 0; }
.svh-vs__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 60rem; margin: clamp(2rem, 4vw, 3rem) auto 0; }
.svh-vs__col { display: grid; align-content: start; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 24px; border: 1px solid var(--svh-line); font-size: 1.0625rem; color: var(--color-text-secondary); }
.svh-vs__col--us { background: var(--crescita-midnight); border-color: var(--crescita-midnight); color: var(--color-text-on-dark-secondary); }
.svh-vs__tag { font-family: var(--font-secondary); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--crescita-ocean); }
.svh-vs__col--us .svh-vs__tag { color: #9fc1e8; }
@media (max-width: 760px) { .svh-vs__cols { grid-template-columns: 1fr; } }

/* ── 6 · Demo callout with a layered preview ───────────────────── */
.svh-demo { padding: clamp(5rem, 11vw, 8rem) 0 clamp(3.5rem, 7vw, 5rem); overflow: clip; }
.svh-demo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.svh-demo__copy { display: grid; justify-items: start; gap: 1.25rem; }
.svh-demo__label { font-family: var(--font-secondary); font-size: 0.8125rem; font-weight: 600; color: #9fc1e8; }
.svh-demo__art { position: relative; min-height: 22rem; }
.svh-demo__shot { position: absolute; border-radius: 22px; border: 1px solid var(--svh-line-dark); }
.svh-demo__shot--back { inset: 0 18% 14% 0; background: rgba(247, 245, 240, 0.05); }
.svh-demo__shot--back::before { content: ""; position: absolute; inset: 1.25rem 1.25rem auto; height: 0.5rem; border-radius: 999px; background: rgba(247, 245, 240, 0.14); box-shadow: 0 1.25rem 0 rgba(247, 245, 240, 0.08), 0 2.5rem 0 rgba(247, 245, 240, 0.08); }
.svh-demo__shot--front { inset: 22% 0 0 24%; display: grid; align-content: center; gap: 0.75rem; padding: 1.5rem; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.svh-demo__bubble { justify-self: start; max-width: 85%; padding: 0.625rem 0.875rem; border-radius: 16px 16px 16px 4px; background: var(--crescita-sand); color: var(--crescita-midnight); font-size: 0.875rem; line-height: 1.45; }
.svh-demo__bubble--us { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--crescita-midnight); color: #fff; }
.svh-source { display: grid; gap: 0.5rem; margin-top: clamp(3.5rem, 7vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--svh-line-dark); max-width: 76rem; }
.svh-source h3 { font-size: 1.125rem; font-weight: 600; }
.svh-source p { font-size: 0.9375rem; max-width: 70ch; }
.svh-source__ref a { color: #9fc1e8; }
@media (max-width: 860px) { .svh-demo__grid { grid-template-columns: 1fr; } .svh-demo__art { min-height: 17rem; } }

/* ── 7 · Questions ─────────────────────────────────────────────── */
.svh-faq { padding: clamp(5rem, 11vw, 8rem) 0; }
.svh-faq .crescita-faq { margin: 2.5rem 0 3rem; }
.svh-faq h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.svh-more { display: grid; gap: 0.75rem; justify-items: center; text-align: center; } /* each link centred on its own line, wrapped or not (founder, 2026-10-26) */
.svh-more a { color: var(--crescita-ocean); font-weight: 500; }

/* ── 8 · Close ─────────────────────────────────────────────────── */
.svh-close { padding: clamp(5.5rem, 12vw, 9rem) 0; }
.svh-close .svh-wrap { display: grid; justify-items: center; gap: 1.25rem; }
.svh-close .svh-line { margin-inline: auto; }
.svh-actions { justify-content: center; margin-top: 0.5rem; }

/* Reduced motion: the engine stops the travel; the wipes and planes simply stand still. */
@media (prefers-reduced-motion: reduce) {
  .svh-card, .svh-tile, .svh-index a { transition: none; }
}
@media print {
  .svh-dark { background: #fff; color: var(--crescita-midnight); }
  .svh-dark .svh-h2, .svh-dark h3, .svh-dark p { color: var(--crescita-midnight); }
  .svh-hero__plane { display: none; }
}

/* The return thread: Email back to the Audit, the system repeating every month (founder, 2026-10-26). */
.svh-chain__loop { fill: none; stroke: #9fe3c4; stroke-width: 1.75; stroke-linecap: round; }
.svh-chain__label { display: none; }
.svh-chain.is-live .svh-chain__label {
  display: block; position: absolute; left: 0; top: 0; z-index: 2; opacity: 0;
  font-family: var(--font-secondary); font-size: 0.8125rem; font-style: normal; font-weight: 600; white-space: nowrap; color: #9fe3c4;
}
