/* partner.globeid.net: i colori e il carattere di globeid.net. */
@font-face {
  font-family: "Outfit";
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/Outfit-Variable.ttf") format("truetype");
}
:root {
  --ink: #0C1512;
  --panel: #13211B;
  --line: #24382E;
  --sun: #FFC563;
  --citron: #C9C767;
  --leaf: #8FC965;
  --text: #EEF2E6;
  --muted: #A3B0A2;
  --code: #0A110E;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: radial-gradient(120% 60% at 50% 0%, #14241D 0%, var(--ink) 60%) fixed, var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--citron); }
a:hover { color: var(--sun); }
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 500; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { color: var(--muted); font-weight: 300; }
nav.links { display: flex; align-items: center; gap: 18px; font-size: 15px; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--text); }
select.lang {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  font: inherit;
  font-size: 14px;
}
main { max-width: 1080px; margin: 0 auto; padding: 0 24px 64px; }
.hero { padding: 64px 0 40px; max-width: 760px; }
.eyebrow { color: var(--leaf); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
h1 { font-weight: 300; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 12px 0 16px; }
h2 { font-weight: 400; font-size: 28px; margin: 56px 0 16px; }
h3 { font-weight: 500; font-size: 19px; margin: 28px 0 8px; }
.lead { color: var(--muted); font-size: 20px; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.button.primary { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.button.primary:hover { color: var(--ink); filter: brightness(1.05); }
.button:hover { border-color: var(--citron); color: var(--text); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }
ol.steps { padding-left: 22px; }
ol.steps li { margin: 8px 0; }
.levels .card b { color: var(--leaf); font-weight: 500; }
.levels .card.later b { color: var(--muted); }
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

/* Documentazione */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-top: 24px; }
.docs nav.toc { position: sticky; top: 16px; align-self: start; font-size: 15px; }
.docs nav.toc a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; }
.docs nav.toc a:hover { color: var(--text); }
.docs article h1 { font-size: 40px; margin-top: 0; }
.docs article h2 { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 48px; }
.docs article p, .docs article li { max-width: 760px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
:not(pre) > code { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
pre {
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.5;
  max-width: 820px;
}
table { border-collapse: collapse; width: 100%; max-width: 820px; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
.method { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--ink); background: var(--leaf); border-radius: 6px; padding: 1px 7px; margin-right: 6px; }
.method.put { background: var(--sun); }
.method.post { background: var(--citron); }
.note { border-left: 3px solid var(--sun); padding: 4px 0 4px 14px; color: var(--muted); max-width: 760px; }
@media (max-width: 820px) {
  .docs { grid-template-columns: 1fr; }
  .docs nav.toc { position: static; }
  nav.links .hide-small { display: none; }
}
