/* ──────────────────────────────────────────────────────────────────
   Montemagno Service — Design Tokens & Base
   Sistema: editoriale + tecnico, off-white + grafite, terracotta brand
   ────────────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --primary: #CC3F2C;
  --primary-700: #A8321F;
  --primary-100: #F8E4DF;

  /* Neutrals — grafite + off-white */
  --ink-1000: #0E0E0F;
  --ink-900:  #1A1A1B;
  --ink-700:  #3A3A3C;
  --ink-500:  #6B6B6E;
  --ink-400:  #8E8E92;
  --ink-300:  #B8B8BC;
  --ink-200:  #DCDCDE;
  --ink-100:  #ECECEE;
  --paper:    #FAFAF8;
  --paper-2:  #F4F2EC;   /* sabbia leggera */
  --sand:     #E8DFD3;   /* accent caldo per sezioni */
  --gold:     #A6864B;   /* accent secondario, parsimonioso */

  /* Stati */
  --success: #2F7D5B;
  --warning: #C28A1A;
  --error:   #B23A2A;

  /* Type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --header-h: 76px;

  /* Radii / shadows */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --shadow-1: 0 1px 2px rgba(20,18,15,.04), 0 4px 14px rgba(20,18,15,.06);
  --shadow-2: 0 4px 12px rgba(20,18,15,.06), 0 24px 48px rgba(20,18,15,.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ── Type scale ─────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
}
.eyebrow-num { color: var(--primary); }

h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink-900);
}
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.h1 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.025em; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.015em; }
.h4 { font-size: 18px; line-height: 1.3; }

.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-700); max-width: 64ch; }
.muted { color: var(--ink-500); }

/* ── Container ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); }

.btn-dark { background: var(--ink-900); color: var(--paper); }
.btn-dark:hover { background: var(--ink-1000); }

.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); }

.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ── Header / Nav ─────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.transparent { background: transparent; color: #fff; }
.site-header.solid { background: rgba(250,250,248,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--ink-100); color: var(--ink-900); }
.site-header.menu-open { background: var(--paper); border-bottom-color: var(--ink-100); color: var(--ink-900); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Pagine con hero chiaro (es. scheda articolo): l'header parte già "solid" anche prima dello scroll */
body.light-hero .site-header.transparent {
    background: rgba(250,250,248,.92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom-color: var(--ink-100);
    color: var(--ink-900);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 38px; height: 38px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-word .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 3px;
  opacity: .68;
}

.nav-primary { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.003em;
  border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link .caret { width: 10px; height: 10px; opacity: .55; transition: transform .2s ease; }
.nav-link:hover .caret, .nav-link.active .caret { transform: rotate(180deg); opacity: 1; }
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-tel {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -.005em;
  display: inline-flex; align-items: center; gap: 8px;
  opacity: .82;
}
.header-tel:hover { opacity: 1; }

.burger {
  width: 40px; height: 40px; border-radius: 6px;
  display: none; align-items: center; justify-content: center;
}

/* ── Megamenu panels ─────────────────────────────────────────── */
.mega-wrap {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 49;
  pointer-events: none;
  height: 0;
}
.mega-panel {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-100);
  box-shadow: 0 28px 48px -28px rgba(20,18,15,.16);
  color: var(--ink-900);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
.mega-panel.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

.mega-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gutter) 36px;
  /* Safety: se i contenuti restano troppo alti, scrolla invece di sforare */
  max-height: calc(100vh - 78px);
  overflow-y: auto;
}

/* ── Megamenu Servizi ───────────────────────────────── */
.mega-servizi { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.1fr; gap: 36px; }
.mega-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink-100);
}
.mega-col-title .num { color: var(--primary); margin-right: 8px; }
.mega-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mega-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 10px 10px 0;
  border-radius: 6px;
  transition: background .15s ease, padding .15s ease;
}
.mega-item:hover { background: var(--paper-2); padding-left: 10px; }
.mega-item .ico {
  width: 28px; height: 28px; flex: 0 0 28px;
  border: 1px solid var(--ink-200);
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--ink-700);
  background: #fff;
  transition: color .15s, border-color .15s, background .15s;
}
.mega-item:hover .ico { color: var(--primary); border-color: var(--primary); background: var(--primary-100); }
.mega-item .label {
  font-size: 14.5px; font-weight: 500;
  color: var(--ink-900);
  line-height: 1.25;
}
.mega-item .desc {
  display: block;
  font-size: 12px; color: var(--ink-500);
  margin-top: 3px;
  font-weight: 400;
  line-height: 1.4;
}

