/* ============================================
   SALVO NERO — STYLESHEET v2
   Raw, physical, deliberately imperfect.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

@font-face {
  font-family: 'I Know A Ghost';
  src: url('../fonts/iknowaghost.woff2') format('woff2'),
       url('../fonts/iknowaghost.ttf')   format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── RESET ─────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img  { display: block; width: 100%; height: 100%; object-fit: cover; }
a    { color: inherit; text-decoration: none; }

/* ─── TOKENS ─────────────────────────────────── */
:root {
  --bg:         #0e0c09;        /* charcoal caldo — non nero puro */
  --bg2:        #151209;        /* sezioni alternate, leggermente più caldo */
  --bg3:        #1c1813;        /* cards, placeholder */
  --text:       #e2dace;        /* avorio caldo — più leggibile */
  --muted:      #7e7664;        /* corpo testo — ora leggibile (era #5e5649) */
  --dim:        #3e3628;        /* dettagli minimi */
  --accent:     #a87256;        /* siena bruciato — leggermente più caldo */
  --accent-hi:  #cc9070;
  --border:     #262018;        /* bordi visibili */
  --border2:    #38301f;        /* bordi enfatizzati */

  --display: 'I Know A Ghost', 'Bebas Neue', 'Impact', sans-serif;
  --heading: 'I Know A Ghost', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --serif:   'I Know A Ghost', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --mono:    'Space Mono', 'Courier New', monospace;
}

/* ─── BASE ───────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── GRAIN TEXTURE ──────────────────────────── */
/* Simulazione di grana canvas sopra tutto il sito */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.048;            /* grana canvas leggermente più presente */
  mix-blend-mode: screen;
}

/* ─── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, blockquote, .serif {
  font-family: var(--heading);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.display {
  font-family: var(--display);
  font-size: clamp(5rem, 10vw, 11rem);
  line-height: 0.9;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.03em;
}

h1 { font-size: clamp(3rem, 6vw, 6.5rem); line-height: 1.0; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.1; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.2; }
h4 { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

p.body-text {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.95;
  color: var(--muted);
  max-width: 56ch;
  letter-spacing: 0.02em;
}

.divider {
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin: 1.6rem 0;
}

/* ─── CUSTOM CURSOR ──────────────────────────── */
html, body { cursor: none; }

.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--text);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}
.cursor-ring {
  position: absolute;
  width: 36px; height: 36px;
  border: 1px solid rgba(220, 213, 197, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--accent);
}

/* ─── BUTTON ─────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border2);
  padding: 0.85rem 2.4rem;
  background: transparent;
  cursor: none;
  transition: color 0.35s, border-color 0.35s, background 0.35s;
}
.btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(155, 107, 80, 0.06);
}

/* ─── NAVIGATION ─────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 4rem;
  background: linear-gradient(to bottom, rgba(8,7,5,0.96) 0%, transparent 100%);
}

.nav-logo {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--text);
  transition: all 0.3s;
}

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 68% 38%, #2a1e0e 0%, #14100a 45%, #080705 80%);
}
.hero-bg img {
  opacity: 0.48;             /* era 0.36 — l'opera sull'hero sarà più presente */
  filter: contrast(1.08) saturate(0.75);
  object-position: center;
}
/* vignette gradient */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  rgba(8,7,5,0.95) 0%,   rgba(8,7,5,0.4) 45%, transparent 75%),
    linear-gradient(to right, rgba(8,7,5,0.5) 0%,   transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 4rem 5.5rem;
  max-width: 1000px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
}

.hero-title { margin-bottom: 2.2rem; }
.hero-title em { font-style: normal; color: var(--accent-hi); }

.hero-sub {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 2;
  color: var(--muted);
  letter-spacing: 0.04em;
  max-width: 46ch;
  margin-bottom: 3rem;
}

/* Vertical text — right side */
.hero-vertical {
  position: absolute;
  right: 4rem;
  bottom: 5.5rem;
  z-index: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.5s;
}
.hero:hover .hero-vertical { color: var(--muted); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.3;
  transition: opacity 0.3s;
  animation: fade-scroll 2.5s ease infinite;
}
.scroll-indicator span {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scroll-line 2s ease infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fade-scroll {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.6; }
}

