/* ============================================================
   Juan De la Cruz Mayo — L'anima del colore
   Sito artista · Maskai Agency
   Palette tratta dalle opere: caldo/freddo in equilibrio
   ============================================================ */

:root {
  /* Carta / inchiostro */
  --paper:      #f6efe3;
  --paper-2:    #efe5d4;
  --cream:      #fbf6ec;
  --ink:        #1b1410;
  --ink-2:      #2a201a;
  --ink-soft:   #4c3f35;

  /* Accenti dalle tele */
  --terra:      #b5532a;   /* ruggine / terracotta */
  --terra-deep: #8f3c1d;
  --ochre:      #c79a3e;   /* oro / ocra inca */
  --blu:        #1f6f78;   /* il blu che percepisce caldo */
  --blu-bright: #2f9aa3;   /* turchese */

  /* Tipografia */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Misure */
  --container: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --radius: 2px;

  --shadow: 0 24px 60px -28px rgba(27, 20, 16, .55);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: clamp(1rem, .55vw + .9rem, 1.08rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- Tipografia ---------- */
h1, h2, h3, .display { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; }

.kicker {
  font-family: var(--body);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--terra);
}
.kicker--light { color: var(--ochre); }

.lead { font-size: clamp(1.15rem, 1.1vw + 1rem, 1.5rem); line-height: 1.5; color: var(--ink-soft); }
.serif-lead {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw + 1rem, 2.6rem);
  line-height: 1.28;
  letter-spacing: -.01em;
}
em, .it { font-style: italic; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
section { position: relative; }
.pad { padding-block: clamp(4.5rem, 9vw, 9rem); }

.section-head { max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); margin: .5rem 0 1.25rem; }

.rule { height: 1px; background: linear-gradient(90deg, var(--terra), transparent); border: 0; width: 5rem; margin: 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.nav__logo img { height: 40px; width: auto; transition: opacity .3s; }
.nav__logo .logo-black { display: none; }
.nav__links { display: flex; gap: clamp(1rem, 2vw, 2.2rem); align-items: center; }
.nav__links a {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: rgba(251, 246, 236, .82); position: relative; padding: .3rem 0;
  text-align: center; white-space: nowrap;
}
/* larghezze fisse per link → la nav non si sposta cambiando lingua (IT/EN) */
.nav__links a:nth-of-type(1) { min-width: 100px; } /* Manifesto */
.nav__links a:nth-of-type(2) { min-width: 92px; }  /* Percorso / Journey */
.nav__links a:nth-of-type(3) { min-width: 64px; }  /* Opere / Works */
.nav__links a:nth-of-type(4) { min-width: 72px; }  /* Atelier */
.nav__links a:nth-of-type(5) { min-width: 90px; }  /* Progetti / Projects */
.nav__links a:nth-of-type(6) { min-width: 86px; }  /* Contatti / Contact */
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--ochre); transition: width .35s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  border: 1px solid rgba(251, 246, 236, .4); padding: .55rem 1.1rem; border-radius: 999px;
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--cream); transition: all .35s var(--ease);
  display: inline-block; min-width: 196px; text-align: center; white-space: nowrap;
}
.nav__cta:hover { background: var(--terra); border-color: var(--terra); }

