:root {
  --red: #c0392b;
  --text: #1c1c1c;
  --muted: #666;
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Merriweather", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

h1,
h2,
h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

blockquote {
  font-family: "Courier Prime", monospace; /* stile tipwriter per citazioni */
  font-style: italic;
  color: #555;
  border-left: 3px solid #c0392b;
  padding-left: 1rem;
  margin-left: 0;
}

a {
  color: var(--red);
  text-decoration: none;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid #eee;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 600;
}

/* Hero */

.hero {
  padding: 4rem 1.5rem;
  max-width: 920px;
  margin: auto;
}

.hero-text {
  max-width: 600px;
  color: var(--muted);
}

/* Buttons */

.btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: "IBM Plex Sans", sans-serif;
}

/* Blog */

.post-grid,
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.post-card {
  border-left: 3px solid var(--red);
  padding-left: 1rem;
}

.post-date {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Post */

.post {
  max-width: 720px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.home-wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.home-latest,
.home-cta {
  margin-top: 4rem; /* distanza coerente tra le sezioni */
}

.blog-wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.blog-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-featured .post-card {
  border-left: 3px solid #c0392b;
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.blog-all .post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-cta {
  margin-top: 4rem;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #eee;
}

/* Block code */
pre {
  background: #f5f5f5;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
  line-height: 1.5;
  font-family: "IBM Plex Mono", monospace;
}

/* Inline code */
code {
  background: #f0f0f0;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "IBM Plex Mono", monospace;
}

/* Rouge specific classes */
.highlight {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
}
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid #eee; /* opzionale, per separare dal contenuto */
  color: #666; /* leggermente più chiaro del testo normale */
  font-size: 0.9rem;
}
