/* Systematica — sito vetrina
   Layout: griglia editoriale a 12 colonne, sezioni a fasce alternate carta/inchiostro,
   le "capsule" del marchio come elemento grafico e di movimento ricorrente. */
:root {
  --ink: #15171c;
  --ink-2: #23262e;
  --paper: #f5f6f3;
  --paper-2: #eceee9;
  --line: #d9dcd5;
  --muted: #5d636b;
  --muted-ink: #a3a9b2;
  --orange: #ec5a24;
  --yellow: #f6b52e;
  --blue: #3f9fe0;
  --green: #79bf3f;
  --navy: #1d3c8f;
  --white: #ffffff;

  --f-display: "Unbounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.96rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.25rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --step-4: clamp(2.3rem, 1.6rem + 3vw, 4rem);

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-card: clamp(20px, 2.5vw, 32px);
  --space-layout: clamp(24px, 5vw, 64px);
  --space-section: clamp(48px, 7vw, 96px);
  --space-section-tight: clamp(48px, 5vw, 72px);
  --measure: 65ch;
  --radius: 999px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.22; }
h4 { font-size: var(--step-0); line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * 32px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 8px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--orange) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--blue) 75%);
}
.dark .eyebrow { color: var(--muted-ink); }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: var(--measure); color: var(--muted); }
.dark .lead { color: var(--muted-ink); }
.prose { max-width: var(--measure); display: grid; gap: var(--space-4); color: var(--muted); }
.dark .prose { color: var(--muted-ink); }

/* ---------- Bottoni ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: var(--radius);
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--orange);
  transform: translateY(101%); border-radius: inherit;
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn .arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--light:hover { --fg: var(--white); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { color: var(--white); }
.btn--small { padding: 10px 16px; font-size: .92rem; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  transition: transform .5s var(--ease), background .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(245, 246, 243, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 16px; }
.brand { display: block; flex: none; }
.brand img { height: 42px; width: auto; }
.brand .logo-light { display: none; }
@media (max-width: 420px) { .brand img { height: 34px; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; gap: 2px; align-items: center; }
.nav a, .nav button.nav-trigger {
  white-space: nowrap;
  font: 500 .95rem/1 var(--f-body); color: var(--ink); text-decoration: none;
  padding: 10px 12px; border-radius: var(--radius); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: background .25s;
}
.nav a:hover, .nav button.nav-trigger:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.has-sub { position: relative; }
.has-sub > .nav-trigger::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); }
.sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: var(--white); border-radius: 18px; padding: 8px;
  box-shadow: 0 20px 50px -20px rgba(21, 23, 28, .35), 0 0 0 1px var(--line);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; padding: 12px 14px; border-radius: 12px; width: 100%; }
.nav .ext { color: var(--muted); }
.nav .ext::after { content: "↗"; font-size: .8em; }
.header-cta { flex: none; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--paper); transition: transform .4s var(--ease); }
.burger span:nth-child(1) { top: 19px; } .burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1480px) { .header-cta { display: none; } }
@media (max-width: 1250px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
}

/* Barra servizi sopra l'header */
.topbar { background: var(--ink); color: var(--muted-ink); font-size: .82rem; }
.topbar .wrap { display: flex; gap: 8px 24px; padding-block: 8px; align-items: center; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: var(--paper); }
.topbar a:hover { color: var(--yellow); }
.topbar .tb-right { margin-left: auto; display: flex; gap: 20px; }
@media (max-width: 720px) { .topbar .tb-left span:not(:first-child) { display: none; } }

/* Menu mobile a schermo intero */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--paper);
  padding: calc(96px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 32px; overflow-y: auto;
  clip-path: circle(0 at calc(100% - 40px) 40px); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition: clip-path .7s var(--ease); }
