/* Pagine guida pubbliche per Google (22-10-2026): /guida/livrea-project-motor-racing/, /guida/template-livrea-pmr/
   e le inglesi in /en/guide/. HTML statico, niente JavaScript. Colori, font e angoli sono quelli del sito
   (src/style.css, "stile Paddock Hub": Figtree, rosso PMR, angoli 28/22/18). Le pagine le scrive
   tools/pagine_guida_seo.py: si cambia il testo li', non a mano nei file. */
:root {
  --bg: #0A0B0D; --surface: #1B1C21; --surface-2: #24252B; --border: #2A2B31; --border-2: #3A3B43;
  --text: #F5F5F7; --text-2: #D4D4D8; --muted: #A1A1AA;
  --accent: #E3141E; --accent-hover: #F0212A; --accent-text: #FF4D55; --accent-soft: #3A0B0F; --accent-line: #7A1419;
  --glow: rgba(227, 20, 30, .16);
  --font: 'Figtree', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --radius: 28px; --radius-md: 22px; --radius-btn: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 17px/1.65 var(--font); background-color: var(--bg);
  background-image: radial-gradient(120% 55% at 50% 0%, var(--glow), transparent 62%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 6px); }
a { color: var(--accent-text); }
img { max-width: 100%; height: auto; }

/* testata */
.testa { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: rgba(10, 11, 13, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.marca { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; font-weight: 800; }
.marca img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.marca span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.testa .spazio { flex: 1; }

/* pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--radius-btn); border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--accent-line); }
.btn.primario { background: linear-gradient(90deg, var(--accent-hover), var(--accent)); border-color: var(--accent); color: #fff; }
.btn.primario:hover { background: var(--accent-hover); }
.btn.grande { min-height: 52px; padding: 0 24px; font-size: 17px; }
.btn.piccolo { min-height: 38px; padding: 0 12px; font-size: 14px; }

/* corpo */
main { max-width: 900px; margin: 0 auto; padding: 22px 16px 60px; }
.briciole { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.briciole li + li::before { content: '›'; margin-right: 8px; color: var(--border-2); }
.briciole a { color: var(--muted); text-decoration: none; }
.briciole a:hover { color: var(--text); }
h1 { margin: 0 0 14px; font-size: clamp(32px, 6vw, 52px); line-height: 1.06; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.lead { margin: 0 0 18px; font-size: 19px; color: var(--text-2); }
h2 { margin: 0 0 12px; font-size: clamp(24px, 4vw, 32px); line-height: 1.15; font-weight: 800; }
h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; font-weight: 700; }
p, li { color: var(--text-2); }
b, strong { color: var(--text); }
section { margin-top: 46px; scroll-margin-top: 80px; }

.azioni { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.punti-chiave { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.punti-chiave li { padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--text); font-size: 15px; font-weight: 600; }

figure { margin: 0; }
figure img { display: block; width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); }
figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* passi numerati */
.passi { counter-reset: passo; margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.passi li { counter-increment: passo; position: relative; padding: 18px 20px 18px 70px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md); }
.passi li::before { content: counter(passo); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 17px; }
.passi p { margin: 0; }

/* schede degli strumenti */
.schede { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.schede li { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.schede li p { margin: 0; }

.elenco { padding-left: 22px; }
.elenco li { margin: 6px 0; }
.nota { margin: 16px 0 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 14px 14px 0; }

/* confronto "di solito / qui" */
.confronto { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; font-size: 16px; }
.confronto th, .confronto td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.confronto thead th { border-top: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.confronto td { color: var(--text-2); }
.confronto td + td { color: var(--text); }

/* domande frequenti */
.faq { display: grid; gap: 10px; }
.faq div { padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.faq p { margin: 0; }

.chiusura { margin-top: 50px; padding: 28px; text-align: center; background: var(--surface); border: 1px solid var(--accent-line); border-radius: var(--radius); }
.chiusura .azioni { justify-content: center; margin: 0; }
.chiusura p { margin: 0 0 18px; }
.vedi-anche { margin: 0; padding-left: 22px; }
.vedi-anche li { margin: 6px 0; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 40px; border-top: 1px solid var(--border); }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .testa .solo-largo { display: none; }
  .schede { grid-template-columns: 1fr; }
  .passi li { padding: 16px 16px 16px 62px; }
  .passi li::before { left: 14px; }
  .azioni .btn { flex: 1 1 100%; }
  .chiusura { padding: 22px 16px; }
  .confronto { font-size: 15px; }
  .confronto th, .confronto td { padding: 10px 12px; }
}
