/* ============================================================
   0 IDENTITY — 0identity.com
   Immagine Coordinata v1 (brand system ufficiale).
   Base antracite fissa · accento UNICO arancio #FF6A3D.
   Type: Inter (titoli display + corpo) · Instrument Serif Italic
   (parole chiave, sempre arancio) · JetBrains Mono (kicker ">",
   label, bottoni, footer). Font SOLO da Google Fonts.
   Vetro liquido su tutto cio' che si tocca.
   Font SOLO da Google Fonts: nessun woff locale (Clessio rimosso).
   ============================================================ */

/* Font locali Clessio (registro pattern-v5) */
:root {
  /* --- Colori FISSI (guida v1, non si toccano) --- */
  --ink:        #191917;  /* antracite fondo dark */
  --ink-2:      #232321;  /* antracite 2 — base glass */
  --paper:      #E9E7E2;  /* carta — fondo light + testi su dark */
  --gray-1:     #9A988F;  /* grigio corpo testo */
  --gray-2:     #6E6C66;  /* grigio profondo micro */
  --gold:       #D8C49A;  /* oro — cuore del fiore (solo il fiore) */

  /* --- Accento UNICO del progetto: ARANCIO --- */
  --accent:     #FF6A3D;
  --accent-dim: #8c3a21;                 /* arancio scurito ~45% */
  --grad-accent: linear-gradient(135deg, #FF6A3D 0%, #8c3a21 100%);
  --accent-15:  rgba(255,106,61,0.15);
  --accent-30:  rgba(255,106,61,0.30);

  /* --- Testo su antracite --- */
  --t-ink:      #E9E7E2;
  --t-ink-soft: #9A988F;
  --t-ink-micro:#6E6C66;
  --line-ink:   rgba(233,231,226,0.14);
  --line-ink-2: rgba(233,231,226,0.08);

  /* --- Testo su carta --- */
  --t-paper:      #191917;
  --t-paper-soft: #6E6C66;
  --line-paper:   rgba(25,25,23,0.16);
  --accent-paper: #d0491f;               /* arancio scurito 15-25% per contrasto su carta */

  /* --- Vetro liquido (variabili condivise) --- */
  --glass-fill:  rgba(35,35,33,0.55);
  --glass-hair:  rgba(255,255,255,0.15);
  --glass-sheen: rgba(255,255,255,0.07);
  --glass-diag:  rgba(255,255,255,0.04);
  --glass-fill-paper: rgba(255,255,255,0.42);
  --glass-hair-paper: rgba(25,25,23,0.10);

  --f-sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --f-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --w:   1240px;
  --gut: clamp(20px, 5vw, 64px);
  --sec: clamp(72px, 10vw, 144px);
  --r-card: 20px;   /* raggio card */
  --r-pill: 999px;  /* raggio pill/chip */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--t-ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* grana editoriale finissima (dither globale, statica) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff;
  font-family: var(--f-mono); font-size: 13px; padding: 12px 20px; z-index: 100;
  border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--w); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* ---------- tipografia ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.eyebrow::before { content: ">"; opacity: 0.9; font-weight: 700; }
.sec--paper .eyebrow { color: var(--accent-paper); }

/* titoli display: Inter SemiBold (brand v1). Mai maiuscolo.
   .serif = Instrument Serif italic arancio */
.t-display {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--t-ink);
}
.sec--paper .t-display { color: var(--t-paper); }
h1.t-display { font-size: clamp(42px, 8.5vw, 104px); }
h2.t-display { font-size: clamp(34px, 5.4vw, 68px); }

.serif, .k {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--accent);
  text-transform: none;
}
.sec--paper .serif, .sec--paper .k { color: var(--accent-paper); }

.lede {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  max-width: 60ch;
  color: var(--t-ink-soft);
  font-weight: 400;
}
.sec--paper .lede { color: var(--t-paper-soft); }

