/* =============================================================
   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;
  --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:   0.9375rem;
  --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: 300; }

/* ---------- 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-deep); }

/* ============================================================
   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;
  height: 72px;
}
.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: 1000px) {
  .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; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    display: flex;
  }
  .nav-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-menu a { width: 100%; padding: 1rem 0; font-size: 1.15rem; border-bottom: 1px solid rgba(255,255,255,.07); }
  .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; padding: .5rem .9rem; 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: 900px) { .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-deep);
  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-deep); border: 1px solid rgba(249,177,0,.22);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .75rem; }
.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 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: 820px) { .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 h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem; 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 h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; 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-deep); 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: 820px){ .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-deep); 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); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 820px){ .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px){ .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { height: 30px; margin-bottom: 1.25rem; }
.footer-brand p { font-size: var(--fs-small); max-width: 34ch; }
.footer-col h5 { 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: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.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 { opacity: 1; transform: none; transition: none; }
  .hero-mark, .split-media img { animation: 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; }
.prose p, .prose li { color: var(--text-muted); }
.prose a { color: var(--gold-deep); border-bottom: 1px solid rgba(249,177,0,.5); }
.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: .82rem; font-weight: 500; padding: .45rem .9rem; border-radius: 100px; background: rgba(249,177,0,.14); color: var(--gold-deep); border: 1px solid rgba(249,177,0,.25); }
.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-deep); }

/* 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); }
/* Real project screenshot: add <img class="cover" src="assets/projects/…"> inside .case-media */
.case-media img.cover { 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.cover { transform: scale(1.05); }
.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-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-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-deep); }
.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; }

/* Featured case (wide, spans 2 cols on large grids) */
.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 h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.case-feature-wide p { font-size: var(--fs-body); }
@media (max-width: 760px) { .case-feature-wide .case-inner { grid-template-columns: 1fr; } .case-feature-wide .case-media { min-height: 220px; } }

/* Placeholder note ribbon (visible only to editors, subtle) */
.scaffold-note {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; 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;
}

/* ============================================================
   CLIENT LOGOS (marquee)
   Uniform monochrome marks: one height box for every logo, so different
   aspect ratios read as one set. The track holds two identical sets and
   shifts by exactly 50%, which loops seamlessly; spacing lives on the item
   margin (not flex gap) so the two halves stay equal.
   ============================================================ */
.logos {
  position: relative; overflow: hidden;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logos-track { display: flex; align-items: center; width: max-content; animation: logos-scroll 52s linear infinite; }
.logos:hover .logos-track, .logos:focus-within .logos-track { animation-play-state: paused; }
@keyframes logos-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.logo-item {
  flex: none; height: 44px;
  display: grid; place-items: center;
  margin-right: clamp(2.25rem, 4.5vw, 4rem);
}
/* --lh balances the marks optically: wide lockups sit lower, compact marks
   taller, so no logo dominates the row. */
.logo-item img {
  height: var(--lh, 26px); width: auto; max-width: 180px;
  filter: brightness(0) invert(1); opacity: .6;
  transition: opacity .35s var(--ease);
}
.logos:hover .logo-item img { opacity: .45; }
.logos .logo-item:hover img { opacity: 1; }
/* Light surfaces: keep the marks dark instead of white */
.logos.on-light .logo-item img { filter: brightness(0); opacity: .55; }
.logos.on-light .logo-item:hover img { opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  .logos { mask-image: none; -webkit-mask-image: none; }
  .logos-track { width: 100%; flex-wrap: wrap; justify-content: center; animation: none; }
  .logo-item { margin: .5rem clamp(1rem, 3vw, 2rem); }
  .logos-track [aria-hidden="true"] { display: none; }
}

/* Clients / trust logos strip (placeholder tiles) */
.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-deep); }
.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 (mailto flow feedback)
   ============================================================ */
.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; }
