/* =========================
   HOME INTRO LOADER
========================= */

.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  overflow: hidden;
  pointer-events: none;
}

.intro-logo-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-logo {
  width: min(42vw, 420px);
  max-width: 78%;
  height: auto;
  opacity: 0;
  transform: scale(0.96);
  animation: introLogoIn 0.7s ease forwards,
             introLogoOut 0.55s ease forwards;
  animation-delay: 0.15s, 1.1s;
}

.intro-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: #000;
  z-index: 2;
}

.intro-panel-top {
  top: 0;
}

.intro-panel-bottom {
  bottom: 0;
}

.intro-loader.is-opening .intro-panel-top {
  animation: introOpenTop 0.9s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.intro-loader.is-opening .intro-panel-bottom {
  animation: introOpenBottom 0.9s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.intro-loader.is-finished {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

@keyframes introLogoIn {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes introLogoOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}

@keyframes introOpenTop {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-105%);
  }
}

@keyframes introOpenBottom {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(105%);
  }
}

/* opzionale: evita flash in ingresso */
body.intro-active {
  overflow: hidden;
}

/* mobile */
@media (max-width: 768px) {
  .intro-logo {
    width: min(58vw, 300px);
  }
}

/* se utente preferisce meno animazioni */
@media (prefers-reduced-motion: reduce) {
  .intro-loader {
    display: none;
  }

  body.intro-active {
    overflow: auto;
  }
}

/* ROOT */
:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --card: #101010;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f1e8;
  --text-soft: rgba(245, 241, 232, 0.72);
  --spotify: #1db954;
  --spotify-dark: #169c46;
  --max-width: 1240px;
  --radius: 8px;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
  --section-space: clamp(72px, 10vw, 128px);
  --nav-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(245, 241, 232, 0.82);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: var(--section-space) 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head h2,
.section-title,
.release-card h3,
.playlist-card h3,
.service-card h3,
.hero-content h1 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-head h2,
.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 600;
}

.section-head a {
  color: var(--text-soft);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s ease, transform 0.3s ease;
}

.section-head a:hover {
  color: var(--text);
  transform: translateX(3px);
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.08);
}

.navbar-inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(245, 241, 232, 0.82);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--nav-height) * -1);
  padding-top: var(--nav-height);
  margin-bottom: 20px;
}

main > .section:first-of-type {
  padding-top: 24px;
}

.hero-slider {
  position: relative;
  height: 65vh; /*Altezza delle foto sullo slider */
  min-height: 420px;
  max-height: 650px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.2s ease-in-out, transform 6s ease-in-out;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(16%) contrast(1.08) saturate(0.88);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.40) 35%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.18));
  z-index: 1;
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
}

.hero-content h1 {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 42px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.hero-dots {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 18px auto 0;
}

.hero-dot {
  width: 10px;
  height: 10px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: white;
  transform: scale(1.2);
}

/* BUTTON */
.spotify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 10px;

  min-width: 180px;
  height: 46px;
  padding: 0 22px;

  border: 1px solid rgba(29, 185, 84, 0.8);
  border-radius: 999px;
  background: rgba(29, 185, 84, 0.15);
  color: #fff;

  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;

  box-shadow: 0 8px 20px rgba(29, 185, 84, 0.15);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.spotify-btn:hover {
  background: #1db954;
  border-color: #1db954;
  transform: translateY(-1px);
}

.spotify-btn .spotify-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  display: block;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
}

.spotify-btn span,
.spotify-btn strong,
.spotify-btn {
  vertical-align: middle;
}

/* RELEASES */
.releases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.release-card,
.playlist-card,
.service-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.release-card {
  padding: 20px;
}

.release-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: contrast(1.08) saturate(0.9);
}

.release-card:hover img {
  transform: scale(1.04);
  filter: contrast(1.12) saturate(0.96);
}

.release-card h3 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 500;
}

.release-card p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* NEWS */
.news-section {
  padding-top: clamp(56px, 8vw, 96px);
}

