/* Raviglie · stili del blog (si appoggiano su styles.css) */
.blog-hero { padding: clamp(48px, 8vw, 88px) 0 clamp(28px, 4vw, 44px); background: var(--tint); border-bottom: 1px solid var(--line); }
.blog-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: .5em; max-width: 820px; }
.blog-hero .lead { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 680px; margin: 0; }

.crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 1.25rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: #9AA7B6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-strong); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-size: .92rem; color: var(--muted); margin: 1.25rem 0 0; }
.post-meta .cat { display: inline-block; padding: .2rem .65rem; border-radius: 999px; background: #fff; border: 1px solid #BFE0F8; color: var(--accent-strong); font-weight: 600; font-size: .8rem; letter-spacing: .02em; }
.post-meta span + span::before { content: "·"; margin-right: .9rem; color: #9AA7B6; }
.post-meta .cat + span::before { content: none; margin: 0; }

.post { padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); }
.post .container { max-width: 760px; }
.prose { font-size: 1.12rem; line-height: 1.75; color: #1D2838; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 2.4em 0 .6em; scroll-margin-top: 130px; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5em; padding-left: .2rem; }
.prose li::marker { color: var(--accent-strong); }
.prose strong { color: var(--ink); }
.prose a { font-weight: 500; }

.tldr { background: var(--tint); border: 1px solid #CFE6F8; border-left: 4px solid var(--accent-strong); border-radius: var(--radius); padding: 1.15rem 1.35rem; margin: 0 0 2rem; }
.tldr strong.t { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: .4rem; }
.tldr p:last-child, .tldr ul:last-child { margin-bottom: 0; }
.tldr ul { margin-bottom: 0; }

.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; margin: 0 0 2.2rem; background: #fff; }
.toc strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.toc ol { list-style: decimal; padding-left: 1.2rem; margin: 0; font-size: 1rem; line-height: 1.5; }
.toc li { margin-bottom: .35rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.callout { background: #FFF9EC; border: 1px solid #F2DFA9; border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.6rem 0; font-size: 1.02rem; }
.callout strong:first-child { display: block; margin-bottom: .25rem; }
.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-size: .98rem; line-height: 1.5; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--tint); font-size: .85rem; letter-spacing: .03em; }
.prose tr:last-child td { border-bottom: 0; }

.post-faq { margin-top: 3rem; }
.post-faq h2 { margin-top: 0; }
.post-faq .faq details p { font-size: 1.02rem; }

.post-cta { margin: 3rem 0 0; padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: 20px; background: var(--accent-strong); color: #fff; }
.post-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0 0 .5rem; }
.post-cta p { color: #E7F3FC; margin: 0 0 1.25rem; font-size: 1.05rem; line-height: 1.6; }
.post-cta .cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.post-cta .cta-links { margin: 1.1rem 0 0; font-size: .95rem; color: #E7F3FC; }
.post-cta .cta-links a { color: #fff; }

.post-author { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }

.related { background: var(--tint); padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.5rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.card-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem 1.2rem; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-post:hover { border-color: var(--accent); box-shadow: 0 8px 28px rgba(14, 23, 38, .07); transform: translateY(-2px); color: var(--ink); }
.card-post .cat { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: .6rem; }
.card-post h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: .55rem; }
.card-post p { color: var(--muted); font-size: .97rem; line-height: 1.55; margin: 0 0 1rem; }
.card-post .more { margin-top: auto; font-size: .88rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; }
.card-post .more b { color: var(--accent-strong); font-weight: 600; }
.cards.featured .card-post:first-child { grid-column: 1 / -1; padding: 1.8rem 1.8rem 1.5rem; }
.cards.featured .card-post:first-child h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.blog-list { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.blog-list h2.sec { font-size: 1.35rem; margin: 2.4rem 0 1rem; }
.blog-list h2.sec:first-child { margin-top: 0; }

@media (max-width: 640px) {
  .prose { font-size: 1.05rem; }
  .prose th, .prose td { padding: .6rem .7rem; }
  .post-cta .cta-row .btn { width: 100%; }
}
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
