:root {
    --bg-main: #f5f7fb;
    --bg-hero: radial-gradient(circle at top left, #e5f1ff, #f9fbff);
    --bg-card: #ffffff;
    --bg-pill: #e7f0ff;
    --bg-dark: #0b213b;
    --text-main: #162335;
    --text-muted: #5c6a80;
    --accent: #2464d1;
    --accent-soft: rgba(36, 100, 209, 0.12);
    --accent-strong: #15408a;
    --success: #1b8750;
    --shadow-soft: 0 18px 40px rgba(13, 41, 88, 0.12);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-pill: 999px;
    --transition-fast: 180ms ease-out;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

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

a:hover {
    text-decoration: underline;
}

header, main, footer {
    width: 100%;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(245, 247, 251, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(12, 34, 66, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.5rem;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 40%;
    background: radial-gradient(circle at 20% 20%, #ffffff, #cfe2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(13, 41, 88, 0.25);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.brand-text-title {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.brand-text-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lp-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(245, 247, 251, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(12, 34, 66, 0.06);
    box-shadow: 0 10px 30px rgba(10, 40, 90, 0.06);
}

.lp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0.5rem;
    gap: 1rem;
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.lp-brand-link {
    display: inline-flex;
    align-items: center;
}

.lp-brand-img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(12, 60, 140, 0.18);
    object-fit: contain;
}

.lp-brand-text-sub {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 1.85rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.lp-nav-links a {
    color: var(--text-strong);
    text-decoration: none;
    position: relative;
    letter-spacing: 0.01em;
    display: inline-flex;
    flex-direction: column;
    line-height: 1.2;
    gap: 0.15rem;
}

.lp-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
    transition: width var(--transition-fast);
}

.lp-nav-links a:hover::after {
    width: 100%;
}

.lp-nav-strong {
    font-weight: 700;
    color: var(--text-strong);
}

.lp-nav-soft {
    font-weight: 500;
    color: var(--text-muted);
}

/* HERO */

.hero {
    background: var(--bg-hero);
    padding: 2.8rem 0 2.5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-strong);
    background: var(--accent-soft);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.9rem;
}

.hero-title {
    font-size: clamp(1.9rem, 2.7vw, 2.3rem);
    line-height: 1.15;
    margin: 0 0 0.8rem;
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    background: linear-gradient(120deg, #2464d1, #1b8750);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 32rem;
    margin-bottom: 1.3rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.6rem;
}

.badge-pill {
    background: var(--bg-pill);
    color: var(--accent-strong);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.9rem;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.badge-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(27, 135, 80, 0.16);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.btn-primary {
    border-radius: var(--radius-pill);
    border: none;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #2464d1, #15408a);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 22px 45px rgba(13, 41, 88, 0.25);
}

.btn-secondary {
    border-radius: var(--radius-pill);
    border: 1px solid rgba(36, 100, 209, 0.3);
    padding: 0.8rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.8);
    color: var(--accent-strong);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

.hero-visual {
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at 0 0, #ffffff, #dce7ff);
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-visual-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-strong);
    margin-bottom: 0.7rem;
}

.hero-visual-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.2rem 1rem;
    border: 1px solid rgba(12, 35, 82, 0.08);
    position: relative;
    overflow: hidden;
}

.hero-visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
}

.hero-visual-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-visual-chip {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.hero-visual-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.hero-visual-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.82rem;
}

.hero-visual-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.hero-visual-highlight {
    margin-top: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-lg);
    background: #f0f5ff;
    font-size: 0.82rem;
    color: var(--text-strong);
    border: 1px solid rgba(36, 100, 209, 0.15);
}

.hero-visual-badge,
.hero-float-pill {
    display: none;
}

/* SECTIONS */

section {
    padding: 2.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header-left {
    text-align: left;
    margin-bottom: 1.2rem;
}

.section-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-strong);
    margin-bottom: 0.4rem;
}

.section-title {
    font-size: 1.4rem;
    margin: 0;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0.5rem auto 0;
}

/* VALUE GRID */

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.value-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.1rem;
    border: 1px solid rgba(12, 35, 82, 0.06);
    box-shadow: 0 10px 24px rgba(15, 35, 70, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(13, 41, 88, 0.16);
    border-color: rgba(36, 100, 209, 0.25);
}

