/* ============================================================
   article.css — Planea Impact
   Stili comuni a tutti gli articoli del sito.
   Non modificare questi stili direttamente nei file HTML:
   ogni modifica qui si applica a tutti gli articoli.
   ============================================================ */

/* — Layout — */
.article-page { padding: 7rem 0 5rem; min-height: 100vh; }
.article-page .container { max-width: 820px; }

/* — Navigation back — */
.article-back { display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; color: var(--green-forest); margin-bottom: 2rem; transition: gap 0.2s; }
.article-back:hover { gap: 0.7em; color: var(--green-dark); }

/* — Header — */
.article-header { margin-bottom: 2.5rem; }
.article-tag { display: inline-block; background: var(--green-ultra); color: var(--green-forest); font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3em 0.85em; border-radius: 2rem; margin-bottom: 1rem; }
.article-header h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.2; margin-bottom: 1rem; }
.article-meta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; font-family: var(--font-head); font-size: 0.82rem; color: var(--text-muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.85rem 0; margin-top: 1.25rem; }
.article-intro { font-size: 1.1rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }

/* — Body typography — */
.article-body h2 { font-size: 1.45rem; color: var(--text-dark); margin: 2.8rem 0 0.9rem; }
.article-body h3 { font-size: 1.1rem; color: var(--green-forest); margin: 1.8rem 0 0.6rem; font-family: var(--font-head); font-weight: 700; }
.article-body p { font-size: 0.95rem; line-height: 1.9; margin-bottom: 1rem; color: var(--text-mid); }
.article-body ul, .article-body ol { margin: 0.5rem 0 1.2rem 1.3rem; }
.article-body ul li, .article-body ol li { font-size: 0.95rem; line-height: 1.8; margin-bottom: 0.45rem; color: var(--text-mid); }
.article-body ul li { list-style: disc; }
.article-body strong { color: var(--text-dark); font-weight: 700; }
.article-body a { color: var(--green-forest); text-decoration: underline; }
.article-body a:hover { color: var(--green-dark); }

/* ════════════════════════════════════════════
   COMPONENTI VISIVI
════════════════════════════════════════════ */

/* — 1. Callout boxes — */
.callout { border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin: 1.8rem 0; }
.callout-green { background: var(--green-ultra); border-left: 4px solid var(--green-mid); }
.callout-sand  { background: var(--sand); border-left: 4px solid #c8b87a; }
.callout-warn  { background: #fff8e1; border-left: 4px solid #f59e0b; }
.callout p { margin: 0; font-size: 0.9rem; line-height: 1.75; }
.callout strong { display: block; margin-bottom: 0.4rem; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* — 2. Steps (processo numerato con cerchi verde) — */
.steps { margin: 1.5rem 0 2rem; }
.step { display: flex; gap: 1.25rem; margin-bottom: 1.75rem; align-items: flex-start; }
.step-num { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--green-forest); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-content strong { font-family: var(--font-head); font-weight: 700; color: var(--text-dark); display: block; margin-bottom: 0.3rem; }
.step-content p { margin: 0; font-size: 0.9rem; line-height: 1.75; }

/* — 3. Timeline con numeri (es. tappe normative) — */
.timeline { margin: 1.5rem 0 2rem; position: relative; }
.timeline::before { content: ''; position: absolute; left: 1.1rem; top: 0; bottom: 0; width: 2px; background: var(--green-pale); }
.timeline-item { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; position: relative; }
.timeline-dot { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--green-mid); color: #fff; font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; }
.timeline-content { padding-top: 0.1rem; }
.timeline-content strong { font-family: var(--font-head); font-weight: 700; color: var(--text-dark); display: block; margin-bottom: 0.2rem; }
.timeline-content p { margin: 0; font-size: 0.88rem; }

/* — 4. Timeline semplice con pallini (es. cronologia eventi) — */
.tl-item { display: flex; gap: 1.25rem; margin-bottom: 1.25rem; }
.tl-dot { display: flex; flex-direction: column; align-items: center; }
.tl-dot span { width: 14px; height: 14px; border-radius: 50%; background: var(--green-forest); flex-shrink: 0; margin-top: 0.3rem; }
.tl-dot::after { content: ''; width: 2px; background: var(--border); flex: 1; margin-top: 0.4rem; }
.tl-item:last-child .tl-dot::after { display: none; }
.tl-content { padding-bottom: 0.5rem; }
.tl-content strong { font-family: var(--font-head); font-size: 0.9rem; color: var(--text-dark); display: block; margin-bottom: 0.2rem; }
.tl-content p { font-size: 0.88rem; color: var(--text-mid); margin: 0; line-height: 1.65; }

/* — 5. Stat grid (numeri grandi su sfondo verde chiaro) — */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 2rem; }
.stat-box { background: var(--green-ultra); border-radius: var(--radius-md); padding: 1.25rem 1rem; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--green-forest); display: block; line-height: 1.1; }
.stat-label { font-family: var(--font-head); font-size: 0.78rem; color: var(--text-mid); margin-top: 0.35rem; display: block; line-height: 1.4; }

/* — 6. Stat row (variante con bordo su sfondo bianco) — */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.75rem 0; }
.stat-row .stat-box { background: var(--warm-white); border: 1px solid var(--border); }
.stat-row .stat-box .num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--green-forest); line-height: 1; display: block; margin-bottom: 0.35rem; }
.stat-row .stat-box p { font-size: 0.8rem; color: var(--text-light); margin: 0; line-height: 1.5; }

