:root {
    --landing-accent: #1e73be;
    --landing-dark: #141426;
    --landing-text: #222222;
    --landing-muted: #575760;
    --landing-bg: #f7f8f9;
    --landing-surface: #ffffff;
    --landing-border: #e6e9ee;
    --landing-soft: #eef3f9;
    --landing-radius: 12px;
    --landing-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--landing-font);
    background: var(--landing-bg);
    color: var(--landing-text);
    font-size: 16px;
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--landing-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-thickness: 2px;
}

.landing-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.landing-header {
    background: var(--landing-surface);
    border-bottom: 1px solid var(--landing-border);
}

.landing-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.landing-logo img {
    display: block;
    max-height: 58px;
    width: auto;
}

.landing-back {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--landing-muted);
    text-decoration: none;
}

.landing-back:hover {
    color: var(--landing-accent);
}

.landing-main {
    padding-top: 46px;
    padding-bottom: 64px;
}

.landing-kicker {
    margin: 0 0 12px;
    color: var(--landing-accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-hero {
    max-width: 900px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--landing-border);
}

.landing-hero h1 {
    margin: 0 0 18px;
    color: var(--landing-dark);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.landing-lead {
    max-width: 780px;
    margin: 0 0 20px;
    color: var(--landing-muted);
    font-size: 1.15rem;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
    background: var(--landing-accent);
    color: #fff;
}

.btn-primary:hover {
    background: #155a96;
}

.btn-secondary {
    background: transparent;
    color: var(--landing-accent);
    border: 2px solid var(--landing-accent);
}

.btn-secondary:hover {
    background: var(--landing-soft);
}

.landing-micro {
    margin: 16px 0 0;
    color: var(--landing-muted);
    font-size: 0.85rem;
}

.landing-section {
    margin: 48px 0;
}

.landing-section h2 {
    margin: 0 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--landing-accent);
    color: var(--landing-accent);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    line-height: 1.25;
}

.landing-section h3 {
    margin: 26px 0 8px;
    color: var(--landing-dark);
    font-size: 1.1rem;
}

.landing-section p {
    margin: 0 0 16px;
}

.landing-section ul,
.landing-section ol {
    margin: 0 0 18px 24px;
    padding: 0;
}

.landing-section li {
    margin-bottom: 10px;
}

.landing-note {
    margin: 20px 0;
    padding: 18px 20px;
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-left: 4px solid var(--landing-accent);
    border-radius: 8px;
    color: var(--landing-muted);
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.landing-card {
    padding: 20px;
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: 10px;
}

.landing-card h3 {
    margin-top: 0;
}

.landing-card p:last-child {
    margin-bottom: 0;
}

.landing-source {
    font-size: 0.85rem;
    color: var(--landing-muted);
}

.landing-cta {
    margin-top: 56px;
    padding: 28px;
    background: var(--landing-soft);
    border-radius: var(--landing-radius);
}

.landing-cta h2 {
    margin: 0 0 12px;
    color: var(--landing-dark);
    font-size: 1.5rem;
}

.landing-cta p {
    margin: 0 0 18px;
}

.landing-footer {
    padding: 28px 0;
    background: var(--landing-surface);
    border-top: 1px solid var(--landing-border);
    color: var(--landing-muted);
    font-size: 0.9rem;
}

.landing-footer p {
    margin: 0 0 8px;
}

.landing-footer a {
    color: var(--landing-accent);
    text-decoration: none;
}

.landing-footer a:hover {
    text-decoration: underline;
}

.landing-footer-note {
    margin-top: 14px !important;
    color: #777;
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .landing-main {
        padding-top: 30px;
        padding-bottom: 44px;
    }

    .landing-header-inner {
        align-items: flex-start;
    }

    .landing-logo img {
        max-height: 46px;
    }

    .landing-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .landing-section {
        margin: 36px 0;
    }
}

/* Protezioni responsive */
body {
    overflow-x: hidden;
}

.landing-header-inner {
    flex-wrap: wrap;
}

.landing-hero h1,
.landing-section h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.landing-lead,
.landing-section p,
.landing-actions {
    min-width: 0;
}

.landing-logo {
    min-width: 0;
}

.landing-logo img {
    max-width: 100%;
}

@media (max-width: 640px) {
    .landing-hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }
}
