/* =================================================================
   DUNIA · v4 — editorial · professional · interactive · accessible
   Font: Inter Tight. Palette: warm white / deep ink.
   ================================================================= */

:root {
  --bg:        #fafaf7;
  --bg-2:      #f3f0ea;
  --paper:     #ffffff;
  --ink:       #14110d;
  --ink-2:     #3a342c;
  --muted:     #847c6e;
  --line:      #e6e1d4;
  --line-2:    #c8c2b1;
  --dark:      #14110d;
  --green:     #2e7a3a;
  --wa:        #25d366;
  --focus:     #4763d6;

  --font:      "Inter Tight", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;

  --max:        1240px;
  --gutter:     clamp(20px, 4vw, 56px);
  --section-y:  clamp(96px, 11vw, 160px);
  --ease:       cubic-bezier(.22,.61,.36,1);
  --ease-out:   cubic-bezier(0,0,.2,1);

  --radius:     0;
  --radius-sm:  0;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt", "tnum" 1;
  overflow-x: hidden;
}
body.modal-open, body.drawer-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
ul, ol { list-style: none; padding: 0; margin: 0; }
p, dl, dd, h1, h2, h3, h4, blockquote, figure, fieldset, legend { margin: 0; padding: 0; border: 0; }

::selection { background: var(--ink); color: var(--bg); }

/* Focus rings — visible but not heavy */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0;
}
.btn:focus-visible, .nav__cta:focus-visible {
  outline-offset: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Visually hidden (a11y) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -120%);
  top: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  z-index: 200;
  transition: transform .2s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

/* ---------- LAYOUT ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--line);
}
.section--soft { background: var(--bg-2); }
.section--contact { padding-bottom: clamp(120px, 14vw, 200px); }

/* ---------- BLOCK HEADER ---------- */
.block {
  display: grid;
  grid-template-columns: 90px 1fr;
  grid-template-rows: auto auto;
  gap: 8px 32px;
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 80px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.block__num {
  grid-row: 1 / span 2;
  font-family: var(--font);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 8px;
  font-variant-numeric: tabular-nums;
}
.block__heads { display: grid; gap: 8px; }
.block__lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.block__title {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 24ch;
}
.block__title em { font-style: italic; font-weight: 400; color: var(--muted); }
.block__intro {
  grid-column: 2;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
  margin-top: 8px;
}
@media (max-width: 700px) {
  .block { grid-template-columns: 1fr; gap: 16px; }
  .block__num { grid-row: auto; padding-top: 0; }
  .block__intro { grid-column: 1; }
}

/* ---------- BUTTONS / LINKS ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { height: 56px; padding: 0 30px; font-size: 15px; }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--whatsapp {
  background: var(--wa);
  color: #fff;
  border-color: var(--wa);
}
.btn--whatsapp:hover { background: #1bbd5a; border-color: #1bbd5a; }
.btn span[aria-hidden] { transition: transform .25s var(--ease); display: inline-block; }
.btn:hover span[aria-hidden] { transform: translateX(3px); }

.link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap .25s var(--ease);
}
.link span { transition: transform .25s var(--ease); display: inline-block; }
.link:hover { gap: 10px; }
.link:hover span { transform: translateX(3px); }
.link--w { color: var(--bg); border-bottom-color: rgba(255,255,255,.5); }

/* ---------- META / DOT ---------- */
.meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 0;
  background: var(--green);
  display: inline-block;
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav__brand {
  font-family: var(--font);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.nav__sup {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.nav__links {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
}
.nav__links a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right .35s var(--ease);
}
.nav__links a:hover::after { right: 0; }

.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0;
  transition: transform .2s var(--ease);
}
.nav__cta:hover { transform: translateY(-1px); }
.nav__cta span { transition: transform .2s var(--ease); display: inline-block; }
.nav__cta:hover span { transform: translateX(3px); }

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
  transition: border-color .2s var(--ease);
}
.nav__burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { bottom: 16px; }
.nav__burger:hover { border-color: var(--ink); }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* ---------- MOBILE DRAWER ---------- */
.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh; height: 100dvh;
  width: min(380px, 90vw);
  background: var(--bg);
  z-index: 90;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px -20px rgba(0,0,0,.2);
}
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.drawer__brand {
  font-family: var(--font);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
}
.drawer__close {
  width: 40px; height: 40px;
  border-radius: 0;
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.drawer__close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 12px var(--gutter);
  flex: 1;
  gap: 4px;
}
.drawer__nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 4px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: padding-left .25s var(--ease), color .25s var(--ease);
}
.drawer__nav a:last-child { border-bottom: 0; }
.drawer__nav a:hover { padding-left: 12px; color: var(--ink); }
.drawer__n {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.drawer__foot {
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
}
.drawer__mail {
  display: inline-block;
  font-family: var(--font);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.drawer__meta {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Drawer backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,17,13,.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 85;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.drawer-backdrop.is-on { opacity: 1; pointer-events: auto; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 96px) var(--gutter) clamp(80px, 10vw, 140px);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 380px; margin: 0 auto; }
}
.hero__media figure {
  overflow: hidden;
  background: #000;
  position: relative;
  border-radius: 0;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.45);
}
.hero__media img {
  width: 100%;
  aspect-ratio: 1080 / 1919;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.hero__media:hover img { transform: scale(1.03); }
.hero__badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero__cap {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__cap em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-transform: none;
  font-size: 13px;
}

.hero__text { max-width: 560px; }
.hero__text .meta { margin-bottom: 28px; }
.display {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(48px, 6.8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 28px;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-2);
}
.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 42ch;
  margin: 0 0 32px;
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero__facts li { padding-right: 16px; border-right: 1px solid var(--line); }
.hero__facts li:last-child { border-right: 0; padding-right: 0; }
.hero__facts strong {
  display: block;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.hero__facts .pct { font-size: 0.55em; vertical-align: super; margin-left: 2px; color: var(--muted); }
.hero__facts span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__scroll {
  display: none;
  align-items: center;
  gap: 8px;
  position: absolute;
  bottom: 24px; right: var(--gutter);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  animation: scrollHint 2s ease-in-out infinite;
}
.hero__scroll svg { color: var(--ink); }
@media (min-width: 1100px) { .hero__scroll { display: inline-flex; } }
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: .8; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* ---------- WORKS GRID ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: clamp(56px, 8vw, 96px);
}
@media (max-width: 1000px) { .works { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .works { grid-template-columns: repeat(2, 1fr); } }

.work {
  margin: 0;
}
.work__btn {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: transparent;
}
.work__media {
  margin: 0;
  background: #0a0a0a;
  aspect-ratio: 4 / 5;             /* fallback se JS non gira; overridato da inline style con la ratio REALE */
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  border-radius: 0;
}
.work__media--sq { aspect-ratio: 1 / 1; }
.work__media img {
  width: 100%; height: 100%;
  object-fit: contain;             /* NO crop: il cassetto ha gia la ratio reale, contain previene stretch */
  opacity: 0;
  transition: transform .9s var(--ease), opacity .5s var(--ease);
}
.work__media img.is-loaded { opacity: 1; }
.work__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.55));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.work__hover {
  position: absolute;
  left: 14px; right: 14px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--bg);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  z-index: 1;
}
.work__btn:hover .work__media::after,
.work__btn:focus-visible .work__media::after { opacity: 1; }
.work__btn:hover .work__media img { transform: scale(1.04); }
.work__btn:hover .work__hover,
.work__btn:focus-visible .work__hover { opacity: 1; transform: none; }

