:root {
  --bg: #f1f1ee;
  --bg-soft: #faf8f2;
  --surface: #ffffff;
  --surface-2: #f5f2ea;
  --surface-3: #ece7dd;
  --text: #1f1f1b;
  --text-soft: #4e4a42;
  --muted: #7b7569;
  --line: rgba(31, 31, 27, 0.12);
  --header: rgba(28, 28, 28, 0.92);
  --header-border: rgba(17, 17, 17, 0.08);
  --menu-bg: rgba(24, 24, 24, 0.97);
  --overlay: rgba(0, 0, 0, 0.34);
  --accent: #111111;
  --accent-contrast: #ffffff;
  --shadow: 0 16px 40px rgba(20, 20, 16, 0.08);
  --shadow-soft: 0 10px 28px rgba(20, 20, 16, 0.06);
  --radius: 20px;
  --button-bg: #141414;
  --button-text: #ffffff;
  --intro-bg: #0f0f0f;
  --intro-surface: rgba(255,255,255,0.62);
  --header-link: #f5f2ea;
  --header-ui: #f5f2ea;
  --footer-bg: #1c1c1c;
  --footer-text: #f5f2ea;
  --footer-muted: #b8b2a6;
  --footer-hover: rgba(255,255,255,0.08);
}

html[data-theme="dark"] {
  --bg: #131313;
  --bg-soft: #191919;
  --surface: #1d1d1d;
  --surface-2: #232323;
  --surface-3: #2c2c2c;
  --text: #f4f2eb;
  --text-soft: #d4d0c6;
  --muted: #9e9889;
  --line: rgba(255, 255, 255, 0.12);
  --header: rgba(245, 242, 234, 0.94);
  --header-border: rgba(255, 255, 255, 0.08);
  --menu-bg: rgba(248, 245, 237, 0.97);
  --overlay: rgba(0, 0, 0, 0.52);
  --accent: #f5f2ea;
  --accent-contrast: #121212;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.24);
  --button-bg: #f5f2ea;
  --button-text: #111111;
  --intro-bg: #0f0f0f;
  --intro-surface: rgba(255,255,255,0.05);
  --header-link: #141414;
  --header-ui: #141414;
  --footer-bg: #f5f2ea;
  --footer-text: #141414;
  --footer-muted: #6e675b;
  --footer-hover: rgba(0,0,0,0.06);
}

*,:before,:after { box-sizing: border-box; }
html, body { min-height: 100%; }
html { scroll-behavior: smooth; }
body.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; }
p { line-height: 1.72; margin: 0 0 1.1rem; color: var(--text-soft); }
img { max-width: 100%; display: block; }
ul { margin: 0; }
.clearfix::after { content: ""; display: block; clear: both; }
.animate { transition: all .25s ease; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--button-bg);
  color: var(--button-text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .2s ease, opacity .2s ease, background-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-1px); opacity: .93; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: var(--header);
  border-bottom: 1px solid var(--header-border);
  min-height: 86px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 14px 0;
}
.header__logo img { height: 54px; width: auto; }
.header__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 18px;
}
.header__menu {
  margin-left: auto;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.header__menu__item { display: inline-block; }
.header__menu__item > a {
  display: block;
  text-decoration: none;
  color: var(--header-link, var(--text));
  padding: 18px 16px;
  border-radius: 999px;
  font-size: .98rem;
  transition: background-color .2s ease, color .2s ease;
}
.header__menu__item > a:hover,
.header__menu__item.is-current > a,
.header__menu__item > a.is-current {
  background: color-mix(in srgb, var(--header-link) 12%, transparent);
}
.submenu li a { color: var(--header-link); }
.dropdown { position: relative; }
.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 270px;
  list-style: none;
  padding: 10px;
  margin: 0;
  background: var(--menu-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.dropdown:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a {
  display: block;
  text-decoration: none;
  color: var(--header-link);
  border-radius: 12px;
  font-weight: 500;
  padding: 11px 14px;
  font-size: .94rem;
}
.submenu li a:hover { background: color-mix(in srgb, var(--header-link) 10%, transparent); color: var(--header-link); }

.theme-toggle,
.header__icon-bar {
  border: 1px solid color-mix(in srgb, var(--header-link) 28%, transparent);
  background: color-mix(in srgb, var(--header-link) 6%, transparent);
  color: var(--header-link);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--header-link) 10%, transparent);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover,
.header__icon-bar:hover {
  background: color-mix(in srgb, var(--header-link) 12%, transparent);
  border-color: color-mix(in srgb, var(--header-link) 42%, transparent);
}
.theme-toggle__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--header-link);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--header-link) 60%, #000 40%),
    0 0 0 4px color-mix(in srgb, var(--header-link) 12%, transparent);
}
.header__icon-bar { display: none; flex-direction: column; gap: 4px; padding: 0; }
.header__icon-bar span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--header-ui);
  display: block;
}

