/* =====================================================================
 * Reportia — Sito vetrina pubblico
 * Design system coerente con l'app (gradient #6366f1 -> #8b5cf6).
 * ===================================================================== */

:root {
    --brand-1: #6366f1;
    --brand-2: #8b5cf6;
    --brand-3: #ec4899;
    --brand-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --ink-900: #0f172a;
    --ink-700: #1e293b;
    --ink-500: #475569;
    --ink-400: #64748b;
    --ink-300: #94a3b8;
    --line:   #e2e8f0;
    --bg:     #ffffff;
    --bg-soft:#f8fafc;
    --bg-2:   #f1f5f9;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(15,23,42,.05);
    --shadow-md: 0 8px 28px rgba(15,23,42,.08);
    --shadow-lg: 0 24px 60px rgba(15,23,42,.14);
    --shadow-brand: 0 12px 30px rgba(99,102,241,.30);
    --container: 1180px;
    --nav-h: 88px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--ink-700);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a { color: var(--brand-1); text-decoration: none; }
a:hover { color: var(--brand-2); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; color: var(--ink-500); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* =====================================================================
 * NAV pillola flottante (vetro/blur, alta ~78px)
 * ===================================================================== */
.site-nav {
    position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
    z-index: 1000;
    max-width: calc(100% - 32px); width: 1180px;
    background: rgba(255,255,255,.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,.7);
    transition: top .35s ease, box-shadow .35s ease, background .35s ease;
}
.site-nav.scrolled {
    top: 10px;
    box-shadow: var(--shadow-lg);
    background: rgba(255,255,255,.92);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 20px;
    height: var(--nav-h);
}
.nav-brand { display: inline-flex; align-items: center; }
.nav-logo-pill {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-grad);
    padding: 0 14px; border-radius: 999px;
    box-shadow: var(--shadow-brand);
    transition: transform .2s ease;
    overflow: visible;
    height: 64px;
}
.nav-logo-pill:hover { transform: scale(1.03); }
.nav-logo-pill img {
    display: block; height: 96px; width: auto; max-width: 400px; object-fit: contain;
    margin: -16px 0;
}
@media (max-width: 600px) {
    .nav-logo-pill { padding: 0 12px; height: 52px; }
    .nav-logo-pill img { height: 76px; max-width: 260px; margin: -12px 0; }
}
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    padding: 10px 14px; border-radius: 999px;
    color: var(--ink-700); font-weight: 500; font-size: 14px;
    transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--bg-2); color: var(--ink-900); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-login {
    padding: 9px 16px; border-radius: 999px;
    color: var(--ink-700); font-weight: 600; font-size: 14px;
    border: 1.5px solid var(--line);
    transition: all .15s;
}
.nav-login:hover { border-color: var(--brand-1); color: var(--brand-1); }
.nav-cta {
    padding: 10px 18px; border-radius: 999px;
    background: var(--brand-grad); color: white !important;
    font-weight: 600; font-size: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    box-shadow: var(--shadow-brand);
    transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(99,102,241,.42); color: white !important; }
.nav-cta i { font-size: 16px; }
.nav-hamburger {
    display: none;
    background: transparent; border: none;
    width: 40px; height: 40px; border-radius: 50%;
    align-items: center; justify-content: center;
    color: var(--ink-700); cursor: pointer;
}
.nav-hamburger:hover { background: var(--bg-2); }
.nav-mobile {
    display: none;
    flex-direction: column; gap: 4px;
    padding: 16px 20px; border-top: 1px solid var(--line);
    background: white; border-radius: 0 0 22px 22px;
}
.nav-mobile a {
    padding: 12px 16px; border-radius: 10px;
    color: var(--ink-700); font-weight: 500;
}
.nav-mobile a:hover { background: var(--bg-2); }
.nav-mobile .nav-cta-mobile {
    background: var(--brand-grad); color: white !important;
    text-align: center; margin-top: 8px;
}

@media (max-width: 960px) {
    .site-nav { border-radius: 22px; }
    .nav-links { display: none; }
    .nav-login { display: none; }
    .nav-cta { display: none; }
    .nav-hamburger { display: inline-flex; }
    .nav-mobile.open { display: flex; }
}

/* =====================================================================
 * Sezioni base
 * ===================================================================== */
