/* ══════════════════════════════════════════════════════════
   E-MIKE Studio — Design System
   "Atelier chiaro" · base chiara · viola come firma discreta
   Display: Fraunces · Body: Hanken Grotesk · Segni: crop marks
   ══════════════════════════════════════════════════════════ */

/* ── Font self-hosted (variabili) ── */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/HankenGrotesk-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inversionz";
  src: url("fonts/Inversionz.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Token ── */
:root {
  --bg:            #F5F5F7;  /* Bianco Neutro */
  --surface:       #FFFFFF;
  --tint:          #EAEAEF;  /* Grigio Chiaro Neutro */
  --tint-2:        #E1E1E9;
  --ink:           #1A1A20;  /* Grafite */
  --muted:         #5B5A63;  /* Grigio Neutro */
  --accent:        #6A3CC2;  /* Viola Studio (firma) */
  --accent-strong: #522E9A;  /* Viola scuro (link piccoli/testo) */
  --dark:          #1D1C23;  /* Grafite scuro (bande scure) */
  --dark-2:        #2A2833;

  --border:   rgba(26,26,32,0.10);
  --border-2: rgba(26,26,32,0.16);
  --on-dark-border: rgba(255,255,255,0.14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --max-w:  1240px;
  --pad-x:  clamp(20px, 5vw, 64px);
  --sec-y:  clamp(72px, 11vh, 132px);
  --head-h: 68px;
  --radius: 14px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Selezione testo */
::selection { background: var(--accent); color: #fff; }

/* ── Tipografia display ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 460;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display {
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 420;
  line-height: 1.02;
  letter-spacing: -0.018em;
}
.display em { font-style: normal; color: var(--accent); }
.h-sec {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 450;
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 40ch;
}

/* Occhiello con segno di registro */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .reg { flex-shrink: 0; }
.reg { /* segno di registro (crosshair) */
  width: 14px; height: 14px;
  color: var(--accent);
}

/* ── Layout ── */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--sec-y); }
.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lede { max-width: 56ch; margin-top: 18px; }

/* ── Bottoni ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
  cursor: pointer;
}
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-on-dark { background: #fff; color: var(--dark); }
.btn-on-dark:hover { transform: translateY(-2px); background: var(--tint); }

.link-arw {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
}
.link-arw .arw { transition: transform .25s var(--ease); }
.link-arw:hover .arw { transform: translateX(4px); }

/* ══ Segni di stampa: cornice con crop marks ══ */
.frame {
  position: relative;
  border-radius: 4px;
  overflow: visible;
}
.frame > img,
.frame > picture,
.frame > .frame-inner {
  border-radius: 4px;
  overflow: hidden;
  display: block;
}
/* Foto dentro una cornice con aspect-ratio: riempie il riquadro */
.frame > picture { height: 100%; }
.frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  pointer-events: none;
  z-index: 2;
}
.frame::before {
  top: -7px; left: -7px;
  border-top: 1.5px solid var(--accent);
  border-left: 1.5px solid var(--accent);
}
.frame::after {
  bottom: -7px; right: -7px;
  border-bottom: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
}

/* Riquadro foto ancora da scattare: mostra COSA ci andrà */
.frame-inner {
  position: relative;
  background:
    linear-gradient(135deg, var(--tint) 0%, var(--tint-2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px 26px;
  min-height: 100%;
  color: var(--accent-strong);
}
.frame-inner .reg { width: 22px; height: 22px; opacity: .8; }
.frame-note {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
}

/* ══ NAV ══ */
#nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--head-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: "Inversionz", var(--font-display), sans-serif;
  line-height: 1;
  white-space: nowrap;
}
.nav-logo .brand-main {
  font-size: 1.62rem;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.nav-logo .brand-div {
  font-size: 1.24rem;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links .nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.nav-links .nav-cta:hover { background: var(--accent-strong); transform: translateY(-1px); color: #fff; }

#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
#nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ══ HERO ══ */
#hero { padding-block: clamp(48px, 8vh, 96px) var(--sec-y); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero-text .eyebrow { margin-bottom: 26px; }
.hero-text .display { margin-bottom: 28px; }
.hero-text .lede { margin-bottom: 38px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { aspect-ratio: 4 / 5; }
.hero-visual .frame,
.hero-visual .frame-inner { height: 100%; }

/* ══ I 4 MONDI ══ */
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 3vw, 34px);
}
.world {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.world .frame { aspect-ratio: 5 / 4; }
.world .frame-inner { height: 100%; }
.world-body { display: flex; flex-direction: column; gap: 8px; }
.world-num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
}
.world h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 470; }
.world p { color: var(--muted); font-size: 0.98rem; }
.world .link-arw { margin-top: 6px; }
.world .frame { transition: transform .4s var(--ease); }
.world:hover .frame { transform: translateY(-6px); }

/* ══ COME LAVORIAMO ══ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
}
.step { position: relative; padding-top: 28px; border-top: 1.5px solid var(--border-2); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.3rem; font-weight: 480; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ══ BANDA SCURA (privati e aziende) ══ */
.band-dark {
  background: var(--dark);
  color: #F3EEF8;
}
.band-dark h2 { color: #fff; }
.band-dark .split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.band-dark .lede { color: rgba(243,238,248,0.72); }
.aud-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.aud h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 480;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--on-dark-border);
}
.aud ul { display: flex; flex-direction: column; gap: 11px; }
.aud li {
  position: relative;
  padding-left: 22px;
  color: rgba(243,238,248,0.82);
  font-size: 0.96rem;
}
.aud li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 9px; height: 1.5px;
  background: var(--accent);
}

/* ══ FINE ART (tint) ══ */
.band-tint { background: var(--tint); }
.fineart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.fineart .frame { aspect-ratio: 5 / 4; }
.fineart .frame-inner { height: 100%; }
.fineart-text .h-sec { margin: 14px 0 18px; }
.fineart-text p { color: var(--muted); margin-bottom: 14px; }
.fineart-text .link-arw { margin-top: 12px; }

/* ══ PERCHÉ ══ */
.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 30px);
}
.reason { display: flex; flex-direction: column; gap: 12px; }
.reason .reg { width: 20px; height: 20px; }
.reason h3 { font-size: 1.14rem; font-weight: 500; }
.reason p { color: var(--muted); font-size: 0.92rem; }

