/* ============================================
   MILOCOACH.IT — LANDING PAGE STYLES
   Palette: Viola / Indigo / Slate
   Mobile-first, responsive, animato
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input { font-family: inherit; }

/* --- NAVBAR --- */
.mc-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226,232,240,0.6);
    transition: all 0.3s ease;
}
.mc-nav.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.mc-nav-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 14px 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.mc-nav-brand {
    display: flex; align-items: center; gap: 10px;
}
.mc-nav-logo {
    width: 36px; height: 36px; border-radius: 10px;
    box-shadow: 0 2px 8px rgba(124,58,237,0.15);
}
.mc-nav-title {
    font-size: 18px; font-weight: 900; letter-spacing: -0.02em;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mc-nav-cta {
    padding: 10px 22px; border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white; font-weight: 800; font-size: 13px;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(124,58,237,0.25);
}
.mc-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.35); }
.mc-nav-cta:active { transform: scale(0.97); }

/* --- HERO --- */
.mc-hero {
    position: relative;
    min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 120px 24px 60px;
    background: linear-gradient(160deg, #1e1145 0%, #2d1b69 25%, #312e81 50%, #1e3a5f 100%);
    overflow: hidden;
    text-align: center;
    will-change: transform;
}
.mc-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(139,92,246,0.3) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(79,70,229,0.2) 0%, transparent 50%);
}
.mc-hero-blob-1 {
    position: absolute; top: -80px; right: -60px;
    width: 300px; height: 300px;
    background: rgba(167,139,250,0.15);
    border-radius: 50%; filter: blur(60px);
    animation: mcFloat 8s ease-in-out infinite;
}
.mc-hero-blob-2 {
    position: absolute; bottom: -50px; left: -40px;
    width: 250px; height: 250px;
    background: rgba(99,102,241,0.12);
    border-radius: 50%; filter: blur(50px);
    animation: mcFloat 10s ease-in-out infinite reverse;
}
.mc-hero-content { position: relative; z-index: 2; max-width: 700px; }
.mc-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 18px; border-radius: 100px;
    color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 700;
    margin-bottom: 28px;
    animation: mcFadeUp 0.8s ease-out both;
}
.mc-hero-badge img { width: 22px; height: 22px; border-radius: 6px; }
.mc-hero h1 {
    font-size: clamp(28px, 6vw, 52px);
    font-weight: 900; color: white;
    line-height: 1.15; letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: mcFadeUp 0.8s 0.15s ease-out both;
}
.mc-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mc-hero-sub {
    font-size: clamp(15px, 2.5vw, 19px);
    color: rgba(255,255,255,0.7); font-weight: 500;
    max-width: 520px; margin: 0 auto 40px;
    line-height: 1.6;
    animation: mcFadeUp 0.8s 0.3s ease-out both;
}

/* --- SEARCH BOX (Hero) --- */
.mc-search-box {
    width: 100%; max-width: 540px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px; padding: 8px;
    display: flex; align-items: center; gap: 8px;
    animation: mcFadeUp 0.8s 0.45s ease-out both;
    transition: all 0.3s ease;
}
.mc-search-box:focus-within {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
    box-shadow: 0 8px 40px rgba(124,58,237,0.2);
}
.mc-search-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); font-size: 22px; flex-shrink: 0;
}
.mc-search-input {
    flex: 1; background: none; border: none; outline: none;
    color: white; font-size: 16px; font-weight: 600;
    padding: 12px 0;
}
.mc-search-input::placeholder { color: rgba(255,255,255,0.4); font-weight: 500; }
.mc-search-btn {
    padding: 14px 28px; border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white; font-weight: 800; font-size: 15px;
    transition: all 0.2s ease; flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(109,40,217,0.4);
}
.mc-search-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(109,40,217,0.5); }
.mc-search-btn:active { transform: scale(0.97); }

.mc-hero-hint {
    color: rgba(255,255,255,0.4); font-size: 13px; font-weight: 600;
    margin-top: 16px;
    animation: mcFadeUp 0.8s 0.6s ease-out both;
}