.cover {
  min-height: 68vh;
  background-size: cover;
  background-position: center center;
  position: relative;
  display: flex;
  align-items: center;
}
.cover--single { min-height: 52vh; }
.cover__filter {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18), var(--overlay));
}
.cover__caption {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}
.cover__caption__copy {
  color: #faf9f3;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.cover__caption__copy h1 {
  margin: 0 0 .35rem;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 1.03;
}
.cover__caption__copy h2 {
  margin: 0 0 .7rem;
  font-size: clamp(1.05rem, 2.3vw, 1.7rem);
  font-weight: 500;
}
.cover__caption__copy h3 {
  margin: 0 0 1.3rem;
  font-size: clamp(.98rem, 1.8vw, 1.2rem);
  font-weight: 400;
}
.cover-home { background-image: url("Immagini/Home.png"); }
.cover-about { background-image: url("Immagini/About.png"); }
.cover-services { background-image: url("Immagini/Services.png"); }
.cover-works { background-image: url("Immagini/Works.png"); }
.cover-shop { background-image: url("Immagini/Shop.png"); }
.cover-contacts { background-image: url("Immagini/Contacts.png"); }
.cover-composition { background-image: url("Immagini/Composition.png"); }
.cover-arrangement { background-image: url("Immagini/Arrangement.png"); }
.cover-mixing { background-image: url("Immagini/Mixing.png"); }
.cover-mailme { background-image: url("Immagini/MailMe.png"); }

.panel {
  max-width: 1120px;
  margin: 42px auto;
  padding: 0 24px;
}
.panel__copy {
  max-width: 860px;
  margin: -64px auto 0;
  position: relative;
  z-index: 2;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
}
.panel__copy__title,
.center-line {
  color: var(--text);
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3vw, 2.25rem);
}
.panel__copy h3, .panel__copy h4 {
  color: var(--text);
  margin-top: 1.3rem;
  margin-bottom: .75rem;
}
.panel__video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.panel__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cards {
  max-width: 1200px;
  margin: 42px auto;
  padding: 0 24px;
}
.cards--home,
.cards--contact,
.cards--shop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card,
.card--contain {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  min-width: 0;
}
.card {
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__image,
.card img,
.card--contain img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}
.card--contain {
  display: flex;
  align-items: stretch;
}
.card--contain .card__copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 18px;
  min-height: 310px;
}
.cards--contact .card--contain img {
  width: 100%;
  max-width: 240px;
  height: 120px;
  object-fit: contain;
}
.card--contain .card__copy > a {
  width: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cards--contact .card--contain img,
.cards--shop .card--contain img {
  margin: 0 auto;
}
.card__copy {
  padding: 22px 24px 26px;
  color: var(--text);
}
.card__copy h3 { margin: 0; color: var(--text); }
.card__copy p,
.card__copy li { color: var(--text-soft); }
.card ul { padding-left: 18px; margin-top: 10px; }
.card li { margin-bottom: 6px; }
.banner-link { text-decoration: none; color: inherit; }

.banner {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 24px;
  background: transparent;
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: 24px;
}
.banner .clearfix::after { content:none; }
.banner__image,
.banner__copy {
  min-height: 380px;
  border-radius: 20px;
}
.banner__image {
  flex: 0 0 35%;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}
.banner__copy {
  flex: 1 1 65%;
  padding-left: 0;
}
.banner__copy__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 32px 34px;
}
.banner__copy__text h3 { font-size: clamp(1.8rem, 3vw, 2.25rem); margin: 0 0 6px; color: var(--text); }
.banner__copy__text h4 { margin: 0 0 14px; font-size: 1.2rem; color: var(--text-soft); }
.banner__copy__text p { margin-bottom: 0; }
.banner-1 { background-image: url("Immagini/Composition.png"); }
.banner-2 { background-image: url("Immagini/Arrangement.png"); }
.banner-3 { background-image: url("Immagini/Mixing.png"); }
.banner-4 { background-image: url("Immagini/Orchestral.png"); }
.banner-5 { background-image: url("Immagini/Soundtrack.png"); }
.banner-6 { background-image: url("Immagini/Ambient.png"); }
.banner-7 { background-image: url("Immagini/Atonal.png"); }
.banner-8 { background-image: url("Immagini/Pop.png"); }
.banner-9 { background-image: url("Immagini/Art.png"); }

