/* ============================================================
   Geisha Guitars — design tokens
   Palette ispirata ai legni: palissandro brasiliano, cocobolo,
   palissandro del Madagascar. Lusso caldo, non minimal-freddo.
   ============================================================ */

@font-face {
  font-family: 'Geisha Signature';
  src: url('../assets/fonts/AcryleScript-PersonalUse.ttf') format('truetype');
  font-display: swap;
}

:root {
  /* legno / fondo */
  --espresso: #150F0B;
  --espresso-2: #1E140E;
  --rosewood: #5A2C1E;
  --rosewood-2: #35190F;
  --cocobolo: #7A3420;

  /* superfici chiare */
  --parchment: #F1E7D4;
  --parchment-2: #E7D9BC;

  /* metallo / accento */
  --gold: #BD9457;
  --gold-light: #E1C68C;
  --garnet: #7E2A22;

  /* testo */
  --ink: #1D1209;
  --bone: #F4ECDD;
  --bone-dim: #CBB99C;

  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
  --font-sig: 'Geisha Signature', cursive;
  --font-label: 'Special Elite', 'Courier New', monospace;

  /* carta / kraft */
  --kraft: #D9C49C;
  --kraft-2: #C9AE7C;

  --ease: cubic-bezier(.22,.61,.36,1);
  --wrap: 1240px;
}

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

body {
  margin: 0;
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse 60% 40% at 12% 0%, rgba(122,52,32,0.06), transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 30%, rgba(90,44,30,0.05), transparent 55%),
    radial-gradient(ellipse 70% 50% at 30% 100%, rgba(122,52,32,0.05), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.35   0 0 0 0 0.24   0 0 0 0 0.13  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--gold); color: var(--espresso); }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 3px;
  background-image: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px);
  color: var(--gold);
}
.on-dark .eyebrow::before { color: var(--gold-light); }
.on-dark .eyebrow { color: var(--gold-light); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; }

/* ============================================================
   Grana sottile — texture da rumore SVG, statica, leggerissima
   ============================================================ */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Nav
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background-color .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
}
.site-nav.solid {
  background-color: rgba(21,15,11,0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brandmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-sig);
  color: var(--bone);
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.brandmark-lockup {
  position: relative;
  display: inline-block;
}
.brandmark-sig {
  display: block;
  font-size: clamp(70px, 9vw, 150px);
  transition: font-size .5s var(--ease);
}
.brandmark-sub {
  position: absolute;
  left: 66%;
  bottom: 0.1em;
  transform: translateX(-50%);
  font-family: var(--font-sig);
  font-size: clamp(24px, 3.05vw, 50px);
  color: var(--gold-light);
  white-space: nowrap;
  transition: font-size .5s var(--ease), bottom .5s var(--ease);
}
.brandmark-tag {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.9;
  transition: opacity .4s var(--ease), font-size .4s var(--ease);
}
.site-nav.solid .brandmark-sig { font-size: 36px; }
.site-nav.solid .brandmark-sub { font-size: 13.5px; bottom: 0.08em; }
.site-nav.solid .brandmark-tag { font-size: 9px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--bone-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color .3s;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-light);
  transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--bone); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }

.lang-toggle {
  display: flex;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lang-toggle button {
  background: none;
  border: 1px solid rgba(244,236,221,0.25);
  color: var(--bone-dim);
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  border-radius: 2px;
  transition: all .3s;
}
.lang-toggle button[aria-pressed="true"] {
  color: var(--espresso);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(244,236,221,0.3);
  color: var(--bone);
  width: 42px; height: 36px;
  cursor: pointer;
  border-radius: 2px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--espresso);
  overflow: hidden;
  color: var(--bone);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 35%;
  opacity: 0;
  animation: heroFade 21s infinite;
}
.hero-bg:nth-child(1) { animation-delay: 0s; }
.hero-bg:nth-child(2) { animation-delay: 7s; }
.hero-bg:nth-child(3) { animation-delay: 14s; }
@keyframes heroFade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  29%  { opacity: 1; }
  34%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; opacity: 0; }
  .hero-bg:first-child { opacity: 1; }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 90% 70% at 78% 18%, rgba(138,66,32,0.4), transparent 60%),
    linear-gradient(155deg, rgba(21,15,11,0.88) 0%, rgba(30,20,14,0.78) 45%, rgba(36,22,16,0.82) 100%);
}