.work__meta {
  padding-top: 14px;
  display: grid;
  gap: 4px;
}
.work__num {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.work__title {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.work__price {
  font-family: var(--font);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- TRUST BAR ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 800px) { .trust { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 500px) { .trust { grid-template-columns: 1fr; } }
.trust__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trust__item svg {
  width: 22px; height: 22px;
  color: var(--ink);
  flex-shrink: 0;
  margin-top: 2px;
}
.trust__item strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.trust__item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- PROSE / MANIFESTO ---------- */
.prose { max-width: 1000px; }
.prose__lead {
  font-family: var(--font);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 64px;
  max-width: 28ch;
}
.prose__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: 64px;
}
.prose__cols--3 {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .prose__cols--3 { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 800px) { .prose__cols { grid-template-columns: 1fr; gap: 32px; } }

.prose__col { display: grid; gap: 12px; }
.prose__lbl {
  font-family: var(--font);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.prose__lbl span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-style: italic;
}

.body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 50ch;
  margin: 0 0 14px;
}
.body:last-child { margin-bottom: 0; }
.body strong { font-weight: 600; color: var(--ink); }
.body em { font-style: italic; }

/* hanging-quote pull quote, attribution line */
.quote {
  position: relative;
  margin: 64px 0 0;
  max-width: 36ch;
  padding-left: 32px;
  border-left: 2px solid var(--ink);
}
.quote::before {
  content: "“";
  position: absolute;
  left: -2px;
  top: -28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 88px;
  line-height: 1;
  color: var(--ink);
  font-weight: 500;
}
.quote p {
  font-family: var(--font);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
}
.quote em { font-style: normal; font-weight: 600; }
.quote__attr {
  margin-top: 20px;
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- TWO COL ---------- */
.two {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.two__txt .link { margin-top: 24px; }

.card-soft {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
}
.card-soft .block__lbl { margin-bottom: 16px; }

/* ---------- KV ---------- */
.kv { border-top: 1px solid var(--line); }
.kv div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.kv div:last-child { border-bottom: 0; }
.kv dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kv dd {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.kv--row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.kv--row div {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 18px 24px 18px 0;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}
.kv--row div:last-child { border-right: 0; }
@media (max-width: 800px) {
  .kv--row { grid-template-columns: 1fr 1fr; }
  .kv--row div:nth-child(2) { border-right: 0; }
  .kv--row div:nth-child(1), .kv--row div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  margin-bottom: 72px;
}
.step {
  padding: 32px 24px 24px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; padding-right: 0; }
.step__n {
  display: inline-block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 28px;
  font-variant-numeric: tabular-nums;
}
.step__t {
  font-family: var(--font);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
}
.step__d {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 24ch;
  margin: 0;
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 28px; padding-right: 0; }
  .step:last-child { border-bottom: 0; }
}

.materials { padding-top: 40px; border-top: 1px solid var(--line); }
.materials .block__lbl { margin-bottom: 16px; }

/* ---------- BUY ---------- */
.buys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .buys { grid-template-columns: 1fr; } }

.buy {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .3s var(--ease), border-color .25s var(--ease), box-shadow .35s var(--ease);
}
.buy:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 24px 40px -24px rgba(0,0,0,.16);
}
.buy--dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.buy--dark .body { color: rgba(250,250,247,.72); }
.buy--dark .buy__n { color: rgba(250,250,247,.4); }
.buy__n {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 12px;
}
.buy__t {
  font-family: var(--font);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.buy .link { align-self: flex-start; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--ink);
  max-width: 900px;
}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  text-align: left;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(16px, 1.3vw, 19px);
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: padding-left .25s var(--ease);
  cursor: pointer;
}
.faq__q:hover { padding-left: 12px; }
.faq__ico {
  position: relative;
  width: 14px; height: 14px;
  flex-shrink: 0;
}
.faq__ico::before,
.faq__ico::after {
  content: "";
  position: absolute;
  background: var(--ink);
  top: 50%; left: 0;
  width: 100%; height: 1.5px;
  transform: translateY(-50%);
  transition: transform .3s var(--ease);
}
.faq__ico::after { transform: translateY(-50%) rotate(90deg); }
.faq__item.is-open .faq__ico::after { transform: translateY(-50%) rotate(0); }

.faq__a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq__a p {
  padding: 0 4px 24px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 65ch;
}
.faq__item.is-open .faq__a { max-height: 400px; }

/* ---------- CONTACT GRID ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid__main { display: grid; gap: 16px; }
.mail {
  display: inline-block;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.025em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: opacity .2s var(--ease);
  align-self: start;
}
.mail:hover { opacity: .65; }
.contact-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.social a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s var(--ease);
}
.social a:hover { border-bottom-color: var(--ink); }

/* ---------- NEWSLETTER ---------- */
.newsletter {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
}
.newsletter__t {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 12px 0 20px;
}
.newsletter__form {
  display: grid;
  gap: 12px;
}
.newsletter__field {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  transition: border-color .2s var(--ease);
}
.newsletter__field:focus-within { border-color: var(--focus); }
.newsletter__field input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 16px;            /* 16px minimo: iOS Safari auto-zooma su input <16px */
  padding: 12px 0;
  outline: none;
  color: var(--ink);
}
@media (min-width: 701px) {
  .newsletter__field input { font-size: 14px; }   /* desktop: ridotto, no zoom iOS */
}
.newsletter__field input::placeholder { color: var(--muted); }
.newsletter__field button {
  width: 38px; height: 38px;
  border-radius: 0;
  background: var(--ink);
  color: var(--bg);
  display: inline-grid;
  place-items: center;
  transition: transform .2s var(--ease);
}
.newsletter__field button:hover { transform: translateX(3px); }

