/* ============================================
   ZOP TATTOO STUDIO — style.css
   Palette: ink / gold / gold-light / cream / stone
   Font: Cormorant (display) + Jost (corpo testo)
   ============================================ */

:root {
  --ink: #0C0C0B;
  --ink-soft: #171614;
  --gold: #B8985A;
  --gold-light: #D9BC85;
  --cream: #EDE8DD;
  --stone: #93897A;

  --font-display: "Cormorant", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", sans-serif;

  --container: 1240px;
  --gutter: clamp(24px, 5vw, 72px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Focus visibile per accessibilità da tastiera */
a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--gold-light);
  outline-offset: 4px;
}

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

/* ============================================
   IL FILO DORATO — elemento di firma
   Una linea verticale sottile che attraversa
   il sito, da cima a fondo, sempre presente.
   ============================================ */

.filo-dorato {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(184, 152, 90, 0.35) 8%,
    rgba(184, 152, 90, 0.35) 92%,
    transparent 100%
  );
  /* z-index negativo: il filo passa SEMPRE dietro al testo e alle immagini,
     non li taglia più a metà. Resta visibile solo nei punti "vuoti". */
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 900px) {
  .filo-dorato { display: none; }
}

/* ============================================
   HEADER / NAV
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
  mix-blend-mode: normal;
  background: linear-gradient(to bottom, rgba(12, 12, 11, 0.75) 0%, rgba(12, 12, 11, 0.45) 60%, transparent 100%);
  padding-bottom: 50px;
  margin-bottom: -50px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--cream);
  font-weight: 500;
}

.logo span {
  color: var(--gold);
}

.logo-link {
  display: block;
  line-height: 0;
}

.logo-img {
  height: 58px;
  width: 58px;
  display: block;
  transition: transform 0.4s ease;
}

.logo-link:hover .logo-img {
  transform: scale(1.06);
}

@media (max-width: 480px) {
  .logo-img { height: 46px; width: 46px; }
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  color: var(--stone);
  transition: color 0.3s ease;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--stone);
  color: var(--cream);
  width: 40px;
  height: 40px;
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    font-size: 1rem;
    transform: translateY(-100%);
    transition: transform 0.45s ease;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-toggle {
    display: block;
    z-index: 60;
  }
}

/* ============================================
   HERO — split screen
   ============================================ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  background: var(--ink);
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  margin-top: 28px;
  max-width: 42ch;
  color: var(--stone);
  font-size: 1.02rem;
  font-weight: 300;
}

.hero-cta {
  margin-top: 44px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  padding: 16px 30px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.35s ease, color 0.35s ease;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--ink);
}

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(12,12,11,0.55), transparent 30%);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

.hero-scroll .line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleX(0.4); opacity: 0.5; }
  50% { transform: scaleX(1); opacity: 1; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 60vh;
  }
  .hero-text {
    padding-top: 160px;
    padding-bottom: 60px;
  }
  .hero-scroll { display: none; }
}

/* ============================================
   SEZIONI — struttura generale
   ============================================ */

section {
  position: relative;
  padding: clamp(80px, 12vw, 140px) var(--gutter);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  max-width: 120px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3rem);
  color: var(--cream);
  max-width: 16ch;
}

/* ============================================
   CURRICULUM (Home)
   ============================================ */

.curriculum {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(56px, 8vw, 120px);
  align-items: start;
}

.curriculum-copy p {
  color: var(--stone);
  font-size: 1.02rem;
  margin-top: 20px;
  max-width: 56ch;
}

.curriculum-copy p:first-of-type {
  margin-top: 0;
}

.curriculum-copy strong {
  color: var(--cream);
  font-weight: 500;
}

.stat-row {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(184, 152, 90, 0.25);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

@media (max-width: 900px) {
  .curriculum {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   LIBRO — teaser con link Amazon
   ============================================ */

.book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(56px, 8vw, 110px);
  align-items: center;
  background: var(--ink-soft);
  border-top: 1px solid rgba(184, 152, 90, 0.2);
  border-bottom: 1px solid rgba(184, 152, 90, 0.2);
}

.book-cover img {
  border: 1px solid rgba(184, 152, 90, 0.4);
  max-width: 340px;
  margin-left: auto;
}

@media (max-width: 900px) {
  .book-cover img {
    margin: 0 auto;
  }
}

.book-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--cream);
  line-height: 1.5;
  max-width: 34ch;
}

.book-quote::before {
  content: "“";
  color: var(--gold);
}

.book-quote::after {
  content: "”";
  color: var(--gold);
}

.book-meta {
  margin-top: 28px;
  color: var(--stone);
  font-size: 0.95rem;
  max-width: 46ch;
}