.works-grid {
  max-width: 1200px;
  margin: 0 auto 56px;
  padding: 0 24px 10px;
  display: grid;
  gap: 24px;
}
.release-banner {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.release-banner__content {
  display: grid;
  grid-template-columns: minmax(220px, .95fr) minmax(340px, 1.35fr);
  align-items: center;
  gap: 24px;
  padding: 24px;
}
.release-banner__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  padding: 10px 8px 10px 12px;
}
.release-banner__eyebrow {
  font-size: .77rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.release-banner__title {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  line-height: 1.06;
  color: var(--text);
}
.release-banner__desc {
  margin: 0;
  max-width: 36ch;
}
.release-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--button-text);
  background: var(--button-bg);
  font-weight: 600;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, opacity .2s ease;
}
.release-banner__button:hover { transform: translateY(-1px); opacity: .92; }
.release-banner__player-wrap {
  width: 100%;
  min-width: 0;
  background: var(--surface-2);
  border-radius: 18px;
  padding: 10px;
}
.release-banner__player {
  width: 100%;
  height: 166px;
  border: 0;
  display: block;
  border-radius: 12px;
}

.faq-section {
  width: 100%;
  max-width: 950px;
  margin: 0 auto 54px;
  padding: 0 24px;
}
.faq-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font: inherit;
}
.faq-question:hover { opacity: 0.78; }
.faq-question span:first-child {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
}
.faq-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .3s ease;
  color: var(--text);
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer p { margin: 0; padding: 0 0 22px; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-item.active .faq-icon { transform: rotate(90deg); }

.footer {
  background: var(--footer-bg);
  border-top: 1px solid color-mix(in srgb, var(--footer-text) 10%, transparent);
  margin-top: 56px;
  padding: 40px 24px;
  text-align: center;
}
.footer__social {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer__social__item a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
}
.footer__social__item a:hover { transform: translateY(-2px); background: var(--footer-hover); }
.footer__social__item img { width: 36px; height: 36px; }
.footer__tagline,
.footer__contact,
.footer__copyright,
.footer__top { margin: 0 0 10px; }
.footer__tagline { color: var(--footer-text); }
.footer__contact a,
.footer__top a { color: var(--footer-text); text-decoration: none; }
.footer__copyright { color: var(--footer-muted); font-size: .93rem; }
.footer__top { margin-bottom: 0; }

.contact {
  max-width: 760px;
  margin: 44px auto 0;
  padding: 0 24px;
}
.contact > h2 {
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  text-align: center;
  margin: 0 0 14px;
}
.contact-note {
  max-width: 52ch;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--text-soft);
}
.contact-form {
  display: grid;
  gap: 14px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 28px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  color: var(--text);
  background: var(--bg-soft);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }
