:root {
  --page: #f6efe1;
  --page-soft: #fbf7ee;
  --paper: rgba(255, 250, 240, 0.88);
  --paper-solid: #fffaf0;
  --text: #2a261f;
  --text-muted: #6f675b;
  --brown: #6b421d;
  --brown-dark: #4c2f15;
  --sand: #d8bea0;
  --sage: #7d8464;
  --gold: #b68a43;
  --line: rgba(87, 62, 34, 0.20);
  --shadow: 0 24px 70px rgba(75, 54, 28, 0.18);
  --radius: 18px;
  --max: 1180px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--page);
  line-height: 1.5;
}

body.biography-page {
  position: relative;
  isolation: isolate;
  background-color: var(--page);
  background-image: none;
}

body.privacy-page {
  min-height: 100vh;
  background: var(--page-soft);
}

body.biography-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(250, 244, 232, .97), rgba(250, 244, 232, .78), rgba(250, 244, 232, .24)),
    url("../img/bg-biografia-music.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  transform: translateZ(0);
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 10;
}

.site-header-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 48px;
}

.brand-signature,
.footer-signature {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-signature {
  font-size: 28px;
}

.brand-signature-home {
  visibility: hidden;
  pointer-events: none;
}

.site-nav {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  padding-bottom: 8px;
  border-bottom: 1px solid transparent;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  border-color: currentColor;
}

.discography-page .brand-signature,
.discography-page .site-nav a,
.contact-page .brand-signature,
.contact-page .site-nav a {
  color: #fffaf0;
  text-shadow: 0 2px 16px rgba(35, 24, 13, .38);
}

.home-page {
  min-height: 100vh;
  background-image:
    linear-gradient(90deg, rgba(250, 244, 232, .94), rgba(250, 244, 232, .62), rgba(250, 244, 232, .12)),
    url("../img/bg-home-music.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px 48px 150px;
  display: flex;
  align-items: center;
}

.home-copy {
  max-width: 560px;
}

.hero-artist-name {
  margin: 0 0 18px;
  color: var(--brown-dark);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.kicker {
  margin-bottom: 24px;
  color: var(--brown);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 28px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(54px, 7.2vw, 104px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.75;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 34px;
  font-size: 15px;
}

.platform-links a {
  color: var(--brown-dark);
  text-decoration: none;
  font-weight: 650;
}

.platform-links a:hover {
  color: var(--brown);
}

.platform-links span {
  display: none;
}

.platform-empty {
  margin: 0;
  color: var(--text-muted);
}

.page-copyright {
  position: absolute;
  right: 48px;
  bottom: 30px;
  max-width: min(380px, calc(100% - 96px));
  margin: 0;
  color: rgba(255, 250, 240, .78);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
  text-shadow: 0 2px 12px rgba(35, 24, 13, .58);
}

.home-page .page-copyright {
  color: rgba(76, 47, 21, .72);
  text-shadow: 0 1px 10px rgba(255, 250, 240, .72);
}

.biography-page {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  background-color: transparent;
}

.biography-hero {
  position: relative;
  width: min(100%, var(--max));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 112px 48px 120px;
  display: grid;
  align-content: start;
}

.biography-content {
  width: min(100%, 1000px);
  display: block;
}

.biography-portrait {
  display: block;
  float: none;
  position: relative;
  width: clamp(280px, 28vw, 340px);
  max-width: 100%;
  margin: 4px 0 18px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(87, 62, 34, .16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 190, 160, .5), rgba(255, 250, 240, .82)),
    radial-gradient(circle at 78% 18%, rgba(182, 138, 67, .28), transparent 32%);
  box-shadow: 0 18px 48px rgba(75, 54, 28, .14);
}

.biography-portrait img,
.portrait-placeholder {
  width: 100%;
  height: 100%;
}

.biography-portrait img {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.portrait-placeholder {
  display: grid;
  place-items: center;
  color: rgba(76, 47, 21, .58);
  font-family: var(--font-display);
  font-size: 56px;
  font-style: italic;
}

.biography-copy {
  max-width: none;
}

.biography-copy h1 {
  margin: 0 0 20px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 500;
  line-height: 1.02;
}

.biography-text {
  display: flow-root;
  max-width: 760px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.78;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  text-wrap: pretty;
}

.biography-text p {
  margin-bottom: 18px;
}

.biography-text p:last-child {
  margin-bottom: 0;
}

.biography-text strong {
  font-weight: 700;
}

.biography-page .page-copyright {
  color: rgba(76, 47, 21, .72);
  text-shadow: 0 1px 10px rgba(255, 250, 240, .78);
}

.discography-page {
  min-height: 100vh;
  background: var(--page-soft);
}

.page-hero {
  min-height: 330px;
  padding: 140px 0 70px;
  color: #fffaf0;
  background-image:
    linear-gradient(90deg, rgba(35, 24, 13, .72), rgba(35, 24, 13, .48), rgba(35, 24, 13, .34)),
    url("../img/bg-discografia-music.jpg");
  background-size: cover;
  background-position: center;
}

.privacy-page .page-hero {
  color: var(--brown-dark);
  background-image:
    linear-gradient(90deg, rgba(250, 244, 232, .96), rgba(250, 244, 232, .72), rgba(250, 244, 232, .36)),
    url("../img/privacy-background.jpg");
  background-color: var(--page-soft);
}

.page-hero-inner,
.catalog-section,
.contact-layout,
.privacy-section {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero-inner {
  padding: 0 48px;
}

.page-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
}

.page-subtitle {
  max-width: 520px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}

.catalog-section {
  padding: 44px 48px 90px;
}

.privacy-section {
  padding: 44px 48px 90px;
}

.privacy-content {
  max-width: 820px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.82;
  white-space: pre-line;
}

.privacy-empty {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.72;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.track-card {
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-solid);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.track-card:hover {
  transform: translateY(-1px);
  border-color: rgba(87, 62, 34, .22);
  box-shadow: 0 18px 44px rgba(75, 54, 28, .14);
  background: linear-gradient(180deg, rgba(255, 250, 240, .98), rgba(255, 247, 232, .98));
}

.track-card:focus-visible {
  outline: 2px solid rgba(107, 66, 29, .38);
  outline-offset: 3px;
}

.track-cover,
.track-cover-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  display: block;
}

.track-cover {
  object-fit: cover;
}

.track-cover-placeholder {
  border: 1px solid rgba(87, 62, 34, .16);
  background:
    linear-gradient(135deg, rgba(216, 190, 160, .46), rgba(255, 250, 240, .8)),
    radial-gradient(circle at 78% 18%, rgba(182, 138, 67, .32), transparent 28%);
}

.track-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.12;
}

.track-card-meta {
  margin: 0 0 10px;
  color: var(--brown);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.track-card p {
  color: var(--text-muted);
  line-height: 1.55;
}

.track-card-text {
  min-height: 3.1em;
  margin: 0 0 18px;
}

.track-card .track-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--brown-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link {
  color: var(--brown-dark);
  font-weight: 700;
  text-underline-offset: 5px;
}

.empty-state {
  max-width: 440px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-solid);
  box-shadow: 0 16px 44px rgba(75, 54, 28, .11);
}

.empty-state h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}

.empty-state p {
  margin: 0;
  color: var(--text-muted);
}

.contact-page {
  min-height: 100vh;
  min-height: 100dvh;
  color: #fffaf0;
  background-image:
    linear-gradient(90deg, rgba(45, 33, 20, .72), rgba(45, 33, 20, .42), rgba(45, 33, 20, .28)),
    url("../img/bg-contatti-music.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.contact-page main {
  min-height: 100vh;
  min-height: 100dvh;
}

.contact-layout {
  position: relative;
  width: min(100%, var(--max));
  min-height: 100vh;
  padding: 150px 48px 150px;
  display: grid;
  grid-template-columns: .9fr 1.25fr;
  gap: 70px;
  align-items: center;
}

.contact-copy-wrap {
  min-width: 0;
}

.contact-title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(50px, 7vw, 88px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -0.025em;
}

.contact-copy {
  max-width: 380px;
  margin-bottom: 28px;
  font-size: 17px;
  line-height: 1.75;
}

.email-row {
  display: inline-flex;
  color: #fffaf0;
  font-weight: 650;
  text-decoration: none;
}

.contact-note {
  margin: 26px 0 10px;
  color: rgba(255, 250, 240, .9);
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(35, 24, 13, .5);
}

#contact-platforms .platform-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  max-width: 430px;
  margin-top: 0;
  font-size: 15px;
  line-height: 1.6;
}

#contact-platforms .platform-links a {
  color: rgba(255, 250, 240, .94);
  text-decoration: none;
  font-weight: 650;
}

#contact-platforms .platform-links a:hover {
  color: #fffaf0;
}