.value-icon {
    width: 26px;
    height: 26px;
    border-radius: 11px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.value-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.value-text {
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* HOW IT WORKS */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.step-card {
    background: #0b213b;
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.2rem;
    position: relative;
    overflow: hidden;
}

.step-number {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.85;
}

.step-title {
    font-size: 0.98rem;
    font-weight: 600;
    margin-top: 0.3rem;
    margin-bottom: 0.4rem;
}

.step-text {
    font-size: 0.86rem;
    opacity: 0.88;
}

.step-tag {
    position: absolute;
    right: 0.9rem;
    top: 0.9rem;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
}

/* WHAT USERS SEE */

.citizen-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: center;
}

.citizen-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.citizen-list {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 0;
    display: grid;
    gap: 0.65rem;
}

.citizen-list li {
    display: flex;
    gap: 0.45rem;
    font-size: 0.88rem;
}

.citizen-list li .bullet {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    margin-top: 0.1rem;
}

.mock-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(12, 35, 82, 0.06);
}

.mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.mock-title {
    font-size: 0.92rem;
    font-weight: 600;
}

.mock-results {
    display: grid;
    gap: 0.6rem;
}

.mock-result {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.7rem;
    padding: 0.6rem 0.5rem;
    border-radius: 14px;
    background: rgba(237, 242, 252, 0.9);
}

.mock-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2464d1, #1b8750);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.mock-meta-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.mock-meta-spec {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.mock-meta-place {
    font-size: 0.78rem;
}

.mock-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-pill);
    background: rgba(11, 33, 59, 0.12);
    margin-top: 0.25rem;
}

/* FAQ MINI */

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
    border: 1px solid rgba(12, 35, 82, 0.06);
}

.faq-q {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.faq-a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CTA FINALE */

.cta-final {
    background: radial-gradient(circle at top, #0b213b, #050b15);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(36, 100, 209, 0.24), transparent 60%);
    right: -60px;
    top: -60px;
    opacity: 0.8;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
    gap: 1.5rem;
    align-items: center;
}

.cta-title {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.cta-text {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 30rem;
}

.cta-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.cta-note {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.6rem;
}

.cta-side {
    font-size: 0.9rem;
    opacity: 0.95;
    background: #0c1f39;
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 38px rgba(13, 41, 88, 0.2);
    color: #e9f1ff;
}

.cta-highlight {
    margin-top: 0.75rem;
    padding: 0.95rem 1.05rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* Patient cards */
.patient-cards {
    background: #0c1f39;
    color: #fff;
    padding: 1.6rem 1.4rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.9rem;
}

.lp-patient-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 0.95rem;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 28px rgba(12, 35, 82, 0.22);
}

.lp-patient-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    background: #e8eef7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lp-patient-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-patient-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.lp-patient-name {
    font-weight: 700;
    color: #0d2545;
}

.lp-patient-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
}

.lp-badge-geo {
    background: #e8f0ff;
    color: #123a82;
    border: 1px solid rgba(18, 58, 130, 0.12);
}

.lp-badge-activity {
    background: #e7f7ed;
    color: #14683d;
    border: 1px solid rgba(20, 104, 61, 0.12);
}

.lp-patient-empty {
    color: #cbd7ec;
    margin: 0;
}

.cta-highlight {
    margin-top: 0.75rem;
    padding: 0.8rem 0.95rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, rgba(36, 100, 209, 0.1), rgba(27, 135, 80, 0.1));
    border: 1px solid rgba(36, 100, 209, 0.12);
    color: var(--text-strong);
    font-weight: 650;
}

.cta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 0.6rem;
}

.cta-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
}

.btn-ghost-light {
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 1.3rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #ffffff;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* FOOTER */

.site-footer {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 1.2rem 0 1.8rem;
    text-align: center;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero {
        padding-top: 2rem;
    }
    .hero-visual {
        order: -1;
    }
    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .steps-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .citizen-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .cta-content {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .nav-links {
        display: none;
    }
    .hero {
        padding-bottom: 2.1rem;
    }
    .value-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
