/* MOBILE FUNNEL CSS - LAYOUT PROFESSIONALE CON GRADIENTI */
/* Ottimizzato per conversione ToFu -> MoFu -> BoFu */

:root {
    /* Colori Brand */
    --primary: #01aeaa;
    --primary-light: #8fd7d3;
    --primary-lighter: #ddf3f1;
    --primary-dark: #01afad;
    --white: #ffffff;
    --dark: #1a2332;
    --gray: #666666;
    --light-gray: #f8f9fa;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    
    /* Gradienti */
    --gradient-primary: linear-gradient(135deg, #01aeaa 0%, #01afad 100%);
    --gradient-light: linear-gradient(135deg, #ddf3f1 0%, #ffffff 100%);
    --gradient-dark: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    --gradient-success: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    --gradient-hero: linear-gradient(135deg, rgba(1,174,170,0.1) 0%, rgba(221,243,241,0.3) 50%, rgba(255,255,255,0.9) 100%);
    
    /* Ombre moderne */
    --shadow-sm: 0 2px 8px rgba(1,174,170,0.08);
    --shadow-md: 0 4px 20px rgba(1,174,170,0.15);
    --shadow-lg: 0 8px 30px rgba(1,174,170,0.2);
    --shadow-xl: 0 12px 50px rgba(1,174,170,0.25);
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* RESET E BASE MOBILE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

/* HEADER MOBILE OTTIMIZZATO */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgb(210 237 236);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(1, 174, 170, 0.1);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-mobile h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.specialty {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

.phone-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.phone-btn:hover, .phone-btn:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* TOFU SECTION - HERO */
.tofu-section {
    min-height: 100vh;
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero-gradient-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -20%;
    width: 140%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(1,174,170,0.08) 0%, transparent 70%);
    transform: rotate(-15deg);
}

/* Pain Point Card */
.pain-point-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(231, 76, 60, 0.1);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.pain-headline {
    font-size: 22px;
    font-weight: 700;
    color: var(--danger);
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.2;
}

.pain-description {
    text-align: center;
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 15px;
}

.pain-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pain-icon {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

/* Solution Hero */
.solution-hero {
    text-align: center;
}

.noxi-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
}

.badge-text {
    font-size: 20px;
    font-weight: 800;
    display: block;
    letter-spacing: 2px;
}

.badge-subtitle {
    font-size: 12px;
    opacity: 0.9;
    display: block;
    margin-top: 2px;
}

.hero-title {
    margin-bottom: 20px;
    line-height: 1.1;
}

.title-highlight {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    text-shadow: 2px 2px 4px rgba(1,174,170,0.2);
}

.title-main {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark);
    display: block;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--gray);
    margin: 0 auto 30px;
    max-width: 280px;
    line-height: 1.5;
}

/* Comparison Cards */
.comparison-cards {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    margin: 30px 0;
    align-items: center;
}

.comparison-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
}

.comparison-card.traditional {
    border: 2px solid rgba(231, 76, 60, 0.2);
}

.comparison-card.noxi {
    border: 2px solid var(--primary);
    background: var(--gradient-light);
}

.card-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.7;
}

.hours-display {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.comparison-card.traditional .hours-display {
    color: var(--danger);
}

.comparison-card.noxi .hours-display {
    color: var(--primary);
}

.card-issues, .card-benefits {
    font-size: 11px;
    line-height: 1.3;
}

.vs-divider {
    background: var(--gradient-primary);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    justify-self: center;
}

/* Hero CTA Mobile */
.hero-cta-mobile {
    margin-top: 30px;
}

.cta-primary-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 16px 32px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.cta-primary-mobile:hover, .cta-primary-mobile:active {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.trust-indicator {
    font-size: 14px;
    color: var(--success);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* MOFU SECTION - BENEFITS */
.mofu-section {
    position: relative;
    padding: 60px 0;
    background: var(--white);
}

.section-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--primary-lighter) 0%, transparent 100%);
    opacity: 0.3;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--gray);
    font-size: 15px;
    max-width: 280px;
    margin: 0 auto;
}

/* Benefits Stack */
.benefits-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-card-mobile {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-lighter);
    transition: all 0.3s ease;
    position: relative;
}

