:root {
  --st-bg: #090a0d;
  --st-panel: rgba(17, 18, 22, .86);
  --st-panel-solid: #131419;
  --st-text: #f2eee7;
  --st-muted: #bbb6ae;
  --st-dim: #85827d;
  --st-line: rgba(242, 238, 231, .16);
  --st-gold: #cdb188;
  --st-gold-soft: rgba(205, 177, 136, .16);
  --st-max: 1180px;
  --st-header-h: 72px;
}

html { scroll-padding-top: var(--st-header-h); }
body.soundtracks-page {
  margin: 0;
  background: var(--st-bg);
  color: var(--st-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.soundtracks-page::selection { background: var(--st-gold); color: #15120f; }
.soundtracks-page .skip-link { border-color: var(--st-gold); background: #090a0d; }

.st-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: var(--st-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 max(1.25rem, calc((100vw - var(--st-max)) / 2));
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 8, 10, .86), rgba(7, 8, 10, .56));
  backdrop-filter: blur(14px);
  transition: background .2s ease, border-color .2s ease;
}
.st-header.is-scrolled { background: rgba(8, 9, 11, .96); border-bottom-color: var(--st-line); }
.st-brand { display: flex; flex-direction: column; justify-content: center; min-height: 48px; text-decoration: none; line-height: 1.08; }
.st-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 500; letter-spacing: .055em; }
.st-brand span { margin-top: .28rem; color: var(--st-dim); font-size: .63rem; letter-spacing: .14em; text-transform: uppercase; }
.st-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); }
.st-nav a { position: relative; padding: .8rem 0; color: var(--st-muted); text-decoration: none; font-size: .72rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; transition: color .2s ease; }
.st-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .55rem; height: 1px; background: var(--st-gold); transition: right .22s ease; }
.st-nav a:hover, .st-nav a:focus-visible { color: var(--st-text); }
.st-nav a:hover::after, .st-nav a:focus-visible::after { right: 0; }
.st-profile-link { padding: .72rem 1rem !important; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; }
.st-profile-link::after { left: 1rem !important; right: calc(100% - 1rem) !important; bottom: .48rem !important; }
.st-profile-link:hover::after, .st-profile-link:focus-visible::after { right: 1rem !important; }
.st-menu-toggle { display: none; min-height: 42px; padding: .45rem .7rem; border: 1px solid var(--st-line); background: transparent; color: var(--st-text); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.st-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: url('../media/immagini/soundtracks/distant-reflections-bg.webp') center 46% / cover no-repeat;
}
.st-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 68% 34%, rgba(231, 222, 205, .12), transparent 25rem),
    linear-gradient(90deg, rgba(5, 6, 8, .95) 0%, rgba(5, 6, 8, .76) 42%, rgba(5, 6, 8, .42) 72%, rgba(5, 6, 8, .64) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, .25), rgba(5, 6, 8, .38) 65%, #090a0d 100%);
}
.st-hero-shade { position: absolute; inset: auto 0 0; height: 24%; background: linear-gradient(transparent, var(--st-bg)); pointer-events: none; }
.st-hero-copy { width: min(var(--st-max), calc(100% - 2.5rem)); margin: 0 auto; padding: calc(var(--st-header-h) + 5rem) 0 6rem; }
.st-kicker { margin: 0 0 1rem; color: var(--st-gold); font-size: .72rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; }
.st-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.1rem, 10vw, 9rem);
  font-weight: 400;
  font-style: italic;
  line-height: .82;
  letter-spacing: -.065em;
  text-shadow: 0 18px 52px rgba(0, 0, 0, .36);
}
.st-lead { max-width: 720px; margin: 2rem 0 0; color: #d7d1c8; font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: .02em; }
.st-button { display: inline-flex; align-items: center; gap: .85rem; min-height: 48px; margin-top: 2.4rem; padding: .8rem 1.05rem; border: 1px solid var(--st-gold); text-decoration: none; font-size: .75rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.st-button-primary { background: var(--st-gold); color: #17130f; }
.st-button-primary:hover { background: #dfc49d; }

.st-music { width: min(var(--st-max), calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(5.5rem, 10vw, 9rem) 0; }
.st-section-heading { display: grid; grid-template-columns: minmax(0, .7fr) minmax(260px, 1.3fr); column-gap: clamp(2rem, 6vw, 7rem); align-items: end; margin-bottom: clamp(2.4rem, 5vw, 4.5rem); }
.st-section-heading .st-kicker { grid-column: 1 / -1; }
.st-section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 8vw, 7rem); font-weight: 400; line-height: .9; letter-spacing: -.045em; }
.st-section-heading > p:last-child { max-width: 560px; margin: 0; color: var(--st-muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }

.st-player { border: 1px solid var(--st-line); background: linear-gradient(145deg, rgba(27, 28, 33, .96), rgba(12, 13, 16, .98)); box-shadow: 0 35px 90px rgba(0, 0, 0, .28); }
.st-player-main { display: grid; grid-template-columns: minmax(250px, .84fr) minmax(360px, 1.16fr); }
.st-cover-wrap { position: relative; min-height: 100%; border-right: 1px solid var(--st-line); background: #111216; }
.st-cover-wrap::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); pointer-events: none; }
.st-cover { width: 100%; height: 100%; display: block; object-fit: cover; }
.st-now-playing { min-width: 0; padding: clamp(2rem, 5vw, 4.4rem); display: flex; flex-direction: column; justify-content: center; }
.st-now-label { margin: 0; color: var(--st-gold); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.st-now-number { margin: .65rem 0 0; color: var(--st-dim); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.st-now-playing h3 { width: 100%; height: clamp(6rem, 8vw, 7.5rem); margin: 1.35rem 0 0; display: flex; align-items: center; overflow: hidden; }
.st-track-title-text { --st-track-title-min-rem: 1.75; --st-track-title-max-rem: 5; display: block; width: 100%; font-family: Georgia, "Times New Roman", serif; font-size: var(--st-track-title-size, clamp(2.4rem, 5.2vw, 5rem)); font-weight: 400; line-height: .96; letter-spacing: -.045em; overflow-wrap: anywhere; }
.st-now-meta { min-height: 3.2rem; margin: 1rem 0 0; display: flex; flex-direction: column; gap: .28rem; color: var(--st-muted); line-height: 1.4; }
.st-meta-primary, .st-meta-credit { display: block; }
.st-meta-credit { color: var(--st-dim); font-size: .88rem; }
.st-play-main { align-self: flex-start; display: inline-flex; align-items: center; gap: .8rem; min-height: 52px; margin-top: 2rem; padding: .7rem 1.1rem; border: 1px solid var(--st-gold); background: transparent; color: var(--st-text); cursor: pointer; }
.st-play-main:hover { background: var(--st-gold-soft); }
.st-play-icon { width: 1rem; }
.st-play-label { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.st-progress-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: .8rem; margin-top: 2.2rem; }
.st-time { color: var(--st-dim); font-variant-numeric: tabular-nums; font-size: .72rem; }
.st-time:last-child { text-align: right; }
.st-seek, .st-volume input { accent-color: var(--st-gold); cursor: pointer; }
.st-seek { width: 100%; }
.st-controls { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1.3rem; }
.st-transport { display: flex; gap: .45rem; }
.st-transport button { min-width: 42px; min-height: 42px; border: 1px solid var(--st-line); background: transparent; color: var(--st-text); cursor: pointer; }
.st-transport button:hover { border-color: var(--st-gold); }
.st-volume { display: flex; align-items: center; gap: .8rem; color: var(--st-dim); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.st-volume input { width: 100px; }
.st-player-message { margin: 1rem 0 0; color: #e7b2aa; font-size: .82rem; }

.st-playlist-panel { padding: clamp(1.4rem, 3vw, 2.4rem); border-top: 1px solid var(--st-line); }
.st-playlist-heading { display: flex; justify-content: space-between; gap: 1rem; padding: 0 .8rem 1.1rem; color: var(--st-dim); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.st-playlist { margin: 0; padding: 0; list-style: none; counter-reset: tracks; }
.st-track { counter-increment: tracks; border-top: 1px solid var(--st-line); }
.st-track-button { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-height: 62px; padding: .65rem .8rem; border: 0; background: transparent; color: var(--st-text); text-align: left; cursor: pointer; }
.st-track-button::before { content: counter(tracks, decimal-leading-zero); color: var(--st-dim); font-size: .72rem; font-variant-numeric: tabular-nums; }
.st-track-button:hover, .st-track-button:focus-visible { background: rgba(255,255,255,.035); }
.st-track.is-current .st-track-button { background: var(--st-gold-soft); }
.st-track-copy { min-width: 0; display: flex; flex-direction: column; }
.st-track-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.2; }
.st-track-meta { margin-top: .3rem; display: flex; flex-direction: column; gap: .12rem; color: var(--st-dim); font-size: .7rem; line-height: 1.35; }
.st-track-meta .st-meta-credit { font-size: inherit; }
.st-track-duration { color: var(--st-muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.st-contact { width: min(var(--st-max), calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(5rem, 9vw, 8rem) 0; border-top: 1px solid var(--st-line); }
.st-contact-content { max-width: 980px; }
.st-contact h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 6vw, 5.6rem); font-weight: 400; line-height: .95; letter-spacing: -.04em; }
.st-contact-description { margin: 1.2rem 0 0; color: var(--st-muted); }
.st-email { display: inline-block; margin-top: 2rem; color: var(--st-text); text-underline-offset: .3em; font-size: clamp(1rem, 2vw, 1.25rem); overflow-wrap: anywhere; }
.st-email:hover { color: var(--st-gold); }

.st-footer { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; padding: 2rem max(1.25rem, calc((100vw - var(--st-max)) / 2)); border-top: 1px solid var(--st-line); color: var(--st-dim); font-size: .72rem; }
.st-footer > a { color: var(--st-muted); text-decoration: none; }
.st-footer > a:hover { color: var(--st-text); }
.st-footer-privacy { grid-column: 1 / -1; display: flex; gap: 1rem; }
.st-footer-privacy a, .st-footer-privacy button { padding: 0; border: 0; background: none; color: var(--st-dim); font: inherit; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }

@media (max-width: 900px) {
  .st-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .st-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1.25rem 1rem; border-bottom: 1px solid var(--st-line); background: rgba(8, 9, 11, .98); }
  .st-nav.is-open { display: flex; }
  .st-nav a { min-height: 48px; display: flex; align-items: center; border-top: 1px solid var(--st-line); }
  .st-profile-link { width: fit-content; margin-top: .5rem; padding: .72rem 1rem !important; border: 1px solid rgba(255,255,255,.28); }
  .st-section-heading { grid-template-columns: 1fr; gap: 1.3rem; }
  .st-player-main { grid-template-columns: 1fr; }
  .st-cover-wrap { max-height: min(78vw, 620px); border-right: 0; border-bottom: 1px solid var(--st-line); }
  .st-cover { aspect-ratio: 1; }
}

@media (max-width: 600px) {
  :root { --st-header-h: 66px; }
  .st-hero-copy, .st-music, .st-contact { width: min(100% - 2rem, var(--st-max)); }
  .st-hero h1 { font-size: clamp(3.6rem, 19vw, 5.2rem); }
  .st-lead { line-height: 1.55; }
  .st-now-playing { padding: 1.5rem; }
  .st-now-playing h3 { height: 7.2rem; }
  .st-track-title-text { --st-track-title-max-rem: 3.8; font-size: var(--st-track-title-size, clamp(2.25rem, 13vw, 3.8rem)); }
  .st-now-meta { min-height: 4.8rem; }
  .st-controls { align-items: flex-start; flex-direction: column; }
  .st-volume { width: 100%; justify-content: space-between; }
  .st-volume input { width: min(180px, 55vw); }
  .st-playlist-panel { padding: 1rem; }
  .st-track-button { grid-template-columns: 34px minmax(0,1fr) auto; gap: .7rem; padding-inline: .4rem; }
  .st-track-title { font-size: 1rem; }
  .st-footer { grid-template-columns: 1fr; }
  .st-footer-privacy { grid-column: auto; flex-wrap: wrap; }
}


/* 5.3 — Ancora Playlist, menu animato e navigazione trasversale */
.st-section-heading[id] { scroll-margin-top: calc(var(--st-header-h) + 1.35rem); }
.st-footer .portal-footer-nav { grid-column: 1 / -1; width: 100%; margin-bottom: .35rem; border-bottom-color: var(--st-line); }
.st-footer .portal-footer-nav > span { color: var(--st-dim); }
.st-footer .portal-footer-nav a { color: var(--st-muted); }
.st-footer .portal-footer-nav a::after { background: var(--st-gold); }
.st-footer .portal-footer-nav a:hover,
.st-footer .portal-footer-nav a:focus-visible,
.st-footer .portal-footer-nav a[aria-current="page"] { color: var(--st-text); }


/* 5.4 — Contatti e footer uniformati al portale */
.st-contact-label { margin-top: 2.3rem; color: var(--st-dim); }
.st-email { margin-top: 0; }
.st-contact-actions { justify-content: flex-start; }
.st-contact-actions .button { margin-top: 0; }
.st-contact-actions .button.primary { border-color: var(--st-gold); background: var(--st-gold); color: #17130f; }
.st-contact-actions .button.primary:hover { border-color: #dfc49d; background: #dfc49d; }
.st-contact-actions .button.secondary { border-color: var(--st-line); color: var(--st-text); }
.st-contact-actions .button.secondary:hover { border-color: var(--st-gold); background: var(--st-gold-soft); }
.st-contact .copy-status { color: var(--st-dim); }
.st-site-footer {
  --max: var(--st-max);
  --line: var(--st-line);
  --muted-dark: var(--st-dim);
  --muted: var(--st-muted);
  --text: var(--st-text);
  --accent: var(--st-gold);
  background: #090a0d;
}
.st-site-footer .footer-cookie-button:hover,
.st-site-footer .footer-cookie-button:focus-visible,
.st-site-footer a:hover,
.st-site-footer a:focus-visible { color: var(--st-text); }


/* 5.5 — Footer a riquadri */
.st-site-footer { --portal-footer-accent-ink: #17130f; }
.st-footer .portal-footer-nav a::after { display: none; }

.st-footer .portal-footer-nav a:hover,
.st-footer .portal-footer-nav a:focus-visible { color: #17130f; }

/* 5.7 — Ovale più ampio per il collegamento al profilo Doppiatore */
.st-profile-link {
  padding-left: 1.7rem !important;
  padding-right: 1.7rem !important;
  white-space: nowrap;
}
.st-profile-link::after {
  left: 1.7rem !important;
  right: calc(100% - 1.7rem) !important;
}
.st-profile-link:hover::after,
.st-profile-link:focus-visible::after {
  right: 1.7rem !important;
}
@media (max-width: 760px) {
  .st-profile-link {
    padding-left: 1.35rem !important;
    padding-right: 1.35rem !important;
  }
  .st-profile-link::after {
    left: 1.35rem !important;
    right: calc(100% - 1.35rem) !important;
  }
  .st-profile-link:hover::after,
  .st-profile-link:focus-visible::after {
    right: 1.35rem !important;
  }
}



/* 5.8 — Dicitura diritti nel footer */
.st-site-footer .st-footer-rights {
  max-width: 900px;
  margin: 0;
  color: var(--st-dim);
  font-size: .72rem;
  line-height: 1.7;
}
