/* Fatturah.it — Sito Vetrina — Pop Design */
/* Font self-hosted (no Google Fonts CDN) per ridurre latenza render-blocking */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/spacegrotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --pop-yellow: #FFE14D;
    --pop-yellow-dark: #F5D020;
    --pop-pink: #FF6B9D;
    --pop-pink-dark: #C03865;
    --pop-blue: #4D9FFF;
    --pop-blue-dark: #246BC8;
    --pop-green: #36D399;
    --pop-green-dark: #157F57;
    --pop-purple: #A78BFA;
    --pop-purple-dark: #8B5CF6;
    --pop-orange: #FF8A4C;
    --pop-coral: #FF6B6B;
    --dark: #232946;
    --dark-soft: #373F68;
    --dark-muted: #5C6490;
    --light: #FAFAFE;
    --light-gray: #F0F0F8;
    --mid-gray: #B8B8D0;
    --text: #232946;
    --text-muted: #6B6B8D;

    /* Altezza della barra in alto. Sta qui perché la usano sia l'altezza
       della prima schermata sia la posizione del menu a tendina su telefono:
       tenerla in un punto solo evita che si sfasino. */
    --nav-h: 68px;
}

*, *::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(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background: var(--light);
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(35, 41, 70, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 2px solid rgba(255, 225, 77, 0.15);
    transition: all 0.3s;
}
.navbar.scrolled {
    background: rgba(35, 41, 70, 0.98);
    border-bottom-color: var(--pop-yellow);
    box-shadow: 0 4px 30px rgba(255, 225, 77, 0.1);
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-icon {
    width: 36px; height: 36px;
    background: var(--pop-yellow);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--dark); font-weight: 800; font-size: 16px;
    font-family: 'Space Grotesk', sans-serif;
    transform: rotate(-3deg);
    transition: transform 0.3s;
}
.logo:hover .logo-icon { transform: rotate(3deg) scale(1.05); }
.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem; font-weight: 700; color: white;
}
.logo-text span { color: var(--pop-yellow); }

.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-links a {
    text-decoration: none; font-size: 0.875rem; font-weight: 500;
    color: var(--mid-gray);
    transition: color 0.2s;
    position: relative;
}
.nav-links a:hover { color: white; }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--pop-yellow);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.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: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none; cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.btn-ghost { color: var(--mid-gray); background: transparent; }
.btn-ghost:hover { color: white; }

.btn-primary {
    background: var(--pop-yellow);
    color: var(--dark);
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(255, 225, 77, 0.3);
}
.btn-primary:hover {
    background: #fff06a;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 225, 77, 0.4);
}
.btn-primary-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    border-radius: 14px;
}

.btn-dark {
    background: var(--dark);
    color: white;
    border: 2px solid var(--dark-soft);
}
.btn-dark:hover {
    background: var(--dark-soft);
    border-color: var(--pop-yellow);
}

.btn-outline-white {
    border: 2px solid rgba(255,255,255,0.45);
    color: white;
    background: transparent;
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    border-radius: 14px;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--pop-yellow);
    color: var(--pop-yellow);
}

.btn-pop {
    background: #BF5075;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(191, 80, 117, 0.3);
}
.btn-pop:hover {
    background: var(--pop-pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.4);
}

.btn-outline {
    border: 2px solid var(--dark);
    color: var(--dark);
    background: transparent;
}
.btn-outline:hover {
    background: var(--dark);
    color: var(--pop-yellow);
}

.btn-full { width: 100%; }

/* ===== PILL / TAG ===== */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.pill-yellow { background: rgba(255, 225, 77, 0.15); color: #887200; border: 1px solid rgba(255, 225, 77, 0.3); }
.pill-hero { background: rgba(255, 225, 77, 0.15); color: var(--pop-yellow); border: 1px solid rgba(255, 225, 77, 0.25); }

/* ===== HERO ===== */
.hero {
    background: var(--dark);
    /* Prima riga per i browser vecchi, seconda per tutti gli altri.
       Su telefono `100vh` comprende anche la barra degli indirizzi: la prima
       schermata risultava più alta dello spazio visibile e sobbalzava quando
       la barra si nascondeva scorrendo. `100dvh` misura lo spazio davvero
       disponibile e il sobbalzo sparisce. */
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100dvh - var(--nav-h));
    padding: 10rem 1.5rem 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: -320px; right: -160px;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255, 225, 77, 0.08) 0%, transparent 70%);
    pointer-events: none;
    will-change: transform;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -180px; left: -90px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.06) 0%, transparent 70%);
    pointer-events: none;
    will-change: transform;
}

