# 🏍️ A Grande Aventura: Como um Entusiasta de Motos Transformou o Seu Conhecimento de Segurança Rodoviária

Descubra a história de Léo, um entusiasta de motos que transformou o seu conhecimento de segurança rodoviária. Uma aventura inspiradora em 6 capítulos.

---

import ArticleScript from '@/components/ArticleScript';
import ArticleStyle from '@/components/ArticleStyle';


{/* Hero Section Premium */}
<div className="article-container" style={{textAlign: 'center', padding: '40px 20px'}}>
    <div style={{display: 'inline-block', background: 'linear-gradient(135deg, #f59e0b 0%, #d97706 100%)', padding: '8px 20px', borderRadius: '20px', marginBottom: '20px'}}>
        <span style={{color: 'white', fontWeight: '700', fontSize: '0.9em'}}>📖 HISTÓRIA MOTOCICLISTA</span>
    </div>
    
    <h1 style={{fontSize: '2.5em', lineHeight: '1.2', marginBottom: '20px', background: 'linear-gradient(135deg, #ffffff 0%, #94a3b8 100%)', WebkitBackgroundClip: 'text', WebkitTextFillColor: 'transparent', backgroundClip: 'text'}}>
        A História de Léo: A Transformação de um Motociclista
    </h1>
    
    <p style={{fontSize: '1.2em', color: '#cbd5e1', maxWidth: '700px', margin: '0 auto 30px', lineHeight: '1.6'}}>
        Descubra como um jovem entusiasta transformou a sua visão de segurança rodoviária. <strong style={{color: '#f59e0b'}}>Uma aventura em 6 capítulos</strong> que mudará o seu olhar sobre a moto.
    </p>
    
    <img src="/images/articles/leo-story-hero.webp" alt="Moto em estrada sinuosa" style={{width: '100%', maxWidth: '800px', borderRadius: '20px', margin: '30px auto', display: 'block', boxShadow: '0 20px 60px rgba(245, 158, 11, 0.3)'}} />
    
    <div style={{display: 'flex', gap: '15px', justifyContent: 'center', flexWrap: 'wrap', marginTop: '30px'}}>
        <div style={{background: 'rgba(255,255,255,0.05)', padding: '15px 25px', borderRadius: '12px', border: '1px solid rgba(255,255,255,0.1)'}}>
            <div style={{fontSize: '2em', marginBottom: '5px'}}>📚</div>
            <div style={{fontSize: '0.9em', color: '#94a3b8'}}>6 capítulos</div>
        </div>
        <div style={{background: 'rgba(255,255,255,0.05)', padding: '15px 25px', borderRadius: '12px', border: '1px solid rgba(255,255,255,0.1)'}}>
            <div style={{fontSize: '2em', marginBottom: '5px'}}>⏱️</div>
            <div style={{fontSize: '0.9em', color: '#94a3b8'}}>5 min de leitura</div>
        </div>
        <div style={{background: 'rgba(255,255,255,0.05)', padding: '15px 25px', borderRadius: '12px', border: '1px solid rgba(255,255,255,0.1)'}}>
            <div style={{fontSize: '2em', marginBottom: '5px'}}>🛡️</div>
            <div style={{fontSize: '0.9em', color: '#94a3b8'}}>História real</div>
        </div>
    </div>
    
    <button id="start-story-leo" style={{background: 'linear-gradient(135deg, #f59e0b, #d97706)', color: 'white', border: 'none', padding: '18px 50px', borderRadius: '50px', fontSize: '1.3em', fontWeight: '700', cursor: 'pointer', boxShadow: '0 10px 30px rgba(245, 158, 11, 0.4)', marginTop: '40px', transition: 'all 0.3s'}}>
        📖 COMEÇAR A HISTÓRIA
    </button>
</div>

{/* Progress Bar */}
<div id="story-progress-container-leo" style={{position: 'sticky', top: '0', zIndex: '100', background: 'rgba(2, 6, 23, 0.95)', backdropFilter: 'blur(10px)', padding: '15px 20px', borderBottom: '1px solid rgba(255,255,255,0.1)', display: 'none'}}>
    <div style={{maxWidth: '800px', margin: '0 auto'}}>
        <div style={{display: 'flex', justifyContent: 'space-between', marginBottom: '8px'}}>
            <span style={{fontSize: '0.9em', color: '#94a3b8'}} id="story-progress-text-leo">Capítulo 1/6</span>
            <span style={{fontSize: '0.9em', color: '#f59e0b', fontWeight: '600'}}>📖 História de Léo</span>
        </div>
        <div style={{height: '6px', background: 'rgba(255,255,255,0.1)', borderRadius: '10px', overflow: 'hidden'}}>
            <div id="story-progress-bar-leo" style={{height: '100%', width: '16.66%', background: 'linear-gradient(90deg, #f59e0b, #d97706)', transition: 'width 0.3s ease', borderRadius: '10px'}}></div>
        </div>
    </div>