.benefit-card-mobile.featured {
    background: var(--gradient-light);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.benefit-card-mobile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.benefit-header {
    display: flex;
    align-items: center;
    justify-content: unset;
    margin-bottom: 12px;
}

.benefit-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.benefit-icon-modern {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.exclusive-badge {
    background: var(--gradient-success);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.benefit-content p {
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 14px;
}

.benefit-stats, .benefit-proof, .doctor-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stat, .proof-item {
    background: rgba(1, 174, 170, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.university-badge {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
}

.study-size {
    display: block;
    font-size: 10px;
    opacity: 0.8;
    margin-top: 2px;
}

.mofu-cta {
    text-align: center;
    margin-top: 40px;
}

.cta-secondary-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.cta-secondary-mobile:hover, .cta-secondary-mobile:active {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* ANIMAZIONI */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-scale {
    animation: scaleIn 0.6s ease-out forwards;
}

/* RESPONSIVE ENHANCEMENTS */
@media (max-width: 350px) {
    .container {
        padding: 0 12px;
    }
    
    .title-highlight {
        font-size: 28px;
    }
    
    .title-main {
        font-size: 24px;
    }
    
    .comparison-cards {
        gap: 8px;
    }
    
    .vs-divider {
        width: 25px;
        height: 25px;
        font-size: 9px;
    }
}

/* PERFORMANCE OPTIMIZATIONS */
.tofu-section,
.mofu-section {
    contain: layout style paint;
    will-change: transform;
}

.benefit-card-mobile,
.comparison-card,
.cta-primary-mobile,
.cta-secondary-mobile {
    will-change: transform, box-shadow;
}

/* EVIDENZE SCIENTIFICHE SECTION */
.evidence-section {
    padding: 60px 0;
    background: var(--light-gray);
    position: relative;
}

.university-study-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-lighter);
}

.study-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.university-logo {
    font-size: 36px;
    background: var(--gradient-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.study-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.study-subtitle {
    font-size: 14px;
    color: var(--gray);
}

.study-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.result-stat {
    text-align: center;
    padding: 15px 10px;
    background: var(--gradient-light);
    border-radius: var(--radius-md);
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
}

.study-conclusion {
    background: rgba(1, 174, 170, 0.05);
    padding: 15px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.study-conclusion p {
    font-style: italic;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.study-conclusion cite {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
}

/* CASI PRIMA/DOPO MOBILE */
.cases-mobile {
    margin-bottom: 30px;
}

.cases-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 25px;
}

.cases-carousel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.case-slide {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-lighter);
}

.before-after-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.case-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.transform-arrow {
    font-size: 24px;
    color: var(--primary);
    font-weight: bold;
}

.case-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-duration {
    background: var(--gradient-success);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
}

.case-type {
    color: var(--gray);
    font-size: 13px;
}

.evidence-cta {
    text-align: center;
}

/* TESTIMONIALS MOBILE */
.testimonials-mobile {
    padding: 60px 0;
    background: var(--white);
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.trust-stat {
    text-align: center;
}

.trust-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.trust-label {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

.testimonials-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}

.testimonial-card {
    background: var(--white);
    border: 2px solid var(--primary-lighter);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.testimonial-card.featured {
    background: var(--gradient-light);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.testimonial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.patient-avatar {
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.patient-info {
    flex: 1;
}

.patient-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 16px;
}

.patient-age {
    font-size: 13px;
    color: var(--gray);
}

.rating {
    font-size: 16px;
}

.testimonial-content p {
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.treatment-badge {
    background: var(--gradient-success);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

/* DOCTOR CARD COMPATTO */
.about-doctor-compact {
    margin: 40px 0;
}

.doctor-card {
    background: var(--gradient-light);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-lg);
}

.doctor-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.doctor-avatar {
    font-size: 40px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doctor-details h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.doctor-specialty {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.doctor-credentials {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.credential {
    font-size: 12px;
    color: var(--gray);
}

.doctor-quote {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.doctor-quote p {
    font-style: italic;
    color: var(--dark);
    font-size: 14px;
    line-height: 1.5;
}

.testimonials-cta {
    text-align: center;
}

.cta-primary-mobile.conversion {
    background: var(--gradient-success);
    box-shadow: var(--shadow-xl);
}

.urgency-text {
    color: var(--warning);
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
}

/* PROCESSO SECTION */
.process-section {
    padding: 60px 0;
    background: var(--primary-lighter);
}

.process-steps-mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-lighter);
}

.step-circle {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature {
    font-size: 13px;
    color: var(--success);
    font-weight: 500;
}

.step-divider {
    text-align: center;
    font-size: 32px;
    color: var(--primary);
    margin: 10px 0;
}

/* OFFER CARD */
.process-cta {
    text-align: center;
}

.offer-card {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 30px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 300px;
    margin: 0 auto;
}

.offer-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.offer-header p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.offer-price {
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    font-size: 16px;
    opacity: 0.7;
    margin-right: 10px;
}

.new-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
}

.offer-validity {
    font-size: 12px;
    opacity: 0.8;
    font-style: italic;
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
        --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
        --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    }
}