#contact-platforms .platform-links span {
  display: none;
}

.contact-bottom-meta {
  position: absolute;
  right: 48px;
  bottom: 30px;
  display: grid;
  justify-items: end;
  gap: 4px;
}

.contact-bottom-meta .email-row {
  max-width: min(320px, calc(100vw - 96px));
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 250, 240, .84);
  text-align: right;
  text-shadow: 0 2px 12px rgba(35, 24, 13, .58);
}

.contact-bottom-meta .page-copyright {
  position: static;
  max-width: min(380px, calc(100vw - 96px));
}

.contact-panel {
  min-width: 0;
  padding: 34px;
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 250, 240, .9);
  box-shadow: var(--shadow);
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label,
.form-field span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(80, 60, 35, .18);
  border-radius: 2px;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, .74);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  border: 0;
  padding: 16px 22px;
  color: white;
  background: var(--brown);
  font-weight: 750;
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--brown-dark);
}

.btn-submit:disabled {
  opacity: .58;
  cursor: not-allowed;
}

.site-footer {
  background: var(--page-soft);
  color: var(--text-muted);
  text-align: center;
  padding: 28px 24px 36px;
}

.footer-signature {
  margin-bottom: 6px;
  color: var(--brown-dark);
  font-size: 30px;
}

.footer-copy {
  margin: 0;
  font-size: 14px;
}

