/* ============================================================
   DISCHIVOLANTI — Negozio di dischi, Milano Navigli
   Palette: nero vinile + l'arancio della loro vetrina
   ============================================================ */

:root {
  --vinile:    #141414;   /* fondo scuro principale */
  --vinile-2:  #1F1F1F;   /* pannelli */
  --carta:     #F2EEE6;   /* testo su scuro / sezioni chiare */
  --arancio:   #ED6A20;   /* il logo in vetrina */
  --arancio-2: #F5854A;
  --grigio:    #9A968D;   /* testo secondario su scuro */
  --fumo:      #56524B;   /* testo secondario su chiaro */
  --inchiostro:#1B1916;

  --f-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --f-body: "Public Sans", "Segoe UI", Arial, sans-serif;

  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 64px);
}

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

html { scroll-padding-top: 70px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  background: var(--vinile);
  color: var(--carta);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--arancio); color: var(--vinile); }

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

:focus-visible {
  outline: 2px solid var(--arancio-2);
  outline-offset: 3px;
  border-radius: 2px;
}
.section-chiara :focus-visible { outline-color: var(--inchiostro); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 200;
  background: var(--arancio);
  color: var(--vinile);
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ============ INTRO "LA PUNTINA" ============ */

.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #0D0D0D;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 50%;
}

body.intro-lock { overflow: hidden; }

.intro--zoom {
  transform: scale(7);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.55, 0, 0.85, 0.55), opacity 0.55s ease 0.15s;
  pointer-events: none;
}

.intro-stage {
  position: relative;
  width: min(64vmin, 440px);
}

.intro-vinile {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(-28px) scale(0.92);
  animation:
    disc-drop 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards,
    disc-spin 1.1s linear 0.5s infinite;
}
@keyframes disc-drop {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes disc-spin {
  from { opacity: 1; transform: rotate(0deg); }
  to   { opacity: 1; transform: rotate(360deg); }
}

.intro-arm {
  position: absolute;
  top: -7%;
  right: 2%;
  width: 27%;
  height: auto;
  transform-origin: 50% 17.7%;
  transform: rotate(-26deg);
  opacity: 0;
  animation: arm-drop 0.55s cubic-bezier(0.4, 0, 0.3, 1) 0.55s forwards;
}
@keyframes arm-drop {
  from { opacity: 1; transform: rotate(-26deg); }
  to   { opacity: 1; transform: rotate(8deg); }
}

.arm-peso    { fill: #2B2B2B; }
.arm-perno   { fill: #333; stroke: rgba(242, 238, 230, 0.3); stroke-width: 2; }
.arm-asta    { fill: #3A3A3A; }
.arm-testina { fill: var(--arancio); }
.arm-puntina { fill: #F2EEE6; }

/* ingresso hero orchestrato con la fine dell'intro */
.has-intro .hero-inner {
  opacity: 0;
  transform: translateY(16px);
}
.intro-done .hero-inner {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .has-intro .hero-inner { opacity: 1; transform: none; }
}

/* ============ TOPBAR ============ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px var(--pad);
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 238, 230, 0.12);
}

.wordmark {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: var(--arancio);
  white-space: nowrap;
}
.wordmark b { font-weight: 800; }

.nav { margin-right: auto; }
.nav-toggle { display: none; }

.nav-menu {
  display: flex;
  gap: 26px;
  list-style: none;
}
.nav-menu a {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--grigio);
  transition: color 0.15s;
}
.nav-menu a:hover { color: var(--carta); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  background: none;
  border: none;
  color: var(--grigio);
  font: inherit;
  cursor: pointer;
  padding: 6px 8px;
}
.lang-btn.is-active { color: var(--arancio-2); }
.lang-btn:hover { color: var(--carta); }
.lang-sep { color: rgba(242, 238, 230, 0.25); }

/* ============ BOTTONI ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 15px 28px;
  font-family: var(--f-body);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s, background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.98); }

.btn-arancio {
  background: var(--arancio);
  color: #16130F;
}
.btn-arancio:hover { background: var(--arancio-2); }

.btn-ghost {
  border: 1.5px solid rgba(242, 238, 230, 0.35);
  color: var(--carta);
}
.btn-ghost:hover { border-color: var(--carta); }

.btn-on-nero { border-color: rgba(242, 238, 230, 0.35); }

.btn-small { padding: 9px 18px; font-size: 14px; }

/* ============ HERO ============ */

.hero {
  min-height: calc(100vh - 53px);
  min-height: calc(100svh - 53px);
  display: flex;
  align-items: center;
  padding: 60px var(--pad);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.eyebrow {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arancio-2);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(52px, 8.5vw, 108px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--arancio);
  overflow-wrap: anywhere;
}
.hero-title b { font-weight: 800; }

.hero-lead {
  max-width: 540px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--grigio);
  margin: 26px 0 38px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.hero-proof {
  font-size: 14px;
  font-weight: 500;
  color: var(--grigio);
}

/* il 45 giri */

.vinile { max-width: 400px; margin: 0 auto; width: 100%; }
.vinile svg {
  width: 100%;
  height: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.vinile svg.is-grabbed { cursor: grabbing; }

.vinile-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--grigio);
}

.v-disc { fill: #0D0D0D; stroke: rgba(242, 238, 230, 0.2); stroke-width: 1.5; }
.v-groove { fill: none; stroke: rgba(242, 238, 230, 0.09); stroke-width: 1.5; }
.v-label { fill: var(--arancio); }
.v-hole { fill: var(--vinile); }
.v-text {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 800;
  fill: #16130F;
  letter-spacing: 0.06em;
}
.v-text-small {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  fill: rgba(22, 19, 15, 0.75);
  letter-spacing: 0.14em;
}

/* la rotazione del disco è gestita in JS (drag/scratch + inerzia);
   con prefers-reduced-motion il giro automatico è spento, il drag resta */

/* ============ SEZIONI ============ */

.section { padding: clamp(72px, 10vw, 130px) var(--pad); }

.section-nera { background: var(--vinile-2); }

.section > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-no {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--vinile);
  background: var(--arancio);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

/* split */

.split {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.split-even { grid-template-columns: 1fr 1fr; }

.split-main p + p { margin-top: 1.2em; }

.pull {
  font-family: var(--f-display);
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--carta);
  margin-bottom: 1.1em;
}
.split-main > p:not(.pull) { color: var(--grigio); }

/* stats */

.split-side { display: grid; gap: 28px; }

.stat {
  border-top: 1px solid rgba(242, 238, 230, 0.16);
  padding-top: 18px;
}
.stat-num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1;
  color: var(--arancio-2);
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--grigio);
}

/* ============ GROOVES (solchi divisori) ============ */

.grooves {
  display: grid;
  gap: 7px;
  padding: 18px 0;
  background: var(--vinile);
}
.grooves span {
  height: 1.5px;
  background: rgba(242, 238, 230, 0.12);
}
.grooves .gr-arancio { background: var(--arancio); opacity: 0.8; }

/* ============ TRACKLIST ============ */

.tracklist {
  list-style: none;
  display: grid;
  gap: 0;
}

.track {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(242, 238, 230, 0.12);
}
.track:first-child { border-top: 1px solid rgba(242, 238, 230, 0.12); }

.track-no {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--arancio-2);
  min-width: 44px;
  line-height: 1.3;
}

.track h3 {
  font-family: var(--f-display);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  margin-bottom: 8px;
}

.track p {
  font-size: 15.5px;
  color: var(--grigio);
  max-width: 640px;
}

/* ============ GALLERY ============ */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}
.g-wide {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}
.gallery img:last-child {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}
.gallery-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--grigio);
}

