/* VARIABILI PER I COLORI E FONT */
:root {
  --primary-color: #d4af37;
  --bg-color: #121212;
  --bg-card: rgba(26, 26, 26, 0.75);
  --text-color: #f5f5f5;
  --text-muted: #aaaaaa;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-name: 'Great Vibes', cursive;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  background-image: url("data:image/svg+xml,%3Csvg width='220' height='220' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 40 Q 60 10, 110 40 T 210 40' fill='none' stroke='%23d4af37' stroke-width='1' opacity='0.08'/%3E%3Cpath d='M10 140 Q 60 110, 110 140 T 210 140' fill='none' stroke='%23d4af37' stroke-width='0.7' opacity='0.06'/%3E%3Ctext x='140' y='85' fill='%23d4af37' opacity='0.075' font-size='24' font-family='serif'%3E𝄞%3C/text%3E%3Ctext x='45' y='185' fill='%23d4af37' opacity='0.065' font-size='20'%3E♪%3C/text%3E%3Ctext x='170' y='190' fill='%23d4af37' opacity='0.06' font-size='18'%3E♫%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* HEADER E MENU DI NAVIGAZIONE */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(18, 18, 18, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='24' viewBox='0 0 120 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 12 Q 30 2, 60 12 T 120 12' fill='none' stroke='%23d4af37' stroke-width='1.1' opacity='0.3'/%3E%3Cpath d='M0 16 Q 30 6, 60 16 T 120 16' fill='none' stroke='%23d4af37' stroke-width='0.7' opacity='0.2'/%3E%3C/svg%3E");
  background-repeat: repeat;
  backdrop-filter: blur(8px);
  padding: 4px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 25px rgba(212, 175, 55, 0.08);
}

.logo-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  text-decoration: none;
}

.header-logo {
  height: 125px; 
  width: auto;
  position: absolute;
  top: 50%;
  left: -4px;
  transform: translateY(-54%);
  display: block;
}

.header-icon-music {
  margin-left: 130px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-link:hover .header-icon-music {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}

nav {
  display: flex;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
  transform: translateY(-1px);
}

nav a:hover::after {
  width: 100%;
}

/* HERO SECTION */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 18, 18, 0.1), rgba(18, 18, 18, 0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  max-width: 100%;
}

.hero-content h2 {
  font-family: var(--font-body);
  font-size: 3.8rem;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 4px;
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-content p {
  font-size: 1rem; 
  color: var(--primary-color);
  margin-bottom: 25px;
  letter-spacing: 1.5px;
  font-weight: 400;
  text-shadow: 0 1px 5px rgba(0,0,0,0.6);
}

.btn-hero {
  position: relative;
  display: inline-block;
  background-color: #121212;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 10px 24px; 
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hero span {
  position: relative;
  z-index: 2;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  z-index: 1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.btn-hero:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-hero:hover {
  color: #121212;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* SEZIONI GENERICHE */
section {
  padding: 50px 0 30px; 
  background: transparent;
}

section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 22px; 
  font-size: 0.9rem;
}

.bio-section, .servizi-section, .audio-section, .gallery-section, .media-section, .repertorio-section, .didattica-section {
  background: transparent !important;
}

.bio-grid {
  display: flex;
  gap: 35px;
  align-items: center;
  margin-top: 15px; 
}

.bio-img-wrapper {
  flex: 1;
  width: 100%;
}

.bio-img-wrapper img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.bio-text {
  flex: 1.2;
}

.bio-text .lead {
  font-size: 1.05rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 12px;
}

.bio-text p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* CAROSELLO AUDIO ORIZZONTALE */
.audio-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  margin-top: 15px;
  padding-bottom: 15px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.audio-grid::-webkit-scrollbar {
  height: 6px;
}

.audio-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.audio-grid::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.audio-card {
  background: var(--bg-card);
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  min-width: 280px;
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-wrap: break-word;
}

.audio-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

.audio-card h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 6px;
}

.audio-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: break-word;
}

.custom-audio {
  width: 100%;
  outline: none;
  height: 35px;
}

.infinite-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 15px;
}

.infinite-slider::before,
.infinite-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.infinite-slider::before {
  left: 0;
  background: linear-gradient(to right, rgba(18,18,18,0.9), transparent);
}

.infinite-slider::after {
  right: 0;
  background: linear-gradient(to left, rgba(18,18,18,0.9), transparent);
}

.slider-track {
  display: flex;
  width: calc(280px * 10);
  animation: scrollGallery 30s linear infinite;
}

.slider-track:hover {
  animation-play-state: paused;
}

.slide {
  width: 280px;
  height: 185px;
  padding: 0 8px;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease;
}

.slide img.fix-contain {
  object-fit: contain;
  background-color: #0d0d0d;
}

.slide img:hover {
  transform: scale(1.03);
}

