/* ==================== VARIABILI GLOBALI ==================== */
:root {
  --main-font: 'Forum', serif;

  --primary-color: #ff6b35;
  --secondary-color: #004e89;
  --accent-color: #f7b801;

  --text-dark: #333;
  --text-light: #f5f5f5;

  --bg-light: #ffffff;
  --bg-dark: #1a1a1a;

  --border-radius: 12px;
  --transition: all 0.3s ease;

  /* layout */
  --player-safe-space: 120px; /* spazio reale occupato dal player */

  /* z-index scale */
  --z-footer: 100;
  --z-navbar: 500;
  --z-player: 900;
  --z-modal: 2000;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--main-font);
  color: var(--text-dark);
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;

  min-height: 100vh;
  padding-bottom: var(--player-safe-space);

  overflow-x: hidden;
}

/* ==================== BASE ==================== */
main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ==================== UTILITIES ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

/* ==================== BOTTONI ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: var(--transition);
  font-family: var(--main-font);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: var(--z-modal);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}