/* ==========================================================================
   Muzi Design v2 — "Campionario in movimento"
   Token, base, componenti e sezioni della home.
   ========================================================================== */

:root {
  /* Palette: materiali dello showroom */
  --calce: #EEEDE9;
  --calce-2: #E4E2DC;
  --bianco: #FAFAF8;
  --grafite: #1E2124;
  --grafite-2: #2A2E32;
  --rovere: #8C633B;
  --rovere-2: #B98E60;
  --salvia: #6F7D6A;
  --argilla: #D6D1C8;
  --petrolio: #1A3A4C;
  --muted: #585D62;
  --muted-light: rgba(250, 250, 248, .72);

  /* Tipografia */
  --f-sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --fs-display: clamp(2.9rem, 7.4vw, 7.25rem);
  --fs-h2: clamp(2.2rem, 4.6vw, 4.4rem);
  --fs-section: clamp(1.9rem, 3.2vw, 3rem);
  --fs-lead: clamp(1.45rem, 2.5vw, 2.35rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  /* Layout */
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1440px;
  --header-h: 76px;
  --util-h: 34px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .35s;
  --t-med: .7s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--calce);
  color: var(--grafite);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* le animazioni laterali non devono allargare la pagina */
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--rovere); color: var(--bianco); }
:focus-visible { outline: 2px solid var(--rovere); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--rovere);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; transform-origin: left; }
.eyebrow--light { color: #DDBF94; }

.h-display { font-size: var(--fs-h2); }
.h-section { font-size: var(--fs-section); line-height: 1.05; }

/* Split text: le righe mascherate non devono tagliare discendenti */
.split-line { padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Pulsanti (effetto "roll" dell'etichetta) ---------- */
.btn {
  --bg: var(--grafite); --fg: var(--bianco); --bg-h: var(--rovere); --fg-h: var(--bianco); --bd: var(--bg);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding-inline: 28px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font: 700 .8125rem/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg-h);
  transform: translateY(101%); transition: transform .6s var(--ease-out);
}
.btn > span { display: block; transition: transform .6s var(--ease-out); }
.btn::after {
  content: attr(data-label); position: absolute; left: 0; right: 0; top: 50%;
  text-align: center; transform: translateY(300%); transition: transform .6s var(--ease-out); color: var(--fg-h);
}
.btn:hover { border-color: var(--bg-h); }
.btn:hover::before { transform: translateY(0); }
.btn:hover > span { transform: translateY(-300%); }
.btn:hover::after { transform: translateY(-50%); }
.btn--sm { height: 44px; padding-inline: 20px; font-size: .75rem; }
.btn--light { --bg: var(--bianco); --fg: var(--grafite); --bg-h: var(--rovere); }
.btn--outline-light { --bg: transparent; --fg: var(--bianco); --bd: rgba(250,250,248,.55); --bg-h: var(--bianco); --fg-h: var(--grafite); }
.btn--rovere { --bg: var(--rovere); --fg: var(--bianco); --bg-h: var(--bianco); --fg-h: var(--grafite); }
.btn--primary { --bg: var(--grafite); --bg-h: var(--rovere); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 700 .8125rem/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase;
  padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link-arrow:hover { background-size: 30% 1px; }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Loader / curtain / progress / cursor ---------- */
.loader { position: fixed; inset: 0; z-index: 200; display: flex; pointer-events: none; }
html:not(.js) .loader { display: none; }
.js .loader { animation: failsafe-hide 0s 4.5s forwards; }
@keyframes failsafe-hide { to { visibility: hidden; } }
.loader__panel { flex: 1; height: 100%; }
.loader__panel--grafite { background: var(--grafite); }
.loader__panel--rovere { background: var(--rovere); }
.loader__panel--salvia { background: var(--salvia); }
.loader__panel--argilla { background: var(--argilla); }
.loader__logo {
  position: absolute; left: 50%; top: 50%; width: 170px; height: auto;
  transform: translate(-50%, -50%); filter: invert(1) brightness(1.2);
}
html:not(.first-visit) .loader__logo { opacity: 0; }

.curtain {
  position: fixed; inset: 0; z-index: 190; background: var(--grafite);
  transform: translateY(100%); pointer-events: none;
}

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: var(--rovere); transform: scaleX(0); transform-origin: left;
}

.cursor { position: fixed; inset: 0; z-index: 180; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; opacity: 0; }
.cursor__dot, .cursor__ring {
  position: absolute; left: 0; top: 0; border-radius: 50%;
  mix-blend-mode: difference; will-change: transform;
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid #fff;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .45s var(--ease-out);
}
.cursor.is-hover .cursor__ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.cursor.is-card .cursor__ring { width: 110px; height: 110px; margin: -55px 0 0 -55px; background: rgba(255,255,255,.9); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; color: var(--bianco);
  transition: transform .6s var(--ease-out), color .4s var(--ease-out);
}
.util-bar { height: var(--util-h); background: rgba(30,33,36,.35); backdrop-filter: blur(6px); transition: background-color .4s; }
.util-bar__list {
  height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; justify-content: flex-end; align-items: center; gap: 26px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em;
}
.util-bar a, .main-nav a { text-decoration: none; }
.util-bar a { opacity: .8; transition: opacity .3s; }
.util-bar a:hover { opacity: 1; }
.nav-bar {
  position: relative; height: var(--header-h); max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 36px;
}
.nav-bar::before {
  content: ""; position: absolute; inset: 0; left: 50%; width: 100vw; transform: translateX(-50%) scaleY(0);
  transform-origin: top; background: rgba(238,237,233,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--argilla); transition: transform .6s var(--ease-out); z-index: -1;
}
.brand { flex: none; margin-right: auto; }
.brand img { height: 44px; width: auto; filter: invert(1); transition: filter .4s; }
.main-nav__list { display: flex; gap: 30px; font-size: .9375rem; font-weight: 500; }
.main-nav a { position: relative; padding-block: 6px; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.main-nav__util { display: none; }
.nav-cta { --bg: var(--bianco); --fg: var(--grafite); --bg-h: var(--rovere); --fg-h: var(--bianco); }

.site-header.is-solid { color: var(--grafite); transform: translateY(calc(var(--util-h) * -1)); }
.site-header.is-solid .nav-bar::before { transform: translateX(-50%) scaleY(1); }
.site-header.is-solid .brand img { filter: none; }
.site-header.is-solid .nav-cta { --bg: var(--grafite); --fg: var(--bianco); }
.site-header.is-hidden { transform: translateY(-110%); }

.burger {
  display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; padding: 0;
}
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; color: var(--bianco); overflow: hidden; background: var(--grafite); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__zoom { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease-io); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,22,24,.55) 0%, rgba(20,22,24,0) 28%),
    linear-gradient(0deg, rgba(20,22,24,.86) 0%, rgba(20,22,24,.35) 45%, rgba(20,22,24,.1) 70%);
}
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 26px;
  padding-bottom: clamp(40px, 8vh, 96px); padding-top: calc(var(--header-h) + var(--util-h) + 24px);
}
.hero__title { font-size: clamp(2.6rem, 6.2vw, 6.6rem); line-height: .95; letter-spacing: -.045em; }
.hero__bottom { display: grid; grid-template-columns: minmax(0, 560px) auto; gap: 32px 56px; align-items: end; justify-content: space-between; }
.hero__lead { color: var(--muted-light); font-size: 1.0625rem; line-height: 1.6; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__swatches {
  position: absolute; z-index: 2; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; gap: 10px;
}
.hero__swatches span {
  display: block; width: 46px; height: 46px; background-size: cover; background-position: center;
  box-shadow: 0 0 0 1px rgba(250,250,248,.25);
}
.hero__swatches .is-salvia { background-color: var(--salvia); }
.hero__dots { position: absolute; z-index: 2; left: var(--gutter); top: calc(var(--header-h) + var(--util-h) + 28px); display: flex; gap: 8px; }
.hero__dots i { display: block; width: 34px; height: 2px; background: rgba(250,250,248,.3); overflow: hidden; position: relative; }
.hero__dots i::after { content: ""; position: absolute; inset: 0; background: var(--bianco); transform: scaleX(0); transform-origin: left; }
.hero__dots i.is-active::after { animation: dot-fill 7s linear forwards; }
.hero__dots i.is-done::after { transform: scaleX(1); }
@keyframes dot-fill { to { transform: scaleX(1); } }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 0; width: 1px; height: 64px; background: rgba(250,250,248,.2); overflow: hidden; }
.hero__scroll span { position: absolute; inset: 0; background: var(--bianco); animation: scroll-cue 2.2s var(--ease-io) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.js .hero__content { visibility: hidden; animation: failsafe-show 0s 4.5s forwards; }
@keyframes failsafe-show { to { visibility: visible; } }

/* ---------- Perchè scegliere ---------- */
.why { padding-block: clamp(96px, 14vw, 200px) clamp(80px, 10vw, 150px); background: var(--bianco); }
.why__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.why__aside { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 40px; }
.why__img { aspect-ratio: 4 / 5; overflow: hidden; max-width: 360px; }
.why__img img { width: 100%; height: 100%; object-fit: cover; }
.why__list { display: grid; }
.service {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 10px 28px;
  padding-block: 40px; isolation: isolate;
}
.service::after {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -.5); z-index: -1; background: var(--calce);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.service:hover::after { transform: scaleX(1); }
.service__rule { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grafite); transform-origin: left; }
.service__icon { grid-row: span 2; width: 52px; height: 52px; fill: none; stroke: var(--rovere); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; transition: transform .6s var(--ease-out); }
.service:hover .service__icon { transform: rotate(-8deg) scale(1.06); }
.service h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.service p { color: var(--muted); max-width: 46ch; }

