/* Augusto Comini — sito statico, design moderno e minimale */

:root {
  --accent: #0284c7;
  --accent-dark: #026591;
  --ink: #17252a;
  --body: #45565c;
  --muted: #6b7c82;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --border: #e3e9ec;
  --radius: 10px;
  --max-width: 800px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 10;
}
.site-header .container {
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.site-title:hover { color: var(--ink); text-decoration: none; }
.site-title span { color: var(--accent); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero / intro */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.hero p.lead {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Category pills */
.categories {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0 8px;
}
.category-pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}
.category-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* Post cards */
.post-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover {
  box-shadow: 0 8px 24px rgba(23,37,42,0.08);
  transform: translateY(-2px);
}
.post-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.post-card .post-card-body {
  padding: 18px 20px 22px;
}
.post-card .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}
.post-card h3 {
  margin: 8px 0 6px;
}
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent); text-decoration: none; }
.post-card .meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.post-card .excerpt {
  color: var(--body);
  font-size: 0.95rem;
  margin-top: 10px;
}

/* Article page */
.article-header {
  padding: 44px 0 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.article-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}
.article-header .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 8px;
}
.article-hero-image {
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding: 0 20px;
}
.article-hero-image img {
  border-radius: var(--radius);
}
article.post-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 20px 60px;
}
article.post-body figure {
  margin: 28px 0;
  text-align: center;
}
article.post-body figure img {
  border-radius: var(--radius);
  margin: 0 auto;
}
article.post-body figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}
article.post-body strong { color: var(--ink); }
article.post-body .callout {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
article.post-body .callout p { margin: 0; }

.back-link {
  display: inline-block;
  margin: 0 0 8px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Live weather callout (link to meteoindex.html) */
.live-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 4px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #eaf6ff 0%, #f5fbff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.live-callout:hover {
  box-shadow: 0 6px 18px rgba(2,132,199,0.12);
  transform: translateY(-1px);
  text-decoration: none;
}
.live-callout-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
}
.live-callout strong { color: var(--accent); }
.live-callout-arrow {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--accent);
}

/* Category page header */
.page-header {
  padding: 48px 0 12px;
  text-align: center;
}
.page-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 560px) {
  .site-nav ul { gap: 14px; }
  .site-nav a { font-size: 0.85rem; }
  body { font-size: 16px; }
}