/* --- SECTION COMMONS --- */
.mc-section {
    padding: 80px 24px;
    max-width: 1200px; margin: 0 auto;
}
.mc-section-tag {
    display: inline-block;
    font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: #7c3aed;
    background: rgba(124,58,237,0.08);
    padding: 6px 16px; border-radius: 100px;
    margin-bottom: 16px;
}
.mc-section-title {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 900; color: #0f172a;
    line-height: 1.2; letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.mc-section-desc {
    font-size: 16px; color: #64748b; font-weight: 500;
    max-width: 600px; line-height: 1.7;
}

/* --- COME FUNZIONA (3 steps) --- */
.mc-steps {
    display: grid; grid-template-columns: 1fr;
    gap: 24px; margin-top: 48px;
}
.mc-step {
    background: white; border-radius: 24px;
    padding: 32px 28px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.mc-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    border-color: rgba(124,58,237,0.2);
}
.mc-step-num {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 900; color: #6d28d9;
    margin-bottom: 20px;
}
.mc-step h3 {
    font-size: 19px; font-weight: 800; color: #1e293b;
    margin-bottom: 8px;
}
.mc-step p {
    font-size: 15px; color: #64748b; font-weight: 500;
    line-height: 1.6;
}

/* --- RESULTS SECTION --- */
.mc-results-section {
    padding: 60px 24px 80px;
    background: #f1f5f9;
    min-height: 200px;
}
.mc-results-inner {
    max-width: 1200px; margin: 0 auto;
}
.mc-results-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    margin-bottom: 32px;
}
.mc-results-count {
    font-size: 15px; font-weight: 700; color: #64748b;
}
.mc-results-count strong { color: #1e293b; }

/* Radius info badge */
.mc-radius-info {
    display: inline-flex; align-items: center; gap: 8px;
    background: #f5f3ff; border: 1px solid #ddd6fe;
    padding: 8px 16px; border-radius: 12px;
    font-size: 13px; font-weight: 700; color: #6d28d9;
    margin-bottom: 16px;
}

/* Filter chips */
.mc-filters {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 24px;
}
.mc-filter-chip {
    padding: 8px 16px; border-radius: 100px;
    background: white; border: 1.5px solid #e2e8f0;
    font-size: 13px; font-weight: 700; color: #64748b;
    transition: all 0.2s ease;
}
.mc-filter-chip:hover { border-color: #a78bfa; color: #7c3aed; }
.mc-filter-chip.active {
    background: #7c3aed; border-color: #7c3aed;
    color: white;
}

/* Result cards grid */
.mc-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* --- EDUCATOR CARD --- */
.mc-card {
    background: white; border-radius: 24px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.mc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: rgba(124,58,237,0.25);
}
.mc-card-body { padding: 24px; flex: 1; }
.mc-card-top {
    display: flex; align-items: flex-start; gap: 16px;
    margin-bottom: 16px;
}
.mc-card-photo {
    width: 64px; height: 64px; border-radius: 18px;
    object-fit: cover; flex-shrink: 0;
    border: 3px solid #ede9fe;
    background: #ede9fe;
}
.mc-card-photo-placeholder {
    width: 64px; height: 64px; border-radius: 18px;
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 28px; color: #7c3aed;
}
.mc-card-info { flex: 1; min-width: 0; }
.mc-card-name {
    font-size: 18px; font-weight: 900; color: #1e293b;
    line-height: 1.2; margin-bottom: 4px;
}
.mc-card-location {
    font-size: 13px; color: #94a3b8; font-weight: 600;
    display: flex; align-items: center; gap: 4px;
}
.mc-card-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    border: 1px solid #6ee7b7;
    padding: 4px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 800; color: #047857;
    margin-top: 6px;
}
.mc-card-specs {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 16px;
}
.mc-card-spec {
    padding: 5px 12px; border-radius: 100px;
    background: #f5f3ff; border: 1px solid #ede9fe;
    font-size: 12px; font-weight: 700; color: #6d28d9;
}
.mc-card-bio {
    font-size: 14px; color: #64748b; font-weight: 500;
    line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 16px;
}
.mc-card-distance {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f0f9ff; border: 1px solid #bae6fd;
    padding: 6px 12px; border-radius: 10px;
    font-size: 13px; font-weight: 700; color: #0369a1;
}
.mc-card-actions {
    display: flex; gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}
.mc-card-action {
    flex: 1; padding: 12px;
    border-radius: 14px; font-weight: 800;
    font-size: 14px; text-align: center;
    transition: all 0.2s ease;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.mc-card-action:active { transform: scale(0.97); }
.mc-card-action-primary {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    box-shadow: 0 4px 15px rgba(109,40,217,0.25);
}
.mc-card-action-secondary {
    background: #f1f5f9; color: #475569;
}
.mc-card-action-whatsapp {
    background: #25d366; color: white;
    box-shadow: 0 4px 15px rgba(37,211,102,0.25);
}

/* --- EMPTY STATE --- */
.mc-empty {
    text-align: center; padding: 60px 24px;
}
.mc-empty-icon {
    font-size: 64px; margin-bottom: 20px;
    opacity: 0.4;
}
.mc-empty h3 {
    font-size: 22px; font-weight: 800; color: #334155;
    margin-bottom: 8px;
}
.mc-empty p {
    font-size: 15px; color: #94a3b8; font-weight: 500;
    max-width: 400px; margin: 0 auto;
}

/* --- LOADING STATE --- */
.mc-loading {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 60px 24px;
}
.mc-loading-spinner {
    width: 48px; height: 48px;
    border: 4px solid #ede9fe;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: mcSpin 0.8s linear infinite;
    margin-bottom: 16px;
}
.mc-loading p {
    font-size: 15px; font-weight: 700; color: #64748b;
}

/* --- SEZIONE PER EDUCATORI --- */
.mc-edu-section {
    background: linear-gradient(160deg, #1e1145 0%, #312e81 50%, #1e3a5f 100%);
    padding: 80px 24px;
    position: relative; overflow: hidden;
}
.mc-edu-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 30%, rgba(167,139,250,0.2) 0%, transparent 50%);
}
.mc-edu-inner {
    max-width: 800px; margin: 0 auto;
    position: relative; z-index: 2;
    text-align: center;
}
.mc-edu-section .mc-section-tag {
    color: #a78bfa;
    background: rgba(167,139,250,0.15);
}
.mc-edu-section .mc-section-title {
    color: white;
}
.mc-edu-section .mc-section-desc {
    color: rgba(255,255,255,0.7);
    margin: 0 auto 40px;
}
.mc-edu-features {
    display: grid; grid-template-columns: 1fr;
    gap: 16px; text-align: left;
    margin-bottom: 48px;
}
.mc-edu-feature {
    display: flex; align-items: flex-start; gap: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px; padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.mc-edu-feature:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(4px);
}
.mc-edu-feature-icon {
    width: 44px; height: 44px;
    background: rgba(167,139,250,0.2);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.mc-edu-feature h4 {
    font-size: 16px; font-weight: 800; color: white;
    margin-bottom: 4px;
}
.mc-edu-feature p {
    font-size: 14px; color: rgba(255,255,255,0.6);
    font-weight: 500; line-height: 1.5;
}
.mc-edu-cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 18px 40px; border-radius: 18px;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: white; font-weight: 900; font-size: 17px;
    box-shadow: 0 8px 30px rgba(124,58,237,0.4);
    transition: all 0.2s ease;
}
.mc-edu-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124,58,237,0.5); }
.mc-edu-cta:active { transform: scale(0.97); }