.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .brand .logo-dark { display: none; }
.menu-open .brand .logo-light { display: block; }
.menu-open { overflow: hidden; }
.mobile-menu ul { display: grid; gap: 4px; }
.mobile-menu a { font-family: var(--f-display); font-size: clamp(1.6rem, 7vw, 2.4rem); text-decoration: none; display: block; padding: 4px 0; }
.mobile-menu .mm-sub a { font-family: var(--f-body); font-size: 1.1rem; padding-left: 20px; color: var(--muted-ink); }
.mobile-menu .mm-foot { margin-top: auto; display: grid; gap: 6px; font-family: var(--f-mono); font-size: .85rem; color: var(--muted-ink); }

/* ---------- Transizione di pagina ---------- */
.curtain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 100; pointer-events: none; display: block; }
/* arrivo da un cambio pagina: schermo già coperto prima del primo disegno, finché i pallini non prendono il posto */
html.is-nav body::before { content: ""; position: fixed; inset: 0; z-index: 99; background: #15171c; }

/* ---------- Sezioni ---------- */
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: var(--space-section-tight); }
.dark { background: var(--ink); color: var(--paper); }
.tint { background: var(--paper-2); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(24px, 4vw, 48px); max-width: 860px; }
.section-head h2 { font-size: var(--step-3); }
.split { display: grid; gap: var(--space-layout); grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; align-items: start; } .split--even { grid-template-columns: 1fr 1fr; } }
.split > * { min-width: 0; }

