/* ==========================================================================
   Studio Settantuno — Design Furniture · Lucca
   Foglio di stile unico. Palette: nero caldo (60) · avorio (30) · oro (10)
   + verde bosco e bordeaux come fondi di sezione.
   ========================================================================== */

/* Font scelti per la leggibilità su schermo (vedi riepilogo):
   Newsreader — serif editoriale disegnato per la lettura a video, con asse ottico
   (titoli eleganti, dettagli robusti nei corpi piccoli); Source Sans 3 — sans
   umanista per i testi; Jost solo per le piccole maiuscole spaziate (come nel logo). */
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader.woff2') format('woff2');
  font-weight: 300 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 300 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3.woff2') format('woff2');
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost.woff2') format('woff2');
  font-weight: 300 500; font-style: normal; font-display: swap;
}

:root {
  /* palette brand */
  --black: #0d0c0a;
  --black-2: #15130f;
  --black-3: #1d1a15;
  --ivory: #f4eee2;
  --ivory-2: #ebe3d3;
  --ink: #17120e;
  --gold: #c2a062;
  --gold-soft: #d9bf8c;
  --gold-deep: #7a5c2a;          /* oro su fondo avorio (AA) */
  --forest: #1c3227;
  --forest-2: #24402f;
  --bordeaux: #4a1820;
  --bordeaux-2: #5c1f29;
  /* testi */
  --text: rgba(244, 238, 226, .9);
  --muted: rgba(244, 238, 226, .72);
  --muted-ink: #4f473e;
  --line: rgba(244, 238, 226, .14);
  --line-ink: rgba(23, 18, 14, .14);
  --bg: var(--black);
  /* tipografia */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-label: 'Jost', 'Futura', 'Helvetica Neue', Arial, sans-serif;
  /* sistema */
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .45);
  --radius: 2px;
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --nav-h: 88px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.06rem, 1rem + .25vw, 1.18rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--ivory); margin: 0 0 .5em; line-height: 1.08; letter-spacing: -.018em; }
h1 { font-size: clamp(2.7rem, 6.4vw, 6.2rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
h4 { font-size: .76rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
em, .it { font-style: italic; }
h1 em, h2 em, h3 em { color: var(--gold-soft); font-weight: 400; }
p { margin: 0 0 1.2em; }
/* etichette in maiuscolo spaziato: geometria del logo */
h4, .eyebrow, .btn, .link-arrow, .nav-menu a:not(.btn), .nav-lang, .srv-num, .piece-tag, .piece figcaption span,
.hscroll-count, .compare-label, .compare-steps li::before, .matter-list li, .cta-meta, .breadcrumb, .triptych figcaption,
.filters button, .gallery-item figcaption small, .contact-list small, .field label, .post-card .meta, .post-meta,
.hero-caption, .intro-count, .quote-band cite, .manifesto h2, .prose th, .insta-grid a::after, .cursor span { font-family: var(--font-label); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(90px, 13vw, 180px) 0; position: relative; }
.section-tight { padding: clamp(70px, 9vw, 120px) 0; }
.section-ivory { background: var(--ivory); color: var(--ink); }
.section-ivory h1, .section-ivory h2, .section-ivory h3 { color: var(--ink); }
.section-ivory h2 em, .section-ivory h3 em { color: var(--gold-deep); }
.section-ivory .eyebrow { color: var(--gold-deep); }
.section-ivory p { color: var(--muted-ink); }
.section-forest { background: var(--forest); }
.section-bordeaux { background: var(--bordeaux); }
.section-black2 { background: var(--black-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .76rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 28px;
}
.eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; }
.eyebrow.no-line::before { display: none; }
.lead { font-size: clamp(1.08rem, 1rem + .45vw, 1.32rem); line-height: 1.7; color: var(--text); max-width: 620px; }
.section-ivory .lead { color: var(--muted-ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.visually-hidden:focus { position: fixed !important; left: 16px; top: 16px; width: auto; height: auto; clip: auto; z-index: 500; padding: 12px 18px; background: var(--gold); color: var(--black); }

/* grana pellicola su tutto il sito: profondità "da galleria" */
.grain {
  position: fixed; inset: -50%; z-index: 300; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); }
}

/* ---------- bottoni ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 34px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: .78rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-io);
}
.btn:hover::before { transform: scaleY(1); }
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary::before { background: var(--ivory); }
.btn-outline { border-color: rgba(244, 238, 226, .4); color: var(--ivory); }
.btn-outline::before { background: var(--ivory); }
.btn-outline:hover { color: var(--black); border-color: var(--ivory); }
.section-ivory .btn-outline { border-color: rgba(23, 18, 14, .35); color: var(--ink); }
.section-ivory .btn-outline::before { background: var(--ink); }
.section-ivory .btn-outline:hover { color: var(--ivory); }
.btn .arrow { width: 22px; height: 10px; transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .76rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--ivory);
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.link-arrow:hover { color: var(--gold); border-color: var(--gold); }
.link-arrow svg { width: 22px; height: 10px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.section-ivory .link-arrow { color: var(--ink); border-color: var(--line-ink); }
.section-ivory .link-arrow:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* ==========================================================================
   INTRO — si compone il logo, poi il sipario sale. Solo CSS: se il JS
   è bloccato l'intro si chiude comunque da sola.
   ========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 250; background: var(--black);
  display: grid; place-items: center; pointer-events: none;
  animation: intro-out 1s var(--ease-io) 2.5s forwards;
}
.intro-logo { width: min(64vw, 440px); position: relative; }
.intro-logo img { width: 100%; clip-path: inset(0 100% 0 0); animation: intro-reveal 1.5s var(--ease-io) .25s forwards; }
.intro-count {
  position: absolute; left: 50%; bottom: -70px; transform: translateX(-50%);
  font-size: .7rem; letter-spacing: .4em; color: var(--muted);
  opacity: 0; animation: fade-in .6s var(--ease) 1.2s forwards;
}
@keyframes intro-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-out { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes fade-in { to { opacity: 1; } }
.intro-seen .intro { display: none; }
/* bozza: intro e hero restano fermi finché la schermata di accesso è aperta */
.is-gated .intro, .is-gated .intro *, .is-gated .hero, .is-gated .hero * { animation-play-state: paused !important; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  transition: background .5s var(--ease), height .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  --nav-h: 72px;
  background: rgba(13, 12, 10, .82);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.site-header.has-menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--black); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 1560px; }
.nav-brand { display: block; flex-shrink: 0; position: relative; z-index: 2; }
.nav-brand img { width: clamp(132px, 12vw, 168px); height: auto; transition: width .5s var(--ease); }
.scrolled .nav-brand img { width: clamp(120px, 10vw, 146px); }
.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) {
  position: relative; font-size: .76rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory); padding: 6px 0;
}
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav-menu a:not(.btn):hover::after, .nav-menu a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-menu a[aria-current="page"] { color: var(--gold-soft); }
.nav-lang { display: flex; gap: 10px; font-size: .7rem; letter-spacing: .2em; }
.nav-lang a { padding: 6px 0; color: var(--muted) !important; }
.nav-lang a.is-current { color: var(--gold) !important; }
.nav-lang span { color: var(--line); }
.nav-cta .btn { padding: 13px 22px; font-size: .68rem; }
.nav-menu-extra { display: none; }

