/* === COLORI GLOBALI === */
:root {
  --accent: #ed2e38;
  --text: #111;
  --muted: #555;
  --border: #ddd;
  --bg: #fff;
  --bg-alt: #f4f4f4;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* === DARK MODE === */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #eee;
    --muted: #bbb;
    --border: #333;
    --bg: #121212;
    --bg-alt: #1c1c1c;
    --shadow: 0 2px 8px rgba(0,0,0,.5);
  }
  .btn-secondary {
    background: #1e1e1e;
    color: var(--text);
    border: 1px solid var(--border);
  }
  .btn-secondary:hover {
    background: rgba(255,255,255,0.08);
  }
  .details-table tr:nth-child(even) {
    background: rgba(255,255,255,0.03);
  }
  .section.alt { background: var(--bg-alt); }
}

/* === HERO === */
.hero {
  position: relative;
  background: var(--bg);
  padding: 6rem 1rem 3rem;
  text-align: center;
}
.hero-title {
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-title img {
  max-width: 100%;
  height: auto;
}

/* === BOTTONI HERO === */
.btn {
  padding: .7rem 1.6rem;
  border-radius: 50px;
  font-size: .95rem;
  text-decoration: none;
  font-weight: 600;
  transition: all .2s ease;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: #b21018; }

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: #e0e0e0;
}
@media (prefers-color-scheme: dark) {
  .btn-secondary:hover {
    background: rgba(255,255,255,0.08);
  }
}

/* === SEZIONI === */
.section {
  padding: 3rem 1.2rem;
  background: var(--bg);
}
.section.alt { background: var(--bg-alt); }
.section h2 {
  margin-bottom: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--accent);
}
.section p {
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1rem;
  text-transform: none;
  color: var(--muted);
}
@media (max-width: 600px) {
  .section p { line-height: 1.75; }
}

/* === DETTAGLI (tabella trasparente) === */
.details-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  border-radius: .4rem;
  overflow: hidden;
  background: transparent;
}
.details-table th,
.details-table td {
  padding: .9rem 1.2rem;
  text-align: left;
  font-size: .95rem;
  border-bottom: 1px solid var(--border);
}
.details-table th {
  width: 35%;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.details-table td {
  color: var(--text);
  text-transform: none;
}
.details-table tr:last-child th,
.details-table tr:last-child td {
  border-bottom: none;
}
.details-table tr:nth-child(even) {
  background: rgba(0,0,0,0.015);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 4rem 1rem 2rem; }
  .hero-title { max-width: 80%; }
}
@media (max-width: 600px) {
  .details-table th,
  .details-table td {
    display: block;
    width: 100%;
  }
  .details-table th {
    border-bottom: none;
    padding-bottom: .3rem;
  }
  .details-table td {
    padding-top: 0;
    margin-bottom: .8rem;
  }
}