/* Grid pattern overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.hero-pill {
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    /* Scala con continuità da 32px (telefono stretto) a 64px (schermo largo)
       invece di saltare da 64 a 40 al breakpoint. Un titolo lungo come quello
       della prima schermata, a 40px su 360px di larghezza, occupava mezzo
       schermo prima ancora dei pulsanti. */
    font-size: clamp(2rem, 1.22rem + 3.48vw, 4rem);
    font-weight: 700;
    color: white;
    line-height: 1.08;
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
}
.hero h1 .highlight-yellow {
    color: var(--pop-yellow);
    position: relative;
}
.hero h1 .highlight-yellow::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0;
    width: 100%; height: 6px;
    background: var(--pop-yellow);
    opacity: 0.25;
    border-radius: 3px;
}
.hero h1 .highlight-pink { color: var(--pop-pink); }

.hero p.subtitle {
    font-size: 1.25rem;
    color: var(--mid-gray);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
/* A/B subtitles: altezza fissa per evitare CLS quando JS ne nasconde uno */
.hero .subtitle-ab { min-height: 0; margin-bottom: 0.5rem; }
.hero .subtitle-ab:last-of-type { margin-bottom: 2.5rem; }
.hero .subtitle-ab[hidden] { display: none; }

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--mid-gray);
}
.hero-trust-item .icon {
    width: 20px; height: 20px;
    background: var(--pop-green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: white; font-weight: 700;
}

/* ===== BANNER ===== */
.free-banner {
    background: linear-gradient(135deg, var(--pop-purple) 0%, var(--pop-pink) 50%, var(--pop-orange) 100%);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.free-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 20px
    );
}
.free-banner-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.free-banner-content span {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    font-family: 'Space Grotesk', sans-serif;
}
.free-banner-content .price-tag {
    background: white;
    color: var(--pop-purple-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.125rem;
}

/* ===== SECTIONS ===== */
.section { padding: 6rem 1.5rem; }
.section-dark { background: var(--dark); }
.section-gray { background: var(--light-gray); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}
.section-header .accent-line {
    width: 60px; height: 4px;
    background: var(--pop-yellow);
    border-radius: 2px;
    margin: 1.25rem auto 0;
}
.container { max-width: 1200px; margin: 0 auto; }

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--light-gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    transition: height 0.3s;
}
.feature-card:nth-child(1)::before { background: var(--pop-yellow); }
.feature-card:nth-child(2)::before { background: var(--pop-green); }
.feature-card:nth-child(3)::before { background: var(--pop-purple); }
.feature-card:nth-child(4)::before { background: var(--pop-orange); }
.feature-card:nth-child(5)::before { background: var(--pop-pink); }
.feature-card:nth-child(6)::before { background: var(--pop-blue); }

.feature-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.feature-card:hover::before { height: 6px; }

.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}
.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

.feature-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}
.badge-included { background: rgba(54, 211, 153, 0.12); color: var(--pop-green-dark); }

/* ===== SHOWCASE ===== */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}
.showcase-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.showcase-text p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.8; }
.showcase-list { list-style: none; }
.showcase-list li {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.9375rem;
    color: var(--text);
}
.showcase-list li .check {
    width: 22px; height: 22px;
    background: var(--pop-green);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 12px; font-weight: 700;
    flex-shrink: 0;
}