/* --- menu mobile (template Royaletiger, adattato) --- */
body.is-locked { position: fixed; width: 100%; overflow: hidden; top: var(--scroll-lock-top, 0); overflow-anchor: none; }
.nav-overlay { display: none; }
.nav-toggle {
  display: none; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  position: relative; z-index: 2;
}
.nav-toggle span { display: block; width: 20px; height: 1px; background: var(--ivory); transition: transform .3s var(--ease), opacity .25s var(--ease); }
.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); }

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 89; background: rgba(0, 0, 0, .6);
    border: 0; padding: 0; cursor: pointer; opacity: 0; visibility: hidden;
    transition: opacity .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(92vw, 440px); background: var(--black-2);
    border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 92px 32px 28px; box-shadow: var(--shadow-lg);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease-io), visibility 0s linear .4s;
  }
  .nav-menu.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease-io), visibility 0s linear 0s; }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu a:not(.btn) {
    display: block; padding: 11px 0; font-family: var(--font-display) !important; font-size: 1.6rem; line-height: 1.3; letter-spacing: 0; text-transform: none;
  }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu li.nav-lang { border: 0; padding-top: 14px; }
  .nav-lang a { font-family: var(--font-label) !important; font-size: .8rem !important; letter-spacing: .2em !important; padding: 8px 0 !important; }
  .nav-cta { border: 0 !important; margin-top: 10px; }
  .nav-cta .btn { width: 100%; padding: 18px; }
  .nav-menu-extra { display: block; border: 0 !important; margin-top: 18px; font-size: .9rem; color: var(--muted); }
  .nav-menu-extra a { display: block !important; font-family: var(--font-body) !important; letter-spacing: 0 !important; text-transform: none !important; font-size: .92rem !important; padding: 3px 0 !important; color: var(--text); overflow-wrap: anywhere; }
}

