/* ============================================================
   INNESCO CREATIVO — multi-page site
   "L'innesco digitale del tuo business"
   Warm editorial system: paper + ink + terracotta
   ============================================================ */

:root {
  /* --- Color tokens (oklch, warm) --- */
  --paper:      oklch(0.977 0.004 255);  /* cool near-white */
  --surface:    oklch(0.996 0.002 255);  /* card surface */
  --surface-2:  oklch(0.958 0.006 255);  /* sunken / alt surface */
  --ink:        oklch(0.175 0.020 258);  /* near-black, cool — high contrast */
  --ink-soft:   oklch(0.175 0.020 258 / 0.66);
  --ink-faint:  oklch(0.175 0.020 258 / 0.40);
  --line:       oklch(0.175 0.020 258 / 0.14);
  --line-soft:  oklch(0.175 0.020 258 / 0.07);

  --dark:       oklch(0.165 0.022 256);  /* deep cool charcoal section bg */
  --dark-2:     oklch(0.215 0.026 256);
  --on-dark:    oklch(0.965 0.005 255);
  --on-dark-soft: oklch(0.965 0.005 255 / 0.64);
  --on-dark-line: oklch(0.965 0.005 255 / 0.15);

  /* accents — electric cobalt blue */
  --accent:     oklch(0.555 0.175 248);  /* cobalt / azure blue */
  --accent-ink: oklch(0.480 0.165 248);  /* readable accent on light */
  --accent-soft: oklch(0.555 0.175 248 / 0.14);
  --accent-hot: oklch(0.660 0.160 235);  /* bright azure, for glows */
  --sage:       oklch(0.640 0.150 165);  /* cool emerald, live indicator */

  /* type */
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 11px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }

/* subtle film grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
body.no-motion::after { display: none; }

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(80px, 11vw, 160px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--center::before { display: none; }

.display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h-1 { font-size: clamp(2.7rem, 6.6vw, 5.2rem); }
.h-2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.h-3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.em-serif { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -0.01em; color: var(--accent-ink); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.27rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.95em 1.6em;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s, box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--accent);
  color: oklch(0.99 0.01 85);
  box-shadow: 0 1px 0 oklch(0.99 0.01 85 / 0.25) inset, 0 10px 30px -12px var(--accent);
}
.btn--primary:hover { background: oklch(0.480 0.175 248); box-shadow: 0 1px 0 oklch(0.99 0.01 85 / 0.25) inset, 0 16px 40px -14px var(--accent); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn--on-dark { background: var(--on-dark); color: var(--dark); }
.btn--on-dark:hover { background: #fff; }
.btn--ghost-dark { color: var(--on-dark); border-color: var(--on-dark-line); }
.btn--ghost-dark:hover { border-color: var(--on-dark); }
.btn--lg { padding: 1.1em 2em; font-size: 1.05rem; }

/* ============================================================
   Header / nav
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: oklch(0.972 0.009 80 / 0.82);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}
.brand .spark { color: var(--accent); font-size: 0.85em; transform: translateY(-1px); }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav__links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s;
}
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__links a[aria-current="page"]:not(.btn) { color: var(--ink); }
.nav__links a[aria-current="page"]:not(.btn)::after { width: 100%; }
.nav__burger { display: none; width: 44px; height: 44px; border: none; background: none; position: relative; }
.nav__burger span { display: block; width: 22px; height: 1.6px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: transform 0.4s var(--ease), opacity 0.25s; }
.nav__burger.is-open span:first-child { transform: translateY(6.6px) rotate(45deg); }
.nav__burger.is-open span:last-child  { transform: translateY(-6.6px) rotate(-45deg); }
@media (max-width: 880px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: oklch(0.972 0.009 80 / 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 26px;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: transform 0.42s var(--ease), opacity 0.3s;
    box-shadow: 0 32px 50px -34px oklch(0.20 0.02 256 / 0.5);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { display: block; padding: 15px 0; font-size: 1.12rem; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; justify-content: center; }
  .brand { font-size: 1.25rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: 142px; padding-bottom: clamp(70px, 9vw, 120px); position: relative; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.5em 0.95em 0.5em 0.6em;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  font-size: 0.82rem; font-weight: 500; color: var(--ink-soft);
  margin-bottom: 28px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px oklch(0.640 0.150 165 / 0.18); }
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note { margin-top: 26px; font-size: 0.9rem; color: var(--ink-faint); display: flex; align-items: center; gap: 0.6em; }
.hero__note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* warm ember glow behind hero */
.hero::before {
  content: ""; position: absolute; z-index: 0;
  top: -10%; right: -6%; width: 60vw; max-width: 760px; aspect-ratio: 1;
  background: radial-gradient(circle at 60% 40%, oklch(0.660 0.160 235 / 0.26), oklch(0.555 0.175 248 / 0.16) 38%, transparent 66%);
  filter: blur(8px); pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}
