/* Blog v2 — usa la palette dark di blog.css (niente colori chiari hardcoded) */
.b-breadcrumbs{display:flex;gap:8px;align-items:center;margin-bottom:26px;overflow:hidden;color:var(--faint);font-size:13px;white-space:nowrap}.b-breadcrumbs span:last-child{overflow:hidden;text-overflow:ellipsis}.b-breadcrumbs a:hover{color:var(--cyan)}.b-post-excerpt{max-width:850px;margin:18px auto 30px;color:var(--muted);font-size:20px;line-height:1.6}.b-cover{margin:34px auto 0}.b-cover img{display:block;width:100%;height:auto}.b-article-layout{display:grid;grid-template-columns:220px minmax(0,760px);gap:55px;justify-content:center;align-items:start}.b-toc{position:sticky;top:24px;margin-top:45px;padding:17px;border:1px solid var(--border);border-radius:12px;background:var(--bg-soft)}.b-toc>strong{font-size:13px;color:var(--foreground)}.b-toc nav{display:grid;gap:8px;margin-top:11px}.b-toc a{color:var(--muted);font-size:12px;line-height:1.35}.b-toc a.level-3{padding-left:11px}.b-toc a:hover{color:var(--cyan)}.b-content h2,.b-content h3{scroll-margin-top:25px}.b-author{display:flex;gap:18px;margin:45px 0;padding:24px;border:1px solid var(--border);border-radius:14px;background:var(--bg-soft)}.b-author-mark{width:56px;height:56px;flex:0 0 56px;border-radius:50%;object-fit:cover;border:1px solid var(--border);background:var(--bg)}.b-author span{display:block;color:var(--faint);font-size:12px}.b-author strong{font-size:17px;color:var(--foreground)}.b-author p{margin:5px 0;color:var(--muted);font-size:13px}.b-author a{color:var(--cyan);font-size:13px;font-weight:750}.b-cta-box h2{margin:0;font-size:1.15rem;color:var(--foreground)}.b-cta-box p{margin:-5px 0 18px;color:var(--muted)}.b-related{margin-top:70px;padding:65px 0;background:var(--bg-soft);border-top:1px solid var(--border-soft)}.b-related h2{margin:6px 0 25px;font-size:32px}.b-related .b-card h3{font-size:19px}.b-card .body h2{margin:10px 0 8px;font-size:20px;line-height:1.25;font-weight:600}.b-content img{max-width:100%;height:auto;border-radius:12px}.b-content a{text-decoration:underline;text-decoration-color:rgba(37,99,235,.4);text-underline-offset:3px}
@media(max-width:960px){.b-article-layout{grid-template-columns:minmax(0,760px)}.b-toc{position:static;margin:28px 0 0}.b-toc nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.b-post-excerpt{font-size:17px}.b-toc nav{grid-template-columns:1fr}.b-author{align-items:flex-start;padding:18px}.b-related{padding:45px 0}}

/* Nota di trasparenza AI in calce all'articolo (AI Act art. 50) */
.b-ai-note{max-width:850px;margin:24px auto 0;padding:14px 18px;border-left:3px solid var(--cyan);background:var(--bg-soft);color:var(--muted);font-size:14px;line-height:1.6;text-align:left}
.b-ai-note a{color:var(--foreground);text-decoration:underline;text-decoration-color:var(--border)}
.b-cover figcaption{padding:12px 0;color:var(--muted);font-size:13px;line-height:1.5;text-align:left}
.b-ai-note a:hover{color:var(--cyan)}

/* Editorial presentation for the public blog. All content and article URLs
   remain supplied by the PHP archive and individual post templates. */
