/* ==========================================================
   il Siculo Bio — foglio di stile unico del sito
   Struttura: 0. Font  1. Base  2. Nav  3. Benvenuto  4. Chi sono
              5. Sezioni prodotti  6. Card  7. Contatti
              8. Footer  9. Telefono (max 900px)
              10. Pagina produttori  11. Blog
   ========================================================== */

/* 0. FONT (caricati dal tuo server, niente Google Fonts) - */
/* Playfair Display e DM Sans, licenza SIL Open Font License (css/fonts/LICENSE-OFL.txt) */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/playfair-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 700; font-display: swap; src: url('fonts/playfair-display-latin-700-italic.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/playfair-display-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 900; font-display: swap; src: url('fonts/playfair-display-latin-900-italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/dm-sans-latin-600-normal.woff2') format('woff2'); }

/* 1. BASE ------------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --arancio: #E8711A;
  --verde: #3A7D2C;
  --avorio: #FAF6F0;
  --avorio-scuro: #F0E9DF;
  --nero: #1A1A1A;
  --testo: #2A2A2A;
  --testo-tenue: #444;
  --nav-h: 68px;
  --font-titoli: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-testo: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h); /* i link interni non finiscono sotto la nav fissa */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body { background: var(--avorio); font-family: var(--font-testo); color: var(--nero); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--arancio); outline-offset: 3px; }

.inner { max-width: 1280px; margin: 0 auto; width: 100%; }
.narrow { max-width: 760px; margin: 0 auto; }

.tag {
  display: inline-block; margin-bottom: 20px; padding: 6px 14px;
  border: 1.5px solid var(--arancio); border-radius: 100px;
  color: var(--arancio); font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
}

/* 2. NAV ------------------------------------------------- */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--verde); }
.nav-inner {
  max-width: 1280px; height: var(--nav-h); margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--font-titoli); font-size: 22px; font-weight: 700; color: #fff; text-decoration: none; }