/* ---------- Hero home ---------- */
.hero { padding-block: var(--space-section); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 7fr 5fr; } }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 500; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .26em; z-index: -1; border-radius: var(--radius);
  background: var(--yellow); transform-origin: left; transform: scaleX(var(--hl, 1));
}
.hero-copy { display: grid; gap: 28px; position: relative; z-index: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-mark { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }
.hero-meta b { color: var(--ink); font-weight: 500; }
.orbit-tag {
  position: absolute; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em;
  background: var(--white); border-radius: var(--radius); padding: 8px 14px; box-shadow: 0 10px 30px -12px rgba(21, 23, 28, .35);
  white-space: nowrap; display: inline-flex; gap: 8px; align-items: center;
}
.orbit-tag i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
@media (max-width: 520px) { .orbit-tag { display: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; background: var(--paper); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: var(--step-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: ""; width: 34px; height: 14px; border-radius: var(--radius); background: var(--c, var(--orange)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Target cards ---------- */
.targets { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .targets { grid-template-columns: repeat(3, 1fr); } }
.target {
  --c: var(--orange);
  position: relative; overflow: hidden; border-radius: 28px; padding: 32px 28px 28px;
  background: var(--white); text-decoration: none; display: flex; flex-direction: column; gap: 18px; min-height: 340px;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), box-shadow .4s;
}
.target:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(21, 23, 28, .35); }
.target::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: var(--c); opacity: .14;
  left: var(--mx, 80%); top: var(--my, 0%); transform: translate(-50%, -50%); transition: opacity .3s; pointer-events: none;
}
.target:hover::before { opacity: .22; }
.target .num { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }
.target h3 { font-size: var(--step-2); }
.target p { color: var(--muted); }
.target .chips { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .82rem; padding: 6px 12px; border-radius: var(--radius); background: var(--paper-2); color: var(--ink-2); }
.dark .chip { background: var(--ink-2); color: var(--paper); }
.target .pill { width: 64px; height: 26px; border-radius: var(--radius); background: var(--c); transition: width .5s var(--ease); }
.target:hover .pill { width: 110px; }

/* ---------- Metodo (scroll orizzontale) ---------- */
.method { overflow: hidden; }
@media (min-width: 900px) { .method.section { padding-block: clamp(56px, 7vw, 96px); } .method .section-head { margin-bottom: 40px; } }
.method-track { display: flex; gap: 20px; }
.method-step {
  flex: 0 0 min(420px, 82vw); border-radius: 28px; padding: 32px; background: var(--ink-2);
  display: flex; flex-direction: column; gap: 18px; min-height: 320px; position: relative; overflow: hidden;
}
.method-step .n { font-family: var(--f-display); font-size: 5rem; line-height: 1; color: var(--c); }
.method-step h3 { font-size: var(--step-2); }
.method-step p { color: var(--muted-ink); }
.method-step .bar { margin-top: auto; height: 10px; border-radius: var(--radius); background: var(--c); width: 40%; }
@media (max-width: 899px) {
  .method-track { flex-direction: column; }
  .method-step { flex-basis: auto; min-height: 0; }
}

/* ---------- Servizi (righe grandi) ---------- */
.service-list { border-top: 1px solid var(--line); }
.dark .service-list { border-color: #33363f; }
.service-row {
  display: grid; grid-template-columns: 1fr; gap: 12px; padding-block: 32px; border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative; isolation: isolate;
}
.dark .service-row { border-color: #33363f; }
@media (min-width: 820px) { .service-row { grid-template-columns: 80px 1.2fr 1fr 60px; align-items: center; gap: 24px; } }
.service-row::before { content: ""; position: absolute; inset: 0 -16px; background: var(--c, var(--orange)); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); border-radius: 20px; }
.service-row:hover::before { transform: scaleY(1); }
.service-row:hover { color: var(--ink); }
.service-row:hover p, .service-row:hover .idx { color: var(--ink); }
.service-row .idx { font-family: var(--f-mono); color: var(--muted); font-size: var(--step--1); }
.service-row h3 { font-size: var(--step-3); transition: transform .5s var(--ease); }
.service-row:hover h3 { transform: translateX(10px); }
.service-row p { color: var(--muted); }
.dark .service-row p, .dark .service-row .idx { color: var(--muted-ink); }
.service-row .go { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px currentColor; font-size: 1.2rem; transition: transform .5s var(--ease); }
.service-row:hover .go { transform: rotate(-45deg); }

/* ---------- Stat ---------- */
.stats { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); background: var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--paper); padding: 28px 24px; display: grid; gap: 6px; }
.stat b { font-family: var(--f-display); font-weight: 500; font-size: var(--step-3); font-variant-numeric: tabular-nums; line-height: 1; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Card generiche ---------- */
.grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.grid > * { min-width: 0; }
.card {
  background: var(--white); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 0 0 1px var(--line); position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px rgba(21, 23, 28, .4); }
.dark .card { background: var(--ink-2); box-shadow: none; }
.card h3 { font-size: var(--step-1); font-family: var(--f-display); }
.card p { color: var(--muted); }
.dark .card p { color: var(--muted-ink); }
.card .tag { align-self: flex-start; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--radius); background: var(--c, var(--paper-2)); color: var(--ink); }
.card .dot { width: 44px; height: 18px; border-radius: var(--radius); background: var(--c, var(--orange)); }
.card ul.ticks { display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; color: var(--ink-2); }
.dark .ticks li { color: var(--paper); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-radius: var(--radius); background: var(--c, var(--green)); }

/* Tab per destinatario (software) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab { font: 600 1rem/1 var(--f-body); padding: 14px 20px; border-radius: var(--radius); border: 0; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; color: var(--ink); transition: background .3s, color .3s; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.tabpanel[hidden] { display: none !important; }

/* Valori (accordion numerato) */
.values { display: grid; gap: 0; border-top: 1px solid #33363f; }
.value { border-bottom: 1px solid #33363f; }
.value summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 40px; gap: 16px; align-items: center; padding-block: 26px; }
.value summary::-webkit-details-marker { display: none; }
.value summary .i { font-family: var(--f-mono); color: var(--muted-ink); }
.value summary h3 { font-size: var(--step-2); }
.value summary .pm { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #4a4e58; position: relative; }
.value summary .pm::before, .value summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--paper); transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.value summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.value[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); }
.value[open] summary .pm { background: var(--c); box-shadow: none; }
.value .body { padding: 0 56px 28px 72px; color: var(--muted-ink); max-width: 80ch; }
@media (max-width: 600px) { .value summary { grid-template-columns: 36px 1fr 40px; } .value .body { padding: 0 0 24px 52px; } }

/* Bundle assistenza */
.bundles { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .bundles { grid-template-columns: repeat(3, 1fr); } }
.bundle { border-radius: 28px; padding: 32px 28px; background: var(--white); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 20px; position: relative; overflow: hidden; }
.bundle.featured { background: var(--ink); color: var(--paper); box-shadow: none; }
.bundle .lvl { display: flex; gap: 6px; }
.bundle .lvl i { width: 30px; height: 12px; border-radius: var(--radius); background: var(--line); }
.bundle .lvl i.on { background: var(--c); }
.bundle.featured .lvl i { background: #3a3d46; }
.bundle.featured .lvl i.on { background: var(--c); }
.bundle h3 { font-size: var(--step-2); }
.bundle .ticks li { color: inherit; }
.bundle .plus { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.bundle.featured .plus { color: var(--muted-ink); }
.bundle .btn { margin-top: auto; align-self: flex-start; }

/* Pagine interne: hero */
.page-hero { padding-block: var(--space-section); position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; gap: var(--space-6); position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }
.crumbs { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.page-hero .caps { position: absolute; right: -60px; top: 50%; width: min(46vw, 560px); transform: translateY(-50%); z-index: 0; pointer-events: none; }
@media (max-width: 820px) { .page-hero .caps { opacity: .35; right: -120px; width: 80vw; } }

/* Fasi (numerate perché sono una sequenza) */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(var(--n, 3), 1fr); } }
.step { position: relative; padding: 28px 24px 24px; border-radius: 24px; background: var(--white); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; }
.dark .step { background: var(--ink-2); box-shadow: none; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--f-display); font-size: 2.6rem; color: var(--c, var(--orange)); line-height: 1; }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--muted); }
.dark .step p { color: var(--muted-ink); }
.step-line { height: 4px; border-radius: var(--radius); background: var(--line); margin-bottom: 24px; overflow: hidden; }
.step-line i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--orange), var(--yellow), var(--green), var(--blue)); transform-origin: left; }