.newsletter__msg {
  font-size: 13px;
  margin: 4px 0 0;
  color: var(--muted);
  min-height: 18px;
}
.newsletter__msg.is-ok { color: var(--green); }
.newsletter__msg.is-err { color: #c0392b; }
.newsletter__legal {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.5;
}
.newsletter__legal a { text-decoration: underline; }

/* ---------- STICKY MOBILE CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 12px; right: 12px;
  bottom: 12px;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.4);
  transform: translateY(100%);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.sticky-cta.is-visible { transform: none; opacity: 1; }
.sticky-cta strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
}
.sticky-cta span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(250,250,247,.65);
}
.sticky-cta .btn {
  height: 40px;
  padding: 0 16px;
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
@media (max-width: 700px) { .sticky-cta { display: flex; } }

/* ---------- FOOTER ---------- */
.foot {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(72px, 9vw, 120px) 0 28px;
}
.foot__grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
.foot__col { display: grid; gap: 8px; align-content: start; }
.foot__col--brand { grid-column: span 1; }
@media (max-width: 900px) { .foot__col--brand { grid-column: 1 / -1; margin-bottom: 16px; } }
.foot__col a {
  font-size: 14px;
  color: rgba(250,250,247,.65);
  transition: color .2s var(--ease);
}
.foot__col a:hover { color: var(--bg); }
.foot__brand {
  font-family: var(--font);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--bg);
  margin: 0 0 8px;
}
.foot__tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,250,247,.5);
  margin: 0 0 4px;
}
.foot__addr {
  font-size: 13px;
  color: rgba(250,250,247,.6);
  margin: 0;
}
.foot__h {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  margin: 0 0 12px;
}
.foot__bar {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(250,250,247,.4);
}
.foot__mono { letter-spacing: 0.14em; }

/* Ghost brand sign (artistic flourish at very bottom of footer) */
.foot__sign {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(80px, 14vw, 220px);
  letter-spacing: -0.045em;
  line-height: 0.85;
  color: rgba(250,250,247,.06);
  margin: clamp(40px, 6vw, 80px) 0 0;
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

/* =================================================================
   MODAL — opera detail viewer
   ================================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; pointer-events: auto; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,12,8,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  background: var(--bg);
  width: 100%;
  max-width: 1240px;
  max-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: var(--radius);
  overflow: hidden;
  transform: translateY(24px) scale(.985);
  transition: transform .5s var(--ease);
  box-shadow: 0 50px 100px -20px rgba(0,0,0,.5);
}
.modal.is-open .modal__panel { transform: none; }
@media (max-width: 900px) {
  .modal__panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
    border-radius: var(--radius);
  }
}

.modal__media {
  background: #000;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  touch-action: pan-y;
}
.modal__media img {
  width: 100%; height: 100%;
  object-fit: contain;    /* aspect-ratio reale impostato in JS, contain previene crop */
  display: block;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.modal__media img.is-loaded { opacity: 1; }
.modal__media-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #1a1a1a 30%, #2a2a2a 50%, #1a1a1a 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  opacity: 1;
  transition: opacity .35s var(--ease);
}
.modal__media.is-loaded .modal__media-skeleton { opacity: 0; }
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.modal__media-cap {
  position: absolute;
  left: 18px; right: 18px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: rgba(255,255,255,.85);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.modal__share {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 5;
  width: 36px; height: 36px;
  border-radius: 0;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,.06);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.modal__share:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 900px) { .modal__media { min-height: 0; } }   /* aspect-ratio dinamico da JS, no piu 1/1 forzato */