.hero .wrap { position: relative; z-index: 1; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-4%, 4%) scale(1.08); } }
body.no-motion .hero::before { animation: none; }

/* spinning spark accent */
.spark { display: inline-block; }
.hero__badge .spin { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
body.no-motion .spin { animation: none; }

/* services card body */
.svc__body { display: flex; flex-direction: column; flex: 1; }

/* ============================================================
   Marquee band
   ============================================================ */
.marquee {
  background: var(--dark); color: var(--on-dark);
  padding-block: clamp(20px, 2.4vw, 30px);
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--dark);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: inline-flex; align-items: center; gap: 0; animation: marquee 28s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
body.no-motion .marquee__track { animation: none; }
.marquee__item {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.6rem); letter-spacing: -0.03em;
  padding-inline: clamp(20px, 3vw, 44px); display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px);
}
.marquee__item .dot { color: var(--accent); font-size: 0.7em; }
.marquee__item.is-ghost { color: transparent; -webkit-text-stroke: 1px var(--on-dark-soft); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* --- Dashboard mock --- */
.dash {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 40px 80px -50px oklch(0.20 0.02 256 / 0.5), 0 2px 4px oklch(0.20 0.02 256 / 0.04);
  position: relative;
}
.dash__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 0 4px; }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.dash__live { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; color: var(--sage); display: inline-flex; align-items: center; gap: 0.45em; }
.dash__live .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 oklch(0.640 0.150 165 / 0.5);} 50% { box-shadow: 0 0 0 6px oklch(0.640 0.150 165 / 0);} }
.dash__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.tile:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 18px 36px -26px oklch(0.20 0.02 256 / 0.6); }
.tile__head { display: flex; align-items: center; gap: 0.55em; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.tile__glyph { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; }
.tile__glyph svg { width: 14px; height: 14px; stroke: var(--accent-ink); }
.tile__val { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1; letter-spacing: -0.04em; }
.tile__sub { font-size: 0.78rem; color: var(--ink-faint); margin-top: 5px; }
.tile__bar { height: 5px; border-radius: 4px; background: var(--line); margin-top: 12px; overflow: hidden; }
.tile__bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.dash__foot {
  margin-top: 12px; padding: 13px 16px; border-radius: 12px;
  background: var(--dark); color: var(--on-dark-soft);
  font-size: 0.82rem; display: flex; align-items: center; gap: 0.6em;
}
.dash__foot .spark { color: var(--accent); }

/* ============================================================
   Stat strip
   ============================================================ */
.stats {
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 34px);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 0.95; letter-spacing: -0.045em; }
.stat__num .u { color: var(--accent-ink); }
.stat__label { font-size: 0.92rem; color: var(--ink-soft); margin-top: 10px; max-width: 22ch; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ============================================================
   Section heads
   ============================================================ */
.shead { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.shead--center { margin-inline: auto; text-align: center; }
.shead .eyebrow { margin-bottom: 22px; }
.shead h2 { margin-bottom: 20px; }

/* ============================================================
   Problems ("Ti suona familiare?")
   ============================================================ */
.problems { background: var(--surface-2); }
.prob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.prob {
  background: var(--paper);
  padding: clamp(28px, 3vw, 40px);
  transition: background 0.4s var(--ease);
}
.prob:hover { background: var(--surface); }
.prob__n { font-family: var(--serif); font-size: 0.95rem; color: var(--accent-ink); letter-spacing: 0.04em; }
.prob h3 { font-family: var(--display); font-weight: 600; font-size: 1.36rem; line-height: 1.16; margin: 18px 0 12px; letter-spacing: -0.025em; }
.prob p { font-size: 0.97rem; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 860px) { .prob-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .prob-grid { grid-template-columns: 1fr; } }

.pull {
  margin-top: clamp(56px, 7vw, 90px);
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 24ch;
  text-align: center;
  margin-inline: auto;
  color: var(--ink);
}
.pull::before { content: "“"; color: var(--accent); }
.pull::after { content: "”"; color: var(--accent); }

/* ============================================================
   Philosophy (dark)
   ============================================================ */
.philo { background: var(--dark); color: var(--on-dark); }
.philo .eyebrow { color: var(--accent); }
.philo .eyebrow::before { background: var(--accent); }
.philo .lead { color: var(--on-dark-soft); }
.philo h2 strong { color: var(--on-dark); font-weight: 400; }
.philo h2 b { font-weight: 400; font-style: italic; font-family: var(--serif); color: var(--accent); }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(50px, 6vw, 80px);
}
.pillar { padding-top: 26px; border-top: 1px solid var(--on-dark-line); }
.pillar__mark { width: 40px; height: 40px; margin-bottom: 22px; display: grid; place-items: center; border: 1px solid var(--on-dark-line); border-radius: 50%; }
.pillar__mark svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; }
.pillar h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin-bottom: 12px; letter-spacing: -0.03em; }
.pillar p { color: var(--on-dark-soft); font-size: 0.98rem; line-height: 1.6; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; gap: 0; } .pillar { margin-top: 0; } }