.nav-logo span { color: var(--arancio); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.8); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"] { font-weight: 600; box-shadow: 0 2px 0 var(--arancio); }
.nav-mobile-menu a[aria-current="page"] { color: #fff; font-weight: 600; }

/* pulsante "Sei un produttore?" accanto al menu */
.nav-actions { display: flex; align-items: center; gap: 28px; }
.nav-cta {
  padding: 10px 20px; background: var(--arancio); border-radius: 100px; white-space: nowrap;
  color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.nav-cta[aria-current="page"] { background: #fff; color: var(--verde); }

.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 4px; background: none; border: none; cursor: pointer;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 199;
  padding: 16px 0 24px; background: var(--verde);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a { padding: 16px 28px; font-size: 17px; color: rgba(255,255,255,0.9); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* 3. BENVENUTO ------------------------------------------- */
.welcome { padding-top: var(--nav-h); }
.welcome .inner { padding: 80px 80px 56px; text-align: center; }
.welcome h1 {
  margin-bottom: 16px; font-family: var(--font-titoli); font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 900; line-height: 1.1; letter-spacing: -1.5px;
}
.welcome h1 em { font-style: italic; color: var(--arancio); }
.welcome h1 .verde { color: var(--verde); }
.welcome-sub { font-size: 21px; font-style: italic; color: var(--testo-tenue); }

/* 4. CHI SONO -------------------------------------------- */
.about .inner { padding: 24px 80px 96px; }
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; max-width: 1100px; margin: 0 auto; }
.about-photo { position: sticky; top: 100px; }
.about-photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 24px; box-shadow: 0 24px 60px rgba(0,0,0,0.15); }

.block { margin-bottom: 48px; }
.block:last-child { margin-bottom: 0; }
.block h2 { margin-bottom: 14px; font-family: var(--font-titoli); font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.block h2 em { font-style: italic; color: var(--arancio); }
.block p { margin-bottom: 12px; font-size: 19px; line-height: 1.75; color: var(--testo); }
.block p strong { color: var(--nero); }
.block-not { padding: 28px 32px; background: var(--avorio-scuro); border-left: 4px solid var(--arancio); border-radius: 0 16px 16px 0; }

/* 5. SEZIONI PRODOTTI ------------------------------------ */
.products-section .inner { padding: 100px 80px; }
.section-producers { background: var(--avorio-scuro); }
.section-mine { background: var(--verde); }

.section-head { margin-bottom: 56px; text-align: center; }
.section-head h2 {
  margin-bottom: 16px; font-family: var(--font-titoli); font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 900; line-height: 1.1; letter-spacing: -1.5px;
}
.section-head h2 em { font-style: italic; color: var(--arancio); }
.section-head p { max-width: 680px; margin: 0 auto; font-size: 19px; line-height: 1.7; color: var(--testo); }
.section-mine .section-head h2,
.section-mine .section-head p { color: #fff; }
.section-mine .tag { color: #fff; border-color: rgba(255,255,255,0.5); }

.producer { margin-bottom: 32px; padding: 48px; background: var(--avorio); border: 1px solid rgba(0,0,0,0.05); border-radius: 28px; }
.producer:last-child { margin-bottom: 0; }
.producer-head { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.producer-num {
  display: inline-block; margin-bottom: 14px; padding: 6px 14px; background: var(--verde); border-radius: 100px;
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
}
.producer-title { font-family: var(--font-titoli); font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.15; letter-spacing: -1px; color: var(--nero); }
.producer-title em { font-style: italic; color: var(--arancio); }
.producer-intro { margin-top: 12px; font-size: 19px; line-height: 1.7; color: var(--testo); }

.sub-title { margin-bottom: 8px; font-family: var(--font-titoli); font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.sub-title em { font-style: italic; color: var(--verde); }
.sub-divider { width: 56px; height: 3px; margin-bottom: 28px; background: var(--arancio); border-radius: 2px; }

.note { max-width: 760px; margin: 32px auto 0; text-align: center; font-size: 18px; line-height: 1.7; color: var(--testo); }
.note strong { color: var(--nero); }

/* 6. CARD ------------------------------------------------ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { overflow: hidden; background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 20px; transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }

/* foto delle card: verticali (3:4) come quasi tutte le foto */
.card-img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-bottom: 1px solid rgba(0,0,0,0.05); }
.card-img.is-landscape { object-fit: contain; background: var(--avorio-scuro); } /* foto orizzontale mostrata intera */

.card-body { padding: 24px; }
.card-name { margin-bottom: 8px; font-family: var(--font-titoli); font-size: 20px; font-weight: 700; }
.card-desc { font-size: 17px; line-height: 1.65; color: var(--testo-tenue); }
.card-desc + .card-desc { margin-top: 12px; }
.card-desc em { font-weight: 600; color: var(--nero); }

.season {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 12px;
  background: rgba(58,125,44,0.08); border-radius: 100px;
  color: var(--verde); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
}
.season::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--verde); }

/* card larga: foto a sinistra, testo a destra (miele, mandorle) */
.card-wide { display: grid; grid-template-columns: 380px 1fr; align-items: start; }
.card-wide .card-img { object-position: center 60%; border-bottom: none; border-right: 1px solid rgba(0,0,0,0.05); }
.card-wide .card-body { padding: 32px; }

/* 7. CONTATTI -------------------------------------------- */
.contact { background: var(--nero); color: #fff; }
.contact .inner { padding: 96px 80px; text-align: center; }
.contact h2 { margin-bottom: 28px; font-family: var(--font-titoli); font-size: clamp(32px, 3.8vw, 48px); font-weight: 900; letter-spacing: -1.5px; }
.contact h2 em { font-style: italic; color: var(--arancio); }
.contact p { margin-bottom: 14px; font-size: 19px; line-height: 1.75; color: rgba(255,255,255,0.85); }

.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 36px; padding: 18px 32px;
  background: var(--verde); border-radius: 100px; box-shadow: 0 8px 24px rgba(58,125,44,0.35);
  color: #fff; font-size: 17px; font-weight: 600; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(58,125,44,0.5); }
.btn-whatsapp svg { flex: 0 0 22px; }

.contact-later { margin-top: 8px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 28px 0 36px; }
.contact-links a {
  padding: 14px 26px; border: 2px solid rgba(255,255,255,0.4); border-radius: 100px;
  color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform 0.2s;
}
.contact-links a:hover { transform: translateY(-2px); }

/* 8. FOOTER ---------------------------------------------- */
.site-footer { background: var(--nero); border-top: 1px solid rgba(255,255,255,0.06); }
.site-footer .inner { padding: 20px 80px; text-align: center; }
.site-footer .inner { display: flex; flex-direction: column; gap: 8px; }
.site-footer p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.7); }
.site-footer .footer-ai { max-width: 760px; margin: 0 auto; font-size: 13px; color: rgba(255,255,255,0.6); }

/* etichetta trasparenza AI sulle immagini (AI Act, art. 50) */
.card { position: relative; } /* .about-photo è già sticky/relative */
.ai-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 100px;
  background: rgba(26,26,26,0.72); color: #fff;
  font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: .2px;
  pointer-events: none;
}

/* pulsante "torna su" */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--arancio); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--verde); }

