/* ========================================
   MindAthletics — Design Innovativo
   Colori: Verde, Bianco, Elementi Verdi
   ======================================== */

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

:root {
    /* Verdi */
    --green-900: #064e3b;
    --green-800: #065f46;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10b981;
    --green-400: #34d399;
    --green-300: #6ee7b7;
    --green-200: #a7f3d0;
    --green-100: #d1fae5;
    --green-50:  #ecfdf5;

    /* Neutri */
    --gray-900: #0a0f0d;
    --gray-800: #1a2520;
    --gray-700: #2d3b35;
    --gray-600: #4a5f55;
    --gray-500: #6b8078;
    --gray-400: #94a8a0;
    --gray-300: #c2d1cb;
    --gray-200: #dfe8e4;
    --gray-100: #eef3f0;
    --gray-50:  #f6f9f7;
    --white:    #ffffff;

    /* Accento */
    --accent: #10b981;
    --accent-dark: #059669;
    --accent-light: #34d399;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 2px 8px rgba(10,50,30,.06);
    --shadow-md: 0 8px 24px rgba(10,50,30,.08);
    --shadow-lg: 0 16px 48px rgba(10,50,30,.1);
    --shadow-glow: 0 0 40px rgba(16,185,129,.15);

    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-w: 1200px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Animations ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--green-900);
    color: var(--white);
    font-size: .85rem;
    padding: 10px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.top-link {
    color: rgba(255,255,255,.8);
    transition: color var(--transition);
}
.top-link:hover { color: var(--green-300); }

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border-bottom: 1px solid rgba(16,185,129,.1);
    transition: box-shadow var(--transition);
}
.header.scrolled {
    box-shadow: 0 4px 20px rgba(16,185,129,.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img { height: 42px; width: auto; }
.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--green-800);
    letter-spacing: -.03em;
}

.nav-menu { display: flex; gap: 36px; }
.nav-menu a {
    font-size: .95rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}
.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2.5px;
    background: var(--green-500);
    border-radius: 10px;
    transition: width var(--transition);
}
.nav-menu a:hover { color: var(--green-700); }
.nav-menu a:hover::after { width: 100%; }

.nav-cta {
    background: var(--green-600);
    color: var(--white);
    padding: 11px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: .9rem;
    transition: all var(--transition);
    box-shadow: 0 2px 12px rgba(5,150,105,.25);
}
.nav-cta:hover {
    background: var(--green-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(5,150,105,.35);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--green-800); transition: var(--transition); display: block; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--green-600);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(5,150,105,.3);
}
.btn-primary:hover {
    background: var(--green-700);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(5,150,105,.4);
}

.btn-outline {
    background: transparent;
    color: var(--green-700);
    border-color: var(--green-500);
}
.btn-outline:hover {
    background: var(--green-600);
    color: var(--white);
    border-color: var(--green-600);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--green-700);
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-white:hover {
    background: var(--green-50);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.btn-lg { padding: 18px 44px; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
    padding: 100px 0 70px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(16,185,129,.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(52,211,153,.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 60%, rgba(110,231,183,.05) 0%, transparent 50%),
        var(--white);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16,185,129,.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52,211,153,.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -.04em;
}
.highlight {
    color: var(--green-600);
    position: relative;
}
.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 8px;
    background: var(--green-200);
    z-index: -1;
    border-radius: 4px;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 auto 44px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    margin-top: 72px;
    flex-wrap: wrap;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.hero-stat::before {
    content: '';
    position: absolute;
    top: -12px;
    width: 48px;
    height: 4px;
    background: var(--green-300);
    border-radius: 4px;
}
.hero-stat strong {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--green-700);
    line-height: 1;
    margin-top: 8px;
}
.hero-stat span {
    font-size: .9rem;
    color: var(--gray-500);
    margin-top: 6px;
    font-weight: 500;
}

/* ---------- Steps ---------- */
.steps {
    padding: 110px 0;
    background: var(--white);
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -.03em;
}
.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray-500);
    text-align: center;
    max-width: 660px;
    margin: 0 auto 72px;
    line-height: 1.7;
}