.book-link {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.book-link:hover {
  color: var(--cream);
  border-color: var(--gold-light);
}

@media (max-width: 900px) {
  .book {
    grid-template-columns: 1fr;
  }
  .book-cover img {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* ============================================
   ARTISTI — indice editoriale (righe orizzontali)
   ============================================ */

.artist-index {
  display: flex;
  flex-direction: column;
}

.artist-row {
  display: grid;
  grid-template-columns: 90px 1fr auto 120px;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid rgba(184, 152, 90, 0.2);
  transition: background 0.35s ease;
  position: relative;
}

.artist-index .artist-row:last-child {
  border-bottom: 1px solid rgba(184, 152, 90, 0.2);
}

.artist-row:hover {
  background: rgba(184, 152, 90, 0.05);
}

.artist-number {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--stone);
}

.artist-name-wrap {
  display: flex;
  flex-direction: column;
}

.artist-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--cream);
  transition: color 0.3s ease;
}

.artist-row:hover .artist-name {
  color: var(--gold-light);
}

.artist-role {
  margin-top: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--stone);
}

.artist-thumb {
  width: 84px;
  height: 84px;
  overflow: hidden;
  border: 1px solid rgba(184, 152, 90, 0.35);
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.artist-row:hover .artist-thumb {
  opacity: 1;
  transform: translateX(0);
}

.artist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-arrow {
  justify-self: end;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 700px) {
  .artist-row {
    grid-template-columns: 40px 1fr;
    row-gap: 10px;
  }
  .artist-thumb,
  .artist-arrow {
    display: none;
  }
}

/* ============================================
   INKA STRIP — collegamento al portale
   ============================================ */

.inka-strip {
  background: var(--ink);
  text-align: center;
  padding: clamp(70px, 10vw, 120px) var(--gutter);
}

.inka-strip .section-eyebrow {
  justify-content: center;
}

.inka-strip .section-eyebrow::after {
  display: none;
}

.inka-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--gold-light);
  max-width: 24ch;
  margin: 0 auto;
}

.inka-sub {
  margin-top: 20px;
  color: var(--stone);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.inka-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 36px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.35s ease;
}

.inka-cta:hover {
  background: var(--gold-light);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  border-top: 1px solid rgba(184, 152, 90, 0.2);
  padding: 50px var(--gutter) 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--stone);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col strong {
  color: var(--gold-light);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  width: 100%;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(184, 152, 90, 0.12);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(147, 137, 122, 0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   PAGE HERO — banner di intestazione per le
   pagine interne (Studio, Gallerie, Contatti)
   ============================================ */

.page-hero {
  position: relative;
  padding: clamp(150px, 20vw, 220px) var(--gutter) clamp(60px, 8vw, 90px);
  text-align: center;
  border-bottom: 1px solid rgba(184, 152, 90, 0.2);
}

.page-hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--cream);
}

.page-hero-sub {
  margin-top: 18px;
  color: var(--stone);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.page-hero-back {
  display: inline-block;
  margin-top: 30px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-hero-back:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ============================================
   GALLERY GRID — Studio e le tre Gallerie
   ============================================ */

.gallery-section {
  padding: clamp(60px, 8vw, 100px) var(--gutter) clamp(100px, 12vw, 160px);
}

.gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
  columns: 3 280px;
  column-gap: 22px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(184, 152, 90, 0.18);
  cursor: zoom-in;
  position: relative;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: grayscale(8%);
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: grayscale(0%);
}

@media (max-width: 640px) {
  .gallery-grid {
    columns: 1 100%;
  }
}

/* Lightbox semplice */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 11, 0.94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  border: 1px solid rgba(184, 152, 90, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: var(--gutter);
  color: var(--gold-light);
  font-size: 1.6rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(184, 152, 90, 0.4);
  color: var(--gold-light);
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 1.1rem;
}

.lightbox-prev { left: var(--gutter); }
.lightbox-next { right: var(--gutter); }

@media (max-width: 700px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 0.9rem; }
}

/* ============================================
   CONTATTI
   ============================================ */

.contact-wrap {
  padding: clamp(60px, 8vw, 100px) var(--gutter) clamp(100px, 12vw, 160px);
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 7vw, 100px);
}

.contact-block {
  margin-bottom: 42px;
}

.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.contact-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  line-height: 1.4;
}

.contact-value a {
  color: var(--cream);
  border-bottom: 1px solid rgba(184, 152, 90, 0.4);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-value a:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

.hours-table tr {
  border-top: 1px solid rgba(184, 152, 90, 0.15);
}

.hours-table tr:last-child {
  border-bottom: 1px solid rgba(184, 152, 90, 0.15);
}

.hours-table td {
  padding: 14px 0;
  color: var(--stone);
  font-size: 0.98rem;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--cream);
}

.hours-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--gold-light);
  font-style: italic;
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.social-list a {
  color: var(--cream);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.social-list a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

.map-frame {
  margin-top: 10px;
  border: 1px solid rgba(184, 152, 90, 0.3);
  width: 100%;
  height: 320px;
  filter: grayscale(65%) invert(92%) contrast(88%);
}

@media (max-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