.showcase-mockup {
    background: var(--dark);
    border-radius: 20px;
    box-shadow:
        0 30px 80px rgba(35, 41, 70, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.mockup-bar {
    background: var(--dark-soft);
    padding: 0.85rem 1.25rem;
    display: flex; align-items: center; gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.red { background: #FF6B6B; }
.mockup-dot.yellow { background: var(--pop-yellow); }
.mockup-dot.green { background: var(--pop-green); }

.mockup-body { padding: 1.5rem; }
.mockup-body .stat-row { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.stat-card {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.06);
}
.stat-card .label {
    font-size: 0.6875rem;
    color: var(--mid-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.stat-card .value { font-size: 1.25rem; font-weight: 700; color: white; font-family: 'Space Grotesk', sans-serif; }

.mockup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}
.mockup-table th {
    text-align: left;
    padding: 0.5rem;
    color: var(--mid-gray);
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mockup-table td {
    padding: 0.6rem 0.5rem;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.mockup-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
}
.badge-green { background: rgba(54, 211, 153, 0.15); color: var(--pop-green); }
.badge-blue { background: rgba(77, 159, 255, 0.15); color: #7EB8FF; }
.badge-orange { background: rgba(255, 138, 76, 0.15); color: var(--pop-orange); }

/* ===== HOW IT WORKS (steps) ===== */
.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}
.steps-row::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, var(--pop-yellow), var(--pop-pink), var(--pop-blue));
    border-radius: 2px;
    z-index: 0;
}
.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}
.step-number {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    color: white;
    position: relative;
}
.step-card:nth-child(1) .step-number { background: var(--pop-yellow); color: var(--dark); }
.step-card:nth-child(2) .step-number { background: var(--pop-pink); }
.step-card:nth-child(3) .step-number { background: var(--pop-blue); }

.step-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.step-card p { font-size: 0.875rem; color: var(--text-muted); max-width: 280px; margin: 0 auto; }

/* ===== ALL INCLUDED SECTION ===== */
.all-free {
    background: var(--dark);
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.all-free::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 225, 77, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 107, 157, 0.06) 0%, transparent 50%);
}
.all-free-content { position: relative; max-width: 800px; margin: 0 auto; }
.all-free h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}
.all-free h2 .free-text { color: var(--pop-green); }
.all-free p { font-size: 1.125rem; color: var(--mid-gray); margin-bottom: 2.5rem; line-height: 1.7; }

.free-features-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.free-feature {
    display: flex; align-items: center; gap: 0.5rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
    font-weight: 500;
}
.free-feature .icon {
    color: var(--pop-green);
    font-weight: 700;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--light-gray);
    transition: all 0.3s;
}
.testimonial-card:hover {
    border-color: var(--pop-yellow);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.testimonial-card .stars { color: var(--pop-yellow); font-size: 1.125rem; margin-bottom: 1rem; }
.testimonial-card blockquote {
    font-size: 0.9375rem;
    color: var(--text);
    margin-bottom: 1.25rem;
    font-style: italic;
    line-height: 1.7;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.875rem;
}
.testimonial-card:nth-child(1) .testimonial-avatar { background: rgba(255, 225, 77, 0.15); color: #8A710A; }
.testimonial-card:nth-child(2) .testimonial-avatar { background: rgba(255, 107, 157, 0.15); color: var(--pop-pink-dark); }
.testimonial-card:nth-child(3) .testimonial-avatar { background: rgba(77, 159, 255, 0.15); color: var(--pop-blue-dark); }

.testimonial-name { font-weight: 600; font-size: 0.875rem; }
.testimonial-role { font-size: 0.75rem; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.faq-item {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover {
    border-color: var(--pop-yellow);
}
.faq-item[open] {
    border-color: var(--pop-yellow);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.125rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.25s ease, background 0.2s;
}
.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    background: var(--pop-yellow);
}
.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--pop-blue-dark); text-decoration: underline; }

/* ===== CTA ===== */
.dont-share-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.dont-share-illustration svg {
    width: 100%;
    height: auto;
    display: block;
}
.dont-share-card {
    background: #fff;
    border: 3px solid var(--dark);
    border-radius: 16px;
    box-shadow: 8px 8px 0 var(--dark);
    padding: 2rem 2.25rem;
}
.dont-share-card p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    margin-bottom: 1rem;
}
.dont-share-card p:last-of-type {
    margin-bottom: 1.75rem;
}
.dont-share-card .marker {
    color: var(--text);
    box-shadow: inset 0 -0.5em 0 var(--pop-yellow);
}