/* ---------- header ---------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(25,25,23,0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line-ink-2);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--t-ink);
}
.brand img { width: 30px; height: 30px; display: block; }
.brand .brand-word { position: relative; top: 1px; }
.brand .brand-word b { color: var(--accent); font-weight: 700; }

.head-nav { display: flex; align-items: center; gap: 26px; }
.head-nav a {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--t-ink-soft);
  position: relative;
  padding: 6px 0;
}
.head-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.2,0.6,0.2,1);
}
.head-nav a:hover, .head-nav a[aria-current="page"] { color: var(--t-ink); }
.head-nav a:hover::after, .head-nav a[aria-current="page"]::after { transform: scaleX(1); }
.head-nav .nav-cta {
  color: var(--t-ink);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--glass-fill);
  border: 1px solid var(--glass-hair);
  box-shadow: inset 0 1px 0 var(--glass-sheen);
}
.head-nav .nav-cta::after { display: none; }
.head-nav .nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.menu-btn {
  display: none;
  min-height: 44px;
  align-items: center;
  background: var(--glass-fill);
  border: 1px solid var(--glass-hair);
  color: var(--t-ink);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: var(--r-pill);
  box-shadow: inset 0 1px 0 var(--glass-sheen);
}
.menu-btn:hover { border-color: var(--accent); color: var(--accent); }

/* menu overlay mobile */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink);
  display: none;
  flex-direction: column;
  padding: 22px var(--gut) 44px;
}
.menu-overlay.open { display: flex; }
.menu-overlay .menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  margin-bottom: 8vh;
}
.menu-overlay nav { display: flex; flex-direction: column; gap: 6px; }
.menu-overlay nav a {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.12;
  padding: 6px 0;
}
.menu-overlay nav a .serif { font-weight: 400; }
.menu-overlay nav a:hover { color: var(--accent); }
.menu-overlay .menu-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--t-ink-soft);
}
.menu-overlay .menu-meta a:hover { color: var(--accent); }

@media (max-width: 940px) {
  .head-nav { display: none; }
  .menu-btn { display: inline-flex; }
  /* tap target >= 44px sul brand logo (guida accessibilita' mobile) */
  .site-head .brand { min-height: 44px; }
}

/* ---------- sezioni ---------- */
main { padding-top: 66px; }
.sec { padding: var(--sec) 0; position: relative; }
.sec--ink { background: var(--ink); color: var(--t-ink); }
.sec--paper { background: var(--paper); color: var(--t-paper); }
.sec-head { margin-bottom: clamp(36px, 6vw, 64px); }