.modal__info {
  padding: clamp(28px, 4vw, 48px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.modal__head { margin-bottom: 18px; }
.modal__lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.modal__title {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}

/* palette swatches under title (artistic detail) */
.modal__palette {
  display: flex;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.modal__palette li {
  width: 18px;
  height: 18px;
  border-radius: 0;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  transition: transform .25s var(--ease);
}
.modal__palette li:hover { transform: scale(1.18); }
.modal__essay {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 16px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 24px;
}

/* Edition counter + bar */
.modal__edition {
  margin: 0 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.modal__edition-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.modal__edition-lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal__edition-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.modal__edition-val strong { font-weight: 600; }
.modal__edition-bar {
  height: 4px;
  background: var(--line);
  border-radius: 0;
  overflow: hidden;
}
.modal__edition-bar > span {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 0;
  transition: width .8s var(--ease);
}

/* Format selector */
.modal__formats {
  margin: 0 0 24px;
}
.modal__formats .modal__lbl { margin-bottom: 10px; }
.modal__format-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.modal__format {
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.modal__format input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.modal__format-card {
  display: grid;
  gap: 4px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), background .2s var(--ease);
  text-align: left;
}
.modal__format:hover .modal__format-card { border-color: var(--ink); }
.modal__format input:checked + .modal__format-card {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.modal__format-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal__format:hover .modal__format-name,
.modal__format input:checked + .modal__format-card .modal__format-name {
  color: var(--ink);
}
.modal__format input:checked + .modal__format-card .modal__format-name { color: rgba(250,250,247,.55); }
.modal__format-dim {
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
}
.modal__format-px {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.modal__format input:checked + .modal__format-card .modal__format-px { color: rgba(250,250,247,.6); }

.modal__specs {
  border-top: 1px solid var(--line);
  margin: 0 0 24px;
}
.modal__specs div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.modal__specs dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.modal__specs dd {
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.modal__buy {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.modal__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}
.modal__price-lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal__price strong {
  font-family: var(--font);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.modal__trust {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.modal__trust li {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.modal__trust li::before {
  content: "✓";
  color: var(--green);
  font-weight: 600;
}

/* Codice opera (gallery reference) */
.modal__code {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.modal__code span {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-left: 6px;
}

/* close + nav */
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 5;
  width: 36px; height: 36px;
  border-radius: 0;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,.06);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.modal__close:hover { background: var(--ink); color: var(--bg); }

.modal__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 4px;
  z-index: 5;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.2);
}
@media (min-width: 901px) {
  .modal__nav { left: 16px; transform: none; }
}
.modal__navbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.modal__navbtn:hover { background: var(--ink); color: var(--bg); }
.modal__counter {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 0 6px;
  font-variant-numeric: tabular-nums;
}

.modal__hint {
  display: none;
  position: absolute;
  right: 16px; bottom: 18px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 5;
}
@media (min-width: 1100px) { .modal__hint { display: block; } }

.modal.is-swapping .modal__head,
.modal.is-swapping .modal__essay,
.modal.is-swapping .modal__edition,
.modal.is-swapping .modal__formats,
.modal.is-swapping .modal__specs,
.modal.is-swapping .modal__buy,
.modal.is-swapping .modal__trust {
  opacity: 0;
  transition: opacity .15s var(--ease);
}
.modal.is-swapping .modal__media img { opacity: 0; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 12px);
  z-index: 120;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.4);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* =================================================================
   TEASER VISORE 3D (in homepage — sostituisce la sezione ingombrante)
   ================================================================= */
.section--teaser { background: var(--bg-2); }
.teaser {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0;
}
.teaser__txt {                       /* wrapper testo: spacing verticale coerente */
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.teaser__txt .block__lbl { margin: 0; }
.teaser__txt .btn { margin-top: 8px; }
@media (max-width: 800px) {
  .teaser { grid-template-columns: 1fr; }
}
.teaser__title {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 12px 0 24px;
  color: var(--ink);
}
.teaser__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}
.teaser__body {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 48ch;
  margin: 0 0 32px;
}
.teaser__body strong { font-weight: 600; color: var(--ink); }
.teaser__envs {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.teaser__envs li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.teaser__envs .dot {
  width: 14px;
  height: 14px;
  border-radius: 0;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

/* =================================================================
   VISORE 3D — pagina dedicata (visore.html)
   ================================================================= */
.vp-body {
  height: 100vh; height: 100dvh;   /* iOS bottom bar fix */
  overflow: hidden;
  background: var(--bg-2);
}
.vph {
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.vph__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  justify-self: start;
  transition: gap .2s var(--ease);
}
.vph__back:hover { gap: 10px; }
.vph__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.vph__title {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  justify-self: end;
}

.vp {
  height: calc(100vh - 56px);
  height: calc(100dvh - 56px);     /* iOS dynamic viewport */
  display: grid;
  grid-template-columns: 1fr 380px;
}
@media (max-width: 900px) {
  .vp { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
}

.vp__viewer {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
}

/* Override v3d__canvas on page so it fills 100% of viewer area */
.v3d__canvas--page {
  position: absolute !important;
  inset: 0 !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
}

/* Mode toolbar position on page */
.v3d__mode--page {
  top: 16px !important;
  right: 16px !important;
  position: absolute;
}

.vp__side {
  padding: 28px var(--gutter);
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--bg);
}
@media (max-width: 900px) {
  .vp__side { border-left: 0; border-top: 1px solid var(--line); max-height: 45vh; }
}

.vp__title {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 8px 0 6px;
  color: var(--ink);
}
.vp__sub {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--muted);
  margin: 0 0 24px;
  text-transform: uppercase;
}
.vp__controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  width: fit-content;
  margin-bottom: 14px;
}
.vp__hint {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 32ch;
}

.vp__picks-wrap {
  margin-bottom: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.vp__picks-wrap .block__lbl { margin-bottom: 10px; }

.v3d__picks--page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.vp__action {
  display: grid;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* =================================================================
   SCROLL PROGRESS BAR (sottilissima riga in cima alla pagina)
   ================================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--ink);
  z-index: 200;
  transition: width .05s linear;
  pointer-events: none;
}

/* =================================================================
   VISORE 3D — clean modern framed canvas
   ================================================================= */
.v3d {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 900px) {
  .v3d { grid-template-columns: 1fr; }
}

.v3d__main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(20px, 4vw, 60px) 0;
  position: relative;
}

/* Day / Night toggle floating over the canvas */
.v3d__mode {
  position: absolute;
  top: clamp(20px, 4vw, 60px);
  right: 0;
  z-index: 5;
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 0;
}
.v3d__mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.v3d__mode-btn:last-child { border-right: 0; }
.v3d__mode-btn:hover { color: var(--ink); }
.v3d__mode-btn.is-active {
  background: var(--ink);
  color: var(--bg);
}
.v3d__mode-btn svg { display: block; }
@media (max-width: 480px) {
  .v3d__mode { top: 12px; right: 12px; }
  .v3d__mode-btn { padding: 8px 10px; font-size: 10px; }
  .v3d__mode-btn span { display: none; }
}

/* ---- Three.js viewer container ---- */
.v3d__canvas {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(0,0,0,.07) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  cursor: grab;
  overflow: hidden;
  touch-action: none;
}
.v3d__canvas:active { cursor: grabbing; }
.v3d__canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
}
.v3d__canvas:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

/* Loading dots */
.v3d__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.v3d__loading.is-gone { opacity: 0; }
.v3d__loading span {
  width: 6px; height: 6px;
  background: var(--ink);
  display: inline-block;
  animation: dotPulse 1.2s ease-in-out infinite;
}
.v3d__loading span:nth-child(2) { animation-delay: .15s; }
.v3d__loading span:nth-child(3) { animation-delay: .3s; }
@keyframes dotPulse {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-4px); }
}

.v3d__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- v3d side panel ---- */
.v3d__side { display: grid; gap: 14px; align-content: start; }
.v3d__title {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 6px 0 0;
}
.v3d__sub {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 12px;
  font-variant-numeric: tabular-nums;
}
.v3d__controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  width: fit-content;
}
.vbtn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.vbtn:last-child { border-right: 0; }
.vbtn:hover { background: var(--ink); color: var(--bg); }
.vbtn--play {
  width: auto;
  padding: 0 16px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  height: 38px;
}
.vbtn--play .vbtn__paused { display: none; }
.vbtn--play[aria-pressed="false"] .vbtn__playing { display: none; }
.vbtn--play[aria-pressed="false"] .vbtn__paused  { display: inline; }

.v3d__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 4px 0 16px;
}
.v3d__hint svg { color: var(--ink); }

.v3d__picks-wrap {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.v3d__picks-wrap .block__lbl { margin-bottom: 10px; }
.v3d__picks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v3d__picks li { margin: 0; }
.v3d__pick {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f3f0ea;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  border: 0;
  outline: 1px solid transparent;
  outline-offset: 2px;
  transition: outline-color .2s var(--ease);
}
.v3d__pick img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .2s var(--ease), transform .4s var(--ease);
}
.v3d__pick:hover img { opacity: 0.85; transform: scale(1.05); }
.v3d__pick.is-active { outline-color: var(--ink); }
.v3d__pick.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--ink);
  pointer-events: none;
}