.site-main { padding-top: calc(var(--nav-h) + 40px); }
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-eyebrow {
    display: inline-block;
    background: rgba(99,102,241,.10);
    color: var(--brand-1);
    padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: 14px;
}
.section-title { font-size: clamp(2rem, 3.5vw, 2.6rem); margin-bottom: .4em; }
.section-lead { font-size: 1.1rem; color: var(--ink-500); max-width: 720px; }

/* =====================================================================
 * HERO
 * ===================================================================== */
.hero {
    position: relative; overflow: hidden;
    padding: 60px 0 80px;
    background: radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(139,92,246,.18), transparent 60%),
                radial-gradient(ellipse 800px 500px at 90% 30%, rgba(99,102,241,.14), transparent 60%),
                var(--bg);
}
.hero-grid {
    display: grid; gap: 50px; align-items: center;
    grid-template-columns: 1.05fr .95fr;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: white; padding: 8px 14px; border-radius: 999px;
    box-shadow: var(--shadow-sm);
    font-size: 13px; font-weight: 600; color: var(--ink-500);
    margin-bottom: 22px;
}
.hero-eyebrow i { color: var(--brand-1); font-size: 15px; }
.hero h1 .grad {
    background: var(--brand-grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.18rem; color: var(--ink-500); max-width: 580px; margin: 16px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: all .15s; cursor: pointer; border: none; }
.btn-primary { background: var(--brand-grad); color: white; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(99,102,241,.42); color: white; }
.btn-ghost { background: white; color: var(--ink-700); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand-1); color: var(--brand-1); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-video i { color: var(--brand-1); font-size: 20px; }

.hero-visual {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--brand-grad);
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
    padding: 18px;
    display: flex; align-items: center; justify-content: center;
}
.hero-visual-card {
    background: white; border-radius: 16px;
    width: 100%; height: 100%;
    padding: 22px;
    display: flex; flex-direction: column; gap: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.hv-bar { height: 10px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.hv-bar > div { height: 100%; background: var(--brand-grad); }
.hv-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 4px; }
.hv-tile { background: var(--bg-soft); border-radius: 12px; padding: 14px; }
.hv-tile .lab { font-size: 10px; color: var(--ink-400); text-transform: uppercase; letter-spacing: .06em; }
.hv-tile .val { font-size: 22px; font-weight: 700; color: var(--ink-900); margin-top: 4px; }
.hv-tile .delta { font-size: 11px; color: #16a34a; font-weight: 600; }
.hv-tile .delta.down { color: #dc2626; }
.hv-chart { flex: 1; background: var(--bg-soft); border-radius: 12px; padding: 14px; position: relative; }
.hv-chart svg { width: 100%; height: 100%; }

@media (max-width: 900px) {
    .hero { padding: 36px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-visual { aspect-ratio: 16/10; max-width: 520px; margin: 0 auto; }
}

/* =====================================================================
 * Metriche
 * ===================================================================== */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 56px; }
.metric-card {
    background: white; border-radius: var(--radius-md); padding: 22px;
    border: 1px solid var(--line); text-align: center;
}
.metric-card .v { font-size: 2rem; font-weight: 800; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric-card .l { font-size: 13px; color: var(--ink-500); margin-top: 4px; }

/* =====================================================================
 * Griglia funzionalita'
 * ===================================================================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.feature-card {
    background: white; border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 26px 24px; text-decoration: none;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    color: inherit; display: block; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(99,102,241,.4); color: inherit; }
.feature-card .fc-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--brand-grad); color: white;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 16px;
    box-shadow: var(--shadow-brand);
}
.feature-card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.feature-card p  { font-size: 14px; color: var(--ink-500); margin: 0; }
.feature-card .fc-cta {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--brand-1); font-weight: 600; font-size: 14px; margin-top: 14px;
}
.feature-card .fc-cta i { transition: transform .15s; }
.feature-card:hover .fc-cta i { transform: translateX(4px); }

/* =====================================================================
 * Come funziona — 4 step
 * ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step-card {
    background: white; border-radius: var(--radius-md); padding: 28px;
    border: 1px solid var(--line); position: relative;
}
.step-card .step-num {
    font-size: 4rem; font-weight: 800; line-height: 1;
    background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 12px;
}
.step-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step-card p  { font-size: 14px; color: var(--ink-500); margin: 0; }

/* =====================================================================
 * Feature page (singola)
 * ===================================================================== */
.feature-hero { padding: 70px 0 50px; background: radial-gradient(ellipse 800px 400px at 30% 0, rgba(99,102,241,.12), transparent 60%); }
.feature-hero .badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg-2); padding: 6px 12px; border-radius: 999px;
    color: var(--ink-500); font-size: 12px; font-weight: 600;
}
.feature-hero h1 { margin-top: 14px; }
.feature-content { padding: 50px 0 80px; }
.feature-grid-2 { display: grid; grid-template-columns: 1.4fr .6fr; gap: 50px; }
.feature-block { background: white; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; margin-bottom: 22px; }
.feature-block h2 { font-size: 1.5rem; }
.feature-block ul { padding-left: 20px; }
.feature-block li { margin: 8px 0; color: var(--ink-500); }
.feature-aside { position: sticky; top: 110px; align-self: start; }
.feature-aside .aside-card {
    background: var(--brand-grad); color: white; border-radius: var(--radius-md); padding: 26px;
    box-shadow: var(--shadow-brand); margin-bottom: 20px;
}
.feature-aside .aside-card h3 { color: white; font-size: 1.25rem; }
.feature-aside .aside-card p  { color: rgba(255,255,255,.92); font-size: 14px; }
.feature-aside .aside-card .btn { background: white; color: var(--brand-1); margin-top: 8px; width: 100%; justify-content: center; }
.feature-aside .aside-list { background: white; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.feature-aside .aside-list h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); margin-bottom: 12px; }
.feature-aside .aside-list a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-700); }
.feature-aside .aside-list a:last-child { border-bottom: none; }
.feature-aside .aside-list a:hover { color: var(--brand-1); }
@media (max-width: 900px) { .feature-grid-2 { grid-template-columns: 1fr; } .feature-aside { position: static; } }

