/* styles.css */
:root {
  --bg: #ffffff;
  --bg-muted: #f5f7fb;
  --text: #0f172a;
  --muted: #475569;
  --faded: #adb1b8;
  --border: #e5e7eb;
  --accent: #3b82f6;       /* blu vivace, non eccessivo */
  --accent-dark: #2563eb;
  --accent-light: #eef5ff; /* tinta chiara per sezioni */
  --radius: 12px;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.nav {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
  padding: 6px 8px;
  border-radius: 8px;
}
.nav *:hover, .nav a:focus-visible {
  color: var(--accent);
  background: #f0f6ff;
  outline: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--accent-light), #ffffff);
  padding: 64px 0;
}
.hero h1 {
  font-size: 40px;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}
.lead {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 20px 0;
}
.actions {
  display: flex;
  gap: 12px;
}
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.1s ease;
}
.button:hover, .button:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
  outline: none;
}
.link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  padding: 12px 0;
}
.link:hover, .link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

/* Features */
.features {
  padding: 40px 0;
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 1em;
}
.card h2 {
  margin: 0 0 8px 0;
  font-size: 20px;
}
.card p {
  margin: 0;
  color: var(--muted);
}

.card h3 {
  margin: 0 0 8px 0;
}

.future h3 {
  color: var(--faded);
}

/* Footer */
.site-footer {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.site-footer p {
  margin: 0;
  color: var(--muted);
}

/* qr codes */
.xxx {
  margin: 5px;
}

/* Accessibilità */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hidden {
  visibility: hidden;
}