.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 100px;
}


.hero-copy { max-width: 620px; }

.hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.2;
  font-style: normal;
  font-weight: 400;
  color: var(--bone);
}
.hero-copy h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

.hero-rule {
  display: block;
  width: 74px;
  height: 1px;
  background: var(--gold-light);
  margin: 26px 0;
}

.hero-copy p {
  margin: 18px 0 0;
  max-width: 50ch;
  font-size: 16.5px;
  color: var(--bone-dim);
  line-height: 1.75;
}
.hero-copy p:first-of-type { margin-top: 0; }

.hero-emphasis {
  margin-top: 28px !important;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--bone);
  line-height: 1.5;
}

.hero-tagline {
  margin: 0;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1.9;
}

.hero-kanji {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.kanji-glyph {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: 0.2em;
  color: rgba(225,198,140,0.5);
}
.kanji-seal {
  width: 22px; height: 22px;
  background: var(--garnet);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.kanji-words {
  list-style: none;
  margin: 0; padding: 0;
  text-align: center;
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 960px) {
  .hero-kanji { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background-color .35s, color .35s, border-color .35s;
}
.btn-primary {
  background: var(--gold-light);
  color: var(--espresso);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--bone); }
.btn-ghost {
  border-color: rgba(244,236,221,0.35);
  color: var(--bone);
}
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); transform: translateY(-2px); }

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--bone-dim);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-pill {
  width: 30px;
  height: 44px;
  border: 1px solid rgba(225,198,140,0.4);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  animation: bob 2.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .scroll-pill { animation: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============================================================
   Sezioni generiche
   ============================================================ */
.section { padding: 140px 0; position: relative; }
.section.on-dark {
  background: linear-gradient(180deg, var(--espresso) 0%, var(--espresso-2) 100%);
  color: var(--bone);
}
.section-head {
  max-width: 640px;
  margin-bottom: 74px;
}
.section-head h2 {
  margin-top: 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
}
.section-head p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--rosewood);
  max-width: 52ch;
}
.on-dark .section-head p { color: var(--bone-dim); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   Strumenti — filtri + griglia
   ============================================================ */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.filters button {
  background: rgba(29,18,9,0.07);
  border: none;
  color: rgba(29,18,9,0.5);
  padding: 12px 26px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: color .3s, background-color .3s;
}
.filters button[aria-pressed="true"] {
  background: rgba(29,18,9,0.12);
  color: var(--ink);
}
.filters button:hover { color: var(--rosewood-2); }
.on-dark .filters button {
  background: rgba(244,236,221,0.1);
  color: rgba(244,236,221,0.65);
}
.on-dark .filters button[aria-pressed="true"] {
  background: rgba(244,236,221,0.2);
  color: var(--bone);
}
.on-dark .filters button:hover { color: var(--gold-light); }

.strumenti-bg {
  background-size: cover;
  background-position: center;
}

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.instrument-grid:not(.detail-grid) {
  gap: 40px 34px;
}
.instrument-grid:not(.detail-grid) .instrument-card {
  aspect-ratio: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transform: none !important;
  background-image: none;
  background-color: transparent;
}
.instrument-grid:not(.detail-grid) .instrument-card::before,
.instrument-grid:not(.detail-grid) .instrument-card::after {
  content: none;
}
.card-photo {
  position: relative;
  aspect-ratio: 3/4;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--espresso-2);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(29,18,9,0.08);
  transition: transform .6s var(--ease);
}
.instrument-card:hover .card-photo { transform: scale(1.025); }
.card-photo .specimen-no {
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(244,236,221,0.55);
  z-index: 2;
}
.card-hover-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--bone);
  background: linear-gradient(180deg, rgba(21,15,11,0.15), rgba(21,15,11,0.65));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.instrument-card:hover .card-hover-label { opacity: 1; }