.v3d__side .link { margin-top: 16px; align-self: start; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =================================================================
   v2 — UX + RESPONSIVE POLISH
   Aggiunte mirate: touch targets, hover-aware, micro-transitions,
   visore mobile bottom-sheet, breakpoint piccolo (<360px), print.
   ================================================================= */

/* ---------- Smooth global rhythm ---------- */
html { scroll-padding-top: 80px; }   /* anchor jumps non finiscono sotto nav */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }

/* ---------- Selezione testo (brand cue) ---------- */
::selection { background: var(--ink); color: var(--bg); }

/* ---------- Hover-aware: micro-animazioni solo su device che hoverano ---------- */
@media (hover: hover) and (pointer: fine) {
  .nav__cta:hover { transform: translateY(-1px); }
  .btn:hover      { transform: translateY(-1px); box-shadow: 0 6px 0 -3px var(--ink); }
  .work__btn:hover .work__media img { transform: scale(1.03); }
  .work__btn .work__media img { transition: transform .6s var(--ease, ease); }
  .vbtn:hover, .v3d__mode-btn:hover { background: var(--bg-2); }
  .v3d__pick:hover { transform: translateY(-2px); transition: transform .25s ease; }
}

/* ---------- Touch device: tap targets minimi 44×44 (Apple HIG/WCAG) ---------- */
@media (hover: none) and (pointer: coarse) {
  .nav__cta, .nav__brand,
  .btn, .vbtn, .v3d__mode-btn, .v3d__pick,
  .drawer__nav a, .drawer__close,
  .modal__nav-btn, .modal__close,
  .work__btn,
  .foot__col a, .foot__legal a,
  .link {
    min-height: 44px;
  }
  .vbtn { min-width: 44px; padding: 12px 14px; }
  .v3d__mode-btn { padding: 10px 14px; }
  /* Disabilita micro-effetti hover residui */
  *:hover { transform: none !important; }
}

