:root { 
  --primary-color: #00e1ff; 
  --secondary-color: #9d4edd; 
  --accent-color: #ff3366;
  --bg-dark: #0a0a0c;
  --card-bg: rgba(18, 18, 24, 0.88);
  --text-gray: #a1a1aa; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  font-family: 'Montserrat', sans-serif; 
  color: #f4f4f5; 
  background-color: var(--bg-dark); 
  font-size: 16px; 
  line-height: 1.6;
  overflow-x: hidden;
}

/* GLOW EFFECTS */
.glow-logo {
  box-shadow: 0 0 20px var(--primary-color), 0 0 40px rgba(0, 225, 255, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.glow-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--primary-color), 0 0 60px rgba(0, 225, 255, 0.6);
}

.glow-btn-blue {
  box-shadow: 0 0 15px rgba(0, 225, 255, 0.4);
  transition: all 0.3s;
}
.glow-btn-blue:hover {
  box-shadow: 0 0 30px rgba(0, 225, 255, 0.8);
  transform: translateY(-2px);
}

.glow-btn-purple {
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.4);
  transition: all 0.3s;
}
.glow-btn-purple:hover {
  box-shadow: 0 0 30px rgba(157, 78, 221, 0.8);
  transform: translateY(-2px);
}

.glow-btn-pink {
  box-shadow: 0 0 15px rgba(255, 51, 102, 0.4);
  transition: all 0.3s;
}
.glow-btn-pink:hover {
  box-shadow: 0 0 30px rgba(255, 51, 102, 0.8);
  transform: scale(1.04);
}

.glow-card:hover {
  box-shadow: 0 0 25px var(--btn-color, var(--primary-color));
  border-color: var(--btn-color, var(--primary-color)) !important;
}

/* OVERLAY AUDIO AVVIO */
#audio-start-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.92); z-index: 100000;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px);
}
#audio-start-content {
  background: rgba(0, 225, 255, 0.1); border: 2px solid var(--primary-color);
  padding: 35px; border-radius: 20px; text-align: center; max-width: 450px; margin: 20px;
  box-shadow: 0 0 40px rgba(0, 225, 255, 0.3);
}
#audio-start-content h2 { color: var(--primary-color); margin-bottom: 12px; font-size: 1.5em; }
#start-audio-btn {
  background: var(--primary-color); color: #000; border: none;
  padding: 12px 25px; border-radius: 30px; font-weight: bold; cursor: pointer; margin-top: 15px;
  box-shadow: 0 0 15px var(--primary-color);
}

/* VIDEO BACKGROUND PERFETTAMENTE POSIZIONATO */
#background-video { 
  position: fixed; 
  top: 0; left: 0; 
  width: 100%; height: 100%; 
  z-index: -100; 
  object-fit: cover; 
  pointer-events: none;
  transform: translateZ(0);
}

#video-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(8, 8, 12, 0.82);
  z-index: -99;
  pointer-events: none;
}

