/* OpenMove Radar — stile gestionale: flat, minimale, tipografico.
   Del brand OpenMove restano il logo e la palette base:
   orange #F3704B · blue #4A45FB · fondo #F1EDE9 · ink #191919 */

:root {
  --orange: #F3704B;
  --blue: #4A45FB;
  --beige: #F1EDE9;
  --bg: #FAF8F6;
  --ink: #191919;
  --gray: #6b6b6b;
  --line: #e3ddd6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.om-logo { height: 34px; width: auto; display: block; }
.brand-suffix { font-weight: 600; color: var(--orange); font-size: 15px; }
.site-header nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.site-header nav a { color: var(--ink); }

main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 40px 24px 64px; }

h1 { font-size: 28px; font-weight: 650; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 20px; font-weight: 650; margin: 32px 0 10px; }
h3 { font-size: 17px; font-weight: 650; margin: 24px 0 8px; }
p, li { color: var(--ink); }
hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }

.muted { color: var(--gray); font-size: 14px; }

/* Bottoni */
.pill {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.pill:hover { text-decoration: none; opacity: .92; }
.pill-orange { background: var(--orange); color: #fff; }
.pill-outline { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 6px 16px; }
.pill-onblue { border-color: rgba(255,255,255,.7); color: #fff; }

/* Login — card blu col logo, volutamente l'unico elemento "brand" del sito */
.login-wrap { display: flex; justify-content: center; padding: 40px 0; }
.login-card {
  background: var(--blue);
  color: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.login-card .om-logo { height: 88px; margin: 0 auto 20px; }
.login-card h1 { font-size: 22px; margin: 0 0 8px; }
.login-card p { color: #fff; opacity: .92; font-size: 14px; line-height: 1.5; }
.login-card input[type="password"] {
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 15px;
  margin: 16px 0 12px;
  text-align: center;
}
.login-card .pill { width: 100%; }
.notice {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  margin-top: 14px;
}

/* Blog — lettura veloce, layout piatto */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 2px;
  color: var(--ink);
}
.post-list a:hover { text-decoration: none; }
.post-list a:hover .title { color: var(--blue); }
.post-list .date { font-size: 13px; color: var(--gray); white-space: nowrap; font-variant-numeric: tabular-nums; }
.post-list .title { font-size: 16px; font-weight: 550; }

.post { max-width: 65ch; }
.post .date { color: var(--gray); font-size: 13px; margin-bottom: 4px; }
.post h1 { font-size: 26px; }
.post pre {
  background: #f0ece7;
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
}
.post code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.post p > code, .post li > code { background: var(--beige); padding: 1px 5px; border-radius: 4px; font-size: .9em; }

/* Footer */
.site-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--gray);
}

@media (max-width: 640px) {
  main { padding: 24px 18px 48px; }
  .site-header { padding: 12px 16px; }
}