/* ---------- Categorie ---------- */
.cats { padding-block: clamp(80px, 10vw, 140px); overflow: hidden; }
.cats__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); }
.cats__head .h-display { margin-top: 18px; max-width: 16ch; }
.cats__bar { flex: none; width: min(260px, 30vw); height: 2px; background: var(--argilla); }
.cats__bar i { display: block; height: 100%; background: var(--grafite); transform: scaleX(0); transform-origin: left; }
.cats__viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.cats__viewport::-webkit-scrollbar { display: none; }
.cats__track { display: flex; gap: clamp(16px, 2vw, 32px); width: max-content; padding-bottom: 48px; }
.cat-card {
  position: relative; display: grid; gap: 10px; align-content: start;
  width: clamp(260px, 26vw, 400px); text-decoration: none; scroll-snap-align: start;
}
.cat-card:nth-child(even) { transform: translateY(48px); }
.cat-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--argilla); margin-bottom: 10px; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--ease-out); }
.cat-card__media::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(140,99,59,.45), transparent 55%);
  opacity: 0; transition: opacity .6s var(--ease-out);
}
.cat-card:hover .cat-card__media img { transform: scale(1.2); }
.cat-card:hover .cat-card__media::after { opacity: 1; }
.cat-card__tag { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--rovere); }
.cat-card h3 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
.cat-card p { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.cat-card__cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font: 700 .75rem/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase;
}
.cat-card__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .5s var(--ease-out); }
.cat-card:hover .cat-card__cta svg { transform: translateX(6px); }

