/* =============================================================================
   PISTILLA - Main Stylesheet
   Palette: Verde Salvia + Crema
   Fonts: Lora (titoli) + Nunito (corpo)
   ============================================================================= */

/* -- Custom Properties -- */
:root {
  /* Primary palette */
  --sage-50: #F0F4EC;
  --sage-100: #DDE6D5;
  --sage-200: #C5D4B8;
  --sage-300: #A8BF96;
  --sage-400: #8B9E7E;
  --sage-500: #6E8563;
  --sage-600: #5A6E51;
  --sage-700: #3D4A35;
  --sage-800: #2A3325;
  --sage-900: #1A2118;

  /* Warm neutrals */
  --cream-50: #FDFCF8;
  --cream-100: #FAF7F0;
  --cream-200: #F7F5EF;
  --cream-300: #F0EDE4;
  --cream-400: #E2DFD5;
  --cream-500: #C9C5B8;
  --cream-600: #A8A496;
  --cream-700: #7A7769;
  --cream-800: #4D4B42;
  --cream-900: #2C2B26;

  /* Accents */
  --gold-400: #C4A265;
  --gold-500: #A8874D;
  --gold-600: #8B6E3A;
  --rose-100: #F5E8E4;
  --rose-300: #E0B8AC;
  --rose-500: #C08B7A;

  /* Semantic */
  --color-primary: var(--sage-500);
  --color-primary-light: var(--sage-100);
  --color-primary-dark: var(--sage-700);
  --color-bg: var(--cream-50);
  --color-bg-alt: var(--cream-200);
  --color-bg-card: #FFFFFF;
  --color-text: var(--sage-800);
  --color-text-light: var(--sage-400);
  --color-text-muted: var(--cream-600);
  --color-border: var(--cream-400);
  --color-border-light: var(--cream-300);
  --color-link: var(--sage-600);
  --color-link-hover: var(--sage-700);
  --color-accent: var(--gold-500);

  /* Typography */
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;

  /* Sizing */
  --max-width: 1200px;
  --content-width: 780px;
  --sidebar-width: 320px;
  --header-height: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(45, 51, 37, 0.06);
  --shadow-md: 0 2px 8px rgba(45, 51, 37, 0.08);
  --shadow-lg: 0 4px 16px rgba(45, 51, 37, 0.1);
}

/* -- Reset & Base -- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -- Typography -- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
  color: var(--sage-700);
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-top: 1.25rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

strong { font-weight: 600; }
em { font-style: italic; }

/* -- Layout -- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.content-main {
  max-width: var(--content-width);
}

/* -- Header -- */
.site-header {
  background: var(--cream-200);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.site-logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--sage-700);
  letter-spacing: 0.5px;
}

.site-logo:hover { text-decoration: none; }

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sage-500);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sage-700);
  background: var(--cream-300);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sage-600);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem !important; }
  .header-inner { padding: 0 2rem; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--cream-200);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .nav-link { width: 100%; padding: 0.75rem; }
}

/* -- Hero -- */
.hero {
  background: var(--cream-200);
  padding: 2.5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 1.75rem;
  color: var(--sage-700);
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1rem;
  color: var(--sage-400);
  max-width: 560px;
  margin: 0 auto;
}

/* -- Article Cards -- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.article-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--sage-100);
}

.article-card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.article-card-category {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sage-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.article-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--sage-700);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.article-card-title a {
  color: inherit;
  text-decoration: none;
}

.article-card-title a:hover {
  color: var(--sage-600);
  text-decoration: none;
}

.article-card-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-card-excerpt {
  font-size: 0.875rem;
  color: var(--cream-700);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -- Article Page -- */
.article-header {
  padding: 2rem 0 1.5rem;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--sage-500); }
.breadcrumb span { margin: 0 0.35rem; color: var(--cream-500); }

.article-title {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.article-cover {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

/* Table of Contents */
.toc {
  background: var(--cream-100);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--sage-700);
  margin-bottom: 0.75rem;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  padding-left: 0;
}

.toc li {
  counter-increment: toc;
  padding: 0.3rem 0;
}

.toc li::before {
  content: counter(toc) ". ";
  color: var(--sage-400);
  font-weight: 500;
}

.toc a {
  font-size: 0.9rem;
  color: var(--sage-600);
}

/* Article Content */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
}

.article-content h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
}

.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.article-content blockquote {
  border-left: 3px solid var(--sage-300);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--cream-100);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--sage-600);
}

/* FAQ Section */
.faq-section {
  background: var(--cream-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
}

.faq-section h2 {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
  padding: 1rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--sage-700);
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--cream-700);
  line-height: 1.7;
}

/* Disclaimer */
.disclaimer {
  background: var(--cream-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--cream-600);
  line-height: 1.6;
}

/* Related Articles */
.related-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
}

