/* =========================================================
   BLOGGATORE.COM - STILE BASE
   Versione 1.0 | Minimal, pulito, responsive
   ========================================================= */

:root {
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #666;
  --accent: #1a73e8;
  --accent-light: #e8f0fe;
  --border: #e2e2e2;
  --radius: 14px;
  --maxw: 1080px;
  --font: "Segoe UI", Roboto, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 1rem;
}

/* ====== HEADER ====== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .logo img {
  height: 46px;
  vertical-align: middle;
}

/* ====== NAVBAR ====== */
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* ====== MAIN ====== */
.site-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
}

/* ====== CARDS / GRID ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.card h2 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.card p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

/* ====== ARTICLES ====== */
article h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

article .meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

article p {
  margin: 1rem 0;
  color: var(--fg);
}

article ul {
  margin: 1rem 0 1rem 1.4rem;
}

/* ====== FOOTER ====== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  background: #fafafa;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav ul {
    gap: 8px;
    margin-top: 8px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  article h1 {
    font-size: 1.6rem;
  }
}