/* modalità pin (desktop, attivata via JS) */
.cats.is-pinned { height: 100vh; padding-block: calc(var(--header-h) + 8px) 24px; display: flex; flex-direction: column; justify-content: center; }
.cats.is-pinned .cats__viewport { overflow: visible; scroll-snap-type: none; }
.cats.is-pinned .cat-card { width: clamp(240px, 19vw, 320px); }
.cats.is-pinned .cats__head { margin-bottom: clamp(24px, 3vw, 40px); }
.cats.is-pinned .cat-card__media { aspect-ratio: 4 / 4.4; }

/* ---------- SEO rich ---------- */
.seo-rich { padding-block: clamp(80px, 10vw, 160px) 0; }
.seo-lead { font-size: var(--fs-lead); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; max-width: 30ch; }
.seo-intro { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-top: clamp(56px, 8vw, 120px); }
.seo-intro__img { aspect-ratio: 16 / 11; overflow: hidden; }
.seo-intro__img img { width: 100%; height: 100%; object-fit: cover; }
.seo-intro p { color: var(--muted); font-size: 1.125rem; max-width: 44ch; }

.chapter {
  display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 7vw, 120px); align-items: center;
  padding-block: clamp(80px, 11vw, 170px);
}
.chapter--flip .chapter__media { order: 2; }
.chapter__media { position: relative; padding-bottom: 12%; }
.chapter__img { overflow: hidden; aspect-ratio: 4 / 4.6; width: 82%; }
.chapter__img img { width: 100%; height: 100%; object-fit: cover; }
.chapter__img--small { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 1; box-shadow: 0 0 0 10px var(--calce); }
.chapter--flip .chapter__img:not(.chapter__img--small) { margin-left: auto; }
.chapter--flip .chapter__img--small { right: auto; left: 0; }
.chapter__text { display: grid; gap: 22px; }
.chapter__text h2 { margin-bottom: 8px; }
.chapter__text p { color: var(--muted); max-width: 54ch; }
.chapter__text .btn { justify-self: start; margin-top: 12px; }