.news-card {
  max-width: 860px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.news-kicker {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 0 0 14px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-card p:not(.news-kicker) {
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.8;
}

/* PLAYLISTS */
.playlists-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.playlist-card {
  padding: 20px;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.playlist-card .spotify-btn {
  margin-top: auto;
  width: auto;
  min-width: 175px; /* stessa delle release */
  align-self: flex-start; /* 🔥 fondamentale */
}

.playlist-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
  transition: transform 0.4s ease;
  filter: grayscale(8%) contrast(1.06) saturate(0.9);
}

.playlist-card:hover img {
  transform: scale(1.03);
}

.playlist-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 500;
}

.playlist-card p {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: var(--section-space);
}

.service-card {
  display: block;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(14%) contrast(1.04) saturate(0.86);
}

.service-card h3,
.service-card p {
  padding-left: 20px;
  padding-right: 20px;
}

.service-card h3 {
  margin: 18px 0 10px;
  font-size: 1.4rem;
  line-height: 1.05;
  font-weight: 500;
}

.service-card p {
  margin: 0 0 22px;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #030303;
}

.footer-top,
.footer-bottom {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}


/* PAGINA ARTISTI */

.artists-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.artists-main {
  flex: 1;
  padding: 120px 0 60px;
}

.artists-head {
  margin-bottom: 28px;
  justify-content: center;
}

.artists-head .section-title {
  text-align: center;
  line-height: 1;
}

.artists-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 80px;
}

.artists-slider-wrap.single-artist {
  padding: 0;
}

.artists-slider {
  position: relative;
  width: 100%;
  min-height: 860px;
  overflow: visible;
}

.single-artist .artists-slider {
  min-height: 860px;
}

.artist-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.artist-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.vinyl-frame {
  position: relative;
  width: min(70vw, 620px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.vinyl-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0b0b0b 0 10%, #1f1f1f 10% 14%, #080808 14% 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.04),
    inset 0 0 0 18px rgba(255, 255, 255, 0.02),
    inset 0 0 0 42px rgba(255, 255, 255, 0.015),
    0 18px 40px rgba(0, 0, 0, 0.42);
}

.vinyl-disc::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.vinyl-disc::after {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.vinyl-label-hole {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #050505;
  z-index: 4;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.04);
}

.artist-photo {
  position: relative;
  z-index: 3;
  width: 64%;
  height: 64%;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(10%) contrast(1.06) saturate(0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.artist-overlay {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  text-align: center;
  pointer-events: auto;
}

.artist-name {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.artist-spotify-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.artist-bio {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.75;
  letter-spacing: 0;
  text-transform: none;
}

.artists-arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
}

.artists-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.artists-arrow-prev {
  left: 0;
}

.artists-arrow-next {
  right: 0;
}

.artists-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 0px;
  transform: translateY(-30px);
}

.artists-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.artists-dot.active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .artists-main {
    padding: 110px 0 50px;
  }

  .artists-slider-wrap {
    padding: 0 56px;
  }

  .artists-slider-wrap.single-artist {
    padding: 0;
  }

  .artists-slider {
    min-height: 760px;
  }

  .single-artist .artists-slider {
    min-height: 780px;
  }

  .vinyl-frame {
    width: min(82vw, 520px);
  }

  .artists-arrow {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 768px) {
  .artists-main {
    padding: 100px 0 50px;
  }

  .artists-slider-wrap {
    padding: 0 44px;
  }

  .artists-slider-wrap.single-artist {
    padding: 0;
  }

  .artists-slider {
    min-height: 660px;
  }

  .single-artist .artists-slider {
    min-height: 720px;
  }

  .artist-overlay {
    margin-top: 18px;
    gap: 22px;
  }

  .artist-spotify-btn {
    margin-top: 2px;
  }

  .artists-dots {
    margin-top: 4px;
  }

  .artist-name {
    font-size: clamp(1.4rem, 5.4vw, 2.1rem);
  }

  .artists-arrow-prev {
    left: 0;
  }

  .artists-arrow-next {
    right: 0;
  }
}

@media (max-width: 560px) {
  .artists-slider {
    min-height: 590px;
  }

  .single-artist .artists-slider {
    min-height: 650px;
  }

  .vinyl-frame {
    width: min(88vw, 390px);
  }

  .artist-photo {
    width: 66%;
    height: 66%;
  }

  .artist-overlay {
    margin-top: 16px;
    gap: 18px;
  }

  .artist-spotify-btn {
    min-width: 160px;
    margin-top: 0;
  }

  .artist-bio {
    font-size: 0.93rem;
    line-height: 1.7;
  }

  .artists-dots {
    margin-top: 2px;
  }

  .artists-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

/* PAGINA CATALOGO */
.catalog-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.catalog-main {
  flex: 1;
  padding: 120px 0 80px;
}

.catalog-head {
  margin-bottom: 34px;
  justify-content: center;
}

.catalog-head .section-title {
  text-align: center;
  line-height: 1;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) minmax(160px, 220px);
  gap: 14px;
  margin-bottom: 24px;
}

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

.catalog-field span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-field input,
.catalog-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  padding: 0 14px;
}

.catalog-field input::placeholder {
  color: rgba(245, 241, 232, 0.45);
}

.catalog-field select {
  color-scheme: dark;
}

.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.catalog-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.catalog-cover-wrap {
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}

.catalog-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: contrast(1.08) saturate(0.92);
}