</div>

{/* Story Container */}
<div id="story-container-leo" style={{display: 'none', maxWidth: '800px', margin: '40px auto', padding: '0 20px'}}>
    <div style={{background: 'rgba(255,255,255,0.02)', border: '1px solid rgba(255,255,255,0.1)', borderRadius: '20px', padding: '40px', marginBottom: '20px'}}>
        <div style={{display: 'flex', alignItems: 'center', gap: '15px', marginBottom: '15px'}}>
            <div id="story-badge-leo" style={{background: 'linear-gradient(135deg, #f59e0b, #d97706)', minWidth: '50px', height: '50px', borderRadius: '12px', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: '1.5em', fontWeight: '800', color: 'white', flexShrink: '0'}}>1</div>
            <div id="story-category-leo" style={{textTransform: 'uppercase', fontSize: '0.85em', letterSpacing: '1.5px', color: '#f59e0b', background: 'rgba(245, 158, 11, 0.1)', padding: '6px 15px', borderRadius: '20px'}}>INTRODUÇÃO</div>
        </div>
        
        <h3 id="story-title-leo" style={{fontSize: '1.8em', margin: '25px 0', lineHeight: '1.4', color: '#e2e8f0'}}></h3>
        
        <img id="story-image-leo" src="" alt="" style={{width: '100%', borderRadius: '15px', margin: '25px 0', display: 'none'}} />
        
        <div id="story-content-leo" style={{fontSize: '1.1em', lineHeight: '1.8', color: '#cbd5e1', marginTop: '30px'}}></div>
        
        <div style={{display: 'flex', justifyContent: 'space-between', marginTop: '40px', gap: '15px', flexWrap: 'wrap'}}>
            <button id="prev-story-leo" style={{background: 'rgba(255,255,255,0.05)', color: '#cbd5e1', border: '2px solid rgba(255,255,255,0.2)', padding: '15px 30px', borderRadius: '12px', fontSize: '1.05em', fontWeight: '600', cursor: 'pointer', display: 'none'}}>← Anterior</button>
            <button id="next-story-leo" style={{background: 'linear-gradient(135deg, #f59e0b, #d97706)', color: 'white', border: 'none', padding: '15px 40px', borderRadius: '12px', fontSize: '1.1em', fontWeight: '700', cursor: 'pointer', marginLeft: 'auto'}}>Seguinte →</button>
        </div>
    </div>
</div>

{/* End Screen */}
<div id="story-end-leo" style={{display: 'none', maxWidth: '800px', margin: '60px auto', padding: '0 20px'}}>
    <div style={{background: 'linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1))', border: '2px solid rgba(245, 158, 11, 0.3)', borderRadius: '24px', padding: '50px 40px', textAlign: 'center'}}>
        <div style={{fontSize: '4em', marginBottom: '20px'}}>🏆</div>
        <h2 style={{fontSize: '2.2em', marginBottom: '15px'}}>Fim da História</h2>
        <p style={{fontSize: '1.2em', color: '#cbd5e1', marginBottom: '30px'}}>Obrigado por acompanhar a aventura de Léo! Como ele, transforme a sua abordagem à segurança moto.</p>

        <a href="/2025/01/05/testez-vos-connaissances-sur-la-securite-les-equipements-et-la-conduite-a-moto/" style={{display: 'inline-block', background: 'linear-gradient(135deg, #f59e0b, #d97706)', color: 'white', padding: '18px 40px', borderRadius: '12px', fontSize: '1.2em', fontWeight: '700', textDecoration: 'none', marginBottom: '20px'}}>
            🎯 Teste os seus conhecimentos
        </a>

        <div style={{display: 'flex', gap: '15px', justifyContent: 'center', marginTop: '30px', flexWrap: 'wrap'}}>
            <button id="restart-story-leo" style={{background: 'rgba(255,255,255,0.05)', color: 'white', border: '2px solid rgba(255,255,255,0.2)', padding: '16px 35px', borderRadius: '12px', fontSize: '1.05em', fontWeight: '600', cursor: 'pointer'}}>
                🔄 Reler
            </button>
            <a href="/dashboard" style={{background: 'rgba(255,255,255,0.05)', color: 'white', border: '2px solid rgba(255,255,255,0.2)', padding: '16px 35px', borderRadius: '12px', fontSize: '1.05em', fontWeight: '600', textDecoration: 'none', display: 'inline-block'}}>
                📊 Ver o meu perfil
            </a>
        </div>
    </div>
</div>

