/* Fatturah.it — Sito Vetrina */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --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;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-icon {
    width: 32px; height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 14px;
}
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
.logo-text span { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; font-size: 0.875rem; color: var(--gray-600); transition: color 0.2s; }
.nav-links a:hover { color: var(--gray-900); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none; cursor: pointer;
}
.btn-ghost { color: var(--gray-700); background: transparent; }
.btn-ghost:hover { color: var(--gray-900); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: 0.875rem; }
.btn-outline-white {
    border: 2px solid rgba(255,255,255,0.3); color: white; background: transparent;
    padding: 0.875rem 2rem; font-size: 1rem; border-radius: 0.875rem;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-white { background: white; color: var(--primary-dark); box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.btn-white:hover { background: var(--primary-50); }
.btn-outline {
    border: 2px solid var(--gray-300); color: var(--gray-700); background: white;
}
.btn-outline:hover { background: var(--gray-50); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    padding: 10rem 1.5rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 0%, transparent 50%);
}
.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 3.5rem; font-weight: 800; color: white; line-height: 1.1; margin-bottom: 1.5rem; }
.hero h1 .accent { color: #93c5fd; }
.hero p { font-size: 1.25rem; color: #bfdbfe; max-width: 640px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1rem; font-size: 0.875rem; color: #93c5fd; }

/* ===== SECTIONS ===== */
.section { padding: 6rem 1.5rem; }
.section-gray { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.section-header p { font-size: 1.125rem; color: var(--gray-600); max-width: 640px; margin: 0 auto; }
.container { max-width: 1200px; margin: 0 auto; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}
.feature-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--gray-600); }

/* ===== SHOWCASE ===== */
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.showcase-text h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.showcase-text p { color: var(--gray-600); margin-bottom: 1.5rem; }
.showcase-list { list-style: none; }
.showcase-list li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.5rem 0; font-size: 0.9375rem; color: var(--gray-700);
}
.showcase-list li::before { content: '\2713'; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.showcase-mockup {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.mockup-bar {
    background: var(--gray-100);
    padding: 0.75rem 1rem;
    display: flex; align-items: center; gap: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #eab308; }
.mockup-dot.green { background: #22c55e; }
.mockup-body { padding: 1.5rem; }
.mockup-body .stat-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.stat-card {
    flex: 1; background: var(--gray-50); border-radius: 0.5rem;
    padding: 1rem; border: 1px solid var(--gray-200);
}
.stat-card .label { font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; }
.stat-card .value { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
.mockup-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.mockup-table th { text-align: left; padding: 0.5rem; color: var(--gray-500); font-weight: 600; font-size: 0.6875rem; text-transform: uppercase; border-bottom: 1px solid var(--gray-200); }
.mockup-table td { padding: 0.5rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.mockup-badge {
    display: inline-block; padding: 0.125rem 0.5rem; border-radius: 999px;
    font-size: 0.6875rem; font-weight: 600;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-orange { background: #ffedd5; color: #9a3412; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 960px; margin: 0 auto; }
.pricing-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    border: 1px solid var(--gray-200);
    position: relative;
}
.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
}
.pricing-badge {
    position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: white;
    font-size: 0.75rem; font-weight: 600;
    padding: 0.25rem 0.75rem; border-radius: 999px;
}
.pricing-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.pricing-card .price { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.pricing-card .price span { font-size: 1rem; color: var(--gray-500); font-weight: 400; }
.pricing-card .desc { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 2rem; }
.pricing-list { list-style: none; margin-bottom: 2rem; }
.pricing-list li {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.375rem 0; font-size: 0.875rem; color: var(--gray-600);
}
.pricing-list li::before { content: '\2713'; color: #22c55e; font-weight: 700; flex-shrink: 0; }
.pricing-card .btn { width: 100%; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial-card {
    background: white; border-radius: 1rem;
    padding: 2rem; border: 1px solid var(--gray-200);
}
.testimonial-card .stars { color: #f59e0b; font-size: 1.125rem; margin-bottom: 1rem; }
.testimonial-card blockquote { font-size: 0.9375rem; color: var(--gray-700); margin-bottom: 1.25rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary-100); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.875rem;
}
.testimonial-name { font-weight: 600; font-size: 0.875rem; }
.testimonial-role { font-size: 0.75rem; color: var(--gray-500); }

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    padding: 5rem 1.5rem;
    text-align: center;
}
.cta h2 { font-size: 2.25rem; font-weight: 700; color: white; margin-bottom: 1rem; }
.cta p { font-size: 1.125rem; color: #bfdbfe; margin-bottom: 2rem; }

/* ===== FOOTER ===== */
.footer { background: var(--gray-900); padding: 3rem 1.5rem; }
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1.5rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--gray-400); font-size: 0.875rem; text-decoration: none; }
.footer-links a:hover { color: white; }
.footer .copyright { color: var(--gray-500); font-size: 0.875rem; }

/* ===== MOBILE MENU ===== */
.mobile-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 24px; height: 24px; position: relative;
}
.mobile-toggle span {
    display: block; width: 100%; height: 2px; background: var(--gray-700);
    position: absolute; left: 0; transition: 0.3s;
}
.mobile-toggle span:nth-child(1) { top: 5px; }
.mobile-toggle span:nth-child(2) { top: 11px; }
.mobile-toggle span:nth-child(3) { top: 17px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .showcase-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .hero { padding: 8rem 1.5rem 4rem; }
    .section { padding: 4rem 1rem; }
    .features-grid, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero-actions { flex-direction: column; align-items: center; }
    .footer-inner { flex-direction: column; text-align: center; }
}
