:root {
  --bg: #0d0f14;
  --card: #151925;
  --accent: #4da3ff;
  --accent2: #7cffb2;
  --text: #e6e9f0;
  --muted: #9aa3b2;
  --radius: 18px;
}

/* Reset base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ---------------- PULSANTE MUSICA ---------------- */
.audio-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  padding: 10px 14px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  color: #0b0e13;
  cursor: pointer;
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slides .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideFade 15s infinite;
}

.hero-slides .slide:nth-child(1) { animation-delay: 0s; }
.hero-slides .slide:nth-child(2) { animation-delay: 5s; }
.hero-slides .slide:nth-child(3) { animation-delay: 10s; }

@keyframes slideFade {
  0%, 33% { opacity: 1; }
  33.1%, 100% { opacity: 0; }
}

.hero-slides .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 20px;
  animation: contentFade 1.5s ease forwards;
}

@keyframes contentFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero inner: avatar e testo affiancati */
.hero-inner {
  display: flex;
  align-items: center; /* centra verticalmente */
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap; /* responsive su mobile */
}

.avatar-wrapper {
  width: 100px;       /* ridotta per allineamento con testo */
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 4px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  flex-shrink: 0; /* mantiene dimensioni fisse */
  animation: glow 3s ease-in-out infinite;
  position: relative;
}

.avatar-wrapper::after {
  content: none;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

@keyframes glow {
  0% { box-shadow: 0 0 0 rgba(77,163,255,0); }
  50% { box-shadow: 0 0 35px rgba(77,163,255,0.45); }
  100% { box-shadow: 0 0 0 rgba(77,163,255,0); }
}

.hero-text h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 10px;
  text-align: left;
}

.hero-text h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 15px;
  text-align: left;
}

/* ---------------- CARDS ---------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--card), #10131d);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(255,255,255,0.04);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(77,163,255,0.25), rgba(124,255,178,0.25));
  color: var(--accent2);
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 40px 80px rgba(0,0,0,0.7);
  border: 1px solid rgba(124,255,178,0.25);
}

.card h2 { font-size: 1.6rem; margin-bottom: 10px; }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(77,163,255,0.15);
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 25px;
}

.features {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 25px;
}

.features li {
  list-style: none;
  margin-bottom: 8px;
}

.features li::before {
  content: '➜';
  color: var(--accent2);
  margin-right: 8px;
}

.btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #0b0e13;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(124,255,178,0.4);
}

/* ---------------- FOOTER ---------------- */
footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

footer span { color: var(--accent); }