{/* Social Sharing */}
<div className="action-buttons-grid" style={{maxWidth: '800px', margin: '40px auto', padding: '0 20px'}}>
    <a href="#" id="share-whatsapp-leo" className="btn-share-whatsapp" style={{background: 'linear-gradient(135deg, #25D366, #128C7E)', color: 'white', padding: '20px', borderRadius: '16px', textDecoration: 'none', display: 'flex', alignItems: 'center', justifyContent: 'center', gap: '12px', fontWeight: '700', fontSize: '1.1em', transition: 'transform 0.2s'}}>
        📱 Partilhar a história
    </a>
</div>


<ArticleStyle content={`

/* Fix text overflow */
#story-end-leo,
#story-end-leo p,
h3, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-container { padding: 20px 10px; }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    p { font-size: 1em; }

    button, a, #start-story-leo {
        width: 100%;
        padding: 18px 20px;
        box-sizing: border-box;
        margin-bottom: 10px;
        display: block;
        text-align: center;
        white-space: normal;
    }
}

`} />

<ArticleScript content={`
window.initStoryLeo = function() {
    if (window.initStoryLeoDone) return;
    const startBtn = document.getElementById('start-story-leo');
    if (!startBtn) return;
    
    window.initStoryLeoDone = true;

    const chaptersLeo = [
        {
            category: 'INTRODUÇÃO',
            title: 'O Início de uma Aventura',
            image: '/images/articles/leo-story-hero.webp',
            content: 'Imagine um motociclista, jovem e apaixonado, que percorre as estradas sinuosas com a adrenalina do vento no cabelo. Ele conhece cada curva, cada lomba da estrada e cada som do seu motor. Mas, como muitos motociclistas, muitas vezes encara a segurança de ânimo leve, acreditando que a experiência é suficiente. No entanto, uma situação inesperada leva-o a questionar tudo o que pensava saber. Esta é a história de Léo, um motociclista como tantos outros, e a sua tomada de consciência sobre a importância de uma boa preparação e conhecimentos em segurança rodoviária.'
        },
        {
            category: 'CAPÍTULO 1',
            title: 'O Primeiro Incidente',
            image: '/images/articles/leo-story-wet-curve.webp',
            content: 'Léo sempre foi um motociclista confiante. Em cada saída, sentia que tinha tudo sob controlo. Mas um dia, durante um passeio com amigos, surge uma situação imprevista. Uma curva apertada, pavimento molhado e uma ligeira perda de aderência. Léo lembra-se da sensação instintiva, um momento de pânico que nunca tinha tido antes. Não acabou em queda, mas teve uma revelação: a segurança não deve ser encarada de ânimo leve. Apercebeu-se de que ainda havia muito para aprender.'
        },
        {
            category: 'CAPÍTULO 2',
            title: 'A Procura de Informação',
            image: '/images/articles/leo-story-studying.webp',
            content: 'De regresso a casa, Léo começa a documentar-se. Explora fóruns, vê vídeos de segurança em moto e fala com especialistas. Mas rapidamente se apercebe de que a quantidade de informação é enorme e não sabe por onde começar. É então que encontra um site simples e direto: 2roue.com, um site dedicado aos motociclistas, onde descobre um quiz online. Este quiz não fala apenas de regras de segurança, mas também de técnicas avançadas, escolha de equipamento e erros a evitar.'
        },
        {
            category: 'CAPÍTULO 3',
            title: 'A Tomada de Consciência',
            image: '/images/articles/leo-story-reflection.webp',
            content: 'Depois de terminar o quiz, Léo apercebe-se de quanto perigo poderia ter corrido sem certas informações que acaba de descobrir. Tinha negligenciado a importância da preparação e da revisão regular das regras de segurança. Os bons reflexos e uma condução responsável fazem a diferença entre um motociclista experiente e um que corre riscos desnecessários.'
        },
        {
            category: 'CAPÍTULO 4',
            title: 'A Evolução de Léo',
            image: '/images/articles/leo-story-safety-check.webp',
            content: 'Motivado por esta tomada de consciência, Léo começa a aplicar as novas informações que aprendeu. Durante as suas saídas, verifica sistematicamente o seu equipamento, ajusta a sua velocidade consoante as condições climatéricas e da estrada, e respeita escrupulosamente as regras de segurança. Nota imediatamente uma diferença no seu conforto e confiança a conduzir.'
        },
        {
            category: 'CAPÍTULO 5',
            title: 'A Mensagem de Léo',
            image: '/images/articles/leo-story-quiz-interface.webp',
            content: 'Léo transformou a sua abordagem à moto, e agora sabe que a segurança não se limita ao equipamento. É também uma questão de saber-fazer, conhecimentos e vigilância. Se também quer testar os seus conhecimentos, aprender dicas valiosas e preparar-se para andar em total segurança, faça o quiz disponível em 2roue.com. Como Léo, transforme a sua paixão em experiência!'
        }
    ];

    let currentChapterLeo = 0;
    
    function startStoryLeo() {
        const startBtn = document.getElementById('start-story-leo');
        const storyContainer = document.getElementById('story-container-leo');
        
        if (startBtn) startBtn.style.display = 'none';
        if (storyContainer) storyContainer.style.display = 'block';
        
        currentChapterLeo = 0;
        showChapterLeo();
        
        storyContainer.scrollIntoView({ behavior: 'smooth' });
    }
    
    function showChapterLeo() {
        const chapter = chaptersLeo[currentChapterLeo];
        const categoryEl = document.getElementById('story-category-leo');
        const titleEl = document.getElementById('story-title-leo');
        const imageEl = document.getElementById('story-image-leo');
        const contentEl = document.getElementById('story-content-leo');
        const badgeEl = document.getElementById('story-badge-leo');
        const prevBtn = document.getElementById('prev-story-leo');
        const nextBtn = document.getElementById('next-story-leo');
        const progressText = document.getElementById('story-progress-text-leo');
        const progressBar = document.getElementById('story-progress-bar-leo');
        const progressContainer = document.getElementById('story-progress-container-leo');
        
        if (categoryEl) categoryEl.textContent = chapter.category;
        if (titleEl) titleEl.textContent = chapter.title;
        if (contentEl) contentEl.textContent = chapter.content;
        if (badgeEl) badgeEl.textContent = (currentChapterLeo + 1);
        
        if (imageEl && chapter.image) {
            imageEl.src = chapter.image;
            imageEl.alt = chapter.title;
            imageEl.style.display = 'block';
        }
        
        // Navigation buttons
        if (prevBtn) {
            prevBtn.style.display = currentChapterLeo > 0 ? 'inline-block' : 'none';
            prevBtn.onclick = prevChapterLeo;
        }
        if (nextBtn) {
            nextBtn.onclick = nextChapterLeo;
            if (currentChapterLeo === chaptersLeo.length - 1) {
                nextBtn.textContent = '✅ Terminar';
                nextBtn.style.background = 'linear-gradient(135deg, #22c55e, #16a34a)';
            } else {
                nextBtn.textContent = 'Seguinte →';
                nextBtn.style.background = 'linear-gradient(135deg, #f59e0b, #d97706)';
            }
        }
        
        // Progress
        if (progressText) progressText.textContent = 'Capítulo ' + (currentChapterLeo + 1) + '/6';
        if (progressBar) progressBar.style.width = ((currentChapterLeo + 1) / 6 * 100) + '%';
        if (progressContainer) progressContainer.style.display = 'block';
    }
    
    function nextChapterLeo() {
        if (currentChapterLeo < chaptersLeo.length - 1) {
            currentChapterLeo++;
            showChapterLeo();
            const storyContainer = document.getElementById('story-container-leo');
            if (storyContainer) storyContainer.scrollIntoView({ behavior: 'smooth', block: 'start' });
        } else {
            endStoryLeo();
        }
    }
    
    function prevChapterLeo() {
        if (currentChapterLeo > 0) {
            currentChapterLeo--;
            showChapterLeo();
            const storyContainer = document.getElementById('story-container-leo');
            if (storyContainer) storyContainer.scrollIntoView({ behavior: 'smooth', block: 'start' });
        }
    }
    
    function endStoryLeo() {
        const storyContainer = document.getElementById('story-container-leo');
        const endScreen = document.getElementById('story-end-leo');
        const progressContainer = document.getElementById('story-progress-container-leo');
        
        if (storyContainer) storyContainer.style.display = 'none';
        if (progressContainer) progressContainer.style.display = 'none';
        if (endScreen) {
            endScreen.style.display = 'block';
            endScreen.scrollIntoView({ behavior: 'smooth', block: 'center' });
        }
        
        // Update share link
        const shareBtn = document.getElementById('share-whatsapp-leo');
        if (shareBtn) {
            const shareText = encodeURIComponent('Li a história inspiradora de Léo em 2roue.com! 🏍️ Descubra como ele transformou a sua visão da segurança moto.');
            shareBtn.href = 'https://wa.me/?text=' + shareText;
        }
    }
    
    if (startBtn) startBtn.onclick = startStoryLeo;
    
    const restartBtn = document.getElementById('restart-story-leo');
    if (restartBtn) {
        restartBtn.onclick = function() {
            document.getElementById('story-end-leo').style.display = 'none';
            document.getElementById('start-story-leo').style.display = 'inline-block';
            window.scrollTo({ top: 0, behavior: 'smooth' });
        };
    }
};

if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', window.initStoryLeo);
} else {
    window.initStoryLeo();
}

setTimeout(function() {
    if(!window.initStoryLeoDone && window.initStoryLeo) window.initStoryLeo();
}, 500);

window.startStoryLeo = function() {}; // Fallback
window.restartStoryLeo = function() {}; // Fallback
`} />

