/* ============================================
   Atlante Music — style.css
============================================ */

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

    :root {
      --black: #0a0a0a;
      --deep: #111118;
      --gold: #bb15ec;
      --gold-light: #df66ff;
      --cream: #f5efe6;
      --muted: #6b6b78;
      --white: #ffffff;
      --card-bg: #16161f;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--black);
      color: var(--cream);
      font-family: 'DM Sans', sans-serif;
      overflow-x: hidden;
      cursor: none;
    }

    /* Custom cursor */
    .cursor {
      position: fixed; top: 0; left: 0; z-index: 9999;
      pointer-events: none;
    }
    .cursor-dot {
      width: 8px; height: 8px; background: var(--gold);
      border-radius: 50%; position: absolute;
      transform: translate(-50%, -50%);
      transition: transform .1s;
    }
    .cursor-ring {
      width: 36px; height: 36px;
      border: 1.5px solid var(--gold-light);
      border-radius: 50%; position: absolute;
      transform: translate(-50%, -50%);
      transition: transform .18s ease, width .2s, height .2s, opacity .2s;
      opacity: .6;
    }

    /* ── NAV ── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; align-items: center; justify-content: space-between;
      padding: 1.4rem 3rem;
      background: transparent;
      transition: background .4s, padding .4s;
    }
    nav.scrolled {
      background: rgba(10,10,10,.94);
      backdrop-filter: blur(14px);
      padding: 1rem 3rem;
      border-bottom: 1px solid rgba(187,21,236,.18);
    }
    nav.menu-open {
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
    .nav-logo {
      font-family: 'Playfair Display', serif;
      font-size: 1.5rem; font-weight: 900; letter-spacing: .04em;
      color: var(--white);
    }
    .nav-logo span { color: var(--gold); }
    .nav-links { display: flex; gap: 2.2rem; list-style: none; }
    .nav-links a {
      color: var(--cream); text-decoration: none;
      font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
      font-weight: 500; position: relative; padding-bottom: 4px;
    }
    .nav-links a::after {
      content: ''; position: absolute; bottom: 0; left: 0;
      width: 0; height: 1px; background: var(--gold);
      transition: width .3s ease;
    }
    .nav-links a:hover::after { width: 100%; }
    .nav-cta {
      background: var(--gold); color: var(--white) !important;
      padding: .5rem 1.3rem; border-radius: 2px;
      font-weight: 700 !important; transition: background .2s !important;
    }
    .nav-cta::after { display: none !important; }
    .nav-cta:hover { background: var(--gold-light) !important; }

    /* ── HERO ── */
    #hero {
      min-height: 100vh;
      display: flex; align-items: center;
      position: relative; overflow: hidden;
      padding: 0 3rem;
    }
    .hero-bg {
      position: absolute; inset: 0;
      background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(187,21,236,.12) 0%, transparent 70%),
                  radial-gradient(ellipse 40% 40% at 20% 80%, rgba(187,21,236,.07) 0%, transparent 60%);
    }
    
    .vinyl {
      position: absolute; 
      right: -15vw; /* Spostato leggermente più a destra visto l'ingrandimento */
      top: 50%;
      transform: translateY(-50%);
      width: min(110vw, 1280px); /* Ingrandito del doppio */
      aspect-ratio: 1;
      background: url('../assets/Elemento1.svg') center/contain no-repeat;
      animation: spin 40s linear infinite; /* Rallentato da 18s a 40s */
      opacity: .85;
    }
    @keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

    .hero-content { position: relative; z-index: 2; max-width: 600px; }
    .hero-tag {
      display: inline-block;
      font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
      color: var(--gold); border: 1px solid rgba(187,21,236,.4);
      padding: .35rem .9rem; border-radius: 2px; margin-bottom: 1.6rem;
      animation: fadeUp .8s .2s both;
    }
    .hero-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(3rem, 7vw, 6rem);
      line-height: 1.05; font-weight: 900;
      animation: fadeUp .8s .35s both;
    }
    .hero-title em { font-style: italic; color: var(--gold); }
    .hero-sub {
      font-size: 1.05rem; color: rgba(245,239,230,.65);
      margin: 1.4rem 0 2.4rem; line-height: 1.75;
      font-weight: 300; max-width: 440px;
      animation: fadeUp .8s .5s both;
    }
    .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp .8s .65s both; }
    .btn-primary {
      background: var(--gold); color: var(--white);
      padding: .85rem 2rem; border: none; border-radius: 2px;
      font-size: .88rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
      cursor: none; transition: background .2s, transform .2s;
      text-decoration: none; display: inline-block;
    }
    .btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
    .btn-outline {
      background: transparent; color: var(--cream);
      padding: .85rem 2rem; border: 1px solid rgba(245,239,230,.3);
      border-radius: 2px; font-size: .88rem; font-weight: 500;
      letter-spacing: .08em; text-transform: uppercase;
      cursor: none; transition: border-color .2s, color .2s, transform .2s;
      text-decoration: none; display: inline-block;
    }
    .btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

    /* scroll indicator */
    .scroll-hint {
      position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
      display: flex; flex-direction: column; align-items: center; gap: .5rem;
      font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
      animation: fadeIn 1.2s 1.2s both;
    }
    .scroll-line {
      width: 1px; height: 50px; background: linear-gradient(to bottom, var(--gold), transparent);
      animation: scrollPulse 1.8s ease-in-out infinite;
    }
    @keyframes scrollPulse { 0%,100%{opacity:.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.1)} }
    @keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
    @keyframes fadeIn { from{opacity:0} to{opacity:1} }

    /* ── SECTIONS COMMON ── */
    section { padding: 7rem 3rem; }
    .section-label {
      font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
      color: var(--gold); display: flex; align-items: center; gap: .8rem;
      margin-bottom: 1rem;
    }
    .section-label::before {
      content: ''; display: block; width: 32px; height: 1px; background: var(--gold);
    }
    .section-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2rem, 4vw, 3.2rem);
      line-height: 1.15; font-weight: 900; margin-bottom: 1.2rem;
    }
    .section-title em { font-style: italic; color: var(--gold); }

    /* ── ABOUT ── */
    #about { background: var(--deep); }
    .about-grid {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 5rem; align-items: center; max-width: 1100px; margin: 0 auto;
    }
    .about-text p {
      color: rgba(245,239,230,.65); line-height: 1.85; margin-bottom: 1rem;
      font-weight: 300; font-size: 1.02rem;
    }
    .about-stats {
      display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem;
    }
    .stat-box { border-left: 2px solid var(--gold); padding-left: 1.2rem; }
    .stat-num {
      font-family: 'Playfair Display', serif;
      font-size: 2.8rem; font-weight: 900; color: var(--gold-light);
      line-height: 1;
    }
    .stat-label { font-size: .8rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

    .about-visual {
      position: relative; display: flex; align-items: center; justify-content: center;
    }
    .music-score {
      width: 100%; background: var(--card-bg);
      border: 1px solid rgba(245,239,230,.15); border-radius: 4px;
      padding: 2.5rem; position: relative; overflow: hidden;
    }
    .staff-line {
      width: 100%; height: 1px; background: rgba(245,239,230,.25); margin: 10px 0;
      position: relative;
    }
    .note {
      position: absolute; width: 14px; height: 14px;
      border-radius: 50%; background: var(--gold-light);
      transform: translateY(-50%);
    }
    .note-stem {
      position: absolute; width: 1.5px; height: 28px; background: var(--cream);
    }
    .clef {
      font-size: 5rem; line-height: 1; color: var(--gold-light); margin-right: 1rem; float: left;
      font-family: serif;
    }
    .score-lines { margin-left: 4rem; }
    .floating-note {
      position: absolute; font-size: 1.8rem; color: var(--gold-light);
      animation: floatNote 4s ease-in-out infinite;
      opacity: .4;
    }
    @keyframes floatNote {
      0%,100%{transform:translateY(0) rotate(-5deg);opacity:.4}
      50%{transform:translateY(-18px) rotate(5deg);opacity:.7}
    }

    /* ── CORSI ── */
    #corsi { background: var(--black); }
    .corsi-header { max-width: 1100px; margin: 0 auto 3.5rem; }
    .courses-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1.5px; max-width: 1100px; margin: 0 auto;
      border: 1.5px solid rgba(187,21,236,.12);
    }
    .course-card {
      background: var(--card-bg); padding: 2.5rem;
      border: 1px solid rgba(187,21,236,.08);
      position: relative; overflow: hidden;
      transition: background .3s;
    }
    .course-card::before {
      content: ''; position: absolute; top: 0; left: 0;
      width: 3px; height: 0; background: var(--gold);
      transition: height .35s ease;
    }
    .course-card:hover { background: #1c1c28; }
    .course-card:hover::before { height: 100%; }
    .course-icon {
      font-size: 2.4rem; margin-bottom: 1.2rem; display: block;
      filter: drop-shadow(0 0 8px rgba(187,21,236,.4));
      transition: transform .3s;
    }
    .course-card:hover .course-icon { transform: scale(1.1) rotate(-4deg); }
    .course-name {
      font-family: 'Playfair Display', serif;
      font-size: 1.35rem; font-weight: 700; margin-bottom: .6rem;
    }
    .course-desc { color: var(--muted); font-size: .9rem; line-height: 1.7; }
    .course-level {
      display: inline-block; margin-top: 1.2rem;
      font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
      color: var(--gold); border: 1px solid rgba(187,21,236,.35); padding: .25rem .7rem;
      border-radius: 2px;
    }

    /* ── GALLERY ── */
    #GALLERY { background: var(--deep); }
    .strumenti-inner { max-width: 1200px; margin: 0 auto; }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-top: 3rem;
    }
    @media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
    @media (max-width: 680px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

    .gallery-item {
      position: relative;
      aspect-ratio: 1080 / 1350;
      overflow: hidden;
      border-radius: 3px;
      cursor: none;
      background: var(--card-bg);
      border: 1px solid rgba(187,21,236,.12);
      transition: transform .35s ease, border-color .3s;
    }
    .gallery-item:hover { transform: translateY(-5px) scale(1.01); border-color: var(--gold); }
    .gallery-item img {
      width: 100%; height: 100%;
      object-fit: cover;
      display: block;
      transition: transform .5s ease;
    }
    .gallery-item:hover img { transform: scale(1.06); }
    .gallery-item .gallery-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(10,10,10,.75) 0%, transparent 55%);
      opacity: 0; transition: opacity .3s;
      display: flex; align-items: flex-end; padding: 1.2rem 1rem;
    }
    .gallery-item:hover .gallery-overlay { opacity: 1; }
    .gallery-overlay span {
      color: var(--white); font-size: .82rem; letter-spacing: .1em;
      text-transform: uppercase; font-weight: 500;
    }

    /* Lightbox */
    .gallery-lightbox {
      position: fixed; inset: 0; z-index: 9000;
      background: rgba(5,5,8,.95);
      display: flex; align-items: center; justify-content: center;
      opacity: 0; pointer-events: none;
      transition: opacity .3s;
    }
    .gallery-lightbox.active { opacity: 1; pointer-events: all; }
    .gallery-lightbox img {
      max-height: 90vh; max-width: 90vw;
      object-fit: contain; border-radius: 3px;
      box-shadow: 0 0 80px rgba(187,21,236,.25);
    }
    .gallery-lightbox-close {
      position: absolute; top: 1.5rem; right: 2rem;
      font-size: 2rem; color: var(--cream);
      cursor: none; background: none; border: none; line-height: 1;
      opacity: .7; transition: opacity .2s;
    }
    .gallery-lightbox-close:hover { opacity: 1; }
    .gallery-lightbox-prev,
    .gallery-lightbox-next {
      position: absolute; top: 50%; transform: translateY(-50%);
      background: rgba(187,21,236,.18); border: 1px solid rgba(187,21,236,.3);
      color: var(--cream); font-size: 1.4rem;
      width: 48px; height: 48px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: none; transition: background .2s;
    }
    .gallery-lightbox-prev:hover,
    .gallery-lightbox-next:hover { background: rgba(187,21,236,.45); }
    .gallery-lightbox-prev { left: 1.5rem; }
    .gallery-lightbox-next { right: 1.5rem; }

    /* ── PERCHÉ NOI ── */
    #perche { background: var(--black); }
    .perche-inner { max-width: 1100px; margin: 0 auto; }
    .features-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2.5rem; margin-top: 3rem;
    }
    .feature { display: flex; gap: 1.2rem; align-items: flex-start; }
    .feature-num {
      font-family: 'Playfair Display', serif;
      font-size: 2.5rem; font-weight: 900; color: rgba(187,21,236,.2);
      line-height: 1; flex-shrink: 0; min-width: 2.5rem;
    }
    .feature-body h3 { font-size: 1.1rem; margin-bottom: .5rem; font-weight: 600; }
    .feature-body p { color: var(--muted); font-size: .9rem; line-height: 1.7; }

    /* ── TESTIMONIALS ── */
    #testimonianze { background: var(--deep); }
    .testi-inner { max-width: 1100px; margin: 0 auto; }
    .testi-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 1.5rem; margin-top: 3rem;
    }
    .testi-card {
      background: var(--card-bg); border: 1px solid rgba(187,21,236,.1);
      border-radius: 4px; padding: 2rem;
    }
    .stars { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: .1em; }
    .testi-quote { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.2rem; }
    .testi-author { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
	
/* --- Stile extra per Elemento1 in Testimonianze --- */
#testimonianze {
  position: relative; /* Necessario per contenere il disco */
  overflow: hidden;    /* Evita che il disco esca dai bordi della sezione */
}