/* FAQ */
.faq-item { background: white; border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--ink-900); }
.faq-q i { transition: transform .2s; color: var(--brand-1); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; color: var(--ink-500); }
.faq-item.open .faq-a { padding: 0 22px 18px; max-height: 600px; }

/* =====================================================================
 * Blog
 * ===================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.blog-card {
    background: white; border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 24px; text-decoration: none; color: inherit;
    display: flex; flex-direction: column; transition: all .25s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(99,102,241,.3); color: inherit; }
.blog-card .bc-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(99,102,241,.10); color: var(--brand-1);
    display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
    margin-bottom: 14px;
}
.blog-card .bc-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); font-weight: 700; margin-bottom: 6px; }
.blog-card h3 { font-size: 1.1rem; margin: 0 0 8px; }
.blog-card p { font-size: 14px; color: var(--ink-500); margin: 0; flex: 1; }
.blog-card .bc-cta { color: var(--brand-1); font-weight: 600; font-size: 13px; margin-top: 14px; display: inline-flex; align-items: center; gap: 4px; }

.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.blog-filter {
    padding: 8px 14px; border-radius: 999px;
    background: white; border: 1.5px solid var(--line);
    color: var(--ink-700); font-size: 13px; font-weight: 600; text-decoration: none;
    transition: all .15s;
}
.blog-filter:hover, .blog-filter.active { border-color: var(--brand-1); color: var(--brand-1); }
.blog-filter.active { background: rgba(99,102,241,.08); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 8px 14px; border-radius: 10px;
    background: white; border: 1px solid var(--line);
    color: var(--ink-700); font-weight: 600; font-size: 14px; text-decoration: none;
}
.pagination a:hover { border-color: var(--brand-1); color: var(--brand-1); }
.pagination .current { background: var(--brand-grad); color: white; border-color: transparent; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* Articolo */
.article-hero { padding: 60px 0 30px; }
.article-cat { color: var(--brand-1); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.article-body { background: white; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 40px; max-width: 820px; margin: 0 auto; }
.article-body h2 { font-size: 1.5rem; margin-top: 1.5em; }
.article-body h3 { font-size: 1.2rem; margin-top: 1.4em; }
.article-body p, .article-body ul, .article-body ol { color: var(--ink-700); }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin: 6px 0; }
.article-body a { color: var(--brand-1); }
.article-related { margin-top: 60px; }

/* =====================================================================
 * CTA banner (in fondo pagine)
 * ===================================================================== */
