/* ── RESET ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── VARIABILI COLORI ── */
:root {
  --rosso: #c0392b;
  --rosso-scuro: #96281b;
  --antracite: #2c3e50;
  --grigio-chiaro: #f5f5f5;
  --testo: #000;
  --testo-chiaro: #000;
}

/* ── BASE ── */
body {
  font-family: 'Georgia', serif;
  color: var(--testo);
  line-height: 1.8;
  background: #fff;
}

h1, h2, h3 {
  line-height: 1.3;
}

ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 10px;
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  background: var(--antracite);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 28px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

nav a:hover {
  color: #fff;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55);
}

.hero-testo {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}

.hero-etichetta {
  color: #e8a87c;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 20px;
}

.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  background: var(--rosso);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--rosso-scuro);
}

/* ── NUMERI ── */
.numeri {
  background: var(--rosso);
  display: flex;
  justify-content: center;
  gap: 0;
}

.numero {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 36px 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

.numero:last-child {
  border-right: none;
}

.numero strong {
  display: block;
  font-size: 2.2rem;
  font-family: Arial, sans-serif;
  margin-bottom: 6px;
}

.numero span {
  font-size: 0.85rem;
  opacity: 0.85;
  font-family: Arial, sans-serif;
}

/* ── SEZIONI ── */
.sezione {
  padding: 80px 24px;
}

.sfondo-grigio {
  background: var(--grigio-chiaro);
}

.contenuto {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 64px;
  align-items: center;
}

.contenuto.inverso {
  flex-direction: row-reverse;
}

.testo {
  flex: 1;
}

.etichetta {
  display: inline-block;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.testo h2 {
  font-size: 2.4rem;
  color: #000;
  margin-bottom: 20px;
}

.testo p {
  color: #000;
  margin-bottom: 16px;
}

/* immagine laterale reale */
.immagine-laterale {
  flex: 1;
  height: 400px;
}

.immagine-laterale img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* cartolina d'epoca: crop centrato sul trenino giallo */
.immagine-cartolina {
  height: 480px;
}

.immagine-cartolina img {
  object-fit: cover;
  object-position: center 85%;
  filter: contrast(1.25) brightness(1.08) saturate(1.15);
}

.didascalia {
  margin-top: 10px;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: #000;
  text-align: center;
  font-style: italic;
}

/* ── TAPPE ── */
.tappe {
  margin-top: 28px;
  border-left: 3px solid var(--rosso);
  padding-left: 24px;
}

.tappa {
  margin-bottom: 20px;
}

.tappa strong {
  display: block;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
}

.tappa span {
  font-size: 0.95rem;
  color: #000;
  font-family: Arial, sans-serif;
}

/* ── SEZIONE UNESCO ul ── */
.testo ul {
  color: #000;
  margin-top: 8px;
  font-size: 1rem;
}

/* ── SCHEDE INFO ── */
.sfondo-rosso {
  background: var(--antracite);
  color: #fff;
}

.titolo-centrato {
  text-align: center;
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 48px;
}

.schede {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.scheda {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 32px 24px;
}

.scheda-icona {
  font-size: 2rem;
  margin-bottom: 16px;
}

.scheda h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.scheda p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
}

/* ── FOOTER ── */
footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 40px 24px;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 2;
}

.footer-logo {
  font-size: 1.1rem;
  color: #fff;
  font-weight: bold;
  margin-bottom: 8px;
}

.footer-copy {
  margin-top: 16px;
  font-size: 0.8rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .contenuto,
  .contenuto.inverso {
    flex-direction: column;
    gap: 32px;
  }

  .immagine-laterale {
    height: 260px;
    width: 100%;
  }

  .numeri {
    flex-wrap: wrap;
  }

  .numero {
    min-width: 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  nav a {
    margin-left: 16px;
    font-size: 0.8rem;
  }
}
