/* Blog: elenco articoli e pagina articolo (si appoggia a site.css per colori, font, header e footer) */
.crumbs { font-size: 0.92rem; color: var(--ink-soft); margin: 8px 0 0; }
.crumbs a { color: var(--ink-soft); }
.crumbs span { margin: 0 6px; }

.blog-head { padding: 24px 0 8px; }
.blog-head h1 { font-weight: 760; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 18ch; margin-top: 18px; }
.blog-head .intro { margin-top: 16px; }

.posts { list-style: none; padding: 0; margin: 40px 0 96px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.posts li { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.posts .thumb { display: block; aspect-ratio: 2 / 1; background: var(--porcelain); border-bottom: 1px solid var(--line); }
.posts .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.posts .body { padding: 24px 26px 28px; }
.posts h2 { font-size: 1.45rem; font-weight: 700; line-height: 1.2; max-width: none; letter-spacing: -0.01em; }
.posts h2 a { color: var(--ink); text-decoration: none; }
.posts h2 a:hover { color: var(--cobalt); }
.posts p { margin: 10px 0 0; color: var(--ink-soft); }
.posts .meta { font-size: 0.9rem; margin: 0 0 8px; }

.post { padding: 8px 0 96px; }
.post h1 { font-weight: 760; font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1.06; letter-spacing: -0.025em; margin: 18px 0 0; }
.post .meta { color: var(--ink-soft); font-size: 0.95rem; margin: 16px 0 0; }
.post .standfirst { font-size: 1.2rem; color: var(--ink-soft); margin: 24px 0 0; }
.post h2 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; max-width: none; margin: 52px 0 0; }
.post h2 .n { color: var(--cobalt); margin-right: 6px; }
.post h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 0; }
.post p, .post ul, .post ol { margin: 16px 0 0; }
.post li + li { margin-top: 8px; }
.post strong { font-weight: 650; }
.post code, .post .path { font-family: inherit; background: var(--tint); border-radius: 6px; padding: 1px 7px; font-size: 0.94em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.tldr { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px 28px; margin: 32px 0 0; }
.tldr h2 { font-size: 1.1rem; margin: 0; }
.tldr ol { margin: 12px 0 0; padding-left: 22px; columns: 2; column-gap: 48px; }
.tldr li { break-inside: avoid; }

.post figure { margin: 36px 0 0; }
.post figure img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); background: var(--porcelain); }
.post figcaption { margin-top: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.post .cover { margin-top: 32px; }

.tip { border-left: 4px solid var(--ochre); background: var(--ochre-tint); border-radius: 0 16px 16px 0; padding: 16px 20px; margin: 24px 0 0; }
.tip p { margin: 0; }

.post-cta { background: var(--ink); color: #fff; border-radius: 28px; padding: 36px; margin: 56px 0 0; }
.post-cta h2 { color: #fff; margin: 0; font-size: 1.5rem; }
.post-cta p { color: #C9D0E4; margin: 12px 0 22px; }
.post-cta .btn { background: var(--ochre); color: var(--ink); box-shadow: 0 2px 0 #B98226; }
.post-cta .btn:hover { background: #F2BA55; }
.post-cta .btn.alt { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }

@media (max-width: 760px) { .tldr ol { columns: 1; } }
@media (max-width: 520px) {
  .posts .body { padding: 20px; }
  .post-cta { padding: 28px 22px; }
  .tldr { padding: 20px; }
}
