/* ================================================================
   XManager Pro - Main Stylesheet
   Design: Brand Identity 2026 - "Un solo ecosistema. Tutta la gestione sanitaria."
   Palette: Blu Notte / Blu Elettrico / Turchese Vitale / Corallo Energia
   Font: Plus Jakarta Sans (display) + Inter (body) + JetBrains Mono (numeri)
   Framework: Bootstrap 5.3.3 (overrides below)
   Un prodotto Netlux S.r.l.
   ================================================================ */

/* === Design Tokens === */
:root {
    /* Brand palette */
    --blu-notte: #0E1F38;
    --blu-notte-deep: #081524;
    --blu-notte-soft: #16305A;
    --blu-elettrico: #2F6FED;
    --blu-elettrico-dark: #1F55C4;
    --blu-elettrico-soft: #E8F0FE;
    --turchese: #00C2A6;
    --turchese-dark: #036B58;
    --turchese-soft: #DFF8F3;
    --corallo: #FF5D45;
    --corallo-dark: #B8351F;
    --corallo-soft: #FFEAE6;
    --bianco: #FFFFFF;
    --grigio-nebbia: #F1F3F6;
    --grigio-linea: #E4E8EC;
    --grigio-ardesia: #626C7A;
    --grigio-ardesia-soft: #8A93A0;

    /* Tinte derivate (solo mix matematici dei colori di brand, nessun hex nuovo) */
    --turchese-light: color-mix(in srgb, var(--turchese) 82%, white);
    --blu-elettrico-light: color-mix(in srgb, var(--blu-elettrico) 82%, white);
    --corallo-light: color-mix(in srgb, var(--corallo) 82%, white);
    --corallo-hover: color-mix(in srgb, var(--corallo) 85%, black);

    /* Legacy token mapping (kept for compatibility) */
    --color-primary: var(--turchese);
    --color-primary-dark: var(--turchese-dark);
    --color-primary-light: rgba(0, 194, 166, 0.08);
    --color-secondary: var(--blu-elettrico);
    --color-secondary-dark: var(--blu-elettrico-dark);
    --color-accent: var(--corallo);
    --color-accent-dark: var(--corallo-dark);
    --color-dark: var(--blu-notte);
    --color-light: var(--grigio-nebbia);
    --color-gray: var(--grigio-ardesia);
    --color-gray-light: var(--grigio-ardesia-soft);

    /* Typography */
    --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

    /* Shadows (light theme, blu-notte tinted) */
    --shadow-sm: 0 1px 3px rgba(14, 31, 56, 0.06);
    --shadow-md: 0 4px 14px rgba(14, 31, 56, 0.08);
    --shadow-lg: 0 14px 40px rgba(14, 31, 56, 0.12);
    --shadow-depth: 0 1px 2px rgba(14, 31, 56, 0.04),
                    0 4px 8px rgba(14, 31, 56, 0.05),
                    0 16px 32px rgba(14, 31, 56, 0.06),
                    0 32px 64px rgba(14, 31, 56, 0.07);
    --shadow-glow: 0 0 20px rgba(0, 194, 166, 0.10);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* "Glass" cards on light theme */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: var(--grigio-linea);
    --glass-blur: blur(16px);

    /* Dark hero gradient (identikit) */
    --hero-gradient: radial-gradient(120% 140% at 15% -10%, var(--blu-notte-soft) 0%, var(--blu-notte) 45%, var(--blu-notte-deep) 100%);
}

/* === Typography === */
body {
    font-family: var(--font-primary);
    color: var(--blu-notte);
    line-height: 1.7;
    background: var(--bianco);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--blu-notte);
}

.lead {
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--grigio-ardesia);
}

/* Numbers, prices, times: mono */
.stat-number,
.pricing-price,
.solo-price-display {
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

/* === Glassmorphism (light) === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.glass-card-dark {
    background: var(--blu-notte);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    color: var(--bianco);
}

/* === Gradient Effects === */
.gradient-text {
    background: linear-gradient(135deg, var(--turchese), var(--blu-elettrico));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    font-weight: 800;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--turchese), var(--blu-elettrico));
}

.gradient-bg-accent {
    background: linear-gradient(135deg, var(--corallo), var(--corallo-light));
}

.gradient-bg-animated {
    background: linear-gradient(-45deg, var(--turchese), var(--blu-elettrico), var(--turchese-dark), var(--turchese));
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === Depth Shadows === */
.depth-shadow {
    box-shadow: var(--shadow-depth);
}

.depth-shadow-hover {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.depth-shadow-hover:hover {
    box-shadow: var(--shadow-depth);
    transform: translateY(-4px);
}

/* === Navbar (light, clean) === */
.navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: none;
    border-bottom: 1px solid var(--grigio-linea);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-display);
    padding-top: 0;
    padding-bottom: 0;
    color: var(--blu-notte);
}

.navbar-brand .navbar-logo {
    margin: -0.25rem 0;
    height: 56px;
    width: auto;
    filter: none;
    transition: opacity 0.3s ease;
}

.navbar-brand .navbar-logo:hover {
    opacity: 0.85;
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--grigio-ardesia);
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--turchese);
}

/* Navbar toggler (hamburger) */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(14, 31, 56, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 194, 166, 0.15);
}

/* === Buttons === */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

/* Primario/Interattivo: Turchese Vitale */
.btn-primary {
    background: var(--turchese);
    border: none;
    color: var(--blu-notte);
    font-weight: 600;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--turchese-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 194, 166, 0.30);
}

/* Accento/Azione: Corallo Energia */
.btn-accent {
    background: var(--corallo);
    border: none;
    color: #fff;
    font-weight: 700;
}
.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active {
    background: var(--corallo-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 93, 69, 0.35);
}

.btn-outline-primary {
    color: var(--turchese);
    border-color: rgba(0, 194, 166, 0.45);
}
.btn-outline-primary:hover {
    background: rgba(0, 194, 166, 0.08);
    border-color: var(--turchese);
    color: var(--turchese);
    transform: translateY(-1px);
}

.btn-outline-light {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

/* Rounded pill buttons */
.btn.rounded-pill {
    border-radius: 50px;
}

/* === Hero Section (Blu Notte, identikit) === */
.hero-section {
    background: var(--hero-gradient);
    color: var(--bianco);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle turquoise glow behind hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(47, 111, 237, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Light beam effect across hero (pulse line) */
.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(47, 111, 237, 0.05) 15%, rgba(47, 111, 237, 0.25) 50%, rgba(47, 111, 237, 0.05) 85%, transparent 100%);
    z-index: 0;
    pointer-events: none;
    animation: beamPulse 4s ease-in-out infinite;
}

@keyframes beamPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section .display-4 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--bianco);
}

.hero-section h1,
.hero-section h2,
.hero-section h3 {
    color: var(--bianco);
}

.hero-section .lead {
    color: #C9D3E2;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.typed-cursor {
    color: var(--blu-elettrico);
    font-weight: 300;
}

.hero-trust-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-trust-badge {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(47, 111, 237, 0.25);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-trust-badge i {
    color: var(--blu-elettrico);
}

/* === Cards (light) === */
.card {
    background: #fff;
    border: 1px solid var(--grigio-linea);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: var(--blu-notte);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 194, 166, 0.25);
}

.card .card-body {
    color: var(--blu-notte);
}

.card .card-title {
    color: var(--blu-notte);
}

.card .card-text {
    color: var(--grigio-ardesia);
}

/* === Footer (Blu Notte) === */
.site-footer {
    background: var(--blu-notte);
    color: #93A2BC;
    border-top: none;
}

.footer-text {
    color: #93A2BC;
    margin-bottom: 0.25rem;
}

.footer-link {
    color: #93A2BC;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--blu-elettrico);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.10);
}

.site-footer h5,
.site-footer h6 {
    font-weight: 700;
    color: var(--bianco);
}

.footer-motto {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--blu-elettrico);
}

.footer-logo {
    display: block;
    height: 44px;
    width: auto;
}

/* === Breadcrumb === */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--turchese);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    color: var(--turchese-dark);
}

.breadcrumb-item.active {
    color: var(--grigio-ardesia);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--grigio-ardesia-soft);
}

/* === Utility Classes === */
.text-primary { color: var(--turchese) !important; }
.text-secondary-custom { color: var(--blu-elettrico-dark) !important; }
.text-accent { color: var(--corallo) !important; }
.bg-primary-light { background-color: rgba(0, 194, 166, 0.06) !important; }
.bg-light { background-color: var(--grigio-nebbia) !important; }

.section-padding {
    padding: 5rem 0;
}

.section-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--blu-notte);
}