/* ============================================================
   Services (6 areas)
   ============================================================ */
.svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 16px; }
.svc {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 2.4vw, 38px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.svc > *:not(.svc__n) { position: relative; z-index: 1; }
.svc:hover { transform: translateY(-6px); border-color: var(--ink-faint); box-shadow: 0 34px 64px -46px oklch(0.20 0.02 256 / 0.55); }
.svc__left { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.svc__mark {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line);
  transition: background 0.4s var(--ease), border-color 0.4s;
}
.svc:hover .svc__mark { background: var(--accent); border-color: var(--accent); }
.svc__mark svg { width: 25px; height: 25px; stroke: var(--accent-ink); fill: none; stroke-width: 1.4; transition: stroke 0.4s; }
.svc:hover .svc__mark svg { stroke: oklch(0.99 0.01 85); }
.svc__n {
  position: absolute; top: 2px; right: 18px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(4rem, 7vw, 6.5rem); line-height: 1;
  letter-spacing: -0.05em; color: var(--accent);
  opacity: 0.09; z-index: 0; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.svc:hover .svc__n { opacity: 0.16; transform: translateY(-4px); }
.svc__cat { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink); }
.svc h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 14px; }
.svc p { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.chip {
  font-size: 0.82rem; font-weight: 500; color: var(--ink-soft);
  padding: 0.42em 0.8em; border: 1px solid var(--line); border-radius: 100px;
  background: var(--paper); transition: border-color 0.3s, color 0.3s; white-space: nowrap;
}
.svc__win {
  display: flex; align-items: center; gap: 0.6em; margin-top: auto;
  font-size: 0.95rem; font-style: italic; font-family: var(--serif); color: var(--accent-ink);
}
.svc__win::before { content: ""; width: 15px; height: 15px; border-radius: 50%; background: var(--accent-soft); border: 1.5px solid var(--accent); flex: none; }
@media (max-width: 720px) {
  .svc__left { gap: 14px; }
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing { background: var(--surface-2); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 2.6vw, 38px);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tier:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -40px oklch(0.20 0.02 256 / 0.55); }
.tier--feat { background: var(--dark); color: var(--on-dark); border-color: var(--dark); position: relative; }
.tier--feat .tier__name, .tier--feat .tier__sub { color: var(--on-dark-soft); }
.tier--feat .tier__title { color: var(--on-dark); }
.tier--feat li { color: var(--on-dark-soft); border-color: var(--on-dark-line); }
.tier--feat li::before { color: var(--accent); }
.tier--feat .tier__foot { color: var(--on-dark-soft); }
.tier__flag {
  position: absolute; top: 0; right: clamp(26px, 2.6vw, 38px); transform: translateY(-50%);
  background: var(--accent); color: oklch(0.99 0.01 85);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.5em 0.9em; border-radius: 100px; display: inline-flex; align-items: center; gap: 0.4em;
}
.tier__name { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.tier__title { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.42rem; line-height: 1.22; margin: 16px 0 14px; letter-spacing: -0.01em; }
.tier__sub { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.55; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tier--feat .tier__sub { border-color: var(--on-dark-line); }
.tier ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 0; flex: 1; }
.tier li { font-size: 0.95rem; line-height: 1.45; color: var(--ink-soft); padding: 11px 0 11px 28px; position: relative; border-bottom: 1px solid var(--line-soft); }
.tier li:last-child { border-bottom: none; }
.tier li::before { content: "→"; position: absolute; left: 0; top: 11px; color: var(--accent-ink); font-weight: 600; }
.tier li.is-base::before { content: "✓"; }
.tier li.is-base { font-weight: 600; color: var(--ink); }
.tier--feat li.is-base { color: var(--on-dark); }
.tier .btn { width: 100%; justify-content: center; margin-bottom: 16px; }
.tier__foot { font-size: 0.84rem; color: var(--ink-faint); text-align: center; }
/* featured tier — high-contrast text on dark (placed last so it wins the cascade) */
.tier--feat .tier__name { color: oklch(0.965 0.005 255 / 0.80); }
.tier--feat .tier__sub  { color: oklch(0.965 0.005 255 / 0.82); }
.tier--feat li          { color: oklch(0.965 0.005 255 / 0.84); }
.tier--feat li.is-base  { color: var(--on-dark); }
.tier--feat .tier__foot { color: oklch(0.965 0.005 255 / 0.74); }
.pricing__note { margin-top: 36px; text-align: center; font-size: 0.95rem; color: var(--ink-soft); max-width: 60ch; margin-inline: auto; }
@media (max-width: 940px) { .tiers { grid-template-columns: 1fr; max-width: min(460px, 100%); margin-inline: auto; } .tier--feat { order: -1; } }

/* ============================================================
   FAQ + testimonial
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; background: none; border: none; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; color: var(--ink);
  font-family: var(--display); font-size: clamp(1.15rem, 1.6vw, 1.42rem); font-weight: 600; letter-spacing: -0.025em;
}
.faq__icon { flex: none; width: 26px; height: 26px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--accent-ink); transition: transform 0.4s var(--ease), opacity 0.3s; }
.faq__icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq__icon::after  { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.faq__item.is-open .faq__icon::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq__a p { padding: 0 60px 28px 4px; color: var(--ink-soft); font-size: 1rem; line-height: 1.62; }

.quote {
  position: sticky; top: 100px;
  background: var(--dark); color: var(--on-dark);
  border-radius: var(--radius); padding: clamp(32px, 3.5vw, 48px);
  box-shadow: 0 40px 80px -50px oklch(0.20 0.02 256 / 0.6);
}
.quote__mark { font-family: var(--serif); font-size: 4rem; line-height: 0.6; color: var(--accent); }
.quote blockquote { margin: 18px 0 28px; font-family: var(--serif); font-weight: 300; font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.42; letter-spacing: -0.01em; }
.quote__person { display: flex; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid var(--on-dark-line); }
.quote__avatar { width: 50px; height: 50px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), oklch(0.42 0.16 250)); font-family: var(--serif); font-size: 1.3rem; color: oklch(0.99 0.01 85); }
.quote__name { font-weight: 600; font-size: 0.98rem; }
.quote__role { font-size: 0.86rem; color: var(--on-dark-soft); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .quote { position: static; order: -1; } }

/* ============================================================
   Final CTA
   ============================================================ */
.cta {
  background: var(--dark); color: var(--on-dark);
  text-align: center; position: relative; overflow: hidden;
}
.cta__glow { position: absolute; inset: auto 50% -40% auto; width: 700px; height: 500px; transform: translateX(50%); background: radial-gradient(ellipse at center, oklch(0.560 0.180 245 / 0.36), transparent 65%); filter: blur(20px); pointer-events: none; }
.cta .wrap { position: relative; }
.cta .eyebrow { color: var(--accent); }
.cta .eyebrow::before { display: none; }
.cta h2 { margin: 22px auto 24px; max-width: 18ch; }
.cta h2 strong { font-weight: 400; font-style: italic; color: var(--accent); }
.cta .lead { color: var(--on-dark-soft); margin-inline: auto; margin-bottom: 38px; text-align: center; }
.cta .lead strong { color: var(--on-dark); font-weight: 600; }
.cta__assure { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 3vw, 40px); margin-top: 38px; }
.cta__assure span { font-size: 0.9rem; color: var(--on-dark-soft); display: inline-flex; align-items: center; gap: 0.5em; }
.cta__assure span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cta__avail { margin-top: 22px; font-size: 0.88rem; color: var(--on-dark-soft); }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--dark-2); color: var(--on-dark); padding-block: clamp(50px, 6vw, 78px); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-bottom: 36px; border-bottom: 1px solid var(--on-dark-line); }
.footer .brand { color: var(--on-dark); }
.footer__tag { color: var(--on-dark-soft); font-size: 0.96rem; max-width: 44ch; margin-top: 14px; line-height: 1.55; }
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.footer__links a { font-size: 0.92rem; color: var(--on-dark-soft); transition: color 0.25s; }
.footer__links a:hover { color: var(--on-dark); }
.footer__bottom { padding-top: 26px; font-size: 0.84rem; color: oklch(0.955 0.012 82 / 0.4); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }
body.no-motion .reveal { opacity: 1; transform: none; transition: none; }
body.no-motion .dash__live .pulse { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Inner pages — page hero & breadcrumb
   ============================================================ */
.page-hero { padding-top: clamp(128px, 16vw, 168px); padding-bottom: clamp(8px, 3vw, 36px); }
.page-hero__inner { max-width: 920px; }
.breadcrumb { font-size: 0.86rem; color: var(--ink-faint); margin-bottom: 24px; display: flex; align-items: center; gap: 0.5em; }
.breadcrumb a { transition: color 0.25s; }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb .sep { opacity: 0.5; }
.page-hero h1 { margin-bottom: 24px; }
.section--alt { background: var(--surface-2); }

/* Image placeholder (striped) */
.ph {
  background:
    repeating-linear-gradient(135deg, var(--surface-2) 0 11px, var(--surface) 11px 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: var(--ink-faint);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.76rem; letter-spacing: 0.03em;
  text-align: center; padding: 1em;
}

/* ============================================================
   Projects / case history
   ============================================================ */
.proj-filter { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: clamp(34px, 4vw, 52px); }
.proj-filter button {
  font: inherit; font-size: 0.9rem; font-weight: 500;
  padding: 0.5em 1.05em; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}
.proj-filter button:hover { border-color: var(--ink-faint); color: var(--ink); }
.proj-filter button.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 34px); }
.proj {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.proj:hover { transform: translateY(-6px); box-shadow: 0 36px 70px -46px oklch(0.20 0.02 256 / 0.55); }
.proj .ph { border: none; border-bottom: 1px solid var(--line); border-radius: 0; aspect-ratio: 16 / 10; }
.proj__body { padding: clamp(24px, 2.4vw, 34px); display: flex; flex-direction: column; flex: 1; }
.proj__cat { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.proj__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 12px; }
.proj__desc { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.58; margin-bottom: 26px; }
.proj__metrics { display: flex; gap: clamp(16px, 2.6vw, 34px); margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.metric__n { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 0.95; letter-spacing: -0.045em; }
.metric__n .u { color: var(--accent-ink); }
.metric__l { font-size: 0.8rem; color: var(--ink-faint); margin-top: 6px; max-width: 16ch; }
@media (max-width: 760px) { .proj-grid { grid-template-columns: 1fr; } }

/* single case-study helpers */
.case-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.prob-grid--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .prob-grid--two { grid-template-columns: 1fr; } }

/* horizontal feature card (home teaser) */
.proj--wide { display: grid; grid-template-columns: 1.05fr 0.95fr; }
.proj--wide .ph { aspect-ratio: auto; height: 100%; min-height: 300px; border-bottom: none; border-right: 1px solid var(--line); }
.proj--wide .proj__body { justify-content: center; }
@media (max-width: 720px) {
  .proj--wide { grid-template-columns: 1fr; }
  .proj--wide .ph { aspect-ratio: 16 / 10; min-height: 0; border-right: none; border-bottom: 1px solid var(--line); }
}

/* ============================================================
   Chi siamo — manifesto, team, values
   ============================================================ */
.manifesto { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3.1vw, 2.6rem); line-height: 1.34; letter-spacing: -0.015em; text-wrap: balance; max-width: 22ch; }
.manifesto em { font-style: italic; color: var(--accent-ink); }
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about-split .ph { aspect-ratio: 4 / 5; height: 100%; }
.about-split .stack { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 820px) { .about-split { grid-template-columns: 1fr; } .about-split .ph { aspect-ratio: 16 / 10; } }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(22px, 3vw, 44px); max-width: 760px; }
.member .ph { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); margin-bottom: 18px; }
.member__name { font-family: var(--display); font-weight: 600; font-size: 1.34rem; letter-spacing: -0.03em; }
.member__role { font-size: 0.92rem; color: var(--accent-ink); margin-top: 4px; font-weight: 500; }
.member__bio { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.55; margin-top: 12px; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; max-width: 360px; } }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--on-dark-line); border: 1px solid var(--on-dark-line); border-radius: var(--radius); overflow: hidden; }
.value { background: var(--dark); padding: clamp(28px, 3vw, 42px); }
.value__n { font-family: var(--serif); color: var(--accent); font-size: 0.95rem; letter-spacing: 0.05em; }
.value h3 { font-family: var(--display); font-weight: 600; font-size: 1.45rem; margin: 14px 0 10px; letter-spacing: -0.03em; }
.value p { color: var(--on-dark-soft); font-size: 0.96rem; line-height: 1.58; }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }

