:root {
  --rosso: #a00c26;
  --blu: #001e32;
  --carta: #f6f5f1;
  --testo: #1c1c1c;
  --testo-soft: #6b6b6b;
  --riga: rgba(0,0,0,0.1);
}

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

body {
  background: var(--carta);
  color: var(--testo);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

a { color: inherit; }

/* ---------- Barra superiore ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 6vw;
  border-bottom: 1px solid var(--riga);
}

.wordmark {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: var(--testo);
  text-decoration: none;
}

.torna-home {
  font-size: 0.85rem;
  color: var(--testo-soft);
  text-decoration: none;
  letter-spacing: 0.03rem;
  transition: color 0.2s ease;
}
.torna-home:hover { color: var(--testo); }

/* ---------- Layout responsive: impilato su mobile, due colonne su desktop ---------- */
.storia-layout {
  display: grid;
  grid-template-areas:
    "hero"
    "cover"
    "testo"
    "cta";
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 6vw 20px;
}
.storia-layout > .hero        { grid-area: hero; }
.storia-layout > .cover-verticale { grid-area: cover; }
.storia-layout > .body-copy   { grid-area: testo; }
.storia-layout > .cta-facebook { grid-area: cta; }

@media (min-width: 900px) {
  .storia-layout {
    grid-template-columns: 380px 1fr;
    grid-template-areas:
      "cover hero"
      "cover testo"
      "cover cta";
    max-width: 980px;
    align-items: start;
    column-gap: 60px;
    row-gap: 18px;
    padding: 70px 6vw 100px;
  }
  .storia-layout .hero,
  .storia-layout .body-copy,
  .storia-layout .cta-facebook {
    text-align: left;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .storia-layout .cover-verticale {
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: sticky;
    top: 30px;
  }
  .storia-layout .match-tag { justify-content: flex-start; }
  .storia-layout .cta-facebook { margin-top: 10px; }
}

/* ---------- Intestazione storia ---------- */
.hero {
  padding: 40px 6vw 20px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  color: var(--rosso);
  margin-bottom: 18px;
}

h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.match-tag {
  display: inline-flex;
  border-radius: 6px;
  overflow: hidden;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
}
.match-tag span { padding: 8px 14px; white-space: nowrap; }
.match-tag .autore { background: var(--rosso); color: #fff; }
.match-tag .meta { background: var(--blu); color: rgba(255,255,255,0.9); }

/* ---------- Immagine verticale ---------- */
.cover-verticale {
  max-width: 380px;
  margin: 20px auto;
}
.cover-verticale img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 20px 40px rgba(0,0,0,0.14);
}

/* ---------- Corpo storia ---------- */
.body-copy {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 0 10px;
  text-align: center;
  font-size: 1.02rem;
  color: var(--testo-soft);
}
.body-copy p { margin-bottom: 20px; }

.cta-facebook {
  max-width: 560px;
  margin: 0 auto 30px;
  text-align: center;
}
.cta-facebook a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blu);
  color: #fff;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 30px;
  transition: background 0.2s ease;
}
.cta-facebook a:hover { background: #002d4d; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--riga);
  padding: 50px 6vw 60px;
  text-align: center;
}
.footer-brand { margin-bottom: 32px; }
.footer-wordmark {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--blu);
  margin-bottom: 8px;
}
.footer-tagline { font-size: 0.9rem; color: var(--testo-soft); }
.socials { display: flex; justify-content: center; gap: 20px; margin-bottom: 26px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--riga);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--blu); font-size: 1.1rem;
  transition: all 0.2s ease;
}
.socials a:hover { background: var(--blu); color: #fff; }
.footer-disclaimer {
  max-width: 560px; margin: 0 auto 24px;
  font-size: 0.8rem; line-height: 1.6; color: var(--testo-soft);
}
.footer-copy { color: var(--testo-soft); font-size: 0.85rem; }