.b-hero{padding:5.5rem 0 4.25rem;background:var(--bg-soft)}
.b-hero .wrap{position:relative}
.b-hero .wrap::after{content:"";position:absolute;right:3.5rem;top:0;width:12rem;height:12rem;border-top:1px solid var(--border);border-right:1px solid var(--border);pointer-events:none}
.b-hero h1{max-width:760px;font-size:clamp(2.8rem,5vw,5.1rem);line-height:1.03;letter-spacing:-.055em}
.b-hero p{max-width:640px;font-size:1.08rem;line-height:1.7}
.b-tools{padding-top:2rem;align-items:flex-start}
.b-filters{border-radius:0;background:none;padding:0;border:0;gap:.5rem}
.b-fchip{border:1px solid var(--border);border-radius:0;padding:.55rem .8rem;font-size:12px}
.b-fchip.is-active{background:var(--accent);border-color:var(--accent);box-shadow:none}
.b-search input[type="search"]{border-radius:0;background:var(--bg-soft)}
.b-search button{border-radius:0;top:4px;bottom:4px}
.b-grid{gap:1rem;padding-top:2.5rem}
.b-card{border-radius:0;background:var(--surface);box-shadow:none;min-width:0}
.b-card:hover{transform:none;border-color:var(--cyan);box-shadow:none;background:var(--surface-2)}
.b-card .thumb{border-bottom:1px solid var(--border);background:var(--bg-soft)}
.b-card .thumb img{transition:transform .35s ease}
.b-card .body{padding:1.5rem}
.b-card .body h2,.b-card h3{font-size:clamp(1.12rem,1.5vw,1.38rem);line-height:1.32;margin-top:.7rem}
.b-card p{font-size:13px;line-height:1.65}
.b-cat{font-family:var(--font-mono);font-size:10px;letter-spacing:.11em;text-transform:uppercase}
.b-meta{margin-top:1.25rem;padding-top:.9rem;border-top:1px solid var(--border);font-size:11px}
.b-read{display:flex;justify-content:space-between;align-items:center;margin-top:1rem;color:var(--foreground);font-size:12px;font-weight:600}
.b-read span{color:var(--cyan);font-size:1.2rem;transition:transform .2s ease}
.b-card:hover .b-read span{transform:translateX(4px)}
.b-grid--featured .b-card:first-child{border-color:rgba(79,127,240,.5)}
.b-grid--featured .b-card:first-child .body{justify-content:center}
.b-grid--featured .b-card:first-child h2{font-size:clamp(1.65rem,2.6vw,2.55rem);line-height:1.16}
.b-grid--featured .b-card:first-child p{font-size:14px}
.b-post-hero{padding:4.5rem 0 3.5rem;background:var(--bg-soft)}
.b-post-hero h1{max-width:930px;font-size:clamp(2.55rem,5vw,4.8rem);line-height:1.08;letter-spacing:-.05em}
.b-post-excerpt{margin:1.2rem 0 2.2rem;max-width:760px}
.b-cover{max-width:100%;border-radius:0;border-color:var(--border);margin-top:2.5rem}
.b-cover img{max-height:680px;object-fit:cover}
.b-article-layout{grid-template-columns:minmax(175px,220px) minmax(0,760px);gap:clamp(2rem,5vw,5rem)}
.b-toc{top:7rem;border-radius:0;background:var(--bg-soft)}
.b-content{max-width:none;font-size:16px;line-height:1.8}
.b-content h2{font-size:1.9rem;line-height:1.22;margin-top:3rem}
.b-content h3{font-size:1.4rem;line-height:1.3;margin-top:2rem}
.b-author{border-radius:0;background:var(--bg-soft)}
.b-cta-box{max-width:none;border-radius:0;text-align:left;background:var(--bg-soft);border-left:3px solid var(--accent)}
.b-cta-box a.btn{border-radius:0}
.b-related{margin-top:5rem}
@media(min-width:640px){.b-grid--featured .b-card:first-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.b-grid--featured .b-card:first-child .thumb{aspect-ratio:auto;height:100%;min-height:320px;border-bottom:0;border-right:1px solid var(--border)}.b-grid--featured .b-card:first-child .thumb img{height:100%;object-fit:cover}.b-grid--featured .b-card:first-child .body{padding:clamp(1.5rem,3vw,3rem)}}
.b-grid--featured .b-card:first-child .body:only-child{grid-column:1/-1}
@media(min-width:1024px){.b-grid--featured{grid-template-columns:repeat(3,minmax(0,1fr))}.b-grid--featured .b-card:first-child{grid-column:span 2}}
@media(max-width:960px){.b-article-layout{grid-template-columns:minmax(0,760px)}.b-toc{top:auto}}
@media(max-width:639px){.b-hero{padding:3.5rem 0 3rem}.b-hero .wrap::after{display:none}.b-filters{width:100%;justify-content:flex-start}.b-fchip{flex:0 1 auto}.b-post-hero{padding:3rem 0 2rem}.b-content{padding:2.5rem 0}.b-cta-box{padding:1.5rem}}
@media(prefers-reduced-motion:reduce){.b-read span{transition:none}.b-card:hover .b-read span{transform:none}}

