/* =============================================================
   Smityx - Design System
   Brand: #1A1A1A ink · #F9B100 gold · #E54600 orange
          #390F42 plum · #E6E6E6 mist
   Type:  Times Now / Playfair Display (display) · Poppins (UI)
   Style: Apple-inspired - whitespace, calm hierarchy, sober motion
   ============================================================= */

/* ---------- Self-hosted fonts (no external CDN) ---------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../assets/fonts/poppins-300.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/playfair-display-400.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/playfair-display-500.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('../assets/fonts/playfair-display-400-italic.woff2') format('woff2'); }

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --ink:        #1a1a1a;
  --ink-soft:   #222225;
  --ink-elev:   #2a2a2e;
  --gold:       #f9b100;
  --gold-deep:  #d99700;
  --gold-ink:   #8a5f00;   /* small text on light surfaces: AA contrast */
  --orange:     #e54600;
  --plum:       #390f42;
  --plum-soft:  #4c1857;
  --mist:       #e6e6e6;
  --paper:      #faf9f7;
  --white:      #ffffff;

  /* Semantic - light surfaces */
  --bg:          var(--paper);
  --surface:     var(--white);
  --text:        #1a1a1a;
  --text-muted:  #55555b;
  --border:      #e7e5e1;
  --border-strong:#d8d5cf;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(26,26,26,.05), 0 2px 8px rgba(26,26,26,.04);
  --shadow-md: 0 4px 12px rgba(26,26,26,.06), 0 12px 32px rgba(26,26,26,.07);
  --shadow-lg: 0 12px 32px rgba(26,26,26,.10), 0 30px 60px rgba(26,26,26,.12);
  --shadow-gold: 0 8px 24px rgba(249,177,0,.28);

  /* Typography */
  --font-display: "Times Now", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --fs-display: clamp(2.35rem, 1rem + 6vw, 6rem);
  --fs-h1:      clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  --fs-h2:      clamp(1.75rem, 1.2rem + 2.2vw, 2.85rem);
  --fs-h3:      clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --fs-lead:    clamp(1.075rem, 1rem + 0.5vw, 1.35rem);
  --fs-body:    1.0625rem;
  --fs-small:   1rem;
  --fs-eyebrow: 0.8125rem;

  /* Spacing scale */
  --sp-1: .5rem;  --sp-2: 1rem;   --sp-3: 1.5rem;  --sp-4: 2rem;
  --sp-5: 3rem;   --sp-6: 4rem;   --sp-7: 6rem;    --sp-8: 8rem;

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 780px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .5s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; color: var(--text); }
.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.02em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; }
p  { max-width: 68ch; }

.serif-i { font-style: italic; }
.gold-text { color: var(--gold-deep); }
/* Ampersand inside display headings: the serif swash "&" reads poorly at title
   size, so the glyph alone switches to the UI face. */
.amp { font-family: var(--font-sans); font-weight: 400; font-style: normal; font-size: .86em; letter-spacing: 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
/* Eyebrow used as a competence list: the gold rule aligns to the first line and
   labels never break mid-item */
.eyebrow-list { align-items: flex-start; max-width: min(100%, 60rem); letter-spacing: .14em; }
.eyebrow-list::before { margin-top: .85em; }
.eyebrow-list .items { display: block; line-height: 1.85; }
.eyebrow-list .nb { white-space: nowrap; }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); font-weight: 400; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--maxw-narrow); }
.section { padding-block: clamp(4rem, 3rem + 7vw, 8rem); }
.section-sm { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.stack > * + * { margin-top: var(--sp-3); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head p { margin-top: 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: 500; font-size: 1rem;
  line-height: 1; letter-spacing: -.01em;
  padding: 1rem 1.65rem; min-height: 52px;
  border-radius: 100px;
  transition: transform .35s var(--ease-out), background .3s var(--ease), box-shadow .35s var(--ease), color .3s;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: #ffbe1a; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(249,177,0,.4); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-arrow svg { transition: transform .35s var(--ease-out); }
.btn-arrow:hover svg { transform: translateX(4px); }

/* On-dark button variants */
.on-dark .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.28); }
.on-dark .btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }

