:root {
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  --bg-soft: #f8f9fa;
}

/* Tipografia */
body {
  font-family: var(--body-font);
  color: #212529;
  letter-spacing: 0.2px;
  padding-top: 72px; /* spazio per navbar fixed */
  background-color: #fff;
}
.heading-serif {
  font-family: var(--heading-font);
}

/* Navbar elegante */
.navbar {
  background: linear-gradient(90deg, #121212, #1c1c1c);
}
.navbar-brand {
  letter-spacing: 0.5px;
}
.nav-link {
  opacity: 0.9;
}
.nav-link.active {
  opacity: 1;
  font-weight: 600;
}

/* Navbar scura elegante */
.navbar-dark.bg-dark {
  background: linear-gradient(90deg, #0f1114, #171a1d);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.navbar-dark .navbar-brand {
  color: #fff;
  opacity: 0.95;
  letter-spacing: 0.4px;
}
.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.88);
  opacity: 1;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s ease, opacity 0.2s ease;
  letter-spacing: 0.3px; /* distanzia leggermente le scritte */
}
.navbar-dark .nav-link:hover {
  color: #fff;
}
.navbar-dark .nav-link.active {
  color: #fff;
  font-weight: 600;
  position: relative;
}
.navbar-dark .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.2rem; /* più vicino al testo */
  height: 1px; /* appena più sottile */
  background: rgba(255, 255, 255, 0.95); /* bianco elegante */
  border-radius: 1px;
}
.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}
.navbar-dark.bg-dark.is-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  background: linear-gradient(90deg, #0e1012, #15171a);
}

/* Card e elementi */
.card {
  border: 1px solid rgba(0,0,0,0.06);
}
.card .list-group-item {
  transition: background-color 0.2s ease;
}
.card .list-group-item:hover {
  background-color: var(--bg-soft);
}
.card .list-group-item.active {
  background-color: #e9f2ff;
  border-color: rgba(0,0,0,0.06);
}

/* Immagini */
img.rounded-3 {
  border-radius: 1rem !important;
}

/* Footer */
footer {
  background: #fff;
}
footer small {
  letter-spacing: 0.3px;
}

/* Sezioni */
section.hero {
  background: var(--bg-soft);
}

/* Quote elegante */
blockquote.quote {
  font-family: var(--heading-font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: #343a40;
  border-left: 4px solid #212529;
  padding-left: 1rem;
  margin: 1rem 0 0 0;
}

/* Icone brand nei bottoni */
.btn .brand-icon {
  font-size: 1rem;
  margin-right: 0.5rem;
  vertical-align: -0.125em;
}

/* Contatti: immagine in proporzione, senza crop */
.contact-card .card-img-top {
  width: 100%;
  height: auto;
  display: block;
}
/* Navbar brand animation */
.navbar .navbar-brand.brand-animate {
  display: inline-block;
  transform-origin: center;
  animation: brandShake 10s ease-in-out infinite;
  will-change: transform; /* rimosso filter per evitare dissolvenza */
}

@keyframes brandShake {
  0%, 96% {
    transform: none;
    /* filter: none; */
  }
  96.2% { transform: translateX(0.8px);  }
  96.4% { transform: translateX(-0.8px); }
  96.6% { transform: translateX(0.6px);  }
  96.8% { transform: translateX(-0.6px); }
  97.0% { transform: translateX(0.5px);  }
  97.2% { transform: translateX(-0.5px); }
  97.4% { transform: translateX(0.3px);  }
  97.6% { transform: translateX(-0.3px); }
  97.8% { transform: translateX(0);     }
  100%  { transform: none;              }
}

@media (prefers-reduced-motion: reduce) {
  .navbar .navbar-brand.brand-animate {
    animation: none;
  }
}

/* Contatti: form elegante */
.contact-form .input-group-text {
  background-color: #f1f3f5;
  border-color: rgba(0, 0, 0, 0.08);
  color: #6c757d;
}
.contact-form .form-control,
.contact-form textarea.form-control {
  border-color: rgba(0, 0, 0, 0.12);
}
.contact-form .form-control:focus,
.contact-form textarea.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.contact-card .title-icon {
  font-size: 1rem;
  vertical-align: middle;
}
/* Citazione/Recensione in home - versione delicata */
.quote-review {
  background: transparent;
  border-left-color: rgba(0, 0, 0, 0.08);
  border-left-width: 1px;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  border-radius: 0;
}
.quote-review::before { /* nasconde la grande virgoletta decorativa */
  display: none;
}
.quote-review .blockquote p {
  font-style: italic;
  color: #495057;
  margin-bottom: 0;
}
.quote-author {
  margin-top: 0.75rem;
  text-align: right;
  font-size: inherit; /* non aumentare dimensione */
  font-weight: 500; /* eleganza senza pesantezza */
  color: #495057;
}
.quote-author::before {
  content: "\2014\00A0"; /* em dash + spazio */
  color: #adb5bd;
}
.quote-author .author-name { color: inherit; }
.quote-author .author-note { color: #6c757d; font-style: italic; }
.quote-author .author-note {
  color: #6c757d; /* secondario, non dominante */
}
/* Layout: sticky footer */
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
/* Titoli di sezione: separatore sottile */
.section-title {
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px; /* lunghezza delicata */
  height: 1px; /* sottile */
  background: rgba(0, 0, 0, 0.12); /* neutro ed elegante */
  margin-top: 0.4rem;
}
/* Titolo hero elegante */
.hero-title {
  position: relative;
  display: inline-block;
}
.hero-title::after {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin: 0.35rem auto 0;
  background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0), rgba(var(--bs-primary-rgb), .35), rgba(var(--bs-primary-rgb), 0));
  border-radius: 2px;
}
/* opzionale: piccolo tratto sopra, super delicato */
.hero-title::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -0.4rem;
  width: 36px;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}