/* ==========================================================================
   HERO HOME
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; background: var(--black); padding: calc(var(--nav-h) + 40px) 0 clamp(60px, 9vh, 110px);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); filter: saturate(.85) contrast(1.05); }
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active img { animation: kenburns 9s linear forwards; }
.hero-slide:first-child { opacity: 1; }
.hero-media.js-ready .hero-slide:first-child:not(.is-active) { opacity: 0; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(0, 0, 0); } to { transform: scale(1.02) translate3d(-1.5%, -1%, 0); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13,12,10,.94) 0%, rgba(13,12,10,.72) 45%, rgba(13,12,10,.3) 100%),
    linear-gradient(0deg, rgba(13,12,10,.95) 0%, rgba(13,12,10,0) 55%),
    linear-gradient(180deg, rgba(13,12,10,.7) 0%, rgba(13,12,10,0) 25%);
}
.hero-ghost {
  position: absolute; right: -2vw; top: 50%; z-index: 1; transform: translateY(-55%);
  font-family: var(--font-display); font-size: clamp(16rem, 42vw, 46rem); line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(194, 160, 98, .6); pointer-events: none; user-select: none;
  will-change: transform;
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero h1 { margin-bottom: 30px; max-width: 13ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: block; transform: translateY(110%); animation: line-up 1.3s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero .eyebrow, .hero .lead, .hero-cta, .hero-aside { opacity: 0; animation: rise 1.2s var(--ease) forwards; }
.hero .eyebrow { animation-delay: .1s; }
.hero .lead { animation-delay: .5s; }
.hero-cta { animation-delay: .7s; }
.hero-aside { animation-delay: .9s; }
/* il ritardo parte dopo l'intro (solo alla prima visita) */
.has-intro .hero h1 .line > span { animation-delay: 2.75s; }
.has-intro .hero h1 .line:nth-child(2) > span { animation-delay: 2.87s; }
.has-intro .hero h1 .line:nth-child(3) > span { animation-delay: 2.99s; }
.has-intro .hero .eyebrow { animation-delay: 2.8s; }
.has-intro .hero .lead { animation-delay: 3.2s; }
.has-intro .hero-cta { animation-delay: 3.4s; }
.has-intro .hero-aside { animation-delay: 3.6s; }
@keyframes line-up { to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero .lead { margin-bottom: 42px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; }
.hero-aside { text-align: right; min-width: 230px; }
.hero-caption { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.hero-caption strong { display: block; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.15rem; letter-spacing: 0; text-transform: none; color: var(--ivory); margin-top: 6px; min-height: 1.6em; transition: opacity .6s var(--ease); }
.hero-progress { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.hero-progress button { width: 44px; height: 18px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.hero-progress button::before, .hero-progress button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.hero-progress button::after { background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero-progress button.is-active::after { animation: progress 6.5s linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.hero-scroll {
  position: absolute; left: 50%; bottom: 0; z-index: 2; transform: translateX(-50%);
  width: 1px; height: clamp(50px, 8vh, 90px); background: var(--line); overflow: hidden;
}
.hero-scroll::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: scroll-line 2.4s var(--ease-io) infinite; }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- marquee ---------- */
.marquee { background: var(--black-2); border-block: 1px solid var(--line); overflow: hidden; padding: 30px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 3rem); color: var(--ivory); white-space: nowrap; padding-right: 1.1em;
}
.marquee-track span i { font-style: normal; color: var(--gold); font-size: .5em; vertical-align: middle; padding-left: 1.1em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- manifesto (testo che si illumina allo scroll) ---------- */
.manifesto-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.manifesto h2 { font-size: .74rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-deep); line-height: 1.6; }
.manifesto-figure { margin: 34px 0 0; overflow: hidden; aspect-ratio: 3 / 4; }
.manifesto-figure img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.manifesto-text {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.1vw, 3rem); line-height: 1.3; color: var(--ink) !important; letter-spacing: -.01em; margin-bottom: 50px;
}
.manifesto-text .w { opacity: .14; transition: opacity .35s linear; }
.manifesto-text .w.is-on { opacity: 1; }
.manifesto-text em { color: var(--gold-deep); }
.manifesto-sign { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.manifesto-sign p { margin: 0; font-size: .95rem; }
.manifesto-sign strong { display: block; font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: 1.5rem; color: var(--ink); }

/* ---------- servizi (righe tipografiche con immagine che segue il cursore) ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(50px, 7vw, 90px); }
.section-head h2 { max-width: 16ch; margin: 0; }
.section-head p { max-width: 430px; margin: 0; color: var(--muted); }
.section-ivory .section-head p { color: var(--muted-ink); }
.srv-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.srv-row { border-bottom: 1px solid var(--line); }
.srv-row a {
  display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr) 60px; gap: 30px; align-items: center;
  padding: clamp(30px, 4vw, 50px) 0; position: relative;
}
.srv-num { font-size: .78rem; letter-spacing: .2em; color: var(--gold); }
.srv-row h3 { font-size: clamp(2.2rem, 5vw, 4.6rem); margin: 0; transition: transform .7s var(--ease), color .5s var(--ease); }
.srv-row p { margin: 0; color: var(--muted); max-width: 440px; }
.srv-go { width: 60px; height: 60px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease); }
.srv-go svg { width: 20px; height: 10px; }
.srv-row a:hover h3 { transform: translateX(18px); color: var(--gold-soft); }
.srv-row a:hover .srv-go { background: var(--gold); border-color: var(--gold); color: var(--black); transform: rotate(-45deg); }
.srv-thumb { display: none; }
.srv-float {
  position: fixed; left: 0; top: 0; z-index: 80; width: 300px; aspect-ratio: 4 / 5; pointer-events: none; overflow: hidden;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.8); transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.srv-float.is-on { opacity: 1; }
.srv-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s var(--ease); }
.srv-float img.is-on { opacity: 1; }

/* ---------- collezione: scorrimento orizzontale "fissato" ---------- */
.hscroll { position: relative; background: var(--black); }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 64px; }
.hscroll-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: clamp(26px, 4vh, 50px); }
.hscroll-head h2 { margin: 0; }
.hscroll-count { font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 2rem); color: var(--muted); white-space: nowrap; }
.hscroll-count b { color: var(--gold); font-weight: 400; }
.hscroll-track { display: flex; gap: clamp(18px, 2.4vw, 36px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.piece { width: clamp(250px, 44vh, 440px); flex-shrink: 0; margin: 0; }
.piece-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--black-3); }
.piece-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease), filter .8s var(--ease); filter: saturate(.85); }
.piece:hover .piece-media img { transform: scale(1); filter: saturate(1.05); }
.piece-tag { position: absolute; left: 16px; top: 16px; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; padding: 7px 12px; background: rgba(13,12,10,.72); color: var(--gold-soft); backdrop-filter: blur(6px); }
.piece figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; align-items: baseline; }
.piece h3 { font-size: clamp(1.2rem, 1.5vw, 1.5rem); margin: 0; }
.piece figcaption span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.piece-end { width: clamp(250px, 44vh, 440px); flex-shrink: 0; aspect-ratio: 4 / 5; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px; gap: 26px; }
.piece-end p { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1.2; color: var(--ivory); margin: 0; }
.hscroll-bar { margin: clamp(26px, 4vh, 46px) var(--gutter) 0; height: 1px; background: var(--line); position: relative; }
.hscroll-bar span { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* ---------- prima / dopo ---------- */
.compare-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.compare-steps { list-style: none; padding: 0; margin: 36px 0 44px; counter-reset: st; }
.compare-steps li { counter-increment: st; padding: 16px 0 16px 56px; border-top: 1px solid var(--line); position: relative; color: var(--text); }
.compare-steps li::before { content: "0" counter(st); position: absolute; left: 0; top: 18px; font-size: .72rem; letter-spacing: .2em; color: var(--gold); }
.compare {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; background: var(--black);
  --pos: 50%;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--ivory); transform: translateX(-50%); }
