/* ============================================= */
/* AGENTE24.IT — WARM PREMIUM THEME              */
/* ============================================= */

/* ---- Design Tokens ---- */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-accent: #10b981;
    --color-accent-light: #d1fae5;
    --gradient-brand: linear-gradient(135deg, #10b981, #2563eb);
    --gradient-hero: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 40%, #f0fdf4 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a, #1e293b);
    --gradient-warm: linear-gradient(135deg, #fafbff, #f0f4ff, #f0fdf4);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --bg-body: #fafbff;
    --bg-section: #f4f6fc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 60px rgba(37, 99, 235, 0.12);
    --shadow-glow-green: 0 0 40px rgba(16, 185, 129, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-body);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Gradient Text ---- */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Animated Background Orbs ---- */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.bg-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.12), transparent 70%);
    top: -120px; right: -100px;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

.bg-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(16,185,129,0.10), transparent 70%);
    bottom: -80px; left: -60px;
    animation: floatOrb 10s ease-in-out infinite alternate-reverse;
}

.bg-orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(139,92,246,0.08), transparent 70%);
    top: 40%; left: 50%;
    animation: floatOrb 14s ease-in-out infinite alternate;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.1); }
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-brand);
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25), 0 0 0 0 rgba(16,185,129,0);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35), 0 0 30px rgba(16,185,129,0.15);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: rgba(37,99,235,0.04);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(250, 251, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-icon { display: flex; }

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.nav-links a:hover { color: var(--color-primary); }

.btn-nav-cta {
    padding: 10px 22px !important;
    background: var(--gradient-brand) !important;
    color: white !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    transition: all var(--transition) !important;
    box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}

.btn-nav-cta:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(37,99,235,0.3) !important;
}

.btn-nav-accedi {
    padding: 8px 18px !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    color: var(--color-primary) !important;
    transition: all var(--transition) !important;
    background: transparent !important;
}

.btn-nav-accedi:hover {
    border-color: var(--color-primary) !important;
    background: rgba(37,99,235,0.05) !important;
    transform: translateY(-1px) !important;
}

/* ---- Funzioni Grid ---- */
.funzioni-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.funzione-card {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.funzione-card:hover {
    border-color: rgba(37,99,235,0.25);
    box-shadow: var(--shadow-md), 0 0 20px rgba(37,99,235,0.06);
    transform: translateY(-4px);
}

.funzione-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    line-height: 1;
}

.funzione-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.funzione-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 60px;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    background: var(--color-accent-light);
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-text h1 {
    font-size: 3.6rem;
    line-height: 1.08;
    letter-spacing: -2px;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-text .subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trust-avatars {
    display: flex;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    border: 2.5px solid white;
    margin-right: -10px;
}

/* ---- Hero Visual (Mascot) ---- */
.hero-visual {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-mascot {
    width: 380px;
    height: 380px;
    animation: mascotFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(37,99,235,0.15));
    position: relative;
    z-index: 1;
}

.hero-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

/* Chat bubble that appears near mascot */
.hero-chat-bubble {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: white;
    border-radius: 16px 16px 4px 16px;
    padding: 12px 18px;
    font-size: 0.88rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    animation: bubblePop 0.5s ease-out forwards;
    animation-delay: 1.5s;
    opacity: 0;
    max-width: 220px;
    z-index: 2;
}

.hero-chat-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 16px;
    width: 12px; height: 12px;
    background: white;
    transform: rotate(45deg);
}

@keyframes bubblePop {
    0% { opacity: 0; transform: scale(0.8) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Typing indicator */
.typing-indicator {
    position: absolute;
    top: 20px;
    right: -20px;
    background: #d9fdd3;
    border-radius: 12px 12px 12px 4px;
    padding: 10px 16px;
    display: flex;
    gap: 4px;
    box-shadow: var(--shadow-md);
    animation: bubblePop 0.5s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
    z-index: 2;
}

.typing-dot {
    width: 6px; height: 6px;
    background: #8696a0;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* ---- Dashboard Mockup ---- */
.dashboard-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    overflow: hidden;
    transition: transform var(--transition);
}

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

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-color);
}

.bar-dots {
    display: flex;
    gap: 6px;
}