/* Card delicata per i pulsanti social sotto la foto (Contatti) */
.social-links-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  background-color: #ffffff;
}

.social-links-card .btn {
  border-radius: 0.5rem;
  font-weight: 500;
}

.social-links-card .brand-icon {
  font-size: 1rem;
}
/* Spaziatura tra i link della navbar */
.navbar .navbar-nav {
  gap: 0.45rem; /* lieve aumento distanza tra i link */
}
@media (min-width: 992px) { /* su desktop un filo in più */
  .navbar .navbar-nav {
    gap: 0.6rem;
  }
}

/* Tada più accentuato */
@keyframes tada-strong {
  from { transform: scale3d(1, 1, 1); }
  10%, 20% { transform: scale3d(0.85, 0.85, 0.85) rotate(-6deg); }
  30%, 50%, 70%, 90% { transform: scale3d(1.15, 1.15, 1.15) rotate(6deg); }
  40%, 60%, 80% { transform: scale3d(1.15, 1.15, 1.15) rotate(-6deg); }
  to { transform: scale3d(1, 1, 1); }
}
.tada-strong {
  animation-name: tada-strong;
  animation-duration: 1.15s;
  animation-iteration-count: 2; /* ora ripete due volte */
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;
}
/* Disattiva lo shake mentre Tada è attivo (senza bloccare il Tada) */
.navbar .navbar-brand.brand-animate.tada-active {
  filter: none !important;
  opacity: 1 !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .tada-strong { animation: none !important; }
}
/* Contatti: form elegante */
.contact-form .input-group-text {
  background-color: #f1f3f5;
  border-color: rgba(0, 0, 0, 0.08);
  color: #6c757d;
}
.contact-form .form-control,
.contact-form textarea.form-control {
  border-color: rgba(0, 0, 0, 0.12);
}
.contact-form .form-control:focus,
.contact-form textarea.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.contact-card .title-icon {
  font-size: 1rem;
  vertical-align: middle;
}
/* Citazione/Recensione in home - versione delicata */
.quote-review {
  background: transparent;
  border-left-color: rgba(0, 0, 0, 0.08);
  border-left-width: 1px;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  border-radius: 0;
}
.quote-review::before { /* nasconde la grande virgoletta decorativa */
  display: none;
}
.quote-review .blockquote p {
  font-style: italic;
  color: #495057;
  margin-bottom: 0;
}
.quote-author {
  margin-top: 0.75rem;
  text-align: right;
  font-size: inherit; /* non aumentare dimensione */
  font-weight: 500; /* eleganza senza pesantezza */
  color: #495057;
}
.quote-author::before {
  content: "\2014\00A0"; /* em dash + spazio */
  color: #adb5bd;
}
.quote-author .author-name { color: inherit; }
.quote-author .author-note { color: #6c757d; font-style: italic; }
.quote-author .author-note {
  color: #6c757d; /* secondario, non dominante */
}
/* Layout: sticky footer */
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
/* Titoli di sezione: separatore sottile */
.section-title {
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px; /* lunghezza delicata */
  height: 1px; /* sottile */
  background: rgba(0, 0, 0, 0.12); /* neutro ed elegante */
  margin-top: 0.4rem;
}
/* Titolo hero elegante */
.hero-title {
  position: relative;
  display: inline-block;
}
.hero-title::after {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin: 0.35rem auto 0;
  background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0), rgba(var(--bs-primary-rgb), .35), rgba(var(--bs-primary-rgb), 0));
  border-radius: 2px;
}
/* opzionale: piccolo tratto sopra, super delicato */
.hero-title::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -0.4rem;
  width: 36px;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}
