/* === FONT === */
@font-face {
  font-family: 'BlackOpsOne';
  src: url('./fonts/BlackOpsOne.ttf') format('truetype');
  font-display: swap;
}

/* === VARIABILI COLORI === */
:root {
  --bg: #1b1b1d;
  --paper: #262629;
  --text: #f2f2f2;
  --muted: #b0b0b0;
  --line: #333;
  --brand: #ff3b3b;
}

/* === RESET BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100vh;
}

/* === HEADER === */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

header img.logo {
  height: 48px;
}

header h1 {
  font-family: 'BlackOpsOne', sans-serif;
  font-size: 24px;
  margin: 0;
  letter-spacing: 1px;
}

/* === HERO === */
.hero {
  background: linear-gradient(to bottom, #222, #1b1b1d);
  text-align: center;
  padding: 60px 20px 40px;
}

.hero h2 {
  font-family: 'BlackOpsOne', sans-serif;
  color: var(--brand);
  font-size: 42px;
  margin-bottom: 10px;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
}

/* === GRID EVENTI (CARDS VERTICALI) === */
section.events {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.event-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
}

.event-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 0 10px #000a;
}

.event-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: #111;
}

.event-info {
  padding: 12px;
  text-align: center;
}

.event-date {
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.event-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 4px;
}

.event-place {
  font-size: 14px;
  color: var(--muted);
}

/* === BOTTONI === */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  transition: background .2s ease;
}

.btn:hover {
  background: #ff5555;
}

/* === CHIPS (filtri, regioni, ecc.) === */
.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px auto;
  max-width: 1000px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--text);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chip[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.chip-count {
  font-size: 0.85em;
  color: var(--muted);
  margin-left: 6px;
}

/* === PAGINAZIONE === */
.pagination {
  text-align: center;
  margin: 30px 0;
}

.pagination a {
  display: inline-block;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 6px 12px;
  margin: 0 3px;
  border-radius: 6px;
  text-decoration: none;
}

.pagination a.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.pagination a:hover {
  border-color: var(--brand);
}

/* === FOOTER === */
footer {
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 20px;
  font-size: 14px;
  margin-top: 40px;
}

/* --- SEZIONI LEGALI (termini & privacy) --- */
.legal-content {
  line-height: 1.6;
  color: var(--text);
  font-size: 1rem;
}

.legal-content h1 {
  font-family: 'BlackOpsOne', sans-serif;
  font-size: 2rem;
  color: var(--brand);
  margin-bottom: 1rem;
}

.legal-content h2 {
  color: var(--brand);
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.legal-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--brand);
  text-decoration: underline;
}
.legal-content a:hover {
  color: #ff5555;
}