/* ─── QUOTE / MANIFESTO ──────────────────────── */
.quote-section {
  padding: 9rem 6rem;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  background: var(--bg2);    /* sezione alternata — respiro visivo */
}
.quote-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 6rem;
  background: linear-gradient(to bottom, var(--border), transparent);
}

.quote-mark {
  font-family: var(--serif);
  font-size: 7rem;
  line-height: 0.5;
  color: var(--dim);
  margin-bottom: 2rem;
  display: block;
}

blockquote.main-quote {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 5rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.18;
  color: var(--text);
  max-width: 920px;
  margin: 0 auto 3rem;
  letter-spacing: -0.01em;
}

.quote-attr {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Two-col description below quote */
.quote-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 900px;
  margin: 5rem auto 0;
  text-align: left;
}

/* ─── WORKS (HOME) — ASYMMETRIC ──────────────── */
.works-section {
  padding: 0 0 9rem;
}
.works-header {
  padding: 0 4rem 3rem;
}

.works-asym {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--border);
  padding: 0 4rem 3px;
}

.work-cell {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  cursor: none;
  aspect-ratio: 1;
  padding: 1.8rem;
  box-sizing: border-box;
}
.work-cell.main { /* nessuna differenziazione — tutti uguali */ }

.work-cell img {
  object-fit: contain;          /* nessun taglio — opera visibile per intero */
  opacity: 0.88;
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94),
              opacity  0.6s ease;
  filter: contrast(1.04) saturate(0.85);
}
.work-cell:hover img {
  transform: scale(1.03);
  opacity: 1;
  filter: contrast(1.06) saturate(1);
}

.work-cell-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,7,5,0.88) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.work-cell:hover .work-cell-overlay { opacity: 1; }

.work-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-style: normal;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.work-meta {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* placeholder — visibili anche senza immagini reali */
.img-placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      #28200f 0%,
      #1a1409 40%,
      #22190c 70%,
      #141008 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: #5a4e38;            /* testo placeholder più visibile */
  text-transform: uppercase;
  text-align: center;
  line-height: 2;
}
/* Varianti cromatiche per differenziare le celle */
.work-cell:nth-child(2) .img-placeholder,
.grid-item:nth-child(3n+2) .img-placeholder {
  background: linear-gradient(160deg, #201a0c 0%, #2a1f0e 50%, #161008 100%);
}
.work-cell:nth-child(3) .img-placeholder,
.grid-item:nth-child(3n+3) .img-placeholder {
  background: linear-gradient(200deg, #251c0e 0%, #141008 50%, #201608 100%);
}

.works-cta {
  padding: 3rem 4rem 0;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.works-cta::before {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--border2);
}

/* ─── ABOUT (HOME PREVIEW) ───────────────────── */
.about-split {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  background: var(--bg);     /* sezione torna al bg base dopo la quote bg2 */
}

.about-split-img {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, #1e1710 0%, #120e08 40%, #1a1510 100%);
}
.about-split-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;  /* ancora il viso — sempre visibile */
  opacity: 0.8;
  filter: contrast(1.1) saturate(0.6);
  transition: opacity 0.6s ease;
}
.about-split-img:hover img { opacity: 1; }

.about-split-text {
  padding: 6rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
}
.about-split-text h2 { margin-bottom: 2rem; }
.about-split-text .body-text { margin-bottom: 3rem; }

/* ─── GALLERY PAGE ───────────────────────────── */
.page-header {
  padding: 13rem 4rem 5rem;
  border-bottom: 1px solid var(--border);
  max-width: 800px;
}
.page-header h1 { font-style: italic; margin-top: 0.8rem; }

.filter-bar {
  padding: 1.6rem 4rem;
  display: flex;
  gap: 2.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: none;
  padding-bottom: 3px;
  transition: all 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

.grid-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg2);
  cursor: none;
}
.grid-item img {
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.5s;
  opacity: 0.85;             /* era 0.72 — più visibile */
  filter: contrast(1.03) saturate(0.9);
}
.grid-item:hover img {
  transform: scale(1.05);
  opacity: 1;
  filter: contrast(1.05) saturate(1);
}

.grid-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,7,5,0.92) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  opacity: 0;
  transition: opacity 0.4s;
}
.grid-item:hover .grid-item-overlay { opacity: 1; }

.grid-item-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  display: block;
}
.grid-item-meta {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
  display: block;
}

/* ─── ABOUT PAGE ─────────────────────────────── */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  border-bottom: 1px solid var(--border);
}