/* ══ CTA finale ══ */
.cta-band {
  background: var(--dark);
  color: #fff;
  text-align: center;
}
.cta-band .h-sec { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(243,238,248,0.72); max-width: 46ch; margin: 0 auto 32px; }

/* ══ FOOTER ══ */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: 44px;
  font-size: 0.86rem;
  color: var(--muted);
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
#footer address { font-style: normal; line-height: 1.9; }
#footer a { color: var(--accent-strong); }
#footer a:hover { text-decoration: underline; }
.footer-back { font-weight: 600; white-space: nowrap; }

/* ══ Reveal allo scroll ══ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════════
   PAGINE INTERNE (categorie) — componenti condivisi
   ══════════════════════════════════════════════════════════ */

/* Hero di pagina interna */
.page-hero { padding-block: clamp(40px, 7vh, 84px) clamp(36px, 5vh, 60px); }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 430;
  letter-spacing: -0.016em;
  line-height: 1.03;
  margin-bottom: 22px;
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .lede { max-width: 50ch; margin-bottom: 30px; }
.page-hero .frame { aspect-ratio: 4 / 5; }
.page-hero .frame-inner { height: 100%; }

/* Griglia prodotti/servizi */
.prods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 30px);
}
.prod {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.prod:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: 0 12px 40px rgba(26,26,32,0.08);
  transform: translateY(-4px);
}
.prod .frame { aspect-ratio: 4 / 3; margin: 0; border-radius: 0; }
.prod .frame::before, .prod .frame::after { display: none; }
.prod .frame-inner { border-radius: 0; padding: 22px 20px; }
.prod .frame-inner .reg { width: 18px; height: 18px; }
.prod .frame-note { font-size: 0.8rem; }
.prod-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.prod h3 { font-size: 1.2rem; font-weight: 490; }
.prod p { color: var(--muted); font-size: 0.92rem; }

/* Card-tecnica compatte (senza foto) */
.techs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tech {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.tech:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: 0 10px 34px rgba(26,26,32,.07);
  transform: translateY(-3px);
}
.tag-pill {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--tint);
  padding: 4px 10px;
  border-radius: 999px;
}
.tech h3 { font-size: 1.1rem; font-weight: 520; }
.tech p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 820px) { .techs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .techs { grid-template-columns: 1fr; } }

/* Callout "info onesta" */
.note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--tint);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
}
.note .reg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 3px; }
.note p { color: var(--ink); font-size: 0.96rem; line-height: 1.7; }
.note strong { color: var(--accent-strong); font-weight: 600; }

/* Split privati/aziende su fondo chiaro */
.aud-cols.on-light .aud h3 { color: var(--ink); border-bottom-color: var(--border-2); }
.aud-cols.on-light .aud li { color: var(--muted); }
.aud-cols.on-light .aud li::before { background: var(--accent); }

/* Riga link "torna" / sotto-nav categorie */
.crumbs { font-size: 0.86rem; color: var(--muted); }
.crumbs a { color: var(--accent-strong); }
.crumbs a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero .frame { max-width: 420px; }
  .prods { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .prods { grid-template-columns: 1fr; }
}

/* ══ CONTATTI ══ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-list { display: flex; flex-direction: column; }
.contact-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-item:first-child { padding-top: 0; }
.contact-item .lbl {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-item .val { font-size: 1.08rem; color: var(--ink); }
.contact-item .val a { color: var(--accent-strong); }
.contact-item .val a:hover { text-decoration: underline; }
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
}
.contact-box h2 { font-size: 1.55rem; font-weight: 480; margin-bottom: 14px; }
.contact-box p { color: var(--muted); margin-bottom: 14px; font-size: 0.96rem; }
.contact-box .btn { margin-top: 10px; }
.contact-box .fineprint { font-size: 0.85rem; margin-top: 20px; margin-bottom: 0; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }

/* ══ PAGINA LEGALE ══ */
.legal { max-width: 800px; }
.legal .updated { font-size: 0.85rem; color: var(--muted); opacity: .75; margin-bottom: 34px; }
.legal h2 {
  font-size: 1.28rem;
  font-weight: 500;
  margin: 38px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal p, .legal ul { color: var(--muted); margin-bottom: 14px; line-height: 1.8; }
.legal ul { margin-left: 20px; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent-strong); }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 600; }

