/* ── Variabili brand ─────────────────────────────────────────────── */
:root {
  --brand-primary: #2563EB;
  --brand-primary-dark: #1E3A8A;
  --brand-secondary: #3B82F6;
  --brand-bg: #FFFFFF;
  --brand-surface: #F5F7FA;
  --brand-text: #111111;
  --brand-text-light: #555555;
  --brand-border: #E2E8F0;
  --brand-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --nav-height: 56px;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100%;
  font-family: var(--brand-font);
  color: var(--brand-text);
  background: var(--brand-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ── Layout shell ────────────────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#page-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#main {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.main-hidden {
  display: none !important;
}

.hidden {
  display: none !important;
}

/* ── Onboarding ──────────────────────────────────────────────────── */
#onboarding {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 24px;
  text-align: center;
  background: var(--brand-bg);
}

.onboarding-card {
  width: 100%;
  max-width: 360px;
  background: var(--brand-surface);
  border-radius: 16px;
  border: 1px solid var(--brand-border);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#onboarding h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-primary-dark);
}

#onboarding p {
  font-size: 15px;
  color: var(--brand-text-light);
  margin-bottom: 12px;
}

.btn-primary {
  width: 100%;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--brand-primary);
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-primary:active {
  background: var(--brand-primary-dark);
}
