/* Variabili Colore e Design System */
:root {
    --primary-color: #4054B2;
    --primary-dark: #2a3b8f;
    --primary-gradient: linear-gradient(135deg, #4054B2 0%, #1e2a6b 100%);
    --secondary-bg: #F8F9FD; /* Sfondo pagina leggermente azzurrato/grigio */
    --accent-color: #00d4ff; /* Ciano per dettagli tech */
    --text-dark: #1a1c2d;
    --text-muted: #6c757d;
    --card-shadow: 0 10px 30px rgba(64, 84, 178, 0.08);
    --card-hover-shadow: 0 20px 40px rgba(64, 84, 178, 0.15);
    --radius-lg: 20px;
    --radius-md: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--secondary-bg);
    overflow-x: hidden;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    transition: all 0.3s ease;
    background-color: transparent;
}

    .navbar.scrolled {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding-top: 1rem;
        padding-bottom: 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    }

    /* Fix mobile: quando il menu è aperto, rendi lo sfondo bianco solido */
    .navbar.nav-open {
        background-color: #fff;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    }

.logo-circle {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 12px; /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(64, 84, 178, 0.3);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
}

    .nav-link:hover {
        color: var(--primary-color) !important;
    }

/* Pulsanti */
.btn {
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--primary-color); /* Fallback */
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(64, 84, 178, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(64, 84, 178, 0.4);
    }

.btn-cta {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-white {
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid transparent;
}

    .btn-white:hover {
        background-color: #f8f9fa;
        color: var(--primary-dark);
    }

/* Button Outline Override */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: #fff;
    }

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    background: var(--secondary-bg);
    overflow: hidden;
}

/* Background Abstract Blob */
.hero-bg-blob {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(64, 84, 178, 0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    animation: blob-bounce 10s infinite alternate;
}

@keyframes blob-bounce {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-30px, 30px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-img-container {
    position: relative;
    z-index: 2;
}

.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /*border: 8px solid rgba(255, 255, 255, 0.8);*/
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

    .hero-img:hover {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }

/* Features Cards */
.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--card-hover-shadow);
        border-color: rgba(64, 84, 178, 0.1);
    }

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(64, 84, 178, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

/* How It Works Steps */
.step-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

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

.step-number {
    width: 40px;
    height: 40px;
    background: #F8F9FD;
    color: var(--text-dark);
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Pricing Section */
#pricing {
    background: var(--text-dark); /* Dark theme for pricing */
    color: white;
    border-radius: 40px;
    margin: 2rem 0;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

    #pricing::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="1" cy="1" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
        opacity: 0.3;
    }

.pricing-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 3rem;
    color: var(--text-dark);
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Custom Range Slider */
.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.03);
}

.quote-icon {
    font-size: 3rem;
    color: rgba(64, 84, 178, 0.1);
    line-height: 1;
}

/* FAQ */
.accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 1rem;
}

.accordion-button {
    background: #fff;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    font-weight: 600;
    padding: 1.2rem;
}

    .accordion-button:not(.collapsed) {
        background: #fff;
        color: var(--primary-color);
        box-shadow: 0 8px 20px rgba(64, 84, 178, 0.1);
    }

    .accordion-button:focus {
        box-shadow: 0 0 0 4px rgba(64, 84, 178, 0.1);
    }

.accordion-body {
    background: transparent;
    padding: 1.5rem;
    color: var(--text-muted);
}

/* Reseller CTA Section */
.cta-reseller-section {
    background: var(--primary-gradient);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    margin-top: 4rem; /* Separation from FAQ */
}

.cta-decoration {
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.1);
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
}

/* Logos */
.logo-strip img {
    height: 40px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s;
}

    .logo-strip img:hover {
        opacity: 1;
        filter: none;
    }

/* Footer */
footer {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 4rem;
    padding-bottom: 2rem;
    color: var(--text-muted);
}

    footer h5 {
        color: var(--text-dark);
        margin-bottom: 1.5rem;
    }

    footer a {
        color: var(--text-muted);
        text-decoration: none;
        transition: 0.2s;
    }

        footer a:hover {
            color: var(--primary-color);
        }

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 120px;
        text-align: center;
    }

    .hero-img {
        margin-top: 3rem;
        transform: none;
    }

        .hero-img:hover {
            transform: none;
        }

    #pricing {
        border-radius: 0;
        margin: 0;
    }
}