.about-hero-text {
  padding: 13rem 5rem 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.about-hero-text h1 { font-style: normal; margin-top: 0.8rem; margin-bottom: 2rem; }

.about-hero-img {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
}
.about-hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  filter: contrast(1.1) saturate(0.5);
}

.about-body {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
}

.about-text {
  padding: 7rem 5rem 7rem 4rem;
  border-right: 1px solid var(--border);
}
.about-text p {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 2;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
.about-text p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 5rem;
  float: left;
  line-height: 0.72;
  margin-right: 0.1em;
  color: var(--text);
  font-style: italic;
}

.about-sidebar {
  padding: 7rem 4rem;
}
.about-sidebar-block {
  margin-bottom: 2.8rem;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid var(--border);
}
.about-sidebar-block:last-child { border-bottom: none; margin-bottom: 0; }
.about-sidebar-block h4 { margin-bottom: 1rem; }
.about-sidebar-block p,
.about-sidebar-block li {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.9;
  letter-spacing: 0.02em;
}
.about-sidebar-block ul { list-style: none; }
.about-sidebar-block ul li::before { content: '— '; color: var(--accent); }

/* Studio strip */
.studio-strip {
  padding: 0 0 8rem;
  border-top: 1px solid var(--border);
}
.studio-strip-header { padding: 5rem 4rem 3rem; }
.studio-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}
.studio-cell {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
}
.studio-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: contrast(1.05) saturate(0.7);
  transition: opacity 0.5s, transform 0.7s;
}
.studio-cell:hover img { opacity: 0.95; transform: scale(1.04); }

/* ─── SHOP PAGE ──────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem 3rem;
  margin-top: 4rem;
}

.shop-item { cursor: none; }

.shop-item-img {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  margin-bottom: 1.4rem;
}
.shop-item-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  filter: contrast(1.05) saturate(0.8);
  transition: transform 0.7s ease, opacity 0.4s;
}
.shop-item:hover .shop-item-img img {
  transform: scale(1.04);
  opacity: 1;
}

.shop-item-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.shop-item-detail {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
}
.shop-item-price {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 0.7rem;
  letter-spacing: 0.04em;
}

.shop-note {
  border-top: 1px solid var(--border);
  margin-top: 7rem;
  padding-top: 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

/* ─── CONTACT PAGE ───────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.contact-info {
  padding: 13rem 5rem 5rem 4rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.contact-info h1 { font-style: italic; margin-top: 0.8rem; margin-bottom: 3rem; }

.contact-detail {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:first-of-type { border-top: 1px solid var(--border); }
.contact-detail-label {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.contact-detail-value {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.7;
}
.contact-detail-value a:hover { color: var(--text); }

.contact-form-wrap {
  padding: 13rem 4rem 5rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contact-form label {
  display: block;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
  margin-top: 2.5rem;
}
.contact-form label:first-child { margin-top: 0; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border2);
  padding: 0.9rem 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
  outline: none;
  transition: border-color 0.3s;
  letter-spacing: 0.03em;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-bottom-color: var(--accent); }

.contact-form select {
  cursor: none;
  appearance: none;
  -webkit-appearance: none;
  color: var(--muted);
}
.contact-form select option { background: #1a1812; }

.contact-form textarea {
  height: 120px;
  resize: none;
  line-height: 1.8;
}

.contact-form .btn { margin-top: 3.5rem; width: 100%; text-align: center; }

/* ─── LIGHTBOX ───────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,7,5,0.97);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.lightbox.open { display: flex; }

.lightbox-inner {
  display: flex;
  gap: 4.5rem;
  align-items: center;
  max-width: 1100px;
  width: 100%;
}
.lightbox-img {
  max-height: 84vh;
  max-width: 62vw;
  object-fit: contain;
  width: auto;
  height: auto;
  filter: contrast(1.05) saturate(0.85);
  flex-shrink: 0;
}
.lightbox-info { min-width: 240px; max-width: 280px; }
.lightbox-info .meta {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lightbox-info h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 400;
  margin-bottom: 1.2rem;
  color: var(--text);
}
.lightbox-info p {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.lightbox-close {
  position: fixed;
  top: 2.2rem; right: 3.5rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: none;
  transition: color 0.3s;
}
.lightbox-close:hover { color: var(--text); }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: none;
  color: var(--dim);
  font-size: 1.4rem;
  padding: 1.5rem;
  transition: color 0.3s;
  font-family: var(--mono);
}
.lightbox-nav:hover { color: var(--muted); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ─── FOOTER ─────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--display);
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 400;
  color: var(--text);
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  justify-content: center;
}
.footer-nav a {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--text); }

.footer-right {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--dim);
  letter-spacing: 0.06em;
  line-height: 1.9;
}

/* ─── FADE-IN ANIMATIONS ─────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }


/* ─── RESPONSIVE ─────────────────────────────── */