/* stato scrollato → barra chiara */
.nav.is-solid {
  background: rgba(246, 239, 227, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(27, 20, 16, .08);
  padding-block: .75rem;
}
.nav.is-solid .logo-white { display: none; }
.nav.is-solid .logo-black { display: block; }
.nav.is-solid .nav__links a { color: var(--ink-2); }
.nav.is-solid .nav__cta { color: var(--ink); border-color: rgba(27, 20, 16, .3); }
.nav.is-solid .nav__cta:hover { color: var(--cream); border-color: var(--terra); }
.nav.is-solid .nav__burger span { background: var(--ink); }

/* language switch */
.lang-switch { display: inline-flex; align-items: center; gap: .45rem; margin-left: .4rem; }
.lang-switch button {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: rgba(251, 246, 236, .55); padding: .2rem .1rem; transition: color .3s var(--ease), opacity .3s;
}
.lang-switch button:hover { color: rgba(251, 246, 236, .9); }
.lang-switch button.is-active { color: var(--ochre); }
.lang-switch span { color: rgba(251, 246, 236, .35); font-size: .7rem; }
.nav.is-solid .lang-switch button { color: rgba(27, 20, 16, .5); }
.nav.is-solid .lang-switch button:hover { color: var(--ink); }
.nav.is-solid .lang-switch button.is-active { color: var(--terra); }
.nav.is-solid .lang-switch span { color: rgba(27, 20, 16, .3); }

.nav__burger { display: none; width: 30px; height: 20px; position: relative; }
.nav__burger span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--cream); transition: .3s var(--ease); }
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 9px; }
.nav__burger span:nth-child(3) { top: 18px; }
body.menu-open .nav__burger span:nth-child(1) { top: 9px; transform: rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--cream); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 32%;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.8s var(--ease);
  will-change: opacity, transform;
}
.hero__slide.is-active { opacity: 1; animation: heroZoom 7.5s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.14); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,14,11,.55) 0%, rgba(20,14,11,.15) 35%, rgba(20,14,11,.55) 75%, rgba(20,14,11,.92) 100%),
    radial-gradient(120% 90% at 80% 20%, rgba(47,154,163,.16), transparent 60%);
}
.hero__inner { padding-bottom: clamp(3.5rem, 8vh, 7rem); padding-top: 8rem; }
.hero__name {
  font-size: clamp(3.2rem, 11vw, 10rem);
  font-weight: 500; line-height: .92; letter-spacing: -.02em;
  text-shadow: 0 8px 40px rgba(0,0,0,.35);
}
.hero__name span { display: block; }
.hero__name .it { font-style: italic; font-weight: 400; color: var(--ochre); }
.hero__tag {
  margin-top: 1.5rem; max-width: 30ch;
  font-size: clamp(1.05rem, 1.4vw + .5rem, 1.5rem);
  font-family: var(--display); font-style: italic; color: rgba(251,246,236,.92);
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.25rem;
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(251,246,236,.7);
}
.hero__meta span { display: flex; align-items: center; gap: .6rem; }
.hero__meta span::before { content: ""; width: 6px; height: 6px; background: var(--ochre); border-radius: 50%; }
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(3.5rem, 8vh, 7rem); z-index: 2;
  writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(251,246,236,.6); display: flex; align-items: center; gap: 1rem;
}
.scroll-cue::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--ochre), transparent); }

/* ============================================================
   MANIFESTO (banda scura)
   ============================================================ */
.ink-band { background: var(--ink); color: var(--cream); }
.ink-band .kicker { color: var(--ochre); }
.quote-block { max-width: 24ch; }
.quote-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.big-quote {
  font-family: var(--display); font-weight: 400; font-style: italic;
  font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.18; letter-spacing: -.01em;
}
.big-quote b { font-style: normal; font-weight: 500; color: var(--ochre); }
.quote-cite { margin-top: 2rem; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(251,246,236,.55); }
.manifesto-text p + p { margin-top: 1.2rem; }
.manifesto-text p { color: rgba(251,246,236,.82); }

/* tre parole-chiave */
.triwords { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(251,246,236,.12); margin-top: clamp(3rem, 6vw, 5rem); }
.triwords div { background: var(--ink); padding: clamp(1.75rem, 4vw, 3rem) 1.5rem; text-align: center; }
.triwords .w { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--cream); }
.triwords .n { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ochre); display: block; margin-bottom: .6rem; }

/* ============================================================
   PERCORSO / ARTISTA
   ============================================================ */
.bio-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.bio-portrait { position: relative; }
.bio-portrait img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3.2; object-fit: cover; object-position: center 25%; }
.bio-portrait .tag {
  position: absolute; bottom: -1px; left: -1px; background: var(--terra); color: var(--cream);
  padding: .8rem 1.4rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
}
.bio-text h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: .6rem 0 1.5rem; }
.bio-text p + p { margin-top: 1.1rem; }
.bio-text .drop::first-letter {
  font-family: var(--display); font-size: 3.6em; float: left; line-height: .72;
  padding: .08em .12em 0 0; color: var(--terra); font-weight: 500;
}

/* timeline orizzontale */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: clamp(3rem, 6vw, 5rem); }
.timeline .t { border-top: 1px solid rgba(27,20,16,.18); padding-top: 1.1rem; }
.timeline .yr { font-family: var(--display); font-size: 2rem; color: var(--terra); line-height: 1; }
.timeline .lb { font-size: .94rem; color: var(--ink-soft); margin-top: .5rem; }

/* ============================================================
   GALLERIA OPERE
   ============================================================ */
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; }
.gallery {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  columns: 3; column-gap: clamp(.8rem, 1.6vw, 1.4rem);
}
.op {
  break-inside: avoid; margin-bottom: clamp(.8rem, 1.6vw, 1.4rem);
  position: relative; cursor: pointer; overflow: hidden; border-radius: var(--radius);
  background: var(--paper-2);
}
.op img { width: 100%; transition: transform .9s var(--ease); }
.op::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20,14,11,.82));
  opacity: 0; transition: opacity .5s var(--ease);
}
.op__cap {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 2; color: var(--cream);
  transform: translateY(12px); opacity: 0; transition: all .5s var(--ease);
}
.op__cap .t { display: block; font-family: var(--display); font-size: 1.4rem; line-height: 1.1; }
.op__cap .m { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(251,246,236,.75); margin-top: .35rem; }
.op__plus {
  position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(251,246,236,.16); backdrop-filter: blur(4px); display: grid; place-items: center;
  color: var(--cream); opacity: 0; transform: scale(.7); transition: all .45s var(--ease); font-size: 1.1rem;
}
.op:hover img { transform: scale(1.05); }
.op:hover::after,
.op:hover .op__cap,
.op:hover .op__plus { opacity: 1; }
.op:hover .op__cap { transform: translateY(0); }
.op:hover .op__plus { transform: scale(1); }