/* Card delicata per i pulsanti social sotto la foto (Contatti) */
.social-links-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  background-color: #ffffff;
}

.social-links-card .btn {
  border-radius: 0.5rem;
  font-weight: 500;
}

.social-links-card .brand-icon {
  font-size: 1rem;
}
/* Spaziatura tra i link della navbar */
.navbar .navbar-nav {
  gap: 0.45rem; /* lieve aumento distanza tra i link */
}
@media (min-width: 992px) { /* su desktop un filo in più */
  .navbar .navbar-nav {
    gap: 0.6rem;
  }
}

/* Uniforma altezza tra badge WAV, SIAE e plays */
.wav-badge,
.siae-badge,
.plays-badge,
.downloads-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  line-height: 18px;
  padding: 0 0.4rem;
}
@media (min-width: 992px) {
  .wav-badge,
  .siae-badge,
  .plays-badge,
  .downloads-badge {
    height: 20px;
    line-height: 20px;
  }
}

/* Logo SIAE accanto a “WAV” nei brani */
.siae-logo {
  height: 14px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
@media (min-width: 992px) {
  .siae-logo { height: 16px; }
}

/* Testi giustificati con sillabazione (evita spazi eccessivi) */
main p,
main .lead,
blockquote.quote,
.quote-review .blockquote p {
  text-align: justify;
  text-align-last: left; /* ultima riga non giustificata */
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto; /* necessita lang="it" */
  text-wrap: pretty; /* miglior distribuzione (progressive enhancement) */
}

/* Evita stretching in liste e piccoli elementi inline */
main li { text-align: left; }

@media (max-width: 576px) {
  /* su schermi molto piccoli la giustificazione può creare "fiumi" di spazi */
  main p,
  main .lead,
  blockquote.quote,
  .quote-review .blockquote p {
    text-align: left;
    hyphens: auto; /* mantieni sillabazione per spezzare parole lunghe */
  }
}
@media (prefers-reduced-motion: reduce) {
  .tada-strong { animation: none !important; }
}
/* Contatti: form elegante */
.contact-form .input-group-text {
  background-color: #f1f3f5;
  border-color: rgba(0, 0, 0, 0.08);
  color: #6c757d;
}
.contact-form .form-control,
.contact-form textarea.form-control {
  border-color: rgba(0, 0, 0, 0.12);
}
.contact-form .form-control:focus,
.contact-form textarea.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.contact-card .title-icon {
  font-size: 1rem;
  vertical-align: middle;
}
/* Citazione/Recensione in home - versione delicata */
.quote-review {
  background: transparent;
  border-left-color: rgba(0, 0, 0, 0.08);
  border-left-width: 1px;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  border-radius: 0;
}
.quote-review::before { /* nasconde la grande virgoletta decorativa */
  display: none;
}
.quote-review .blockquote p {
  font-style: italic;
  color: #495057;
  margin-bottom: 0;
}
.quote-author {
  margin-top: 0.75rem;
  text-align: right;
  font-size: inherit; /* non aumentare dimensione */
  font-weight: 500; /* eleganza senza pesantezza */
  color: #495057;
}
.quote-author::before {
  content: "\2014\00A0"; /* em dash + spazio */
  color: #adb5bd;
}
.quote-author .author-name { color: inherit; }
.quote-author .author-note { color: #6c757d; font-style: italic; }
.quote-author .author-note {
  color: #6c757d; /* secondario, non dominante */
}
/* Layout: sticky footer */
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
/* Titoli di sezione: separatore sottile */
.section-title {
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px; /* lunghezza delicata */
  height: 1px; /* sottile */
  background: rgba(0, 0, 0, 0.12); /* neutro ed elegante */
  margin-top: 0.4rem;
}
/* Titolo hero elegante */
.hero-title {
  position: relative;
  display: inline-block;
}
.hero-title::after {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin: 0.35rem auto 0;
  background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0), rgba(var(--bs-primary-rgb), .35), rgba(var(--bs-primary-rgb), 0));
  border-radius: 2px;
}
/* opzionale: piccolo tratto sopra, super delicato */
.hero-title::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -0.4rem;
  width: 36px;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}