.vinyl-testi {
  position: absolute;
  top: 50%;
  right: -15vw;        /* Lo posiziona a sinistra */
  transform: translateY(-50%);
  width: 45vw;        /* Dimensione bilanciata */
  aspect-ratio: 1;
  background: url('../assets/Elemento1.svg') center/contain no-repeat;
  animation: spin 60s linear infinite; /* Più lento per non distrarre */
  opacity: 0.40;      /* Molto leggero per non disturbare la lettura delle scuse */
  z-index: 0;         /* Sotto il testo */
  pointer-events: none;
}

/* Adattamento per mobile */
@media (max-width: 900px) {
  .vinyl-testi {
    width: 80vw;
    right: -40vw;
    opacity: 0.40;
  }
}

.vinyl-segno {
  position: absolute;
  top: 5%;
  right: -15vw;        /* Lo posiziona a sinistra */
  transform: translateY(-50%);
  width: 25vw;        /* Dimensione bilanciata */
  aspect-ratio: 1;
  background: url('../assets/elemento2.png') center/contain no-repeat;
  /* animation: spin 60s linear infinite; /* Più lento per non distrarre */
  opacity: 0.40;      /* Molto leggero per non disturbare la lettura delle scuse */
  z-index: 0;         /* Sotto il testo */
  pointer-events: none;
}

