/* =========================================================================
   Alessandro Curzi — sistema visivo "Pigmento & Metodo"
   Palette derivata dal marchio originale (ocra/bronzo) + arancio storico.
   ========================================================================= */

:root {
  /* Superfici */
  --paper: #f5f1e9;
  --paper-deep: #ece5d6;
  --paper-card: #fbf9f4;
  --white: #ffffff;

  /* Inchiostri */
  --ink: #16130e;
  --ink-2: #443c2e;
  --ink-3: #6f6553;

  /* Marchio */
  --gold: #86754c;
  --gold-ink: #6a5a31;
  --gold-soft: #cbbb92;
  --gold-veil: rgba(134, 117, 76, .16);
  --orange: #f19609;
  --orange-deep: #c97a04;

  /* Settori cromatici */
  --terracotta: #b4451f;
  --salvia: #55684e;
  --notte: #1b2a33;
  --fucsia: #b8175a;

  --line: rgba(22, 19, 14, .14);
  --line-soft: rgba(22, 19, 14, .08);
  --shadow-lift: 0 30px 70px -30px rgba(22, 19, 14, .38);
  --shadow-card: 0 18px 40px -26px rgba(22, 19, 14, .5);

  --radius: 4px;
  --radius-lg: 10px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 44px);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Mulish", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  /* Tono corrente del settore, usato dal layer di pigmento */
  --tone-a: #86754c;
  --tone-b: #f19609;
}