/* ══════════════════════════════════════════════════════════
   FILIGRANA GRAFICA — segni di categoria + trame ripetibili
   ══════════════════════════════════════════════════════════ */

/* Contenitori con filigrana */
#hero, .page-hero, .cta-band { position: relative; overflow: hidden; }
.band-tint, .band-dark { position: relative; }

/* Filigrana grande (segno di categoria) */
.hero-wm {
  position: absolute;
  left: -6%;
  bottom: -14%;
  width: clamp(280px, 34vw, 480px);
  height: auto;
  color: var(--accent);
  opacity: .045;
  z-index: 0;
  pointer-events: none;
}
.cta-wm {
  position: absolute;
  right: -2%;
  bottom: -24%;
  width: clamp(190px, 24vw, 320px);
  height: auto;
  color: #fff;
  opacity: .07;
  z-index: 0;
  pointer-events: none;
}

/* Contenuti sopra la filigrana */
.hero-grid, .page-hero-grid, .page-hero .section-head, .cta-band .wrap {
  position: relative;
  z-index: 1;
}

/* Trama di crocini sulle bande (dati-URI, un solo colore) */
.band-tint {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cg stroke='%236A3CC2' stroke-width='1' opacity='0.13'%3E%3Cline x1='28' y1='33' x2='28' y2='43'/%3E%3Cline x1='23' y1='38' x2='33' y2='38'/%3E%3Cline x1='109' y1='24' x2='109' y2='34'/%3E%3Cline x1='104' y1='29' x2='114' y2='29'/%3E%3Cline x1='68' y1='96' x2='68' y2='106'/%3E%3Cline x1='63' y1='101' x2='73' y2='101'/%3E%3Cline x1='128' y1='118' x2='128' y2='128'/%3E%3Cline x1='123' y1='123' x2='133' y2='123'/%3E%3Cline x1='18' y1='112' x2='18' y2='122'/%3E%3Cline x1='13' y1='117' x2='23' y2='117'/%3E%3C/g%3E%3C/svg%3E");
}
.band-dark, .cta-band {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cg stroke='%23ffffff' stroke-width='1' opacity='0.06'%3E%3Cline x1='28' y1='33' x2='28' y2='43'/%3E%3Cline x1='23' y1='38' x2='33' y2='38'/%3E%3Cline x1='109' y1='24' x2='109' y2='34'/%3E%3Cline x1='104' y1='29' x2='114' y2='29'/%3E%3Cline x1='68' y1='96' x2='68' y2='106'/%3E%3Cline x1='63' y1='101' x2='73' y2='101'/%3E%3Cline x1='128' y1='118' x2='128' y2='128'/%3E%3Cline x1='123' y1='123' x2='133' y2='123'/%3E%3Cline x1='18' y1='112' x2='18' y2='122'/%3E%3Cline x1='13' y1='117' x2='23' y2='117'/%3E%3C/g%3E%3C/svg%3E");
}

/* Righello divisore (mettere dentro un .wrap) */
.ruler { position: relative; height: 9px; }
.ruler::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--accent); opacity: .28;
}
.ruler::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background-image: repeating-linear-gradient(90deg, var(--accent) 0 1.5px, transparent 1.5px 30px);
  opacity: .28;
}

/* ══ STORIE CLIENTI (testimonianze + portfolio) ══ */
.stories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 3vw, 32px);
}
.story {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.story:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: 0 12px 40px rgba(26,26,32,.08);
  transform: translateY(-4px);
}
.story .frame { aspect-ratio: 3 / 2; margin: 0; border-radius: 0; }
.story .frame::before, .story .frame::after { display: none; }
.story .frame-inner { border-radius: 0; }
.story-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.story blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.42;
  font-weight: 450;
  color: var(--ink);
}
.story-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.story-meta { font-size: 0.92rem; color: var(--muted); margin-top: auto; }
.story-meta strong { color: var(--ink); font-weight: 600; }
.story-meta a { color: var(--accent-strong); }
.story-meta a:hover { text-decoration: underline; }
/* slideshow foto dentro il riquadro cliente */
.story .frame.story-frame { position: relative; overflow: hidden; }
.story-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease); }
.story-frame img.on, .story-frame img:only-child { opacity: 1; }
@media (max-width: 820px) { .stories { grid-template-columns: 1fr; } }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; }
  .worlds-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .band-dark .split { grid-template-columns: 1fr; gap: 32px; }
  .fineart { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr 1fr; }

  #nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--head-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px var(--pad-x) 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 10px 0; font-size: 1rem; }
  .nav-links .nav-cta { margin-top: 8px; }
}
@media (max-width: 520px) {
  .reasons { grid-template-columns: 1fr; }
  .aud-cols { grid-template-columns: 1fr; }
}

/* ══ Reduced motion ══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