.section-subheading {
    font-size: 1.1rem;
    color: var(--grigio-ardesia);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Editable content wrapper - styles page_content() output */
.section-intro h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--blu-notte);
}
.section-intro p {
    font-size: 1.1rem;
    color: var(--grigio-ardesia);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.section-intro p:last-child { margin-bottom: 0; }

/* Dark sections keep light text */
.section-dark .section-intro h1,
.section-dark .section-intro h2,
.section-dark .section-intro h3 {
    color: var(--bianco);
}
.section-dark .section-intro p {
    color: #C9D3E2;
}

/* CTA section */
.cta-section .section-intro p {
    color: #C9D3E2;
}

/* Story content (chi-siamo) */
.story-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--blu-notte);
}
.story-content p {
    font-size: 1.1rem;
    color: var(--grigio-ardesia);
}

/* Page header content */
.page-header-intro h1 {
    font-size: calc(1.325rem + 0.9vw);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--blu-notte);
}
.page-header-intro p {
    color: var(--grigio-ardesia);
    font-size: 1.25rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Page headers inside dark sections keep light text */
.section-dark .page-header-intro h1,
.hero-section .page-header-intro h1 {
    color: var(--bianco);
}
.section-dark .page-header-intro p,
.hero-section .page-header-intro p {
    color: #C9D3E2;
}

/* === Scroll Reveal (initial state for GSAP) === */
.reveal, .reveal-stagger > * {
    /* Elements start visible; GSAP handles the animation.
       If JS fails, content is still visible. */
}

/* === 404 Page === */
.display-1.gradient-text {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
}

/* === Responsive === */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--grigio-linea);
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-lg);
    }

    .navbar .nav-link {
        padding: 0.75rem 1rem;
    }

    .hero-section {
        min-height: 50vh;
    }
}

@media (max-width: 575.98px) {
    .hero-section .display-4 {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

/* ================================================================
   Homepage Sections - light theme with Blu Notte anchors
   ================================================================ */

/* === Dark Section Base (Blu Notte anchor) === */
.section-dark {
    background: var(--hero-gradient);
    color: var(--bianco);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
    color: var(--bianco);
}

/* === Problems Section (light) === */
.problems-section {
    background: var(--bianco);
    color: var(--blu-notte);
}

.problem-card {
    background: var(--grigio-nebbia);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    box-shadow: none;
    padding: 2rem;
    min-height: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 194, 166, 0.25);
    background: #fff;
}

.problem-card .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--corallo-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.problem-card .icon-circle i {
    font-size: 1.5rem;
    color: var(--corallo);
}

.problem-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--blu-notte);
}

.problem-card p {
    font-size: 0.95rem;
    color: var(--grigio-ardesia);
    margin-bottom: 0;
}

/* === Modules Section (light nebbia) === */
.modules-section {
    background: var(--bianco);
    color: var(--blu-notte);
}

.modules-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.module-tab {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--grigio-linea);
    border-radius: 50px;
    background: #fff;
    color: var(--grigio-ardesia);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.module-tab:hover {
    border-color: rgba(0, 194, 166, 0.45);
    color: var(--turchese);
}

.module-tab.active {
    background: var(--turchese);
    border-color: var(--turchese);
    color: var(--blu-notte);
    font-weight: 600;
}

.module-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.module-content .module-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--blu-notte);
}

.module-content .module-info p {
    color: var(--grigio-ardesia);
    margin-bottom: 1.5rem;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.module-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.module-features li i {
    color: var(--blu-elettrico);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.module-features li strong {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--blu-notte);
}

.module-features li span {
    display: block;
    font-size: 0.875rem;
    color: var(--grigio-ardesia);
}

.module-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-visual img {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 40px rgba(14, 31, 56, 0.14), 0 0 0 1px var(--grigio-linea);
    transition: transform 0.3s ease;
}

.module-visual img:hover {
    transform: scale(1.02);
}

.module-visual i {
    font-size: 8rem;
    color: rgba(0, 194, 166, 0.12);
    opacity: 0.5;
}

/* === Screenshot Animations === */
@keyframes screenshotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes screenshotFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Hero Product Screenshot (homepage) === */
.hero-screenshot {
    margin-top: 3rem;
    perspective: 1200px;
    position: relative;
}

.hero-screenshot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(47, 111, 237, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.hero-screenshot img {
    position: relative;
    z-index: 1;
    max-width: 960px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px -12px rgba(8, 21, 36, 0.55),
                0 0 0 1px rgba(255, 255, 255, 0.10);
    animation: screenshotFloat 6s ease-in-out infinite;
    transform-origin: center center;
}

/* === Showcase Section (3 product cards) === */
.showcase-section {
    background: var(--bianco);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    perspective: 1000px;
}

.showcase-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: var(--blu-notte);
    border: 1px solid var(--grigio-linea);
}

.showcase-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px -10px rgba(14, 31, 56, 0.30);
    border-color: rgba(0, 194, 166, 0.35);
}

.showcase-card img {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-card:hover img {
    transform: scale(1.05);
}

.showcase-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.25rem 1.25rem;
    background: linear-gradient(transparent, rgba(8, 21, 36, 0.92));
    color: var(--bianco);
}

.showcase-card-label h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--bianco);
}

.showcase-card-label p {
    font-size: 0.85rem;
    margin-bottom: 0;
    opacity: 0.9;
    color: #C9D3E2;
}

@media (max-width: 767.98px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-screenshot img {
        animation: none;
    }

    .hero-screenshot::before {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-grid > :last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* === Screenshot showcase for module detail pages === */
.module-hero-screenshot {
    text-align: center;
    margin-top: -2rem;
    margin-bottom: 2rem;
    perspective: 1000px;
}

.module-hero-screenshot img {
    max-width: 900px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px -10px rgba(14, 31, 56, 0.20),
                0 0 0 1px var(--grigio-linea);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.module-hero-screenshot img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 30px 80px -10px rgba(14, 31, 56, 0.25),
                0 0 0 1px rgba(0, 194, 166, 0.25);
}

/* === Feature card with screenshot === */
.feature-card-img {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.feature-card-img img {
    width: 100%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-card-img:hover img {
    transform: scale(1.04);
}

/* === Feature showcase image === */
.feature-showcase-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px -8px rgba(14, 31, 56, 0.18),
                0 0 0 1px var(--grigio-linea);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-showcase-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px -8px rgba(14, 31, 56, 0.22),
                0 0 0 1px rgba(0, 194, 166, 0.25);
}

/* === Alternating feature rows (module detail pages) === */
.feature-highlight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
}

.feature-highlight-row.reversed {
    direction: rtl;
}

.feature-highlight-row.reversed > * {
    direction: ltr;
}

.feature-highlight-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-highlight-img:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -10px rgba(14, 31, 56, 0.25);
}

.feature-highlight-img img {
    width: 100%;
    display: block;
}

@media (max-width: 767.98px) {
    .feature-highlight-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-highlight-row.reversed {
        direction: ltr;
    }
}

/* === Comparison Section (light) === */
.comparison-section {
    background: var(--bianco);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--grigio-linea);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table thead th {
    background: var(--blu-notte);
    color: var(--bianco);
    font-weight: 600;
    padding: 1rem;
    font-size: 0.9rem;
    text-align: center;
    border: none;
    border-bottom: 1px solid var(--grigio-linea);
}

.comparison-table thead th:first-child {
    text-align: left;
}

.comparison-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--grigio-linea);
    text-align: center;
    font-size: 0.9rem;
    color: var(--blu-notte);
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--blu-notte);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: rgba(0, 194, 166, 0.04);
}

.comparison-table .highlight-col {
    background: rgba(0, 194, 166, 0.05);
}

.comparison-table thead .highlight-col {
    background: var(--turchese);
    color: var(--blu-notte);
}

.comparison-table .bi-check-circle-fill.text-success {
    font-size: 1.1rem;
    color: var(--turchese) !important;
}

.comparison-table .bi-x-circle-fill.text-danger {
    font-size: 1.1rem;
    color: rgba(255, 93, 69, 0.55) !important;
}

/* === Stats Section (Blu Notte) === */
.stats-section {
    background: var(--hero-gradient);
    color: var(--bianco);
    border-top: none;
    border-bottom: none;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--blu-elettrico);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.95rem;
    color: #C9D3E2;
    margin-top: 0.25rem;
}

/* === Testimonials Section (light) === */
.testimonials-section {
    background: var(--bianco);
    color: var(--blu-notte);
}

/* Testimonials inside dark wrapper keep light heading */
.testimonials-section.section-dark {
    background: var(--hero-gradient);
    color: var(--bianco);
}

.testimonials-swiper {
    padding-bottom: 3rem;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--grigio-linea);
    border-radius: var(--radius-lg);
    padding: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    color: var(--blu-notte);
}

.testimonial-card--video,
.testimonial-card--image {
    padding: 0;
}

.testimonial-card--video .testimonial-card-body,
.testimonial-card--image .testimonial-card-body {
    padding: 1.5rem 2rem 2rem;
}

.testimonial-video-wrap {
    border-radius: 0;
    overflow: hidden;
    margin: 0;
    background: #000;
}

.testimonial-video-wrap video,
.testimonial-video-wrap iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-image-wrap {
    margin: 0;
    overflow: hidden;
    max-height: 240px;
}