.compare-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ivory); color: var(--black); font-size: 1.2rem; letter-spacing: .3em; padding-left: .3em;
}
.compare-label { position: absolute; top: 18px; font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; padding: 8px 14px; background: rgba(13,12,10,.75); color: var(--ivory); z-index: 2; }
.compare-label.l { left: 18px; } .compare-label.r { right: 18px; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.compare-note { font-size: .82rem; color: var(--muted); margin-top: 16px; }

/* ---------- la materia (colonne in parallasse) ---------- */
.matter { overflow: hidden; }
.matter-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); align-items: start; }
.matter-text { grid-column: 1 / span 5; position: sticky; top: 140px; }
.matter-cols { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.matter-cols figure { margin: 0; overflow: hidden; aspect-ratio: 2 / 3.3; }
.matter-cols figure:nth-child(2) { margin-top: 120px; }
.matter-cols figure:nth-child(3) { margin-top: 50px; }
.matter-cols img { width: 100%; height: 116%; margin-top: -8%; object-fit: cover; will-change: transform; }
.matter-list { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.matter-list li { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; border: 1px solid var(--line); padding: 9px 14px; color: var(--muted); }

/* ---------- metodo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(244,238,226,.18); }
.step { padding: 40px 30px 10px 0; border-right: 1px solid rgba(244,238,226,.18); }
.step + .step { padding-left: 30px; }
.step:last-child { border-right: 0; }
.step-num { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.6rem); line-height: 1; color: var(--gold-soft); margin-bottom: 26px; display: block; }
.step h3 { font-size: 1.5rem; }
.step p { color: rgba(244, 238, 226, .78); margin: 0; font-size: .98rem; }

/* ---------- clienti ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-ink); }
.client { padding: 36px 28px 30px 0; border-right: 1px solid var(--line-ink); }
.client + .client { padding-left: 28px; }
.client:last-child { border-right: 0; }
.client svg { width: 34px; height: 34px; color: var(--gold-deep); margin-bottom: 22px; }
.client h3 { font-size: 1.45rem; }
.client p { margin: 0; font-size: .98rem; }
.quote-band { margin-top: clamp(70px, 9vw, 120px); text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 980px; font-family: var(--font-display); font-style: italic; font-size: clamp(1.7rem, 3.2vw, 3rem); line-height: 1.25; color: var(--ink); }
.quote-band cite { display: block; margin-top: 26px; font-style: normal; font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- instagram ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 50px; }
.insta-grid a { position: relative; overflow: hidden; aspect-ratio: 1; display: block; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .5s var(--ease); }
.insta-grid a:hover img { transform: scale(1.07); opacity: .6; }
.insta-grid a::after { content: "@studio_settantuno_71"; position: absolute; inset: auto 0 14px 0; text-align: center; font-size: .66rem; letter-spacing: .2em; color: var(--ivory); opacity: 0; transition: opacity .5s var(--ease); }
.insta-grid a:hover::after { opacity: 1; }

/* ---------- CTA finale ---------- */
.cta-final { position: relative; overflow: hidden; text-align: center; padding: clamp(120px, 16vw, 220px) 0; }
.cta-final-bg { position: absolute; inset: -10% 0; z-index: 0; }
.cta-final-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); will-change: transform; }
.cta-final-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(13,12,10,.72) 0%, rgba(13,12,10,.93) 70%); }
.cta-final .container { position: relative; z-index: 1; }
.cta-final h2 { font-size: clamp(2.4rem, 6vw, 5.6rem); max-width: 15ch; margin: 0 auto 28px; }
.cta-final .lead { margin: 0 auto 46px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.cta-meta { margin-top: 40px; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.cta-meta a:hover { color: var(--gold); }

/* ==========================================================================
   PAGINE INTERNE
   ========================================================================== */
.page-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 60px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.page-hero.compact { min-height: 0; padding-top: calc(var(--nav-h) + clamp(70px, 10vw, 130px)); border-bottom: 1px solid var(--line); }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transform: scale(1.08); animation: kenburns 14s linear forwards; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,12,10,.96) 0%, rgba(13,12,10,.45) 60%, rgba(13,12,10,.7) 100%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.8rem); max-width: 16ch; }
.page-hero h1, .page-hero .lead, .page-hero .breadcrumb { animation: rise 1.2s var(--ease) both; }
.page-hero .lead { animation-delay: .2s; }
.breadcrumb { display: flex; gap: 12px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 34px; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 12px; color: var(--gold); }
.breadcrumb a:hover { color: var(--gold); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-media .frame { position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); z-index: -1; opacity: .5; }
.split-media.wide img { aspect-ratio: 4 / 3; }
.check-list { list-style: none; padding: 0; margin: 26px 0 36px; }
.check-list li { position: relative; padding: 13px 0 13px 34px; border-top: 1px solid var(--line); }
.section-ivory .check-list li { border-color: var(--line-ink); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 24px; width: 16px; height: 1px; background: var(--gold); }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.value { border-top: 1px solid var(--gold); padding-top: 30px; }
.value span { font-family: var(--font-display); font-style: italic; color: var(--gold-soft); font-size: 1.1rem; }
.value h3 { margin-top: 12px; }
.value p { color: var(--muted); margin: 0; }
.section-ivory .value p { color: var(--muted-ink); }
.section-ivory .value span { color: var(--gold-deep); }

