:root {
    --primary-color: #2196F3;
    --secondary-color: #1976D2;
    --accent-color: #FF4081;
    --text-dark: #2C3E50;
    --text-light: #607D8B;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: #f6f8fb;
}

h1, h2, h3, h4, h5, .navbar-brand, .btn {
    font-family: 'Outfit', sans-serif;
}

.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .material-icons {
    font-size: 2rem;
    color: var(--primary-color);
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.6rem 1rem !important;
    border-radius: 25px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(33, 150, 243, 0.08);
}

.navbar .btn-primary {
    padding: 0.65rem 1.4rem;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 25px;
    margin-left: 0.4rem;
}

.blog-hero {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
        linear-gradient(145deg, #1565C0 0%, #2196F3 52%, #0D47A1 100%);
    color: #fff;
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.blog-hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
    top: -140px;
    right: -80px;
    pointer-events: none;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.blog-hero h1 {
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.8rem;
}

.blog-hero .lead {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 0;
}

.blog-listing {
    padding: 80px 0 100px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
}

.blog-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(33, 71, 120, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.08);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(33, 71, 120, 0.14);
    color: inherit;
}

.blog-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
}

.blog-card-cover {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.6rem;
    position: relative;
}

.blog-card.featured .blog-card-cover {
    min-width: 38%;
    min-height: 280px;
    font-size: 3.4rem;
}

.cover-cad { background: linear-gradient(145deg, #1565C0, #42A5F5); }
.cover-materiali { background: linear-gradient(145deg, #6A1B9A, #AB47BC); }
.cover-mdr { background: linear-gradient(145deg, #0D47A1, #00838F); }
.cover-colore { background: linear-gradient(145deg, #C62828, #EF6C00); }
.cover-impianto { background: linear-gradient(145deg, #00695C, #26A69A); }
.cover-provvisori { background: linear-gradient(145deg, #E65100, #FFB300); }
.cover-bite { background: linear-gradient(145deg, #283593, #5C6BC0); }
.cover-stampa { background: linear-gradient(145deg, #006064, #00ACC1); }
.cover-impronta { background: linear-gradient(145deg, #4E342E, #8D6E63); }

.blog-card-body {
    padding: 1.7rem 1.8rem 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 0.7rem;
}

.blog-tag {
    background: rgba(33, 150, 243, 0.1);
    color: var(--secondary-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
}

.blog-card h2,
.blog-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.7rem;
    color: var(--text-dark);
}

.blog-card.featured h2 {
    font-size: 1.75rem;
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    flex: 1;
}

.blog-read {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.article-wrap {
    padding: 130px 0 90px;
}

.article-card {
    background: #fff;
    border-radius: 28px;
    padding: 3rem 3.2rem;
    box-shadow: 0 16px 40px rgba(33, 71, 120, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.08);
}

.breadcrumb-blog {
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
}

.breadcrumb-blog a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-blog a:hover {
    text-decoration: underline;
}

.breadcrumb-blog span {
    color: var(--text-light);
}

.article-card h1 {
    font-weight: 700;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-lead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.article-body h2 {
    font-weight: 700;
    font-size: 1.45rem;
    margin: 2.2rem 0 0.9rem;
}

.article-body h3 {
    font-weight: 600;
    font-size: 1.15rem;
    margin: 1.6rem 0 0.7rem;
}

.article-body p,
.article-body li {
    font-size: 1.05rem;
    color: #3d4f60;
}

.article-body ul,
.article-body ol {
    padding-left: 1.2rem;
    margin-bottom: 1.2rem;
}

.article-body li {
    margin-bottom: 0.45rem;
}

.article-body strong {
    color: var(--text-dark);
}

.callout {
    border-radius: 16px;
    padding: 1.2rem 1.3rem;
    margin: 1.6rem 0;
}

.callout-tip {
    background: rgba(33, 150, 243, 0.08);
    border-left: 4px solid var(--primary-color);
}

.callout-warn {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #F57C00;
}

.callout h3 {
    margin-top: 0;
    font-size: 1.05rem;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0 1.8rem;
    font-size: 0.98rem;
}

.compare-table th,
.compare-table td {
    border: 1px solid rgba(33, 150, 243, 0.15);
    padding: 0.75rem 0.85rem;
    text-align: left;
    vertical-align: top;
}

.compare-table th {
    background: rgba(33, 150, 243, 0.08);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.check-list i {
    color: #2E7D32;
    margin-top: 0.35rem;
}

.article-disclaimer {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(33, 150, 243, 0.12);
    font-size: 0.92rem;
    color: var(--text-light);
}

.related-title {
    font-weight: 700;
    margin: 3rem 0 1.2rem;
}

.article-cta {
    margin-top: 2.4rem;
    background: linear-gradient(145deg, #1565C0, #2196F3);
    color: #fff;
    border-radius: 20px;
    padding: 1.8rem 1.9rem;
}

.article-cta h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.1rem;
}

.article-cta .btn {
    background: #fff;
    color: #1565C0;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.7rem 1.3rem;
}

.article-cta .btn:hover {
    background: #E3F2FD;
    color: #0D47A1;
}

.blog-footer {
    background: #1a1a1a;
    padding: 50px 0 28px;
    color: rgba(255, 255, 255, 0.7);
}

.blog-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.blog-footer a:hover {
    color: var(--primary-color);
}

.blog-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.blog-footer-brand .material-icons {
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .blog-grid,
    .blog-card.featured {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .blog-card.featured .blog-card-cover {
        min-width: 100%;
        min-height: 200px;
    }

    .article-card {
        padding: 2rem 1.3rem;
    }
}
