/* ===== Variabili di default (sovrascrivibili da ogni theme.css) ===== */
:root {
  --colore-primario: #1db954;
  --colore-secondario: #191414;
  --colore-accento: #1db954;
  --colore-testo: #ffffff;
  --colore-testo-tenue: rgba(255, 255, 255, 0.7);
  --sfondo: radial-gradient(circle at 30% 20%, #2a2a2a 0%, #121212 70%);
  --font-titolo: "Segoe UI", system-ui, sans-serif;
  --font-corpo: "Segoe UI", system-ui, sans-serif;
  --raggio: 16px;
  --ombra: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* ===== Reset minimale ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-corpo);
  color: var(--colore-testo);
  background: var(--sfondo);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== Layout landing (mobile-first) ===== */
.landing {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  min-height: 100vh;
}

.hero { text-align: center; margin-top: 1.5rem; }

.hero__titolo {
  font-family: var(--font-titolo);
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--colore-primario), var(--colore-accento));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sottotitolo {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 4vw, 1.25rem);
  color: var(--colore-testo-tenue);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Player Spotify ===== */
.player {
  width: 100%;
  border-radius: var(--raggio);
  overflow: hidden;
  box-shadow: var(--ombra);
  animation: sali 0.6s ease both;
}
.player iframe { display: block; width: 100%; border: 0; }

/* ===== CTA ===== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cta-text, var(--colore-secondario));
  background: var(--cta-bg, var(--colore-primario));
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.cta:active { transform: translateY(0); }

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--colore-testo-tenue);
  text-align: center;
}
.footer a {
  color: var(--colore-testo);
  text-decoration: underline;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 620px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: var(--colore-secondario);
  color: var(--colore-testo);
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
  font-size: 0.9rem;
}
.cookie-banner.visibile { display: flex; }
.cookie-banner__azioni { display: flex; gap: 0.75rem; justify-content: flex-end; }
.cookie-banner button {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}
.cookie-banner button.accetta { background: var(--colore-primario); color: var(--colore-secondario); }
.cookie-banner button.rifiuta { background: transparent; color: var(--colore-testo-tenue); border: 1px solid var(--colore-testo-tenue); }

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

/* ===== Desktop ===== */
@media (min-width: 700px) {
  .landing { padding-top: 4rem; gap: 2.5rem; }
}