.site-footer .platform-links {
  justify-content: center;
  margin-top: 16px;
  font-size: 13px;
}

.site-footer .platform-links span {
  display: none;
}

.discography-page .site-footer .footer-signature,
.discography-page .site-footer .platform-links {
  display: none;
}

.discography-page .site-footer .footer-copy {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  white-space: normal;
}

.footer-copy-break {
  display: inline;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .track-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 14px;
  }

  .site-header-inner {
    padding: 0 22px;
  }

  .site-nav {
    gap: 18px;
  }

  .home-hero {
    padding: 92px 24px 140px;
  }

  .page-hero {
    padding: 130px 0 60px;
  }

  .page-hero-inner {
    padding: 0 24px;
  }

  .catalog-section {
    padding: 34px 24px 70px;
  }

  .privacy-section {
    padding: 34px 24px 70px;
  }

  .track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    padding: 130px 24px 160px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .biography-hero {
    padding: 104px 24px 130px;
  }

  .biography-content {
    width: min(100%, 760px);
  }

  .biography-portrait {
    float: none;
    width: min(100%, 520px);
    margin: 0 auto 22px;
  }

  .page-copyright {
    right: 24px;
    bottom: 24px;
    max-width: calc(100% - 48px);
  }

  .contact-bottom-meta {
    right: 24px;
    bottom: 24px;
  }

  .contact-bottom-meta .email-row,
  .contact-bottom-meta .page-copyright {
    max-width: calc(100vw - 48px);
  }
}