.card-info {
  padding: 18px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-info .kind {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rosewood);
}
.card-info .name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
}
.instrument-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background-image: linear-gradient(155deg, var(--rosewood) 0%, var(--rosewood-2) 55%, var(--cocobolo) 100%);
  background-size: cover;
  background-position: center;
  background-color: var(--rosewood-2);
  cursor: default;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.instrument-grid .instrument-card.hidden-cat { display: none; }
.instrument-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(90,44,30,0.32) 0%, rgba(53,25,15,0.4) 55%, rgba(35,20,12,0.4) 100%);
  mix-blend-mode: multiply;
}
.instrument-card .frame-shadow {
  position: absolute; inset: 0;
  box-shadow: inset 0 -120px 90px -40px rgba(10,6,4,0.75);
}
.instrument-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 0%, transparent 55%, rgba(10,6,3,0.55) 100%);
  opacity: 0;
  transition: opacity .4s;
}
.instrument-card:hover::after { opacity: 1; }
.instrument-card .card-cap {
  position: absolute;
  left: 22px; right: 22px; bottom: 20px;
  z-index: 2;
  color: var(--bone);
}
.instrument-card .card-cap .kind {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.instrument-card .card-cap .name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
}
.instrument-card:nth-child(3n+2) { transform: translateY(30px); }
@media (max-width: 900px) {
  .instrument-grid { grid-template-columns: repeat(2, 1fr); }
  .instrument-card:nth-child(3n+2) { transform: none; }
}
@media (max-width: 600px) {
  .instrument-grid { grid-template-columns: 1fr; }
}

.instrument-card[data-gallery] { cursor: pointer; }
.instrument-card[data-gallery]:focus-visible .card-photo {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,6,4,0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease);
  padding: 40px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-body {
  position: relative;
  width: 100%;
  max-width: 1180px;
  max-height: 88vh;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
.lightbox-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  background: var(--espresso-2);
}
.lightbox-counter {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0;
}
.lightbox-info {
  display: flex;
  flex-direction: column;
}
.lightbox-eyebrow {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 14px;
}
.lightbox-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--bone);
  margin: 0 0 28px;
}
.lightbox-specs {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px dashed rgba(225,198,140,0.25);
}
.lightbox-specs li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(244,236,221,0.1);
}
.lightbox-specs .spec-label {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--bone-dim);
}
.lightbox-specs .spec-value {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 15px;
  color: var(--bone);
  text-align: right;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 26px;
  background: none;
  border: none;
  color: var(--bone);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}
.lightbox-close:hover { color: var(--gold-light); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(21,15,11,0.55);
  border: 1px solid rgba(244,236,221,0.3);
  border-radius: 50%;
  color: var(--bone);
  width: 48px;
  height: 48px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .3s, color .3s, background-color .3s;
}
.lightbox-nav:hover { color: var(--gold-light); border-color: var(--gold-light); background: rgba(21,15,11,0.8); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
@media (max-width: 900px) {
  .lightbox { align-items: flex-start; overflow-y: auto; }
  .lightbox-body { grid-template-columns: 1fr; max-height: none; }
  .lightbox-photo { order: 1; }
  .lightbox-info { order: 2; }
}
@media (max-width: 700px) {
  .lightbox { padding: 60px 20px 30px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 20px; }
  .lightbox-close { top: 14px; right: 14px; font-size: 28px; }
  .lightbox-title { margin-bottom: 20px; }
}

.detail-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
}

.media-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 900px) {
  .media-bg { background-attachment: scroll; }
}

