/*
Theme Name: Eco della Lombardia
Theme URI: https://example.com
Author: Jessica & Grok
Description: Tema professionale e giornalistico per Eco della Lombardia. Ottimizzato per mobile, SEO e Google Discover.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: eco-lombardia
*/

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --ink: #1a1a1a;
  --paper: #fafafa;
  --accent: #0d5c63;
  --muted: #5a5a5a;
  --border: #e0e0e0;
  --max-w: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  line-height: 1.6;
  font-size: 1.05rem;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 52px; width: auto; }
nav.main-nav { display: flex; gap: 1.5rem; font-weight: 600; }
nav.main-nav a { color: var(--ink); font-size: 0.95rem; }

.hero { padding: 2rem 0 1rem; border-bottom: 1px solid var(--border); }
.hero h1 { font-family: 'Libre Baskerville', serif; font-size: 2.4rem; line-height: 1.15; }
.hero .subtitle { margin-top: 0.75rem; color: var(--muted); font-size: 1.1rem; }

.featured { padding: 2rem 0; }
.featured-card { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .featured-card { grid-template-columns: 1.6fr 1fr; } }
.featured-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }
.featured-card h2 { font-family: 'Libre Baskerville', serif; font-size: 1.85rem; line-height: 1.2; margin: 0.5rem 0; }
.meta { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.articles-grid {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
}
@media (min-width: 640px) { .articles-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .articles-grid { grid-template-columns: 1fr 1fr 1fr; } }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }
.article-card h3 { font-family: 'Libre Baskerville', serif; font-size: 1.25rem; margin: 0.6rem 0 0.4rem; }

.single { max-width: 740px; margin: 2rem auto; padding: 0 1.25rem; }
.single h1 { font-family: 'Libre Baskerville', serif; font-size: 2.2rem; line-height: 1.2; margin-bottom: 1rem; }
.single .entry-content { font-size: 1.12rem; }
.single .entry-content p { margin-bottom: 1.25rem; }
.single img { margin: 1.5rem 0; border-radius: 4px; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.85rem; }
  nav.main-nav { gap: 1rem; font-size: 0.9rem; }
  .logo img { height: 42px; }
}