.chapter--dark { display: block; background: var(--grafite); color: var(--bianco); margin-top: clamp(40px, 6vw, 80px); }
.chapter--dark .chapter__inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.chapter--dark .chapter__media { padding: 0; }
.chapter--dark .chapter__img { width: 100%; aspect-ratio: 4 / 5; }
.chapter--dark .chapter__text p { color: var(--muted-light); }

.swatch-strip { overflow: hidden; padding-block: 12px; }
.swatch-strip__track { display: flex; gap: 12px; width: max-content; }
.swatch-strip span { width: clamp(90px, 11vw, 150px); aspect-ratio: 1; background-size: cover; background-position: center; flex: none; }
.c-grafite { background-color: var(--grafite); } .c-salvia { background-color: var(--salvia); }
.c-argilla { background-color: var(--argilla); } .c-rovere { background-color: var(--rovere); }
.c-petrolio { background-color: var(--petrolio); }

/* ---------- Citazione ---------- */
.quote { padding-block: clamp(100px, 14vw, 200px); background: var(--bianco); overflow-x: clip; }
.quote__title { font-size: clamp(2rem, 4.6vw, 4.25rem); line-height: 1.08; letter-spacing: -.035em; max-width: 22ch; }
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-block: clamp(56px, 7vw, 96px) 40px; }
.review {
  display: grid; gap: 18px; align-content: start; padding: clamp(28px, 3vw, 44px);
  background: var(--calce); border-top: 2px solid var(--grafite);
}
.review__text { font-size: 1.1875rem; line-height: 1.55; }
.review__stars { color: var(--rovere); letter-spacing: .3em; font-size: 1.05rem; }
.review__author { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .06em; color: var(--muted); }

/* ---------- Vieni a trovarci ---------- */
.visit { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: var(--bianco); background: var(--calce); }
.visit__media { position: absolute; inset: 0; overflow: hidden; }
.visit__media img { width: 100%; height: 100%; object-fit: cover; }
.visit__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,22,24,.94) 0%, rgba(20,22,24,.72) 38%, rgba(20,22,24,.3) 70%, rgba(20,22,24,.12)), linear-gradient(90deg, rgba(20,22,24,.55), transparent 60%); }
.visit__content { position: relative; z-index: 2; display: grid; gap: 24px; padding-block: clamp(80px, 10vw, 140px); }
.visit__content .h-display { font-size: clamp(3rem, 9vw, 8.5rem); letter-spacing: -.05em; }
.visit__content p { color: var(--muted-light); max-width: 52ch; font-size: 1.125rem; }
.visit__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--grafite); color: var(--bianco); padding-block: clamp(72px, 9vw, 120px) 32px; overflow: hidden; }
.footer__top { display: grid; gap: 40px; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid rgba(250,250,248,.14); }
.footer__brand { font-size: clamp(3.5rem, 13.5vw, 13rem); line-height: .85; letter-spacing: -.06em; white-space: nowrap; }
.footer__intro { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.footer__intro p { color: var(--muted-light); max-width: 48ch; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(250,250,248,.25); border-radius: 50%;
  transition: background-color .4s, color .4s, border-color .4s;
}
.footer__social a:hover { background: var(--bianco); color: var(--grafite); border-color: var(--bianco); }
.footer__social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer__social .fill { fill: currentColor; stroke: none; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-block: clamp(48px, 6vw, 72px); }
.footer__cols h3 { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--rovere-2); margin-bottom: 20px; }
.footer__cols ul { display: grid; gap: 10px; }
.footer__cols a { text-decoration: none; color: var(--muted-light); transition: color .3s; }
.footer__cols a:hover { color: var(--bianco); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(250,250,248,.14); font-size: var(--fs-small); color: rgba(250,250,248,.55); }
.made-by { text-decoration: none; display: inline-flex; gap: 6px; align-items: baseline; }
.made-by span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.made-by b { color: var(--bianco); font-weight: 600; }