/* Touch devices: show overlays permanently (no hover) */
@media (hover: none) {
  html, body { cursor: auto; }
  .cursor { display: none; }
  * { cursor: auto !important; }

  .work-cell-overlay,
  .grid-item-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(8,7,5,0.82) 0%, transparent 60%);
  }
  .work-cell img,
  .grid-item img { opacity: 0.88; }
}

/* ── Tablet landscape (≤ 1100px) ────────────────── */
@media (max-width: 1100px) {
  nav { padding: 1.6rem 3rem; }

  .hero-content { padding: 0 3rem 5rem; }
  .hero-vertical { right: 3rem; }

  .works-asym {
    grid-template-columns: 1fr 1fr;
    padding: 0 3rem 3px;
  }
  .work-cell { aspect-ratio: 1; padding: 1.4rem; }
  .work-cell.main { grid-column: auto; }

  .works-header { padding: 0 3rem 2.5rem; }
  .works-cta { padding: 2.5rem 3rem 0; }

  .about-split-text { padding: 5rem 3rem; }
  .about-hero-text { padding: 12rem 4rem 4rem 3rem; }
  .about-text { padding: 6rem 4rem 6rem 3rem; }
  .about-sidebar { padding: 6rem 3rem; }

  .quote-section { padding: 7rem 4rem; }

  .page-header { padding: 12rem 3rem 4rem; }
  .filter-bar { padding: 1.5rem 3rem; }

  .shop-grid { gap: 3rem 2.5rem; }

  .contact-info { padding: 12rem 4rem 4rem 3rem; }
  .contact-form-wrap { padding: 12rem 3rem 4rem 4rem; }

  footer { padding: 3.5rem 3rem; }
}

