/* Stile comune del sito: home, elenchi, schede (/about/<slug>) e guide. Tema scuro unico (scelta deliberata). */
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0f0f11;
  --surface: #151518;
  --surface-2: #1b1b1f;
  --fg: #ebe8e1;
  --muted: #a09d96;
  --faint: #8a877f;
  --line: #26262b;
  --line-2: #34343b;
  --chip: #1b1b1f;
  --accent: #ebe8e1;
  --accent-fg: #0f0f11;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .3);
  /* un colore per categoria */
  --prov: #9b8cff;
  --emp: #ff9a4d;
  --lib: #5eb0ff;
  --tool: #4fd1b5;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left, 0px)) 0 max(20px, env(safe-area-inset-right, 0px)); }
header.wrap { padding-top: 56px; padding-bottom: 32px; }
footer.wrap { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding-top: 22px; padding-bottom: 40px; }

/* testata comune con il logo rrstudio */
header.site.wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 26px; height: 26px; }
header.site nav { display: flex; gap: 6px; font-size: .9rem; }
header.site nav a { color: var(--muted); text-decoration: none; padding: 11px 12px; border-radius: 6px; }
header.site nav a:hover { color: var(--fg); }
@media (max-width: 760px) { header.site nav a.opt { display: none; } }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: inherit; }
.site-footer .family { color: var(--faint); }
.site-footer .family a { color: var(--muted); }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.05; margin: 0 0 12px; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.025em; font-weight: 700; }
.lead { color: var(--muted); max-width: 62ch; margin: 0; font-size: 1.05rem; text-wrap: pretty; }
.muted { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { background: var(--chip); border: 1px solid var(--line); border-radius: 6px; padding: 2px 9px; font: 400 12px var(--mono); color: var(--muted); }
.badge { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.login { font-size: .85rem; color: var(--muted); margin: 0; }
.login code { font: 400 .85em var(--mono); background: var(--chip); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 9px 16px; border-radius: 8px; font: 500 15px/1 var(--font);
  text-decoration: none; border: 1px solid var(--line-2); color: var(--fg); background: transparent;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--fg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }
.btn.primary:hover { background: #fff; border-color: #fff; }

.shot { display: block; background: var(--surface); overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }

.note { color: var(--muted); padding: 24px 0 56px; }

.site-footer .foot { display: flex; flex-wrap: wrap; gap: 6px 32px; justify-content: space-between; align-items: center; }
.site-footer .foot a, .site-footer .foot .fam { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; }
.site-footer .foot nav { display: flex; flex-wrap: wrap; gap: 0 8px; }
.site-footer .foot .fam { color: var(--faint); }
.site-footer .foot a { text-decoration: none; }
.site-footer .foot a:hover { color: var(--fg); }