/* — 7. KPI cards (2 colonne, con numero e descrizione) — */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0 2rem; }
.kpi-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem 1.25rem; }
.kpi-card .kpi-num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--green-forest); display: block; line-height: 1; margin-bottom: 0.35rem; }
.kpi-card h4 { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.4rem; }
.kpi-card p { font-size: 0.83rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* — 8. Grid comparativa 2 colonne — */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.5rem 0 2rem; }
.compare-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; }
.compare-card h4 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--green-forest); margin-bottom: 0.75rem; }
.compare-card ul { margin: 0; padding-left: 1.1rem; }
.compare-card ul li { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 0.35rem; }

/* — 9. Benefit grid (2 col con icona emoji) — */
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 2rem; }
.benefit-card { background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; }
.benefit-card .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.benefit-card h4 { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.4rem; }
.benefit-card p { font-size: 0.83rem; color: var(--text-mid); margin: 0; line-height: 1.6; }

/* — 10. Grid vantaggi (3 col auto-fit con icona) — */
.vantaggi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin: 1.5rem 0 2rem; }
.vantaggio-card { background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; }
.vantaggio-card .icon { font-size: 1.6rem; margin-bottom: 0.6rem; }
.vantaggio-card h4 { font-size: 0.95rem; color: var(--text-dark); margin-bottom: 0.4rem; font-family: var(--font-head); font-weight: 700; }
.vantaggio-card p { font-size: 0.85rem; color: var(--text-mid); margin: 0; line-height: 1.65; }