.mega-promo {
  background: var(--ink-900);
  color: var(--paper);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.mega-promo::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,255,255,.04) 22px 23px);
  pointer-events: none;
}
.mega-promo .tag {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
}
.mega-promo h4 {
  font-family: var(--font-display);
  font-size: 24px; line-height: 1.05; letter-spacing: -.02em;
  font-weight: 500;
  margin: 12px 0 8px;
  color: var(--paper);
}
.mega-promo p { font-size: 13px; color: rgba(255,255,255,.66); margin: 0; }
.mega-promo .arr-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-size: 13.5px; font-weight: 500;
  color: #fff;
}
.mega-promo .arr-btn:hover { color: var(--primary); }

/* ── Megamenu Catalogo (distintivo) ───────────────────── */
.mega-catalogo { display: grid; grid-template-columns: minmax(220px, 28%) 1fr minmax(280px, 30%); gap: 40px; }
.cat-zone-title {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-500);
  margin: 0 0 18px;
}
.cat-zone-title .num { color: var(--primary); margin-right: 8px; }
.cat-zone-title .of { color: var(--ink-300); margin-left: 8px; }

.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-900);
  background: #fff;
  transition: all .15s ease;
}
.cat-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-300);
  transition: background .15s ease;
}
.cat-chip:hover {
  background: var(--ink-900); color: var(--paper);
  border-color: var(--ink-900);
}
.cat-chip:hover .dot { background: var(--primary); }

/* I gruppi-settore fluiscono su 2 colonne (multicol) invece di impilarsi:
   dimezza l'altezza del megamenu evitando overflow del viewport. */
.cat-cols { columns: 2; column-gap: 36px; }
.cat-group {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 14px;
}
.cat-grouplabel {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary);
  margin: 0 0 4px;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--ink-200);
}
.cat-group-links { display: flex; flex-direction: column; }
.cat-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 4px;
  font-size: 13.5px;
  color: var(--ink-700);
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.cat-link:hover { color: var(--primary); }
.cat-link .arr { font-family: var(--font-mono); opacity: 0; transition: opacity .15s, transform .15s; }
.cat-link:hover .arr { opacity: 1; transform: translateX(2px); }

.cat-feature {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-900);
  color: var(--paper);
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
}
.cat-feature .img {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, #2a2a2c 0 12px, #1a1a1b 12px 24px);
}
.cat-feature .img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.7) 100%);
}
.cat-feature .placeholder-label {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .12em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
}
.cat-feature .content { position: relative; }
.cat-feature .tag {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.cat-feature h4 {
  font-family: var(--font-display);
  font-size: 22px; line-height: 1.1; letter-spacing: -.02em;
  margin: 0 0 14px; color: #fff; font-weight: 500;
}
.cat-feature .arr-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 4px;
  align-self: flex-start;
}
.cat-feature .arr-btn:hover { color: var(--primary); border-color: var(--primary); }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink-1000);
  color: #fff;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    /* simulated event photo placeholder: warm dusk gradient + light points */
    radial-gradient(ellipse 60% 40% at 30% 75%, rgba(255,170,80,.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(204,63,44,.18), transparent 65%),
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255,200,140,.10), transparent 70%),
    linear-gradient(180deg, #0a0a0c 0%, #16110d 60%, #1c1410 100%);
}
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 80px, rgba(255,255,255,.025) 80px 81px);
  mix-blend-mode: overlay;
}
.hero-bg::after {
  /* tensostructure silhouette suggestion via SVG */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 38%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 400' preserveAspectRatio='none'><path d='M0,400 L0,260 C160,180 320,150 480,140 C540,80 600,60 680,68 C760,60 820,80 880,140 C1040,150 1200,180 1360,200 C1440,210 1520,225 1600,260 L1600,400 Z' fill='%23000' opacity='.55'/><path d='M0,400 L0,300 C200,260 400,250 600,250 L640,210 L660,210 L680,250 L720,250 L740,210 L760,210 L780,250 C1000,250 1200,260 1400,290 L1600,320 L1600,400 Z' fill='%23000' opacity='.4'/></svg>") no-repeat bottom / cover;
  pointer-events: none;
}
.hero-placeholder-label {
  position: absolute; top: calc(var(--header-h) + 18px); right: var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  z-index: 2;
}

.hero-content {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 60px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 26px;
}
.hero-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--primary);
}
.hero h1 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}
.hero h1 .em {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}
.hero h1 .ln { display: block; }
.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: rgba(255,255,255,.78);
  max-width: 56ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta {
  display: flex; flex-direction: column; gap: 18px;
  border-left: 1px solid rgba(255,255,255,.18);
  padding-left: 28px;
  padding-bottom: 8px;
}
.hero-meta-item {}
.hero-meta-item .k {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
}
.hero-meta-item .v {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.hero-meta-item .v small {
  display: block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255,255,255,.6);
  letter-spacing: 0;
  margin-top: 4px;
}

