:root {
  --navy: #162a4a;
  --navy-2: #1e3a66;
  --ink: #1c2a40;
  --cream: #f6f1e8;
  --paper: #fffdf9;
  --line: #e4d9c8;
  --muted: #5c6b80;
  --link: #1a3f73;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

a { color: var(--link); }
a:hover { color: var(--navy); }

.barra {
  background: var(--navy);
  color: var(--cream);
}

.barra-interno,
.pagina,
.piede-interno {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.barra-interno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.marchio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.marchio img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.4rem;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
}

.nav a:hover { text-decoration: underline; }

.hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.06), transparent 42%),
    var(--navy);
  color: var(--cream);
}

.hero-interno {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0 4rem;
}

.kicker {
  margin: 0 0 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #d7c39a;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.95;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.occhiello {
  max-width: 36rem;
  margin: 1.1rem 0 0;
  font-size: 1.15rem;
  color: #e7e0d4;
}

.stato {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(232, 214, 176, 0.45);
  border-radius: 999px;
  color: #f0e2c4;
  font-size: 0.92rem;
}

.hero img.treno {
  width: min(100%, 28rem);
  justify-self: end;
  border-radius: 1.25rem;
}

.scheda {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: -2.2rem;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(22, 42, 74, 0.06);
}

.scheda img {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 0.8rem;
}

.scheda h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.scheda p { margin: 0; color: var(--muted); }

.pagina { padding: 2.5rem 0 3.5rem; }

.pagina h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
}

.meta { color: var(--muted); }

.documento {
  max-width: 42rem;
}

.documento h2 {
  margin-top: 1.8rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.documento p,
.documento li { line-height: 1.6; }

.documento code {
  font-family: Consolas, monospace;
  font-size: 0.92em;
}

.piede {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.piede-interno {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 0 1.6rem;
}

.piede a { color: var(--muted); }

@media (max-width: 800px) {
  .hero-interno,
  .scheda { grid-template-columns: 1fr; }
  .hero img.treno { justify-self: start; }
  .nav a { margin-left: 0.8rem; }
  .scheda { margin-top: 0; }
}