.catalog-cover.is-fallback {
  object-fit: contain;
  padding: 24px;
  filter: none;
}

.catalog-item:hover .catalog-cover {
  transform: scale(1.04);
  filter: contrast(1.12) saturate(0.98);
}

.catalog-info {
  min-width: 0;
}

.catalog-artist {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-title {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.catalog-credits,
.catalog-note {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.catalog-note {
  max-width: 720px;
}

.catalog-track-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  counter-reset: catalog-track;
}

.catalog-track {
  counter-increment: catalog-track;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.4;
}

.catalog-track a {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.catalog-track a::before {
  content: counter(catalog-track, decimal-leading-zero) ". ";
  color: var(--text-soft);
}

.catalog-track a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.catalog-track span {
  color: rgba(245, 241, 232, 0.5);
  font-variant-numeric: tabular-nums;
}

.catalog-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.catalog-error,
.catalog-empty,
.catalog-loading {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

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

  .catalog-item {
    grid-template-columns: 100px 1fr;
    gap: 20px;
  }

  .catalog-action {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .catalog-cover-wrap {
    width: 100px;
    height: 100px;
  }

  .catalog-track-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .catalog-main {
    padding: 100px 0 60px;
  }

  .catalog-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .catalog-cover-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .catalog-action {
    justify-content: flex-start;
  }

  .catalog-title {
    font-size: 1.6rem;
  }
}

/* PAGINA SERVIZI */

.services-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.services-main {
  flex: 1;
  padding: 120px 0 80px;
}

/* HERO */
.services-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 20px;
}

.services-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
  color: var(--text-soft);
  line-height: 1.8;
}

/* LIST */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.service-block {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.service-icon {
  font-size: 2rem;
  opacity: 0.8;
}

.service-content h2 {
  font-family: "Oswald", sans-serif;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.service-content p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
  max-width: 600px;
}

/* CTA */
.services-cta {
  text-align: center;
  margin-top: 80px;
}

.services-cta p {
  color: var(--text-soft);
  margin: 0;
}

.services-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  margin-top: 12px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.services-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-1px);
}

/* MOBILE */
@media (max-width: 768px) {
  .service-block {
    flex-direction: column;
    gap: 16px;
  }
}

/* PAGINA ABOUT */

.about-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.about-page .site-footer {
  margin-top: auto;
  flex-shrink: 0;
}

.about-page main {
  margin-bottom: 0;
}

.about-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-viewport {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-container {
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  text-align: center;
  padding: 20px 0;
}

.about-letter {
  max-width: 720px;
  color: var(--text-soft);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
}

.about-letter p {
  margin: 0;
}

.about-sign {
  margin-top: 28px;
  text-align: right;
  font-family: "Oswald", sans-serif;
  font-style: normal;
  font-size: 1rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.about-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.about-invite {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-mail {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  transition: opacity 0.3s ease;
}

.about-mail:hover {
  opacity: 0.7;
}

/* Fade-in elegante */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.6s ease, transform 1.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-viewport {
    min-height: auto;
    padding: 48px 0 56px;
  }

  .about-container {
    gap: 40px;
    padding: 20px 0;
  }

  .about-letter {
    font-size: 1rem;
    line-height: 1.85;
  }

  .about-sign {
    text-align: center;
    margin-top: 22px;
  }

  .about-mail {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    word-break: break-word;
  }
}

@media (max-width: 560px) {
  .about-container {
    width: min(calc(100% - 24px), 900px);
  }

  .about-letter {
    font-size: 0.96rem;
    line-height: 1.8;
  }

  .about-invite {
    font-size: 0.9rem;
  }

  .about-mail {
    font-size: 0.9rem;
  }
}

/* PAGINE LEGALI */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-main {
  flex: 1;
  padding: 120px 0 80px;
}

.legal-content {
  max-width: 780px;
}

.legal-title {
  margin: 0 0 24px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-content p {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.8;
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* TOP */
.footer-top {
  padding: 28px 0;
  align-items: center;
  flex-wrap: wrap;
}

/* BOTTOM */
.footer-bottom {
  padding: 24px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: flex-start;
}

/* SINISTRA (DATI SOCIETARI) */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* DESTRA (CONTATTI) */
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

/* TESTI */
.footer-top a,
.footer-bottom p,
.footer-bottom a {
  color: var(--text-soft);
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.footer-top a:hover,
.footer-bottom a:hover {
  color: var(--text);
}

.footer-bottom p {
  margin: 0;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-icon {
  width: 20px;
  height: 20px;
  color: white;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-social a:hover .social-icon {
  opacity: 1;
  transform: translateY(-2px);
}

/* MOBILE */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-right {
    text-align: left;
  }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .playlists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .navbar-inner {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
  }

  .navbar {
    height: auto;
  }

  .hero {
    margin-top: 0;
    padding-top: 0;
  }

  .hero-slider {
    min-height: 640px;
  }

  .hero-content h1 {
    padding-top: 110px;
  }
}

@media (max-width: 768px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .releases-grid {
    grid-template-columns: 1fr;
  }

  .playlists-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .playlist-card {
    min-width: 78%;
    scroll-snap-align: start;
  }

  .hero-content h1 {
    max-width: 92%;
  }

  .hero-dots {
    left: 20px;
    right: auto;
    bottom: 22px;
  }

  .nav-links {
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .container,
  .navbar-inner,
  .footer-top,
  .footer-bottom,
  .hero-content h1 {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .brand {
    font-size: 1.7rem;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .hero-slider {
    min-height: 580px;
  }

  .section-head h2,
  .section-title {
    font-size: 2rem;
  }

  .release-card h3,
  .playlist-card h3,
  .service-card h3 {
    font-size: 1.3rem;
  }

  .spotify-btn {
    width: 100%;
    min-width: 0;
  }
}

/*LOGO NAV BAR */
.logo {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

/* =========================
   MOBILE UI REFINEMENTS
========================= */

@media (max-width: 768px) {
  :root {
    --section-space: 56px;
    --shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  }

  body {
    overflow-x: hidden;
  }

  .container,
  .navbar-inner,
  .footer-top,
  .footer-bottom,
  .hero-content h1 {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .navbar {
    position: sticky;
    top: 0;
    padding: max(10px, env(safe-area-inset-top)) 0 10px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .navbar-inner {
    align-items: stretch;
    gap: 10px;
    padding: 0;
  }

  .brand {
    display: flex;
    justify-content: center;
  }

  .logo {
    height: 34px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 8px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.76rem;
    letter-spacing: 0.07em;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a[aria-current="page"] {
    background: rgba(245, 241, 232, 0.12);
    border-color: rgba(245, 241, 232, 0.24);
  }

  .hero {
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 0;
  }

  .hero-slider {
    height: auto;
    min-height: clamp(430px, 68svh, 560px);
    max-height: none;
  }

  .hero-content {
    align-items: flex-end;
  }

  .hero-content h1 {
    padding: 0 0 34px;
    max-width: 360px;
    white-space: normal;
    overflow-wrap: normal;
    font-size: clamp(2.25rem, 11vw, 3.25rem);
    line-height: 0.96;
  }

  .hero-dots {
    margin-top: 14px;
  }

  .section {
    padding-top: 56px;
  }

  main > .section:first-of-type {
    padding-top: 34px;
  }

  .section-head {
    gap: 10px;
    margin-bottom: 22px;
  }

  .section-head h2,
  .section-title {
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: 0.96;
  }

  .section-head a {
    font-size: 0.78rem;
  }

  .release-card,
  .playlist-card,
  .service-card,
  .catalog-item {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  }

  .release-card {
    padding: 14px;
  }

  .release-card img {
    margin-bottom: 14px;
  }

  .release-card h3,
  .playlist-card h3,
  .service-card h3 {
    font-size: 1.45rem;
    line-height: 1.05;
  }

  .release-card p,
  .catalog-artist {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .spotify-btn,
  .services-link {
    min-height: 48px;
    width: 100%;
    min-width: 0;
    padding: 0 16px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .news-section {
    padding-top: 48px;
  }

  .news-card {
    padding: 28px 0;
  }

  .news-card h3 {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  .news-card p:not(.news-kicker),
  .service-card p,
  .services-intro,
  .service-content p,
  .about-letter,
  .legal-content p {
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .services-grid {
    gap: 18px;
    padding-bottom: 64px;
  }

  .service-card h3,
  .service-card p {
    padding-left: 16px;
    padding-right: 16px;
  }

  .services-main,
  .catalog-main,
  .legal-main {
    padding: 72px 0 64px;
  }

  .services-title,
  .legal-title {
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 0.98;
  }

  .services-intro {
    margin-bottom: 44px;
  }

  .services-list {
    gap: 42px;
  }

  .service-block {
    gap: 14px;
    padding-top: 30px;
  }

  .service-icon {
    font-size: 1.65rem;
  }

  .services-cta {
    margin-top: 58px;
  }

  .artists-main {
    padding: 72px 0 56px;
  }

  .artists-head {
    margin-bottom: 20px;
  }

  .single-artist .artists-slider {
    min-height: 0;
  }

  .single-artist .artist-slide {
    position: relative;
    inset: auto;
  }

  .vinyl-frame {
    width: min(82vw, 360px);
  }

  .artist-overlay {
    gap: 14px;
    margin-top: 18px;
  }

  .artist-name {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
    line-height: 0.98;
  }

  .artist-bio {
    max-width: 34rem;
    margin-top: 4px;
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .catalog-toolbar {
    gap: 12px;
    margin-bottom: 18px;
  }

  .catalog-field input,
  .catalog-field select {
    min-height: 48px;
    font-size: 1rem;
  }

  .catalog-list {
    gap: 16px;
  }

  .catalog-item {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
  }

  .catalog-cover-wrap {
    width: 94px;
    height: 94px;
  }

  .catalog-title {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.02;
  }

  .catalog-credits,
  .catalog-note {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .catalog-track-list {
    grid-column: 1 / -1;
    margin-top: 16px;
    gap: 10px;
  }

  .catalog-track {
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.92rem;
  }

  .catalog-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .about-main {
    align-items: flex-start;
  }

  .about-viewport {
    padding: 72px 0 56px;
  }

  .about-container {
    gap: 30px;
    text-align: left;
    align-items: flex-start;
  }

  .about-sign {
    text-align: left;
  }

  .about-contact {
    align-items: flex-start;
    margin-top: 8px;
  }

  .footer-top {
    padding: 24px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-top > div:first-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .footer-social a {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
  }

  .footer-bottom {
    padding: 22px 0 calc(30px + env(safe-area-inset-bottom));
    gap: 18px;
  }

  .footer-bottom p,
  .footer-top a {
    font-size: 0.86rem;
    line-height: 1.55;
  }
}

@media (max-width: 560px) {
  .container,
  .navbar-inner,
  .footer-top,
  .footer-bottom,
  .hero-content h1 {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero-slider {
    min-height: clamp(390px, 64svh, 500px);
  }

  .hero-content h1 {
    max-width: 310px;
    padding-bottom: 28px;
  }

  .release-card h3,
  .playlist-card h3,
  .service-card h3 {
    font-size: 1.34rem;
  }

  .catalog-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 13px;
    padding: 13px;
  }

  .catalog-cover-wrap {
    width: 82px;
    height: 82px;
  }

  .catalog-credits,
  .catalog-note {
    grid-column: 1 / -1;
  }

  .artist-bio {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .nav-links a {
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .hero-content h1 {
    font-size: 2.05rem;
  }

  .catalog-item {
    grid-template-columns: 1fr;
  }

  .catalog-cover-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