/* ============================================================
   Contatti — form & info
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 76px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.84rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.field label .opt { color: var(--ink-faint); font-weight: 400; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.85em 1em; width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft); background: var(--paper);
}
.form .btn { justify-self: start; }
.form__note { font-size: 0.84rem; color: var(--ink-faint); }
.form__ok {
  display: none; padding: 18px 20px; border-radius: var(--radius-sm);
  background: oklch(0.640 0.150 165 / 0.12); border: 1px solid oklch(0.640 0.150 165 / 0.4);
  color: oklch(0.42 0.07 150); font-size: 0.96rem; font-weight: 500;
}
.form__ok.show { display: block; }

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.cinfo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 24px; transition: border-color 0.3s, transform 0.4s var(--ease);
}
.cinfo:hover { transform: translateY(-3px); border-color: var(--ink-faint); }
.cinfo__label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.cinfo__val { font-size: 1.08rem; color: var(--ink); }
.cinfo__val a { color: var(--accent-ink); }
.cinfo__val a:hover { text-decoration: underline; }
.contact-assure { display: flex; flex-direction: column; gap: 11px; margin-top: 8px; }
.contact-assure span { font-size: 0.92rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.6em; }
.contact-assure span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); flex: none; }

/* ============================================================
   Mobile global safety — evita overflow su schermi <480px
   ============================================================ */
@media (max-width: 480px) {
  /* forza 1 colonna su card servizi */
  .svc-list { grid-template-columns: 1fr; }

  /* card pacchetti al 100% senza max-width fisso */
  .tiers { max-width: 100%; }

  /* chip: testo va a capo se necessario */
  .chip { white-space: normal; }

  /* hero actions: bottoni in colonna */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* stats: 2 colonne invece di 4 */
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  /* sezione problemi: 1 colonna */
  .prob-grid { grid-template-columns: 1fr !important; }

  /* pilastri filosofia: 1 colonna */
  .pillars { grid-template-columns: 1fr; }

  /* cta finale: bottone full width */
  .cta .btn--lg { width: 100%; justify-content: center; }

  /* assure footer cta */
  .cta__assure { flex-direction: column; align-items: center; gap: 12px; }

  /* padding sezioni ridotto */
  .section { padding-block: clamp(56px, 8vw, 80px); }
}