/* chi preferisce meno animazioni */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn-whatsapp, .contact-links a, .nav-hamburger span, .to-top { transition: none; }
}

/* 9. TELEFONO (fino a 900px) ----------------------------- */
@media (max-width: 900px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions { gap: 10px; }
  .nav-cta { padding: 9px 14px; font-size: 13px; }

  .welcome .inner { padding: 56px 20px 40px; }
  .welcome-sub { font-size: 19px; }

  .about .inner { padding: 16px 20px 64px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { position: relative; top: auto; width: 100%; max-width: 420px; margin: 0 auto; }
  .about-photo img { border-radius: 20px; }
  .block h2 { font-size: 24px; }
  .block-not { padding: 22px 20px; }

  .block p, .section-head p, .producer-intro, .contact p { font-size: 18px; }
  .note { font-size: 17px; }

  .products-section .inner { padding: 64px 20px; }
  .producer { margin-bottom: 24px; padding: 28px 18px; border-radius: 20px; }
  .producer-head { margin-bottom: 24px; }

  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card-img { aspect-ratio: 4 / 5; }
  /* foto mostrate intere con le loro proporzioni */
  .card-img.ratio-3-4 { aspect-ratio: 3 / 4; object-fit: contain; }
  .card-img.ratio-4-3 { aspect-ratio: 4 / 3; object-fit: contain; }

  .card-wide { grid-template-columns: 1fr; }
  .card-wide .card-img { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.05); }
  .card-wide .card-body { padding: 24px; }

  .contact .inner { padding: 64px 20px; }
  .btn-whatsapp { width: 100%; padding: 18px 20px; font-size: 16px; }
  .site-footer .inner { padding: 20px 24px 84px; } /* spazio per il pulsante "torna su" */
}

/* 10. PAGINA PRODUTTORI (produttori.html) ---------------- */

.page-head { padding-top: var(--nav-h); }
.page-head .inner { padding: 80px 80px 40px; text-align: center; }
.page-head h1 {
  margin-bottom: 20px; font-family: var(--font-titoli); font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 900; line-height: 1.1; letter-spacing: -1.5px;
}
.page-head h1 em { font-style: italic; color: var(--arancio); }
.page-intro { max-width: 720px; margin: 0 auto; font-size: 19px; line-height: 1.75; color: var(--testo); }
.page-intro strong { color: var(--nero); }

.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; padding: 0 80px 80px; }
.perk { display: flex; gap: 16px; align-items: flex-start; padding: 28px; background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 20px; }
.perk-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 48px; height: 48px; background: var(--arancio); border-radius: 12px; font-size: 22px; }
.perk-title { margin-bottom: 6px; font-family: var(--font-titoli); font-size: 20px; font-weight: 700; }
.perk-desc { font-size: 17px; line-height: 1.6; color: var(--testo-tenue); }