@keyframes scrollGallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-280px * 20)); }
}

/* CAROSELLO REELS DINAMICO CORRETTO (PROPORZIONE 9:16 REALE) */
.reels-carousel-wrapper {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  padding: 0 15px;
}

.reels-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 15px 5px 25px 5px;
  align-items: center;
}

.reels-track::-webkit-scrollbar {
  display: none;
}
.reels-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* RIPARATO: Annullato il vecchio padding 177% e applicata proporzione 9:16 nativa */
.video-wrapper.reel-card {
  position: relative !important;
  padding-bottom: 0 !important;
  height: auto !important;
  flex: 0 0 160px !important;
  width: 160px !important;
  aspect-ratio: 9 / 16 !important;
  scroll-snap-align: center;
  background: #000;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 0 !important;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper.reel-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.video-wrapper.reel-card video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  padding-left: 2px;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 2;
}

.video-wrapper.reel-card:hover .play-overlay {
  background: var(--primary-color);
  color: #000;
  transform: translate(-50%, -50%) scale(1.1);
}

.reel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.92));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: left;
  pointer-events: none;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

/* FRECCE PER PC */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  border-radius: 0 !important;
}

.carousel-arrow:hover {
  background: var(--primary-color);
  color: #000000;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.carousel-arrow.prev { left: -15px; }
.carousel-arrow.next { right: -15px; }

/* MODAL VIDEO SCHERMO INTERO */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}

.video-modal.active {
  display: flex;
}

.modal-content-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#modalVideo {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border: 1px solid var(--primary-color);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
  background: #000;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  color: var(--primary-color);
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 100000;
  transition: color 0.3s ease;
  line-height: 1;
}

.close-modal:hover {
  color: #ffffff;
}

.didattica-box {
  background: var(--bg-card);
  padding: 28px 32px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.didattica-box p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.didattica-box ul {
  margin: 15px 0;
  padding-left: 20px;
  color: var(--text-color);
}

.didattica-box li {
  margin-bottom: 6px;
}

.highlight-text {
  color: var(--primary-color) !important;
  font-weight: 500;
  margin-top: 15px;
}

.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-item.active {
  opacity: 1;
  transform: translateY(0);
}

.floating-buttons {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.floating-buttons.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
}

.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #fff;
  text-decoration: none;
}

.float-btn:hover {
  transform: scale(1.1);
}

.whatsapp-float {
  background-color: #25d366;
}

.whatsapp-float:hover {
  background-color: #1ebd58;
}

/* FOOTER DESKTOP OTTIMIZZATO */
footer {
  background-color: rgba(18, 18, 18, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='24' viewBox='0 0 120 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 12 Q 30 2, 60 12 T 120 12' fill='none' stroke='%23d4af37' stroke-width='1.1' opacity='0.3'/%3E%3Cpath d='M0 16 Q 30 6, 60 16 T 120 16' fill='none' stroke='%23d4af37' stroke-width='0.7' opacity='0.2'/%3E%3C/svg%3E");
  background-repeat: repeat;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  padding: 6px 30px 6px;
  color: var(--text-muted);
}

.footer-top-bar {
  display: block;
  text-align: center;
  padding: 3px 0;
  margin: -6px -30px 6px -30px;
  background: rgba(212, 175, 55, 0.08);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--primary-color);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.footer-top-bar:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #fff;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-col {
  flex: 1;
  min-width: 240px;
  font-size: 0.78rem;
}