.media-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--espresso-2);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.media-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   Laboratorio
   ============================================================ */
.lab-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 90px;
  align-items: center;
}
.lab-photo {
  aspect-ratio: 4/5;
  background-image: linear-gradient(160deg, var(--rosewood) 0%, var(--espresso-2) 100%);
  background-size: cover;
  background-position: center;
  background-color: var(--espresso-2);
  position: relative;
}
.lab-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(90,44,30,0.5) 0%, rgba(30,20,14,0.6) 100%);
  mix-blend-mode: multiply;
}
.lab-photo::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(225,198,140,0.35);
  pointer-events: none;
}

.wax-seal {
  position: absolute;
  right: -22px;
  bottom: 40px;
  width: 92px;
  height: 92px;
  z-index: 3;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.45));
}
.lab-copy p { color: var(--bone-dim); font-size: 17px; margin: 22px 0 0; max-width: 50ch; }
.lab-copy p:first-of-type { margin-top: 30px; }
.lab-copy .lab-emphasis {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  color: var(--gold-light);
  max-width: none;
}

.wood-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 54px;
  padding-top: 46px;
  position: relative;
}
.wood-row::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background-image: repeating-linear-gradient(90deg, rgba(225,198,140,0.35) 0 5px, transparent 5px 11px);
}
.wood-row-light::before {
  background-image: repeating-linear-gradient(90deg, rgba(29,18,9,0.28) 0 5px, transparent 5px 11px);
}

.wood-row-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
  flex-wrap: unset;
}

.wood-chip {
  position: relative;
  width: 196px;
  padding: 26px 18px 20px;
  background: linear-gradient(160deg, var(--kraft) 0%, var(--kraft-2) 100%);
  border: 1px dashed rgba(43,28,16,0.28);
  box-shadow: 0 14px 26px rgba(0,0,0,0.35);
  transform: rotate(-2deg);
}
.wood-chip:nth-child(2) { transform: rotate(1.4deg); }
.wood-chip:nth-child(3) { transform: rotate(-1deg); }

.wood-row-grid .wood-chip {
  width: auto;
  padding: 30px 26px 26px;
  transform: none;
}

.wood-chip .swatch {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--sw, var(--gold));
  border: 3px solid var(--kraft-2);
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
.wood-chip .tag-label {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: #6b4a2c;
  margin-bottom: 10px;
}
.wood-chip h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 10px;
  color: #2b1c10;
  line-height: 1.25;
}
.wood-chip p { font-size: 13.5px; color: #4a3423; margin: 0; line-height: 1.6; }

.materiali-bg {
  background-size: cover;
  background-position: center;
  padding-top: 100px;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 40px;
  margin-top: 26px;
  position: relative;
}

.material-entry .material-latin {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--gold-light);
  opacity: 0.85;
  margin: 5px 0 12px;
}
.material-entry h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  margin: 0;
  color: var(--bone);
  line-height: 1.25;
}
.material-entry p {
  font-size: 15px;
  color: var(--bone-dim);
  margin: 0;
  line-height: 1.7;
}

/* ============================================================
   Materiali — dynamic wood showcase
   ============================================================ */
.wood-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 26px;
  background: rgba(15,10,7,0.92);
  border: 1px solid rgba(225,198,140,0.18);
  padding: 48px 44px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.wood-panel {
  display: flex;
  align-items: center;
  gap: 40px;
}
.wood-list {
  flex: 0 0 220px;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(244,236,221,0.08);
}
.wood-list li {
  cursor: pointer;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(244,236,221,0.08);
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--bone-dim);
  transition: color .3s, background-color .3s;
}
.wood-list li:hover { color: var(--bone); background-color: rgba(225,198,140,0.06); }
.wood-list li.active {
  color: var(--gold-light);
  font-weight: 600;
  background-color: rgba(225,198,140,0.1);
}