/* ---------- Pulsanti flottanti ---------- */
.float-btn {
  position: fixed; bottom: 24px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45);
  transition: transform .5s var(--ease-out);
}
.float-btn svg { width: 26px; height: 26px; }
.float-btn--wa { left: 24px; background: #25D366; }
.float-btn--wa svg { fill: currentColor; }
.float-btn--bot { right: 24px; background: var(--petrolio); }
.float-btn--bot svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav__list { gap: 22px; }
}
@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .util-bar { display: none; }
  .site-header.is-solid { transform: none; }
  .site-header.is-hidden { transform: translateY(-110%); }
  .hero__content { padding-top: calc(var(--header-h) + 24px); }
  .hero__dots { top: calc(var(--header-h) + 20px); }
  .burger { display: block; z-index: 3; }
  .nav-cta { display: none; }
  .main-nav {
    position: fixed; inset: 0; z-index: 2; background: var(--grafite); color: var(--bianco);
    display: flex; align-items: center; padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
    clip-path: circle(0% at calc(100% - 42px) 34px); visibility: hidden;
    transition: clip-path .9s var(--ease-io), visibility 0s .9s;
  }
  .menu-open .main-nav { clip-path: circle(150% at calc(100% - 42px) 34px); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
  .main-nav__list { flex-direction: column; gap: 6px; font-size: clamp(2rem, 8vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
  .main-nav__util { display: block; font-size: 1rem; font-weight: 500; letter-spacing: 0; font-family: var(--f-mono); }
  .main-nav__util:first-of-type { margin-top: 24px; }
  .main-nav a::after { display: none; }
  .menu-open .site-header { color: var(--bianco); transform: none; }
  .menu-open .site-header .brand img { filter: invert(1); }
  .menu-open .nav-bar::before { transform: translateX(-50%) scaleY(0); }
  .brand { position: relative; z-index: 3; }

  .hero__bottom { grid-template-columns: 1fr; }
  .hero__swatches { top: auto; bottom: 28px; transform: none; grid-auto-flow: column; }
  .hero__swatches span { width: 30px; height: 30px; }
  .hero__content { padding-bottom: 88px; }
  .why__grid, .seo-intro, .chapter, .chapter--dark .chapter__inner { grid-template-columns: 1fr; }
  .why__aside { position: static; }
  .why__img { display: none; }
  .chapter--flip .chapter__media { order: 0; }
  .reviews { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { min-height: 560px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__swatches { display: none; }
  .cats__head { flex-direction: column; align-items: flex-start; }
  .cats__bar { display: none; }
  .cat-card { width: 78vw; }
  .cat-card:nth-child(even) { transform: none; }
  .service { grid-template-columns: 1fr; }
  .service__icon { grid-row: auto; }
  .footer__cols { grid-template-columns: 1fr; }
  .float-btn { width: 50px; height: 50px; bottom: 18px; }
  .float-btn--wa { left: 18px; } .float-btn--bot { right: 18px; }
}

/* ==========================================================================
   Movimento ridotto
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .loader, .cursor { display: none !important; }
  .js .hero__content { visibility: visible; }
  .hero__slide img { transform: none; }
}