/* pattern dither leggero d'angolo (<=40% superficie) */
.dither-corner::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: min(40%, 520px);
  height: min(70%, 640px);
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(var(--accent-30) 1px, transparent 1.4px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(120% 90% at 100% 0%, #000, transparent 62%);
  mask-image: radial-gradient(120% 90% at 100% 0%, #000, transparent 62%);
}
.sec--paper.dither-corner::before {
  background-image: radial-gradient(rgba(208,73,31,0.28) 1px, transparent 1.4px);
}
.dither-corner > * { position: relative; z-index: 1; }

/* ---------- hero (home) ---------- */
.hero {
  min-height: calc(100svh - 66px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 96px);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-ink-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-ink-2) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: radial-gradient(120% 90% at 20% 30%, #000 0%, transparent 66%);
  mask-image: radial-gradient(120% 90% at 20% 30%, #000 0%, transparent 66%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin: 6px 0 22px; }
.hero-sub {
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.55;
  color: var(--t-ink-soft);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

/* 3 card glass sotto la hero */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 640px;
}

/* fiore dither a destra */
.hero-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.hero-flower {
  width: min(100%, 460px);
  aspect-ratio: 1 / 1;
  display: block;
}

/* ---------- bottoni vetro liquido ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  color: var(--t-ink);
  background:
    linear-gradient(180deg, var(--glass-sheen), rgba(255,255,255,0) 46%),
    var(--glass-fill);
  border: 1px solid var(--glass-hair);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 1px 1px rgba(0,0,0,0.25);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 40%, var(--glass-diag) 50%, transparent 60%),
    radial-gradient(60% 40% at 8% 6%, rgba(255,255,255,0.16), transparent 60%),
    radial-gradient(60% 40% at 94% 96%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.btn::after { content: "\2192"; font-family: var(--f-mono); transition: transform 0.25s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 10px 26px rgba(0,0,0,0.32); }
.btn:hover::after { transform: translateX(4px); }

.btn--solid {
  color: #fff;
  background: var(--grad-accent);
  border-color: rgba(255,255,255,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 20px rgba(255,106,61,0.28);
}
.btn--solid:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 12px 30px rgba(255,106,61,0.4); }
.btn--down::after { content: "\2193"; }
.btn--down:hover::after { transform: translateY(3px); }

.sec--paper .btn {
  color: var(--t-paper);
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 46%), var(--glass-fill-paper);
  border-color: var(--glass-hair-paper);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 1px rgba(25,25,23,0.06);
}
.sec--paper .btn--solid { color: #fff; background: var(--grad-accent); border-color: rgba(255,255,255,0.3); }

/* ---------- card vetro liquido (riuso) ---------- */
.glass {
  position: relative;
  border-radius: var(--r-card);
  background:
    linear-gradient(180deg, var(--glass-sheen), rgba(255,255,255,0) 44%),
    var(--glass-fill);
  border: 1px solid var(--glass-hair);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 1px 2px rgba(0,0,0,0.24);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0.2,0.6,0.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 42%, var(--glass-diag) 50%, transparent 58%),
    radial-gradient(50% 34% at 6% 4%, rgba(255,255,255,0.14), transparent 60%),
    radial-gradient(50% 34% at 96% 98%, rgba(255,255,255,0.07), transparent 60%);
}
.glass:hover { transform: translateY(-4px); border-color: var(--accent-30); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 16px 40px rgba(0,0,0,0.34); }
.sec--paper .glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 44%), var(--glass-fill-paper);
  border-color: var(--glass-hair-paper);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 1px 2px rgba(25,25,23,0.06);
}
.sec--paper .glass:hover { border-color: rgba(208,73,31,0.35); box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 16px 40px rgba(25,25,23,0.12); }

/* mini-card hero */
.mini {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 138px;
}
.mini .mini-k {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.mini .mini-t {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--t-ink);
}
.mini .mini-b {
  font-size: 13px;
  line-height: 1.45;
  color: var(--t-ink-soft);
  margin-top: auto;
}

/* ---------- marquee ---------- */
.marq {
  overflow: hidden;
  border-top: 1px solid var(--line-ink-2);
  border-bottom: 1px solid var(--line-ink-2);
  padding: 15px 0;
  background: var(--ink-2);
}
.sec--paper + .marq, .marq--paper {
  background: var(--paper);
  color: var(--t-paper);
  border-color: var(--line-paper);
}
.marq-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marq 34s linear infinite;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--t-ink-soft);
}
.marq-track span { padding-right: 3.5em; }
.marq-track .dot { color: var(--accent); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- manifesto ---------- */
.manifesto { max-width: 900px; }
.manifesto p { margin-bottom: 26px; color: var(--t-paper-soft); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.65; }
.manifesto p strong { color: var(--t-paper); font-weight: 600; }
.manifesto-close {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.08;
  margin-top: 44px;
  color: var(--t-paper);
}
.manifesto-close .k { font-weight: 400; }

/* ---------- servizi ---------- */
.svc-list { border-top: 1px solid var(--line-ink); }
.svc {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 6px 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-ink);
}
.svc > * { transition: transform 0.3s cubic-bezier(0.2,0.6,0.2,1); }
.svc:hover > * { transform: translateX(10px); }
.svc-num {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.svc h3 {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
  margin-bottom: 10px;
  color: var(--t-ink);
}
.svc h3 .serif { font-weight: 400; }
.svc p { color: var(--t-ink-soft); max-width: 60ch; font-size: clamp(15px, 1.6vw, 16.5px); }
.svc:hover h3 { color: var(--accent); }
@media (min-width: 900px) {
  .svc { grid-template-columns: 96px minmax(260px, 400px) 1fr; align-items: baseline; }
  .svc h3 { margin-bottom: 0; }
}

/* ---------- griglia lavori ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
  perspective: 1400px; /* contesto 3D condiviso per il tilt Clessio delle card */
}
.card {
  display: block;
  position: relative;
  border-radius: var(--r-card);
  padding: 12px;
  background: linear-gradient(180deg, var(--glass-sheen), rgba(255,255,255,0) 40%), var(--glass-fill);
  border: 1px solid var(--glass-hair);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 1px 2px rgba(0,0,0,0.22);
  transform-style: preserve-3d; /* i layer figli galleggiano a translateZ diversi */
  transition: transform 0.35s cubic-bezier(0.2,0.6,0.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.card.tilting { transition: box-shadow 0.35s ease, border-color 0.35s ease; } /* durante il tilt segue il mouse 1:1 */
.sec--paper .card {
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0) 40%), var(--glass-fill-paper);
  border-color: var(--glass-hair-paper);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 2px rgba(25,25,23,0.06);
}
.card:hover { transform: translateY(-6px); border-color: var(--accent-30); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 18px 42px rgba(0,0,0,0.3); }
.sec--paper .card:hover { border-color: rgba(208,73,31,0.35); box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 18px 42px rgba(25,25,23,0.14); }
.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-2);
  border-radius: 12px;
  transform: translateZ(20px); /* foto un filo dietro alla caption vetro */
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(42%) contrast(1.03);
  transform: scale(1.001);
  transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.2,0.6,0.2,1);
}
.card:hover .card-media img { filter: grayscale(0%); transform: scale(1.045); }
.card-media::after {
  content: "Guarda \2197";
  position: absolute;
  right: 10px; top: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  background: var(--accent);
  color: #fff;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  transform: translateY(-140%);
  transition: transform 0.28s cubic-bezier(0.2,0.6,0.2,1);
  box-shadow: 0 4px 14px rgba(255,106,61,0.4);
}
.card:hover .card-media::after { transform: translateY(0); }
.card-media--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(var(--accent-30) 1px, transparent 1.4px);
  background-size: 9px 9px;
  background-color: var(--ink-2);
}
.card-media--ph span {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 92px;
  color: var(--accent);
}
/* GLASS OVERLAY sulla foto (glassmorphism, layer 3D più avanti = parallax reale) */
.card-glass {
  position: absolute;
  z-index: 3;
  left: 22px; right: 22px; bottom: 22px;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  transform: translateZ(70px); /* caption avanti a tutto */
  background: rgba(35,35,33,0.32);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 10px 26px -14px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.2,0.6,0.2,1);
  pointer-events: none;
}
.card:hover .card-glass, .card:focus-within .card-glass { opacity: 1; }
.card-glass .cg-k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.card-glass .cg-t {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--t-ink);
}
.sec--paper .card-glass {
  background: rgba(255,255,255,0.42);
  border-color: rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 10px 26px -14px rgba(25,25,23,0.3);
}
.sec--paper .card-glass .cg-k { color: var(--accent-paper); }
.sec--paper .card-glass .cg-t { color: var(--t-paper); }

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 6px 4px;
  color: var(--t-ink-micro);
  transform: translateZ(40px);
}
.sec--paper .card-meta { color: var(--t-paper-soft); }
.card h3 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.15;
  padding: 0 6px 6px;
  color: var(--t-ink);
  transform: translateZ(40px);
}
.sec--paper .card h3 { color: var(--t-paper); }
.card:hover h3 { color: var(--accent); }
.sec--paper .card:hover h3 { color: var(--accent-paper); }
.work-more { margin-top: 48px; }