.gallery-note { margin-top: 2.5rem; font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: .7rem; }
.dot-avail { width: 9px; height: 9px; border-radius: 50%; background: var(--blu-bright); box-shadow: 0 0 0 4px rgba(47,154,163,.18); }

/* ============================================================
   ATELIER / PROCESSO
   ============================================================ */
.atelier { background: var(--ink); color: var(--cream); overflow: hidden; }
.atelier .kicker { color: var(--ochre); }
.atelier-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.atelier-img { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.atelier-img img { aspect-ratio: 3/2.2; object-fit: cover; }
.atelier h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: .6rem 0 1.5rem; }
.atelier p { color: rgba(251,246,236,.82); }
.atelier p + p { margin-top: 1.1rem; }
.ritual-list { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: .9rem; }
.ritual-list li { display: flex; gap: 1rem; align-items: baseline; font-size: .98rem; color: rgba(251,246,236,.9); }
.ritual-list li::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: .4rem; border-radius: 50%; background: var(--terra); }

/* ============================================================
   PROGETTI
   ============================================================ */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); margin-top: clamp(2.5rem, 5vw, 4rem); }

/* card progetto principale (Mayo Atelier) */
.proj.proj--feature {
  grid-column: 1 / -1; flex-direction: row; align-items: stretch; gap: 0;
  background: var(--ink); color: var(--cream); border-color: transparent; min-height: 0; padding: 0;
}
.proj.proj--feature::before { background: linear-gradient(90deg, var(--terra), var(--ochre)); }
.proj--feature .proj-feat-body { flex: 1; padding: clamp(2rem, 4vw, 3.25rem); }
.proj--feature .pk { color: var(--ochre); }
.proj--feature h3 { color: var(--cream); font-size: clamp(2rem, 4vw, 3rem); }
.proj--feature p { color: rgba(251,246,236,.82); max-width: 52ch; }
.proj--feature .go { color: var(--cream); }
.proj--feature .proj-feat-aside {
  flex: 0 0 clamp(180px, 22%, 260px); border-left: 1px solid rgba(251,246,236,.16);
  padding: clamp(2rem, 4vw, 3.25rem); display: flex; flex-direction: column; justify-content: center; gap: .35rem;
}
.proj-feat-aside .lbl { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(251,246,236,.5); }
.proj-feat-aside .val { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--ochre); line-height: 1.05; }
.proj-feat-aside .sub { font-size: .86rem; color: rgba(251,246,236,.7); }

/* variante chiara (Ayni) */
.proj.proj--feature.proj--light { background: var(--cream); color: var(--ink); border: 1px solid rgba(27,20,16,.14); }
.proj.proj--feature.proj--light .pk { color: var(--terra); }
.proj.proj--feature.proj--light h3 { color: var(--ink); }
.proj.proj--feature.proj--light p { color: var(--ink-soft); }
.proj.proj--feature.proj--light .go { color: var(--ink); }
.proj.proj--feature.proj--light .proj-feat-aside { border-left-color: rgba(27,20,16,.14); }
.proj--light .proj-feat-aside .lbl { color: var(--ink-soft); }
.proj--light .proj-feat-aside .val { color: var(--terra); }
.proj--light .proj-feat-aside .sub { color: var(--ink-soft); }
.proj {
  position: relative; padding: clamp(1.75rem, 3vw, 2.5rem); border: 1px solid rgba(27,20,16,.14);
  border-radius: var(--radius); background: var(--cream); transition: all .45s var(--ease); overflow: hidden;
  display: flex; flex-direction: column; min-height: 280px;
}
.proj::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--ochre)); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.proj:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.proj:hover::before { transform: scaleX(1); }
.proj .pk { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--terra); }
.proj h3 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin: .8rem 0 .6rem; }
.proj p { color: var(--ink-soft); font-size: .98rem; flex: 1; }
.proj .go {
  margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink);
}
.proj .go svg { transition: transform .4s var(--ease); }
.proj:hover .go svg { transform: translateX(5px); }
.proj .go.muted { color: var(--ink-soft); }