.testimonial-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* === Video Demo Section === */
.video-demo-section {
    background: var(--bianco);
    position: relative;
}

.video-demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 194, 166, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.video-demo-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(14, 31, 56, 0.18);
    border: 1px solid var(--grigio-linea);
}

.video-demo-wrap iframe,
.video-demo-wrap video {
    width: 100%;
    height: 100%;
    display: block;
}

/* === Case Study List + Detail === */
.case-study-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.case-study-card {
    background: #fff;
    border: 1px solid var(--grigio-linea);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.case-study-card-link:hover .case-study-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 194, 166, 0.35);
}

.case-study-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--grigio-nebbia);
}

.case-study-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-study-card-link:hover .case-study-card-image img {
    transform: scale(1.05);
}

.case-study-card-body {
    padding: 1.5rem;
    color: var(--blu-notte);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-study-logo {
    max-height: 40px;
    max-width: 100px;
    object-fit: contain;
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--grigio-linea);
}

.case-study-title {
    color: var(--blu-notte);
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.case-study-center {
    color: var(--grigio-ardesia);
}

.case-study-link {
    color: var(--turchese);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Detail page */
.case-study-hero {
    background: var(--hero-gradient);
    color: var(--bianco);
}

.case-study-hero h1 {
    color: var(--bianco);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.back-link {
    color: var(--turchese);
    text-decoration: none;
}

.back-link:hover {
    color: var(--turchese-dark);
    text-decoration: underline;
}

.case-study-quote {
    background: var(--blu-elettrico-soft);
    border-left: 4px solid var(--blu-elettrico);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 2rem 2rem 2rem 3rem;
    margin: 3rem 0;
    position: relative;
    color: var(--blu-notte);
}

.case-study-quote .quote-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.8rem;
    color: var(--blu-elettrico);
    opacity: 0.5;
}

.case-study-quote p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.case-study-quote footer {
    font-size: 0.95rem;
    color: var(--grigio-ardesia);
}

.case-study-block {
    margin-bottom: 3rem;
    color: var(--blu-notte);
}

.case-study-block-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.case-study-block h3 {
    color: var(--blu-notte);
    margin-bottom: 1rem;
}

.case-study-block-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--grigio-ardesia);
}

/* Homepage success stories */
.success-stories-section {
    background: linear-gradient(180deg, transparent 0%, rgba(47, 111, 237, 0.05) 100%);
}

/* === Homepage FAQ Accordion === */
.homepage-faq-section {
    background: var(--bianco);
    color: var(--blu-notte);
}

.homepage-faq-section h2 {
    color: var(--blu-notte);
}

.homepage-faq-accordion .accordion-item {
    background: #fff;
    border: 1px solid var(--grigio-linea);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.homepage-faq-accordion .accordion-item:first-of-type,
.homepage-faq-accordion .accordion-item:last-of-type {
    border-radius: var(--radius-md);
}

.homepage-faq-accordion .accordion-header {
    margin: 0;
}

.homepage-faq-accordion .accordion-button {
    background: transparent;
    color: var(--blu-notte);
    font-weight: 600;
    font-size: 1rem;
    padding: 1.1rem 1.5rem;
    border: 0;
    box-shadow: none;
    font-family: var(--font-display);
}

.homepage-faq-accordion .accordion-button:not(.collapsed) {
    background: var(--turchese-soft);
    color: var(--turchese);
    box-shadow: inset 0 -1px 0 rgba(0, 194, 166, 0.15);
}

.homepage-faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 194, 166, 0.20);
}

.homepage-faq-accordion .accordion-button::after {
    filter: none;
}

.homepage-faq-accordion .accordion-body {
    color: var(--grigio-ardesia);
    font-size: 0.98rem;
    line-height: 1.7;
    padding: 0 1.5rem 1.5rem;
}

.homepage-faq-accordion .accordion-body p {
    margin-bottom: 0.75rem;
}

.homepage-faq-accordion .accordion-body strong {
    color: var(--blu-notte);
}

.homepage-faq-accordion .accordion-body a {
    color: var(--turchese);
    text-decoration: none;
}

.homepage-faq-accordion .accordion-body a:hover {
    text-decoration: underline;
}

/* === ROI Box (pagina prezzi) === */
.roi-box {
    background: linear-gradient(135deg, var(--corallo-soft) 0%, var(--blu-elettrico-soft) 100%);
    border: 1px solid rgba(255, 93, 69, 0.30);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.roi-box-inner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.roi-box-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--corallo-soft);
    border: 2px solid rgba(255, 93, 69, 0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--corallo);
}

.roi-box-body h3 {
    color: var(--corallo-dark);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

.roi-box-content {
    color: var(--blu-notte);
    font-size: 1.05rem;
    line-height: 1.7;
}

.roi-box-content p {
    margin-bottom: 0.75rem;
}

.roi-box-content strong {
    color: var(--corallo-dark);
}

.roi-box-content ul {
    padding-left: 1.2rem;
}

@media (max-width: 767.98px) {
    .roi-box {
        padding: 1.5rem;
    }
    .roi-box-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
}

/* === Founder Section (chi-siamo) === */
.founder-section {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 194, 166, 0.04) 100%);
}

.founder-photo {
    max-width: 260px;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--shadow-lg);
}

.founder-section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.founder-bio-extended {
    color: var(--blu-notte);
    font-size: 1rem;
    line-height: 1.8;
}

.founder-bio-extended h2,
.founder-bio-extended h3,
.founder-bio-extended h4 {
    color: var(--turchese);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.founder-bio-extended p {
    margin-bottom: 1rem;
}

.founder-bio-extended a {
    color: var(--turchese);
    text-decoration: none;
}

.founder-bio-extended a:hover {
    text-decoration: underline;
}

.founder-bio-extended blockquote {
    border-left: 3px solid var(--blu-elettrico);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--grigio-ardesia);
}

/* === App Mobile Section (Blu Notte) === */
.app-mobile-section {
    background: var(--hero-gradient);
    color: var(--bianco);
    position: relative;
    overflow: hidden;
}

.app-mobile-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 60%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(47, 111, 237, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.app-mobile-section h2 {
    color: var(--bianco);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.app-mobile-mockups {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.app-mobile-screen {
    max-width: 240px;
    max-height: 500px;
    border-radius: 30px;
    border: 8px solid var(--blu-notte-deep);
    box-shadow: 0 20px 60px rgba(8, 21, 36, 0.45), 0 0 40px rgba(47, 111, 237, 0.15);
    position: relative;
}

.app-mobile-mockups .app-mobile-screen-1 {
    z-index: 3;
    transform: translateX(0) rotate(-4deg);
}

.app-mobile-mockups .app-mobile-screen-2 {
    z-index: 2;
    margin-left: -120px;
    transform: translateY(-20px) rotate(2deg);
}

.app-mobile-mockups .app-mobile-screen-3 {
    z-index: 1;
    margin-left: -120px;
    transform: translateY(20px) rotate(6deg);
}

/* Single-screen variant: center the screenshot */
.app-mobile-mockups .app-mobile-screen-1:only-child {
    transform: none;
}

@media (max-width: 767.98px) {
    .app-mobile-mockups {
        min-height: 400px;
    }
    .app-mobile-screen {
        max-width: 180px;
    }
    .app-mobile-mockups .app-mobile-screen-2,
    .app-mobile-mockups .app-mobile-screen-3 {
        margin-left: -90px;
    }
}

.testimonial-stars {
    margin-bottom: 1rem;
}

.testimonial-stars i {
    color: var(--turchese);
    font-size: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--blu-notte);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--turchese), var(--blu-elettrico));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.testimonial-author-info strong {
    display: block;
    color: var(--blu-notte);
    font-size: 0.9rem;
}

.testimonial-author-info span {
    display: block;
    color: var(--grigio-ardesia-soft);
    font-size: 0.8rem;
}

/* Swiper pagination overrides */
.testimonials-swiper .swiper-pagination-bullet {
    background: rgba(0, 194, 166, 0.30);
    opacity: 1;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: var(--turchese);
}

/* === CTA Section (Blu Notte anchor) === */
.cta-section {
    background: var(--hero-gradient);
    border-top: none;
    border-bottom: none;
    color: var(--bianco);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(47, 111, 237, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--bianco);
}

.cta-section p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    margin-bottom: 2rem;
    color: #C9D3E2;
}

/* === Dropdown (light) === */
.navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--grigio-linea);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

.navbar .dropdown-item {
    color: var(--grigio-ardesia);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: var(--grigio-nebbia);
    color: var(--turchese);
}

.navbar .dropdown-divider {
    margin: 0.25rem 0;
    border-color: var(--grigio-linea);
}

/* === Responsive Additions === */
@media (max-width: 767.98px) {
    .stats-section .row {
        /* 2 column grid on mobile handled by col-6 */
    }

    .module-content {
        grid-template-columns: 1fr;
    }

    .module-visual {
        order: -1;
        margin-bottom: 1.5rem;
    }

    .hero-trust-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    .module-content {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 0.6rem 0.5rem;
    }
}

