/* Reparto Corse — shared stylesheet. No external assets, no JS. */

:root {
  --rosso: #b0141a;         /* Rosso Faustino */
  --rosso-dark: #7d0d12;
  --ink: #15161a;
  --ink-2: #24262d;
  --paper: #f7f5f1;
  --paper-2: #efece5;
  --line: #d9d5cc;
  --muted: #6b6a66;
  --gold: #b8912f;
  --ph: #c7c8ca;            /* placeholder gray */
  --ph-2: #b7b8bb;
  --ph-ink: #6d6e72;
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 2.2rem 0 .7rem; }
h3 { font-size: 1.28rem; margin: 1.8rem 0 .5rem; }
p { margin: 0 0 1.1rem; }
a { color: var(--rosso); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
li { margin: .3rem 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .72rem;
  font-weight: 700; color: var(--rosso); margin: 0 0 .6rem;
}
.lede { font-size: 1.2rem; color: var(--ink-2); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--rosso);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 12px 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  background: var(--rosso); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em;
  border-radius: 3px;
}
.brand-mark.small { width: 34px; height: 34px; font-size: .95rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .01em; }
.brand-text em { font-style: normal; font-size: .72rem; color: #b9b8b5; letter-spacing: .08em; text-transform: uppercase; }

.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a {
  color: #d8d7d3; font-size: .86rem; font-weight: 600;
  padding: 7px 11px; border-radius: 3px; letter-spacing: .01em;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.09); text-decoration: none; }
.site-nav a.active { color: #fff; background: var(--rosso); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff; padding: 74px 0 66px;
  border-bottom: 1px solid #000;
}
.hero .eyebrow { color: #ff6a70; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { color: #d7d6d2; font-size: 1.2rem; max-width: 60ch; }
.hero .btn-row { margin-top: 1.6rem; }

.btn {
  display: inline-block; background: var(--rosso); color: #fff;
  padding: 12px 22px; border-radius: 3px; font-weight: 700; font-size: .95rem;
  letter-spacing: .02em; border: 1px solid var(--rosso);
}
.btn:hover { background: var(--rosso-dark); border-color: var(--rosso-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); margin-left: 10px; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- Sections ---------- */
main { padding: 46px 0 60px; }
section { margin-bottom: 8px; }
.section-pad { padding: 30px 0; }
.prose { max-width: 72ch; }
.prose p, .prose li { color: #2a2b30; }

/* ---------- Placeholder images ---------- */
.ph {
  margin: 0; background:
    repeating-linear-gradient(45deg, var(--ph) 0 14px, var(--ph-2) 14px 28px);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ph-ink); text-align: center;
  border-radius: 4px; overflow: hidden;
}
.ph span {
  background: rgba(247,245,241,.82); padding: 6px 12px; border-radius: 3px;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
}
.ph-wide { aspect-ratio: 16 / 7; }
.ph-4x3 { aspect-ratio: 4 / 3; }
.ph-sq  { aspect-ratio: 1 / 1; }
figure.ph + figcaption, .figcap { font-size: .82rem; color: var(--muted); margin: .5rem 0 1.4rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 5px;
  padding: 20px 20px 22px;
}
.card h3 { margin-top: .2rem; }
.card p:last-child { margin-bottom: 0; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 1.6rem 0; }
.stat { background: var(--ink); color: #fff; border-radius: 5px; padding: 20px; border-left: 4px solid var(--rosso); }
.stat .num { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: #fff; }
.stat .lbl { display: block; margin-top: .5rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #c3c2be; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 1.4rem 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.6rem 26px; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  background: var(--rosso); border-radius: 50%; border: 2px solid var(--paper);
}
.timeline .yr { font-family: var(--serif); font-weight: 700; color: var(--rosso); font-size: 1.05rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
caption { text-align: left; font-size: .82rem; color: var(--muted); margin-bottom: .5rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper-2); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
tbody tr:hover { background: #fbfaf7; }
td.num, th.num { font-variant-numeric: tabular-nums; }

/* trophy / list callouts */
.trophy-list { list-style: none; padding: 0; }
.trophy-list li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); position: relative; }
.trophy-list li::before { content: "\1F3C6"; position: absolute; left: 0; top: 10px; }
.trophy-list .yr { color: var(--gold); font-weight: 700; }

.callout {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  padding: 16px 20px; border-radius: 4px; margin: 1.6rem 0;
}
.callout.rosso { border-left-color: var(--rosso); }
blockquote {
  margin: 1.6rem 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--rosso);
  font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--ink-2);
}
blockquote cite { display: block; font-size: .9rem; font-style: normal; color: var(--muted); margin-top: .6rem; }

.breadcrumb { font-size: .8rem; color: var(--muted); margin: 0 0 1.2rem; }
.breadcrumb a { color: var(--muted); }
.pagenav { display: flex; justify-content: space-between; gap: 16px; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7c6c2; margin-top: 40px; padding: 40px 0 30px; border-top: 3px solid var(--rosso); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 .8rem; }
.site-footer a { color: #c7c6c2; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-text strong { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: .35rem 0; }
.fineprint { grid-column: 1 / -1; border-top: 1px solid #333; margin-top: 26px; padding-top: 18px; font-size: .78rem; color: #8f8e8a; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .site-nav { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 44px; }
}