.textlink {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 500; color: var(--text);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
  transition: gap .3s var(--ease-out), color .3s;
}
.textlink:hover { gap: .75rem; color: var(--gold-ink); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}
.site-header.scrolled {
  background: rgba(20,20,20,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
  /* wrap invece di overflow quando il testo viene ingrandito molto */
  flex-wrap: wrap; row-gap: .5rem; column-gap: 1rem;
}
.nav-links { min-width: 0; flex-wrap: wrap; row-gap: .25rem; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(1.4rem, 1.8vw, 2rem); }
.nav-links a {
  font-size: .95rem; font-weight: 400; color: rgba(255,255,255,.82);
  position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-cta .btn { min-height: 44px; padding: .7rem 1.3rem; font-size: .9rem; }
/* CTA inside the menu belongs to the mobile drawer only */
.nav-menu > .btn-primary { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Language switcher (IT / EN) ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
}
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; padding: .3rem .5rem; border-radius: 999px;
  font-size: .78rem; font-weight: 500; letter-spacing: .05em;
  color: rgba(255,255,255,.68); transition: color .25s, background .25s;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.is-active { background: rgba(255,255,255,.13); color: #fff; }
/* Switcher inside the menu belongs to the mobile drawer only */
.nav-menu > .lang-switch { display: none; }

/* Six nav items + CTA + language switcher need the drawer earlier than before */
@media (max-width: 62.5em) {
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0;
    background: rgba(18,18,18,.96);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1rem var(--gutter) 2rem;
    border-top: 1px solid rgba(255,255,255,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    max-height: calc(100dvh - 72px); overflow-y: auto;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    display: flex;
  }
  .nav-menu.open { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
  /* drawer: i link erano inline, quindi padding e area di tocco non si applicavano */
  .nav-menu .nav-links li { width: 100%; }
  .nav-menu .nav-links a {
    display: flex; align-items: center; width: 100%;
    min-height: 48px; padding: .75rem 0; font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.09);
  }
  .nav-menu .nav-links li:last-child a { border-bottom: 0; }
  .nav-menu a::after { display: none; }
  .nav-menu > .btn-primary { display: inline-flex; margin-top: 1.25rem; width: 100%; }
  .nav-cta .lang-switch { display: none; }
  .nav-menu > .lang-switch { display: inline-flex; margin-top: 1.25rem; }
  .nav-menu > .lang-switch a { width: auto; min-height: 44px; padding: .5rem 1.1rem; font-size: 1rem; border-bottom: 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding-top: clamp(8rem, 12vh, 11rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; z-index: 0;
  width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  right: -12vw; top: -18vw;
  background: radial-gradient(circle, rgba(249,177,0,.16), transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; z-index: 0;
  width: 40vw; height: 40vw; max-width: 520px; max-height: 520px;
  left: -14vw; bottom: -18vw;
  background: radial-gradient(circle, rgba(57,15,66,.55), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow { color: rgba(255,255,255,.7); }
.hero-eyebrow::before { background: var(--gold); }
.hero-title { color: #fff; margin: 1.75rem 0 0; }
.hero-title .accent { color: var(--gold); }
.hero-lead { color: rgba(255,255,255,.72); margin-top: 1.75rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

.hero-mark {
  position: absolute; z-index: 0; right: clamp(-4rem, -2vw, 2rem); top: 50%;
  width: clamp(180px, 34vw, 460px);
  transform: translateY(-46%); opacity: .9;
  animation: floaty 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floaty { 0%,100% { transform: translateY(-46%);} 50% { transform: translateY(-52%);} }
@media (max-width: 56.25em) { .hero-mark { opacity: .12; right: -8%; } }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2.25rem; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stats .stat .n { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); color: var(--gold); line-height: 1; }
.hero-stats .stat .l { font-size: .875rem; color: rgba(255,255,255,.6); margin-top: .5rem; }

/* ============================================================
   MARQUEE / TRUST STRIP
   ============================================================ */
.trust { background: var(--ink); color: rgba(255,255,255,.7); padding-block: 1.6rem; border-top: 1px solid rgba(255,255,255,.08); }
.trust .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; }
.trust .label { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.trust .badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 500; color: #fff; }
.trust .badge svg { color: var(--gold); flex: none; }

/* ============================================================
   SERVICES
   ============================================================ */
.grid { display: grid; gap: 1.25rem; }
.grid-services { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card .num {
  font-family: var(--font-display); font-size: 1rem; color: var(--gold-ink);
  letter-spacing: .05em; margin-bottom: 1.5rem; display: block;
}
.card .icon {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 1.5rem;
  background: linear-gradient(150deg, rgba(249,177,0,.16), rgba(249,177,0,.05));
  color: var(--gold-ink); border: 1px solid rgba(249,177,0,.22);
}
.card .icon svg { width: 26px; height: 26px; }
.card h2, .card h3 { margin-bottom: .75rem; }
.card h2 { font-size: var(--fs-h3); font-weight: 500; }
.card p { color: var(--text-muted); font-size: var(--fs-small); }
.card.card-lg { grid-column: span 1; }

/* Feature service card (wide, dark) */
.card-feature {
  background: var(--ink); color: #fff; border: none;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.card-feature::after {
  content: ""; position: absolute; right: -30px; bottom: -30px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(249,177,0,.22), transparent 65%);
}
.card-feature h2, .card-feature h3, .card-feature .num { color: #fff; }
.card-feature .num { color: var(--gold); }
.card-feature p { color: rgba(255,255,255,.7); }

/* ============================================================
   APPROACH / SPLIT SECTIONS
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 51.25em) { .split { grid-template-columns: 1fr; } }
.split-media {
  position: relative; aspect-ratio: 4/3.4; border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--plum), #1d0a24 70%);
  overflow: hidden; display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
}
.split-media img { width: 58%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); animation: floaty2 8s ease-in-out infinite; }
@keyframes floaty2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
.split-media.gold { background: linear-gradient(155deg, #ffca3d, var(--gold) 70%); }
.split-media.ink  { background: linear-gradient(155deg, #2a2a2e, var(--ink) 70%); }

.value-list { margin-top: 2rem; }
.value-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--border); }
.value-list li:last-child { border-bottom: 1px solid var(--border); }
.value-list .vico { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; margin-top: 2px; }
.value-list .vico svg { width: 15px; height: 15px; }
.value-list h3, .value-list h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem; line-height: 1.35; margin-bottom: .2rem; }
.value-list p { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }

/* ============================================================
   DARK SECTION
   ============================================================ */
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .lead, .section-dark p { color: rgba(255,255,255,.72); }
.section-dark .eyebrow { color: rgba(255,255,255,.65); }
.section-plum { background: linear-gradient(160deg, var(--plum) 0%, #240a2a 100%); color: #fff; }
.section-plum h2, .section-plum h3, .section-plum h4 { color: #fff; }
.section-plum p, .section-plum .lead { color: rgba(255,255,255,.75); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; margin-top: 3rem; counter-reset: step; }
.step { padding: 2rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); transition: background .4s, transform .4s var(--ease-out); }
.step:hover { background: rgba(255,255,255,.07); transform: translateY(-4px); }
.step .sn { font-family: var(--font-display); font-size: 2rem; color: var(--gold); display: block; margin-bottom: 1rem; }
.step h3, .step h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; line-height: 1.35; margin-bottom: .5rem; }
.step p { font-size: var(--fs-small); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; background: var(--gold); color: var(--ink); border-radius: var(--radius-xl); padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url('../assets/logo-mark.png') no-repeat center/contain; opacity: .06; transform: scale(1.4); }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: rgba(26,26,26,.75); margin: 1.25rem auto 2.25rem; }
.cta-band .btn-dark:hover { box-shadow: 0 14px 34px rgba(0,0,0,.28); }

/* ============================================================
   STATS / NUMBERS band
   ============================================================ */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 2rem; text-align: center; }
.numbers .n { font-family: var(--font-display); font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); color: var(--gold-ink); line-height: 1; }
.numbers .l { color: var(--text-muted); margin-top: .6rem; font-size: var(--fs-small); }
.section-dark .numbers .n { color: var(--gold); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem,6vw,4.5rem); align-items: start; }
@media (max-width: 51.25em){ .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .5rem; color: var(--text); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  padding: .95rem 1.1rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(249,177,0,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info .info-row { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.contact-info .info-row:first-child { border-top: 1px solid var(--border); }
.contact-info .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(249,177,0,.12); color: var(--gold-ink); display: grid; place-items: center; }
.contact-info .k { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.contact-info .v { font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.66); padding-top: clamp(3.5rem,6vw,5rem); }
/* colonne in rem: reggono anche lo zoom del testo al 200% senza overflow */
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 62.5625em) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 30px; margin-bottom: 1.25rem; }
.footer-brand p { font-size: var(--fs-small); max-width: 34ch; }
.footer-col h2 { font-family: var(--font-sans); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 1.2rem; }
.footer-col a { display: block; padding: .4rem 0; color: rgba(255,255,255,.72); font-size: .95rem; transition: color .25s, padding-left .25s; }
.footer-col a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding: 2rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   SCROLL REVEAL (sober motion)
   ============================================================ */
.reveal { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js-reveal .reveal { opacity: 0; transform: translateY(24px); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .hero-mark, .split-media img { animation: none; }
  .cover, .card, .case, .step, .settori .item, .btn { transition: none; }
  .project-row:hover .cover, .card:hover, .case:hover, .step:hover, .settori .item:hover { transform: none; }
}

/* ============================================================
   LEGAL / PROSE (Privacy · Cookie)
   ============================================================ */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-top: 2.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; margin-top: 1.75rem; }
.section-plum h3 { color: #fff; }
.prose p, .prose li { color: var(--text-muted); }
.prose a { color: var(--gold-ink); border-bottom: 1px solid rgba(249,177,0,.6); }
.prose a:hover { color: var(--orange); }
.prose ul { margin-left: 1.1rem; list-style: disc; }
.prose ul li { margin-top: .5rem; padding-left: .3rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .updated { font-size: .875rem; color: var(--text-muted); }
.legal-note {
  display: flex; gap: .7rem; align-items: flex-start;
  background: rgba(249,177,0,.08); border: 1px solid rgba(249,177,0,.3);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-top: 2.5rem;
  font-size: var(--fs-small); color: var(--text-muted);
}
.legal-note svg { flex: none; color: var(--gold-deep); margin-top: 2px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.divider { height: 1px; background: var(--border); border: none; }
.badge-pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 500; padding: .45rem .9rem; border-radius: 100px; background: rgba(249,177,0,.14); color: var(--gold-ink); border: 1px solid rgba(249,177,0,.3); }
.section-dark .badge-pill { background: rgba(249,177,0,.16); color: var(--gold); }
.tags { display: flex; flex-wrap: wrap; gap: .6rem; }
/* Neutral variant: product status statements ("in use", "in development") */
.status-pill { background: rgba(26,26,26,.05); border-color: var(--border-strong); color: var(--text-muted); }
.status-pill svg { flex: none; color: var(--gold-ink); }

/* Golden circle (cosa/come/perché) */
.gc { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.25rem; margin-top: 3rem; }
.gc .card .num { font-size: 2.4rem; line-height: 1; margin-bottom: 1rem; }
/* Product feature cards (Prodotti proprietari): denser grid, shorter titles */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1.25rem; margin-top: clamp(2.5rem,5vw,3.5rem); }
.feature-grid .card { padding: clamp(1.4rem,2.5vw,1.9rem); }
.feature-grid .card h3 { font-size: 1.12rem; line-height: 1.3; }

.settori { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px,1fr)); gap: 1rem; margin-top: 2.5rem; }
.settori .item { display: flex; align-items: center; gap: .9rem; padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: var(--fs-small); font-weight: 500; line-height: 1.45; transition: transform .4s var(--ease-out), box-shadow .4s; }
.settori .item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.settori .item .d { width: 10px; height: 10px; border-radius: 3px; background: var(--gold); flex: none; transform: rotate(45deg); }

/* ============================================================
   CASE STUDIES / PROGETTI
   ============================================================ */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; }

.case {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.case-media {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
}
.case-media .mk { width: 34%; opacity: .9; filter: drop-shadow(0 14px 30px rgba(0,0,0,.3)); transition: transform .6s var(--ease-out); }
.case:hover .case-media .mk { transform: scale(1.06) rotate(-2deg); }
/* ============================================================
   RESTORED: case studies, client tiles, form status, logo items
   ============================================================ */
.case-media .chip {
  position: absolute; top: 1rem; left: 1rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .04em;
  padding: .4rem .8rem; border-radius: 100px;
  background: rgba(255,255,255,.9); color: var(--ink); backdrop-filter: blur(6px);
}
.case-media.gold .chip { background: rgba(26,26,26,.88); color: #fff; }
.case-media.gold { background: linear-gradient(150deg, #ffca3d, var(--gold) 72%); }
.case-media.plum { background: linear-gradient(150deg, var(--plum-soft), #200b26 72%); }
.case-media.ink  { background: linear-gradient(150deg, #33333a, var(--ink) 72%); }
.case-media.orange { background: linear-gradient(150deg, #ff6a2b, var(--orange) 72%); }
.case-body { padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.case-tag { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.case h2, .case h3 { font-size: var(--fs-h3); }
.case p { color: var(--text-muted); font-size: var(--fs-small); margin: 0; }
.case-result {
  margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--border);
  display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-small); font-weight: 500; color: var(--text);
}
.case-result svg { flex: none; color: var(--gold-deep); margin-top: 2px; }
.case-feature-wide { grid-column: 1 / -1; }
.case-feature-wide .case-inner { display: grid; grid-template-columns: 1.05fr 1fr; }
.case-feature-wide .case-media { aspect-ratio: auto; min-height: 320px; }
.case-feature-wide .case-body { justify-content: center; padding: clamp(1.75rem, 4vw, 3.25rem); }
.case-feature-wide h2, .case-feature-wide h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.case-feature-wide p { font-size: var(--fs-body); }
.scaffold-note {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--text-muted);
  background: rgba(249,177,0,.1); border: 1px dashed rgba(249,177,0,.5);
  padding: .5rem .9rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.client {
  aspect-ratio: 2.6 / 1; display: grid; place-items: center;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
  color: var(--text-muted); font-size: .85rem; font-weight: 500;
  background: var(--surface); transition: border-color .3s, color .3s;
}
.section-dark .client { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.5); background: rgba(255,255,255,.03); }
.client:hover { border-color: var(--gold); color: var(--gold-ink); }
.client .plus { width: 22px; height: 22px; border-radius: 50%; background: rgba(249,177,0,.16); color: var(--gold-deep); display: grid; place-items: center; margin-bottom: .4rem; }
.form-status {
  display: none; align-items: center; gap: .65rem;
  margin-top: 1.25rem; padding: .95rem 1.15rem; border-radius: var(--radius-sm);
  font-size: var(--fs-small); font-weight: 500;
}
.form-status.show { display: flex; }
.form-status.ok { background: rgba(96,153,100,.12); color: #2f7a3a; border: 1px solid rgba(96,153,100,.35); }
.form-status.err { background: rgba(229,70,0,.1); color: var(--orange); border: 1px solid rgba(229,70,0,.35); }
.field.invalid input, .field.invalid textarea { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(229,70,0,.12); }
.field .err-msg { display: none; color: var(--orange); font-size: .82rem; margin-top: .4rem; }
.field.invalid .err-msg { display: block; }
.logo-item { height: 44px; display: grid; place-items: center; }
.logo-item img {
  height: var(--lh, 26px); width: auto; max-width: 180px;
  filter: brightness(0) invert(1); opacity: .6;
  transition: opacity .35s var(--ease);
}

/* ============================================================
   REFRESH 2026 - editorial layer (hero strip, clients, skills)
   ============================================================ */

/* Hero competence strip (replaces the all-caps eyebrow block) */
.hero-skills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: clamp(2rem, 4vw, 2.75rem); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid rgba(255,255,255,.14); }
.hero-skills .sk {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: .55rem 1.05rem; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.88); font-size: .95rem; line-height: 1.2;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s;
}
.hero-skills .sk:hover { background: rgba(249,177,0,.14); border-color: rgba(249,177,0,.55); color: #fff; }

/* Compact client grid (no motion, no hover-only information) */
.client-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3rem);
  align-items: center; margin-top: clamp(1.75rem, 4vw, 2.5rem);
}
.client-grid .logo-item { height: 46px; width: 100%; }
.client-grid .logo-item img { opacity: .8; max-width: 100%; }
.client-grid.on-light .logo-item img { filter: brightness(0); opacity: .7; }

/* Competence cards */
.skill-card { display: flex; flex-direction: column; }
.skill-card h3 { margin-bottom: .6rem; }
.skill-card p { margin-bottom: 1.25rem; }
.skill-card .note {
  font-size: .9rem; color: var(--text-muted);
  border-left: 2px solid rgba(249,177,0,.55); padding-left: .8rem; margin-bottom: 1.25rem;
}
.skill-card .textlink { margin-top: auto; align-self: flex-start; }

/* Real project screenshot: add <img class="shot" src="assets/projects/…"> inside .case-media */
.case-media img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; filter: none; transition: transform .6s var(--ease-out); }
.case:hover .case-media img.shot { transform: scale(1.05); }

.cover {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 10; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.5rem);
}
.cover > * { position: relative; z-index: 2; }
.cover::before, .cover::after { content: ""; position: absolute; z-index: 1; pointer-events: none; }
.cover-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cover .cover-name { font-family: var(--font-sans); font-weight: 600; font-size: clamp(1.05rem, .95rem + .35vw, 1.3rem); letter-spacing: -.01em; }
.cover .cover-logo { max-height: 26px; width: auto; max-width: min(50%, 150px); }
.cover .cover-kicker {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-align: right;
}
.cover .cover-line {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 2.05rem); line-height: 1.12; letter-spacing: -.01em;
  max-width: 24ch; margin: 0;
}
.preview .cover .cover-line { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); }

/* Bildap: green palette from the supplied Sparkle reference. */
.cover-bildap { background: linear-gradient(140deg, #1d4a41 0%, #2f6b5b 55%, #123029 100%); color: #fff; }
.cover-bildap .cover-kicker { color: #a4edc4; }
.cover-bildap::before { width: 62%; aspect-ratio: 1; border: 1.5px solid rgba(111,207,154,.6); border-radius: 50%; right: -14%; top: -22%; }
.cover-bildap::after { width: 42%; aspect-ratio: 1; border: 1.5px solid rgba(255,255,255,.16); border-radius: 50%; left: -10%; bottom: -18%; }

/* light + sober geometry */
.cover-bildo { background: linear-gradient(160deg, #f2eee7 0%, #ded4c4 100%); color: var(--ink); }
.cover-bildo .cover-kicker { color: #9d321d; }
.cover-bildo::before { inset: 0; background-image: linear-gradient(rgba(26,26,26,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(26,26,26,.07) 1px, transparent 1px); background-size: 46px 46px; }
.cover-bildo::after { width: 46%; aspect-ratio: 1; right: -8%; bottom: -16%; background: linear-gradient(140deg, rgba(216,72,42,.25), rgba(216,72,42,0)); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }

/* gold + ink marks */
.cover-cardioscan { background: linear-gradient(150deg, #f6f9ff 0%, #dbe7ff 100%); color: var(--ink); }
.cover-cardioscan .cover-kicker { color: rgba(26,26,26,.72); }
.cover-cardioscan::before { width: 70%; aspect-ratio: 1; border: 2px solid rgba(26,26,26,.14); border-radius: 50%; left: -18%; top: -26%; }
.cover-cardioscan::after { width: 120%; height: 2px; background: rgba(26,26,26,.16); left: -10%; bottom: 26%; transform: rotate(-8deg); }

/* anthracite + gold grid */
.cover-kao { background: linear-gradient(150deg, #f2fbf8 0%, #d5eee5 100%); color: #123d32; }
.cover-kao .cover-kicker { color: #14664e; }
.cover-kao::before { inset: 0; background-image: radial-gradient(circle at 78% 22%, rgba(0,175,138,.18), transparent 58%); }
.cover-kao::after { width: 54%; aspect-ratio: 1; border: 1.5px solid rgba(255,255,255,.18); left: -12%; bottom: -20%; transform: rotate(18deg); }

/* anthracite + orange accent */
.cover-meditrial { background: linear-gradient(155deg, #2a2a2e 0%, #17171a 80%); color: #fff; }
.cover-meditrial .cover-kicker { color: #ffb55d; }
.cover-meditrial::before { width: 58%; height: 3px; background: #f5911e; left: 0; top: 28%; }
.cover-meditrial::after { width: 34%; aspect-ratio: 1; border-radius: 50%; right: -8%; bottom: -14%; background: radial-gradient(circle, rgba(245,145,30,.4), transparent 68%); }

/* light + plum geometry */
.cover-colorobbia { background: linear-gradient(160deg, #ffffff 0%, #e0f3fa 100%); color: var(--ink); }
.cover-colorobbia .cover-kicker { color: #006389; }
.cover-colorobbia::before { width: 58%; aspect-ratio: 1; border: 2px solid rgba(0,158,218,.18); left: -14%; top: -20%; transform: rotate(24deg); }
.cover-colorobbia::after { width: 40%; height: 40%; right: 6%; bottom: 10%; background: repeating-linear-gradient(135deg, rgba(0,158,218,.16) 0 2px, transparent 2px 12px); }

.cover-cardioscan .cover-logo, .cover-colorobbia .cover-logo, .cover-kao .cover-logo { filter: none; opacity: 1; }
.cover-meditrial .cover-logo { filter: brightness(0) invert(1); opacity: 1; }

/* ---------- Project rows (cover left, short text right) ---------- */
.project-list { display: grid; gap: clamp(2rem, 4vw, 3.25rem); }
.project-row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  scroll-margin-top: 96px;
}
.project-row .project-body { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; max-width: 62ch; }
.project-row .project-body p { font-size: var(--fs-body); color: var(--text-muted); margin: 0; }
.project-row h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); }
.project-row h2 a { display: inline; }
.project-row .tags { margin-top: .15rem; }
.project-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 500; color: var(--text); border-bottom: 1.5px solid var(--gold); }
/* whole row clickable without nesting interactive elements */
.stretch-link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--radius-lg); }
.project-row:hover .cover { transform: translateY(-4px); }
.cover { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.project-row:hover .cover { box-shadow: var(--shadow-lg); }
@media (max-width: 51.25em) {
  .project-row { grid-template-columns: 1fr; }
}

/* compact preview cards (home) */
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(1.25rem, 3vw, 1.75rem); }
.preview { position: relative; display: flex; flex-direction: column; gap: .8rem; }
.preview .cover { aspect-ratio: 4 / 3; }
.preview h3 { font-size: var(--fs-h3); }
.preview p { color: var(--text-muted); font-size: var(--fs-small); margin: 0; }

/* ---------- Method: horizontal path on desktop, vertical on mobile ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 3vw, 2.25rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); position: relative; }
.flow-step { position: relative; padding-top: 2.5rem; }
.flow-step::before { content: ""; position: absolute; left: 0; top: 13px; width: 100%; height: 2px; background: rgba(255,255,255,.18); }
.flow-step:last-child::before { width: 14px; }
.flow-step .dot {
  position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px rgba(249,177,0,.16);
}
.flow-step .sn { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--gold); margin-bottom: .45rem; }
.flow-step h3, .flow-step h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; line-height: 1.35; margin-bottom: .4rem; }
.flow-step p { font-size: var(--fs-small); max-width: 34ch; }
@media (max-width: 53.75em) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-step { padding: 0 0 2rem 2.25rem; }
  .flow-step::before { left: 6px; top: 14px; width: 2px; height: 100%; }
  .flow-step:last-child::before { height: 0; }
  .flow-step .dot { left: 0; top: 7px; }
  .flow-step p { max-width: none; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .9rem; color: rgba(255,255,255,.7); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.breadcrumb a { border-bottom: 1px solid transparent; padding: .25rem 0; }
.breadcrumb a:hover { color: #fff; border-bottom-color: var(--gold); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current="page"] { color: #fff; }

/* ---------- Case study prose on project pages ---------- */
.case-prose { max-width: 66ch; }
.case-prose h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-top: clamp(2.25rem, 4vw, 3rem); }
.case-prose h2:first-child { margin-top: 0; }
.case-prose p { margin-top: 1.1rem; color: var(--text-muted); font-size: var(--fs-body); }
.case-aside { border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--surface); }
.case-aside h2 { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; margin-bottom: .75rem; }
.case-aside dl { display: grid; gap: .85rem; }
.case-aside dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.case-aside dd { font-size: var(--fs-small); }

/* Dark-surface overrides for the editorial layer (contrast) */
.section-dark .case-tag, .section-plum .case-tag { color: var(--gold); }
.section-dark .preview p, .section-plum .preview p,
.section-dark .project-row .project-body p { color: rgba(255,255,255,.78); }
.section-dark .project-link, .section-dark .textlink { color: #fff; }
.section-dark .badge-pill { background: rgba(249,177,0,.16); color: var(--gold); border-color: rgba(249,177,0,.35); }

/* Cover statement colors per variant */
.cover-bildap .cover-line, .cover-meditrial .cover-line { color: #fff; }
.cover-bildo .cover-line, .cover-cardioscan .cover-line, .cover-colorobbia .cover-line { color: var(--ink); }
.cover-meditrial .cover-name { color: #fff; }

/* Compact editorial layout: details remain available without dominating the page. */
.cover-kao .cover-line { color: #123d32; }
.why-compact .value-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem 3rem; }
.why-compact h2 { max-width: 24ch; }
.product-hero { padding-bottom: clamp(3rem,6vw,5rem); }
.product-hero .hero-title { font-size: var(--fs-h1); max-width: 26ch; }
.product-catalog { padding-top: 2rem; }
.product-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); padding: clamp(1.5rem,4vw,3rem); margin-top: 2rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); scroll-margin-top: 7rem; }
.product-heading h2 { margin: 1.25rem 0; font-size: clamp(1.7rem,2.6vw,2.4rem); }
.product-heading .lead { font-size: 1.0625rem; max-width: 44ch; }
.product-heading .btn { margin-top: 1.5rem; }
.product-status { display: inline-block; font-size: .875rem; font-weight: 500; color: #215444; background: #edf6f1; padding: .45rem .75rem; border-radius: .5rem; }
.product-status.development { color: #613c00; background: #fff2d3; }
.product-safeguard { margin-top: 1.25rem; padding-left: 1rem; border-left: 3px solid var(--gold); font-size: .9375rem; }
.product-content > h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.product-features { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.product-features li { padding: .85rem 0; border-bottom: 1px solid var(--border); }
.product-features strong, .product-features span { display: block; }
.product-features strong { font-size: 1rem; font-weight: 500; }
.product-features span { font-size: .9375rem; color: var(--text-muted); margin-top: .2rem; }
.product-detail { border-bottom: 1px solid var(--border); }
.product-detail summary { cursor: pointer; padding: .9rem 0; min-height: 44px; font-weight: 500; }
.product-detail p { font-size: .9375rem; padding-bottom: 1rem; line-height: 1.7; }
.product-detail summary:focus-visible { outline: 3px solid #906400; outline-offset: 4px; }
@media (max-width: 760px) {
  .product-panel { grid-template-columns: 1fr; }
  .why-compact .value-list { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 480px) {
  .hero-skills { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
  .hero-skills .sk { font-size: .875rem; padding: .65rem .75rem; border-radius: var(--radius-sm); }
}

/* A reserved right-hand lane keeps the decorative mark out of the text. */
.hero-separated .hero-mark {
  width: clamp(160px,18vw,260px);
  right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  top: 43%; opacity: .65; animation: none;
}
.hero-separated .hero-title { max-width: min(24ch, 70%) !important; }
.hero-separated .hero-lead { max-width: min(52ch, 70%) !important; }
@media (max-width: 1100px) {
  .hero-separated .hero-mark { display: none; }
  .hero-separated .hero-title { max-width: 24ch !important; }
  .hero-separated .hero-lead { max-width: 52ch !important; }
}
.service-summary { margin: 0 0 1.25rem; max-width: 55ch; }
.about-role, .about-products { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem,5vw,4rem); }
.about-role .lead, .about-products .lead { margin: 1.25rem 0; max-width: 44ch; font-size: 1.0625rem; }
.context-map { margin: 0; padding: clamp(1.25rem,3vw,2.5rem); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.context-map figcaption { font-size: .9375rem; font-weight: 500; margin-bottom: 2.5rem; }
.context-map ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; padding: 0; margin: 0; }
.context-map li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.context-map li:not(:last-child)::after { content: ''; position: absolute; top: 22px; left: 44px; right: 0; height: 1px; background: var(--gold-deep); }
.map-node { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold-deep); border-radius: 50%; background: #fff6df; color: #624300; font-size: .8125rem; margin-bottom: 1rem; }
.context-map strong { font-size: .9375rem; font-weight: 500; }
.context-map li > span:last-child { font-size: .8125rem; color: var(--text-muted); max-width: 12ch; }
.product-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.product-tile { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.25rem,2vw,1.75rem); border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink); min-width: 0; }
.tile-geoserv { background: #fff4d8; }
.tile-revalbis { background: #f1eaf3; }
.product-tile svg { width: 100%; height: auto; margin-bottom: 2rem; color: #7c5900; }
.tile-revalbis svg { color: var(--plum); }
.product-tile svg circle, .product-tile svg rect { fill: var(--surface); stroke: currentColor; stroke-width: 2; }
.product-tile h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.product-tile p, .product-tile small { font-size: .875rem; color: var(--text-muted); }
.product-tile > span { margin-top: auto; padding-top: 1.5rem; font-size: .875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.product-tile:hover { border-color: var(--gold-deep); }
@media (max-width: 820px) {
  .about-role, .about-products { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .product-pair { grid-template-columns: 1fr; }
  .context-map { padding: 1rem; }
  .context-map strong { font-size: .875rem; }
}

/* Allow room for the longer English label without shrinking the diagram text. */
:lang(en) .context-map ol { grid-template-columns: 1fr 1.3fr 1fr; }