.cta-banner {
    background: var(--brand-grad); color: white; border-radius: var(--radius-lg);
    padding: 60px 50px; text-align: center; box-shadow: var(--shadow-lg); margin: 60px 0;
}
.cta-banner h2 { color: white; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-banner p  { color: rgba(255,255,255,.92); max-width: 600px; margin: 0 auto 24px; }
.cta-banner .btn { background: white; color: var(--brand-1); }
.cta-banner .btn:hover { background: white; transform: translateY(-2px); }

/* =====================================================================
 * FOOTER
 * ===================================================================== */
.site-footer { background: var(--ink-900); color: #cbd5e1; padding: 70px 0 30px; margin-top: 80px; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px;
                display: grid; gap: 50px; grid-template-columns: 1.4fr .8fr .8fr 1fr; }
.footer-col h4 { color: white; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { padding: 6px 0; }
.footer-col ul a { color: #cbd5e1; font-size: 14px; }
.footer-col ul a:hover { color: white; }
.footer-tagline { font-size: 14px; color: #94a3b8; margin: 18px 0; line-height: 1.6; }
.footer-tagline strong { color: white; }
.footer-certs { margin-top: 18px; }
.footer-cert-row { font-size: 12px; color: #94a3b8; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.footer-cert-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.cert-badge {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
    color: white; padding: 6px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 600; letter-spacing: .04em;
}
.footer-contact-list i { color: var(--brand-1); margin-right: 6px; }
.footer-bottom {
    max-width: var(--container); margin: 50px auto 0; padding: 24px 24px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
    font-size: 12px; color: #94a3b8;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }

/* =====================================================================
 * Animazioni Apple-style con IntersectionObserver
 * ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-stagger="1"] { transition-delay: .05s; }
.reveal[data-stagger="2"] { transition-delay: .10s; }
.reveal[data-stagger="3"] { transition-delay: .15s; }
.reveal[data-stagger="4"] { transition-delay: .20s; }
.reveal[data-stagger="5"] { transition-delay: .25s; }
.reveal[data-stagger="6"] { transition-delay: .30s; }

.hero-anim > * { opacity: 0; transform: translateY(20px); animation: heroIn .9s cubic-bezier(.16,1,.3,1) forwards; }
.hero-anim > *:nth-child(1) { animation-delay: .05s; }
.hero-anim > *:nth-child(2) { animation-delay: .15s; }
.hero-anim > *:nth-child(3) { animation-delay: .25s; }
.hero-anim > *:nth-child(4) { animation-delay: .35s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    .reveal, .hero-anim > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
    .site-nav { transition: none; }
}

/* =====================================================================
 * PREVENTIVATORE PREZZI (/prezzi)
 * ===================================================================== */
.pricing-grid {
    display: grid; gap: 30px;
    grid-template-columns: 1.3fr .7fr;
    align-items: start;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-config { display: flex; flex-direction: column; gap: 18px; }

.config-card {
    background: white; border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: border-color .15s, box-shadow .15s;
}
.config-card:hover { border-color: rgba(99,102,241,.35); box-shadow: var(--shadow-sm); }

.config-card-head {
    display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center;
}
.config-card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--brand-grad); color: white;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; box-shadow: var(--shadow-brand);
}
.config-card-price { text-align: right; }
.config-card-price .cp-amount {
    font-size: 1.5rem; font-weight: 800;
    background: var(--brand-grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.config-card-price .cp-period { font-size: 13px; color: var(--ink-400); margin-left: 2px; }

.config-stepper {
    display: flex; align-items: center; gap: 10px;
    margin-top: 18px;
}
.config-stepper .stp-btn {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--bg-soft); border: 1.5px solid var(--line);
    color: var(--ink-700); font-size: 20px; font-weight: 700;
    cursor: pointer; transition: all .15s;
    display: inline-flex; align-items: center; justify-content: center;
}
.config-stepper .stp-btn:hover { background: var(--brand-grad); color: white; border-color: transparent; box-shadow: var(--shadow-brand); }
.config-stepper input[type=number] {
    width: 90px; height: 42px;
    border: 1.5px solid var(--line); border-radius: 10px;
    text-align: center; font-size: 1.1rem; font-weight: 700;
    color: var(--ink-900); font-family: inherit;
    -moz-appearance: textfield;
}
.config-stepper input[type=number]::-webkit-outer-spin-button,
.config-stepper input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.config-stepper .stp-label { color: var(--ink-500); font-size: 14px; font-weight: 600; }
.config-hint {
    margin-top: 12px; padding: 10px 14px;
    background: rgba(99,102,241,.06); border-left: 3px solid var(--brand-1);
    border-radius: 8px; font-size: 13px; color: var(--ink-500);
    display: flex; align-items: flex-start; gap: 8px;
}
.config-hint i { color: var(--brand-1); font-size: 16px; margin-top: 2px; flex-shrink: 0; }

.config-example {
    background: linear-gradient(135deg, rgba(245,158,11,.10), rgba(236,72,153,.08));
    border: 1px solid rgba(245,158,11,.30);
    border-radius: var(--radius-md);
    padding: 16px 20px; font-size: 14px; color: var(--ink-700);
}
.config-example i { color: #f59e0b; margin-right: 4px; }

/* Box riepilogo sticky */
.pricing-summary { position: sticky; top: 120px; }
@media (max-width: 900px) { .pricing-summary { position: static; } }
.summary-card {
    background: white; border: 1.5px solid var(--brand-1);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
}
.summary-title {
    font-size: 1.05rem; font-weight: 700; color: var(--ink-900);
    margin-bottom: 18px; padding-bottom: 14px;
    border-bottom: 2px dashed var(--line);
    display: flex; align-items: center; gap: 8px;
}
.summary-title i { color: var(--brand-1); }
.summary-section { margin-bottom: 18px; }
.summary-section .ss-label {
    font-size: 11px; font-weight: 700; color: var(--ink-400);
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px;
}
.summary-section .ss-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0; font-size: 14px; color: var(--ink-500);
}
.summary-section .ss-row span:last-child {
    font-family: 'Fira Code', monospace; color: var(--ink-700); font-weight: 600;
}
.summary-section .ss-total {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line);
}
.summary-section .ss-total span:first-child { font-weight: 700; color: var(--ink-900); }
.summary-section .ss-total span:last-child {
    font-family: 'Fira Code', monospace;
    font-size: 1.6rem; font-weight: 800;
    background: var(--brand-grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.summary-note {
    margin-top: 14px; padding: 10px 12px;
    background: var(--bg-soft); border-radius: 8px;
    font-size: 12px; color: var(--ink-500); text-align: center;
}
.summary-features {
    margin-top: 18px; padding-top: 16px;
    border-top: 1px solid var(--line);
}
.summary-features div {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13px; color: var(--ink-500); margin: 6px 0;
}
.summary-features i { color: #16a34a; font-size: 14px; margin-top: 2px; flex-shrink: 0; }

/* Toggle moduli extra (switch on/off card) */
.modulo-toggle {
    display: block; cursor: pointer;
    border: 1.5px solid var(--line); border-radius: 12px;
    padding: 14px 16px; margin-top: 14px;
    transition: border-color .15s, background .15s;
    position: relative;
}
.modulo-toggle:has(input:checked) {
    border-color: var(--brand-1);
    background: rgba(99,102,241,.04);
}
.modulo-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.mod-content { padding-left: 28px; position: relative; }
.mod-content::before {
    content: ""; position: absolute; left: 0; top: 4px;
    width: 18px; height: 18px; border-radius: 6px;
    border: 2px solid var(--line); background: white;
    transition: all .15s;
}
.modulo-toggle:has(input:checked) .mod-content::before {
    background: var(--brand-grad); border-color: transparent;
}
.modulo-toggle:has(input:checked) .mod-content::after {
    content: "\2713"; position: absolute; left: 4px; top: 1px;
    color: white; font-weight: 700; font-size: 14px;
}
.mod-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.mod-head i { color: var(--brand-1); font-size: 18px; }
.mod-head .mod-label { flex: 1; }
.mod-head .mod-price { color: var(--brand-1); font-family: 'Fira Code', monospace; font-size: 13px; }
.mod-desc { font-size: 13px; color: var(--ink-500); margin-top: 4px; line-height: 1.5; }

/* Pulsante video testuale (alternativa al btn ghost) */
.btn-text-video {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--ink-500); font-weight: 600; font-size: 14px;
    padding: 14px 8px; text-decoration: none;
    transition: color .15s;
}
.btn-text-video:hover { color: var(--brand-1); }
.btn-text-video i { color: var(--brand-1); font-size: 22px; }

/* Video embed sezione home (aspect-ratio 16:9 responsivo) */
.video-section { background: var(--bg); }
.video-embed {
    max-width: 960px; margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--ink-900);
    border: 1px solid var(--line);
}
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Embed video modale */
.video-modal { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 24px; }
.video-modal.open { display: flex; }
.video-modal-inner { width: 100%; max-width: 920px; aspect-ratio: 16/9; position: relative; }
.video-modal iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; box-shadow: var(--shadow-lg); }
.video-modal-close {
    position: absolute; top: -42px; right: 0;
    background: rgba(255,255,255,.15); border: none; color: white;
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.video-modal-close:hover { background: rgba(255,255,255,.30); }