/* ---------- marchi ---------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.brand-card {
  padding: 34px 28px 28px;
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.brand-card::after {
  content: "";
  position: absolute;
  top: 18px; right: 18px;
  width: 42px; height: 42px;
  background-image: radial-gradient(var(--accent) 1.1px, transparent 1.5px);
  background-size: 7px 7px;
  opacity: 0.8;
  border-radius: 8px;
}
.brand-card h3 {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  margin-bottom: 8px;
  color: var(--t-ink);
}
.brand-card p {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t-ink-soft);
}
.brand-card--soon h3 { color: var(--t-ink-soft); font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.1em; }
.brand-card--soon p { color: var(--accent); }

/* ---------- pagina portfolio dettaglio ---------- */
.proj-hero { padding: clamp(52px, 8vw, 96px) 0 0; }
.back {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--t-ink-soft);
  display: inline-flex;
  gap: 8px;
  margin-bottom: 36px;
}
.back:hover { color: var(--accent); }
.proj-hero h1 { max-width: 16ch; font-size: clamp(38px, 7vw, 92px); }
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line-ink);
  margin: clamp(36px, 6vw, 60px) 0 0;
  background: rgba(35,35,33,0.4);
}
.meta-grid > div { padding: 20px 24px; border-right: 1px solid var(--line-ink); border-bottom: 1px solid var(--line-ink); }
.meta-grid dt {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.meta-grid dd {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.1;
  color: var(--t-ink);
}
.proj-desc { max-width: 820px; }
.proj-desc p { margin-bottom: 24px; color: var(--t-paper-soft); font-size: clamp(16px, 1.8vw, 18px); line-height: 1.65; }
.proj-desc p:first-of-type { color: var(--t-paper); font-size: clamp(18px, 2.1vw, 22px); line-height: 1.55; }
.tech-title {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 44px 0 18px;
  color: var(--accent-paper);
}
.tech-title::before { content: "> "; color: var(--accent-paper); }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-list li {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 9px 15px;
  border: 1px solid var(--line-paper);
  border-radius: var(--r-pill);
  color: var(--t-paper-soft);
  background: rgba(255,255,255,0.35);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.tech-list li:hover { border-color: var(--accent-paper); color: var(--t-paper); }

.gallery { columns: 1; column-gap: 26px; }
@media (min-width: 720px) { .gallery { columns: 2; } }
.gallery figure {
  break-inside: avoid;
  margin: 0 0 26px;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line-ink);
  background: var(--ink-2);
}
.gallery img { width: 100%; }

.proj-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-ink);
}
.proj-nav a {
  padding: clamp(30px, 5vw, 52px) var(--gut);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.28s ease;
}
.proj-nav a:hover { background: var(--ink-2); }
.proj-nav a:hover .proj-nav-title { color: var(--accent); }
.proj-nav a + a { border-left: 1px solid var(--line-ink); text-align: right; align-items: flex-end; }
.proj-nav-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-ink-soft);
}
.proj-nav-title {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(19px, 2.6vw, 30px);
  line-height: 1.12;
  color: var(--t-ink);
}
@media (max-width: 640px) { .proj-nav-title { font-size: 18px; } }

