/* ============================================================
   AVIVX — LANDING PAGE STYLES
   Primary: #263589 | Dark: #1C286E | Light: #3C4EAA
   ============================================================ */

/* ── VARIABILI ── */
:root {
    --primary:       #263589;
    --primary-dark:  #1C286E;
    --primary-light: #3C4EAA;
    --primary-50:    #EBEDF8;
    --primary-100:   #C9CFF0;

    --accent:        #F59E0B;
    --accent-dark:   #D97706;

    --white:  #FFFFFF;
    --gray-50:  #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --success:  #059669;
    --info:     #0284C7;
    --warning:  #D97706;

    --radius-sm:  6px;
    --radius:    10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow:    0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 60px rgba(38,53,137,0.18);

    --nav-h: 68px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── UTILS ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
}

/* ── REVEAL ANIMATION ── */
/* Reveal: delegato ad AOS — gli elementi .reveal sono visibili di default */
.reveal {
    opacity: 1;
    transform: none;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none !important; }
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid transparent;
}
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(38,53,137,0.3);
}

.btn-hero {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.btn-hero:hover {
    background: var(--primary-50);
    border-color: var(--primary-50);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.32);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

/* ── SECTION HEADERS ── */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}
.section-badge {
    display: inline-block;
    background: var(--primary-50);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    border: 1px solid rgba(28, 40, 110, 0.12);
}
.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ── TEXT GRADIENT ── */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light) 0%, #6B8CFF 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 20px;
    color: var(--primary-dark);
    flex-shrink: 0;
}
.logo-mark {
    color: var(--primary);
    font-size: 18px;
}
.logo-name { color: var(--primary-dark); }
.footer-logo .logo-name,
.footer-logo .logo-mark { color: var(--white); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--primary); background: var(--primary-50); }

.nav-cta {
    margin-left: 8px;
    padding: 9px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(38,53,137,0.25);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite alternate;
}
.blob-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #6B8CFF, transparent);
    top: -100px; right: -100px;
    animation-delay: 0s;
}
.blob-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent), transparent);
    bottom: -100px; left: 10%;
    animation-delay: -4s;
}
@keyframes float {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(30px, 20px) scale(1.05); }
}

.hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}

