/* Stesso stile del README GitHub di gabrielevierti: scuro, schede con bordo, niente fronzoli. */
:root {
  --bg: #0d1117;
  --card: #151b23;
  --line: #2b3340;
  --text: #f0f6fc;
  --muted: #9198a1;
  --blue: #4493f8;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}

/* Lingua: app.js imposta data-lang su <html> */
html[data-lang="it"] [lang="en"],
html[data-lang="en"] [lang="it"] { display: none; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 600; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Barra in alto, come "gabrielevierti / README.md" */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 28px 0 20px;
  font: 13px/1 ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
.bar a { color: var(--text); }
.bar .path span { color: var(--muted); }
.bar .side { display: flex; align-items: center; gap: 14px; }
.bar .side a { color: var(--muted); }
.langs { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.langs button {
  font: inherit; color: var(--muted); background: none; border: 0;
  padding: 6px 9px; cursor: pointer;
}
html[data-lang="it"] .langs [data-set="it"],
html[data-lang="en"] .langs [data-set="en"] { background: var(--card); color: var(--text); }

/* Schede */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 30px;
}

.hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 48px; }
.hero .name { display: flex; align-items: center; gap: 16px; }
.hero .name img { width: 56px; height: 56px; border-radius: 13px; }
.hero h1 { margin: 0; font-size: 52px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.hero .sub { margin: 14px 0 0; color: var(--muted); font-size: 19px; }
.hero .tag { color: var(--blue); margin: 18px 0 0; font-weight: 600; font-size: 18px; }
.hero .tag a { color: var(--blue); }
.hero svg { flex: none; width: 210px; height: auto; }

.intro { margin: 28px 0 0; }

h2 {
  margin: 40px 0 20px; padding-bottom: 10px;
  font-size: 24px; line-height: 1.25; font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eyebrow {
  margin: 0 0 8px; color: var(--muted);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.card h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card p + p { margin-top: 12px; }
.more { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.fine { margin: 16px 0 0; color: var(--muted); font-size: 13px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 14px 28px 14px 0;
  font-weight: 600; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--muted); font-weight: 400; font-size: 20px; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

/* Supporto */
.support { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.support .links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: none; font-weight: 600; font-size: 14px; }

footer { margin: 48px 0 0; padding: 24px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer p { margin: 0 0 12px; }

/* Privacy */
.policy .wrap { padding: 0; }
.policy-hero { padding: 8px 0 0; }
.policy-hero h1 { margin: 0 0 16px; font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.policy .lead { margin: 0; font-size: 17px; }
.policy .date { margin: 14px 0 28px; color: var(--muted); font-size: 13px; }
.policy .back { display: none; }
.policy p { color: var(--muted); font-size: 15px; }
.policy p.lead { color: var(--text); }
.summary { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.summary li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.summary b { display: block; margin-bottom: 6px; }
.summary span { color: var(--muted); font-size: 14px; }
.rows { margin: 0; }
.rows dt { margin: 0 0 4px; font-weight: 600; }
.rows dt small { margin-left: 8px; color: var(--muted); font-weight: 400; font-size: 12px; }
.rows dd { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.rows dd:last-child { border-bottom: 0; padding-bottom: 0; }

@media (max-width: 700px) {
  .hero { padding: 30px 24px; }
  .hero svg { display: none; }
  .hero h1 { font-size: 40px; }
  .hero .name img { width: 46px; height: 46px; border-radius: 11px; }
  .grid, .summary { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .support { flex-direction: column; align-items: flex-start; }
  .policy-hero h1 { font-size: 32px; }
}