.bar-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
}

.bar-dots span:first-child { background: #fca5a5; }
.bar-dots span:nth-child(2) { background: #fcd34d; }
.bar-dots span:nth-child(3) { background: #6ee7b7; }

.bar-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.3px;
}

.mockup-body { padding: 24px; }

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

.stat-card {
    padding: 16px;
    background: var(--bg-section);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.stat-change {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
}

.stat-change.positive { color: var(--color-accent); }

/* Chat Demo in mockup */
.chat-demo {
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.chat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.msg {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
    background: var(--text-tertiary);
    flex-shrink: 0;
}

.bot-avatar { background: var(--gradient-brand) !important; }

.msg-body {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-primary);
    max-width: 85%;
}

.msg-client .msg-body {
    background: white;
    border: 1px solid var(--border-color);
    border-bottom-right-radius: 4px;
}

.msg-bot .msg-body {
    background: var(--gradient-brand);
    color: white;
    border-bottom-left-radius: 4px;
}

.msg-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #059669;
    background: var(--color-accent-light);
    padding: 8px 14px;
    border-radius: 8px;
    margin-top: 4px;
}

/* ---- Logo Strip ---- */
.logos-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-body);
}

.logos-label {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.logos-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.tech-logo {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: -0.3px;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.tech-logo:hover { opacity: 1; }

/* ---- Section Heading ---- */
.section-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-heading h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- How it Works (Steps) ---- */
.how-section {
    padding: 120px 0;
    position: relative;
    background: var(--bg-body);
}

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

.step-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    border-color: rgba(37,99,235,0.3);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(37,99,235,0.08);
    transform: translateY(-6px);
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -3px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.25;
}

.step-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(16,185,129,0.08));
    margin-bottom: 20px;
    color: var(--color-primary);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Step Highlighted */
.step-highlighted {
    border-color: rgba(37,99,235,0.2) !important;
    background: linear-gradient(135deg, #f0f4ff, #f0fdf4) !important;
    box-shadow: var(--shadow-md), 0 0 30px rgba(37,99,235,0.06);
}

.step-features {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    background: rgba(255,255,255,0.8);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.step-feature svg {
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 2px;
}

.step-feature span {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Conversations Carousel ---- */
.conversations-section {
    padding: 120px 0;
    background: var(--bg-section);
    overflow: hidden;
    position: relative;
}

.conversations-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.conv-card {
    min-width: 380px;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.conv-card:hover {
    box-shadow: var(--shadow-xl), 0 0 20px rgba(37,99,235,0.06);
    transform: translateY(-6px);
}

.conv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-subtle);
}

.conv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 100px;
}

.voice-badge { background: #fef3c7; color: #92400e; }
.context-badge { background: #e0e7ff; color: #3730a3; }
.human-badge { background: #fce7f3; color: #9d174d; }
.image-badge { background: #d1fae5; color: #065f46; }

.conv-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* WhatsApp Chat Mockup */
.wa-chat {
    padding: 16px 20px;
    background: #efeae2;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d5cec5' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    min-height: 260px;
}

.wa-msg {
    display: block;
    margin-bottom: 8px;
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

.wa-incoming {
    background: white;
    margin-right: auto;
    border-top-left-radius: 0;
}

.wa-outgoing {
    background: #d9fdd3;
    margin-left: auto;
    border-top-right-radius: 0;
}

.wa-msg p {
    margin: 0;
    color: #111b21;
}

.wa-time {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: #667781;
    margin-top: 4px;
}

/* Voice Message */
.wa-voice-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    min-width: 180px;
}

.wa-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.wa-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.wa-waveform span {
    width: 3px;
    border-radius: 3px;
    background: var(--color-primary);
    opacity: 0.5;
}

.wa-waveform span:nth-child(1) { height: 8px; }
.wa-waveform span:nth-child(2) { height: 14px; }
.wa-waveform span:nth-child(3) { height: 6px; }
.wa-waveform span:nth-child(4) { height: 18px; }
.wa-waveform span:nth-child(5) { height: 10px; }
.wa-waveform span:nth-child(6) { height: 22px; }
.wa-waveform span:nth-child(7) { height: 8px; }
.wa-waveform span:nth-child(8) { height: 16px; }
.wa-waveform span:nth-child(9) { height: 6px; }
.wa-waveform span:nth-child(10) { height: 12px; }
.wa-waveform span:nth-child(11) { height: 20px; }
.wa-waveform span:nth-child(12) { height: 10px; }
.wa-waveform span:nth-child(13) { height: 14px; }
.wa-waveform span:nth-child(14) { height: 6px; }
.wa-waveform span:nth-child(15) { height: 16px; }
.wa-waveform span:nth-child(16) { height: 10px; }

.wa-duration {
    font-size: 0.7rem;
    color: #667781;
    flex-shrink: 0;
}

/* Quoted Message */
.wa-quoted .wa-quote-bar {
    background: #f0f0f0;
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 6px;
    font-size: 0.78rem;
}

.wa-quote-bar strong {
    display: block;
    color: var(--color-primary);
    font-size: 0.72rem;
    margin-bottom: 2px;
}

.wa-quote-bar p {
    margin: 0;
    color: #667781;
    font-size: 0.78rem;
}

/* Image placeholder in chat */
.wa-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 8px;
}

.wa-image-placeholder span {
    font-size: 0.78rem;
    color: #667781;
    font-weight: 500;
}

/* Conv Footer */
.conv-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-section);
}

.conv-result {
    font-size: 0.82rem;
    font-weight: 600;
    color: #059669;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-secondary);
}

.carousel-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-md), 0 0 15px rgba(37,99,235,0.1);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}