@media (max-width: 1024px) {
  .biography-portrait {
    float: none;
    display: block;
    width: min(55%, 340px);
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 22px;
    height: auto;
  }
}

@media (max-width: 640px) {
  body.biography-page::before {
    background-image:
      linear-gradient(90deg, rgba(250, 244, 232, .97), rgba(250, 244, 232, .78), rgba(250, 244, 232, .24)),
      url("../img/bg-biografia-music-mobile.jpg");
  }

  .home-page {
    background-image:
      linear-gradient(90deg, rgba(250, 244, 232, .94), rgba(250, 244, 232, .62), rgba(250, 244, 232, .12)),
      url("../img/bg-home-music-mobile.jpg");
  }

  .discography-page {
    background: var(--page-soft);
  }

  .page-hero {
    background-image:
      linear-gradient(90deg, rgba(35, 24, 13, .72), rgba(35, 24, 13, .48), rgba(35, 24, 13, .34)),
      url("../img/bg-discografia-music-mobile.jpg");
  }

  .privacy-page .page-hero {
    background-image:
      linear-gradient(90deg, rgba(250, 244, 232, .96), rgba(250, 244, 232, .72), rgba(250, 244, 232, .36)),
      url("../img/privacy-background-mobile.jpg");
  }

  .contact-page {
    background-image:
      linear-gradient(90deg, rgba(45, 33, 20, .72), rgba(45, 33, 20, .42), rgba(45, 33, 20, .28)),
      url("../img/bg-contatti-music-mobile.jpg");
  }

  .home-page #hero-platforms .platform-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    max-width: 100%;
    color: var(--brown-dark);
    font-size: 14px;
    line-height: 1.55;
    margin-top: 26px;
  }

  .home-page #hero-platforms .platform-links a {
    color: var(--brown-dark);
    font-weight: 600;
    text-decoration: none;
  }

  .home-page #hero-platforms .platform-links span {
    display: none;
  }

  .biography-text {
    text-align: left;
    hyphens: auto;
    line-height: 1.82;
  }

  .biography-portrait {
    float: none;
    display: block;
    width: min(100%, 250px);
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 18px;
    height: auto;
  }
}

@media (min-width: 1025px) {
  .biography-portrait {
    float: left;
    display: block;
    width: clamp(300px, 24vw, 360px);
    max-width: 38%;
    margin: 0 2rem 1rem 0;
    height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 4px;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .brand-signature {
    font-size: 21px;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 10px;
    width: auto;
    min-height: auto;
  }

  .site-nav a {
    font-size: 12px;
    padding-bottom: 4px;
  }

  .hero-artist-name {
    font-size: clamp(26px, 7.2vw, 34px);
    line-height: 1.06;
    letter-spacing: -0.015em;
    white-space: normal;
  }

  .home-hero {
    padding: 62px 16px 132px;
  }

  .hero-title {
    font-size: clamp(42px, 11.4vw, 52px);
    line-height: .95;
  }

  .lead {
    font-size: 16px;
    line-height: 1.72;
  }

  .contact-copy {
    max-width: 100%;
  }

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

  .home-page,
  .contact-page,
  .biography-page {
    background-attachment: scroll;
  }

  .biography-hero {
    padding-bottom: 96px;
  }

  .biography-copy h1 {
    font-size: 38px;
  }

  .biography-text {
    text-align: left;
  }

  .biography-page .page-copyright {
    bottom: 34px;
  }

  .discography-page .footer-copy-break {
    display: block;
  }

  .contact-layout {
    padding-bottom: 175px;
  }

  .contact-bottom-meta {
    left: 24px;
    justify-items: start;
  }

  .contact-bottom-meta .email-row,
  .contact-bottom-meta .page-copyright {
    text-align: left;
  }
}