/* ---------- about ---------- */
.quote {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.1;
  max-width: 22ch;
  margin-top: 36px;
  color: var(--t-ink);
}
.quote .k { font-weight: 400; }

/* ---------- contatti ---------- */
.contact-choices { display: flex; flex-direction: column; border-top: 1px solid var(--line-ink); max-width: 900px; }
.contact-choices a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-ink);
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: clamp(22px, 3.2vw, 38px);
  line-height: 1.1;
  color: var(--t-ink);
}
.contact-choices a small {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-ink-soft);
  white-space: nowrap;
  font-weight: 400;
}
.contact-choices a > * { transition: transform 0.28s ease; }
.contact-choices a:hover { color: var(--accent); }
.contact-choices a:hover > span { transform: translateX(12px); }
.contact-choices a:hover small { color: var(--t-ink); }

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  perspective: 1400px; /* contesto 3D per il tilt Clessio delle 3 card servizio */
}
.book-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.2,0.6,0.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.book-card.tilting { transition: box-shadow 0.35s ease, border-color 0.35s ease; }
.book-card > * { transform: translateZ(30px); } /* i contenuti galleggiano = parallax nel tilt */
.book-card .price { transform: translateZ(55px); } /* il prezzo davanti a tutto */
.book-card h3 { font-family: var(--f-sans); font-weight: 600; letter-spacing: -0.015em; font-size: 26px; line-height: 1.1; color: var(--t-paper); }
.book-card .price {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
  color: var(--accent-paper);
  align-self: flex-start;
  letter-spacing: -0.02em;
}
.book-card p { color: var(--t-paper-soft); font-size: 15px; flex-grow: 1; line-height: 1.55; }
.book-card .btn { align-self: flex-start; }
.book-note { font-family: var(--f-mono); font-size: 12px; color: var(--t-paper-soft); margin-top: 30px; letter-spacing: 0.02em; }