.triptych { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(10px, 1.5vw, 20px); }
.triptych figure { margin: 0; }
.triptych img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.triptych figcaption { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 14px; }
.triptych figcaption b { color: var(--gold); font-weight: 400; margin-right: 10px; }

/* servizi dettaglio */
.service-block + .service-block { border-top: 1px solid var(--line); }
.service-index { font-family: var(--font-display); font-size: clamp(4rem, 8vw, 7rem); line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(194,160,98,.6); display: block; margin-bottom: 18px; }
.section-ivory .service-index { -webkit-text-stroke-color: var(--gold-deep); }

/* FAQ */
.faq { max-width: 900px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 28px 50px 28px 0; position: relative; font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.6rem); color: var(--ivory); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-weight: 300; font-size: 1.6rem; color: var(--gold); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 50px; margin: 0 0 28px; }

/* collezione */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; }
.filters button { background: none; border: 1px solid var(--line); color: var(--muted); padding: 11px 20px; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; transition: all .4s var(--ease); }
.filters button:hover { color: var(--ivory); border-color: var(--ivory); }
.filters button.is-active { background: var(--gold); border-color: var(--gold); color: var(--black); }
.gallery { columns: 3 320px; column-gap: 20px; }
.gallery-item { break-inside: avoid; margin: 0 0 20px; position: relative; overflow: hidden; cursor: zoom-in; background: var(--black-3); }
.gallery-item[hidden] { display: none; }
.gallery-item button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.gallery-item button:focus-visible { outline: 1px solid var(--gold); outline-offset: -4px; }
.gallery-item img { width: 100%; transition: transform 1.2s var(--ease), filter .6s var(--ease); filter: saturate(.88); }
.gallery-item:hover img { transform: scale(1.04); filter: saturate(1.05); }
.gallery-item figcaption { position: absolute; inset: auto 0 0 0; padding: 50px 20px 18px; background: linear-gradient(0deg, rgba(13,12,10,.88), transparent); font-family: var(--font-display); font-size: 1.15rem; color: var(--ivory); opacity: 0; transform: translateY(10px); transition: all .5s var(--ease); pointer-events: none; }
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; transform: none; }
.gallery-item figcaption small { display: block; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 4px; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 7, 6, .96); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox-cap { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-family: var(--font-display); font-style: italic; color: var(--ivory); }
.lightbox button { position: absolute; background: none; border: 1px solid var(--line); color: var(--ivory); width: 54px; height: 54px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; transition: all .3s var(--ease); }
.lightbox button:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* contatti */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 40px; }
.contact-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list small { display: block; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.contact-list a, .contact-list span { overflow-wrap: anywhere; font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.55rem); color: var(--ivory); }
.contact-list a:hover { color: var(--gold-soft); }
.form { background: var(--black-2); border: 1px solid var(--line); padding: clamp(28px, 4vw, 56px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(244,238,226,.28); color: var(--ivory);
  font: inherit; font-size: 1.05rem; padding: 10px 0; border-radius: 0; transition: border-color .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--black-2); color: var(--ivory); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 30px; }