/* Card delicata per i pulsanti social sotto la foto (Contatti) */
.social-links-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  background-color: #ffffff;
}

.social-links-card .btn {
  border-radius: 0.5rem;
  font-weight: 500;
}

.social-links-card .brand-icon {
  font-size: 1rem;
}
/* Spaziatura tra i link della navbar */
.navbar .navbar-nav {
  gap: 0.45rem; /* lieve aumento distanza tra i link */
}
@media (min-width: 992px) { /* su desktop un filo in più */
  .navbar .navbar-nav {
    gap: 0.6rem;
  }
}
/* Logo monogramma nel brand */
.navbar-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  border-radius: 50%;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: #fff;
  background-image: linear-gradient(135deg, #0f1114, #171a1d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 2px 6px rgba(0, 0, 0, 0.35);
}
@media (min-width: 992px) {
  .navbar-brand .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }
}

/* Testi giustificati con sillabazione (evita spazi eccessivi) */
main p,
main .lead,
blockquote.quote,
.quote-review .blockquote p {
  text-align: justify;
  text-align-last: left; /* ultima riga non giustificata */
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto; /* necessita lang="it" */
  text-wrap: pretty; /* miglior distribuzione (progressive enhancement) */
}

/* Evita stretching in liste e piccoli elementi inline */
main li { text-align: left; }

@media (max-width: 576px) {
  /* su schermi molto piccoli la giustificazione può creare "fiumi" di spazi */
  main p,
  main .lead,
  blockquote.quote,
  .quote-review .blockquote p {
    text-align: left;
    hyphens: auto; /* mantieni sillabazione per spezzare parole lunghe */
  }
}
@media (prefers-reduced-motion: reduce) {
  .tada-strong { animation: none !important; }
}
/* Contatti: form elegante */
.contact-form .input-group-text {
  background-color: #f1f3f5;
  border-color: rgba(0, 0, 0, 0.08);
  color: #6c757d;
}
.contact-form .form-control,
.contact-form textarea.form-control {
  border-color: rgba(0, 0, 0, 0.12);
}
.contact-form .form-control:focus,
.contact-form textarea.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.contact-card .title-icon {
  font-size: 1rem;
  vertical-align: middle;
}
/* Citazione/Recensione in home - versione delicata */
.quote-review {
  background: transparent;
  border-left-color: rgba(0, 0, 0, 0.08);
  border-left-width: 1px;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  border-radius: 0;
}
.quote-review::before { /* nasconde la grande virgoletta decorativa */
  display: none;
}
.quote-review .blockquote p {
  font-style: italic;
  color: #495057;
  margin-bottom: 0;
}
.quote-author {
  margin-top: 0.75rem;
  text-align: right;
  font-size: inherit; /* non aumentare dimensione */
  font-weight: 500; /* eleganza senza pesantezza */
  color: #495057;
}
.quote-author::before {
  content: "\2014\00A0"; /* em dash + spazio */
  color: #adb5bd;
}
.quote-author .author-name { color: inherit; }
.quote-author .author-note { color: #6c757d; font-style: italic; }
.quote-author .author-note {
  color: #6c757d; /* secondario, non dominante */
}
/* Layout: sticky footer */
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
/* Titoli di sezione: separatore sottile */
.section-title {
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px; /* lunghezza delicata */
  height: 1px; /* sottile */
  background: rgba(0, 0, 0, 0.12); /* neutro ed elegante */
  margin-top: 0.4rem;
}
/* Titolo hero elegante */
.hero-title {
  position: relative;
  display: inline-block;
}
.hero-title::after {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin: 0.35rem auto 0;
  background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0), rgba(var(--bs-primary-rgb), .35), rgba(var(--bs-primary-rgb), 0));
  border-radius: 2px;
}
/* opzionale: piccolo tratto sopra, super delicato */
.hero-title::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -0.4rem;
  width: 36px;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}
/* Card delicata per i pulsanti social sotto la foto (Contatti) */
.social-links-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  background-color: #ffffff;
}

.social-links-card .btn {
  border-radius: 0.5rem;
  font-weight: 500;
}

.social-links-card .brand-icon {
  font-size: 1rem;
}
/* Spaziatura tra i link della navbar */
.navbar .navbar-nav {
  gap: 0.45rem; /* lieve aumento distanza tra i link */
}
@media (min-width: 992px) { /* su desktop un filo in più */
  .navbar .navbar-nav {
    gap: 0.6rem;
  }
}