/* ============ ORARI E DOVE ============ */

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16.5px;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: 15px 0;
  border-bottom: 1px solid rgba(242, 238, 230, 0.14);
  font-weight: 500;
}
.hours-table tr:first-child th,
.hours-table tr:first-child td { border-top: 1px solid rgba(242, 238, 230, 0.14); }
.hours-table td {
  text-align: right;
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--arancio-2);
}

.hours-note {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--grigio);
}

.where-address {
  font-family: var(--f-display);
  font-style: normal;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 18px;
}

.where-metro {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  margin-bottom: 28px;
  color: var(--grigio);
}
.metro-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #1E7A3C; /* verde della M2 */
  flex: none;
}

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

.footer {
  background: #0D0D0D;
  color: var(--carta);
  padding: clamp(60px, 8vw, 100px) var(--pad) 40px;
  border-top: 4px solid var(--arancio);
}

.footer > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.footer-wordmark {
  font-family: var(--f-display);
  font-size: clamp(44px, 8vw, 100px);
  font-weight: 800;
  line-height: 1;
  color: rgba(242, 238, 230, 0.12);
  margin-bottom: clamp(40px, 6vw, 70px);
  user-select: none;
  overflow-wrap: anywhere;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.footer-cols h3 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arancio-2);
  margin-bottom: 14px;
}

.footer-cols p {
  font-size: 15.5px;
  color: rgba(242, 238, 230, 0.75);
}
.footer-cols a {
  color: var(--carta);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 238, 230, 0.3);
  transition: border-color 0.15s;
}
.footer-cols a:hover { border-color: var(--arancio-2); }

.footer-legal {
  font-size: 12.5px;
  color: rgba(242, 238, 230, 0.65);
  border-top: 1px solid rgba(242, 238, 230, 0.12);
  padding-top: 22px;
}

/* ============ REVEAL ============ */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .topbar { gap: 18px; }
  .nav-menu { gap: 16px; }
  .nav-menu a { font-size: 13.5px; }

  .hero-inner { grid-template-columns: 1fr; }
  .vinile { max-width: 280px; }

  .split,
  .split-even { grid-template-columns: 1fr; }
  .split-side {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .where { margin-top: 8px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 130px; }

  .topbar { gap: 16px; flex-wrap: wrap; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1.5px solid rgba(242, 238, 230, 0.35);
    border-radius: 999px;
    color: var(--carta);
    font: 600 13.5px var(--f-body);
    letter-spacing: 0.03em;
    padding: 8px 14px;
    cursor: pointer;
  }
  .nav-toggle-bar {
    width: 14px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor;
  }

  .nav { order: 3; width: 100%; margin: 0; }
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 6px 0 10px;
  }
  .nav.is-open .nav-menu { display: flex; }
  .nav-menu a {
    display: block;
    padding: 12px 2px;
    font-size: 16px;
    border-bottom: 1px solid rgba(242, 238, 230, 0.1);
  }

  .topbar-actions { margin-left: auto; }

  .hero { padding-top: 40px; }
  .hero-cta .btn { width: 100%; }

  .split-side { grid-template-columns: 1fr; }

  .section-head { flex-direction: column; gap: 12px; align-items: flex-start; }

  .track { gap: 16px; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery img:last-child { aspect-ratio: 16 / 9; }

  .footer-cols { grid-template-columns: 1fr; }
}