/* Keep the standalone PHP footer in step with the main site's footer. */
.b-footer{margin-top:0;border-top:1px solid var(--border)}
.b-footer>.wrap{max-width:110rem;padding:5rem clamp(1.25rem,3vw,4rem) 4rem}
.b-footer-grid{grid-template-columns:minmax(0,.95fr) minmax(0,2.1fr);gap:clamp(3rem,5vw,5rem)}
.b-footer-company{display:block;min-width:0}
.b-footer-company p{max-width:28rem;margin:1.25rem 0 0;font-size:15px;line-height:1.75}
.b-footer-logo{margin:0}
.b-footer-logo img{height:48px}
.b-newsletter{margin-top:2.25rem;padding-left:1.25rem;border-left:2px solid var(--accent)}
.b-newsletter-heading{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}
.b-newsletter-heading strong{color:var(--foreground);font-size:16px}
.b-newsletter-heading span{border:1px solid rgba(79,127,240,.3);padding:.2rem .5rem;color:var(--cyan);font-size:11px}
.b-newsletter p{margin:.55rem 0 0;font-size:14px;line-height:1.55}
.b-footer-links-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) minmax(0,1.25fr);gap:2.5rem;min-width:0}
.b-footer-column{gap:.7rem;min-width:0}
.b-footer-column strong{width:100%;margin:0 0 .4rem;padding-bottom:1rem;border-bottom:1px solid var(--border);font-size:14px}
.b-footer-column a{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.b-footer-contact small{font-size:13px;color:var(--faint)}
.b-footer-socials{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.b-footer-socials a{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--border);color:var(--muted);font-size:12px;font-weight:700;line-height:1;text-transform:uppercase}
.b-footer-socials a:hover{border-color:var(--cyan);color:var(--cyan)}
.b-footer-socials svg{width:17px;height:17px}
.b-footer-bottom{gap:1.4rem;margin-top:3.5rem;padding-top:2rem;border-color:var(--border)}
.b-foot-links{gap:.5rem 1.25rem;color:var(--faint)}
.b-footer-meta{justify-content:flex-start;flex-wrap:wrap;gap:.5rem 1rem}
.b-footer-meta>span:first-child{margin-right:auto}
.b-rating{margin:0}
.b-footer .b-review-link{border:1px solid var(--border);padding:.3rem .7rem;border-radius:999px;color:var(--foreground)}
.b-footer .b-review-link:hover{border-color:var(--cyan);color:var(--cyan)}
@media(max-width:1050px){.b-footer-grid{grid-template-columns:1fr;gap:3rem}.b-footer-company{max-width:32rem}}
@media(max-width:670px){.b-footer>.wrap{padding-top:4rem}.b-footer-links-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:2.25rem}.b-footer-contact{grid-column:1/-1}}
@media(max-width:420px){.b-footer-links-grid{grid-template-columns:1fr}.b-footer-contact{grid-column:auto}.b-footer-meta>span:first-child{width:100%}}
