/* ============================================
   ARTE CONTEMPORANEA OGGI — Design System
   Font: Space Grotesk (Google Fonts)
   Palette: nero + giallo + bianco
   ============================================ */

:root {
  --black:   #0a0a0a;
  --yellow:  #F5C800;
  --white:   #f0f0f0;
  --grey:    #1a1a1a;
  --grey-2:  #2a2a2a;
  --muted:   #bbbbbb;
  --font:    'Space Grotesk', Arial, sans-serif;
  --nav-h:   80px;
  --max-w:   1200px;
  --pad:     40px;
  --content-w: 760px; /* larghezza corpo testo — uguale per tutte le pagine interne */
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Giustifica tutti i paragrafi di corpo */
/* Rimosso — text-align justify su schermi piccoli fa schifo */

/* Elementi che NON devono essere giustificati */
h1, h2, h3, h4,
nav, footer,
label,
.eyebrow,
.card-tag,
.artist-name,
.artist-work,
.card-number,
.about-label,
.footer-copy,
.footer-socials,
.footer-privacy,
.page-hero h1,
.page-hero .eyebrow,
.hero-caption .eyebrow,
.pag-btn,
.pag-info,
.form-field label,
.aow-status p,
.privacy-meta,
.contact-success a { text-align: left; }

/* ============================================
   NAV
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid var(--grey-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  z-index: 100;
}

.nav-logo img {
  height: 64px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

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

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ============================================
   MOBILE OVERLAY
   ============================================ */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding-top: var(--nav-h);
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-overlay a {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
}
.mobile-nav-overlay a:hover,
.mobile-nav-overlay a.active { color: var(--yellow); }

/* ============================================
   PAGE WRAPPER
   ============================================ */
.page-content {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ============================================
   HERO VIDEO — HOMEPAGE + 1MOCA
   ============================================ */
.hero-video {
  position: relative;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

/* Versione compatta per pagine interne (es. #1MOCA) */
.hero-video-compact {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}

.hero-video-compact video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--black);
  opacity: 1;
}

.hero-video video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, transparent 60%);
}

.hero-caption {
  position: relative;
  z-index: 2;
  padding: 48px var(--pad);
}

.hero-caption .eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.8;
}

/* ============================================
   PAGE HERO — INTESTAZIONE PAGINE INTERNE
   ============================================ */
.page-hero {
  padding: 32px var(--pad) 24px;
  border-bottom: 1px solid var(--grey-2);
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

/* ============================================
   HOMEPAGE — INTRO BAND
   ============================================ */
.intro-band {
  padding: 56px var(--pad);
  border-bottom: 1px solid var(--grey-2);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.intro-band p {
  font-size: 20px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.75;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.intro-band p strong { color: var(--white); font-weight: 600; }

/* ============================================
   HOMEPAGE — CARD SEZIONI
   ============================================ */
.home-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--grey-2);
  max-width: var(--max-w);
  margin: 0 auto;
}

.home-section-card {
  background: var(--black);
  padding: 56px var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.home-section-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--yellow);
  transition: height 0.35s ease;
}

.home-section-card:hover { background: var(--grey); }
.home-section-card:hover::before { height: 100%; }

.home-section-card .card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}

.home-section-card h2 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}

.home-section-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 32px;
}

.home-section-card .card-cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.2s;
}
.home-section-card:hover .card-cta { gap: 16px; }
.home-section-card .card-cta::after { content: '->'; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--pad) 120px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 56px;
  align-items: start;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.about-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
}

.about-photo {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border: 1px solid var(--grey-2);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(20%);
  transition: filter 0.3s;
}
.about-photo:hover img { filter: grayscale(0%); }

.about-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
  line-height: 1.4;
  text-align: left;
}

.about-body p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
  font-size: 17px;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.about-body p strong { color: var(--white); font-weight: 600; }

/* ============================================
   AOW PAGE
   ============================================ */
.aow-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--pad) 120px;
}

.aow-description {
  margin-bottom: 56px;
}

.aow-description p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.aow-description p strong { color: var(--white); font-weight: 600; }

.aow-status {
  border-top: 1px solid var(--grey-2);
  border-bottom: 1px solid var(--grey-2);
  padding: 40px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.aow-status .status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.aow-status p {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.aow-contact-nudge { margin-top: 40px; }
.aow-contact-nudge p { font-size: 16px; color: var(--muted); margin-bottom: 16px; }
.aow-contact-nudge a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.2s;
}
.aow-contact-nudge a:hover { gap: 16px; }
.aow-contact-nudge a::after { content: '->'; }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--pad) 120px;
}