/* ── Tablet portrait (≤ 780px) ──────────────────── */
@media (max-width: 780px) {
  nav { padding: 1.4rem 2rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(8,7,5,0.98);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 490;
  }
  .nav-links.open a {
    font-size: 0.88rem;
    letter-spacing: 0.22em;
    color: var(--text);
  }

  .hero-content { padding: 0 2rem 4rem; }
  .hero-vertical { display: none; }
  .scroll-indicator { bottom: 2.5rem; }

  .quote-section { padding: 5rem 2.5rem; }
  .quote-body { grid-template-columns: 1fr; gap: 2.5rem; }

  .works-asym { grid-template-columns: 1fr; padding: 0 0 3px; }
  .work-cell { aspect-ratio: 1; padding: 1.2rem; }
  .work-cell.main { grid-column: auto; }
  .works-header { padding: 0 2rem 2rem; }
  .works-cta { padding: 2rem 2rem 0; }

  .about-split { grid-template-columns: 1fr; }
  .about-split-img { aspect-ratio: 16/9; height: auto; }
  .about-split-text { border-left: none; border-top: 1px solid var(--border); padding: 3.5rem 2rem; }

  .about-hero { grid-template-columns: 1fr; }
  .about-hero-img { aspect-ratio: 16/9; height: auto; order: -1; }
  .about-hero-text { padding: 8rem 2rem 3rem; }
  .about-body { grid-template-columns: 1fr; }
  .about-text { padding: 4rem 2rem; border-right: none; border-bottom: 1px solid var(--border); }
  .about-text p { max-width: 100%; }
  .about-sidebar { padding: 3rem 2rem; border-top: none; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .shop-note { grid-template-columns: 1fr; gap: 3rem; }

  .contact-wrap { grid-template-columns: 1fr; min-height: auto; }
  .contact-info {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 9rem 2rem 3.5rem;
    justify-content: flex-end;
  }
  .contact-form-wrap { padding: 3.5rem 2rem 4rem; justify-content: flex-start; }

  .page-header { padding: 9rem 2rem 3rem; }
  .filter-bar { padding: 1.2rem 2rem; gap: 1.5rem; }

  .lightbox { padding: 1.5rem; }
  .lightbox-inner { gap: 2.5rem; }
  .lightbox-img { max-width: 54vw; }

  footer { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 2rem; }
  .footer-right { text-align: left; }
  .footer-nav { justify-content: flex-start; flex-wrap: wrap; gap: 1.2rem; }

  section { padding: 5rem 2rem; }
}

/* ─── COOKIE BANNER ─────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9500;
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  padding: 1.2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: opacity 0.4s ease;
}

#cookie-banner p {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

#cookie-banner a {
  color: var(--accent-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cookie-accept {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border2);
  padding: 0.5rem 1.4rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

#cookie-accept:hover {
  border-color: var(--accent-hi);
  color: var(--accent-hi);
}

@media (max-width: 580px) {
  #cookie-banner { flex-direction: column; padding: 1.2rem 1.4rem; gap: 1rem; }
  #cookie-accept { width: 100%; text-align: center; }
}

/* ─── VIDEO LIGHTBOX ────────────────────────── */
.video-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(14, 12, 9, 0.97);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.video-lb.open {
  display: flex;
}

.video-lb-inner {
  position: relative;
  width: 90vw;
  max-width: 1100px;
}

.video-lb-inner video {
  width: 100%;
  height: auto;
  display: block;
  outline: none;
}

.video-lb .lightbox-close {
  position: fixed;
  z-index: 9010;
  cursor: pointer;
}

/* Play icon al hover sulle celle video */
.process-cell {
  cursor: pointer;
}

.process-cell::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(226, 218, 206, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.process-cell:hover::after {
  opacity: 1;
}

/* ─── PROCESS / VIDEO STRIP ─────────────────── */
.process-strip {
  padding: 6rem 4rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-strip-header {
  margin-bottom: 3rem;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--border);
}

.process-cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #000;
}

.process-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  display: block;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.process-cell:hover video {
  opacity: 1;
}

.process-cell-label {
  position: absolute;
  bottom: 1.4rem;
  left: 1.6rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-hi);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.process-cell:hover .process-cell-label {
  opacity: 1;
}

/* ── Mobile (≤ 580px) ───────────────────────────── */
@media (max-width: 580px) {
  /* Cursor off */
  html, body { cursor: auto; }
  .cursor { display: none; }
  * { cursor: auto !important; }

  /* Hero */
  .hero-content { padding: 0 1.4rem 3.5rem; }
  .hero-sub { font-size: 0.7rem; }

  /* Quote */
  .quote-section { padding: 4rem 1.4rem; }
  blockquote.main-quote { font-size: clamp(1.6rem, 7.5vw, 2.8rem); }

  /* Works */
  .work-cell.main { aspect-ratio: 4/3; }

  /* About */
  .about-hero-text { padding: 7rem 1.4rem 2.5rem; }
  .about-text { padding: 3rem 1.4rem; }
  .about-sidebar { padding: 2.5rem 1.4rem; }
  .about-split-text { padding: 3rem 1.4rem; }
  .about-sidebar-block li { font-size: 0.68rem; }

  /* Gallery & shop */
  .gallery-grid { grid-template-columns: 1fr; }
  .grid-item { aspect-ratio: 4/3; }
  .shop-grid { grid-template-columns: 1fr; }
  .studio-grid-3 { grid-template-columns: 1fr; }

  /* Process strip */
  .process-strip { padding: 4rem 1.4rem; }
  .process-grid { grid-template-columns: 1fr; gap: 1px; }

  /* Contacts */
  .contact-info { padding: 7rem 1.4rem 3rem; }
  .contact-form-wrap { padding: 3rem 1.4rem 3.5rem; }

  /* Page headers */
  .page-header { padding: 7rem 1.4rem 2.5rem; }
  .filter-bar { padding: 1rem 1.4rem; gap: 1rem; flex-wrap: wrap; }

  /* Lightbox */
  .lightbox { padding: 1rem; }
  .lightbox-inner { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  .lightbox-img { max-width: 100%; max-height: 52vh; width: 100%; }
  .lightbox-info { max-width: 100%; min-width: 0; }
  .lightbox-close { top: 1rem; right: 1.4rem; }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }

  /* Footer */
  footer { padding: 2.5rem 1.4rem; }
  .footer-nav { gap: 1rem; }

  section { padding: 4rem 1.4rem; }
}