/* === Mobile Touch Targets === */
@media (max-width: 767.98px) {
    .btn,
    .nav-link,
    .module-tab {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar .nav-link {
        min-height: 44px;
    }
}

/* ================================================================
   Pricing Page
   ================================================================ */

/* === Module Selector (XManager Medical / XManager Fisio) === */
.module-selector {
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 2.5rem;
}

.module-selector-title {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--blu-notte);
    margin-bottom: 0.5rem;
}

.module-selector-subtitle {
    color: var(--grigio-ardesia-soft);
    margin-bottom: 1.75rem;
}

.module-selector-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.module-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 2px solid var(--grigio-linea);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    min-width: 260px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.module-toggle-btn i {
    font-size: 1.6rem;
    color: var(--grigio-ardesia-soft);
    transition: color 0.2s ease;
}

.module-toggle-text {
    display: flex;
    flex-direction: column;
}

.module-toggle-name {
    font-weight: 700;
    color: var(--blu-notte);
}

.module-toggle-desc {
    font-size: 0.8rem;
    color: var(--grigio-ardesia-soft);
}

.module-toggle-btn:hover {
    border-color: var(--turchese);
    transform: translateY(-2px);
}

.module-toggle-btn.active {
    border-color: var(--turchese);
    background: var(--turchese-soft);
    box-shadow: 0 6px 20px rgba(0, 194, 166, 0.15);
}

.module-toggle-btn.active i {
    color: var(--turchese);
}

/* === Module-scoped content: shown/hidden based on #prezziModuleScope[data-active-module] === */
.prezzi-module-scope[data-active-module="medico"] .scope-fisio,
.prezzi-module-scope[data-active-module="fisio"] .scope-medico {
    display: none !important;
}

/* === Gate: prezzi nascosti finche' non si sceglie un modulo === */
.prezzi-module-scope[data-active-module=""] {
    display: none;
}

@keyframes prezziRevealFade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.prezzi-module-scope.just-revealed {
    animation: prezziRevealFade 0.5s ease;
}

/* === Pricing Card Base === */
.pricing-card {
    background: #fff;
    border: 1px solid var(--grigio-linea);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
    color: var(--blu-notte);
    box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* === Highlighted Card (SOLO) === */
.pricing-card-highlighted {
    border: 2px solid var(--turchese);
    box-shadow: 0 10px 30px rgba(0, 194, 166, 0.15);
    position: relative;
    z-index: 2;
}

.pricing-card-highlighted:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 194, 166, 0.20);
}

/* === Badge on Highlighted === */
.pricing-badge {
    display: inline-block;
    background: var(--corallo);
    color: #fff;
    padding: 4px 20px;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-bottom: 0.5rem;
}

/* === Price Display === */
.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--turchese);
    line-height: 1.2;
}

.pricing-price .currency {
    font-size: 1.2rem;
    vertical-align: super;
    margin-right: 2px;
}

.pricing-price .period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--grigio-ardesia-soft);
    font-family: var(--font-primary);
}

/* === Seats (utenze incluse) === */
.pricing-seats {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--grigio-ardesia-soft);
    margin-top: 0.35rem;
}

/* === Feature Comparison Matrix === */
.feature-matrix {
    background: #fff;
    border: 1px solid var(--grigio-linea);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-matrix thead th {
    background: var(--grigio-nebbia);
    color: var(--blu-notte);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--grigio-linea);
}

.feature-matrix .plan-header-solo {
    background: var(--turchese-soft);
    color: var(--turchese);
}

.feature-matrix .category-row {
    background: var(--grigio-nebbia);
}

.feature-matrix .category-row td {
    font-size: 0.9rem;
    padding: 0.7rem 0.75rem;
    color: var(--blu-notte);
    font-weight: 700;
}

.feature-matrix tbody td {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    color: var(--blu-notte);
    border-bottom: 1px solid var(--grigio-linea);
}

.feature-matrix .plan-col-solo {
    background: rgba(0, 194, 166, 0.04);
}

.feature-matrix .bi-check-circle-fill {
    font-size: 1.1rem;
}

.feature-matrix .bi-dash {
    font-size: 1.3rem;
}

/* ================================================================
   SOLO Landing Page
   ================================================================ */

/* === SOLO Landing Hero === */
.solo-hero {
    background: var(--hero-gradient);
    color: var(--bianco);
    padding: 5rem 0;
    border-bottom: none;
}

.solo-hero .display-4 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--bianco);
}

.solo-modulo-kicker {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--bianco);
    padding: 4px 16px;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.solo-price-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--blu-elettrico);
}

.solo-trial-badge {
    display: inline-block;
    background: rgba(47, 111, 237, 0.12);
    border: 1px solid rgba(47, 111, 237, 0.30);
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--bianco);
}

.solo-trial-badge i {
    color: var(--blu-elettrico);
}

/* === Widget Container === */
#solo-widget-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Placeholder styles only when widget is not loaded */
#solo-widget-container.widget-placeholder {
    min-height: 300px;
    border: 2px dashed rgba(0, 194, 166, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grigio-nebbia);
    color: var(--grigio-ardesia);
    font-size: 1.1rem;
    box-shadow: none;
}

/* === Feature List on SOLO Page === */
.solo-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.90);
}

.solo-feature-item i {
    color: var(--blu-elettrico);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* === SOLO Responsive === */
@media (max-width: 575.98px) {
    .solo-hero {
        padding: 3rem 0;
    }

    .solo-price-display {
        font-size: 2.5rem;
    }

    #solo-widget-container {
        min-height: 200px;
    }
}

/* === Responsive: Pricing on mobile === */
@media (max-width: 575.98px) {
    .pricing-price {
        font-size: 2rem;
    }

    .feature-matrix thead th,
    .feature-matrix tbody td {
        padding: 0.5rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* ========== FAQ Pages ========== */

/* Category Cards */
.faq-category-card {
    background: #fff;
    border: 1px solid var(--grigio-linea);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    color: var(--blu-notte);
    box-shadow: var(--shadow-sm);
}

.faq-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(0, 194, 166, 0.35);
}

/* Article Content Typography */
.faq-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--blu-notte);
}

.faq-article-content p {
    margin-bottom: 1.25rem;
}

.faq-article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--blu-notte);
}

.faq-article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--blu-notte);
}

.faq-article-content ul,
.faq-article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.faq-article-content li {
    margin-bottom: 0.5rem;
    color: var(--blu-notte);
}

.faq-article-content blockquote {
    border-left: 4px solid var(--blu-elettrico);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--blu-elettrico-soft);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: var(--grigio-ardesia);
}

.faq-article-content code {
    background: var(--grigio-nebbia);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: var(--turchese);
    font-family: var(--font-mono);
}

.faq-article-content pre {
    background: var(--blu-notte-deep);
    color: var(--grigio-nebbia);
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--blu-notte);
    font-family: var(--font-mono);
}

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

.faq-article-content a {
    color: var(--turchese);
    text-decoration: underline;
}

.faq-article-content a:hover {
    color: var(--turchese-dark);
}

.faq-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border: 1px solid var(--grigio-linea);
}

.faq-article-content table {
    width: 100%;
    margin-bottom: 1.25rem;
    border-collapse: collapse;
}

.faq-article-content table th,
.faq-article-content table td {
    padding: 0.75rem;
    border: 1px solid var(--grigio-linea);
}

.faq-article-content table th {
    background: var(--grigio-nebbia);
    font-weight: 600;
    color: var(--blu-notte);
}

.faq-article-content table td {
    color: var(--blu-notte);
}

/* Sidebar Links */
.faq-sidebar-link {
    color: var(--grigio-ardesia);
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.faq-sidebar-link:hover {
    color: var(--turchese);
}

/* FAQ Search Input */
#faq-search {
    background: #fff;
    border: 2px solid var(--grigio-linea);
    font-size: 1.05rem;
    color: var(--blu-notte);
    border-radius: var(--radius-sm);
}

#faq-search:focus {
    border-color: var(--turchese);
    box-shadow: 0 0 0 0.25rem rgba(0, 194, 166, 0.12);
    background: #fff;
    color: var(--blu-notte);
}

#faq-search::placeholder {
    color: var(--grigio-ardesia-soft);
}

/* ================================================================
   Tarteaucitron Cookie Consent - Equal Prominence Overrides
   ================================================================ */

#tarteaucitronAlertBig #tarteaucitronPersonalize,
#tarteaucitronAlertBig #tarteaucitronAllDenied,
#tarteaucitronAlertBig #tarteaucitronPersonalize2 {
    display: inline-block !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: var(--font-primary) !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    border: 2px solid var(--turchese) !important;
    margin: 4px !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

/* Accept All: filled */
#tarteaucitronAlertBig #tarteaucitronPersonalize2 {
    background: var(--turchese) !important;
    color: var(--blu-notte) !important;
    border-color: transparent !important;
}