/* ---------- Mobile drawer: easing + backdrop più elegante ---------- */
.drawer {
  transition: transform .42s cubic-bezier(.22,.8,.30,1);
  -webkit-overflow-scrolling: touch;
}
.drawer__nav a {
  transition: padding-left .25s ease, color .2s ease;
}
.drawer__nav a:active { padding-left: 22px; }

/* ---------- Visore page: layout responsivo migliorato ---------- */
/* Tablet ritratto: mantieni split ma riduci side panel */
@media (max-width: 1100px) and (min-width: 901px) {
  .vp { grid-template-columns: 1fr 320px; }
}

/* Mobile: stack verticale con side panel come bottom-sheet scrollabile */
@media (max-width: 900px) {
  .vp {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(46vh, 60vh) 1fr;
    height: calc(100dvh - 56px);   /* dynamic viewport unit per safari bottom bar */
  }
  .vp__side {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: none;             /* annulla limit precedente */
    padding: 20px var(--gutter);
    background: var(--bg);
    box-shadow: 0 -6px 24px -16px rgba(0,0,0,.15);
  }
  .vp__title { font-size: clamp(24px, 6vw, 32px); margin: 6px 0 4px; }
  .vp__sub   { margin-bottom: 16px; }
  .vp__hint  { display: none; }    /* spazio prezioso su mobile */
  .vp__picks-wrap { padding-top: 16px; margin-bottom: 18px; }
  .vp__action { padding-top: 16px; gap: 10px; }
}

/* Mobile: toolbar ambiente in basso (più raggiungibile col pollice) */
@media (max-width: 700px) {
  .v3d__mode--page {
    top: auto !important;
    right: 50% !important;
    bottom: 12px !important;
    transform: translateX(50%);
    padding: 6px;
    background: rgba(250, 250, 247, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line);
  }
  .v3d__mode-btn { padding: 8px 10px; font-size: 11px; }
  .v3d__mode-btn span { font-size: 11px; }
}

/* Mobile: header visore più compatto */
@media (max-width: 700px) {
  .vph { padding: 0 var(--gutter); height: 48px; }
  .vph__title { display: none; }
  .vph__brand { font-size: 14px; }
}

/* ---------- Index hero: nav scrolled = frosted glass ---------- */
.nav.is-scrolled {
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  background: rgba(250, 250, 247, .80);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* ---------- Cards: micro-fade in al primo paint ---------- */
.work {
  animation: fadeUp .55s var(--ease, ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .work { animation: none; }
}

/* ---------- Loading skeleton (3D viewer fallback prima del WebGL) ---------- */
.v3d__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: absolute;
  inset: 0;
  background: var(--bg-2);
}
.v3d__loading span {
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 0;
  animation: v3dPulse 1.4s infinite ease-in-out both;
}
.v3d__loading span:nth-child(2) { animation-delay: .18s; }
.v3d__loading span:nth-child(3) { animation-delay: .36s; }
@keyframes v3dPulse {
  0%, 80%, 100% { opacity: .25; transform: scaleY(.6); }
  40%           { opacity: 1;   transform: scaleY(1.4); }
}

/* ---------- Schermi molto piccoli (<360px) ---------- */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .nav__brand { font-size: 14px; }
  .hero__title { font-size: clamp(34px, 12vw, 56px); }
  .v3d__picks--page { grid-template-columns: repeat(2, 1fr); }
  .vp__title { font-size: 22px; }
}

/* ---------- Schermi grandi 4K+ ---------- */
@media (min-width: 1920px) {
  :root { --gutter: 56px; }
  .nav__row, main > section > .wrap { max-width: 1640px; margin-inline: auto; }
}

/* ---------- Stato disabilitato pulito ---------- */
button[disabled], a[aria-disabled="true"] {
  opacity: .45;
  pointer-events: none;
  cursor: not-allowed;
}

/* ---------- Focus rings raffinati (consistenti dappertutto) ---------- */
:focus-visible {
  outline-offset: 3px;
  transition: outline-offset .12s ease;
}
button:focus-visible, a:focus-visible { outline-offset: 4px; }

/* ---------- Stampa: solo essenziale, no nav, no canvas ---------- */
@media print {
  .nav, .drawer, .sticky-cta, .scroll-progress,
  .modal, .v3d__canvas, .v3d__mode, .vph, .vp__viewer,
  .nav__burger { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  img { max-width: 100%; page-break-inside: avoid; }
  .work__btn, .modal__media { box-shadow: none; }
}

/* ---------- Safari iOS: fix 100vh con dvh dove serve ---------- */
@supports (height: 100dvh) {
  .drawer { height: 100dvh; }
}

/* ---------- Container: pad coerente su edge browser/Safari ---------- */
.wrap, .nav__row, main section {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- Image: lazy + low-rendering hint (perf) ---------- */
@supports (content-visibility: auto) {
  img[loading="lazy"] { content-visibility: auto; }
}
.work__media img { background: var(--bg-2); }

/* =================================================================
   v3 — VISORE 3D POLISH (vignette, loading state, fade, kbd hint)
   ================================================================= */

/* ---------- Vignette cinematic sul canvas (subtle dark corners) ---------- */
.vp__viewer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    transparent 55%,
    rgba(0,0,0,.16) 100%);
  z-index: 5;
}

/* ---------- Loading spinner durante HDRI fetch (data-hdri-loading="1") ---------- */
.vp__viewer[data-hdri-loading="1"]::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 24px; height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: rgba(255,255,255,.95);
  border-radius: 50%;
  animation: v3dSpin .8s linear infinite;
  z-index: 10;
  pointer-events: none;
}
@keyframes v3dSpin { to { transform: rotate(360deg); } }