/* SITE HEADER */
.site-header {
  position: sticky; top: 0; width: 100%;
  background: rgba(10, 10, 14, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1); z-index: 9999; padding: 12px 0;
}
.header-container {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo-group { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header-logo { width: 42px; height: 40px; border-radius: 50%; border: 2px solid var(--primary-color); }
.brand-name { font-weight: 800; color: #fff; font-size: 1.1em; }

.nav-menu { display: flex; gap: 20px; }
.nav-menu a { color: #ccc; text-decoration: none; font-weight: 500; font-size: 0.9em; transition: 0.2s; }
.nav-menu a:hover { color: var(--primary-color); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-audio-toggle {
  background: rgba(255,255,255,0.1); border: 1px solid var(--primary-color);
  color: var(--primary-color); width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
}
.btn-area-riservata {
  background: linear-gradient(135deg, var(--accent-color), #ff0055);
  color: #fff; text-decoration: none; padding: 8px 18px; border-radius: 20px;
  font-weight: 700; font-size: 0.85em;
}

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

/* HERO SECTION */
.hero-section {
  background: var(--card-bg); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px; padding: 40px; margin-bottom: 40px; text-align: left;
}
.hero-header { display: flex; align-items: center; gap: 25px; margin-bottom: 25px; flex-wrap: wrap; }
.profile-logo { width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--primary-color); }
.hero-header h1 { font-size: 2.2em; font-weight: 800; color: #fff; }
.hero-subtitle { color: var(--primary-color); font-weight: 600; }
.bio-text { font-size: 1.02em; color: #e4e4e7; display: flex; flex-direction: column; gap: 14px; }
.harvard-cite { font-size: 0.88em; color: var(--text-gray); border-left: 3px solid var(--primary-color); padding-left: 12px; }

.hero-actions { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.btn-action {
  padding: 14px 26px; border-radius: 30px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: none;
}
.btn-primary { background: linear-gradient(135deg, var(--primary-color), #0088ff); color: #000; }
.btn-secondary { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.2); }

/* STRISCIA ANIMATA MARQUEE TICKER */
.marquee-section { margin-bottom: 50px; overflow: hidden; }
.marquee-container { position: relative; width: 100%; overflow: hidden; padding: 10px 0; }
.marquee-track {
  display: flex; gap: 20px; width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card { background: var(--card-bg); padding: 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); width: 300px; text-align: left; flex-shrink: 0; white-space: normal; }
.stars { color: #ffb703; font-size: 1.1em; margin-bottom: 8px; }
.review-card p { font-size: 0.88em; color: #ddd; font-style: italic; }
.author { display: block; font-size: 0.8em; color: var(--primary-color); font-weight: 600; margin-top: 10px; }

/* DISCOGRAFIA */
.section-title { font-size: 1.6em; font-weight: 800; color: #fff; text-align: left; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.section-title i { color: var(--secondary-color); }
.section-desc { text-align: left; color: var(--text-gray); margin-bottom: 20px; font-size: 0.9em; }

.discography-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 50px; }
.album-card { background: var(--card-bg); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 18px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; }
.album-cover-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.album-card-title { font-size: 1.1em; font-weight: 700; color: #fff; }
.album-card-count { font-size: 0.8em; color: var(--primary-color); margin-bottom: 12px; }
.album-actions-group { display: flex; flex-direction: column; gap: 8px; }
.album-btn { width: 100%; padding: 10px; border-radius: 10px; font-weight: 600; cursor: pointer; border: none; font-size: 0.85em; display: flex; align-items: center; justify-content: center; gap: 6px; }
.album-btn-playall { background: var(--primary-color); color: #000; box-shadow: 0 0 10px var(--primary-color); }
.album-btn-view { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.2); }

/* BENTO GRID PER ECOSISTEMA SERVIZI */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 50px; }
.bento-card { background: var(--card-bg); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 22px; text-align: left; text-decoration: none; color: #fff; transition: all 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; }
.bento-icon { font-size: 1.8em; color: var(--btn-color, var(--primary-color)); margin-bottom: 12px; }
.bento-title { font-size: 1.05em; font-weight: 700; margin-bottom: 6px; }
.bento-desc { font-size: 0.82em; color: var(--text-gray); }

/* FAQ ACCORDION */
.faq-section { margin-bottom: 50px; text-align: left; }
.faq-accordion { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.faq-item { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 14px 18px; cursor: pointer; }
.faq-item summary { font-weight: 700; color: #fff; outline: none; }
.faq-item p { margin-top: 10px; font-size: 0.9em; color: var(--text-gray); }

/* CONTACT */
.contact-section { background: var(--card-bg); padding: 35px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); text-align: left; margin-bottom: 50px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; max-width: 600px; margin-top: 20px; }
.contact-form input, .contact-form textarea { padding: 12px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; color: #fff; outline: none; }

/* PLAYER BAR PER ALBUM INTERO */
.album-player-bar {
  position: fixed; bottom: 0; left: 0; width: 100%; background: #121218;
  border-top: 2px solid var(--primary-color); padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; z-index: 99998;
  box-shadow: 0 -5px 25px rgba(0, 225, 255, 0.3);
}
.player-info { display: flex; align-items: center; gap: 12px; text-align: left; }
.player-info i { color: var(--primary-color); font-size: 1.5em; }
.player-title { font-weight: 700; font-size: 0.9em; color: #fff; }
.player-song { font-size: 0.8em; color: var(--primary-color); }
.player-controls { display: flex; align-items: center; gap: 15px; }
.player-controls button { background: none; border: none; color: #fff; font-size: 1.2em; cursor: pointer; }

/* CHATBOT SPOSTATO IN ALTO PER NON COPRIRE IL PLAYER */
#chatbot-window-wrapper { 
  position: fixed; 
  bottom: 85px; /* Spostato in alto: lascia spazio libero al player sotto */
  right: 20px; 
  width: 350px; 
  height: 480px; 
  background: #121218; 
  border: 2px solid var(--primary-color); 
  border-radius: 20px; 
  z-index: 99999; 
  display: flex; 
  flex-direction: column; 
  overflow: hidden; 
  box-shadow: 0 0 30px rgba(0, 225, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CHATBOT CHIUSO (PILLOLA ELEGANTE) */
#chatbot-window-wrapper.collapsed { 
  height: 52px; 
  width: 280px; 
  border-radius: 26px;
  border-color: var(--secondary-color);
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
}

/* PLAYER AUDIO COMPATTO IN BASSO */
.album-player-bar {
  position: fixed; 
  bottom: 0; left: 0; 
  width: 100%; 
  height: 60px; /* Compatto e sottile */
  background: rgba(14, 14, 20, 0.96);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--primary-color); 
  padding: 8px 20px;
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  z-index: 99990;
  box-shadow: 0 -5px 20px rgba(0, 225, 255, 0.3);
}

.player-controls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1em;
  cursor: pointer;
  padding: 5px 8px;
  transition: color 0.2s;
}

.player-controls button:hover {
  color: var(--primary-color);
}

.chatbot-header { 
  background: linear-gradient(135deg, #181824, #004466); 
  padding: 10px 16px; 
  display: flex; align-items: center; gap: 10px; cursor: pointer; 
  border-bottom: 1px solid rgba(255,255,255,0.1);
  height: 52px;
}

.chatbot-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--primary-color); object-fit: cover; flex-shrink: 0; }
.chatbot-header-text { flex-grow: 1; text-align: left; overflow: hidden; white-space: nowrap; }
.chatbot-header-name { font-weight: 700; font-size: 0.88em; color: #fff; text-overflow: ellipsis; overflow: hidden; }
.chatbot-status { font-size: 0.7em; color: #39ff14; display: flex; align-items: center; gap: 4px; }
.chatbot-messages { flex-grow: 1; padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; background: #0c0c10; text-align: left; }
.msg { padding: 8px 12px; border-radius: 12px; max-width: 85%; font-size: 0.85em; }
.msg.bot { background: rgba(0,225,255,0.12); border: 1px solid rgba(0,225,255,0.3); color: #fff; align-self: flex-start; }
.msg.user { background: var(--secondary-color); color: #fff; align-self: flex-end; }
.chat-chip { display: inline-block; background: rgba(255,255,255,0.08); border: 1px solid var(--primary-color); color: var(--primary-color); padding: 4px 10px; border-radius: 15px; font-size: 0.75em; margin-top: 5px; cursor: pointer; }
.chatbot-input-bar { padding: 8px; background: #181820; display: flex; gap: 6px; }
.chatbot-input-bar input { flex-grow: 1; background: #000; border: 1px solid #333; border-radius: 15px; padding: 6px 12px; color: #fff; }
.chatbot-input-bar button { background: var(--primary-color); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.88); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; z-index: 100000; padding: 20px; }
.modal-content { background: #14141a; padding: 25px; border-radius: 20px; width: 100%; max-width: 600px; max-height: 85vh; overflow-y: auto; text-align: left; border: 1px solid rgba(255,255,255,0.15); position: relative; }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 1.5em; color: #aaa; cursor: pointer; }
.song-item { display: flex; align-items: center; justify-content: space-between; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.play-btn-circle { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--primary-color); color: var(--primary-color); background: none; cursor: pointer; }

footer { padding: 30px 20px; border-top: 1px solid rgba(255,255,255,0.08); background: rgba(5,5,8,0.9); font-size: 0.8em; color: #71717a; text-align: left; }
.footer-container { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }

@media (max-width: 768px) {
  .nav-menu { display: none; }
  #chatbot-window-wrapper { right: 10px; bottom: 10px; }
}