/* Deny All: outline (same visual weight) */
#tarteaucitronAlertBig #tarteaucitronAllDenied {
    background: transparent !important;
    color: var(--turchese) !important;
    border-color: var(--turchese) !important;
}

/* Personalize: secondary style */
#tarteaucitronAlertBig #tarteaucitronPersonalize {
    background: transparent !important;
    color: var(--grigio-ardesia) !important;
    border-color: var(--grigio-ardesia-soft) !important;
    font-weight: 400 !important;
}

/* Hover states */
#tarteaucitronAlertBig #tarteaucitronPersonalize2:hover {
    background: var(--turchese-dark) !important;
    box-shadow: 0 4px 24px rgba(0, 194, 166, 0.30) !important;
}

#tarteaucitronAlertBig #tarteaucitronAllDenied:hover {
    background: rgba(0, 194, 166, 0.08) !important;
    color: var(--turchese) !important;
}

/* Banner overall styling */
#tarteaucitronAlertBig {
    font-family: var(--font-primary) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border-top: 1px solid var(--grigio-linea) !important;
    box-shadow: 0 -4px 20px rgba(14, 31, 56, 0.10) !important;
    color: var(--blu-notte) !important;
}

/* Privacy policy link in cookie banner */
.tarteaucitronPrivacyUrl {
    color: var(--turchese) !important;
}

/* ================================================================
   Privacy consent checkbox styling
   ================================================================ */

.privacy-consent-check .form-check-input:checked {
    background-color: var(--turchese);
    border-color: var(--turchese);
}

.privacy-consent-check .form-check-label a {
    color: var(--turchese);
    text-decoration: underline;
}

.privacy-consent-check .form-check-label a:hover {
    color: var(--turchese-dark);
}

/* ================================================================
   Floating WhatsApp Chatbot Button
   ================================================================ */

.chatbot-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 0;
    pointer-events: none;
}

.chatbot-fab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    pointer-events: auto;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.chatbot-fab-btn:hover {
    background: #20BD5A;
    color: #fff;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.chatbot-fab-btn:focus {
    outline: 2px solid #25D366;
    outline-offset: 3px;
}

/* Tooltip label */
.chatbot-fab-label {
    background: var(--blu-notte);
    border: 1px solid var(--blu-notte);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    margin-right: 10px;
    box-shadow: var(--shadow-md);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.chatbot-fab:hover .chatbot-fab-label {
    opacity: 1;
    visibility: visible;
}

/* Pulse ring animation on the button */
.chatbot-fab-btn::before {
    content: '';
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: chatbotPulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes chatbotPulse {
    0% {
        opacity: 0.6;
        width: 56px;
        height: 56px;
    }
    100% {
        opacity: 0;
        width: 80px;
        height: 80px;
    }
}

/* Chatbot container placeholder (future n8n widget) */
.chatbot-container {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
    .chatbot-fab {
        bottom: 16px;
        right: 16px;
    }

    .chatbot-fab-label {
        display: none;
    }
}

/* ================================================================
   Form Inputs (contact/ticket pages) - Light Theme
   ================================================================ */

.form-control, .form-select {
    background: #fff;
    border: 1px solid var(--grigio-linea);
    color: var(--blu-notte);
    border-radius: var(--radius-sm);
}

.form-control:focus, .form-select:focus {
    background: #fff;
    border-color: var(--turchese);
    color: var(--blu-notte);
    box-shadow: 0 0 0 3px rgba(0, 194, 166, 0.12);
}

.form-control::placeholder {
    color: var(--grigio-ardesia-soft);
}

.form-label {
    color: var(--blu-notte);
    font-weight: 500;
}

.form-check-input {
    background-color: #fff;
    border-color: var(--grigio-ardesia-soft);
}

.form-check-input:checked {
    background-color: var(--turchese);
    border-color: var(--turchese);
}

.form-check-label {
    color: var(--grigio-ardesia);
}

/* ================================================================
   Bootstrap Light Theme Overrides
   ================================================================ */

.bg-white {
    background-color: #fff !important;
}

.text-muted {
    color: var(--grigio-ardesia-soft) !important;
}

.text-dark {
    color: var(--blu-notte) !important;
}

.text-body {
    color: var(--blu-notte) !important;
}

/* Border colors */
.border {
    border-color: var(--grigio-linea) !important;
}

.border-bottom {
    border-bottom-color: var(--grigio-linea) !important;
}

.border-top {
    border-top-color: var(--grigio-linea) !important;
}

/* Bootstrap alerts */
.alert-success {
    background: var(--turchese-soft);
    border-color: rgba(0, 194, 166, 0.35);
    color: var(--turchese-dark);
}

.alert-danger {
    background: var(--corallo-soft);
    border-color: rgba(255, 93, 69, 0.35);
    color: var(--corallo-dark);
}

.alert-warning {
    background: var(--corallo-light);
    border-color: rgba(255, 93, 69, 0.40);
    color: var(--corallo-dark);
}

.alert-info {
    background: var(--turchese-soft);
    border-color: rgba(0, 194, 166, 0.25);
    color: var(--turchese-dark);
}

.alert-light {
    background: var(--grigio-nebbia) !important;
    border: 1px solid var(--grigio-linea) !important;
    color: var(--blu-notte) !important;
}

.alert-light strong,
.alert-light a {
    color: var(--turchese) !important;
}

.alert-secondary {
    background: var(--grigio-nebbia) !important;
    border-color: var(--grigio-linea) !important;
    color: var(--grigio-ardesia) !important;
}

/* Bootstrap list group */
.list-group-item {
    background: #fff;
    border-color: var(--grigio-linea);
    color: var(--blu-notte);
}

/* Bootstrap table */
.table {
    color: var(--blu-notte);
}

.table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: var(--grigio-linea);
    color: var(--blu-notte);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(14, 31, 56, 0.02);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(0, 194, 166, 0.04);
}

.table-light,
.table-light > th,
.table-light > td,
.table > thead.table-light,
.table > thead.table-light > tr > th {
    background-color: var(--grigio-nebbia) !important;
    color: var(--blu-notte) !important;
    border-color: var(--grigio-linea) !important;
}

.table-bordered > :not(caption) > * {
    border-color: var(--grigio-linea) !important;
}

.table-bordered > :not(caption) > * > * {
    border-color: var(--grigio-linea) !important;
}

.card.bg-light {
    background: var(--grigio-nebbia) !important;
    border: 1px solid var(--grigio-linea) !important;
    color: var(--blu-notte) !important;
}

.card.bg-light .card-body p,
.card.bg-light .card-body h6 {
    color: var(--blu-notte);
}

/* Bootstrap accordion */
.accordion-item {
    background: #fff;
    border-color: var(--grigio-linea);
    color: var(--blu-notte);
}

.accordion-button {
    background: #fff;
    color: var(--blu-notte);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: var(--turchese-soft);
    color: var(--turchese);
    box-shadow: inset 0 -1px 0 rgba(0, 194, 166, 0.12);
}

.accordion-button::after {
    filter: none;
}

.accordion-body {
    color: var(--grigio-ardesia);
}

/* Bootstrap modal */
.modal-content {
    background: #fff;
    border: 1px solid var(--grigio-linea);
    color: var(--blu-notte);
}

.modal-header {
    border-bottom-color: var(--grigio-linea);
}

.modal-footer {
    border-top-color: var(--grigio-linea);
}

.btn-close {
    filter: none;
}

/* ================================================================
   Particles Background Effect (subtle, light theme)
   ================================================================ */

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particles-bg::before,
.particles-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 194, 166, 0.05);
    animation: particleFloat 10s ease-in-out infinite;
}

.particles-bg::before {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.particles-bg::after {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 15%;
    background: rgba(47, 111, 237, 0.05);
    animation-delay: -5s;
    animation-duration: 12s;
}

/* ================================================================
   Shimmer Animation Effect
   ================================================================ */

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Generic link styling */
a {
    color: var(--turchese);
}

a:hover {
    color: var(--turchese-dark);
}

/* Bootstrap pagination */
.page-link {
    background: #fff;
    border-color: var(--grigio-linea);
    color: var(--turchese);
}

.page-link:hover {
    background: var(--turchese-soft);
    border-color: rgba(0, 194, 166, 0.30);
    color: var(--turchese);
}

.page-item.active .page-link {
    background: var(--turchese);
    border-color: var(--turchese);
    color: var(--blu-notte);
}

.page-item.disabled .page-link {
    background: var(--grigio-nebbia);
    border-color: var(--grigio-linea);
    color: var(--grigio-ardesia-soft);
}

/* Bootstrap badges */
.badge.bg-primary {
    background: var(--turchese) !important;
    color: var(--blu-notte) !important;
}

.badge.bg-secondary {
    background: var(--grigio-nebbia) !important;
    color: var(--grigio-ardesia) !important;
}

.badge.bg-success {
    background: var(--turchese-soft) !important;
    color: var(--turchese-dark) !important;
}

.badge.bg-danger {
    background: var(--corallo-soft) !important;
    color: var(--corallo-dark) !important;
}

.badge.bg-warning {
    background: var(--corallo-light) !important;
    color: var(--corallo-dark) !important;
}

.badge.bg-info {
    background: var(--turchese-soft) !important;
    color: var(--turchese-dark) !important;
}

/* Badges on dark sections */
.section-dark .badge.bg-success,
.hero-section .badge.bg-success,
.app-mobile-section .badge.bg-success {
    background: var(--turchese) !important;
    color: var(--blu-notte) !important;
}

/* === Ambient Background Effects (disabled on light theme) === */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1019;
    overflow: hidden;
    display: none;
}

