/* /Components/Pages/Home.razor.rz.scp.css */
/* ============================================================
   AFFINIX · Home page
   Design coerente con app.css (variabili --primary, --secondary...)
   ============================================================ */

/* ---------- HERO ---------- */
.home-hero[b-tgh3ugoa38] {
    position: relative;
    padding: 4rem 1.5rem 5rem;
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 100%);
}

.home-hero__bg[b-tgh3ugoa38] {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.blob[b-tgh3ugoa38] {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.blob--1[b-tgh3ugoa38] {
    width: 320px;
    height: 320px;
    background: var(--primary, #6366f1);
    top: -80px;
    left: -60px;
}

.blob--2[b-tgh3ugoa38] {
    width: 260px;
    height: 260px;
    background: var(--secondary, #ec4899);
    bottom: -70px;
    right: -40px;
    opacity: 0.4;
}

.blob--3[b-tgh3ugoa38] {
    width: 200px;
    height: 200px;
    background: #a5b4fc;
    top: 40%;
    right: 20%;
    opacity: 0.35;
}

.home-hero__content[b-tgh3ugoa38] {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.home-badge[b-tgh3ugoa38] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-dark, #4f46e5);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.home-badge i[b-tgh3ugoa38] {
    color: var(--success, #10b981);
}

.home-hero__title[b-tgh3ugoa38] {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--gray-900, #111827);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.home-hl[b-tgh3ugoa38] {
    background: linear-gradient(135deg, var(--primary, #6366f1), var(--secondary, #ec4899));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero__subtitle[b-tgh3ugoa38] {
    font-size: 1.125rem;
    color: var(--gray-700, #374151);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

.home-hero__cta[b-tgh3ugoa38] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.btn-primary-xl[b-tgh3ugoa38],
.btn-ghost-xl[b-tgh3ugoa38] {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.75rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary-xl[b-tgh3ugoa38] {
    background: linear-gradient(135deg, var(--primary, #6366f1), var(--primary-dark, #4f46e5));
    color: #fff;
    box-shadow: 0 10px 25px -8px rgba(99, 102, 241, 0.55);
}

.btn-primary-xl:hover[b-tgh3ugoa38] {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(99, 102, 241, 0.65);
}

.btn-ghost-xl[b-tgh3ugoa38] {
    background: rgba(255, 255, 255, 0.85);
    color: var(--gray-800, #1f2937);
    border-color: var(--gray-200, #e5e7eb);
}

.btn-ghost-xl:hover[b-tgh3ugoa38] {
    background: #fff;
    border-color: var(--primary-light, #818cf8);
    color: var(--primary-dark, #4f46e5);
}

.home-hero__points[b-tgh3ugoa38] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.95rem;
    color: var(--gray-700, #374151);
}

.home-hero__points li[b-tgh3ugoa38] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.home-hero__points i[b-tgh3ugoa38] {
    color: var(--success, #10b981);
    font-size: 1.1rem;
}

/* ---------- SECTIONS ---------- */
.home-section[b-tgh3ugoa38] {
    padding: 3.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home-section--alt[b-tgh3ugoa38] {
    background: #fff;
    border-radius: 24px;
    margin: 0 auto 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.home-section__head[b-tgh3ugoa38] {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.home-section__head h2[b-tgh3ugoa38] {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--gray-900, #111827);
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
}

.home-section__head p[b-tgh3ugoa38] {
    color: var(--gray-600, #4b5563);
    font-size: 1.05rem;
}

/* ---------- GRID + CARDS ---------- */
.home-grid[b-tgh3ugoa38] {
    display: grid;
    gap: 1.25rem;
}

.home-grid--4[b-tgh3ugoa38] {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.home-grid--3[b-tgh3ugoa38] {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.home-card[b-tgh3ugoa38] {
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    transition: all 0.25s ease;
}

.home-card:hover[b-tgh3ugoa38] {
    transform: translateY(-4px);
    border-color: var(--primary-light, #818cf8);
    box-shadow: 0 12px 28px -12px rgba(99, 102, 241, 0.25);
}

.home-card h3[b-tgh3ugoa38] {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900, #111827);
    margin: 1rem 0 0.5rem;
}

.home-card p[b-tgh3ugoa38] {
    color: var(--gray-600, #4b5563);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.home-card__icon[b-tgh3ugoa38] {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.home-card__icon--primary[b-tgh3ugoa38] {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.home-card__icon--success[b-tgh3ugoa38] {
    background: linear-gradient(135deg, #10b981, #059669);
}

.home-card__icon--warning[b-tgh3ugoa38] {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.home-card__icon--pink[b-tgh3ugoa38] {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.home-card--soft[b-tgh3ugoa38] {
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    text-align: center;
}

.trust-icon[b-tgh3ugoa38] {
    font-size: 2rem;
    color: var(--primary, #6366f1);
    display: block;
    margin-bottom: 0.75rem;
}

/* ---------- STEPS ---------- */
.home-steps[b-tgh3ugoa38] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.home-step[b-tgh3ugoa38] {
    position: relative;
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 18px;
    padding: 2rem 1.5rem 1.5rem;
}

.home-step__num[b-tgh3ugoa38] {
    position: absolute;
    top: -18px;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #6366f1), var(--secondary, #ec4899));
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px -4px rgba(99, 102, 241, 0.5);
}

.home-step h3[b-tgh3ugoa38] {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900, #111827);
    margin: 0.5rem 0 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-step h3 i[b-tgh3ugoa38] {
    color: var(--primary, #6366f1);
}

.home-step p[b-tgh3ugoa38] {
    color: var(--gray-600, #4b5563);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ---------- MINDFUL ---------- */
.home-mindful[b-tgh3ugoa38] {
    padding: 3rem 1.5rem;
}

.home-mindful__inner[b-tgh3ugoa38] {
    max-width: 960px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1f2937 0%, #4f46e5 100%);
    color: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 20px 40px -20px rgba(79, 70, 229, 0.6);
}

.home-mindful__icon[b-tgh3ugoa38] {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fca5f0;
}

.home-mindful h2[b-tgh3ugoa38] {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.home-mindful p[b-tgh3ugoa38] {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* ---------- FINAL CTA ---------- */
.home-final[b-tgh3ugoa38] {
    text-align: center;
    padding: 4rem 1.5rem 5rem;
    max-width: 720px;
    margin: 0 auto;
}

.home-final h2[b-tgh3ugoa38] {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    font-weight: 800;
    color: var(--gray-900, #111827);
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
}

.home-final p[b-tgh3ugoa38] {
    color: var(--gray-600, #4b5563);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* ---------- RESPONSIVE ---------- */

/* ---------- STATS / CONTATORE LIVE ---------- */
.home-stats[b-tgh3ugoa38] {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.home-stats__inner[b-tgh3ugoa38] {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border-radius: 24px;
    padding: 2.25rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    box-shadow: 0 20px 40px -20px rgba(99, 102, 241, 0.5);
    color: #fff;
}

.home-stat[b-tgh3ugoa38] {
    text-align: center;
    padding: 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.home-stat:last-child[b-tgh3ugoa38] {
    border-right: none;
}

.home-stat__value[b-tgh3ugoa38] {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.home-stat__pulse[b-tgh3ugoa38] {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-dot-b-tgh3ugoa38 1.6s infinite;
}

@keyframes pulse-dot-b-tgh3ugoa38 {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.home-stat__label[b-tgh3ugoa38] {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ---------- TESTIMONIALS ---------- */
.home-testimonial[b-tgh3ugoa38] {
    position: relative;
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 18px;
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.25s ease;
}

.home-testimonial:hover[b-tgh3ugoa38] {
    transform: translateY(-4px);
    border-color: var(--primary-light, #818cf8);
    box-shadow: 0 12px 28px -12px rgba(99, 102, 241, 0.25);
}

.home-testimonial__quote[b-tgh3ugoa38] {
    font-size: 2.5rem;
    color: var(--primary-light, #818cf8);
    line-height: 1;
    opacity: 0.6;
}

.home-testimonial p[b-tgh3ugoa38] {
    color: var(--gray-700, #374151);
    font-size: 0.98rem;
    line-height: 1.65;
    font-style: italic;
    margin: 0;
    flex-grow: 1;
}

.home-testimonial footer[b-tgh3ugoa38] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200, #e5e7eb);
}

.home-testimonial__avatar[b-tgh3ugoa38] {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #6366f1), var(--secondary, #ec4899));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
}

.home-testimonial footer strong[b-tgh3ugoa38] {
    display: block;
    color: var(--gray-900, #111827);
    font-size: 0.95rem;
}

.home-testimonial footer span[b-tgh3ugoa38] {
    color: var(--gray-600, #4b5563);
    font-size: 0.85rem;
}

/* ---------- FAQ ---------- */
.home-faq[b-tgh3ugoa38] {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-faq__item[b-tgh3ugoa38] {
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.home-faq__item[open][b-tgh3ugoa38] {
    border-color: var(--primary-light, #818cf8);
    box-shadow: 0 8px 20px -12px rgba(99, 102, 241, 0.3);
}

.home-faq__item summary[b-tgh3ugoa38] {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
    color: var(--gray-900, #111827);
    font-size: 1rem;
    user-select: none;
}

.home-faq__item summary[b-tgh3ugoa38]::-webkit-details-marker {
    display: none;
}

.home-faq__item summary i[b-tgh3ugoa38] {
    color: var(--primary, #6366f1);
    font-size: 1.15rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.home-faq__item[open] summary i[b-tgh3ugoa38] {
    transform: rotate(180deg);
}

.home-faq__item p[b-tgh3ugoa38] {
    padding: 0 1.25rem 1.25rem;
    color: var(--gray-600, #4b5563);
    line-height: 1.65;
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
    .home-hero[b-tgh3ugoa38] {
        padding: 3rem 1rem 3.5rem;
        border-radius: 18px;
    }

    .home-mindful__inner[b-tgh3ugoa38] {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .home-hero__points[b-tgh3ugoa38] {
        flex-direction: column;
        gap: 0.6rem;
    }

    .home-stat[b-tgh3ugoa38] {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 1rem;
    }

    .home-stat:last-child[b-tgh3ugoa38] {
        border-bottom: none;
    }
}