/* Toni per settore — letti dal canvas di sfondo */
[data-tone="ocra"]      { --tone-a: #86754c; --tone-b: #f19609; }
[data-tone="arancio"]   { --tone-a: #f19609; --tone-b: #b4451f; }
[data-tone="terracotta"]{ --tone-a: #b4451f; --tone-b: #b8175a; }
[data-tone="salvia"]    { --tone-a: #55684e; --tone-b: #86754c; }
[data-tone="notte"]     { --tone-a: #1b2a33; --tone-b: #86754c; }
[data-tone="fucsia"]    { --tone-a: #b8175a; --tone-b: #f19609; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, blockquote, figure, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }

/* Anello di focus a doppio tono: il colore pieno garantisce il contrasto (>3:1),
   l'alone arancio lo rende riconoscibile come cifra del brand. */
:focus-visible {
  outline: 3px solid var(--focus, #16130e);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(241, 150, 9, .35);
  border-radius: 2px;
}
.section-dark, .site-footer, .cta-card, .youtube-card { --focus: #f5f1e9; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 200; left: 16px; top: -6rem;
  background: var(--ink); color: var(--paper);
  padding: .85rem 1.2rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 800;
  transition: top .2s var(--ease-out);
}
.skip-link:focus-visible { top: 16px; }

.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }

/* ---------- Layer di sfondo ---------- */
.pigment {
  position: fixed;
  inset: -12vh -10vw;
  width: 120vw;
  height: 124vh;
  z-index: -2;
  pointer-events: none;
  filter: blur(64px) saturate(1.02);
  opacity: .4;
  transition: opacity .6s var(--ease-soft);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .34;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}
@media (max-width: 720px) { .grain { opacity: .2; } .pigment { filter: blur(48px); } }

/* ---------- Tipografia ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "SOFT" 20, "WONK" 1;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 1.4rem + 6.4vw, 6.6rem); }
h2 { font-size: clamp(2.05rem, 1.2rem + 3.4vw, 3.9rem); }
h3 { font-size: clamp(1.28rem, 1.1rem + .8vw, 1.65rem); line-height: 1.15; }
p { text-wrap: pretty; }
p + p { margin-top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 800;
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--orange); flex: none;
}
.lead {
  font-size: clamp(1.1rem, 1rem + .55vw, 1.42rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}
.lead-small { font-size: 1.1rem; color: var(--ink-2); max-width: 52ch; }
.measure { max-width: 66ch; }

/* ---------- Marchio (geometria originale, con i suoi tre piani di colore) ---------- */
.mark { width: 100%; height: auto; display: block; }
.mark .mark-face  { fill: var(--mark-face, #86754d); }
.mark .mark-bevel { fill: var(--mark-bevel, #99865f); }
.mark .mark-edge  { fill: var(--mark-edge, #937e5f); }
.mark .mark-face, .mark .mark-bevel, .mark .mark-edge { transition: fill .45s var(--ease-soft); }

.mark-brand { width: 40px; flex: none; }
/* All'hover il marchio si "ricarica" di colore, come una passata di pennello */
.brand:hover .mark-face, .brand:focus-visible .mark-face { fill: var(--orange-deep); }
.brand:hover .mark-bevel, .brand:focus-visible .mark-bevel { fill: var(--orange); }
.brand:hover .mark-edge, .brand:focus-visible .mark-edge { fill: var(--orange); }

/* ---------- Bottoni e link ---------- */
/* Il riempimento al passaggio del mouse usa un background-image: viene
   dipinto sopra il colore di fondo ma sotto al testo, senza wrapper. */
.button {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 54px; padding: 0 1.6rem;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background-color: var(--ink); color: var(--paper);
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 100% 0%;
  font-weight: 800; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: color .3s var(--ease-soft), border-color .35s var(--ease-soft),
              transform .35s var(--ease-out), background-size .45s var(--ease-out);
}
.button:hover, .button:focus-visible {
  color: var(--ink); border-color: var(--orange);
  background-size: 100% 100%; transform: translateY(-2px);
}
.button:active { transform: translateY(0); }
.button-small { min-height: 44px; padding-inline: 1.15rem; font-size: .86rem; }
.button-ghost { background-color: transparent; color: var(--ink); }
.button-light { background-color: var(--paper); border-color: var(--paper); color: var(--ink); }
.button-accent {
  background-color: var(--orange); border-color: var(--orange); color: var(--ink);
  background-image: linear-gradient(var(--paper), var(--paper));
}
.button-accent:hover, .button-accent:focus-visible { border-color: var(--paper); color: var(--ink); }

.text-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; text-decoration: none;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .35s var(--ease-out);
}
.text-link::after { content: "→"; transition: transform .35s var(--ease-out); }
.text-link:hover::after { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120; isolation: isolate;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: background .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
.site-header.is-scrolled { box-shadow: 0 10px 40px -26px rgba(22, 19, 14, .6); }
.header-inner {
  min-height: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header-rule { display: block; position: relative; height: 2px; background: var(--line-soft); }
.header-rule::after {
  content: ""; position: absolute; inset: 0;
  background: var(--orange);
  transform: scaleX(var(--scroll-progress, 0)); transform-origin: 0 50%;
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong {
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em;
}
.brand-copy small {
  margin-top: 3px; font-size: .66rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 700; white-space: nowrap;
}
@media (max-width: 400px) { .brand-copy small { display: none; } }

.main-nav { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); }
.nav-list { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 22px); }
.nav-list a {
  display: block; text-decoration: none;
  font-size: .88rem; font-weight: 700;
  padding: 6px 0; white-space: nowrap;
}
.nav-list a span {
  display: block; padding-bottom: 3px;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .35s var(--ease-out);
}
.nav-list a:hover span { background-size: 100% 2px; }
.nav-list a[aria-current="page"] span { background-size: 100% 2px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1.5px solid var(--line);
  border-radius: 999px; background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle-bars span { display: block; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Motion primitives ---------- */
/* Il contenuto è visibile di default: l'animazione si attiva solo con .js-motion */
.js-motion .reveal { opacity: 0; transform: translateY(26px); }
.js-motion .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-soft), transform .9s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

/* Rivelazione "a pennellata" per il testo: bordo sfrangiato che scorre */
.js-motion .brush {
  -webkit-mask-image: url("/assets/img/brush-mask.svg");
  mask-image: url("/assets/img/brush-mask.svg");
  -webkit-mask-size: 250% 130%;
  mask-size: 250% 130%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 50%;
  mask-position: 100% 50%;
}
.js-motion .brush.is-in {
  -webkit-mask-position: 0% 50%;
  mask-position: 0% 50%;
  transition: -webkit-mask-position 1.15s var(--ease-out), mask-position 1.15s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

/* Le immagini vengono "dipinte": la pennellata originale del vecchio sito
   attraversa la foto da sinistra a destra e la scopre con il bordo a setole. */
.js-motion .brush-img {
  -webkit-mask-image: url("/assets/img/brush-stroke.svg");
  mask-image: url("/assets/img/brush-stroke.svg");
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0% 50%;
  mask-position: 0% 50%;
}
/* Un filo in ritardo, giusto per non partire prima che l'occhio ci arrivi. */
.js-motion .brush-img.is-in {
  -webkit-mask-position: 100% 50%;
  mask-position: 100% 50%;
  transition: -webkit-mask-position 1.9s cubic-bezier(.22, .4, .3, 1),
              mask-position 1.9s cubic-bezier(.22, .4, .3, 1);
  transition-delay: var(--delay, 220ms);
}

/* ---------- Sezioni ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 140px) 0; }
.section-heading { margin-bottom: clamp(40px, 5vw, 68px); }
.heading-split {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr);
  gap: clamp(28px, 5vw, 80px); align-items: end;
}
.heading-split > p, .heading-split > div:last-child > p { color: var(--ink-2); }

.section-dark {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-lg);
}
.section-dark .eyebrow { color: var(--gold-soft); }
.section-dark .lead, .section-dark p { color: rgba(245, 241, 233, .82); }

/* Regola decorativa a quadrati concentrici tra le sezioni */
.rule-mark {
  display: flex; align-items: center; gap: 18px;
  margin-block: clamp(10px, 2vw, 26px);
}
.rule-mark::before, .rule-mark::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.rule-mark .mark { width: 22px; flex: none; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 72px) 0 clamp(64px, 8vw, 120px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .74fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.hero-copy h1 { margin-bottom: 1.6rem; }
.hero-line { display: block; }
.hero-line em {
  font-style: normal;
  color: var(--gold-ink);
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
}
.hero-dot {
  display: inline-block; width: .16em; height: .16em; margin-left: .06em;
  background: var(--orange); border-radius: 50%; vertical-align: baseline;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 2.2rem; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(32px, 4vw, 52px); padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-proof div { display: grid; gap: 2px; }
.hero-proof strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.hero-proof span { font-size: .82rem; color: var(--ink-3); }

.hero-media { position: relative; }
.hero-frame {
  position: absolute; inset: -26px -26px 60px 34px;
  border: 2px solid var(--gold); opacity: .55;
  z-index: 0;
}
.hero-frame::before {
  content: ""; position: absolute; inset: 22px;
  border: 2px solid var(--orange); opacity: .8;
}
.hero-photo {
  position: relative; z-index: 1; margin: 0;
  border-radius: 190px 6px 190px 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.hero-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.js-motion .hero-photo img { animation: photoIn 1.6s var(--ease-out) both; }
.js-motion .hero-frame { animation: frameIn 1.1s var(--ease-out) .35s both; }
@keyframes photoIn { from { transform: scale(1.09); } to { transform: scale(1); } }
@keyframes frameIn { from { opacity: 0; transform: translate(20px, 20px); } to { opacity: .55; transform: none; } }


/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
  --ticker-speed: 42s;
}
.ticker-track {
  display: flex; gap: 0; width: max-content;
  font-family: var(--font-display); font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  color: var(--ink-2);
}
.js-motion .ticker-track { animation: slide var(--ticker-speed) linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 26px; padding-inline: 26px; white-space: nowrap; }
.ticker-track span::after {
  content: ""; width: 9px; height: 9px; background: var(--orange); flex: none;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Metodo ---------- */
.method-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
}
.method-step { position: relative; padding-top: 26px; border-top: 2px solid var(--ink); }
.method-step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -34px; left: 0;
  font-family: var(--font-display); font-size: 1rem; color: var(--gold-ink); font-weight: 700;
}
.method-step h3 { margin-bottom: .6rem; }
.method-step p { color: var(--ink-2); font-size: .98rem; }

/* ---------- Servizi ---------- */
.services-list { border-top: 1px solid var(--line); }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) minmax(0, 1.05fr) 56px 56px;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(26px, 3vw, 40px) clamp(8px, 1.6vw, 26px);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .4s var(--ease-soft), padding-left .4s var(--ease-out);
  isolation: isolate;
}
.service-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .5s var(--ease-out);
}
.service-row:hover, .service-row:focus-visible { color: var(--paper); padding-left: clamp(20px, 3vw, 44px); }
.service-row:hover::before, .service-row:focus-visible::before { transform: scaleY(1); transform-origin: 50% 0; }
.service-row:hover .service-index, .service-row:focus-visible .service-index { color: var(--orange); }
.service-row:hover p, .service-row:focus-visible p { color: rgba(245, 241, 233, .78); }
.service-row:hover .service-icon, .service-row:focus-visible .service-icon { transform: scale(1.12) rotate(-6deg); }
.service-index {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--gold-ink);
  transition: color .4s var(--ease-soft);
}
.service-row h3 { max-width: 18ch; }
.service-row p { color: var(--ink-2); font-size: .98rem; transition: color .4s var(--ease-soft); }
.service-icon { width: 46px; height: 46px; transition: transform .4s var(--ease-out); }
.service-go {
  width: 52px; height: 52px; border: 1.5px solid currentColor; border-radius: 50%;
  display: grid; place-content: center; flex: none; justify-self: end;
  transition: transform .4s var(--ease-out), background .4s var(--ease-soft), border-color .4s var(--ease-soft);
}
.service-icon { justify-self: center; }
.service-row:hover .service-go { background: var(--orange); border-color: var(--orange); color: var(--ink); transform: rotate(45deg); }

/* ---------- Craft (sezione scura) ---------- */
.craft-grid {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 76px); align-items: center;
  padding: clamp(34px, 5vw, 76px);
}
.craft-photo { position: relative; margin: 0; }
.craft-photo img { border-radius: 6px 160px 6px 160px; box-shadow: var(--shadow-lift); }
.craft-photo .mark {
  position: absolute; width: 62px; left: -24px; top: -24px;
  box-shadow: var(--shadow-card);
  --mark-face: #a8925e; --mark-bevel: #c0ab7c; --mark-edge: #b39c6c;
}
.craft-copy h2 { margin-bottom: 1.2rem; }
.craft-copy .button { margin-top: 1.6rem; }

/* ---------- Tecnologia ---------- */
.special-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(30px, 5vw, 72px); align-items: center;
}
.feature-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.8rem; }
.feature-list span {
  border: 1.5px solid var(--gold); border-radius: 999px;
  padding: .5rem 1.05rem; font-size: .85rem; font-weight: 700; color: var(--gold-ink);
  background: var(--gold-veil);
}
.special-grid figure { margin: 0; }
.special-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }

/* ---------- YouTube ---------- */
.youtube-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--terracotta); color: var(--paper);
  padding: clamp(32px, 5vw, 66px);
  border-radius: var(--radius-lg);
}
.youtube-card .eyebrow { color: var(--paper); }
.youtube-card .eyebrow::before { background: var(--paper); }

/* ---------- Recensioni ---------- */
.review-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.review-card {
  background: var(--paper-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 32px);
  display: grid; gap: 1rem; align-content: start;
  box-shadow: var(--shadow-card);
}
.review-card .stars { color: #a05f02; letter-spacing: .16em; font-size: 1rem; }
.review-card blockquote { font-family: var(--font-display); font-size: 1.06rem; line-height: 1.4; }
.review-card footer { font-size: .85rem; font-weight: 800; color: var(--gold-ink); }
.reviews-note { margin-top: 22px; font-size: .86rem; color: var(--ink-3); }

/* ---------- CTA ---------- */
.cta-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--ink); color: var(--paper);
  padding: clamp(34px, 5vw, 74px);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.cta-card .eyebrow { color: var(--gold-soft); }
.cta-card .mark {
  position: absolute; width: 340px; right: -96px; top: -96px; opacity: .14;
  --mark-face: var(--orange); --mark-bevel: var(--orange); --mark-edge: var(--orange);
}

/* ---------- Page hero (pagine interne) ---------- */
.page-hero { padding: clamp(40px, 6vw, 84px) 0 clamp(30px, 4vw, 56px); }
/* Nelle pagine interne il titolo scende di scala: la gerarchia resta chiara
   senza rubare spazio al contenuto. */
.page-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4.4rem); margin-bottom: 1.4rem; }
.page-hero-grid, .about-grid, .contact-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .8fr);
  gap: clamp(30px, 5vw, 76px); align-items: center;
}
.page-hero-media { margin: 0; position: relative; }
.page-hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 160px 6px 160px 6px; box-shadow: var(--shadow-lift);
}
.page-hero-art { position: relative; aspect-ratio: 1; }
.page-hero-art span {
  position: absolute; inset: 0; border: 2px solid var(--gold); border-radius: 4px;
}
.page-hero-art span:nth-child(2) { inset: 16%; border-color: var(--orange); }
.page-hero-art span:nth-child(3) { inset: 32%; border-color: var(--terracotta); }
.js-motion .page-hero-art span { animation: turn 26s linear infinite; }
.js-motion .page-hero-art span:nth-child(2) { animation-duration: 18s; animation-direction: reverse; }
.js-motion .page-hero-art span:nth-child(3) { animation-duration: 12s; }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- Prosa ---------- */
.prose-grid {
  display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px); align-items: start;
}
.service-aside {
  position: sticky; top: 118px;
  border-left: 2px solid var(--orange);
  padding-left: 22px;
  font-size: .96rem; color: var(--ink-2);
  display: grid; gap: 1rem; justify-items: start;
}
.prose { max-width: 68ch; }
.prose h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  margin-top: 2.6rem; margin-bottom: .9rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.05rem; color: var(--ink-2); }
.prose ul { display: grid; gap: .5rem; margin: 0 0 1.4rem; }
.prose ul li { position: relative; padding-left: 26px; color: var(--ink-2); }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border: 2px solid var(--orange);
}
.prose-image { margin: 2.2rem 0; }
.prose-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.prose-image figcaption {
  margin-top: .8rem; font-size: .86rem; color: var(--ink-3);
  padding-left: 16px; border-left: 2px solid var(--orange);
}
.prose-callout {
  margin: 2rem 0; padding: clamp(22px, 2.6vw, 34px);
  background: var(--gold-veil);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.prose-callout strong { font-family: var(--font-display); font-size: 1.2rem; display: block; margin-bottom: .5rem; }
.prose-callout p { margin: 0; }

/* ---------- Chi sono ---------- */
.about-photo { margin: 0; }
.about-photo img { width: 100%; border-radius: 6px 170px 6px 170px; box-shadow: var(--shadow-lift); }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); }
.values-grid article { border-top: 2px solid var(--ink); padding-top: 22px; display: grid; gap: .7rem; }
.values-grid span { font-family: var(--font-display); color: var(--gold-ink); font-weight: 700; }
.values-grid h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.values-grid p { color: var(--ink-2); font-size: .98rem; }
.statement-grid { padding: clamp(34px, 5vw, 78px); text-align: center; display: grid; justify-items: center; }
.statement-grid blockquote {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 3rem); line-height: 1.16;
  max-width: 20ch;
}