.check input { margin-top: 6px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.check a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin: 18px 0 0; font-size: .92rem; color: var(--gold-soft); min-height: 1.4em; }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.post-card a { display: block; }
.post-card .media { overflow: hidden; aspect-ratio: 16 / 11; margin-bottom: 26px; }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card a:hover img { transform: scale(1.05); }
.post-card .meta { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.post-card h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); margin: 12px 0 14px; transition: color .4s var(--ease); }
.post-card a:hover h3 { color: var(--gold-soft); }
.post-card p { color: var(--muted); }
.section-ivory .post-card p { color: var(--muted-ink); }
.section-ivory .post-card .meta { color: var(--gold-deep); }
.section-ivory .post-card a:hover h3 { color: var(--gold-deep); }

.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-top: 1.6em; }
.prose h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-top: 1.4em; }
.prose p, .prose li { color: var(--text); }
.prose a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gold); }
.prose figure { margin: 2.4em 0; }
.prose figcaption { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.prose .answer { border-left: 1px solid var(--gold); padding: 6px 0 6px 26px; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.5; color: var(--ivory); margin: 0 0 2em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--gold); font-weight: 400; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.post-meta { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* 404 */
.notfound { min-height: 100vh; display: flex; align-items: center; text-align: center; position: relative; overflow: hidden; }
.notfound .ghost { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-display); font-size: 48vw; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(194,160,98,.18); pointer-events: none; }
.notfound .container { position: relative; }
.notfound .lead { margin: 0 auto 40px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding: clamp(80px, 10vw, 130px) 0 0; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 50px; padding-bottom: 70px; }
.footer-logo { width: 230px; height: auto; margin-bottom: 30px; }
.footer-claim { color: var(--muted); max-width: 340px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; color: var(--muted); }
.footer-col a { color: var(--text); }
.footer-col a:hover { color: var(--gold); }
.social { display: flex; gap: 12px; margin-top: 26px; }
.social a { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: all .4s var(--ease); }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.social svg { width: 18px; height: 18px; }
.footer-word {
  font-family: var(--font-display); font-size: clamp(3.5rem, 15.5vw, 16rem); line-height: .78; letter-spacing: -.03em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(194, 160, 98, .3); user-select: none; margin: 0; padding-top: 10px; white-space: nowrap; overflow: hidden;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; padding: 28px calc(var(--gutter) + 70px) 34px var(--gutter); border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--gold); }