/* ---------- Fade smooth tra cambi modalità (overlay che pulsa brevemente) ---------- */
.vp__viewer canvas {
  transition: opacity .35s var(--ease, ease);
}
.vp__viewer.is-switching canvas {
  opacity: .50;
}

/* ---------- Suggerimento keyboard shortcuts (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .vp__hint::after {
    content: " · Tasti: 1-4 modi, ← → opere, R ruota, Space pausa";
    color: var(--muted);
    opacity: .75;
  }
}

/* ---------- Mode buttons: feedback più chiaro quando attivo ---------- */
.v3d__mode-btn {
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.v3d__mode-btn.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.v3d__mode-btn.is-active svg { stroke: currentColor; }

/* ---------- Picks (thumbnails) active state polish ---------- */
.v3d__pick.is-active {
  outline: 2px solid var(--ink) !important;
  outline-offset: -1px;
}

/* =================================================================
   v4 — DESIGN REFINEMENT (editorial style)
   Tipografia ottica, micro-interazioni hover, scroll reveal,
   underline animati, mode toolbar glass + indicator.
   ================================================================= */

:root {
  --accent:  #b06a3d;        /* sienna caldo — accento brand */
  --accent-2:#8b4a23;        /* burnt amber più scuro */
  --ease-soft: cubic-bezier(.22, .65, .30, 1);
  --reveal-delay: 0ms;
}

/* ---------- Smart typography ---------- */
html { font-variant-ligatures: common-ligatures contextual; }
h1, h2, h3, .hero__title, .vp__title, .section__title {
  font-feature-settings: "ss01", "kern", "calt";
  text-wrap: balance;            /* heading wrap evenly */
}
p { text-wrap: pretty; }         /* ultima riga non orfana */
time, .work__num, .nav__sup, .work__price,
.block__lbl, .vp__sub, .modal__num,
.foot__col h4 {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- Link underline animato (reveal da sinistra) ---------- */
.link, .foot__col a, .nav__links a, .drawer__mail {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 calc(100% - 1px);
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size .35s var(--ease-soft);
}
@media (hover: hover) and (pointer: fine) {
  .link:hover, .foot__col a:hover, .nav__links a:hover, .drawer__mail:hover {
    background-size: 100% 1px;
  }
}
/* Override per evitare conflitti con altri sottolineati */
.link[href], .foot__col a[href] { text-decoration: none; }

/* ---------- Scroll reveal (JS aggiunge .is-revealed) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
  transition-delay: var(--reveal-delay);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Work cards: hover editorial (lift + slight tilt) ---------- */
@media (hover: hover) and (pointer: fine) {
  .work__btn {
    transition: transform .45s var(--ease-soft);
    will-change: transform;
  }
  .work__btn:hover {
    transform: translateY(-4px);
  }
  .work__media {
    overflow: hidden;
    position: relative;
  }
  .work__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(20,17,13,.18));
    opacity: 0;
    transition: opacity .35s var(--ease-soft);
    pointer-events: none;
  }
  .work__btn:hover .work__media::after { opacity: 1; }
  .work__title { transition: color .25s ease; }
  .work__btn:hover .work__title { color: var(--accent-2); }
}

/* ---------- Mode toolbar (visore): glass + accent line attiva ---------- */
.v3d__mode {
  background: rgba(250, 250, 247, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(20, 17, 13, .08);
  padding: 4px;
  display: inline-flex;
  gap: 2px;
}
.v3d__mode-btn {
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
}
.v3d__mode-btn::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease-soft);
}
.v3d__mode-btn.is-active::after { transform: scaleX(1); }
.v3d__mode-btn.is-active {
  background: rgba(20, 17, 13, .04);
  color: var(--ink);
}

/* ---------- Picks (thumbnails) hover refined ---------- */
@media (hover: hover) and (pointer: fine) {
  .v3d__pick {
    transition: transform .35s var(--ease-soft), opacity .25s ease;
    opacity: .82;
  }
  .v3d__pick:hover {
    opacity: 1;
    transform: translateY(-3px);
  }
  .v3d__pick.is-active { opacity: 1; }
}

/* ---------- Section headers: numbered editorial style ---------- */
/* La pagina usa .block__num (non .section__num): potenzio quello. */
.block__num {
  position: relative;
  color: var(--accent) !important;          /* sienna invece di muted */
}
.block__num::before {
  content: "—";                              /* trattino editoriale prima del numero */
  display: inline-block;
  margin-right: 8px;
  color: var(--accent);
  opacity: .65;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .block__num::before { content: "— "; }
}

/* ---------- Buttons: subtle border-fill animation on hover ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn--solid, .nav__cta {
    position: relative;
    overflow: hidden;
    z-index: 0;
  }
  .btn--solid::before, .nav__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .35s var(--ease-soft);
    z-index: -1;
  }
  .btn--solid:hover::before, .nav__cta:hover::before { transform: scaleY(1); }
  .btn--solid:hover, .nav__cta:hover { border-color: var(--accent); }
}

/* ---------- Hero scroll cue (animato) ---------- */
.hero__scroll {
  animation: heroScrollPulse 2.4s ease-in-out infinite;
}
@keyframes heroScrollPulse {
  0%, 100% { transform: translateY(0); opacity: .65; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ---------- Footer brand: micro-animation on hover ---------- */
.foot__brand {
  transition: letter-spacing .35s var(--ease-soft);
}
@media (hover: hover) and (pointer: fine) {
  .foot__brand:hover { letter-spacing: 0.12em; }
}

/* ---------- Refined focus rings (brand color invece di blu generic) ---------- */
:focus-visible {
  outline-color: var(--accent) !important;
  outline-width: 2px;
}

/* ---------- Drop cap (primo paragrafo di sezioni narrative) ---------- */
.prose > p:first-of-type::first-letter {
  font-size: 3.4em;
  line-height: .9;
  float: left;
  padding: 6px 12px 0 0;
  font-weight: 600;
  color: var(--accent-2);
}

/* ---------- Modal: refinements ---------- */
.modal__close { transition: transform .25s ease; }
@media (hover: hover) and (pointer: fine) {
  .modal__close:hover { transform: rotate(90deg); }
}

/* ---------- Newsletter/forms: focus glow accent ---------- */
.newsletter__field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 106, 61, .12);
}