.wood-info-carousel {
  position: relative;
  flex: 1;
  max-width: 640px;
  margin-left: auto;
  min-height: 460px;
}
.wood-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.wood-slide.active {
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .wood-slide { transition: none; }
}
.wood-info { text-align: right; }
.wood-info h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 0;
  color: var(--bone);
  line-height: 1.2;
}
.wood-info .material-latin { margin: 8px 0 18px; }
.wood-info p {
  font-size: 15px;
  color: var(--bone-dim);
  line-height: 1.75;
  margin: 0 0 22px;
}
.wood-specs {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px dashed rgba(225,198,140,0.25);
}
.wood-specs li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(244,236,221,0.1);
}
.wood-specs .spec-label {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.wood-specs .spec-value {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--bone);
  text-align: right;
}
.wood-map-tagline {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--bone-dim);
  line-height: 1.5;
}

.wood-map {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wood-map-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(225,198,140,0.06);
  border: 1px solid rgba(225,198,140,0.2);
}

@media (max-width: 900px) {
  .wood-showcase { padding: 32px 24px; gap: 28px; }
  .wood-panel { flex-direction: column; align-items: stretch; gap: 24px; }
  .wood-list { flex: none; }
  .wood-info-carousel { max-width: none; margin-left: 0; min-height: 400px; }
  .wood-info { text-align: left; }
}

/* ============================================================
   Intarsi
   ============================================================ */
.intarsi-bg {
  background-size: cover;
  background-position: center;
}
.intarsi-copy { max-width: 700px; }
.intarsi-copy h2 {
  margin-top: 18px;
  font-size: clamp(28px, 3.6vw, 46px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: var(--bone);
}
.intarsi-copy > p {
  margin-top: 26px;
  font-size: 17px;
  color: var(--bone-dim);
  line-height: 1.8;
  max-width: 62ch;
}
.intarsi-emphasis {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--gold-light) !important;
}

.intarsi-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 60px;
}

.intarsi-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: rgba(21,15,11,0.4);
  border: 1px solid rgba(225,198,140,0.22);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
  overflow: hidden;
}
.intarsi-slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  animation: intarsiFade 50s infinite;
}
.intarsi-slide:nth-child(1)  { animation-delay: 0s; }
.intarsi-slide:nth-child(2)  { animation-delay: 5s; }
.intarsi-slide:nth-child(3)  { animation-delay: 10s; }
.intarsi-slide:nth-child(4)  { animation-delay: 15s; }
.intarsi-slide:nth-child(5)  { animation-delay: 20s; }
.intarsi-slide:nth-child(6)  { animation-delay: 25s; }
.intarsi-slide:nth-child(7)  { animation-delay: 30s; }
.intarsi-slide:nth-child(8)  { animation-delay: 35s; }
.intarsi-slide:nth-child(9)  { animation-delay: 40s; }
.intarsi-slide:nth-child(10) { animation-delay: 45s; }
@keyframes intarsiFade {
  0%   { opacity: 0; }
  1%   { opacity: 1; }
  9%   { opacity: 1; }
  10%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .intarsi-slide { animation: none; opacity: 0; }
  .intarsi-slide:first-child { opacity: 1; }
}

.intarsi-pearls {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}
.intarsi-pearls > .eyebrow { margin-bottom: 30px; }
.pearl-carousel {
  position: relative;
  min-height: 340px;
}
.pearl-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: intarsiFade 55s infinite;
}
.pearl-slide:nth-child(1)  { animation-delay: 0s; }
.pearl-slide:nth-child(2)  { animation-delay: 5s; }
.pearl-slide:nth-child(3)  { animation-delay: 10s; }
.pearl-slide:nth-child(4)  { animation-delay: 15s; }
.pearl-slide:nth-child(5)  { animation-delay: 20s; }
.pearl-slide:nth-child(6)  { animation-delay: 25s; }
.pearl-slide:nth-child(7)  { animation-delay: 30s; }
.pearl-slide:nth-child(8)  { animation-delay: 35s; }
.pearl-slide:nth-child(9)  { animation-delay: 40s; }
.pearl-slide:nth-child(10) { animation-delay: 45s; }
.pearl-slide:nth-child(11) { animation-delay: 50s; }
@media (prefers-reduced-motion: reduce) {
  .pearl-slide { animation: none; opacity: 0; }
  .pearl-slide:first-child { opacity: 1; }
}