.step-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    margin-bottom: 88px;
}
.step-row:last-child { margin-bottom: 0; }
.step-row.reverse .step-visual { order: 2; }
.step-row.reverse .step-text { order: 1; }

.step-visual { position: relative; display: flex; justify-content: center; }
.step-number-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    width: 52px;
    height: 52px;
    background: var(--green-600);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(5,150,105,.3);
}
.step-illustration {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--green-200);
    transition: transform var(--transition);
}
.step-illustration:hover { transform: scale(1.03); }
.step-emoji { font-size: 5rem; }

.step-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}
.step-text p {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.85;
    margin-bottom: 20px;
}
.link-arrow {
    color: var(--green-600);
    font-weight: 700;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.link-arrow:hover { color: var(--green-700); }

/* ---------- Service Cards ---------- */
.services-cards {
    padding: 48px 0 64px;
    background: var(--green-50);
}
.cards-scroll {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.scard {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    width: 180px;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all var(--transition);
    cursor: default;
}
.scard:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border-color: var(--green-300);
}
.scard-icon { font-size: 2.5rem; margin-bottom: 14px; }
.scard span { font-weight: 700; font-size: .9rem; color: var(--gray-800); }

/* ---------- Info Banner ---------- */
.info-banner {
    padding: 36px 0;
    background: linear-gradient(90deg, var(--green-600), var(--green-500));
    text-align: center;
}
.info-banner-text {
    font-size: 1.1rem;
    color: var(--white);
}
.info-banner-text strong { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Method ---------- */
.method {
    padding: 110px 0;
    background: var(--white);
}
.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    margin-top: 56px;
}
.method-text p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: 20px;
}
.method-text strong { color: var(--gray-900); }
.method-bullets { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.method-bullet {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--gray-800);
}
.bullet-dot {
    width: 14px;
    height: 14px;
    background: var(--green-500);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(16,185,129,.4);
}

.method-visual { display: flex; justify-content: center; }
.method-card {
    background: linear-gradient(145deg, var(--green-700), var(--green-500));
    color: var(--white);
    padding: 52px 44px;
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 380px;
    box-shadow: 0 24px 64px rgba(5,150,105,.25);
    position: relative;
    overflow: hidden;
}
.method-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}
.method-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}
.method-card-icon { font-size: 4rem; margin-bottom: 24px; position: relative; z-index: 1; }
.method-card h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 16px; line-height: 1.3; position: relative; z-index: 1; }
.method-card p { font-size: 1.05rem; opacity: .9; line-height: 1.7; position: relative; z-index: 1; }

/* ---------- Why ---------- */
.why {
    padding: 110px 0;
    background: var(--green-50);
    position: relative;
    overflow: hidden;
}
.why::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16,185,129,.08), transparent 70%);
    border-radius: 50%;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
}
.why-item {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}
.why-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-300);
}
.why-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    display: block;
}
.why-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.5;
}

/* ---------- Stats Band ---------- */
.stats-band {
    padding: 56px 0;
    background: var(--green-900);
    position: relative;
    overflow: hidden;
}
.stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 50% 80% at 20% 50%, rgba(16,185,129,.15), transparent),
        radial-gradient(ellipse 40% 60% at 80% 50%, rgba(52,211,153,.1), transparent);
}
.stats-band-grid {
    display: flex;
    justify-content: center;
    gap: 96px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.stats-band-item {
    text-align: center;
    color: var(--white);
}
.stats-band-item strong {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .7;
    margin-bottom: 8px;
}
.stats-band-item .counter {
    font-size: 3.25rem;
    font-weight: 800;
}

/* ---------- Pricing ---------- */
.pricing {
    padding: 110px 0;
    background: var(--white);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}
.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition);
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.pricing-card.popular {
    border-color: var(--green-500);
    box-shadow: 0 8px 40px rgba(16,185,129,.15);
    background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 40%);
}
.popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-600);
    color: var(--white);
    padding: 6px 24px;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(5,150,105,.3);
}

