/* Blog stylesheet - coerente con la landing ma più tecnico e leggibile,
   NESSUNO slideshow, solo sfondo nero. */

/* Titoli in BebasNeue, come la landing */
@font-face {
    font-family: 'BebasNeueRegular';
    src: url('../fonts/BebasNeue-webfont.eot');
    src: url('../fonts/BebasNeue-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/BebasNeue-webfont.woff') format('woff'),
         url('../fonts/BebasNeue-webfont.ttf') format('truetype'),
         url('../fonts/BebasNeue-webfont.svg#BebasNeueRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    background: #000;
}

/* Corpo articoli: sans-serif tecnico */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Ubuntu",
                 system-ui, sans-serif;
    color: #f3e6dd;
    font-size: 17px;
    line-height: 1.8;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: #ffb25a;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 18px 40px;
    position: relative;
    z-index: 2;
}

/* Header coerente con la landing, ma ridotto */

header.site-header {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-align: left;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.6);
}

.site-header a.home-link {
    font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif;
    font-size: 26px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    display: inline-block;
}

.site-header a.home-link:hover {
    color: #ffb25a;
    text-decoration: none;
}

.site-header .tagline {
    margin-top: 4px;
    font-size: 13px;
    color: #f8f8f8;
    font-style: italic;
}

main {
    margin-top: 18px;
}

/* Box articolo */

article.post {
    background: rgba(0, 0, 0, 0.78);
    border-radius: 16px;
    padding: 22px 20px 24px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.75);
}

.post-header {
    margin-bottom: 16px;
}

.post-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #ffb25a;
    margin-bottom: 4px;
}

h1.post-title {
    font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif;
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 4px;
    color: #ffffff;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
}

.post-meta {
    font-size: 14px;
    color: #d0bfb3;
}

.post-meta span + span::before {
    content: "·";
    margin: 0 6px;
}

.reading-note {
    font-size: 14px;
    color: #c3b2a7;
    margin: 8px 0 14px;
    font-style: italic;
}

/* Contenuto articoli */

.post-content {
    font-size: 17px;
}

.post-content p {
    margin: 0 0 12px;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content h2 {
    font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif;
    font-size: 22px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 22px 0 8px;
    color: #ffffff;
}

.post-content h3 {
    font-size: 17px;
    margin: 16px 0 6px;
    color: #ffe0b5;
}

.post-content ul,
.post-content ol {
    padding-left: 22px;
    margin: 0 0 12px;
}

.post-content li + li {
    margin-top: 4px;
}

.post-content code {
    font-family: Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 14px;
    background: rgba(255,255,255,0.05);
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.12);
}

/* Box evidenza */

.highlight-box {
    border-left: 3px solid #ffb25a;
    padding: 9px 11px;
    background: rgba(255,255,255,0.03);
    border-radius: 0 10px 10px 0;
    font-size: 15px;
    color: #d0bfb3;
    margin: 16px 0 17px;
}

/* Link a CV / corporate / ANIP */

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    margin: 18px 0 4px;
}

.link-card {
    border-radius: 10px;
    border: 1px dashed rgba(255,255,255,0.22);
    padding: 8px 9px;
    font-size: 15px;
    background: rgba(0,0,0,0.6);
}

.link-card-title {
    font-weight: 600;
    margin-bottom: 2px;
    color: #ffe0b5;
}

/* Link “torna all’indice” */

.back-to-index {
    margin-top: 18px;
    font-size: 14px;
}

.back-to-index a {
    text-decoration: none;
}

.back-to-index a:hover {
    text-decoration: underline;
}

/* Indice blog */

.blog-header {
    margin-bottom: 14px;
}

.blog-header h1 {
    font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif;
    font-size: 32px;
    margin: 0 0 4px;
    color: #ffffff;
}

.blog-header p {
    margin: 0;
    font-size: 15px;
    color: #d0bfb3;
}

.post-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.post-item {
    background: rgba(0,0,0,0.78);
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 14px 28px rgba(0,0,0,0.7);
}

.post-item-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 2px;
    color: #ffe0b5;
}

.post-item-title a {
    text-decoration: none;
    color: inherit;
}

.post-item-title a:hover {
    color: #ffb25a;
}

.post-item-meta {
    font-size: 13px;
    color: #c3b2a7;
    margin-bottom: 3px;
}

.post-item-meta span + span::before {
    content: "·";
    margin: 0 6px;
}

.post-item-excerpt {
    font-size: 15px;
    margin: 0;
    color: #d0bfb3;
}

/* Footer */

footer.site-footer {
    margin-top: 22px;
    font-size: 12px;
    color: #c3b2a7;
    text-align: left;
}

footer.site-footer a {
    color: #c3b2a7;
}

footer.site-footer a:hover {
    color: #ffb25a;
}

/* Responsive */

@media screen and (max-width: 600px) {
    .page {
        padding: 22px 12px 30px;
    }

    article.post {
        padding: 18px 14px 20px;
    }

    h1.post-title {
        font-size: 28px;
    }

    .blog-header h1 {
        font-size: 26px;
    }

    .post-content {
        font-size: 16px;
    }
}
/* Tag dell'articolo */
.tags-list {
    margin: 18px 0 6px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tags-label {
    font-weight: 600;
    color: #ffe0b5;
    margin-right: 4px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.03);
    font-size: 13px;
    color: #f3e6dd;
    white-space: nowrap;
}

.tag-pill::before {
    content: "#";
    margin-right: 3px;
    opacity: 0.9;
}

.tag-pill:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.5);
    text-decoration: none;
}