/* Font e colori tema rurale */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #fff8e1;
  color: #5d4037;
  line-height: 1.6;
}

a {
  color: #8d6e63;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background: #ffe082;
  padding: 2rem 1rem;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #4e342e;
}
header p {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
  color: #6d4c41;
}

/* 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;
}

/* 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) */

.sele {
  font-weight: bold;         /* Grassetto */
  text-decoration: underline; /* Sottolineatura */
}

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: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  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: #4e342e;
}
.post-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.post-card a.read-more {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  background: #8d6e63;
  color: #fff;
  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 #8d6e63;
  border-radius: 4px;
  color: #5d4037;
  text-decoration: none;
}
.pagination a:hover {
  background: #8d6e63;
  color: #fff;
}
.pagination .current {
  background: #8d6e63;
  color: #fff;
  border-color: #8d6e63;
}

/* Footer */
footer {
  background: #ffe082;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
}
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: #4e342e;
  font-size: 1.3rem;
}
footer .newsletter p.cta {
  margin: 0.5rem 0;
  color: #6d4c41;
  font-size: 1rem;
}
footer .newsletter input[type="email"] {
  font-size: 1.1rem;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid #8d6e63;
  border-radius: 4px;
  width: 250px;
}
footer .newsletter button {
  padding: 0.5rem 1rem;
  background: #8d6e63;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
footer .newsletter button:hover {
  background: #7b594f;
}

/* 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: #8d6e63;
}
nav.breadcrumb li {
  display: inline;
}

/* Pagina Articolo */
article {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
article h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #4e342e;
}
article .meta {
  font-size: 0.9rem;
  color: #6d4