/* --- FOOTER --- */
.mc-footer {
    background: #0f172a;
    padding: 48px 24px 32px;
    text-align: center;
}
.mc-footer-brand {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 16px;
}
.mc-footer-brand img { width: 28px; height: 28px; border-radius: 8px; }
.mc-footer-brand span { font-size: 15px; font-weight: 800; color: #94a3b8; }
.mc-footer-brand strong { color: #a78bfa; }
.mc-footer-links {
    display: flex; align-items: center; justify-content: center;
    gap: 24px; margin-bottom: 24px;
    flex-wrap: wrap;
}
.mc-footer-links a {
    font-size: 13px; color: #64748b; font-weight: 600;
    transition: color 0.2s ease;
}
.mc-footer-links a:hover { color: #a78bfa; }
.mc-footer-copy {
    font-size: 12px; color: #475569; font-weight: 500;
}

/* --- PROFILE MODAL --- */
.mc-profile-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: flex; align-items: flex-end; justify-content: center;
    animation: mcFadeIn 0.25s ease-out;
}
.mc-profile-sheet {
    width: 100%; max-width: 600px;
    max-height: 92vh;
    background: white; border-radius: 28px 28px 0 0;
    overflow-y: auto;
    animation: mcSlideUp 0.35s ease-out;
}
.mc-profile-close {
    position: sticky; top: 0; z-index: 10;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
}
.mc-profile-close-btn {
    width: 36px; height: 36px;
    background: #f1f5f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #64748b;
    transition: all 0.2s ease;
}
.mc-profile-close-btn:hover { background: #e2e8f0; }
.mc-profile-header {
    padding: 24px; text-align: center;
    background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
}
.mc-profile-photo {
    width: 96px; height: 96px;
    border-radius: 24px; object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid white;
    box-shadow: 0 8px 30px rgba(124,58,237,0.15);
}
.mc-profile-body { padding: 0 24px 32px; }
.mc-profile-section-title {
    font-size: 14px; font-weight: 800; color: #7c3aed;
    text-transform: uppercase; letter-spacing: 0.1em;
    margin: 24px 0 12px;
}
.mc-profile-bio {
    font-size: 15px; color: #475569; font-weight: 500;
    line-height: 1.7; margin-bottom: 20px;
}
.mc-profile-gallery {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; margin-bottom: 20px;
}
.mc-profile-gallery img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: 12px;
}
.mc-profile-contacts {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 20px;
}
.mc-profile-contact-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px; border-radius: 16px;
    font-weight: 800; font-size: 15px;
    transition: all 0.2s ease;
}
.mc-profile-contact-btn:active { transform: scale(0.97); }

/* --- GOOGLE PLACES AUTOCOMPLETE --- */
.pac-container {
    z-index: 9999 !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    font-family: 'Inter', sans-serif !important;
    margin-top: 8px !important;
    overflow: hidden !important;
}
.pac-item {
    padding: 14px 18px !important;
    font-size: 14px !important;
    border-top: 1px solid #f1f5f9 !important;
    cursor: pointer !important;
}
.pac-item:hover { background: #f8fafc !important; }
.pac-item-query {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}
.pac-icon { display: none !important; }

/* --- ANIMATIONS --- */
@keyframes mcFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes mcStaggerIn {
    0% { opacity: 0; transform: scale(0.6) translateY(10px); }
    60% { transform: scale(1.1) translateY(-2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes mcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes mcSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes mcFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}
@keyframes mcBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}
@keyframes mcSpin {
    to { transform: rotate(360deg); }
}
@keyframes mcPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Scroll reveal — visible by default, animated on scroll */
.mc-reveal {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.mc-reveal.mc-hidden {
    opacity: 0; transform: translateY(30px);
}
.mc-reveal.mc-animate {
    opacity: 1; transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (min-width: 640px) {
    .mc-steps { grid-template-columns: repeat(3, 1fr); }
    .mc-results-grid { grid-template-columns: repeat(2, 1fr); }
    .mc-edu-features { grid-template-columns: repeat(2, 1fr); }
    .mc-search-box { padding: 10px; }
}
@media (min-width: 960px) {
    .mc-results-grid { grid-template-columns: repeat(3, 1fr); }
    .mc-section { padding: 100px 40px; }
    .mc-profile-overlay { align-items: center; }
    .mc-profile-sheet {
        border-radius: 28px;
        max-height: 85vh;
    }
}

/* Screen too small adjustments */
@media (max-width: 420px) {
    .mc-search-box { flex-direction: column; padding: 12px; }
    .mc-search-btn { width: 100%; }
    .mc-search-icon { display: none; }
    .mc-card-actions { flex-direction: column; }
}