/* Hero Content */
.hero-content { color: var(--white); }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
}
.badge-pulse {
    width: 8px; height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-trust {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.trust-pill {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Hero Visual — App Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-mockup {
    position: relative;
    width: 100%;
    max-width: 520px;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.35));
    animation: mockup-float 6s ease-in-out infinite alternate;
}
@keyframes mockup-float {
    from { transform: translateY(0); }
    to   { transform: translateY(-12px); }
}

.mockup-window {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
}
.mockup-titlebar {
    background: var(--gray-100);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mockup-dots { display: flex; gap: 6px; }
.dot-r { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.dot-y { width: 10px; height: 10px; border-radius: 50%; background: #FFBD2E; }
.dot-g { width: 10px; height: 10px; border-radius: 50%; background: #28C940; }
.mockup-url {
    font-size: 11px;
    color: var(--gray-500);
    background: var(--white);
    padding: 3px 12px;
    border-radius: 999px;
    flex: 1;
    text-align: center;
}

/* ── MOCKUP BODY ── */
.mockup-body {
    display: flex;
    height: 340px;
}

/* SIDEBAR */
.mockup-sidebar {
    width: 120px;
    background: var(--primary-dark);
    padding: 12px 8px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}
.ms-logo {
    color: var(--white);
    font-weight: 800;
    font-size: 11px;
    margin-bottom: 10px;
    padding: 2px 6px 8px;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ms-section-label {
    font-size: 8.5px;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 7px 6px 3px;
}
.ms-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 10.5px;
    font-weight: 500;
    padding: 5px 7px;
    border-radius: 5px;
}
.ms-active { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); }
.ms-active-sub { background: rgba(255,255,255,0.18); color: var(--white); font-weight: 700; }

/* MAIN AREA */
.mockup-main {
    flex: 1;
    background: #F8F9FB;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Toolbar compatta */
.mm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
    gap: 6px;
}
.mm-toolbar-left  { display: flex; align-items: center; gap: 4px; }
.mm-toolbar-right { display: flex; align-items: center; gap: 5px; }
.mm-nav-btn {
    width: 20px; height: 20px;
    background: var(--gray-100);
    border: none; border-radius: 4px;
    font-size: 11px; color: var(--gray-600);
    cursor: default; display: flex; align-items: center; justify-content: center;
}
.mm-curr-date { font-size: 10px; font-weight: 700; color: var(--gray-800); margin: 0 3px; white-space: nowrap; }
.mm-today-btn {
    font-size: 8.5px; font-weight: 600;
    background: var(--primary-50); color: var(--primary);
    border: none; border-radius: 4px; padding: 3px 7px; cursor: default;
}
.mm-view-tabs { display: flex; background: var(--gray-100); border-radius: 5px; padding: 2px; }
.mm-view-tab { font-size: 8.5px; font-weight: 600; border: none; background: none; padding: 2px 7px; border-radius: 4px; cursor: default; color: var(--gray-500); }
.mm-view-active { background: var(--white); color: var(--gray-900); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.mm-btn-primary {
    display: flex; align-items: center; gap: 3px;
    background: var(--primary); color: var(--white);
    font-size: 8.5px; font-weight: 700;
    padding: 4px 8px; border-radius: 5px; border: none; cursor: default;
}

/* Lista appuntamenti giornaliera */
.mm-apt-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px 8px;
    overflow: hidden;
}
.mm-apt-item {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--white);
    border-radius: 6px;
    margin-bottom: 5px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
}
.mm-apt-accent { width: 4px; flex-shrink: 0; align-self: stretch; background: var(--apt-c, #263589); }
.mm-apt-time { font-size: 9px; font-weight: 700; color: var(--gray-400); width: 30px; text-align: center; flex-shrink: 0; padding: 0 4px; }
.mm-apt-info { flex: 1; padding: 7px 6px; min-width: 0; }
.mm-apt-name { font-size: 10px; font-weight: 700; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-apt-meta { font-size: 8.5px; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-apt-badge { font-size: 8px; font-weight: 700; padding: 2px 7px; border-radius: 999px; flex-shrink: 0; margin-right: 8px; white-space: nowrap; }
.mm-badge-done  { background: #D1FAE5; color: #059669; }
.mm-badge-pend  { background: #FEF3C7; color: #D97706; }
.mm-badge-later { background: var(--primary-50); color: var(--primary); }

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    white-space: nowrap;
}
.fc-top    { top: -20px; right: -20px; animation: mockup-float 5s ease-in-out infinite alternate-reverse; }
.fc-bottom { bottom: -16px; left: -16px; animation: mockup-float 7s ease-in-out infinite alternate; }
.fc-emoji { font-size: 22px; }
.fc-val  { font-size: 16px; font-weight: 800; color: var(--gray-900); }
.fc-lbl  { font-size: 11px; color: var(--gray-500); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    padding: 48px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}
.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    padding: 16px 48px;
}
.stat-val {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-lbl {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--gray-200);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
    padding: 100px 0;
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--gray-100);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feat-large {
    grid-column: span 2;
}

.feat-dark {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: transparent;
    color: var(--white);
}
.feat-dark h3 { color: var(--white) !important; }
.feat-dark p  { color: rgba(255,255,255,0.88) !important; }
.feat-dark .feat-list li { color: var(--white) !important; }
.feat-dark .feat-list li::before { background: rgba(255,255,255,0.2) !important; color: var(--white) !important; }

.feat-icon-wrap {
    width: 48px; height: 48px;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feat-icon-light {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.feat-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}
.feat-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

.feat-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.feat-list li {
    font-size: 13px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}
.feat-list li::before {
    content: '✓';
    width: 18px;
    height: 18px;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.feat-list-light li { color: rgba(255,255,255,0.85); }
.feat-list-light li::before {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

/* ============================================================
   PREVIEW
   ============================================================ */
.preview {
    padding: 100px 0;
    background: var(--white);
}

.preview-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.ptab {
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    border: 2px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}
.ptab:hover { color: var(--primary); background: var(--primary-50); }
.ptab-active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.ptab-panel { display: none; }
.ptab-panel-active { display: block; }

/* Screen Frame */
.screen-frame {
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}
.screen-bar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.screen-dots { display: flex; gap: 6px; }
.screen-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.screen-dots span:nth-child(1) { background: #FF5F57; }
.screen-dots span:nth-child(2) { background: #FFBD2E; }
.screen-dots span:nth-child(3) { background: #28C940; }
.screen-url {
    font-size: 12px;
    color: var(--gray-400);
    background: var(--gray-50);
    padding: 4px 16px;
    border-radius: 999px;
    flex: 1;
    text-align: center;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.screen-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    overflow: hidden;
}
.scr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}
.scr-title { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.scr-date  { font-size: 13px; color: var(--gray-500); }
.scr-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.scr-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    cursor: default;
}
.scr-btn-p {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    border-radius: var(--radius-sm);
    cursor: default;
}
.scr-search {
    padding: 6px 14px;
    font-size: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    color: var(--gray-500);
    width: 200px;
    outline: none;
    cursor: default;
}

/* Agenda View */
.agenda-view {
    display: flex;
    gap: 0;
    height: 340px;
    overflow: hidden;
}
.agenda-times {
    width: 48px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.agenda-times div {
    flex: 1;
    font-size: 10px;
    color: var(--gray-400);
    padding-top: 2px;
    font-weight: 500;
}
.agenda-cols {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.agenda-col { display: flex; flex-direction: column; }
.acol-header {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
    padding: 4px 8px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.acol-body { position: relative; flex: 1; }
.a-block {
    position: absolute;
    left: 0; right: 0;
    color: var(--white);
    font-size: 10px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.a-block b { font-size: 11px; }
.a-block small { opacity: 0.85; }

/* Lista appuntamenti mobile (agenda preview) — nascosta su desktop */
.agenda-mobile-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 4px 0;
}
.aml-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 4px;
    border-bottom: 1px solid var(--gray-100);
}
.aml-item:last-child { border-bottom: none; }
.aml-accent {
    width: 4px;
    height: 36px;
    border-radius: 4px;
    flex-shrink: 0;
}
.aml-time {
    font-size: 11px;
    color: var(--gray-400);
    width: 36px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.aml-info { flex: 1; }
.aml-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
}
.aml-svc {
    font-size: 10.5px;
    color: var(--gray-400);
    margin-top: 1px;
}

/* WhatsApp reminder strip */
.wa-reminder-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-top: 10px;
}
.wa-icon-wrap {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.wa-content {
    flex: 1;
    min-width: 0;
}
.wa-label {
    font-size: 11px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 2px;
}
.wa-msg {
    font-size: 10.5px;
    color: #15803D;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wa-sent {
    font-size: 10px;
    font-weight: 700;
    color: #16A34A;
    background: #DCFCE7;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Clients Table */
.clients-table { overflow-x: auto; }
.ct-head {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr 1fr;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 12px 10px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 4px;
}
.ct-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--gray-700);
    transition: background 0.15s;
}
.ct-row:hover { background: var(--gray-50); }
.ct-name { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ct-av {
    width: 28px; height: 28px;
    border-radius: 50%;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.badge-ok  { background: #D1FAE5; color: #059669; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-new { background: #DBEAFE; color: #2563EB; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }

/* Dashboard */
.dash-kpi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.kpi-card {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 14px 16px;
    border: 1px solid var(--gray-100);
}
.kpi-lbl  { font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.kpi-val  { font-size: 22px; font-weight: 800; color: var(--gray-900); }
.kpi-trend{ font-size: 11px; margin-top: 4px; font-weight: 500; }
.kpi-trend.up      { color: var(--success); }
.kpi-trend.neutral { color: var(--gray-400); }

.dash-chart-area { background: var(--gray-50); border-radius: var(--radius); padding: 16px; border: 1px solid var(--gray-100); }
.dca-title { font-size: 12px; font-weight: 600; color: var(--gray-500); margin-bottom: 16px; }
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 150px;
    justify-content: space-around;
}
.bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}
.bar-fill {
    width: 100%;
    background: var(--gray-200);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: 6px;
    display: block;
}
.bar-active { background: var(--primary); }
.bar-wrap span { font-size: 10px; color: var(--gray-400); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
    padding: 100px 0;
    background: var(--primary-50);
}
.steps-row {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
}
.step-card {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 40px 32px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    position: relative;
}
.step-num {
    position: absolute;
    top: -16px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-emoji { font-size: 40px; margin-bottom: 16px; }
.step-card h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.step-card p  { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.step-arrow {
    font-size: 28px;
    color: var(--primary-100);
    padding: 0 16px;
    flex-shrink: 0;
    font-weight: 300;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
    padding: 100px 0;
    background: var(--gray-50);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 32px;
}
.pricing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    border: 2px solid var(--gray-100);
    position: relative;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pricing-featured {
    border-color: var(--primary);
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(38,53,137,0.2);
}
.pricing-featured:hover { transform: scale(1.03) translateY(-4px); }

.plan-popular {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 999px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}
.price-num { font-size: 42px; font-weight: 900; color: var(--gray-900); }
.price-per { font-size: 16px; color: var(--gray-400); }
.plan-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}
.plan-feats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}
.plan-feats li { font-size: 14px; line-height: 1.4; }
.pf-yes { color: var(--gray-700); }
.pf-no  { color: var(--gray-300); }

.pricing-note {
    text-align: center;
    font-size: 14px;
    color: var(--gray-500);
}
.pricing-note a { color: var(--primary); font-weight: 600; text-decoration: underline; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
    padding: 100px 0;
    background: var(--white);
}
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.testi-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--gray-100);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testi-featured {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: transparent;
    color: var(--white);
    grid-row: span 1;
}
.testi-stars {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 2px;
}
.testi-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 24px;
    font-style: italic;
}
.testi-featured p { color: rgba(255,255,255,0.9); }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-av {
    width: 40px; height: 40px;
    border-radius: 50%;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.testi-featured .testi-name { color: var(--white); }
.testi-role { font-size: 12px; color: var(--gray-400); }
.testi-featured .testi-role { color: rgba(255,255,255,0.65); }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
    padding: 100px 0;
    background: var(--gray-50);
}
.faq-container { max-width: 800px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.faq-item.open { box-shadow: var(--shadow); border-color: var(--primary-100); }

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: inherit;
}
.faq-q:hover { color: var(--primary); }
.faq-item.open .faq-q { color: var(--primary); }

.faq-icon {
    font-size: 20px;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out);
}
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}
.contact::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent);
    top: -200px; right: -200px;
    pointer-events: none;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact-info { color: var(--white); }
.contact-info .section-badge {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
}
.contact-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}
.contact-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 36px;
}
.contact-benefits { display: flex; flex-direction: column; gap: 14px; }
.cb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}
.cb-check {
    width: 24px; height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    color: #4ADE80;
}

/* Form */
.contact-form-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.2);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(38,53,137,0.1);
}
.form-group input.error,
.form-group select.error {
    border-color: #DC2626;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select { cursor: pointer; }

.form-privacy { margin-top: -4px; }
.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}
.checkbox-wrap input[type="checkbox"] {
    width: 18px; height: 18px;
    margin-top: 1px;
    accent-color: var(--primary);
    flex-shrink: 0;
    cursor: pointer;
}
.checkbox-wrap a { color: var(--primary); text-decoration: underline; }

.form-success {
    display: none;
    background: #D1FAE5;
    border: 1px solid #6EE7B7;
    border-radius: var(--radius);
    padding: 16px 20px;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: #065F46;
    line-height: 1.5;
}
.success-icon {
    width: 32px; height: 32px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--gray-900);
    padding: 72px 0 0;
    color: var(--gray-400);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}
.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-400);
    margin-bottom: 24px;
}
.footer-product-link {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.35);
    transition: color 0.2s, border-color 0.2s;
}
.footer-product-link:hover {
    color: var(--primary-100);
    border-color: var(--primary-100);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: all 0.2s;
}
.footer-social a:hover { background: var(--primary); color: var(--white); }

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    font-size: 14px;
    color: var(--gray-300);
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 13px;
    color: var(--gray-400);
    gap: 16px;
    flex-wrap: wrap;
}
/* ============================================================
   MOBILE MENU
   ============================================================ */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-100);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
        pointer-events: none;
        z-index: 999;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-link { width: 100%; padding: 12px 16px; font-size: 16px; border-radius: var(--radius); }
    .nav-cta   { width: 100%; text-align: center; padding: 14px; font-size: 15px; margin: 8px 0 0; border-radius: var(--radius); }
    .nav-toggle { display: flex; }
}