.hero-marquee {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  padding: 14px 0;
}
.hero-marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 38s linear infinite;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.hero-marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.hero-marquee-track .sep { color: var(--primary); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Stats bar ─────────────────────────────────────────── */
.stats {
  background: var(--paper);
  border-bottom: 1px solid var(--ink-100);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 36px 0;
}
.stat {
  padding: 12px 32px;
  border-left: 1px solid var(--ink-100);
  display: flex; flex-direction: column; gap: 8px;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .k {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-500);
}
.stat .v {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.15;
  color: var(--ink-900);
}

/* ── Section base ─────────────────────────────────────────── */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-sand { background: var(--paper-2); }
.section-dark { background: var(--ink-900); color: var(--paper); }
.section-dark .eyebrow { color: rgba(255,255,255,.55); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lede { color: rgba(255,255,255,.7); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .right { padding-bottom: 6px; }

.kicker {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.kicker .num { color: var(--primary); font-weight: 500; }
.kicker .line { width: 28px; height: 1px; background: currentColor; opacity: .3; }
.section-dark .kicker { color: rgba(255,255,255,.6); }

/* ── Services 4×2 ─────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink-200);
  border-left: 1px solid var(--ink-200);
}
/* Variante 3×3 per i casi con 9 servizi (es. home con arredo eventi) */
.services-grid.services-grid-3 { grid-template-columns: repeat(3, 1fr); }
.svc-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px;
  min-height: 280px;
  border-right: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
  background: var(--paper);
  transition: background .2s ease;
}
.svc-card:hover { background: #fff; }
.svc-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-400);
}
.svc-card .ico {
  width: 56px; height: 56px;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  display: grid; place-items: center;
  margin: 28px 0 22px;
  color: var(--ink-900);
  background: #fff;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.svc-card:hover .ico {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: rotate(-3deg);
}
.svc-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -.015em;
  font-weight: 500;
  margin: 0 0 10px;
}
.svc-card p {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.5;
  margin: 0;
}
.svc-card .more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-700);
  padding-top: 24px;
}
.svc-card:hover .more { color: var(--primary); }

/* ── Process / Come lavoriamo ─────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.process-step {
  position: relative;
  padding: 28px 28px 28px 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.process-step:not(:last-child)::after {
  content: "";
  position: absolute; right: 24px; top: 36px;
  width: 28px; height: 1px; background: var(--primary);
}
.process-step .num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  color: var(--primary);
  margin-bottom: 16px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -.02em;
  font-weight: 500;
  margin: 0 0 10px;
  color: #fff;
}
.process-step p {
  font-size: 14px;
  color: rgba(255,255,255,.62);
  margin: 0;
  max-width: 28ch;
}

/* ── Allestimenti grid ─────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-200);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform .25s ease;
}
.gallery-item:hover { transform: translateY(-2px); }
.gallery-item.large { grid-column: span 7; aspect-ratio: 16 / 11; }
.gallery-item.small { grid-column: span 5; }
.gallery-item.third { grid-column: span 4; }
.gallery-item.tall { grid-column: span 4; aspect-ratio: 3 / 4; }
.gallery-item.wide { grid-column: span 8; aspect-ratio: 16 / 9; }

.gallery-img {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, #d8d2c5 0 14px, #cfc8b9 14px 28px);
}
.gallery-img.v2 { background: repeating-linear-gradient(45deg, #2a2a2c 0 14px, #232325 14px 28px); }
.gallery-img.v3 { background: repeating-linear-gradient(135deg, #b9554a 0 14px, #a14b41 14px 28px); }
.gallery-img.v4 { background: repeating-linear-gradient(45deg, #d4cab8 0 14px, #c5bca8 14px 28px); }
.gallery-img.v5 { background: repeating-linear-gradient(135deg, #1f1d1a 0 14px, #2a2724 14px 28px); }

.gallery-item .lab {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  background: rgba(255,255,255,.7);
  padding: 4px 8px; border-radius: 3px;
}
.gallery-img.v2 + .lab, .gallery-img.v5 + .lab { color: rgba(255,255,255,.8); background: rgba(0,0,0,.45); }
.gallery-img.v3 + .lab { color: rgba(255,255,255,.85); background: rgba(0,0,0,.3); }

.gallery-item .meta {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px; color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.gallery-item .meta .t {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.gallery-item .meta .c {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
}

/* ── Eventi chip strip ─────────────────────────────────────── */
.events-strip {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 32px;
}
.event-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--paper);
  transition: all .15s ease;
}
.event-chip .ico { width: 16px; height: 16px; color: var(--ink-500); }
.event-chip:hover {
  background: var(--ink-900); color: var(--paper);
  border-color: var(--ink-900);
}
.event-chip:hover .ico { color: var(--primary); }
.event-chip .arr { opacity: 0; transition: opacity .15s, transform .15s; }
.event-chip:hover .arr { opacity: 1; transform: translateX(2px); }