/* ---------- Contatti / form ---------- */
.contact-direct { display: grid; gap: 4px; margin-top: 2rem; }
.contact-direct a, .contact-direct div {
  display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.contact-direct span { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-ink); font-weight: 800; }
.contact-direct strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.contact-direct a:hover strong { color: var(--orange-deep); }

.form-panel {
  background: var(--paper-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-card);
}
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-size: .84rem; font-weight: 800; letter-spacing: .04em; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); font-weight: 400; font-size: .98rem;
  transition: border-color .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
}
.contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover { border-color: var(--gold); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241, 150, 9, .22);
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.form-honey { position: absolute; left: -9999px; opacity: 0; }
.form-actions { display: grid; gap: 12px; justify-items: start; }
.form-actions p { font-size: .8rem; color: var(--ink-3); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: var(--paper);
  margin-top: clamp(40px, 6vw, 90px);
  padding: clamp(48px, 6vw, 92px) 0 30px;
}
.footer-top {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px); align-items: center;
  padding-bottom: clamp(34px, 4vw, 58px);
  border-bottom: 1px solid rgba(245, 241, 233, .16);
}
/* Il marchio nel footer è vettoriale: resta nitido e mantiene i suoi tre piani
   di colore, schiariti quanto basta per staccare dal fondo scuro. */