.ambient-glow,
.ambient-beam,
.ambient-particle {
    display: none;
}

/* Chatbot FAB stays above content */
.chatbot-fab {
    z-index: 1040;
}

/* Cookie consent banner above everything */
#tarteaucitronRoot {
    z-index: 2000 !important;
}

/* === Bootstrap text utilities === */
.text-secondary {
    color: var(--grigio-ardesia) !important;
}

.text-success {
    color: var(--turchese) !important;
}

.text-warning {
    color: var(--corallo-dark) !important;
}

.text-danger {
    color: var(--corallo) !important;
}

/* Dark sections: secondary text stays readable */
.section-dark .text-secondary,
.hero-section .text-secondary,
.cta-section .text-secondary {
    color: #C9D3E2 !important;
}

.border-0 {
    border-color: transparent !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* List group interactions */
.list-group-item-action:hover {
    background: var(--grigio-nebbia);
    color: var(--turchese);
}

/* Card text override */
.card-text, .card-body p {
    color: var(--grigio-ardesia);
}

.card-body h5, .card-body h4, .card-body h3 {
    color: var(--blu-notte);
}

/* btn-light: used on dark CTA sections */
.btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--blu-notte);
    font-weight: 700;
}

.btn-light:hover {
    background: var(--blu-elettrico);
    border-color: var(--blu-elettrico);
    color: var(--blu-notte);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(47, 111, 237, 0.35);
}

/* btn-warning: brand override (corallo) */
.btn-warning {
    background: var(--corallo);
    border-color: var(--corallo);
    color: #fff;
    font-weight: 700;
}

.btn-warning:hover,
.btn-warning:focus {
    background: var(--corallo-hover);
    border-color: var(--corallo-hover);
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 93, 69, 0.35);
}

/* hr override */
hr {
    border-color: var(--grigio-linea);
    opacity: 1;
}

/* ================================================================
   XManager Pro - Ecosystem Section (homepage)
   "Un solo ecosistema. Tutta la gestione sanitaria."
   ================================================================ */

.ecosystem-section {
    background: var(--bianco);
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0;
}

.ecosystem-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--turchese);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ecosystem-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--blu-elettrico);
    display: inline-block;
}

.ecosystem-title {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--blu-notte);
    max-width: 820px;
    margin: 0 auto;
}

.ecosystem-title .brand-x {
    background: linear-gradient(135deg, var(--blu-elettrico), var(--turchese));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ecosystem-motto {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    font-weight: 700;
    color: var(--blu-notte);
    margin-top: 1.5rem;
}

.ecosystem-motto .motto-accent {
    color: var(--blu-elettrico-dark);
}

.ecosystem-lead {
    font-size: 1.08rem;
    color: var(--grigio-ardesia);
    max-width: 760px;
    margin: 1.25rem auto 0;
    line-height: 1.75;
}

/* Merge visual: two products converge into XManager Pro */
.ecosystem-merge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 3vw, 2rem);
    flex-wrap: wrap;
    margin: 3rem auto 0;
}

.ecosystem-product {
    background: #fff;
    border: 1px solid var(--grigio-linea);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    text-align: left;
    min-width: 240px;
    max-width: 280px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ecosystem-pro

/* ================================================================
   XManager Pro - Depth & Character Layer (v2)
   Texture tecnica, profondita, micro-interazioni.
   Stessa palette, stesso brand: piu carattere.
   ================================================================ */

/* --- Dettagli di piattaforma: selezione, focus, scrollbar --- */
::selection {
    background: var(--blu-elettrico);
    color: var(--blu-notte);
}

:focus-visible {
    outline: 3px solid rgba(0, 194, 166, 0.45);
    outline-offset: 2px;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--grigio-nebbia); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--turchese), var(--blu-elettrico));
    border-radius: 999px;
    border: 3px solid var(--grigio-nebbia);
}

/* --- Titoli di sezione: barra gradiente firma --- */
.section-intro h2 {
    position: relative;
    padding-bottom: 0.95rem;
}

.section-intro h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--turchese), var(--blu-elettrico));
}

.section-dark .section-intro h2::after,
.cta-section .section-intro h2::after {
    background: linear-gradient(90deg, var(--blu-elettrico), var(--turchese));
    box-shadow: 0 0 14px rgba(47, 111, 237, 0.45);
}

/* --- Sezioni scure: griglia tecnica + mesh luminoso --- */
.hero-section,
.stats-section,
.cta-section,
.app-mobile-section,
.solo-hero,
.case-study-hero {
    background:
        linear-gradient(rgba(255, 255, 255, 0.030) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.030) 1px, transparent 1px),
        radial-gradient(85% 90% at 85% 8%, rgba(0, 194, 166, 0.22) 0%, transparent 58%),
        radial-gradient(70% 80% at 8% 92%, rgba(47, 111, 237, 0.11) 0%, transparent 55%),
        var(--hero-gradient);
    background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

/* --- Hero: prodotto in scena con prospettiva --- */
@keyframes screenshotFloat {
    0%, 100% { transform: perspective(1400px) rotateX(4deg) translateY(0); }
    50%      { transform: perspective(1400px) rotateX(4deg) translateY(-12px); }
}

.hero-screenshot img {
    box-shadow: 0 40px 90px -18px rgba(3, 10, 20, 0.75),
                0 0 0 1px rgba(255, 255, 255, 0.12),
                0 0 60px rgba(47, 111, 237, 0.10);
}

/* Chip flottanti sullo screenshot */
.hero-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    background: rgba(14, 31, 56, 0.60);
    border: 1px solid rgba(47, 111, 237, 0.35);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(3, 10, 20, 0.45);
    animation: chipFloat 6s ease-in-out infinite;
    pointer-events: none;
}

.hero-chip i { color: var(--blu-elettrico); }
.hero-chip .mono { font-family: var(--font-mono); font-size: 0.78rem; }
.hero-chip-1 { top: 12%; left: 4%; animation-delay: 0s; }
.hero-chip-2 { top: 46%; right: 3%; animation-delay: -3s; }

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@media (max-width: 991.98px) {
    .hero-chip { display: none; }
}

/* Linea ECG nell'hero (firma identikit) */
.hero-pulse {
    max-width: 760px;
    margin: 2.5rem auto 0;
}

.hero-pulse svg { width: 100%; height: auto; display: block; }

.hero-pulse .pulse-line,
.ecosystem-pulse .pulse-line {
    fill: none;
    stroke: var(--blu-elettrico);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-pulse .pulse-line {
    filter: drop-shadow(0 0 7px rgba(47, 111, 237, 0.5));
}

/* --- Bottoni: gradiente, luce interna, molla --- */
.btn-primary {
    background: linear-gradient(160deg, var(--turchese-light) 0%, var(--turchese) 55%, var(--turchese-dark) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 18px rgba(0, 194, 166, 0.28);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(160deg, var(--turchese) 0%, var(--turchese-dark) 100%);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 28px rgba(0, 194, 166, 0.38);
}

.btn-accent {
    background: linear-gradient(160deg, var(--corallo-light) 0%, var(--corallo) 55%, var(--corallo-hover) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 6px 18px rgba(255, 93, 69, 0.32);
}

.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active {
    background: linear-gradient(160deg, var(--corallo) 0%, var(--corallo-hover) 100%);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 12px 28px rgba(255, 93, 69, 0.42);
}

.btn {
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Problem cards: bordo firma che si accende --- */
.problem-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--grigio-linea);
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--corallo), var(--blu-elettrico));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.problem-card:hover::before { transform: scaleX(1); }

.problem-card .icon-circle {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(145deg, var(--corallo-soft), var(--corallo-light));
    border: 1px solid rgba(255, 93, 69, 0.18);
}

.problem-card:hover .icon-circle {
    transform: scale(1.1) rotate(-6deg);
}

/* --- Statistiche: numeri luminosi in mono --- */
.stat-number {
    background: linear-gradient(135deg, var(--blu-elettrico-light) 0%, var(--blu-elettrico) 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.stat-item {
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-md);
    transition: background 0.3s ease;
}

.stat-item:hover { background: rgba(255, 255, 255, 0.04); }

.stat-label {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--grigio-ardesia-soft);
}

/* --- Card e vetrine: sollevamento piu deciso --- */
.card,
.testimonial-card,
.faq-category-card,
.pricing-card {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.3s ease;
}

.card:hover { transform: translateY(-4px); }

/* --- Module tabs: pillole con ombra attiva --- */
.module-tab.active {
    background: linear-gradient(160deg, var(--turchese), var(--turchese-dark));
    box-shadow: 0 8px 20px rgba(0, 194, 166, 0.35);
}

/* --- Navbar: wordmark identikit + presenza --- */
.brand-wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--blu-notte);
    display: inline-flex;
    align-items: center;
}