.related-section h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* -- Sidebar -- */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.sidebar-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--sage-700);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.sidebar-categories a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--sage-600);
}

.sidebar-categories a:hover {
  color: var(--sage-700);
  text-decoration: none;
  padding-left: 0.25rem;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sage-600);
  background: var(--sage-50);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  border: 1px solid var(--sage-100);
  transition: all 0.2s;
}

.tag-pill:hover {
  background: var(--sage-100);
  color: var(--sage-700);
  text-decoration: none;
}

/* -- Product Box (iamnatural/Amazon) -- */
.product-box {
  background: var(--cream-100);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.product-box-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--cream-300);
  flex-shrink: 0;
}

.product-box-info { flex: 1; }

.product-box-name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--sage-700);
  margin-bottom: 0.25rem;
}

.product-box-desc {
  font-size: 0.85rem;
  color: var(--cream-600);
  margin-bottom: 0.5rem;
}

.product-box-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-bg-card);
  background: var(--sage-500);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.product-box-link:hover {
  background: var(--sage-600);
  text-decoration: none;
  color: var(--color-bg-card);
}

/* -- Ad Slots -- */
.ad-slot {
  text-align: center;
  padding: 0.75rem 0;
  min-height: 90px;
}

.ad-slot-label {
  font-size: 0.65rem;
  color: var(--cream-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

/* -- Footer -- */
.site-footer {
  background: var(--cream-200);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0 1.25rem;
  margin-top: 3rem;
}
.footer-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1rem;
}
.footer-menu a {
  font-size: 0.85rem;
  color: var(--cream-600);
}
.footer-menu a:hover { color: var(--sage-600); }
.footer-divider {
  border-top: 1px solid var(--color-border);
  margin: 0;
}
.footer-bottom {
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--cream-600);
}
@media (max-width: 600px) {
  .footer-menu { gap: 1rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* -- Category / Tag Pages -- */
.page-header {
  background: var(--cream-200);
  padding: 2rem 0;
}

.page-header h1 {
  font-size: 1.75rem;
}

.page-header p {
  color: var(--sage-400);
  font-size: 0.95rem;
  max-width: 600px;
}

/* -- Search -- */
.search-box {
  max-width: 500px;
  margin: 0 auto 2rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--sage-400);
}

/* -- Pagination -- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  color: var(--sage-600);
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--sage-50);
  border-color: var(--sage-200);
  text-decoration: none;
}

.pagination .current {
  background: var(--sage-500);
  color: white;
  border-color: var(--sage-500);
}

/* -- Utilities -- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.section-spacing { padding: 1.5rem 0; }

/* =============================================================================
   Author Box (v1.2 - article header)
   ============================================================================= */
.autore-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cream-300);
}

.autore-foto-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.autore-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.autore-nome a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sage-700);
  text-decoration: none;
}
.autore-nome a:hover { text-decoration: underline; }

.autore-titolo {
  font-size: 0.8rem;
  color: var(--cream-600);
}

.autore-data {
  font-size: 0.8rem;
  color: var(--cream-600);
}

/* =============================================================================
   Author Profile Page
   ============================================================================= */
.autore-profilo {
  text-align: center;
  margin-bottom: 2rem;
}

.autore-foto-grande {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.autore-titolo-profilo {
  font-size: 1rem;
  color: var(--cream-600);
  margin-top: 0.25rem;
}

.autore-bio {
  margin-bottom: 2rem;
  line-height: 1.75;
}

.autore-aree {
  margin-bottom: 2rem;
}

.autore-aree .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.autore-aree .tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--sage-50);
  color: var(--sage-600);
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
}
.autore-aree .tag:hover {
  background: var(--sage-100);
}

/* =============================================================================
   Redazione Page
   ============================================================================= */
.redazione-team {
  margin: 2rem 0;
}

.redazione-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--cream-300);
}
.redazione-card:last-child { border-bottom: none; }

