/* DynamoHelp – sito di presentazione. Stessi colori, carattere e componenti della piattaforma. */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #ffffff;
    --bg-soft: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --border: #e6e9f0;
    --border-strong: #d5dae4;
    --text: #0f172a;
    --text-2: #334155;
    --muted: #64748b;
    --primary: #4f46e5;
    --primary-2: #7c3aed;
    --primary-soft: #eef2ff;
    --primary-text: #4338ca;
    --ring: rgba(79, 70, 229, .22);
    --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
    --ai: #0d9488;
    --ai-soft: #ccfbf1;
    --success: #059669;
    --success-soft: #d1fae5;
    --warning: #d97706;
    --warning-soft: #fef3c7;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --c-open: #2563eb;
    --c-progress: #7c3aed;
    --c-waiting: #c2410c;
    --c-resolved: #047857;
    --c-high: #dc2626;
    --c-normal: #0369a1;
    --c-low: #64748b;
    --navy: #0f172a;
    --navy-2: #131c34;
    --radius: 18px;
    --radius-md: 12px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 1px 3px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(15, 23, 42, .16);
    --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .28), 0 8px 20px -10px rgba(15, 23, 42, .12);
    --header-h: 68px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0f1d;
        --bg-soft: #0e1527;
        --surface: #111827;
        --surface-2: #151e30;
        --surface-3: #1a2438;
        --border: #222d42;
        --border-strong: #2e3a52;
        --text: #e7ebf3;
        --text-2: #c3cada;
        --muted: #8b97ad;
        --primary: #818cf8;
        --primary-2: #a78bfa;
        --primary-soft: rgba(129, 140, 248, .14);
        --primary-text: #a5b4fc;
        --ring: rgba(129, 140, 248, .3);
        --ai: #2dd4bf;
        --ai-soft: rgba(45, 212, 191, .14);
        --success: #34d399;
        --success-soft: rgba(52, 211, 153, .14);
        --warning: #fbbf24;
        --warning-soft: rgba(251, 191, 36, .14);
        --danger: #f87171;
        --danger-soft: rgba(248, 113, 113, .14);
        --c-open: #60a5fa;
        --c-progress: #a78bfa;
        --c-waiting: #fb923c;
        --c-resolved: #34d399;
        --c-high: #f87171;
        --c-normal: #38bdf8;
        --c-low: #94a3b8;
        --navy: #070b16;
        --navy-2: #0b1222;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .55);
        --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 8px 20px -10px rgba(0, 0, 0, .4);
        color-scheme: dark;
    }
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.025em; color: var(--text); }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(124, 58, 237, .22); }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-xs { width: .95em; height: .95em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mono { font-family: var(--mono); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.container-mid { max-width: 1000px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; text-decoration: none; }

/* ── Pulsanti ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .72em 1.25em; border-radius: 12px; border: 1px solid transparent;
    font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2;
    cursor: pointer; text-decoration: none !important; white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55em 1em; font-size: .875rem; border-radius: 10px; }
.btn-lg { padding: .9em 1.5em; font-size: 1rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -8px rgba(99, 102, 241, .65); }
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(99, 102, 241, .8); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-text); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-white { background: #fff; color: #4338ca; box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .45); }
.btn-white:hover { transform: translateY(-1px); }
.btn-ghost-white { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-white:hover { background: rgba(255, 255, 255, .2); }

.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 650; margin-top: 8px; }

/* ── Intestazione ─────────────────────────────────────────── */
.lang-bar { background: var(--primary-soft); color: var(--primary-text); font-size: .9rem; border-bottom: 1px solid var(--border); }
.lang-bar-inner { display: flex; align-items: center; gap: 10px; min-height: 44px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.lang-bar-switch { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lang-bar-close { margin-left: auto; display: inline-flex; padding: 6px; border-radius: 8px; color: inherit; }
.lang-bar-close:hover { background: rgba(99, 102, 241, .12); }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px -16px rgba(15, 23, 42, .4); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 32px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
    .logo-light { display: none; }
    .logo-dark { display: block; }
}

.main-nav { flex: 1; }
.main-nav ul { list-style: none; display: flex; gap: 4px; justify-content: center; }
.main-nav a:not(.btn) {
    display: block; padding: 8px 12px; border-radius: 10px;
    color: var(--text-2); font-weight: 550; font-size: .95rem; text-decoration: none;
}
.main-nav a:not(.btn):hover { color: var(--text); background: var(--surface-3); }
.main-nav a[aria-current="page"] { color: var(--primary-text); background: var(--primary-soft); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lang-menu { position: relative; }
.lang-menu summary {
    list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    padding: 8px 10px; border-radius: 10px; color: var(--text-2); font-weight: 650; font-size: .875rem;
    border: 1px solid var(--border);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--surface-3); }
.lang-menu[open] summary { border-color: var(--primary); color: var(--primary-text); }
.lang-menu ul {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none;
    min-width: 200px; padding: 6px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow-lg);
}
.lang-menu li a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-size: .925rem; text-decoration: none; }
.lang-menu li a:hover { background: var(--surface-3); }
.lang-menu li a[aria-current] { color: var(--primary-text); font-weight: 650; }
.lang-menu li a .icon { margin-left: auto; }
.lang-code { font-size: .72rem; font-weight: 700; color: var(--muted); width: 22px; }

.nav-toggle {
    display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
    border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1080px) {
    .js .nav-toggle { display: inline-flex; }
    .js .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
        padding: 12px 20px 20px; display: none;
    }
    .js .main-nav.is-open { display: block; }
    .js .main-nav ul { flex-direction: column; gap: 2px; }
    .js .main-nav a:not(.btn) { padding: 12px 14px; font-size: 1rem; }
    .js .nav-cta-mobile { display: flex; margin-top: 12px; }
    .no-js .main-nav ul { flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .header-cta { display: none; }
    .brand img { height: 28px; }
    .header-inner { gap: 12px; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero { padding: 72px 0 84px; }
.page-hero { padding: 72px 0 56px; }
.page-hero-sm { padding: 56px 0 24px; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(600px 380px at 85% 10%, rgba(168, 85, 247, .16), transparent 70%),
        radial-gradient(700px 420px at 10% 0%, rgba(99, 102, 241, .16), transparent 70%),
        radial-gradient(500px 300px at 60% 100%, rgba(13, 148, 136, .08), transparent 70%);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    opacity: .55;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.hero-copy h1 { margin: 18px 0 18px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--text-2); }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    font-size: .85rem; font-weight: 600; color: var(--text-2); text-decoration: none !important;
}
.hero-badge > span { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ai-soft); color: var(--ai); }
.hero-badge:hover { border-color: var(--primary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-2); font-size: .925rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .icon { color: var(--success); }

.hero-visual { position: relative; padding: 18px 0 28px; }
.hero-visual-sm { padding: 8px 0 20px; }

@media (max-width: 1023px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hero { padding: 48px 0 56px; }
    .hero-copy { text-align: center; }
    .hero-actions, .hero-points { justify-content: center; }
}

/* ── Sezioni ──────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-bottom: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px;
    font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-text);
}
.eyebrow-ai { color: var(--ai); }
.center-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 36px 0 0; }
@media (max-width: 720px) {
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 32px; }
}

/* Pubblico */
.audience { padding: 8px 0 40px; }
.audience-title { font-size: .85rem; font-weight: 650; color: var(--muted); text-align: center; letter-spacing: 0; margin-bottom: 18px; }
.audience-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.audience-list li {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .9rem; color: var(--text-2);
}
.audience-list .icon { color: var(--primary); }

/* Prima / dopo */
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pain-card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.pain-before { padding: 22px 24px; background: var(--surface-2); color: var(--muted); border-bottom: 1px dashed var(--border-strong); }
.pain-before p { margin: 0; }
.pain-after { padding: 22px 24px 26px; position: relative; flex: 1; }
.pain-after p { margin: 0; font-weight: 600; color: var(--text); font-size: 1.02rem; }
.pain-label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.pain-after .pain-label { color: var(--success); }
.pain-icon { position: absolute; right: 20px; top: 18px; display: inline-flex; padding: 8px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
@media (max-width: 900px) { .pain-grid { grid-template-columns: minmax(0, 1fr); } }

/* Funzionalità */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card {
    display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none !important;
    box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.feature-card p { color: var(--text-2); margin: 0 0 14px; font-size: .95rem; }
.feature-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px;
    background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; flex-shrink: 0;
}
.feature-icon .icon { width: 22px; height: 22px; }
.feature-card.is-ai .feature-icon, .feature-icon.is-ai { background: var(--ai-soft); color: var(--ai); }
.feature-more { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--primary-text); font-weight: 650; font-size: .9rem; }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

/* Approfondimenti */
.spotlight-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.spotlight-alt .spotlight-copy, .spotlight-grid.is-reversed .spotlight-copy { order: 2; }
.spotlight-copy h2 { margin-bottom: 14px; }
.spotlight-copy .lead { margin-bottom: 22px; }
.spotlight-visual { position: relative; }
@media (max-width: 960px) {
    .spotlight-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .spotlight-alt .spotlight-copy, .spotlight-grid.is-reversed .spotlight-copy { order: 0; }
}
.check-list { list-style: none; display: grid; gap: 11px; margin: 0 0 8px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); }
.check-list li .icon {
    width: 20px; height: 20px; padding: 3px; margin-top: 2px; border-radius: 999px;
    background: var(--success-soft); color: var(--success); stroke-width: 3;
}
.check-list-lg li { font-size: 1.02rem; }
.check-list-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
@media (max-width: 720px) { .check-list-cols { grid-template-columns: minmax(0, 1fr); } }

/* Sezione scura */
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #cbd5e1; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #a5b4fc; }
.section-dark .check-list li { color: #cbd5e1; }
.section-dark .check-list li .icon { background: rgba(52, 211, 153, .15); color: #34d399; }
.duo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.duo-card { padding: 36px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.duo-card h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
@media (max-width: 900px) { .duo-grid { grid-template-columns: minmax(0, 1fr); } .duo-card { padding: 26px; } }

/* Piani in breve */
.mini-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mini-plan {
    position: relative; display: block; padding: 28px; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--border); color: var(--text); text-decoration: none !important; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.mini-plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini-plan.is-recommended { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: var(--shadow); }
.mini-plan h3 { font-size: 1.2rem; margin-bottom: 8px; }
.mini-price { margin: 0 0 10px; color: var(--muted); }
.mini-price strong { font-size: 2.2rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.mini-agents { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.mini-agents .icon { color: var(--primary); }
.mini-desc { color: var(--muted); font-size: .925rem; margin: 0; }
.plan-flag {
    position: absolute; top: -13px; left: 24px; display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}
.plan-flag .icon { width: 13px; height: 13px; fill: currentColor; }
@media (max-width: 900px) { .mini-plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; gap: 26px; } }

/* Domande frequenti */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.faq-item summary {
    list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 20px; cursor: pointer; font-weight: 650; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--primary); transition: transform .2s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--primary-text); }
.faq-answer { padding: 0 20px 18px; color: var(--text-2); }
.faq-answer p { margin: 0; }

/* Invito finale */
.cta-section { padding-top: 0; }
.section-tint + .cta-section, .section-dark + .cta-section { padding-top: 96px; }
.cta-band {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px;
    padding: 48px 52px; border-radius: 26px; background: var(--grad); color: #e0e7ff;
    box-shadow: 0 30px 60px -28px rgba(99, 102, 241, .7);
}
.cta-band::before {
    content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 8px; position: relative; }
.cta-band p { margin: 0; font-size: 1.08rem; position: relative; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; flex-shrink: 0; }
@media (max-width: 900px) {
    .cta-band { flex-direction: column; align-items: flex-start; padding: 34px 26px; }
    .section-tint + .cta-section, .section-dark + .cta-section { padding-top: 64px; }
}
@media (max-width: 480px) { .cta-actions, .cta-actions .btn { width: 100%; } .cta-actions .btn { white-space: normal; } }

/* ── Anteprime dell'interfaccia ───────────────────────────── */
.mock { font-size: 13px; line-height: 1.45; color: var(--text); user-select: none; }
.mock .icon { width: 15px; height: 15px; }
.mock-app {
    border-radius: 16px; overflow: hidden; background: var(--surface);
    border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
}
.mock-chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--surface-3); border-bottom: 1px solid var(--border); }
.mock-chrome > span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.mock-chrome > span:nth-child(2) { background: #fbbf24; }
.mock-chrome > span:nth-child(3) { background: #34d399; }
.mock-url { margin: 0 auto; padding: 3px 14px; border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 11.5px; border: 1px solid var(--border); }
.mock-body { display: grid; grid-template-columns: 172px minmax(0, 1fr); min-height: 380px; }
.mock-side { background: #0f172a; color: #aab4c8; padding: 14px 10px; }
.mock-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 14px; color: #fff; font-size: 14px; }
.mock-brand b { font-weight: 800; letter-spacing: -.02em; }
.mock-brand i { font-style: normal; color: #c4b5fd; }
.mock-side ul { list-style: none; display: grid; gap: 2px; }
.mock-side li { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 12px; font-weight: 550; white-space: nowrap; overflow: hidden; }
.mock-side li.on { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; box-shadow: 0 6px 14px -6px rgba(99, 102, 241, .8); }
.mock-side li em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.mock-main { padding: 14px 16px 16px; background: var(--bg-soft); min-width: 0; }
.mock-top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.mock-search { flex: 1; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; min-width: 0; }
.mock-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 9px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-weight: 650; font-size: 12px; white-space: nowrap; }
.mock-title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.mock-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.mock-tabs span { padding: 4px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); white-space: nowrap; }
.mock-tabs span em { font-style: normal; color: var(--muted); margin-left: 3px; }
.mock-tabs .on { background: var(--primary-soft); color: var(--primary-text); border-color: transparent; }
.mock-tabs .warn em { color: var(--warning); }
.mock-tabs .ai em { color: var(--ai); }
.mock-list { display: grid; gap: 7px; }
.mock-row { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 9px 11px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); }
.mock-row-main { min-width: 0; display: grid; gap: 3px; }
.mock-row-main strong { font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row-main small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row-main small .icon { width: 12px; height: 12px; }
.mock-badges { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; overflow: hidden; }
.mock-badges .mono { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.mock-row-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.b { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 650; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.b i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-open { color: var(--c-open); background: color-mix(in srgb, var(--c-open) 12%, transparent); }
.st-progress { color: var(--c-progress); background: color-mix(in srgb, var(--c-progress) 12%, transparent); }
.st-waiting { color: var(--c-waiting); background: color-mix(in srgb, var(--c-waiting) 12%, transparent); }
.st-resolved { color: var(--c-resolved); background: color-mix(in srgb, var(--c-resolved) 12%, transparent); }
.pr-high { color: var(--c-high); background: color-mix(in srgb, var(--c-high) 10%, transparent); }
.pr-normal { color: var(--c-normal); background: color-mix(in srgb, var(--c-normal) 10%, transparent); }
.pr-low { color: var(--c-low); }
.sla { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.sla .icon { width: 12px; height: 12px; }
.sla-ok { color: var(--success); background: var(--success-soft); }
.sla-warn { color: var(--warning); background: var(--warning-soft); }
.sla-paused { color: var(--muted); background: var(--surface-3); }
.sla-ai { color: var(--ai); background: var(--ai-soft); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 10px; font-weight: 800; background: #dcfce7; color: #166534; flex-shrink: 0; }
.avatar-ai { background: var(--ai-soft); color: var(--ai); }
.avatar-ai .icon { width: 14px; height: 14px; }

.mock-float {
    position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 14px; max-width: 290px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
    font-size: 12.5px; line-height: 1.35; animation: float 6s ease-in-out infinite;
}
.mock-float strong { display: block; font-size: 13px; }
.mock-float small { color: var(--muted); }
.mock-float-ai { right: 28px; bottom: -6px; }
.mock-float-sla { left: -40px; bottom: 96px; animation-delay: -3s; }
.float-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.float-icon .icon { width: 18px; height: 18px; }
.float-icon.ai { background: var(--ai-soft); color: var(--ai); }
.float-icon.warn { background: var(--warning-soft); color: var(--warning); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 1260px) { .mock-float-sla { left: -12px; } }
@media (max-width: 760px) {
    .mock-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .mock-side { display: none; }
    .mock-float { position: static; max-width: none; margin-top: 12px; animation: none; }
    .mock-row-side .avatar { display: none; }
}
@media (max-width: 420px) { .mock-btn { display: none; } .mock-tabs span:nth-child(4) { display: none; } }

.mock-card {
    position: relative; padding: 22px; border-radius: 20px; background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.mock-card-head { display: flex; align-items: center; gap: 9px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.mock-card-head .mono { color: var(--muted); font-size: 12px; font-weight: 600; }
.mock-card-head strong { font-size: 14px; }
.mock-card-head .b { margin-left: auto; }

/* Assistente */
.msg { display: flex; gap: 11px; margin-bottom: 14px; }
.msg > div { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.msg b { display: block; font-size: 12px; margin-bottom: 3px; }
.msg p { margin: 0; font-size: 13px; color: var(--text-2); }
.msg-ai > div { background: color-mix(in srgb, var(--ai) 7%, var(--surface)); border-color: color-mix(in srgb, var(--ai) 28%, var(--border)); }
.msg-ai b { color: var(--ai); }
.msg-source { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.msg-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; background: var(--surface-3); color: var(--text-2); }
.chip .icon { width: 13px; height: 13px; }
.chip-ok { background: var(--success-soft); color: var(--success); }
.msg-hint { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--border-strong); }

.ai-steps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.ai-steps li { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: .9rem; font-weight: 550; color: var(--text-2); }
.ai-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ai-soft); color: var(--ai); font-weight: 800; font-size: .8rem; flex-shrink: 0; }
@media (max-width: 520px) { .ai-steps { grid-template-columns: minmax(0, 1fr); } }

/* Ore */
.hours-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hours-head strong { display: block; font-size: 15px; }
.hours-head small { color: var(--muted); }
.hours-bar { height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.hours-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6366f1, #a855f7); }
.hours-legend { display: flex; justify-content: space-between; margin: 8px 0 14px; font-size: 12.5px; color: var(--muted); }
.hours-legend b { color: var(--warning); }
.hours-alert { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--warning-soft); color: var(--warning); font-size: 12.5px; font-weight: 600; margin-bottom: 14px; }
.hours-list { list-style: none; display: grid; gap: 2px; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: 13px; }
.hours-list li span { display: flex; align-items: center; gap: 8px; color: var(--text-2); min-width: 0; }
.hours-list li span .icon { color: var(--muted); }
.hours-list b { white-space: nowrap; }
.hours-foot { margin-top: 14px; }

/* Vendite */
.sales-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.sales-head small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.sales-head strong { font-size: 20px; letter-spacing: -.02em; }
.sales-lines { list-style: none; border-top: 1px solid var(--border); }
.sales-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.sales-lines li span { display: grid; font-weight: 600; font-size: 13px; }
.sales-lines li small { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.sales-lines b { white-space: nowrap; }
.sales-total { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0 16px; font-size: 13px; color: var(--muted); }
.sales-total strong { color: var(--text); font-size: 16px; }
.sales-pay { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.pay { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; border-radius: 10px; border: 1px solid var(--border-strong); font-weight: 650; font-size: 12px; white-space: nowrap; }
.pay-card { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-color: transparent; }
.sales-auto { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--success-soft); color: var(--success); font-size: 12.5px; font-weight: 600; }
@media (max-width: 420px) { .sales-pay { grid-template-columns: minmax(0, 1fr); } }

/* Lingue */
.mock-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.lang-note { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); color: #cbd5e1; font-size: 12.5px; }
.lang-note > span:last-child { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lang-note .icon { color: #34d399; }
.lang-note.on { border-color: rgba(165, 180, 252, .55); background: rgba(129, 140, 248, .14); color: #fff; }
.lang-flag { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .1); font-size: 10.5px; font-weight: 800; color: #fff; }
@media (max-width: 520px) { .mock-langs { grid-template-columns: minmax(0, 1fr); } }
.feature-section .mock-langs { margin-top: 0; }
.feature-section .lang-note { background: var(--surface); border-color: var(--border); color: var(--text-2); box-shadow: var(--shadow-sm); }
.feature-section .lang-note.on { border-color: var(--primary); background: var(--primary-soft); color: var(--text); }
.feature-section .lang-flag { background: var(--surface-3); color: var(--text); }
.feature-section .lang-note .icon { color: var(--success); }

/* Report */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.kpis > div { padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.kpis small { display: block; color: var(--muted); font-size: 11px; line-height: 1.3; min-height: 2.6em; }
.kpis strong { font-size: 20px; letter-spacing: -.02em; }
.chart { display: flex; align-items: flex-end; gap: 12px; height: 150px; padding: 0 4px; border-bottom: 1px solid var(--border); }
.chart-col { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 100%; }
.bar { display: block; width: 40%; max-width: 18px; border-radius: 6px 6px 0 0; }
.bar-a { background: #c7d2fe; }
.bar-b { background: linear-gradient(180deg, #8b5cf6, #6366f1); }
.chart-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.chart-legend .la::before { background: #c7d2fe; }
.chart-legend .lb::before { background: #7c3aed; }
@media (prefers-color-scheme: dark) { .bar-a, .chart-legend .la::before { background: #3b4470; } }

/* SLA */
.sla-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 16px; }
.sla-row small { display: block; color: var(--muted); font-size: 12px; }
.sla-row b { font-size: 16px; }
.t-warn { color: var(--warning); }
.t-ok { color: var(--success); }
.sla-track { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.sla-track span { display: block; height: 100%; border-radius: inherit; background: var(--success); }
.sla-track span.warn { background: var(--warning); }
.sla-hours { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; }
@media (max-width: 480px) { .sla-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Larghezze e altezze delle barre (niente stili in linea: CSP restrittiva) */
.w-35 { width: 35%; } .w-72 { width: 72%; } .w-80 { width: 80%; }
.h-48 { height: 48%; } .h-50 { height: 50%; } .h-55 { height: 55%; } .h-60 { height: 60%; } .h-62 { height: 62%; }
.h-64 { height: 64%; } .h-66 { height: 66%; } .h-70 { height: 70%; } .h-75 { height: 75%; } .h-78 { height: 78%; }

/* ── Pagina funzionalità ──────────────────────────────────── */
.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 980px; margin: 0 auto; }
.toc a {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-weight: 600; font-size: .875rem; text-decoration: none;
}
.toc a:hover { border-color: var(--primary); color: var(--primary-text); }
.toc a .icon { color: var(--primary); }
.feature-section .spotlight-copy h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); margin-bottom: 22px; }
.feature-plain { max-width: 1000px; }

/* ── Prezzi ───────────────────────────────────────────────── */
.billing-yearly .p-monthly, .billing-monthly .p-yearly { display: none; }
.page-hero-pricing { padding-bottom: 40px; }
.billing-toggle { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.billing-toggle button {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 0;
    background: transparent; color: var(--text-2); font: inherit; font-weight: 650; font-size: .925rem; cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] { background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(99, 102, 241, .7); }
.save-pill { padding: 2px 8px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: .75rem; font-weight: 700; }
.billing-toggle button[aria-pressed="true"] .save-pill { background: rgba(255, 255, 255, .22); color: #fff; }
.no-js .billing-toggle { display: none; }

.section-plans { padding-top: 24px; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan-card {
    position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: 22px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.plan-card.is-recommended { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: var(--shadow-lg); }
.plan-card.is-enterprise { background: var(--surface-2); }
.plan-name { font-size: 1.3rem; margin-bottom: 6px; }
.plan-desc { color: var(--muted); font-size: .9rem; min-height: 4.2em; margin-bottom: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan-price small { color: var(--muted); font-weight: 600; }
.plan-price .per { color: var(--muted); font-weight: 600; }
.plan-billing { color: var(--muted); font-size: .8rem; margin: 8px 0 20px; min-height: 2.6em; }
.plan-facts { list-style: none; display: grid; gap: 9px; margin: 22px 0 18px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.plan-facts li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.plan-facts li .icon { color: var(--primary); margin-top: 3px; }
.plan-facts small { color: var(--muted); }
.plan-everything { font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.plan-features .check-list li { font-size: .9rem; }
@media (max-width: 1150px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; } }
@media (max-width: 640px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } .plan-desc, .plan-billing { min-height: 0; } }

.all-plans { margin-top: 40px; padding: 26px 28px; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--border); }
.all-plans h2 { font-size: 1.05rem; letter-spacing: 0; margin-bottom: 14px; }
.all-plans ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.all-plans li { display: inline-flex; align-items: center; gap: 7px; font-size: .925rem; color: var(--text-2); font-weight: 550; }
.all-plans .icon { color: var(--success); }

.table-scroll { overflow-x: auto; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.cmp-table, .vs-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cmp-table { min-width: 780px; }
.cmp-table th, .cmp-table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.cmp-table th[scope="row"] { text-align: left; font-weight: 550; color: var(--text-2); position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 230px; }
.cmp-table thead th { padding: 18px 16px; font-size: 1rem; font-weight: 800; vertical-align: bottom; background: var(--surface); }
.cmp-table thead th:first-child { position: sticky; left: 0; z-index: 2; }
.cmp-table thead small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; margin-top: 2px; }
.cmp-table thead th.is-recommended { color: var(--primary-text); }
.cmp-group th { text-align: left !important; background: var(--surface-2) !important; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted) !important; font-weight: 700 !important; padding: 10px 16px !important; }
.cmp-table tbody tr:last-child td, .cmp-table tbody tr:last-child th { border-bottom-color: var(--border); }
.cmp-yes { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--success-soft); color: var(--success); }
.cmp-yes .icon { width: 15px; height: 15px; stroke-width: 3; }
.cmp-no { display: inline-flex; color: var(--border-strong); }
.cmp-addon { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 650; color: var(--primary-text); }
.cmp-addon .icon { width: 14px; height: 14px; }
.cmp-text { font-size: .85rem; color: var(--text-2); }

.addon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.addon-card { display: flex; flex-direction: column; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.addon-card p { color: var(--text-2); font-size: .9rem; }
.addon-price { margin-top: auto; margin-bottom: 8px !important; color: var(--muted) !important; }
.addon-price strong { font-size: 1.5rem; color: var(--text); letter-spacing: -.02em; }
.addon-included { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 650; color: var(--success); }
@media (max-width: 1100px) { .addon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .addon-grid { grid-template-columns: minmax(0, 1fr); } }

.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.service-item .feature-icon { margin: 0; width: 42px; height: 42px; }
.service-item h3 { font-size: 1rem; margin-bottom: 4px; }
.service-item p { margin: 0; color: var(--text-2); font-size: .9rem; }
.service-price { font-weight: 800; font-size: 1.05rem; white-space: nowrap; text-align: right; color: var(--text) !important; }
.service-price small { color: var(--muted); font-weight: 600; }
.service-price .free { color: var(--success); }
@media (max-width: 900px) { .service-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .service-item { grid-template-columns: auto minmax(0, 1fr); } .service-price { grid-column: 2; text-align: left; } }

.vs-table { min-width: 640px; }
.vs-table th, .vs-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.vs-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--surface-2); }
.vs-table tbody th { font-weight: 700; white-space: nowrap; }
.vs-table tbody th img { display: inline-block; vertical-align: -4px; margin-right: 8px; }
.vs-table td { color: var(--text-2); }
.vs-table td strong { color: var(--text); white-space: nowrap; }
.vs-table tr.is-ours th, .vs-table tr.is-ours td { background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.vs-table tr.is-ours td strong { color: var(--primary-text); }
.vs-table tbody tr:last-child th, .vs-table tbody tr:last-child td { border-bottom: 0; }
.vs-note { margin: 14px 4px 0; font-size: .8rem; color: var(--muted); }

.terms-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.terms-card { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.terms-card h2, .faq-title { font-size: 1.4rem; margin-bottom: 18px; }
@media (max-width: 960px) { .terms-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Richiesta informazioni ───────────────────────────────── */
.page-hero-contact { padding-bottom: 8px; }
.section-contact { padding-top: 32px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.form-card { padding: 32px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-section { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.form-section legend { padding: 0; margin-bottom: 14px; font-weight: 800; font-size: 1.08rem; color: var(--text); }
.choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice > span {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; padding: 14px; border-radius: 14px;
    border: 1.5px solid var(--border-strong); font-weight: 650; font-size: .9rem; color: var(--text-2); transition: border-color .15s ease, background-color .15s ease;
}
.choice > span .icon { width: 20px; height: 20px; color: var(--muted); }
.choice input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-text); }
.choice input:checked + span .icon { color: var(--primary); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--ring); }
@media (max-width: 760px) { .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; align-items: end; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field + .field, .field-grid + .field, .field-wide { margin-top: 16px; }
.field-grid .field { margin-top: 0; }
.field label, .field .label { font-weight: 650; font-size: .9rem; color: var(--text); }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 500; font-size: .82rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
    width: 100%; padding: 11px 13px; border-radius: 11px; border: 1.5px solid var(--border-strong);
    background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease; appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 38px; cursor: pointer; }
.select-wrap .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger) !important; }
.field-error { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--danger); font-size: .82rem; font-weight: 600; }
.field-error .icon { width: 15px; height: 15px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .925rem; color: var(--text-2); font-weight: 500; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex-shrink: 0; cursor: pointer; }
.check span { display: inline-flex; align-items: center; gap: 7px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.check-privacy span { display: inline; }
.form-footer { border-top: 1px solid var(--border); padding-top: 22px; display: grid; gap: 18px; justify-items: start; }
.form-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: .82rem; color: var(--muted); }
.form-note .icon { margin-top: 2px; }
.form-alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-weight: 600; margin-bottom: 24px; }
.form-alert p { margin: 0; }
.form-alert:focus { outline: none; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) {
    .field-grid, .field-grid-3, .check-grid { grid-template-columns: minmax(0, 1fr); }
    .form-card { padding: 22px 18px; }
    .form-footer .btn { width: 100%; }
}
.btn[disabled] { opacity: .7; cursor: progress; }

.sent-card { text-align: center; padding: 48px 32px; }
.sent-icon { display: inline-flex; padding: 14px; border-radius: 50%; background: var(--success-soft); color: var(--success); margin-bottom: 14px; }
.sent-icon .icon { width: 34px; height: 34px; }
.sent-card h2 { font-size: 1.6rem; }
.sent-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

.contact-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.side-card-tint { background: var(--bg-soft); }
.side-card h2 { font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 16px; }
.steps { list-style: none; display: grid; gap: 16px; }
.steps li { display: flex; gap: 12px; }
.steps strong { display: block; font-size: .95rem; }
.steps p { margin: 2px 0 0; font-size: .875rem; color: var(--muted); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.side-card .check-list li { font-size: .9rem; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .contact-side { position: static; } }

/* ── Privacy, termini e condizioni, 404 ───────────────────── */
.section-legal { padding-top: 24px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--text-2); }
.legal ul, .legal ol { padding-left: 22px; display: grid; gap: 8px; }
.legal-doc p a, .legal-doc li a, .legal-doc dd a { text-decoration: underline; text-underline-offset: 2px; }
.page-terms h1, .page-privacy h1 { hyphens: auto; overflow-wrap: break-word; }
.legal-note { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 28px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--primary-soft); color: var(--text); font-size: .95rem; }
.legal-note .icon { margin-top: 3px; color: var(--primary-text); }
.legal-toc { margin: 32px 0 8px; padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-soft); }
.legal-toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.legal-toc ol { display: block; list-style: none; padding: 0; columns: 2 240px; column-gap: 32px; }
.legal-toc li { break-inside: avoid; margin-bottom: 7px; font-size: .925rem; }
.legal-doc .legal-toc a { color: var(--text-2); text-decoration: none; }
.legal-doc .legal-toc a:hover { color: var(--primary-text); text-decoration: underline; }
.legal-article { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-defs { display: grid; gap: 12px; margin: 0 0 16px; }
.legal-defs dt { font-weight: 700; color: var(--text); }
.legal-defs dd { margin: 2px 0 0; color: var(--text-2); }
.legal-sign { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .875rem; color: var(--muted) !important; }
.legal-top { margin-top: 20px; font-size: .9rem; }
.legal-top a { display: inline-flex; gap: 6px; align-items: center; }

/* ── Avviso sui cookie ────────────────────────────────────── */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .9rem; color: var(--text-2); }
.cookie-bar > .icon { color: var(--primary-text); width: 1.4em; height: 1.4em; }
.cookie-bar p { flex: 1 1 300px; margin: 0; }
.cookie-bar p a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar .btn { flex-shrink: 0; }
.no-js .cookie-bar, .cookie-bar[hidden] { display: none; }
@media (max-width: 640px) { .cookie-bar > .icon { display: none; } .cookie-bar .btn { width: 100%; justify-content: center; } }
@media print { .cookie-bar, .legal-top { display: none; } }
.notfound { padding: 110px 0 120px; }
.notfound-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; margin: 0 0 10px; }
.notfound-code { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Piè di pagina ────────────────────────────────────────── */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 64px 0 28px; font-size: .925rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 360px; }
.footer-col h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--primary-text); }
.footer-contacts { list-style: none; display: grid; gap: 9px; }
.footer-contacts li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.footer-contacts li a { overflow-wrap: anywhere; }
.footer-contacts .icon { color: var(--primary); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .825rem; }
.footer-bottom p { margin: 0; }
.footer-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.footer-lang a { color: var(--muted); }
.footer-lang a[aria-current] { color: var(--text); font-weight: 650; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Comparsa allo scorrimento (solo con JavaScript) ──────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .mock-float { animation: none; }
    * { transition-duration: 0s !important; }
}

@media print {
    .site-header, .lang-bar, .cta-section, .site-footer, .billing-toggle, .hero-bg { display: none !important; }
    .section { padding: 24px 0; }
    .js .reveal { opacity: 1; transform: none; }
}

/* Card dei piani allineate riga per riga (prezzo, pulsante, caratteristiche) dove il browser supporta subgrid */
@supports (grid-template-rows: subgrid) {
    @media (min-width: 641px) {
        .plan-grid { row-gap: 0; }
        .plan-card { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
        .plan-desc, .plan-billing { min-height: 0; }
        .plan-price { align-self: end; }
    }
    @media (min-width: 641px) and (max-width: 1150px) { .plan-card:nth-child(n+3) { margin-top: 28px; } }
}

/* Portale clienti: «Accedi» nell'intestazione e due pulsanti nei piani */
.header-login { color: var(--text-2); }
.header-login:hover { background: var(--surface-3); }
@media (max-width: 1180px) { .header-login { display: none; } }
.plan-ctas { display: grid; gap: 8px; }