.join { background: var(--avorio-scuro); }
.join .inner { padding: 96px 80px; }
.join-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; max-width: 1100px; margin: 0 auto; }

.form-card { padding: 48px; background: var(--nero); border-radius: 28px; color: #fff; }
.form-card h2, .wa-card h2 { margin-bottom: 8px; font-family: var(--font-titoli); font-size: 30px; font-weight: 700; line-height: 1.2; }
.form-card h2 em, .wa-card h2 em { font-style: italic; color: var(--arancio); }
.form-card > p { margin-bottom: 28px; font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.8); }

.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75); }
.field input, .field textarea {
  width: 100%; padding: 15px 18px; background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.18); border-radius: 12px;
  color: #fff; font-family: var(--font-testo); font-size: 16px; outline: none; transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.4); }
.field input:focus, .field textarea:focus { border-color: var(--arancio); background: rgba(255,255,255,0.12); }
.field-error { display: none; padding-left: 4px; font-size: 13px; font-weight: 500; color: #FFD0A8; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #FFD0A8; }
.form-note { font-size: 13px; color: rgba(255,255,255,0.5); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit {
  margin-top: 4px; padding: 18px; background: var(--arancio); border: none; border-radius: 12px; cursor: pointer;
  color: #fff; font-family: var(--font-testo); font-size: 16px; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,113,26,0.45); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.form-feedback { display: none; margin-top: 4px; padding: 14px 18px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.form-feedback.success { display: block; background: rgba(127,217,106,0.18); border: 1px solid rgba(127,217,106,0.35); color: #C8FFC0; }
.form-feedback.error { display: block; background: rgba(255,100,100,0.18); border: 1px solid rgba(255,100,100,0.35); color: #FFD0D0; }

.wa-card { padding: 40px 32px; background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 28px; text-align: center; }
.wa-card p { margin-bottom: 24px; font-size: 17px; line-height: 1.65; color: var(--testo-tenue); }
.wa-card .btn-whatsapp { width: 100%; margin: 0; }

@media (max-width: 900px) {
  .page-head .inner { padding: 56px 20px 32px; }
  .page-intro { font-size: 18px; }
  .perks { grid-template-columns: 1fr; gap: 16px; padding: 0 20px 56px; }
  .perk { padding: 22px 20px; }
  .join .inner { padding: 56px 20px; }
  .join-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-card { padding: 32px 22px; border-radius: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .wa-card { padding: 32px 22px; border-radius: 20px; }
}

/* 11. BLOG (blog/ e blog/nome-articolo/) ------------------ */

/* elenco articoli */
.blog-head { padding-top: var(--nav-h); }
.blog-head .inner { padding: 80px 80px 32px; text-align: center; }
.blog-head h1 {
  margin-bottom: 16px; font-family: var(--font-titoli); font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 900; line-height: 1.1; letter-spacing: -1.5px;
}
.blog-head h1 em { font-style: italic; color: var(--arancio); }
.blog-intro { max-width: 680px; margin: 0 auto; font-size: 19px; line-height: 1.7; color: var(--testo); }

.filtri { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 8px 20px 40px; }
.filtro {
  padding: 9px 18px; background: transparent; border: 1.5px solid var(--verde); border-radius: 100px; cursor: pointer;
  color: var(--verde); font-family: var(--font-testo); font-size: 15px; font-weight: 500; transition: background 0.2s, color 0.2s;
}
.filtro:hover { background: rgba(58,125,44,0.08); }
.filtro[aria-pressed="true"] { background: var(--verde); color: #fff; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1180px; margin: 0 auto; padding: 0 80px 40px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 20px;
  color: inherit; text-decoration: none; transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.post-card[hidden] { display: none; }
.post-card-img { position: relative; }
.post-card-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.post-card h2 { font-family: var(--font-titoli); font-size: 23px; font-weight: 700; line-height: 1.25; }
.post-card p { font-size: 16px; line-height: 1.6; color: var(--testo-tenue); }
.post-cat { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--arancio); }
.post-date { font-size: 14px; color: var(--testo-tenue); }
.filtri-vuoto { max-width: 560px; margin: 0 auto; padding: 0 20px 40px; text-align: center; font-size: 17px; line-height: 1.6; color: var(--testo-tenue); }

/* articolo */
.articolo { padding-top: var(--nav-h); }
.articolo .inner { max-width: 760px; padding: 48px 20px 24px; }
.briciole { margin-bottom: 28px; font-size: 14px; color: var(--testo-tenue); }
.briciole a { color: var(--verde); text-decoration: none; }
.briciole a:hover { text-decoration: underline; }
.articolo h1 {
  margin: 10px 0 16px; font-family: var(--font-titoli); font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 900; line-height: 1.12; letter-spacing: -1px;
}
.post-meta { margin-bottom: 32px; font-size: 15px; color: var(--testo-tenue); }
.post-meta a { color: var(--verde); }
.post-hero { position: relative; margin: 0 0 40px; }
.post-hero img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }

.post-body { font-size: 19px; line-height: 1.8; color: var(--testo); }
.post-body > * + * { margin-top: 20px; }
.post-body h2 { margin-top: 48px; font-family: var(--font-titoli); font-size: 30px; font-weight: 700; line-height: 1.25; color: var(--nero); }
.post-body h3 { margin-top: 32px; font-family: var(--font-titoli); font-size: 23px; font-weight: 700; color: var(--nero); }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li + li { margin-top: 8px; }
.post-body strong { color: var(--nero); }
.post-body a { color: var(--verde); font-weight: 500; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.5; }
.post-body th, .post-body td { padding: 12px 14px; border-bottom: 1px solid rgba(0,0,0,0.1); text-align: left; vertical-align: top; }
.post-body th { font-weight: 600; color: var(--nero); background: var(--avorio-scuro); }

/* testo provvisorio da completare: evidenziato in giallo, va tolto prima di pubblicare */
.bozza { padding: 1px 4px; background: #FFF1B8; border-radius: 4px; color: #6B4E00; }

/* box finali */
.box-substack {
  margin-top: 56px; padding: 36px 32px; background: var(--verde); border-radius: 24px; color: #fff; text-align: center;
}
.box-substack h2 { margin: 0 0 10px; font-family: var(--font-titoli); font-size: 28px; font-weight: 700; color: #fff; }
.box-substack p { margin: 0 auto 22px; max-width: 520px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.9); }
.btn-substack {
  display: inline-block; padding: 15px 28px; background: var(--arancio); border-radius: 100px;
  color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-substack:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.box-produttori {
  margin-top: 24px; padding: 22px 26px; background: var(--avorio-scuro); border-left: 4px solid var(--arancio); border-radius: 0 16px 16px 0;
  font-size: 17px; line-height: 1.6; color: var(--testo);
}
.box-produttori a { color: var(--verde); font-weight: 600; }
.altri-articoli { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(0,0,0,0.1); font-size: 17px; }
.altri-articoli a { color: var(--verde); font-weight: 600; text-decoration: none; }
.blog-substack { max-width: 760px; margin: 0 auto; padding: 0 20px 96px; }

@media (max-width: 900px) {
  .blog-head .inner { padding: 56px 20px 24px; }
  .blog-intro { font-size: 18px; }
  .filtri { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 4px 20px 28px; -webkit-overflow-scrolling: touch; }
  .filtro { flex: 0 0 auto; }
  .post-grid { grid-template-columns: 1fr; padding: 0 20px 32px; }
  .articolo .inner { padding: 32px 20px 16px; }
  .post-body { font-size: 18px; }
  .post-body h2 { font-size: 26px; }
  .post-body table { font-size: 15px; }
  .post-body th, .post-body td { padding: 10px 8px; }
  .box-substack { padding: 30px 22px; }
  .blog-substack { padding-bottom: 72px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); padding: 0 40px 40px; }
  .nav-links { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card, .filtro, .btn-substack { transition: none; }
}