.contact-form button {
  justify-self: start;
  border: 0;
  min-width: 140px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
  font-weight: 600;
}
.contact-form button:hover { opacity: .92; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 28px;
  animation: introExit 1.1s ease forwards;
  animation-delay: 3.6s;
}
.theme-toggle--intro {
  position: absolute;
  top: 22px;
  right: 22px;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.28);
  color: #f5f2ea;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.theme-toggle--intro .theme-toggle__dot {
  background: #f5f2ea;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55), 0 0 0 4px rgba(255,255,255,0.08);
}
.logo {
  width: clamp(88px, 10vw, 120px);
  opacity: 0;
  transform: translateY(-20px) scale(.94);
  animation: logoIn .9s ease forwards;
}
.video {
  width: min(900px, 84vw);
  opacity: 0;
  transform: translateY(26px);
  animation: videoIn .95s ease forwards;
  animation-delay: 1.15s;
}
.video iframe {
  width: 100%;
  height: min(52vw, 500px);
  min-height: 240px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
@keyframes logoIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes videoIn { to { opacity: 1; transform: translateY(0); } }
@keyframes introExit { to { transform: translateY(-100%); opacity: 0; pointer-events: none; } }

@media (max-width: 1024px) {
  body.site-body { padding-top: 0; }
  .header { padding: 0 16px; min-height: 86px; }
  .header__logo img { height: 48px; }
  .header__icon-bar { display: inline-flex; }
  .header__menu {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 14px 16px 18px;
    background: var(--menu-bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-shadow: var(--shadow-soft);
  }
  .header__menu.active { display: flex; }
  .header__menu__item { display: block; }
  .header__menu__item > a {
    padding: 14px 16px;
    color: var(--header-link);
  }
  .submenu {
    position: static;
    min-width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin-top: 8px;
    padding: 10px;
    background: var(--menu-bg);
    border: 1px solid var(--line);
    box-shadow: none;
  }
  .submenu li a {
    color: var(--header-link);
    background: transparent;
  }
  .submenu li a:hover {
    background: color-mix(in srgb, var(--header-link) 10%, transparent);
    color: var(--header-link);
  }
  .dropdown.active .submenu { display: block; }

  .cards--home,
  .cards--contact,
  .cards--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .banner__image { flex-basis: 38%; min-height: 340px; }
  .banner__copy { flex-basis: 62%; }
  .banner__copy__text { padding: 28px 28px; }

  .release-banner__content { grid-template-columns: 1fr; }
  .release-banner__desc { max-width: none; }
}

@media (max-width: 768px) {
  .cover,
  .cover--single { min-height: 58vh; }
  .cover__caption { padding: 0 16px; }
  .panel,
  .cards,
  .works-grid,
  .faq-section,
  .contact,
  .banner { padding-left: 16px; padding-right: 16px; }
  .panel { margin: 24px auto; }
  .panel__copy { margin-top: -38px; padding: 24px 22px; }
  .cards--home,
  .cards--contact,
  .cards--shop { grid-template-columns: 1fr; }
  .banner { flex-direction: column; gap: 16px; }
  .banner__image,
  .banner__copy { width: 100%; flex: none; }
  .banner__image { min-height: 260px; margin-bottom: 0; }
  .banner__copy { padding-left: 0; }
  .banner__copy__text { padding: 24px 22px; }
  .release-banner__content { padding: 16px; gap: 16px; }
  .release-banner__text { padding: 4px; }
  .theme-toggle--intro { top: 16px; right: 16px; }
}

.cards--shop .card--contain .card__copy { min-height: 300px; }
.cards--contact .card__copy h3, .cards--shop .card__copy h3 { min-height: 1.2em; }


@media (max-width: 1024px) {
  .cards--contact .card--contain .card__copy,
  .cards--shop .card--contain .card__copy {
    min-height: 280px;
  }
  .cards--contact .card--contain .card__copy > a,
  .cards--shop .card--contain .card__copy > a {
    min-height: 150px;
    align-items: center;
    justify-content: center;
  }
}


.form-success {
  max-width: 760px;
  margin: 22px auto 0;
  padding: 16px 20px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--button-bg) 10%, var(--surface));
  color: var(--text);
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow-soft);
}