/* ============================================================
   INTERVISTA / VIDEO
   ============================================================ */
.video-band { background: var(--paper-2); }
.video-wrap { max-width: 980px; margin-inline: auto; }
.video-facade {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; box-shadow: var(--shadow); background: var(--ink);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .5s, transform .8s var(--ease); }
.video-facade:hover img { opacity: .42; transform: scale(1.04); }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; color: var(--cream);
}
.play .btn {
  width: 84px; height: 84px; border-radius: 50%; background: rgba(181,83,42,.9); display: grid; place-items: center;
  transition: transform .4s var(--ease), background .4s; box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.video-facade:hover .play .btn { transform: scale(1.08); background: var(--terra); }
.play .btn svg { margin-left: 5px; }
.play .lbl { position: absolute; bottom: clamp(1.25rem, 3vw, 2rem); left: clamp(1.25rem, 3vw, 2rem); text-align: left; }
.play .lbl .t { font-family: var(--display); font-size: clamp(1.4rem, 2.5vw, 2rem); }
.play .lbl .s { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }

/* ============================================================
   CONTATTI / CTA
   ============================================================ */
.contact { background: var(--ink); color: var(--cream); text-align: center; }
.contact .kicker { color: var(--ochre); }
.contact h2 { font-size: clamp(2.4rem, 6vw, 5rem); margin: 1rem 0 1.5rem; max-width: 18ch; margin-inline: auto; }
.contact .lead { color: rgba(251,246,236,.78); max-width: 50ch; margin: 0 auto 2.5rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .7rem; background: var(--terra); color: var(--cream);
  padding: 1rem 2rem; border-radius: 999px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; transition: all .4s var(--ease);
}
.btn-primary:hover { background: var(--ochre); color: var(--ink); transform: translateY(-3px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .6rem; color: var(--cream); font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 500; opacity: .85; transition: opacity .3s;
}
.btn-ghost:hover { opacity: 1; }
.contact-actions { display: flex; gap: 2rem; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #140e0b; color: rgba(251,246,236,.6); padding-block: clamp(3rem, 5vw, 4rem); font-size: .88rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer img { height: 44px; opacity: .9; }
.footer a:hover { color: var(--ochre); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(251,246,236,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .78rem; letter-spacing: .04em; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15,10,8,.96); backdrop-filter: blur(6px);
  display: grid; grid-template-rows: 1fr auto; place-items: center; padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.6); transition: opacity .25s; }
.lb-cap { text-align: center; color: var(--cream); margin-top: 1.5rem; }
.lb-cap .t { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); }
.lb-cap .m { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(251,246,236,.6); margin-top: .4rem; }
.lb-cap .req { display: inline-flex; margin-top: 1rem; align-items: center; gap: .5rem; color: var(--ochre); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--ochre); padding-bottom: 2px; }
.lb-close, .lb-nav { position: absolute; z-index: 3; color: var(--cream); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(251,246,236,.1); transition: background .3s; }
.lb-close:hover, .lb-nav:hover { background: var(--terra); }
.lb-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: clamp(.5rem, 2vw, 2rem); }
.lb-next { right: clamp(.5rem, 2vw, 2rem); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .gallery { columns: 2; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
}
@media (max-width: 860px) {
  .nav__links { gap: 1.4rem; }
  .quote-grid, .bio-grid, .atelier-grid { grid-template-columns: 1fr; }
  .bio-portrait { order: -1; }
  .projects { grid-template-columns: 1fr; }
  .proj.proj--feature { flex-direction: column; }
  .proj.proj--feature .proj-feat-aside { border-left: 0; border-top: 1px solid rgba(251,246,236,.16); flex-basis: auto; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem;
    background: rgba(20,14,11,.98); backdrop-filter: blur(10px);
    transform: translateX(100%); transition: transform .5s var(--ease); z-index: 55;
  }
  body.menu-open .nav__links { transform: translateX(0); }
  .nav__links a { font-size: 1.1rem; color: var(--cream) !important; }
  .nav.is-solid .nav__links a::after { background: var(--ochre); }
  /* lang switch nel menu mobile: sempre su fondo scuro */
  .lang-switch { margin: .5rem 0 0; gap: .7rem; }
  .lang-switch button,
  .nav.is-solid .lang-switch button { color: rgba(251, 246, 236, .6); font-size: 1rem; }
  .lang-switch button.is-active,
  .nav.is-solid .lang-switch button.is-active { color: var(--ochre); }
  .lang-switch span,
  .nav.is-solid .lang-switch span { color: rgba(251, 246, 236, .35); }
}
@media (max-width: 560px) {
  .gallery { columns: 1; }
  .triwords { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .hero__name { font-size: clamp(2.8rem, 16vw, 5rem); }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__slide { transform: none !important; }
}