@media (max-width: 900px) {
  .intarsi-columns { grid-template-columns: 1fr; gap: 44px; }
  .intarsi-carousel { max-width: 480px; margin: 0 auto; }
  .pearl-carousel { min-height: 260px; }
}

#materiali .section-head { max-width: none; }
.materiali-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.materiali-closing {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.4;
  color: var(--gold-light);
  text-align: right;
}
@media (max-width: 700px) {
  .materiali-head-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .materiali-closing { text-align: left; }
}

@media (max-width: 900px) {
  .material-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .material-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .lab-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* ============================================================
   Contatti
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 90px;
}
.contact-wrap .eyebrow { margin-bottom: 34px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { border-top: 1px solid rgba(225,198,140,0.2); }
.contact-list li:last-child { border-bottom: 1px solid rgba(225,198,140,0.2); }
.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 4px;
  text-decoration: none;
  color: var(--bone);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  transition: color .3s, padding-left .3s var(--ease);
}
.contact-list a .chan {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.contact-list a:hover, .contact-list a:focus-visible {
  color: var(--gold-light);
  padding-left: 14px;
}
.contact-note p { color: var(--bone-dim); font-size: 16px; line-height: 1.8; margin: 0; }
.contact-note p + p { margin-top: 22px; }
.contact-brandmark {
  text-align: center;
  margin-top: 50px;
}
.sig-brandmark {
  margin: 0;
  color: var(--gold-light);
  align-items: center;
}
.sig-brandmark .brandmark-sig { font-size: clamp(50px, 6vw, 90px); }
.sig-brandmark .brandmark-sub { font-size: clamp(18px, 2.1vw, 32px); }
@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 50px; }
  .contact-list a { font-size: 21px; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--parchment-2);
  padding: 44px 0;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .brandmark { color: var(--rosewood-2); font-size: 24px; }
.site-footer small { color: #6b573f; font-size: 12px; letter-spacing: 0.04em; }

/* ============================================================
   Mobile nav
   ============================================================ */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--espresso);
    padding: 24px 32px 34px;
    gap: 20px;
    border-top: 1px solid rgba(225,198,140,0.15);
  }
  .site-nav .wrap { flex-wrap: wrap; }
  .lang-toggle { order: 3; }
}

@media (max-width: 600px) {
  .section { padding: 90px 0; }
  .wrap { padding: 0 22px; }

  .hero { padding: 130px 0 40px; }
  .hero-copy p { font-size: 15.5px; margin-top: 14px; }
  .hero-rule { margin: 20px 0; }
  .hero-emphasis { margin-top: 22px !important; font-size: 17px; }
  .hero-tagline { line-height: 1.7; }
  .scroll-cue { display: none; }
}


/* ============================================================
   SEO: immagini reali al posto degli sfondi + piccoli testi
   ============================================================ */
.bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.lab-photo .bg-img { object-fit: cover; z-index: 0; }
.lab-photo::before, .lab-photo::after { z-index: 1; }
.wood-map-img { position: relative; }
.card-hover-label, .card-photo .specimen-no { z-index: 2; }

.hero-kicker {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.contact-location {
  margin: 18px 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
}

/* Le etichette di sezione sono ora titoli H2: mantengono l'aspetto originale */
h2.eyebrow { margin-top: 1em; margin-bottom: 1em; }
.section h2.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.22em;
}
.on-dark h2.eyebrow { color: var(--gold-light); }
.hero-content { padding-top: 170px; }