/* ---------- Vbtn (visore controls) hover/active refinement ---------- */
.vbtn { transition: background .2s ease, color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .vbtn:hover { background: var(--ink); color: var(--bg); }
  .vbtn--play:hover { background: var(--accent); border-color: var(--accent); }
}

/* ---------- CTA in side panel visore: dispatch del fade su switch ---------- */
.vp__viewer.is-switching::after {
  background: radial-gradient(ellipse at center,
    rgba(20,17,13,.05) 0%,
    transparent 50%,
    rgba(0,0,0,.18) 100%);
}

/* =================================================================
   v5 — DETAGLI EDITORIAL (block, prose, step, quote, hero refinements)
   ================================================================= */

/* ---------- Hero badge: pill con underline accent ---------- */
.hero__badge {
  position: relative;
  padding-bottom: 6px;
}
.hero__badge::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  opacity: .55;
}

/* ---------- Hero facts: more imposing typography ---------- */
.hero__facts strong {
  letter-spacing: -0.03em;        /* tighter optical */
  font-feature-settings: "tnum", "ss01";
}
.hero__facts strong::after {
  content: "";
  display: inline-block;
  width: 3px; height: 3px;
  margin: 0 0 8px 6px;
  vertical-align: top;
  background: var(--accent);
  border-radius: 50%;
}
.hero__facts li:first-child strong { color: var(--ink); }

/* ---------- Prose lbl (Roman numerals I, II, III): refined ---------- */
.prose__lbl {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.prose__lbl span {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.4em;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

/* ---------- Quote: large opening mark + refined attr ---------- */
.quote {
  position: relative;
  padding-left: 60px;
  margin: clamp(40px, 5vw, 64px) 0;
}
.quote::before {
  content: "\201C";                /* opening quote " */
  position: absolute;
  left: 0; top: -8px;
  font-family: Georgia, serif;
  font-size: 84px;
  line-height: 1;
  color: var(--accent);
  opacity: .55;
}
.quote p {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.40;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.quote p em { color: var(--accent-2); font-style: italic; }
.quote__attr {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Step numbers (process): bigger, more impressive ---------- */
.step__n {
  font-family: var(--font) !important;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 38px) !important;
  letter-spacing: -0.02em;
  color: var(--accent) !important;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: inline-block;
  padding-bottom: 8px;
  position: relative;
}
.step__n::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Trust bar: hover lift + icon glow ---------- */
@media (hover: hover) and (pointer: fine) {
  .trust__item {
    transition: transform .35s var(--ease-soft), border-color .25s ease;
    border: 1px solid transparent;
    padding: 16px 12px;
    margin: -16px -12px;
  }
  .trust__item:hover {
    transform: translateY(-3px);
    border-color: var(--line);
  }
  .trust__item svg {
    transition: color .25s ease, transform .35s var(--ease-soft);
  }
  .trust__item:hover svg {
    color: var(--accent);
    transform: rotate(-6deg) scale(1.08);
  }
}

/* ---------- Card-soft (Carta d'identità box): refined ---------- */
.card-soft {
  position: relative;
}
.card-soft::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 1px;
  background: var(--accent);
}

/* ---------- KV list (Carta d'identità): typography ---------- */
.kv dt {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- Block intro: leading line accent ---------- */
.block__intro {
  position: relative;
}
@media (min-width: 901px) {
  .block__intro::before {
    content: "";
    position: absolute;
    left: -16px; top: 14px;
    width: 8px; height: 1px;
    background: var(--accent);
    opacity: .65;
  }
}

/* ---------- Section soft: warmer background variation ---------- */
.section--soft {
  background-image: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-2) 100%);
  position: relative;
}
.section--soft::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--accent);
  opacity: .35;
}

/* ---------- Modal media + meta: better hierarchy ---------- */
.modal__num {
  color: var(--accent);
}

/* ---------- Numbered list .steps: stagger animation ---------- */
.steps {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step { position: relative; padding-top: 16px; border-top: 1px solid var(--line); }
.step__t { font-size: 18px; font-weight: 500; margin: 12px 0 6px; }
.step__d { font-size: 14px; color: var(--ink-2); line-height: 1.55; max-width: 30ch; }

/* ---------- Footer: refined hierarchy (markup usa .foot__h, non h4) ---------- */
.foot__col .foot__h {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Hero scroll: refine icon ---------- */
.hero__scroll svg {
  color: var(--accent);
  transition: transform .35s var(--ease-soft);
}
@media (hover: hover) and (pointer: fine) {
  .hero__scroll:hover svg { transform: translateY(3px); }
}

/* ---------- Smooth section borders ---------- */
.section + .section { border-top: none; }
.section:not(.section--soft) + .section--soft,
.section--soft + .section:not(.section--soft) {
  /* la transizione bg-1 → bg-2 fa già da separator visivo, no border */
}

