:root {
    --ink: #0b0f19;
    --ink2: #1c2333;
    --ink3: #3d4a63;
    --muted: #6b7a99;
    --surface: #f4f6fb;
    --border: rgba(30,42,80,0.09);
    --blue: #1a56e8;
    --blue-dk: #1241c0;
    --blue-pale: #e8eeff;
    --cyan: #06b6d4;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 2px 24px rgba(26,86,232,0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--ink);
    line-height: 1.65;
}

/* ─── HEADER ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: 68px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 6%;
    gap: 40px;
}

    .site-header .logo {
        font-family: 'Syne', sans-serif;
        font-weight: 800;
        font-size: 1.35rem;
        color: var(--ink);
        text-decoration: none;
        letter-spacing: -.02em;
    }

    .site-header nav {
        display: flex;
        gap: 28px;
        margin-left: auto;
    }

        .site-header nav a {
            font-size: .875rem;
            font-weight: 500;
            color: var(--ink3);
            text-decoration: none;
            transition: color .18s;
        }

            .site-header nav a:hover {
                color: var(--blue);
            }

/* ─── ARTICLE / HOW-TO CONTENT ─── */
.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 6% 96px;
}

    .article-content h1 {
        font-family: 'Syne', sans-serif;
        font-weight: 800;
        font-size: clamp(2rem, 4vw, 2.75rem);
        line-height: 1.15;
        letter-spacing: -.02em;
        color: var(--ink);
        margin-bottom: 28px;
    }

    .article-content h2 {
        font-family: 'Syne', sans-serif;
        font-weight: 700;
        font-size: 1.5rem;
        color: var(--ink);
        margin: 40px 0 16px;
    }

    .article-content h3 {
        font-family: 'Syne', sans-serif;
        font-weight: 600;
        font-size: 1.2rem;
        color: var(--ink2);
        margin: 32px 0 12px;
    }

    .article-content p {
        color: var(--ink3);
        margin-bottom: 18px;
        font-size: 1.02rem;
    }

    .article-content ul, .article-content ol {
        color: var(--ink3);
        margin: 0 0 18px 1.4em;
    }

    .article-content li {
        margin-bottom: 8px;
    }

    .article-content a {
        color: var(--blue);
        text-decoration: none;
        border-bottom: 1px solid transparent;
    }

        .article-content a:hover {
            border-bottom-color: var(--blue);
        }

    .article-content code {
        background: var(--surface);
        padding: 2px 6px;
        border-radius: 6px;
        font-size: .9em;
        color: var(--blue-dk);
    }

    .article-content pre {
        background: var(--ink);
        color: #e6ecff;
        padding: 20px 24px;
        border-radius: var(--radius);
        overflow-x: auto;
        margin-bottom: 24px;
    }

        .article-content pre code {
            background: none;
            color: inherit;
            padding: 0;
        }

    /* Immagini/media negli articoli non devono mai sfondare il viewport su mobile */
    .article-content img,
    .article-content video,
    .article-content iframe {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        margin-bottom: 18px;
    }

    .article-content blockquote {
        border-left: 3px solid var(--blue);
        background: var(--blue-pale);
        padding: 16px 20px;
        border-radius: 0 10px 10px 0;
        color: var(--ink2);
        margin-bottom: 24px;
    }

/* ─── LANDING ─── */
.landing-content .hero {
    text-align: center;
    padding: 96px 6% 56px;
    background: linear-gradient(160deg, #f7f9ff 0%, #fff 60%, #f0fdfe 100%);
}

    .landing-content .hero h1 {
        font-family: 'Syne', sans-serif;
        font-weight: 800;
        font-size: clamp(2.2rem, 5vw, 3.4rem);
        line-height: 1.12;
        letter-spacing: -.02em;
        color: var(--ink);
        max-width: 800px;
        margin: 0 auto;
    }

.landing-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 6% 48px;
    color: var(--ink3);
    font-size: 1.05rem;
}

    .landing-body h2 {
        font-family: 'Syne', sans-serif;
        font-weight: 700;
        color: var(--ink);
        margin: 32px 0 14px;
    }

    .landing-body p {
        margin-bottom: 16px;
    }

.cta {
    text-align: center;
    padding: 16px 6% 80px;
}

.cta-button {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    color: #fff;
    background: var(--blue);
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(26,86,232,0.32);
    transition: background .18s, transform .15s;
}

    .cta-button:hover {
        background: var(--blue-dk);
        transform: translateY(-2px);
    }

/* ─── FOOTER ─── */
.site-footer {
    text-align: center;
    padding: 40px 6%;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .85rem;
}

.footer-tech-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    max-width: 640px;
    margin: 0 auto 20px;
}

    .footer-tech-links span.label {
        width: 100%;
        font-weight: 600;
        color: var(--ink3);
        margin-bottom: 4px;
    }

    .footer-tech-links a {
        color: var(--ink3);
        text-decoration: none;
        font-size: .82rem;
        transition: color .15s;
    }

        .footer-tech-links a:hover {
            color: var(--blue);
        }

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: .82rem;
}

    .footer-legal-links a {
        color: var(--ink3);
        text-decoration: none;
    }

        .footer-legal-links a:hover {
            color: var(--blue);
            text-decoration: underline;
        }

/* ─── COOKIE BANNER ─── */
#cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(560px, 92vw);
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    z-index: 500;
}

    #cookie-banner p {
        flex: 1;
        min-width: 220px;
        font-size: .85rem;
        line-height: 1.5;
        margin: 0;
    }

    #cookie-banner a {
        color: #bcd0ff;
    }

    #cookie-banner button {
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: .88rem;
        color: var(--ink);
        background: #fff;
        border: none;
        border-radius: 10px;
        padding: 10px 20px;
        cursor: pointer;
        white-space: nowrap;
    }