.pricing-top {
    text-align: center;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--gray-200);
}
.pricing-top h3 { font-size: 1.35rem; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; }
.price-big { font-size: 3rem; font-weight: 800; color: var(--green-700); line-height: 1; }
.price-sub { font-size: .95rem; color: var(--gray-500); margin-left: 4px; }
.pricing-top p { font-size: .9rem; color: var(--gray-500); margin-top: 10px; }

.pricing-card ul { flex: 1; margin-bottom: 28px; }
.pricing-card li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: .95rem;
    color: var(--gray-600);
    position: relative;
    padding-left: 28px;
}
.pricing-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-500);
    font-weight: 800;
}
.pricing-card .btn { width: 100%; }

/* ---------- CTA ---------- */
.cta {
    padding: 88px 0;
    background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 50%, var(--green-400) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}
.cta::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}
.cta .btn { position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact {
    padding: 110px 0;
    background: var(--gray-50);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    margin-top: 56px;
}
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.ci-icon {
    width: 56px;
    height: 56px;
    background: var(--green-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 1px solid var(--green-200);
}
.contact-item h4 { font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.contact-item p { color: var(--gray-500); line-height: 1.6; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    color: var(--gray-800);
    transition: all var(--transition);
    background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(16,185,129,.1);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.footer {
    background: var(--gray-900);
    color: rgba(255,255,255,.65);
    padding: 72px 0 36px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 56px;
}
.footer-logo { height: 38px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer-col p { line-height: 1.8; font-size: .95rem; }
.footer-col h4 { color: var(--white); font-weight: 700; margin-bottom: 20px; font-size: 1rem; }
.footer-col a { display: block; margin-bottom: 12px; font-size: .95rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--green-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px; text-align: center; font-size: .85rem; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .nav-menu, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 72px;
        left: 0; right: 0;
        background: var(--white);
        padding: 32px 24px;
        gap: 24px;
        box-shadow: var(--shadow-lg);
        z-index: 99;
        border-bottom: 2px solid var(--green-200);
    }

    .step-row,
    .step-row.reverse { grid-template-columns: 1fr; gap: 40px; }
    .step-row.reverse .step-visual,
    .step-row.reverse .step-text { order: unset; }

    .method-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .stats-band-grid { gap: 48px; }
}

@media (max-width: 640px) {
    .hero { padding: 72px 0 48px; }
    .hero-stats { gap: 36px; }
    .hero-stat strong { font-size: 2.2rem; }

    .steps, .method, .why, .pricing, .contact { padding: 72px 0; }

    .step-illustration { width: 220px; height: 220px; }
    .step-emoji { font-size: 4rem; }
    .step-number-badge { width: 44px; height: 44px; font-size: 1.2rem; }

    .cards-scroll { gap: 12px; }
    .scard { width: 140px; padding: 20px 16px; }
    .scard-icon { font-size: 2rem; }
    .scard span { font-size: .82rem; }

    .why-grid { grid-template-columns: 1fr; gap: 16px; }
    .why-item { padding: 28px 20px; }

    .pricing-grid { grid-template-columns: 1fr; }

    .method-card { padding: 36px 28px; }
    .method-card h3 { font-size: 1.4rem; }

    .cta { padding: 64px 0; }

    .btn-lg { padding: 16px 36px; font-size: 1rem; }

    .top-bar-inner { gap: 16px; font-size: .8rem; }
}

@media (max-width: 480px) {
    .logo-text { font-size: 1.15rem; }
    .logo-img { height: 34px; }
    .hero-title { font-size: 1.7rem; }
    .section-title { font-size: 1.5rem; }
    .step-text h3 { font-size: 1.3rem; }
    .stats-band-item .counter { font-size: 2.5rem; }
}