.brand-wordmark .pro-tag {
    background: var(--blu-elettrico);
    color: var(--blu-notte);
    font-size: 0.58em;
    font-weight: 800;
    padding: 0.22em 0.55em;
    border-radius: 7px;
    margin-left: 0.35em;
    letter-spacing: 0.02em;
}

.brand-netlux {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.60rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grigio-ardesia-soft);
    margin-top: -0.15rem;
}

/* --- Footer: filo brand in testa --- */
.site-footer {
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--turchese) 0%, var(--blu-elettrico) 50%, var(--corallo) 100%);
}

/* --- Ecosistema: palcoscenico del rebrand --- */
.ecosystem-section {
    background:
        linear-gradient(rgba(14, 31, 56, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 31, 56, 0.035) 1px, transparent 1px),
        radial-gradient(60% 45% at 50% 0%, rgba(0, 194, 166, 0.07) 0%, transparent 60%),
        radial-gradient(50% 40% at 85% 100%, rgba(47, 111, 237, 0.06) 0%, transparent 60%),
        var(--bianco);
    background-size: 44px 44px, 44px 44px, auto, auto, auto;
    border-top: 1px solid var(--grigio-linea);
    border-bottom: 1px solid var(--grigio-linea);
}

.ecosystem-product {
    position: relative;
    overflow: hidden;
}

.ecosystem-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.ecosystem-product:nth-of-type(1)::before { background: var(--turchese); }
.ecosystem-product:hover::before { transform: scaleX(1); }

.ecosystem-merge .ecosystem-product + .ecosystem-arrow + .ecosystem-product::before {
    background: var(--blu-elettrico);
}

.ecosystem-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--grigio-linea);
    box-shadow: var(--shadow-sm);
    font-size: 1.2rem;
    color: var(--turchese);
}

.ecosystem-product-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.9rem;
}

.ecosystem-product-badge.fisio { background: var(--turchese); }
.ecosystem-product-badge.doc { background: var(--blu-elettrico); }

.ecosystem-product-logo {
    display: block;
    max-height: 44px;
    max-width: 170px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 0.9rem;
}

.ecosystem-product h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.ecosystem-product p {
    font-size: 0.9rem;
    color: var(--grigio-ardesia);
    margin: 0;
}

.ecosystem-result {
    background: var(--blu-notte);
    border-radius: var(--radius-lg);
    padding: 1.6rem 2rem;
    min-width: 240px;
    max-width: 280px;
    text-align: center;
    animation: resultGlow 4.5s ease-in-out infinite;
}

.ecosystem-result img {
    max-height: 48px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

.ecosystem-wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
}

.ecosystem-sub {
    margin: 0.6rem 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

@keyframes resultGlow {
    0%, 100% { box-shadow: 0 18px 50px rgba(14, 31, 56, 0.30); }
    50%      { box-shadow: 0 18px 62px rgba(47, 111, 237, 0.38); }
}

.ecosystem-eyebrow {
    font-family: var(--font-mono);
    letter-spacing: 0.18em;
}

.ecosystem-motto {
    display: inline-block;
    position: relative;
    padding: 0.35rem 1.4rem;
}

.ecosystem-motto::before,
.ecosystem-motto::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 34px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blu-elettrico));
}

.ecosystem-motto::before { right: 100%; }
.ecosystem-motto::after  { left: 100%; transform: scaleX(-1); }

/* --- Breadcrumb bar piu leggera --- */
.breadcrumb-item a:hover { color: var(--blu-elettrico-dark); }

/* --- Riduzione movimento --- */
@media (prefers-reduced-motion: reduce) {
    .hero-chip,
    .ecosystem-result {
        animation: none;
    }
}

/* ================================================================
   Prezzi 2026 — "Prezzi e Piani" redesign
   Ricalca il concept xmanagerproprezzi.html: hero scuro, card piani,
   moduli specialistici, calcolatore con riepilogo Blu Notte,
   tabella confronto, FAQ accordion. Classi con prefisso pz-.
   ================================================================ */

.pz-eyebrow {
    font-family: var(--font-primary);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--turchese);
    margin: 0;
}

/* --- Hero --- */
.pz-hero {
    background: var(--hero-gradient);
    color: var(--bianco);
    padding: clamp(3.5rem, 9vw, 5.5rem) 0 clamp(6rem, 12vw, 8rem);
    text-align: center;
}
.pz-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--bianco);
    margin: 1rem auto 0;
    max-width: 760px;
}
.pz-lead {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: #C9D3E2;
    max-width: 640px;
    margin: 1.3rem auto 0;
    line-height: 1.6;
}
.pz-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.9rem;
    background: rgba(0, 194, 166, .14);
    border: 1px solid rgba(0, 194, 166, .35);
    color: var(--turchese);
    font-size: .85rem;
    font-weight: 600;
    padding: .5rem 1.1rem;
    border-radius: 999px;
}
.pz-hero-badge svg {
    width: 16px;
    height: 16px;
    stroke: var(--turchese);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Bottoni pillola --- */
.pz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: .9rem;
    padding: .75rem 1.2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
}
.pz-btn:hover { transform: translateY(-1px); }
.pz-btn.primary { background: var(--blu-elettrico); color: #fff; }
.pz-btn.primary:hover { background: var(--blu-elettrico-dark); color: #fff; }
.pz-btn.dark { background: var(--blu-notte); color: #fff; }
.pz-btn.dark:hover { background: var(--blu-notte-soft); color: #fff; }
.pz-btn.turchese { background: var(--turchese); color: var(--blu-notte); }
.pz-btn.turchese:hover { background: color-mix(in srgb, var(--turchese) 82%, white); color: var(--blu-notte); }
.pz-btn.ghost { background: transparent; color: var(--blu-notte); border: 1.5px solid var(--grigio-linea); }
.pz-btn.ghost:hover { border-color: var(--blu-elettrico); color: var(--blu-elettrico); }

/* --- Card piani --- */
.pz-pricing {
    margin-top: clamp(-5rem, -8vw, -6rem);
    position: relative;
    z-index: 5;
    padding-bottom: clamp(3.5rem, 8vw, 5rem);
}
.pz-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    align-items: stretch;
}
.pz-card {
    background: var(--bianco);
    border: 1px solid var(--grigio-linea);
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 40px rgba(14, 31, 56, .10);
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 54px rgba(14, 31, 56, .16);
}
.pz-card.featured {
    border: 2px solid var(--blu-elettrico);
    box-shadow: 0 26px 60px rgba(47, 111, 237, .24);
}
.pz-card-ribbon {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .35rem .85rem;
    border-radius: 999px;
}
.pz-card-ribbon.pop { background: var(--blu-elettrico); color: #fff; }
.pz-card-ribbon.ent { background: var(--blu-notte); color: #fff; }
.pz-card-name {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--grigio-ardesia-soft);
    margin: 0;
}
.pz-card-seats { margin: .35rem 0 0; font-size: .86rem; color: var(--grigio-ardesia); font-weight: 500; }
.pz-card-price { display: flex; align-items: baseline; gap: .25rem; margin-top: 1rem; }
.pz-card-price .amt {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.6rem;
    letter-spacing: -.02em;
    color: var(--blu-notte);
}
.pz-card-price .per { font-size: .9rem; color: var(--grigio-ardesia); font-weight: 500; }
.pz-card-note { margin: .5rem 0 0; font-size: .8rem; color: var(--turchese); font-weight: 600; min-height: 1.1rem; }
.pz-card-note.muted { color: var(--grigio-ardesia-soft); font-weight: 500; }
.pz-card-desc { margin: .9rem 0 0; font-size: .9rem; color: var(--grigio-ardesia); line-height: 1.55; }
.pz-card-features {
    list-style: none;
    margin: 1.3rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    flex: 1;
}
.pz-card-features li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .9rem;
    color: var(--blu-notte);
}
.pz-card-features svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: .15rem;
    stroke: var(--turchese);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pz-card .pz-btn { margin-top: 1.5rem; width: 100%; }

/* --- Moduli specialistici --- */
.pz-modules { padding: clamp(3rem, 7vw, 4.5rem) 0; background: var(--grigio-nebbia); }
.pz-modules-head { max-width: 640px; }
.pz-modules h2, .pz-calc h2, .pz-compare h2, .pz-faq h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--blu-notte);
    margin: 0;
}
.pz-modules-head p { margin-top: .9rem; color: var(--grigio-ardesia); font-size: 1.02rem; }
.pz-modules-grid {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.pz-mod-card {
    background: var(--bianco);
    border-radius: var(--radius-xl);
    padding: 1.9rem;
    box-shadow: 0 10px 30px rgba(14, 31, 56, .06);
}
.pz-mod-badge {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pz-mod-badge svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pz-mod-badge.blu { background: var(--blu-elettrico); }
.pz-mod-badge.turchese { background: var(--turchese); }
.pz-mod-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.1rem 0 0;
    color: var(--blu-notte);
}
.pz-mod-tag {
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 600;
    color: var(--grigio-ardesia-soft);
    margin: .3rem 0 0;
}
.pz-mod-card p:not(.pz-mod-tag) { margin-top: .8rem; font-size: .94rem; color: var(--grigio-ardesia); line-height: 1.55; }
.pz-mod-note {
    margin-top: 1.6rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
    color: var(--blu-notte);
    background: var(--turchese-soft);
    border-radius: var(--radius-sm);
    padding: .85rem 1.1rem;
}
.pz-mod-note svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--turchese-dark);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pz-mod-note b { color: var(--turchese-dark); }

/* --- Calcolatore --- */
.pz-calc { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.pz-calc-label { margin-bottom: .85rem; }
.pz-calc-label .idx {
    font-family: var(--font-mono);
    background: var(--blu-notte);
    color: var(--bianco);
    font-size: .78rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: 6px;
}
.pz-calc-lead { max-width: 600px; color: var(--grigio-ardesia); font-size: 1.05rem; margin-top: .9rem; }
.pz-calc-panel {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1.5rem;
    border: 1px solid var(--grigio-linea);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bianco);
}
.pz-calc-form { padding: clamp(1.5rem, 3vw, 2.2rem); }
.pz-calc-group { margin-bottom: 1.7rem; }
.pz-calc-group:last-child { margin-bottom: 0; }
.pz-calc-q {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--grigio-ardesia-soft);
    margin-bottom: .8rem;
}
.pz-q-tag { color: var(--corallo); text-transform: none; letter-spacing: 0; font-weight: 600; }
.pz-q-tag.incl { color: var(--turchese); }
.pz-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.pz-seg.two { grid-template-columns: repeat(2, 1fr); }
.pz-opt {
    position: relative;
    border: 1.5px solid var(--grigio-linea);
    border-radius: var(--radius-sm);
    padding: .75rem .6rem;
    cursor: pointer;
    text-align: center;
    transition: all .15s ease;
    background: var(--bianco);
    margin: 0;
}
.pz-opt:hover { border-color: var(--blu-elettrico); }
.pz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pz-opt-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .92rem;
    display: block;
    color: var(--blu-notte);
}
.pz-opt-sub { font-size: .72rem; color: var(--grigio-ardesia); margin-top: .15rem; display: block; }
.pz-opt.selected {
    border-color: var(--blu-elettrico);
    background: rgba(47, 111, 237, .06);
    box-shadow: 0 0 0 1px var(--blu-elettrico) inset;
}
.pz-calc-hint { font-size: .8rem; color: var(--grigio-ardesia-soft); margin-top: .7rem; line-height: 1.5; }
.pz-calc-hint b { color: var(--blu-notte); }