.redazione-card .autore-foto-circle {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.redazione-card-info h2 {
  font-size: 1.15rem;
  margin: 0 0 0.2rem;
}
.redazione-card-info h2 a {
  color: var(--sage-700);
  text-decoration: none;
}
.redazione-card-info h2 a:hover { text-decoration: underline; }

.redazione-card-info .autore-titolo-profilo {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Article card horizontal (for author pages) */
.article-card-horizontal {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cream-300);
}
.article-card-horizontal:last-child { border-bottom: none; }

.article-card-thumb {
  width: 160px;
  height: 107px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.article-card-body h3 {
  font-size: 1rem;
  margin: 0 0 0.3rem;
  line-height: 1.4;
}
.article-card-body h3 a {
  color: var(--sage-800);
  text-decoration: none;
}
.article-card-body h3 a:hover { text-decoration: underline; }

.article-card-body .article-meta {
  font-size: 0.8rem;
  color: var(--cream-600);
  margin-bottom: 0.3rem;
}

.dot-separator { margin: 0 0.3rem; }

.article-card-body p {
  font-size: 0.85rem;
  color: var(--cream-700);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================================================
   Mobile overrides for author components
   ============================================================================= */
@media (max-width: 768px) {
  .redazione-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .article-card-horizontal {
    flex-direction: column;
  }
  .article-card-thumb {
    width: 100%;
    height: 180px;
  }
  .autore-foto-grande {
    width: 160px;
    height: 160px;
  }
}

/* -- Mobile overrides v1.2 -- */
@media (max-width: 768px) {
  .header-inner { justify-content: center !important; }
  .nav-toggle { display: none !important; }
  .main-nav { display: none !important; }
  .hero p { font-size: 0.8rem !important; }
}
.footer-menu a { text-decoration: none; }
.footer-menu a:hover { text-decoration: none; }

/* -- Restore logo circle -- */
.site-logo-icon {
  border-radius: 50%;
  background: var(--sage-400);
}

/* Hero h1 mobile */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.2rem !important; }
}

/* -- Article content justified text -- */
.article-content p { text-align: justify; }

/* -- Disclaimer separator line -- */
.disclaimer { border-top: 1px solid var(--color-border); padding-top: 1rem; margin-top: 2rem; }


/* -- Disclaimer separator (v3) -- */
.disclaimer {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--cream-600);
  font-style: italic;
}

/* -- Article text justified (v3) -- */
.article-content p {
  text-align: justify;
}

/* -- Redazione grid (v3) -- */
.redazione-intro { margin-bottom: 2rem; }
.redazione-intro p { margin-bottom: 1rem; line-height: 1.7; }
.redazione-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.redazione-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; background: var(--cream-100, #faf8f3); border: 1px solid var(--color-border); border-radius: 8px; text-decoration: none; color: inherit; transition: box-shadow 0.2s; }
.redazione-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); text-decoration: none; }
.redazione-card-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.redazione-card-nome { font-family: 'Lora', Georgia, serif; font-size: 1.05rem; font-weight: 600; margin: 0 0 0.15rem; color: var(--sage-700, #3D4A35); }
.redazione-card-titolo { font-size: 0.8rem; color: var(--sage-500, #6E8563); margin: 0 0 0.4rem; }
.redazione-card-bio { font-size: 0.85rem; color: var(--cream-700, #5a5549); margin: 0; line-height: 1.5; }

/* -- Author detail page (v3) -- */
.autore-page-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1rem; }
.autore-page-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--sage-300, #A8BF96); }
.autore-page-header-info .page-title { margin: 0; }
.autore-page-titolo { font-size: 0.9rem; color: var(--sage-500, #6E8563); margin: 0.25rem 0 0; }
.autore-page-categorie { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.autore-page-cat-tag { font-size: 0.75rem; padding: 0.2rem 0.6rem; background: var(--sage-100, #e8f0e2); color: var(--sage-700, #3D4A35); border-radius: 12px; }
.autore-page-bio { line-height: 1.8; margin-bottom: 2rem; }
.autore-page-bio p { margin-bottom: 1rem; }
.autore-page-articoli h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.autore-page-articoli ul { list-style: none; padding: 0; }
.autore-page-articoli li { padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); }
.autore-page-articoli li a { color: var(--sage-700, #3D4A35); text-decoration: none; font-weight: 500; }
.autore-page-articoli li a:hover { color: var(--sage-500, #6E8563); }
.autore-page-art-cat { font-size: 0.75rem; color: var(--cream-600); margin-left: 0.5rem; }
.page-title { font-family: 'Lora', Georgia, serif; font-size: 1.6rem; font-weight: 600; color: var(--sage-700, #3D4A35); margin-bottom: 1rem; }

/* -- Fix v4: Article cover responsive -- */
.article-cover {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .article-cover {
    max-height: 220px;
    object-fit: cover;
  }
}

/* -- Fix v4: Homepage card cover bg -- */
.article-card-image {
  background-color: var(--sage-100);
}

/* -- Fix v4: Redazione card mobile -- */
@media (max-width: 768px) {
  .redazione-grid {
    grid-template-columns: 1fr;
  }
  .redazione-card {
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 0.75rem;
  }
  .redazione-card-img {
    width: 52px;
    height: 52px;
  }
  .redazione-card-bio {
    display: none;
  }
}

/* === Category pages === */
.category-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg, 12px);
    margin: 1.5rem 0;
}
.category-description {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary, #555);
    text-align: justify;
    margin-bottom: 0.5rem;
}
.category-count {
    font-size: 0.9rem;
    color: var(--text-muted, #888);
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .category-cover {
        max-height: 220px;
    }
}