/* WhatsApp flottante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--black); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.4);
  transform: translateY(120px); transition: transform .6s var(--ease), background .3s var(--ease);
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { background: var(--ivory); }
.wa-float svg { width: 26px; height: 26px; }

/* cursore personalizzato (solo puntatore fine) */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(194,160,98,.7); border-radius: 50%; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s var(--ease), opacity .3s; opacity: 0; display: grid; place-items: center; }
.cursor span { font-size: .56rem; letter-spacing: .22em; text-transform: uppercase; color: var(--black); opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(194,160,98,.15); }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--gold); border-color: var(--gold); }
.cursor.is-view span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* il clip va sull'immagine, non sul contenitore: un elemento interamente
   ritagliato non risulta mai "visibile" per IntersectionObserver */
.reveal-img img { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-io); }
.reveal-img.is-visible img { clip-path: inset(0 0 0 0); }
.reveal-img.d1 img { transition-delay: .12s; } .reveal-img.d2 img { transition-delay: .24s; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .reveal-img img { clip-path: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-aside { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .srv-row a { grid-template-columns: 60px minmax(0, 1fr) 50px; }
  .srv-row p { grid-column: 2 / 3; }
  .srv-go { grid-row: 1; grid-column: 3; width: 50px; height: 50px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .matter-text { grid-column: 1 / -1; position: static; margin-bottom: 40px; }
  .matter-cols { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .manifesto-grid, .compare-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .manifesto-figure { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(3) { padding-left: 0; }
  .step { border-bottom: 1px solid rgba(244,238,226,.18); padding-bottom: 34px; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .client:nth-child(2) { border-right: 0; }
  .client:nth-child(3) { padding-left: 0; }
  .client { border-bottom: 1px solid var(--line-ink); }
  .values { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insta-grid a:nth-child(n+4) { display: none; }
  .srv-float { display: none; }
  .srv-thumb { display: block; grid-column: 1 / -1; aspect-ratio: 16 / 9; overflow: hidden; margin-top: 6px; }
  .srv-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .split-media .frame { inset: 14px -14px -14px 14px; }
  /* collezione: su touch scorrimento nativo con snap */
  .hscroll { height: auto !important; }
  .hscroll-sticky { position: static; height: auto; padding: 100px 0; }
  .hscroll-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 10px; scrollbar-width: none; }
  .hscroll-track::-webkit-scrollbar { display: none; }
  .piece, .piece-end { scroll-snap-align: start; width: 78vw; }
  .hscroll-bar { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 76px; }
  .hero h1 { max-width: none; }
  .hero-cta .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .steps, .clients-grid { grid-template-columns: 1fr; }
  .step, .step + .step, .client, .client + .client { padding-left: 0; border-right: 0; }
  .posts { grid-template-columns: 1fr; }
  .triptych { grid-template-columns: 1fr 1fr; }
  .triptych figure:last-child { grid-column: 1 / -1; }
  .triptych figure:last-child img { aspect-ratio: 4 / 3; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .matter-cols figure:nth-child(2) { margin-top: 60px; }
  .compare-handle::after { width: 52px; height: 52px; }
  .lightbox { padding: 70px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lightbox-cap { bottom: 80px; }
  .srv-row a { grid-template-columns: 40px minmax(0, 1fr) 46px; gap: 16px; }
  .srv-go { width: 46px; height: 46px; }
  .srv-row h3 { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .hscroll-count { display: none; }
  .hero-ghost { -webkit-text-stroke-color: rgba(194, 160, 98, .28); }
  .wa-float { right: 16px; bottom: 16px; }
}
@media (max-width: 480px) {
  .btn { padding: 17px 24px; letter-spacing: .2em; }
  .section-head { margin-bottom: 44px; }
}

/* touch: niente hover, le didascalie restano visibili */
@media (hover: none) {
  .gallery-item figcaption { opacity: 1; transform: none; padding-top: 40px; }
  .insta-grid a::after { display: none; }
}
@media (max-width: 640px) {
  .piece-tag, .gallery-item figcaption small, .contact-list small, .post-card .meta, .piece figcaption span,
  .field label, .compare-label, .footer-bottom, .breadcrumb, .triptych figcaption { font-size: .74rem; }
  .nav-cta .btn { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .intro { display: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal-img img { clip-path: none; }
  .hero h1 .line > span, .hero .eyebrow, .hero .lead, .hero-cta, .hero-aside { animation: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .grain { display: none; }
  .manifesto-text .w { opacity: 1; }
}