/* CTA band */
.cta-band { border-radius: 36px; background: var(--ink); color: var(--paper); padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px); position: relative; overflow: hidden; display: grid; gap: 24px; }
.cta-band h2 { font-size: var(--step-3); max-width: 18ch; position: relative; z-index: 1; }
.cta-band p { color: var(--muted-ink); max-width: 52ch; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; justify-self: start; }
.cta-band .float-caps { position: absolute; right: -40px; bottom: -40px; width: min(48%, 420px); opacity: .95; }
@media (max-width: 700px) { .cta-band .float-caps { opacity: .25; width: 70%; } }

/* Academy */
.academy { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .academy { grid-template-columns: 1fr 1fr; } }
.academy-visual { aspect-ratio: 4 / 3; max-width: 100%; border-radius: 28px; background: var(--blue); position: relative; overflow: hidden; display: grid; place-items: center; }
.academy-visual .screen { width: 78%; aspect-ratio: 16 / 10; background: var(--paper); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4); padding: 16px; display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.academy-visual .screen .top { display: flex; gap: 6px; }
.academy-visual .screen .top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.academy-visual .screen .body { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.academy-visual .screen .play { border-radius: 10px; background: var(--ink); display: grid; place-items: center; }
.academy-visual .screen .play::after { content: ""; border-left: 22px solid var(--yellow); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.academy-visual .screen .list { display: grid; gap: 8px; align-content: start; }
.academy-visual .screen .list i { height: 14px; border-radius: var(--radius); background: var(--paper-2); }
.academy-visual .screen .list i:nth-child(1) { background: var(--green); width: 80%; }

/* Smart working highlight */
.highlight { border-radius: 28px; padding: clamp(28px, 4vw, 48px); background: var(--yellow); color: var(--ink); display: grid; gap: 16px; }
.highlight h3 { font-size: var(--step-2); }

/* Buffetti */
.buffetti-hero { background: var(--navy); color: var(--white); overflow: hidden; }
.buffetti-hero .crumbs, .buffetti-hero .lead { color: #c7d3f3; }
.buffetti-hero .eyebrow { color: #c7d3f3; }
.buffetti-hero .grid-b { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .buffetti-hero .grid-b { grid-template-columns: 1fr 1fr; } }
.buffetti-hero .grid-b > * { min-width: 0; }
.buffetti-hero .photo { border-radius: 28px; overflow: hidden; aspect-ratio: 3 / 2; max-width: 100%; }
.buffetti-hero .photo img { width: 100%; height: 100%; object-fit: cover; }
.buffetti-hero .logo-b { width: 180px; background: var(--white); border-radius: var(--radius); padding: 10px 18px; }
.flyers { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .flyers { grid-template-columns: repeat(4, 1fr); } }
.flyer { text-decoration: none; display: grid; gap: 12px; }
.flyer .cover { border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1.41; background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .4s; }
.flyer .cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.flyer:hover .cover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 0 0 1px var(--line), 0 30px 50px -24px rgba(21, 23, 28, .45); }
.flyer b { font-weight: 600; }
.flyer span { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.banner-strip { border-radius: 24px; overflow: hidden; }
.banner-strip img { width: 100%; }

/* Case studies */
.cases { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cases { grid-template-columns: repeat(4, 1fr); } }
.case { border-radius: 24px; aspect-ratio: 1 / 1.1; max-width: 100%; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; background: var(--c); color: var(--ink); position: relative; overflow: hidden; text-decoration: none; }
.case h3 { font-size: var(--step-2); position: relative; z-index: 1; }
.case .meta { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 8px; }
.case .big { position: absolute; right: -18%; bottom: -14%; width: 75%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .28); transition: transform .7s var(--ease); }
.case:hover .big { transform: scale(1.25); }

/* Contatti */
.contact-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-grid > * { min-width: 0; }
.info-block { display: grid; gap: 4px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.info-block .k { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.info-block .v { font-size: var(--step-1); font-weight: 500; }
.info-block a.v { text-decoration: none; }
.info-block a.v:hover { color: var(--orange); }
.form { background: var(--white); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); width: 100%;
  transition: border-color .25s, background .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); background: var(--white); }
.field textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.form-note { font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.form-note.ok { color: var(--green); font-weight: 600; }
.map-card { border-radius: 28px; overflow: hidden; position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.map-card iframe { border: 0; width: 100%; height: 100%; display: block; }

/* Placeholder (da completare) */
.ph { border: 1.5px dashed var(--muted); border-radius: 18px; padding: 18px 20px; color: var(--muted); font-size: .92rem; display: flex; gap: 12px; align-items: center; }
.ph::before { content: "TODO"; font-family: var(--f-mono); font-size: .72rem; background: var(--yellow); color: var(--ink); padding: 3px 8px; border-radius: var(--radius); }
.dark .ph { border-color: #4a4e58; color: var(--muted-ink); }
.logo-wall { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .logo-wall { grid-template-columns: repeat(5, 1fr); } }
.logo-wall div { aspect-ratio: 2 / 1; border-radius: 16px; border: 1.5px dashed var(--line); display: grid; place-items: center; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }

/* Newsletter */
.newsletter { display: grid; gap: var(--space-layout); grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .newsletter { grid-template-columns: 1fr 1fr; } }
.newsletter h2 { font-size: var(--step-3); }
.nl-form { display: grid; gap: 14px; }
.nl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nl-row input, .nl-row select { flex: 1 1 200px; font: inherit; padding: 14px 18px; border-radius: var(--radius); border: 1.5px solid #3a3d46; background: transparent; color: var(--paper); min-width: 0; }
.nl-row select option { color: var(--ink); }
.nl-row input::placeholder { color: var(--muted-ink); }
.nl-form .check { color: var(--muted-ink); }
.nl-form .check a { color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(56px, 8vw, 96px); padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); position: relative; overflow: hidden; }
.foot-top { display: grid; gap: var(--space-8); grid-template-columns: 1fr; padding-bottom: 56px; border-bottom: 1px solid #33363f; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.foot-top > * { min-width: 0; }
.foot-logo img { height: 48px; width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.site-footer h4 { font-family: var(--f-mono); font-size: .78rem; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-ink); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer address { font-style: normal; display: grid; gap: 4px; color: var(--paper); }
.site-footer .small { color: var(--muted-ink); font-size: .9rem; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px #3a3d46; }
.socials a svg { width: 20px; height: 20px; }
.socials a:hover { background: var(--paper); color: var(--ink); }
.foot-bottom { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .85rem; color: var(--muted-ink); }
.foot-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-word { font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 15vw, 15rem); line-height: .85; letter-spacing: -0.05em; color: var(--ink-2); padding-top: 40px; white-space: nowrap; user-select: none; }

/* ---------- Utility motion ---------- */
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}

/* =====================================================================
   Versione 2: home cinematografica
   ===================================================================== */
.grain::after {
  content: ""; position: absolute; inset: -50%; pointer-events: none; z-index: 0; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-4%, 3%); } 66% { transform: translate(3%, -5%); } 100% { transform: translate(-2%, 2%); } }

/* Header sopra l'hero scuro */
.home-cine .site-header:not(.is-scrolled) { background: var(--ink); }
.home-cine .site-header:not(.is-scrolled) .logo-dark { display: none; }
.home-cine .site-header:not(.is-scrolled) .logo-light { display: block; }
.home-cine .site-header:not(.is-scrolled) .nav a,
.home-cine .site-header:not(.is-scrolled) .nav button.nav-trigger { color: var(--paper); }
.home-cine .site-header:not(.is-scrolled) .nav a:hover,
.home-cine .site-header:not(.is-scrolled) .nav button.nav-trigger:hover { background: var(--ink-2); }
.home-cine .site-header:not(.is-scrolled) .sub a { color: var(--ink); }
.home-cine .site-header:not(.is-scrolled) .sub a:hover { background: var(--paper-2); }
/* voce della pagina corrente nel dropdown: resta leggibile (testo chiaro sulla pillola scura) */
.sub a[aria-current="page"], .sub a[aria-current="page"]:hover,
.home-cine .site-header:not(.is-scrolled) .sub a[aria-current="page"],
.home-cine .site-header:not(.is-scrolled) .sub a[aria-current="page"]:hover { background: var(--ink); color: var(--paper); }
.home-cine .site-header:not(.is-scrolled) .header-cta { --bg: var(--paper); --fg: var(--ink); }
.home-cine .site-header:not(.is-scrolled) .header-cta:hover { --fg: var(--white); }
.home-cine .site-header:not(.is-scrolled) .burger { background: var(--paper); }
.home-cine .site-header:not(.is-scrolled) .burger span { background: var(--ink); }
.home-cine.menu-open .site-header .burger, .menu-open .site-header .burger { background: var(--paper); }

/* Hero a tutto schermo */
.hero--cine { background: var(--ink); color: var(--paper); min-height: calc(100svh - 120px); display: grid; align-items: center; isolation: isolate; }
.hero--cine .wrap { position: relative; z-index: 1; }
.hero--cine .lead, .hero--cine .hero-meta { color: var(--muted-ink); }
.hero--cine .hero-meta b { color: var(--paper); }
.hero--cine .eyebrow { color: var(--muted-ink); }
.hero--cine .btn:not(.btn--ghost) { --bg: var(--paper); --fg: var(--ink); }
.hero--cine .btn:not(.btn--ghost):hover { --fg: var(--white); }
.hero--cine .orbit-tag { background: var(--ink-2); color: var(--paper); box-shadow: 0 0 0 1px #33363f; }
.hero--cine h1 .hl::after { background: var(--orange); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1; display: grid; justify-items: center; gap: 8px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-ink); }
.scroll-cue { transition: opacity .4s var(--ease), visibility .4s; }
.scroll-cue.is-gone { opacity: 0; visibility: hidden; }
.scroll-cue i { width: 2px; height: 36px; background: linear-gradient(var(--paper), transparent); border-radius: 2px; animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 959px) {
  .hero--cine .hero-mark { order: -1; max-width: 230px; justify-self: start; }
  .hero--cine .orbit-tag { display: none; }
  .scroll-cue { display: none; }
}

.hero-mark { display: grid; place-items: center; }
.hero-brand-mark { display: block; width: 76%; height: auto; overflow: visible; }
.home-consultation { padding-block: 0; }
.home-consultation + .section--tight { padding-block-start: var(--space-section); }
.solution-hero-copy { display: grid; gap: var(--space-4); min-width: 0; }
.solution-icon-stage { justify-self: center; width: min(100%, 340px); }
.solution-icon { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 8px 14px rgb(21 23 28 / .12)); }
@media (min-width: 820px) {
  .page-hero .solution-hero-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
}
@media (max-width: 819px) {
  .solution-icon-stage { width: clamp(130px, 42vw, 210px); justify-self: start; }
}
.service-row .idx img { display: block; margin-bottom: 8px; transition: transform .45s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .service-row:hover .idx img, .service-row:focus-visible .idx img { transform: translateY(-4px) rotate(-8deg); }
}
.partner-band { background: var(--paper); padding-block-start: 0; }
.partner-window { overflow: hidden; }
.partner-track { display: flex; width: max-content; animation: marquee 35s linear infinite; }
.partner-logos { display: flex; flex: none; align-items: center; gap: clamp(56px, 6vw, 104px); list-style: none; padding: 0 clamp(56px, 6vw, 104px) 0 0; margin: 0; }
.partner-logos li { display: grid; place-items: center; height: 124px; flex: none; }
/* loghi ritagliati senza bordi vuoti: --r compensa la forma, così i marchi larghi e quelli quadrati pesano uguale */
.partner-logos img { display: block; width: auto; height: calc(var(--r, .6) * clamp(84px, 7.5vw, 120px)); }
.partner-window:hover .partner-track, .partner-window:focus .partner-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .partner-track { display: block; width: auto; animation: none; }
  .partner-logos { flex-wrap: wrap; justify-content: center; padding: 0; }
  .partner-logos[aria-hidden="true"] { display: none; }
}
.business-area { display: flex; flex-direction: column; gap: 12px; }
.business-area img { object-fit: contain; }
.business-area .link-arrow { align-self: flex-start; margin-top: auto; }
.about-page {
  --about-spacing: var(--space-section);
}
.about-page > :is(.page-hero, .section, .section--tight) {
  padding-block: var(--about-spacing);
}
.about-page .section-head {
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.about-page .split > .section-head { margin-bottom: 0; }
.about-page > section[aria-labelledby="aree-business"] {
  padding-block: calc(var(--about-spacing) * .65);
}
.about-page > section:has(+ section[aria-labelledby="aree-business"]) {
  padding-block-end: calc(var(--about-spacing) * .65);
}
.about-page > section[aria-labelledby="aree-business"] + section {
  padding-block-start: calc(var(--about-spacing) * .65);
}
.case.case-photo {
  aspect-ratio: auto;
  padding: 0;
  justify-content: flex-start;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.case-photo > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.case-card-copy { display: grid; gap: var(--space-3); padding: var(--space-card); flex: 1; }
.case-card-copy .eyebrow { margin: 0; }
.case-card-copy h3 { font-size: var(--step-1); }
.case-card-copy p { color: var(--muted); }
.case-action { align-self: end; font-weight: 700; }
.case-photo:is(:hover, :focus-visible) .case-action { text-decoration: underline; }
.case-detail { align-items: start; }
.case-detail-photo { display: block; width: 100%; height: auto; border-radius: 24px; }
.project-page > :is(.section, .section--tight, .page-hero) {
  padding-block: clamp(44px, 6.5vw, 88px);
}
.project-intro { align-items: center; }
.project-intro-copy { display: grid; gap: 18px; }
.project-intro-copy h1 { overflow-wrap: anywhere; }
.project-tags { list-style: none; padding: 0; margin: 0; }
.project-photo { display: block; width: 100%; height: auto; max-height: 530px; object-fit: cover; border-radius: 24px; }
.project-step { display: grid; align-content: start; gap: 12px; }
.project-step h3 { margin: 0; }
.project-step .eyebrow { font-size: .75rem; }
.project-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.project-opening, .project-spread {
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.project-opening h2, .project-chapters h2, .project-outcome h2 {
  font-size: var(--step-3);
}
.project-opening .lead { color: var(--muted); }
.project-spread .project-figure { margin: 0; }
.project-figure img { display: block; width: 100%; border-radius: 24px; }
.project-chapters { display: grid; gap: 16px; }
.project-chapters h3 { font-size: var(--step-1); margin-top: 10px; }
.project-chapters p { color: var(--muted); max-width: 62ch; }
.project-outcome .wrap { display: grid; gap: 20px; }
.project-outcome h2 { max-width: 23ch; }
.project-outcome .lead { max-width: 62ch; color: var(--muted-ink); }
.project-outcome .eyebrow { color: var(--muted-ink); }
@media (min-width: 900px) {
  .project-opening { grid-template-columns: 1.15fr 1fr; }
  .project-spread { grid-template-columns: 1.2fr 1fr; }
  .project-spread--reverse { grid-template-columns: 1fr 1.2fr; }
  .project-spread--reverse .project-figure { grid-column: 2; grid-row: 1; }
  .project-spread--reverse .project-chapters { grid-column: 1; grid-row: 1; }
}
/* Case studies: scala editoriale e ritmo verticale */
.project-page {
  --project-gutter: var(--space-layout);
  --project-section-space: var(--space-section);
}
.project-page > :is(.section, .page-hero) { padding-block: var(--project-section-space); }
.project-reading, .project-chapters { font-size: clamp(1rem, 1.35vw, 1.1875rem); line-height: 1.6; }
.project-reading { display: grid; gap: var(--space-5); max-width: var(--measure); }
.project-reading h3 { font-size: var(--step-1); line-height: 1.22; margin-top: 8px; }
.project-reading p, .project-chapters p { color: var(--muted); }
.project-notes-grid { display: grid; align-items: start; gap: var(--project-gutter); }
.project-notes-heading { border-top: 4px solid var(--orange); padding-top: 24px; display: grid; gap: 16px; }
.project-notes h2, .project-stack h2 { font-size: var(--step-3); }
.project-stack { overflow: hidden; }
.project-stack .wrap { display: grid; gap: 20px; }
.project-stack .eyebrow { color: var(--muted-ink); }
.project-stack-grid { display: grid; gap: 16px; margin-top: 12px; }
.project-stack-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  background: var(--ink-2);
  border-top: 4px solid var(--stack-accent);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
}
.stack-index { color: var(--stack-accent); font: 1rem/1.4 var(--f-mono); }
.project-stack-grid h3 { font-size: var(--step-2); }
.project-stack-grid p { color: var(--muted-ink); line-height: 1.6; }
@media (min-width: 900px) {
  .project-notes-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); }
  .project-stack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Un intervallo condiviso tra sezioni con lo stesso fondo. */
main:not(.project-page, .about-page, .pg) > :is(.page-hero, .section):not(.dark, .tint, .buffetti-hero):has(+ .section:not(.dark, .tint, .home-consultation, .project-stack)) {
  padding-block-end: calc(var(--space-section) / 2);
}
main:not(.project-page, .about-page, .pg) > :is(.page-hero, .section):not(.dark, .tint, .buffetti-hero) + .section:not(.dark, .tint, .home-consultation, .project-stack) {
  padding-block-start: calc(var(--space-section) / 2);
}
main :is(.card, .target, .step, .case-card-copy) p { max-width: var(--measure); }

/* policy iubenda incorporate nella pagina */
.legal-embed { max-width: 860px; }
.legal-embed #iubenda_policy, .legal-embed .iub_container { font-family: var(--f-body, inherit) !important; }