.cta {
    background: linear-gradient(135deg, var(--pop-yellow) 0%, var(--pop-pink) 50%, var(--pop-purple) 100%);
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.04) 20px,
        rgba(255,255,255,0.04) 40px
    );
}
.cta-content { position: relative; }
.cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}
.cta p {
    font-size: 1.125rem;
    color: var(--dark);
    margin-bottom: 2rem;
}
.cta .btn-dark {
    background: var(--dark);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    border-radius: 14px;
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.cta .btn-dark:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    padding: 3.5rem 1.5rem;
    border-top: 2px solid var(--dark-soft);
}
.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: 2rem; }
.footer-links a {
    color: var(--mid-gray);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--pop-yellow); }
.footer .copyright { color: var(--dark-muted); font-size: 0.8125rem; }

/* ===== MOBILE MENU ===== */
/* Il bersaglio è 44x44 (la misura minima consigliata per il dito): prima era
   28x28. Le tre barrette restano larghe 28px, centrate dentro l'area. */
.mobile-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; position: relative;
    margin-right: -8px;   /* riallinea il bordo visivo col resto della barra */
    padding: 0;
}
.mobile-toggle span {
    display: block; width: 28px; height: 2px; background: white;
    position: absolute; left: 8px; transition: 0.3s;
    border-radius: 1px;
}
.mobile-toggle span:nth-child(1) { top: 14px; }
.mobile-toggle span:nth-child(2) { top: 21px; }
.mobile-toggle span:nth-child(3) { top: 28px; }

/* Aperto: le barrette diventano una X, così si capisce che richiude */
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ===== NAV MOBILE SHOW ===== */
.nav-links.show {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--dark);
    padding: 1.5rem;
    border-bottom: 2px solid var(--pop-yellow);
    gap: 1rem;
    z-index: 99;
    /* Se le voci fossero più della schermata (telefono piccolo in orizzontale)
       il menu deve poter scorrere, non sparire sotto il bordo. */
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
}
.nav-links.show a {
    padding: 0.5rem 0;   /* area toccabile decente fra una voce e l'altra */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid, .testimonials-grid, .steps-row { grid-template-columns: 1fr 1fr; }
    .showcase-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .dont-share-grid { grid-template-columns: 1fr; gap: 2.5rem; max-width: 560px; }
    .dont-share-illustration { max-width: 320px; margin: 0 auto; }
    .steps-row::before { display: none; }
}

@media (max-width: 768px) {
    /* Il titolo e i sottotitoli ora scalano da soli con clamp(): qui non
       serve più forzarne la dimensione. */
    .hero { padding: 6rem 1.5rem 3rem; }
    .section { padding: 4rem 1rem; }
    .features-grid, .testimonials-grid, .steps-row { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-trust { flex-direction: column; gap: 0.75rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .free-features-row { flex-direction: column; align-items: center; }
    .all-free h2, .cta h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); }
    .free-banner-content { flex-direction: column; gap: 0.5rem; }
}

/* ===== TELEFONI ===== *
 * Questo livello prima non esisteva: sotto i 768px non si adattava più nulla,
 * mentre i telefoni stanno fra i 320 e i 430px di larghezza. Qui si sistema
 * quello che a quelle misure sta stretto per davvero.
 */
@media (max-width: 640px) {
    .hero { padding: 5.5rem 1rem 2.5rem; }
    .navbar-inner { padding: 0 1rem; }
    .section { padding: 3rem 1rem; }
    .section-header { margin-bottom: 2.5rem; }

    /* Pulsanti a tutta larghezza: più facili da centrare col pollice */
    .hero-actions { width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    /* La finta schermata dell'app: tre riquadri affiancati a 360px danno
       ~85px l'uno, dentro cui "€ 12.450" non ci sta. Due sopra e uno sotto. */
    .mockup-body { padding: 1rem; }
    .mockup-body .stat-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .mockup-body .stat-row .stat-card:last-child { grid-column: 1 / -1; }
    .stat-card { padding: 0.75rem; }

    /* Nella tabellina di esempio la colonna del numero documento
       ("FT-2026-024") è la meno utile: sacrificata per lasciare respiro a
       cliente, importo e stato. */
    .mockup-table th:first-child,
    .mockup-table td:first-child { display: none; }
    .mockup-table { font-size: 0.75rem; }
    .mockup-table th, .mockup-table td { padding: 0.5rem 0.35rem; }

    .free-banner-content .price-tag { font-size: 1.25rem; }
    .testimonial-card blockquote { font-size: 0.9375rem; }
}