.footer-col p {
  margin: 1px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-col a {
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col-left .footer-social-link,
.footer-col-left .footer-pec,
.footer-col-left .footer-pec a,
.footer-col-mid p,
.footer-col-mid p strong,
.footer-col-mid p a {
  color: #ffffff !important;
  font-weight: bold !important;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-social-link:hover {
  color: var(--primary-color) !important;
}

.footer-col-mid {
  text-align: center;
}

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

.footer-right-desktop {
  display: block;
}

.footer-right-mobile {
  display: none;
}

.footer-right-title {
  color: var(--primary-color) !important;
  font-size: 0.85rem !important;
  font-weight: bold !important;
  margin-bottom: 2px !important;
  font-family: var(--font-heading);
}

.footer-gold-link {
  color: var(--primary-color) !important;
  font-weight: bold !important;
  font-size: 0.75rem;
}

.footer-bottom-copyright {
  text-align: right;
  font-size: 0.68rem;
  color: #777777;
  margin-top: 2px;
  padding-top: 2px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  width: 100%;
}

/* MEDIA QUERY SMARTPHONE */
@media (max-width: 768px) {
  header {
    padding: 1px 4px;
    flex-direction: column;
    gap: 0px;
  }

  .logo-link {
    height: auto;
    justify-content: center;
    margin-bottom: -4px;
  }

  .header-logo {
    height: 95px;
    position: static;
    transform: none;
    margin-left: 0;
  }

  .header-icon-music {
    display: none;
  }
  
  nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  nav::-webkit-scrollbar {
    display: none;
  }
  
  nav a {
    margin-left: 0;
    font-size: 0.58rem;
    white-space: nowrap;
  }
  
  .hero {
    height: 60vh;
  }

  .hero-content h2 {
    font-size: 2.1rem;
    letter-spacing: 2px;
  }
  
  .hero-content p {
    font-size: 0.8rem;
  }

  .bio-grid {
    flex-direction: column;
    gap: 20px;
  }
  
  .audio-grid {
    gap: 12px;
    padding-bottom: 8px;
  }
  .audio-grid::-webkit-scrollbar {
    display: none;
  }
  .audio-card {
    min-width: 220px;
    flex: 0 0 220px;
  }

  .carousel-arrow {
    display: none; /* Touch swipe */
  }

  .video-wrapper.reel-card {
    flex: 0 0 130px !important;
    width: 130px !important;
  }

  .didattica-box {
    padding: 18px 20px;
  }

  footer {
    padding: 6px 10px 4px;
  }

  .footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
  }

  .footer-col {
    min-width: unset !important;
    flex: 1;
    font-size: 0.62rem;
    text-align: left !important;
  }

  .footer-col p {
    font-size: 0.62rem;
    margin: 1px 0;
  }

  .footer-social-link {
    justify-content: flex-start;
    font-size: 0.62rem;
    gap: 4px;
    margin-bottom: 2px;
    color: #ffffff !important;
    font-weight: bold !important;
  }

  .footer-pec, .footer-pec a {
    font-size: 0.58rem;
    margin-top: 3px;
    color: #ffffff !important;
    font-weight: bold !important;
  }

  .footer-col-mid {
    padding-left: 18px;
    text-align: left !important;
  }

  .footer-col-mid p, 
  .footer-col-mid p strong, 
  .footer-col-mid p a {
    color: #ffffff !important;
    font-weight: bold !important;
  }

  .footer-col.footer-col-right {
    text-align: right !important;
  }

  .footer-right-desktop {
    display: none;
  }

  .footer-right-mobile {
    display: block;
  }

  .footer-col-right p {
    margin: 2px 0;
  }

  .footer-gold-link {
    color: var(--primary-color) !important;
    font-weight: bold !important;
    font-size: 0.62rem;
  }

  .footer-bottom-copyright {
    text-align: right;
    font-size: 0.55rem;
    margin-top: 4px;
    padding-top: 3px;
    color: #777777;
  }
}

/* PAGINA RECENSIONI DEDICATA */
.header-recensioni {
  padding: 120px 0 30px;
  text-align: center;
  position: relative;
}

.header-recensioni h1 {
  color: var(--primary-color);
  font-size: 2.2rem;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  margin: 0;
}

.container-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.btn-back {
  position: absolute;
  left: 20px;
  top: -30px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.btn-back:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--primary-color);
}

.container-recensioni {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.sezione-form {
  background: var(--bg-card);
  padding: 35px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.sezione-form h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.sezione-form p {
  color: var(--text-muted);
  margin-bottom: 25px;
}

.gruppo-input {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.gruppo-input label {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gruppo-input input,
.gruppo-input select,
.gruppo-input textarea {
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  color: var(--text-color);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.gruppo-input select option {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.gruppo-input input:focus,
.gruppo-input select:focus,
.gruppo-input textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.btn-invia {
  background-color: #121212;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 10px;
}

.btn-invia:hover {
  background-color: var(--primary-color);
  color: #121212;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.sezione-bacheca h2 {
  margin-bottom: 30px;
  color: var(--primary-color);
}

.griglia-recensioni {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.card-recensione {
  background: var(--bg-card);
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, border-color 0.3s ease;
  overflow-wrap: break-word;
}

.card-recensione:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.nome-utente {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.stelle {
  font-size: 0.9rem;
}

.testo-recensione {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 15px;
  overflow-wrap: break-word;
}

.data-recensione {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  display: block;
  text-align: right;
}

/* POPUP MODALE PERSONALIZZATO RECENSIONI */
.custom-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: var(--bg-card);
  border: 1px solid var(--primary-color);
  border-radius: 12px;
  padding: 30px 40px;
  text-align: center;
  max-width: 400px;
  width: 85%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.25);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.custom-popup.active .popup-content {
  transform: translateY(0);
}

.popup-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 12px;
}

.popup-content p {
  color: var(--text-color);
  font-size: 1.05rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.btn-popup {
  background: #121212;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 10px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-popup:hover {
  background: var(--primary-color);
  color: #121212;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* PAGINA REPERTORIO COMPLETO & PANNELLO ADMIN */
.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.track-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.track-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.track-info h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin: 0 0 6px 0;
  font-family: var(--font-heading);
}

.track-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: var(--primary-color);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}