/* ============================================================
   RESPONSIVE — TABLET (< 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; padding: 60px 24px; }
    .hero-content { order: 1; }
    .hero-visual  { order: 2; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .hero-trust   { justify-content: center; }
    .app-mockup   { max-width: 440px; margin: 0 auto; }
    /* Su tablet la sidebar è già nascosta grazie al breakpoint sotto */

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feat-large    { grid-column: span 2; }

    .pricing-grid  { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 32px; }
    .pricing-featured { transform: none; }
    .pricing-featured:hover { transform: translateY(-4px); }

    .testi-grid    { grid-template-columns: 1fr 1fr; }

    .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
    .contact-info    { text-align: center; }
    .contact-benefits { align-items: center; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (< 640px)
   ============================================================ */
@media (max-width: 640px) {
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-lg { justify-content: center; }

    .app-mockup { max-width: 100%; }
    /* Su mobile nascondi sidebar per non affollare */
    .mockup-sidebar { display: none; }
    .mm-today-btn, .mm-view-tabs { display: none; }
    .mockup-body { height: 300px; }
    .mm-curr-date { font-size: 9px; }
    .fc-top    { top: -12px; right: -8px; }
    .fc-bottom { bottom: -12px; left: -8px; }

    .stats-grid { gap: 0; }
    .stat-item  { padding: 16px 24px; }
    .stat-divider { display: none; }

    .features { padding: 64px 0; }
    .features-grid { grid-template-columns: 1fr; }
    .feat-large    { grid-column: span 1; }

    .preview   { padding: 64px 0; }
    .scr-header { flex-direction: column; align-items: flex-start; }
    .scr-actions { width: 100%; }
    .scr-search { width: 100%; }
    .dash-kpi { grid-template-columns: 1fr 1fr; }

    .how-it-works { padding: 64px 0; }
    .steps-row { flex-direction: column; gap: 24px; }
    .step-arrow { transform: rotate(90deg); }
    .step-card  { max-width: 100%; }

    .pricing { padding: 64px 0; }

    .testimonials { padding: 64px 0; }
    .testi-grid { grid-template-columns: 1fr; }

    .faq { padding: 64px 0; }
    .faq-q { font-size: 15px; padding: 16px 20px; }
    .faq-a p { padding: 0 20px 16px; }

    .contact { padding: 64px 0; }
    .contact-form-box { padding: 28px 20px; }
    .form-row-2 { grid-template-columns: 1fr; }
    .contact-benefits { align-items: flex-start; }

    .footer { padding: 48px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    /* Su mobile: scroll orizzontale — conserva l'aspetto a blocchi colorati */
    #panel-agenda .screen-content { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .agenda-view { min-width: 500px; height: 340px; flex-shrink: 0; }
    .agenda-mobile-list { display: none; }

    .ct-head { grid-template-columns: 2fr 1fr 1fr; }
    .ct-row  { grid-template-columns: 2fr 1fr 1fr; }
    .ct-head span:nth-child(3),
    .ct-head span:nth-child(4),
    .ct-row div:nth-child(3),
    .ct-row div:nth-child(4) { display: none; }

    /* Gift Card + Cassa: scroll orizzontale su mobile come agenda */
    #panel-giftcard .screen-content,
    #panel-cassa .screen-content { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .gc-stats { min-width: 440px; }
    .gc-table { min-width: 500px; }
    .inv-stats { min-width: 400px; }
    .cassa-stats { min-width: 500px; }
    .cassa-layout { min-width: 540px; }

    /* Gift Card su mobile */
    .gc-head, .gc-row { grid-template-columns: 1.5fr 1.5fr 0.7fr 0.8fr; }
    .gc-head span:nth-child(3), .gc-row div:nth-child(3),
    .gc-head span:nth-child(6), .gc-row div:nth-child(6) { display: none; }

    /* Fatturazione su mobile */
    .inv-stats { grid-template-columns: repeat(2, 1fr); }
    .inv-head, .inv-row { grid-template-columns: 1fr 1.5fr 1fr 1fr; }
    .inv-head span:nth-child(3), .inv-row div:nth-child(3),
    .inv-head span:nth-child(5), .inv-row div:nth-child(5) { display: none; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .navbar, .hero-bg, .floating-card { display: none; }
    .hero { background: var(--primary); min-height: auto; }
    body { color: #000; }
}

/* ============================================================
   INVOICE TABLE
   ============================================================ */
.invoice-table { overflow-x: auto; }
.inv-head {
    display: grid;
    grid-template-columns: 1fr 0.9fr 2fr 1fr 0.8fr 1.1fr;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 12px 10px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 4px;
}
.inv-row {
    display: grid;
    grid-template-columns: 1fr 0.9fr 2fr 1fr 0.8fr 1.1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--gray-700);
    transition: background 0.15s;
}
.inv-row:hover { background: var(--gray-50); }
.inv-num { font-family: 'SF Mono', 'Fira Code', monospace; color: var(--gray-400); font-size: 12px; }
.inv-amount { font-weight: 700; color: var(--gray-900); }
.badge-pend { background: #FEF3C7; color: #D97706; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.inv-totals {
    display: flex;
    gap: 24px;
    padding: 14px 12px 4px;
    border-top: 1px solid var(--gray-100);
    margin-top: 8px;
    flex-wrap: wrap;
}
.inv-total-item { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--gray-500); }
.inv-total-item strong { color: var(--gray-900); font-size: 14px; }

/* ============================================================
   WAREHOUSE TABLE
   ============================================================ */
.warehouse-table { overflow-x: auto; }
.wh-head {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 12px 10px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 4px;
}
.wh-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--gray-700);
    transition: background 0.15s;
}
.wh-row:hover { background: var(--gray-50); }
.wh-alert { background: #FFFBEB; }
.wh-alert:hover { background: #FEF9EC; }
.wh-name { font-weight: 500; color: var(--gray-800); }
.badge-warn { background: #FEF3C7; color: #D97706; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.wh-alert-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-top: 14px;
    font-size: 13px;
    color: #92400E;
    line-height: 1.4;
}

/* ============================================================
   FATTURAZIONE: metodi di pagamento labels
   ============================================================ */
.pay-lbl { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pay-cash { color: #065F46; }
.pay-card { color: #1E40AF; }
.pay-gift { color: #5B21B6; }

/* Stats bar fatture */
.inv-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.inv-stat {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 8px 12px;
}
.inv-stat-lbl {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    color: var(--gray-500);
    margin-bottom: 3px;
}
.inv-stat-lbl svg { flex-shrink: 0; }
.inv-stat-val { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.inv-stat-danger { color: #DC2626; }
.inv-stat-success { color: #059669; }
.inv-stat-warn { color: #D97706; }

/* Type badges fatture */
.type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    font-size: 10.5px;
    font-weight: 600;
}
.type-badge.type-acquisto { background: #FDE8E8; color: #9B1C1C; }
.type-badge.type-vendita  { background: #DEF7EC; color: #03543F; }
.type-badge.type-nota-credito { background: #E0E7FF; color: #4338CA; }

/* Paid badges */
.paid-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    font-size: 10.5px;
    font-weight: 600;
}
.paid-badge.paid   { background: #DEF7EC; color: #03543F; }
.paid-badge.unpaid { background: #FDE8E8; color: #9B1C1C; }
.paid-badge.emessa { background: #E0E7FF; color: #4338CA; }

/* Due info sotto stato */
.due-info {
    display: block;
    font-size: 10px;
    font-weight: 500;
    margin-top: 2px;
}
.due-info.overdue { color: #DC2626; }
.due-info.expiring { color: #D97706; }

/* Riga scaduta */
.inv-row-warn { background: #FEF2F2 !important; border-left: 3px solid #DC2626; }
.inv-row-warn:hover { background: #FEE2E2 !important; }

/* Alert scadenza in fondo */
.inv-due-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius);
    padding: 9px 12px;
    margin-top: 10px;
    font-size: 12px;
    color: #991B1B;
    font-weight: 500;
}
.inv-due-alert svg { flex-shrink: 0; }

/* ============================================================
   GIFT CARD TAB
   ============================================================ */
.gc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.gc-stat {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 10px 12px;
    text-align: center;
}
.gc-stat-green { background: #F0FDF4; border-color: #BBF7D0; }
.gc-stat-blue  { background: #EFF6FF; border-color: #BFDBFE; }
.gc-stat-purple { background: #F5F3FF; border-color: #DDD6FE; }
.gc-stat-val { font-size: 20px; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.gc-stat-lbl { font-size: 10.5px; color: var(--gray-400); margin-top: 2px; }

.gc-table { overflow-x: auto; }
.gc-head {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1.2fr 0.7fr 0.7fr 1fr;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 12px 10px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 4px;
}
.gc-row {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1.2fr 0.7fr 0.7fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: var(--gray-700);
    transition: background 0.15s;
}
.gc-row:hover { background: var(--gray-50); }
.gc-code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 11.5px; color: var(--primary); font-weight: 600; }
.gc-name { font-weight: 600; color: var(--gray-800); font-size: 12.5px; }
.gc-phone { font-size: 10.5px; color: var(--gray-400); }
.gc-val { font-weight: 600; color: var(--gray-700); }
.gc-bal { font-weight: 700; }
.gc-bal-full   { color: #059669; }
.gc-bal-partial { color: #D97706; }
.gc-bal-zero   { color: var(--gray-400); }
.badge-gc-partial { background: #FEF3C7; color: #D97706; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-gc-used    { background: var(--gray-100); color: var(--gray-400); padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }

/* ============================================================
   CASSA TAB
   ============================================================ */
.cassa-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.cs-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 10px 10px;
}
.cs-primary { background: var(--primary); border-color: var(--primary); }
.cs-primary .cs-val, .cs-primary .cs-lbl, .cs-primary .cs-icon-svg { color: var(--white) !important; }
.cs-icon { font-size: 16px; flex-shrink: 0; color: var(--gray-400); }
.cs-icon-svg { display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gray-400); width: 20px; height: 20px; }
.cs-val { font-size: 14px; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.cs-lbl { font-size: 9.5px; color: var(--gray-400); }

.cassa-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 2px;
}
.cassa-col { display: flex; flex-direction: column; gap: 0; }
.cassa-col-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cassa-badge {
    background: #FEF3C7;
    color: #D97706;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
}
.cassa-badge-green { background: #D1FAE5; color: #059669; }

.pending-item-mock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--gray-100);
}
.pending-item-mock:last-child { border-bottom: none; }
.pi-av {
    width: 34px; height: 34px; min-width: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: var(--white);
    flex-shrink: 0;
}
.pi-info { flex: 1; min-width: 0; }
.pi-name { font-size: 12.5px; font-weight: 600; color: var(--gray-800); }
.pi-svc  { font-size: 10.5px; color: var(--gray-400); }
.pi-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pi-price { font-size: 13px; font-weight: 700; color: var(--gray-900); }
.pi-btn {
    background: #059669; color: var(--white);
    font-size: 10.5px; font-weight: 700;
    padding: 4px 10px; border-radius: var(--radius-sm);
    cursor: default;
}

.tx-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 12px;
}
.tx-row:last-child { border-bottom: none; }
.tx-time { font-size: 11px; color: var(--gray-400); font-weight: 600; min-width: 38px; }
.tx-client { flex: 1; min-width: 0; }
.tx-client b { font-size: 12px; font-weight: 600; color: var(--gray-800); display: block; }
.tx-client small { font-size: 10.5px; color: var(--gray-400); }
.tx-amount { font-weight: 700; color: var(--gray-900); font-size: 13px; flex-shrink: 0; }
.tx-method {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
}
.tx-method svg { flex-shrink: 0; }

/* ============================================================
   AVIVXAI SECTION
   ============================================================ */
.avivxai-section {
    position: relative;
    background: #080C18;
    padding: 100px 0;
    overflow: hidden;
}
.ai-glow-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 60% at 75% 50%, rgba(38,53,137,0.4), transparent),
        radial-gradient(ellipse 40% 50% at 15% 70%, rgba(107,140,255,0.12), transparent),
        radial-gradient(ellipse 30% 30% at 50% 10%, rgba(60,78,170,0.1), transparent);
    pointer-events: none;
}
.avivxai-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.avivxai-content { color: var(--white); }
.ai-badge-wrap { margin-bottom: 20px; }
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(129,140,248,0.1);
    border: 1px solid rgba(129,140,248,0.25);
    color: #A5B4FC;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
}
.ai-pulse {
    width: 7px; height: 7px;
    background: #818CF8;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
.avivxai-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--white);
}
.ai-gradient {
    background: linear-gradient(135deg, #818CF8 0%, #C7D2FE 50%, #A5B4FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.avivxai-sub {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
    margin-bottom: 40px;
}
.ai-features { display: flex; flex-direction: column; gap: 22px; }
.ai-feat {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.ai-feat-icon {
    font-size: 20px;
    width: 44px; height: 44px;
    background: rgba(129,140,248,0.08);
    border: 1px solid rgba(129,140,248,0.18);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ai-feat-name {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    margin-bottom: 4px;
}
.ai-feat-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.42);
    line-height: 1.65;
}
/* AI Card mockup */
.avivxai-visual { position: relative; }
.ai-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-xl);
    padding: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 80px rgba(129,140,248,0.07),
        0 24px 64px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.06);
}
.ai-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ai-dot {
    width: 8px; height: 8px;
    background: #818CF8;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(129,140,248,0.6);
}
.ai-card-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.02em;
}
.ai-insights { display: flex; flex-direction: column; gap: 10px; }
.ai-insight {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 12px 14px;
    transition: border-color 0.2s;
}
.ai-insight:hover { border-color: rgba(129,140,248,0.2); }
.ai-insight-positive {
    border-color: rgba(74,222,128,0.12);
    background: rgba(74,222,128,0.03);
}
.ai-insight-positive:hover { border-color: rgba(74,222,128,0.25); }
.ai-insight-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.ai-insight-body { flex: 1; min-width: 0; }
.ai-insight-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    margin-bottom: 2px;
}
.ai-insight-desc { font-size: 11px; color: rgba(255,255,255,0.38); line-height: 1.5; }
.ai-insight-action {
    font-size: 11px;
    color: #818CF8;
    white-space: nowrap;
    font-weight: 600;
    flex-shrink: 0;
    align-self: center;
    opacity: 0.85;
}
.ai-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.ai-updated { font-size: 11px; color: rgba(255,255,255,0.25); }
.ai-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #4ADE80; font-weight: 600; }
.ai-status-dot {
    width: 6px; height: 6px;
    background: #4ADE80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(74,222,128,0.6);
}

/* AVIVXAI responsive */
@media (max-width: 1024px) {
    .avivxai-inner { grid-template-columns: 1fr; gap: 48px; }
    .avivxai-content { text-align: center; }
    .ai-features { text-align: left; max-width: 560px; margin: 0 auto; }
    .ai-badge-wrap { display: flex; justify-content: center; }
}
@media (max-width: 640px) {
    .avivxai-section { padding: 64px 0; }
    .inv-head { grid-template-columns: 1fr 2fr 1fr 1fr; }
    .inv-row  { grid-template-columns: 1fr 2fr 1fr 1fr; }
    .inv-head span:nth-child(3), .inv-row div:nth-child(3) { display: none; }
    .wh-head { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .wh-row  { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .wh-head span:nth-child(2), .wh-row div:nth-child(2) { display: none; }
    .inv-totals { gap: 12px; }
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 48px 0 32px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-100);
}
.article-tags span {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 600;
}
.article-tag-pill {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-weight: 500;
}
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.article-share span {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 600;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    background: var(--white);
    color: var(--gray-700);
    transition: all 0.2s;
    font-family: inherit;
}
.share-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

/* ===== APP CLIENTE SECTION ===== */
.client-app-section {
    padding: 96px 0;
    background: var(--primary-50);
    position: relative;
    overflow: hidden;
}
.client-app-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(38,53,137,0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* Zigzag row */
.ca-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}
.ca-row-rev { direction: rtl; }
.ca-row-rev > * { direction: ltr; }

/* Text col */
.ca-row-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 16px;
}
.ca-row-num-green { background: #059669; }
.ca-row-title {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    margin-bottom: 14px;
}
.ca-row-desc {
    font-size: 15.5px;
    color: #6B7280;
    line-height: 1.65;
    margin-bottom: 20px;
}
.ca-row-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ca-row-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: #374151;
    font-weight: 500;
}
.ca-row-bullets svg {
    color: #059669;
    flex-shrink: 0;
}

/* Phone col */
.ca-row-phone {
    display: flex;
    justify-content: center;
    align-items: center;
}
.ca-phone {
    width: 240px;
    background: #0f172a;
    border-radius: 36px;
    padding: 14px 12px 10px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
    position: relative;
}
.ca-phone-notch {
    width: 60px;
    height: 10px;
    background: #1e293b;
    border-radius: 0 0 12px 12px;
    margin: 0 auto 8px;
}
.ca-phone-home {
    width: 80px;
    height: 4px;
    background: #334155;
    border-radius: 99px;
    margin: 8px auto 0;
}
.ca-phone-screen {
    background: #f3f4f6;
    border-radius: 16px;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}
.ca-screen-success {
    background: white;
    align-items: center;
    padding: 20px 14px 14px;
}

/* Phone navbar */
.ca-phone-header {
    background: white;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.ca-phone-logo {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}
.ca-phone-salon { font-size: 10.5px; font-weight: 700; color: #111827; }
.ca-phone-sub { font-size: 9px; color: #9CA3AF; }
.ca-phone-greeting {
    padding: 10px 12px 2px;
    font-size: 12px;
    color: #374151;
}

/* Service section */
.ca-svc-section-title {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #374151;
    padding: 6px 12px 8px;
}
.ca-accordion {
    margin: 0 8px 6px;
    background: white;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}
.ca-accordion-head {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    font-size: 10.5px;
    font-weight: 700;
    color: #1E40AF;
    background: #EFF6FF;
    border-bottom: 1px solid #BFDBFE;
}
.ca-accordion-head-closed {
    color: #374151;
    background: #f9fafb;
    border-bottom: none;
}
.ca-acc-count {
    margin-left: auto;
    background: #DBEAFE;
    color: #1E40AF;
    border-radius: 99px;
    padding: 1px 6px;
    font-size: 9px;
}
.ca-accordion-head-closed .ca-acc-count { background: #E5E7EB; color: #6B7280; }
.ca-svc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-bottom: 1px solid #f3f4f6;
}
.ca-svc-row:last-child { border-bottom: none; }
.ca-svc-row-active { background: #F0FDF4; }
.ca-svc-name { font-size: 10.5px; font-weight: 600; color: #111827; }
.ca-svc-meta { font-size: 9px; color: #6B7280; margin-top: 2px; }
.ca-svc-btn {
    font-size: 9px;
    font-weight: 700;
    color: #1E40AF;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: default;
    white-space: nowrap;
    flex-shrink: 0;
}
.ca-svc-btn-active { background: #1E40AF; color: white; border-color: #1E40AF; }

/* Selected service chip */
.ca-sel-svc-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #D1FAE5;
    color: #065F46;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 10px;
    margin: 6px 8px 6px;
    border-radius: 6px;
    border: 1px solid #A7F3D0;
}

/* Mini calendar */
.ca-mini-cal {
    background: white;
    border-radius: 9px;
    margin: 0 8px 6px;
    padding: 8px 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}
.ca-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}
.ca-cal-head {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 8.5px;
    color: #9CA3AF;
    font-weight: 600;
    margin-bottom: 4px;
}
.ca-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.ca-d {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    border-radius: 5px;
    color: #9CA3AF;
    font-weight: 500;
}
.ca-d { color: #6B7280; }
.ca-av { background: #D1FAE5; color: #065F46; font-weight: 700; }
.ca-sel { background: #1E40AF; color: white; font-weight: 700; border-radius: 50%; }

/* Time slots */
.ca-slots-lbl {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #374151;
    padding: 0 10px 5px;
}
.ca-slots { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 8px 10px; }
.ca-slot {
    padding: 5px 8px;
    border-radius: 6px;
    background: white;
    border: 1px solid #E5E7EB;
    font-size: 10px;
    font-weight: 600;
    color: #374151;
}
.ca-slot-on { background: #1E40AF; border-color: #1E40AF; color: white; }

/* Success screen */
.ca-ok-icon {
    width: 60px;
    height: 60px;
    background: #D1FAE5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    margin-bottom: 12px;
    margin-top: 4px;
}
.ca-ok-title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    text-align: center;
    line-height: 1.25;
    margin-bottom: 5px;
}
.ca-ok-sub { font-size: 10px; color: #6B7280; text-align: center; margin-bottom: 14px; }
.ca-summary-card {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #E5E7EB;
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 12px;
}
.ca-sum-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 10px;
}
.ca-sum-row:last-child { border-bottom: none; }
.ca-sum-row svg { color: #9CA3AF; flex-shrink: 0; }
.ca-sum-lbl { color: #6B7280; flex: 0 0 52px; }
.ca-sum-val { color: #111827; font-weight: 700; flex: 1; text-align: right; font-size: 9.5px; }
.ca-wa-note {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F0FDF4;
    border: 1px solid #A7F3D0;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 9px;
    color: #065F46;
    font-weight: 600;
    width: 100%;
}

/* CTA */
.ca-cta { text-align: center; }
.ca-cta p { font-size: 15px; color: #6B7280; margin-bottom: 20px; }

/* ===== RESPONSIVE APP CLIENTE ===== */
@media (max-width: 860px) {
    .ca-row {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-bottom: 56px;
    }
    .ca-row-rev { direction: ltr; }
    .ca-row-phone { order: -1; }
    .ca-row-rev .ca-row-phone { order: -1; }
    .ca-phone { width: 220px; }
}
@media (max-width: 480px) {
    .ca-phone { width: 200px; }
    .ca-row { gap: 24px; margin-bottom: 48px; }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(38,53,137,0.35);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    pointer-events: none;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover { background: var(--primary-dark); }

/* ============================================================
   BLOG ARTICLE PAGES
   ============================================================ */
.article-hero {
    background: linear-gradient(135deg, #080C18 0%, #1C286E 100%);
    padding: calc(var(--nav-h) + 48px) 0 64px;
    color: var(--white);
}
.article-hero--teal {
    background: linear-gradient(135deg, #081F2A 0%, #1D4D5D 100%);
}
.article-hero--purple {
    background: linear-gradient(135deg, #1F172A 0%, #5C3C92 100%);
}
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.article-breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--white); }
.article-breadcrumb span { color: rgba(255,255,255,0.35); }
.article-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.article-cat--ai {
    background: rgba(129,140,248,0.15);
    border: 1px solid rgba(129,140,248,0.3);
    color: #A5B4FC;
}
.article-cat--gestione {
    background: rgba(129,140,248,0.15);
    border: 1px solid rgba(129,140,248,0.3);
    color: #A5B4FC;
}
.article-cat--software {
    background: rgba(56,189,248,0.15);
    border: 1px solid rgba(56,189,248,0.35);
    color: #7DD3FC;
}
.article-cat--marketing-teal {
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.3);
    color: #34D399;
}
.article-cat--marketing-pink {
    background: rgba(236,72,153,0.12);
    border: 1px solid rgba(236,72,153,0.3);
    color: #EC4899;
}
.article-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.15;
    max-width: 760px;
    margin-bottom: 20px;
}
.article-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
}
.article-cover {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 24px;
    margin-top: 32px;
    flex-shrink: 0;
}
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
    padding-top: 64px;
    padding-bottom: 96px;
}
.article-body { min-width: 0; }
.article-content {
    font-size: 17px;
    line-height: 1.85;
    color: var(--gray-700);
}
.article-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
    margin: 48px 0 16px;
    padding-top: 16px;
}
.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 36px 0 12px;
}
.article-content p { margin-bottom: 20px; }
.article-content ul,
.article-content ol { margin: 0 0 20px 24px; }
.article-content li { margin-bottom: 10px; }
.article-content strong { color: var(--gray-900); font-weight: 700; }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--primary-dark); }
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    background: var(--primary-50);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 28px 0;
    font-style: italic;
    color: var(--gray-600);
}
.info-box {
    background: var(--primary-50);
    border: 1px solid rgba(38,53,137,0.15);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 28px 0;
}
.info-box-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-box p { font-size: 15px; color: var(--gray-600); margin-bottom: 0; }
.article-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 20px;
}
.sidebar-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toc-list a {
    font-size: 13px;
    color: var(--gray-500);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
    transition: color 0.2s;
}
.toc-list a:hover { color: var(--primary); }
.toc-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-50);
    min-width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    color: var(--white);
    text-align: center;
}
.sidebar-cta h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--white);
    border: none;
    padding: 0;
}
.sidebar-cta p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}
.sidebar-cta a {
    display: block;
    background: var(--accent);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
    border-radius: var(--radius);
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}
.sidebar-cta a:hover { background: var(--accent-dark); }
.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}
.related-item div { display: flex; flex-direction: column; gap: 4px; }
.related-item span { font-size: 12px; color: var(--gray-500); }
.related-item h4 { margin: 0; font-size: 15px; color: var(--gray-900); }
.related-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gray-50);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.4;
    transition: color 0.2s;
}
.related-item:hover .related-title { color: var(--primary); }
.related-date { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 48px 0 32px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-100);
}
.article-tags span { font-size: 13px; color: var(--gray-500); font-weight: 600; }
.article-tag-pill {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-50);
    padding: 5px 12px;
    border-radius: 999px;
}
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}
.article-share span { font-size: 13px; color: var(--gray-500); font-weight: 600; }
@media (max-width: 980px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; top: auto; }
}
@media (max-width: 640px) {
    .article-hero { padding-bottom: 48px; }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    padding: 16px;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.32s var(--ease-out), opacity 0.32s ease;
    pointer-events: none;
}
.cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cookie-banner-inner {
    max-width: 960px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cookie-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 0;
}
.cookie-banner-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
}
.cookie-banner-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.cookie-banner-text p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-600);
    margin: 0;
}
.cookie-banner-text p + p {
    margin-top: 8px;
}
.cookie-banner-links a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cookie-banner-links a:hover {
    color: var(--primary-dark);
}
.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.btn-cookie-reject {
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
}
.btn-cookie-reject:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}
.btn-cookie-accept {
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.btn-cookie-accept:hover {
    background: var(--primary-dark);
}
body.cookie-banner-open {
    padding-bottom: 8px;
}

/* ============================================================
   PAGINA 404
   ============================================================ */
.page-404 {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 48px) 0 80px;
    background: linear-gradient(180deg, var(--primary-50) 0%, var(--white) 55%);
}
.page-404-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
.page-404-code {
    font-size: clamp(72px, 18vw, 120px);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}
.page-404-title {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}
.page-404-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 32px;
}
.page-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
@media (max-width: 768px) {
    .cookie-banner {
        padding: 10px 10px max(10px, env(safe-area-inset-bottom));
    }
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
        border-radius: var(--radius-lg);
    }
    .cookie-banner-icon {
        display: none;
    }
    .cookie-banner-content {
        gap: 0;
    }
    .cookie-banner-title {
        font-size: 15px;
        margin-bottom: 4px;
    }
    .cookie-banner-desc-full {
        display: none;
    }
    .cookie-banner-desc-short {
        display: block !important;
        font-size: 12px;
        line-height: 1.45;
    }
    .cookie-banner-text p + p {
        margin-top: 4px;
    }
    .cookie-banner-links {
        font-size: 12px;
    }
    .cookie-banner-actions {
        width: 100%;
        gap: 8px;
    }
    .cookie-banner-actions .btn-cookie-reject,
    .cookie-banner-actions .btn-cookie-accept {
        flex: 1;
        text-align: center;
        padding: 9px 12px;
        font-size: 13px;
    }
}
.cookie-banner-desc-short {
    display: none;
}