/* ---------- prose (privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--f-sans); font-weight: 600; letter-spacing: -0.01em; font-size: clamp(24px, 3vw, 34px); margin: 44px 0 16px; color: var(--t-ink); }
.prose p { margin-bottom: 20px; color: var(--t-ink-soft); }
.prose a { color: var(--accent); }

/* ---------- footer CTA + footer ---------- */
.foot-cta {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  color: var(--t-ink);
  padding: clamp(64px, 9vw, 116px) 0;
  border-top: 1px solid var(--line-ink);
}
.foot-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image: radial-gradient(var(--accent-30) 1px, transparent 1.4px);
  background-size: 10px 10px;
  -webkit-mask-image: radial-gradient(90% 120% at 90% 100%, #000, transparent 60%);
  mask-image: radial-gradient(90% 120% at 90% 100%, #000, transparent 60%);
}
.foot-cta .wrap { position: relative; z-index: 1; }
.foot-cta .eyebrow { color: var(--accent); }
.foot-cta h2 {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(42px, 8vw, 108px);
  line-height: 1.02;
  margin-bottom: 36px;
  color: var(--t-ink);
}
.foot-cta h2 .serif { font-weight: 400; }
.site-foot { background: var(--ink); border-top: 1px solid var(--line-ink); padding: 40px 0; }
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--t-ink-soft);
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-foot a:hover { color: var(--accent); }

/* ---------- hero responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 240px; margin-bottom: 8px; }
  .hero-flower { width: min(72%, 320px); }
  .hero-cards { grid-template-columns: 1fr; max-width: 520px; }
  .hero-cards .mini { min-height: 0; flex-direction: row; align-items: center; gap: 14px; }
  .hero-cards .mini .mini-b { margin-top: 0; }
}
@media (max-width: 480px) {
  .hero-cards .mini { flex-direction: column; align-items: flex-start; }
}

/* ---------- card tilt: spento sotto i 900px (dito = scroll) ---------- */
@media (max-width: 900px) {
  .work-grid { perspective: none; }
  .card, .card-media, .card-meta, .card h3, .card-glass { transform: none !important; }
  .card-glass { position: static; opacity: 1; margin-top: 10px; left: auto; right: auto; bottom: auto; }
  .book-grid { perspective: none; }
  .book-card { transform: none !important; }
}

/* ---------- reveal (base, sotto html.js) ---------- */
html.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.6,0.2,1); }
html.js .rv.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .rv { opacity: 0; transform: none; transition: opacity 0.6s ease; }
  html.js .rv.on { opacity: 1; }
  .marq-track { animation: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .glass:hover, .card:hover { transform: none; }
  /* niente tilt 3D: card e servizi piatti */
  .work-grid, .book-grid { perspective: none; }
  .card, .card-media, .card-meta, .card h3, .card-glass, .book-card { transform: none !important; }
  .card-glass { opacity: 1; }
}