.pz-calc-summary {
    background: var(--blu-notte);
    color: var(--bianco);
    padding: clamp(1.6rem, 3vw, 2.2rem);
    display: flex;
    flex-direction: column;
}
.pz-calc-summary h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.pz-summ-plan {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--turchese);
    margin: .3rem 0 0;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.pz-summ-lines { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.pz-summ-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: .9rem;
    color: #C9D3E2;
}
.pz-summ-row .lab { display: flex; flex-direction: column; }
.pz-summ-row .lab small { font-size: .72rem; color: var(--grigio-ardesia-soft); }
.pz-summ-row .val { font-family: var(--font-mono); font-weight: 600; color: #fff; white-space: nowrap; }
.pz-summ-row .val.disc { color: var(--turchese); }
.pz-summ-div { height: 1px; background: rgba(255, 255, 255, .12); margin: .4rem 0; }
.pz-summ-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .4rem; }
.pz-summ-total .lab { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; }
.pz-summ-total .val { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: #fff; }
.pz-summ-total .val small { font-size: .9rem; font-weight: 500; color: var(--grigio-ardesia-soft); }
.pz-summ-save { margin: .7rem 0 0; font-size: .82rem; color: var(--turchese); font-weight: 600; min-height: 1rem; }
.pz-calc-summary .pz-btn { margin-top: 1.5rem; width: 100%; }
.pz-summ-vat { margin: .8rem 0 0; font-size: .72rem; color: var(--grigio-ardesia-soft); text-align: center; }

/* --- ROI box (riusa .roi-box esistente) --- */
.pz-roi { padding-bottom: clamp(2rem, 5vw, 3rem); }

/* --- Tabella confronto --- */
.pz-compare { padding: clamp(3.5rem, 8vw, 5.5rem) 0; background: var(--grigio-nebbia); }
.pz-compare h2 { text-align: center; }
.pz-compare-lead { text-align: center; color: var(--grigio-ardesia); margin: .9rem auto 2.6rem; max-width: 560px; }
.pz-table-scroll {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--grigio-linea);
    background: var(--bianco);
}
table.pz-cmp { width: 100%; border-collapse: collapse; min-width: 660px; font-size: .9rem; }
table.pz-cmp thead th {
    background: var(--blu-notte);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    padding: 1.1rem 1rem;
    text-align: center;
    position: sticky;
    top: 0;
}
table.pz-cmp thead th:first-child { text-align: left; }
table.pz-cmp thead th .th-price {
    display: block;
    font-family: var(--font-mono);
    font-size: .74rem;
    font-weight: 500;
    color: var(--turchese);
    margin-top: .25rem;
}
table.pz-cmp tbody td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--grigio-linea);
    text-align: center;
    color: var(--blu-notte);
}
table.pz-cmp tbody td:first-child { text-align: left; font-weight: 500; }
table.pz-cmp tr.group td {
    background: var(--grigio-nebbia);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--grigio-ardesia);
    text-align: left;
}
table.pz-cmp td.yes svg, table.pz-cmp .yes svg {
    width: 18px;
    height: 18px;
    margin: 0 auto;
    stroke: var(--turchese);
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: middle;
}
table.pz-cmp td.no svg {
    width: 16px;
    height: 16px;
    margin: 0 auto;
    stroke: var(--grigio-ardesia-soft);
    opacity: .55;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
}
table.pz-cmp tbody tr:hover td { background: rgba(47, 111, 237, .03); }
table.pz-cmp tbody tr.group:hover td { background: var(--grigio-nebbia); }
.pz-scope-tag {
    font-family: var(--font-mono);
    font-size: .64rem;
    font-weight: 600;
    color: var(--grigio-ardesia-soft);
    border: 1px solid var(--grigio-linea);
    border-radius: 5px;
    padding: .05rem .35rem;
    margin-left: .4rem;
    vertical-align: middle;
}

/* --- FAQ --- */
.pz-faq { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.pz-faq h2 { text-align: center; }
.pz-faq-list { max-width: 760px; margin: 2.6rem auto 0; display: flex; flex-direction: column; gap: .8rem; }
.pz-faq-item {
    border: 1px solid var(--grigio-linea);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bianco);
}
.pz-faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1.2rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--blu-notte);
}
.pz-faq-q svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--blu-elettrico);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    transition: transform .25s ease;
}
.pz-faq-item.open .pz-faq-q svg { transform: rotate(45deg); }
.pz-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.pz-faq-a p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--grigio-ardesia); font-size: .94rem; line-height: 1.6; }

/* --- CTA finale --- */
.pz-cta { padding: 0 0 clamp(3.5rem, 8vw, 5rem); }
.pz-cta-box {
    background: radial-gradient(120% 160% at 85% -20%, var(--blu-notte-soft) 0%, var(--blu-notte) 50%, var(--blu-notte-deep) 100%);
    border-radius: var(--radius-xl);
    padding: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.pz-cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    font-weight: 800;
    margin-top: .9rem;
    color: #fff;
}
.pz-cta-box p:not(.pz-eyebrow) { color: #C9D3E2; max-width: 520px; margin: 1.1rem auto 0; font-size: 1.02rem; }
.pz-cta-actions { margin-top: 2rem; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.pz-cta-box .pz-btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.pz-cta-box .pz-btn.ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .pz-cards { grid-template-columns: repeat(2, 1fr); }
    .pz-calc-panel { grid-template-columns: 1fr; }
    .pz-modules-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .pz-cards { grid-template-columns: 1fr; }
    .pz-seg { grid-template-columns: repeat(2, 1fr); }
}

/* Opzione calcolatore non disponibile (es. 2° modulo con 1° = Medico) */
.pz-opt.disabled {
    opacity: .45;
    cursor: not-allowed;
}
.pz-opt.disabled:hover {
    border-color: var(--grigio-linea);
    transform: none;
}