.footer-logo { display: grid; justify-items: center; gap: 16px; }
.footer-mark {
  width: clamp(74px, 8vw, 104px);
  --mark-face: #a8925e; --mark-bevel: #c4ae7e; --mark-edge: #b7a06e;
}
.footer-wordmark { display: grid; gap: 6px; text-align: center; }
.footer-wordmark strong {
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  letter-spacing: .04em; color: var(--paper);
}
.footer-wordmark small {
  font-size: .62rem; letter-spacing: .17em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-soft); max-width: 24ch; justify-self: center; line-height: 1.6;
}
.footer-claim .eyebrow { color: var(--gold-soft); }
.footer-claim-text {
  font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 1.3vw, 2rem);
  line-height: 1.22; max-width: 26ch; margin-bottom: 1.6rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 50px);
  padding-block: clamp(34px, 4vw, 54px);
}
.footer-col h2 {
  font-family: var(--font-body); font-size: .74rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 1rem;
}
.footer-col address { font-style: normal; color: rgba(245, 241, 233, .74); margin-bottom: .8rem; }
.footer-link {
  display: block; padding: 5px 0; text-decoration: none;
  color: rgba(245, 241, 233, .86); font-size: .95rem;
  transition: color .25s var(--ease-soft), transform .25s var(--ease-out);
}
.footer-link:hover { color: var(--orange); transform: translateX(4px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid rgba(245, 241, 233, .16);
  font-size: .78rem; color: rgba(245, 241, 233, .6);
}
.footer-bottom a { color: inherit; }

/* ---------- 404 / grazie ---------- */
.notice-page { min-height: 56vh; display: grid; align-content: center; }
.notice-card { display: grid; justify-items: center; text-align: center; gap: .4rem; }
.notice-card .lead { margin-top: .6rem; }
.notice-card .hero-actions { justify-content: center; }
.notice-mark { width: 62px; margin-bottom: 1.4rem; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-media { max-width: 560px; }
  .heading-split { grid-template-columns: 1fr; align-items: start; }
  .craft-grid, .special-grid, .page-hero-grid, .about-grid, .contact-hero-grid { grid-template-columns: 1fr; }
  .prose-grid { grid-template-columns: 1fr; }
  .service-aside { position: static; }
  .method-grid, .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 88px 0 0 0;
    display: grid; align-content: start; gap: 4px;
    padding: 26px var(--gutter) 60px;
    background: var(--paper);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none; visibility: hidden;
    overflow-y: auto;
    transition: opacity .3s var(--ease-soft), transform .35s var(--ease-out), visibility .3s;
  }
  .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible;height: 100vh; }
  .nav-list { display: grid; gap: 0; width: 100%; }
  .nav-list a { padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.25rem; font-family: var(--font-display); font-weight: 600; }
  .nav-cta { margin-top: 22px; justify-self: start; }
}

@media (max-width: 760px) {
  .service-row { grid-template-columns: 38px minmax(0, 1fr) 52px; row-gap: 10px; }
  .service-row .service-icon { display: none; }
  .service-row h3 { grid-column: 2; }
  .service-row .service-go { grid-column: 3; grid-row: 1; width: 44px; height: 44px; }
  .service-row p { grid-column: 2 / -1; }
  .method-grid, .values-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .youtube-card, .cta-card { grid-template-columns: 1fr; }
  .hero-frame { display: none; }
  .craft-grid, .statement-grid { padding: 28px 22px; }
  .footer-bottom { flex-direction: column; }
}

/* =========================================================================
   Preferenze di movimento ridotto
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .pigment { display: none; }
}

@media print {
  .pigment, .grain, .site-header { display: none !important; }
  body { background: #fff; color: #000; }
}
