/* Font e colori tema rurale */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #f8f8f8; /* Very light grey, almost white */
  color: #5f6a73; /* Soft grey for text */
  line-height: 1.6;
}

a {
  color: #aeb6bf; /* Lighter grey for links */
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background: #e9ecef; /* Light grey for header background */
  padding: 2rem 1rem;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #495057; /* Darker grey for main heading */
}
header p {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
  color: #6c757d; /* Medium grey for header paragraph */
}

/* Navigazione */
nav ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
nav a {
  font-weight: bold;
  color: #5f6a73; /* Soft grey for navigation links */
}

/* Hero Section */
.hero {
  width: 100%;
  aspect-ratio: 32/9;
  background: url('immagini/hero.png') center/cover no-repeat;
}

@media (max-width: 600px) {
  .hero {
    aspect-ratio: 1/1;
    background-image: url('immagini/hero_square.png');
  }
}

/* Grid Articoli (Homepage) */
main#posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem;
}
@media (max-width: 900px) {
  main#posts {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  main#posts {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

/* Card Articolo */
.post-card {
  background: #ffffff; /* Pure white for card background */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Lighter shadow */
  display: flex;
  flex-direction: column;
}
.post-card img {
  width: 100%;
  height: auto;
  display: block;
}
.post-card .content {
  padding: 1rem;
  flex: 1;
}
.post-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: #495057; /* Darker grey for card heading */
}
.post-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #5f6a73; /* Soft grey for card text */
}
.post-card a.read-more {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  background: #aeb6bf; /* Lighter grey for button background */
  color: #ffffff; /* White text for button */
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Paginazione */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: block;
  padding: 0.5rem 0.75rem;
  border: 1px solid #aeb6bf; /* Lighter grey for border */
  border-radius: 4px;
  color: #5f6a73; /* Soft grey for pagination text */
  text-decoration: none;
}
.pagination a:hover {
  background: #aeb6bf; /* Lighter grey for hover */
  color: #fff;
}
.pagination .current {
  background: #aeb6bf; /* Lighter grey for current page */
  color: #fff;
  border-color: #aeb6bf;
}

/* Footer */
footer {
  background: #e9ecef; /* Light grey for footer background */
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #6c757d; /* Medium grey for footer text */
}
footer .newsletter {
  margin: 1rem auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  width: auto;
  text-align: center;
}
footer .newsletter h3 {
  margin: 0.5rem 0;
  color: #495057; /* Darker grey for newsletter heading */
  font-size: 1.3rem;
}
footer .newsletter p.cta {
  margin: 0.5rem 0;
  color: #6c757d; /* Medium grey for newsletter CTA */
  font-size: 1rem;
}
footer .newsletter input[type="email"] {
  font-size: 1.1rem;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid #aeb6bf; /* Lighter grey for input border */
  border-radius: 4px;
  width: 250px;
}
footer .newsletter button {
  padding: 0.5rem 1rem;
  background: #aeb6bf; /* Lighter grey for button */
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
footer .newsletter button:hover {
  background: #9fa7af; /* Slightly darker grey on hover */
}

/* Breadcrumb */
nav.breadcrumb {
  max-width: 800px;
  margin: 1rem auto;
  font-size: 0.85rem;
}
nav.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}
nav.breadcrumb a {
  color: #aeb6bf; /* Lighter grey for breadcrumb links */
}
nav.breadcrumb li {
  display: inline;
  color: #5f6a73; /* Soft grey for breadcrumb text */
}

/* Pagina Articolo */
article {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff; /* Pure white for article background */
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07); /* Lighter shadow */
}
article h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #495057; /* Darker grey for article heading */
}
article .meta {
  font-size: 0.9rem;
  color: #6c757d; /* Medium grey for article meta info */
}