/* — 11. Scope box (3 colonne colorate senza gap, bordo unico) — */
.scope-box { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin: 1.5rem 0 2rem; }
.scope-col { padding: 1.1rem 1.25rem; }
.scope-col:nth-child(1) { background: var(--green-dark); color: #fff; }
.scope-col:nth-child(2) { background: var(--green-forest); color: #fff; }
.scope-col:nth-child(3) { background: var(--green-mid); color: var(--green-dark); }
.scope-col h4 { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; opacity: 0.75; }
.scope-col .scope-label { font-family: var(--font-head); font-size: 1rem; font-weight: 800; display: block; margin-bottom: 0.6rem; }
.scope-col ul { margin: 0; padding-left: 1rem; }
.scope-col ul li { font-size: 0.82rem; line-height: 1.6; margin-bottom: 0.25rem; opacity: 0.9; }

/* — 12. GRI module grid (3 colonne con sfondo verde pieno) — */
.gri-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 2rem; }
.gri-module { border-radius: var(--radius-md); padding: 1.25rem; text-align: center; }
.gri-module.universal { background: var(--green-dark); color: #fff; }
.gri-module.sector { background: var(--green-forest); color: #fff; }
.gri-module.topic { background: var(--green-mid); color: var(--green-dark); }
.gri-module h4 { font-size: 0.85rem; font-family: var(--font-head); font-weight: 800; margin-bottom: 0.4rem; color: inherit; }
.gri-num { font-size: 1.4rem; font-weight: 800; font-family: var(--font-head); display: block; margin-bottom: 0.3rem; }
.gri-module p { font-size: 0.78rem; opacity: 0.88; margin: 0; line-height: 1.5; color: inherit; }

/* — 13. Matrix box (riquadro informativo con sfondo chiaro) — */
.matrix-box { background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; margin: 1.5rem 0; }
.matrix-box h4 { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; }

/* — 14. Badge pill (sì/no/parziale in tabella) — */
.badge { display: inline-block; padding: 0.2em 0.7em; border-radius: 2rem; font-size: 0.75rem; font-weight: 700; font-family: var(--font-head); }
.badge-yes     { background: #d1fae5; color: #065f46; }
.badge-no      { background: #fee2e2; color: #991b1b; }
.badge-partial { background: #fef3c7; color: #92400e; }

/* — 15. Sector block (riquadro con header verde e tabella interna) — */
.sector-block { border: 1px solid var(--border); border-radius: var(--radius-md); margin: 1.5rem 0 2rem; overflow: hidden; }
.sector-header { background: var(--green-dark); color: #fff; padding: 0.85rem 1.25rem; font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; }
.sector-body { padding: 1.25rem; }
.sector-body table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.sector-body table th { text-align: left; padding: 0.5rem 0.75rem; font-family: var(--font-head); font-weight: 700; color: var(--green-forest); border-bottom: 2px solid var(--border); }
.sector-body table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); color: var(--text-mid); vertical-align: top; }

/* — Tabella dati — */
.data-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: 0.875rem; }
.data-table th { background: var(--green-dark); color: #fff; font-family: var(--font-head); font-weight: 600; text-align: left; padding: 0.75rem 1rem; }
.data-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-mid); vertical-align: top; }
.data-table tr:nth-child(even) td { background: var(--green-ultra); }

/* — CTA block — */
.article-cta { background: var(--green-dark); color: #fff; border-radius: var(--radius-lg); padding: 2.5rem; margin: 3rem 0 1rem; text-align: center; }
.article-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.75rem; }
.article-cta p { color: var(--green-soft); font-size: 0.95rem; margin-bottom: 1.5rem; }
.article-cta .btn { background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.article-cta .btn:hover { background: #fff; }

/* — Related articles — */
.related-articles { margin: 3rem 0; padding-top: 2rem; border-top: 1px solid var(--border); }
.related-articles h3 { font-size: 1rem; font-family: var(--font-head); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.25rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.related-card { background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; text-decoration: none; transition: border-color 0.25s, transform 0.25s; display: block; }
.related-card:hover { border-color: var(--green-mid); transform: translateY(-3px); }
.related-card .tag { font-size: 0.7rem; font-weight: 700; font-family: var(--font-head); text-transform: uppercase; color: var(--green-forest); margin-bottom: 0.5rem; display: block; }
.related-card h4 { font-size: 0.9rem; color: var(--text-dark); line-height: 1.4; margin: 0; }

@media (max-width: 768px) {
  .article-page { padding: 5rem 0 3rem; }
  .stat-grid, .stat-row, .kpi-grid, .compare-grid, .benefit-grid,
  .scope-box, .gri-modules { grid-template-columns: 1fr; }
  .vantaggi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .scope-box { grid-template-columns: 1fr; }
}