.contact-form {
  margin-top: 40px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  background: #1a1a1a;
  border: 1px solid #555555;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus { border-color: var(--yellow); }

.form-field.has-error input,
.form-field.has-error textarea { border-color: #e05050; }

.field-error {
  font-size: 12px;
  color: #e05050;
  letter-spacing: 0.05em;
}

.form-submit {
  align-self: flex-start;
  background: var(--yellow);
  color: var(--black);
  border: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 40px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.form-submit:hover { opacity: 0.85; }

.contact-success {
  margin-top: 40px;
  padding: 40px;
  border: 1px solid var(--grey-2);
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-success .success-icon { font-size: 28px; color: var(--yellow); }
.contact-success p { font-size: 16px; color: var(--muted); }
.contact-success a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}
.contact-success a::after { content: '->'; }
.contact-success a:hover { gap: 14px; }

.contact-error-global {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 2px solid #e05050;
  color: #e05050;
  font-size: 15px;
}

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--pad) 120px;
}

.privacy-content h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 48px 0 14px;
  padding-top: 32px;
  border-top: 1px solid var(--grey-2);
}
.privacy-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.privacy-content p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 12px;
}
.privacy-content p strong { color: var(--white); font-weight: 600; }
.privacy-content a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.privacy-content a:hover { opacity: 0.75; }

.privacy-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--grey-2);
}

/* ============================================
   GRIGLIA #1MOCA
   ============================================ */
.artists-intro {
  padding: 48px var(--pad) 36px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--grey-2);
  text-align: center;
}

.artists-intro p {
  color: var(--muted);
  font-size: 16px;
  max-width: 600px;
  line-height: 1.75;
  text-align: center;
}

.artists-intro a.playlist-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 12px 32px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.artists-intro a.playlist-link:hover {
  background: var(--yellow);
  color: var(--black);
}

.artists-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-2);
  max-width: var(--max-w);
  margin: 0 auto;
}

.artist-card {
  background: var(--black);
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.artist-card.visible { opacity: 1; transform: translateY(0); }

.artist-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.artist-card:hover img { transform: scale(1.04); opacity: 1; }

.artist-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.card-number {
  position: absolute;
  top: 14px; left: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--yellow);
  opacity: 0.8;
}

.artist-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}

.artist-work {
  font-size: 12px;
  color: var(--yellow);
  font-style: italic;
}

.artist-card .play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  width: 56px; height: 56px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, transform 0.3s;
}
.artist-card .play-icon svg { fill: var(--black); width: 18px; height: 18px; margin-left: 4px; }
.artist-card:hover .play-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--grey-2);
  padding: 24px var(--pad);
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 32px;
}

footer .footer-copy {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-socials a {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--yellow); }

footer .footer-privacy {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
footer .footer-privacy:hover { color: var(--yellow); }

footer .footer-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .artists-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --pad: 20px; }
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .home-sections { grid-template-columns: 1fr; }
  .home-section-card { min-height: 200px; }

  /* About mobile — centrato */
  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 20px 80px;
  }
  .about-sidebar {
    position: static;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .about-label { text-align: center; }
  .about-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  .about-body h2 { font-size: 18px; margin-bottom: 16px; }
  .about-body p { font-size: 16px; }

  /* Footer mobile — tutto centrato */
  footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
    padding: 28px 20px;
    justify-items: center;
  }
  .footer-socials { justify-content: center; }
  footer .footer-copy { text-align: center; width: 100%; }
  footer .footer-privacy { text-align: center; width: 100%; }
  footer .footer-logo img { height: 28px; margin: 0 auto; display: block; }

  /* Hero compatto mobile */
  .hero-video-compact { height: 35vh; min-height: 200px; }

  /* Firma Alice centrata su mobile */
  .hero-caption { width: 100%; text-align: center; }
  .hero-caption .eyebrow { text-align: center; }
}

@media (max-width: 600px) {
  .artists-grid {
    grid-template-columns: 1fr;
    gap: 0;
    background: transparent;
  }
  .artist-card {
    aspect-ratio: unset;
    display: flex;
    flex-direction: column;
    height: auto;
    border-bottom: 1px solid var(--grey-2);
    align-items: center;
    padding: 20px 0;
  }
  .artist-card img {
    width: 80%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    opacity: 1;
  }
  .artist-card .card-overlay {
    position: static;
    background: none;
    padding: 14px 20px 4px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
  }
  .card-number {
    position: static;
    font-size: 10px;
    opacity: 0.7;
    margin-bottom: 2px;
    text-align: center;
  }
  .artist-name {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
  }
  .artist-work {
    font-size: 12px;
    text-align: center;
    margin-top: 2px;
  }
  .artist-card .play-icon { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .form-submit { width: 100%; text-align: center; }
}

/* ============================================
   FADE-IN CARD — IntersectionObserver
   ============================================ */
.home-section-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.home-section-card.visible { opacity: 1; transform: translateY(0); }

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .artist-card, .home-section-card { opacity: 1 !important; transform: none !important; }
  .aow-status .status-dot { animation: none; }
}

/* ============================================
   PAGINAZIONE #1MOCA
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 48px var(--pad);
  border-top: 1px solid var(--grey-2);
}

.pag-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 10px 24px;
  transition: background 0.2s, color 0.2s;
}

.pag-btn:hover {
  background: var(--yellow);
  color: var(--black);
}

.pag-btn.disabled {
  color: var(--grey-2);
  border-color: var(--grey-2);
  cursor: default;
  pointer-events: none;
}

.pag-info {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}