/* ── CTA finale ─────────────────────────────────────── */
.final-cta {
  position: relative;
  background: var(--primary);
  color: #fff;
  padding: clamp(64px, 8vw, 112px) 0;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(255,255,255,.08), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 60px, rgba(255,255,255,.04) 60px 61px);
  pointer-events: none;
}
.final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  position: relative; z-index: 1;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -.03em;
  font-weight: 400;
  color: #fff;
  margin: 0 0 24px;
}
.final-cta h2 .em { font-style: italic; }
.final-cta p { font-size: 17px; color: rgba(255,255,255,.85); max-width: 50ch; margin: 0 0 28px; }
.final-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.final-cta .info-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-md);
  padding: 24px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.final-cta .info-card .row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.14); }
.final-cta .info-card .row:first-child { border-top: 0; padding-top: 0; }
.final-cta .info-card .row .ico { width: 18px; height: 18px; color: rgba(255,255,255,.7); flex-shrink: 0; margin-top: 2px; }
.final-cta .info-card .row .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.final-cta .info-card .row .v { font-size: 14.5px; font-weight: 500; color: #fff; }

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--ink-1000);
  color: rgba(255,255,255,.7);
  padding: clamp(64px, 7vw, 96px) 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand .mark { display: flex; align-items: center; gap: 10px; }
.footer-brand .mark img { width: 44px; height: 44px; }
.footer-brand .mark .name { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff; }
.footer-brand .mark .name small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; opacity: .55; margin-top: 3px; font-weight: 400; }
.footer-brand .tag { font-size: 14.5px; line-height: 1.55; max-width: 32ch; color: rgba(255,255,255,.62); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-contact a, .footer-contact span { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.78); }
.footer-contact a:hover { color: #fff; }
.footer-contact .ico { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; opacity: .7; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
  font-weight: 500; margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.78); font-size: 14px; transition: color .15s, transform .15s; display: inline-block; }
.footer-col a:hover { color: #fff; transform: translateX(2px); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(255,255,255,.7);
  transition: all .15s;
}
.footer-socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Mobile off-canvas ─────────────────────────────────── */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(14,14,15,.4);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 88vw);
  z-index: 61;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ink-100);
}
.mobile-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}
.mobile-panel-foot {
  border-top: 1px solid var(--ink-100);
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.mobile-acc {
  border-bottom: 1px solid var(--ink-100);
}
.mobile-acc-trigger {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  letter-spacing: -.015em;
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-acc-trigger .plus { font-family: var(--font-mono); font-size: 18px; font-weight: 400; color: var(--primary); transition: transform .2s ease; }
.mobile-acc.open .mobile-acc-trigger .plus { transform: rotate(45deg); }
.mobile-acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.mobile-acc.open .mobile-acc-body { max-height: 1200px; }
.mobile-acc-body-inner { padding: 0 24px 22px; }
.mobile-sub-group { margin-top: 14px; }
.mobile-sub-group:first-child { margin-top: 0; }
.mobile-sub-group h5 {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 10px;
}
.mobile-sub-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-sub-group li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink-700);
}
.mobile-sub-group li a:hover { color: var(--primary); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-primary { display: none; }
  .header-tel { display: none; }
  .burger { display: inline-flex; }
  .header-cta .btn { display: none; }
  .mega-wrap { display: none; }

  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-meta { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding-left: 0; padding-top: 24px; flex-direction: row; flex-wrap: wrap; gap: 20px 32px; }
  .hero-meta-item { flex: 1 1 140px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2)::after { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .gallery-item.large, .gallery-item.small, .gallery-item.third, .gallery-item.tall, .gallery-item.wide { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .final-cta-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat { padding: 18px 0; border-left: 0; border-top: 1px solid var(--ink-100); }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-card { min-height: 220px; }
  .process { grid-template-columns: 1fr; }
  .process-step::after { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: clamp(40px, 11vw, 64px); }
  .hero-content { padding-bottom: 40px; }
}

/* Hero home con foto reale: niente silhouette/scanline finte sopra la foto */
.hero-bg-photo::before, .hero-bg-photo::after { content: none !important; }