/* ---- Benefits (Bento Box Style) ---- */
.benefits-section {
    padding: 120px 0;
    background: var(--bg-section);
    position: relative;
}

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

.bento-card {
    padding: 36px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.bento-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(37,99,235,0.06);
    border-color: rgba(37,99,235,0.15);
}

/* Bento variations */
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }

.bento-featured {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: rgba(37,99,235,0.15);
}

.bento-card.bento-featured h3 { color: var(--text-primary); }
.bento-card.bento-featured p { color: var(--text-secondary); }
.bento-card.bento-featured .bento-icon { background: white; color: var(--color-primary); box-shadow: 0 4px 10px rgba(37,99,235,0.08); }

.bento-accent {
    background: linear-gradient(135deg, #f0f4ff, #ede9fe);
    border-color: rgba(139,92,246,0.1);
}

.bento-green {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: rgba(16,185,129,0.1);
}

.bento-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(16,185,129,0.08));
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.bento-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.bento-card p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Testimonial ---- */
.testimonial-section {
    padding: 100px 0;
    background: var(--bg-body);
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(37,99,235,0.04);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-mark {
    position: absolute;
    top: 24px;
    left: 40px;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.15;
}

blockquote {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0 0 32px 0;
    font-weight: 400;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    background: var(--gradient-brand);
    font-size: 0.85rem;
}

.testimonial-author div { text-align: left; }

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial-author span {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

/* ---- FAQ Section ---- */
.faq-section {
    padding: 100px 0;
    background: var(--bg-body);
}

.faq-grid {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: rgba(37,99,235,0.2);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    transition: transform var(--transition);
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Pricing ---- */
.pricing-section {
    padding: 120px 0;
    background: var(--bg-section);
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.price-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.price-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.price-card.popular {
    border-color: transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                var(--gradient-brand) border-box;
    border: 2px solid transparent;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(37,99,235,0.1);
    transform: scale(1.03);
}

.price-card.popular.visible {
    transform: scale(1.03);
}

.price-card.popular:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(37,99,235,0.15);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    background: var(--gradient-brand);
    border-radius: 100px;
}

.price-header {
    margin-bottom: 24px;
}

.price-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.price-desc {
    font-size: 0.88rem;
    color: var(--text-tertiary);
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.currency {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.amount {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    color: var(--text-primary);
}

.amount.custom {
    font-size: 2rem;
    letter-spacing: -1px;
}

.period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-left: 4px;
}

.price-features {
    list-style: none;
    margin-bottom: 32px;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.93rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.price-features li:last-child { border-bottom: none; }

.price-features li svg { flex-shrink: 0; }

.btn-price {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    background: transparent;
    transition: all var(--transition);
}

.btn-price:hover {
    border-color: var(--color-primary);
    background: rgba(37,99,235,0.04);
}

.btn-price-primary {
    background: var(--gradient-brand) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-price-primary:hover {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35), 0 0 20px rgba(16,185,129,0.1) !important;
    transform: translateY(-2px);
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 100px 0;
}

.cta-card {
    position: relative;
    text-align: center;
    padding: 80px 48px;
    background: var(--gradient-dark);
    border-radius: var(--radius-2xl);
    color: white;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 60%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.cta-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 60%);
    bottom: -200px;
    left: -100px;
    pointer-events: none;
}

.cta-mascot {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    animation: mascotFloat 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.cta-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cta-card h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    position: relative;
}

.cta-card p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.cta-section .btn-secondary {
    border-color: rgba(255,255,255,0.2);
    color: white;
}

.cta-section .btn-secondary:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
}

.cta-note {
    display: block;
    margin-top: 24px;
    font-size: 0.82rem;
    color: #64748b;
    position: relative;
}

/* ---- Footer ---- */
.footer {
    padding: 80px 0 32px;
    background: #0b1120;
    color: #94a3b8;
    position: relative;
    overflow: hidden;
}

.footer-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 48px;
}

.footer-hero-text h3 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.footer-hero-text p {
    font-size: 1rem;
    color: #64748b;
}

.footer-mascot {
    width: 130px;
    height: 130px;
    flex-shrink: 0;
    animation: mascotFloat 5s ease-in-out infinite;
}

.footer-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.7;
    color: #64748b;
}

.footer-logo {
    color: white !important;
}

.footer-links-group h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.footer-links-group a {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    padding: 6px 0;
    transition: color var(--transition);
}

.footer-links-group a:hover { color: white; }

.footer-bottom {
    padding-top: 32px;
    text-align: center;
    font-size: 0.82rem;
    color: #475569;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-container { flex-direction: column; gap: 40px; }
    .hero-text { max-width: 100%; text-align: center; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-mascot { width: 280px; height: 280px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .price-card.popular { transform: none; }
    .price-card.popular.visible { transform: none; }
    .price-card.popular:hover { transform: translateY(-4px); }
    .footer-hero { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .hero { padding: 120px 0 60px; }
    .hero-text h1 { font-size: 2.2rem; letter-spacing: -1px; }
    .hero-mascot { width: 220px; height: 220px; }
    .hero-chat-bubble { display: none; }
    .typing-indicator { display: none; }
    .section-heading h2 { font-size: 2rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; }
    .bento-tall { grid-row: span 1; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .cta-card { padding: 48px 24px; }
    .cta-card h2 { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(250,251,255,0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        gap: 16px;
    }
    .nav-links.open { display: flex; }
    .mobile-toggle { display: flex; }
    .btn-nav-cta { text-align: center; }
    .btn-nav-accedi { text-align: center; width: 100%; }
    .funzioni-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    @media (max-width: 480px) {
        .funzioni-grid { grid-template-columns: 1fr !important; }
    }

    /* Carousel mobile: horizontal scroll snap */
    .conversations-carousel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 0 16px;
    }
    .conversations-carousel::-webkit-scrollbar { display: none; }

    .carousel-track {
        transition: none;
        transform: none !important;
    }

    .conv-card {
        min-width: calc(100vw - 48px);
        max-width: calc(100vw - 48px);
        scroll-snap-align: center;
    }

    .carousel-btn { display: none; }

    .conversations-section { padding: 80px 0; }

    .step-feature {
        flex-direction: column;
        gap: 8px;
    }

    .footer-hero-text h3 { font-size: 1.5rem; }
}

/* ======= COOKIE BANNER ======= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15,23,42,0.97);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.08);
    animation: slideUpCookie 0.4s ease;
}
.cookie-banner.hidden { display: none; }
.cookie-text {
    font-size: 0.84rem;
    color: #94a3b8;
    max-width: 600px;
    line-height: 1.5;
}
.cookie-text a {
    color: #2563eb;
    text-decoration: none;
}
.cookie-btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.cookie-accept {
    background: linear-gradient(135deg, #10b981, #2563eb);
    color: white;
}
.cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
@keyframes slideUpCookie {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}