/* Adattamento per mobile */
@media (max-width: 900px) {
  .vinyl-segno {
   top: -30%;
    width: 30vw;
    right: -10vw;
    opacity: 0.40;
  }
}




    /* ── CONTATTI ── */
    #contatti { background: var(--black); }
    .contatti-inner {
      max-width: 1100px; margin: 0 auto;
      display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
    }
    .contact-info { }
    .contact-info p { color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; font-size: .95rem; }
    .contact-item {
      display: flex; align-items: center; gap: 1rem;
      padding: 1rem 0; border-bottom: 1px solid rgba(245,239,230,.07);
    }
    .contact-item .icon { font-size: 1.3rem; width: 36px; text-align: center; }
    .contact-item .info { font-size: .9rem; }
    .contact-item .info strong { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: .2rem; }

    .contact-form { }
    .form-group { margin-bottom: 1.2rem; }
    .form-group label { display: block; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
    .form-group input,
    .form-group textarea,
    .form-group select {
      width: 100%; background: var(--card-bg);
      border: 1px solid rgba(187,21,236,.2); border-radius: 2px;
      padding: .85rem 1rem; color: var(--cream);
      font-family: 'DM Sans', sans-serif; font-size: .9rem;
      transition: border-color .2s;
      cursor: none;
    }
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
      outline: none; border-color: var(--gold);
    }
    .form-group textarea { resize: vertical; min-height: 130px; }
    .form-group select option { background: var(--card-bg); }
    .form-success {
      display: none; text-align: center; padding: 2rem;
      font-family: 'Playfair Display', serif; font-style: italic;
      font-size: 1.2rem; color: var(--gold);
    }

    /* ── ORARI BAR ── */
    .orari-bar {
      background: var(--gold); padding: 1rem 3rem;
      display: flex; align-items: center; justify-content: center;
      gap: 3rem; flex-wrap: wrap;
    }
    .orari-bar span { color: var(--white); font-size: .85rem; font-weight: 500; }
    .orari-bar strong { font-weight: 700; }

    /* ── FOOTER ── */
    footer {
      background: var(--deep); padding: 2.5rem 3rem;
      border-top: 1px solid rgba(187,21,236,.15);
      display: flex; align-items: center; justify-content: space-between;
      flex-wrap: wrap; gap: 1rem;
    }
    .footer-logo {
      font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 900;
    }
    .footer-logo span { color: var(--gold); }
    footer p { color: var(--muted); font-size: .8rem; }
    .social-links { display: flex; gap: 1rem; }
    .social-links a {
      width: 36px; height: 36px; border: 1px solid rgba(187,21,236,.3);
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      text-decoration: none; font-size: .9rem;
      transition: border-color .2s, background .2s;
    }
    .social-links a:hover { border-color: var(--gold); background: rgba(187,21,236,.1); }

    /* ── REVEAL ANIMATIONS ── */
    .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    /* hamburger for mobile */
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 200; }
    .hamburger span { display: block; width: 24px; height: 1.5px; background: var(--cream); transition: .3s; }
    .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    @media (max-width: 900px) {
      nav { padding: 1.2rem 1.5rem; }
      .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(10,10,10,.97);
        backdrop-filter: blur(16px);
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        z-index: 150;
      }
      .nav-links.open { display: flex; }
      .nav-links a { font-size: 1.2rem; letter-spacing: .18em; }
      .hamburger { display: flex; }
      #hero { padding: 6rem 1.5rem 3rem; }
      .vinyl { width: 90vw; opacity: .50; right: -30vw; } /* Adattato per mobile */
      .about-grid, .contatti-inner { grid-template-columns: 1fr; gap: 2.5rem; }
      section { padding: 5rem 1.5rem; }
      .orari-bar { padding: 1rem; gap: 1.5rem; }
      footer { flex-direction: column; text-align: center; }
    }