﻿html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, th {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: top;
	text-decoration: none;
    vertical-align:baseline;
}

/*nao deixa o width ser afetado pelo padding*/
*{ 
    -moz-box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
     box-sizing: border-box; 
}

body {
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    padding-bottom:80px;
}

.transition {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

* {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Opera and Firefox */
}


:root {
    --primary-blue: #0070b4;
    --dark-blue: #092140;
    --accent-red: #e31d3b;
    --text-muted: #999;
    --border-color: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.infographic-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
}

/* Coluna da Esquerda (Imagem do Pelotão) */
.image-side {
    flex: 0 0 50%;
    height: 98vh; /* Ocupa a altura total da janela do browser */
    position: sticky;
    top: 0; /* Fixa o topo assim que chega ao limite de cima */
    z-index: 2;
    background-image: url(../images/2151500658.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-bottom-right-radius:100px;
}

    .image-side img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Coluna da Direita (Conteúdos) */
.content-side {
    flex: 1;
    padding: 60px;
    padding-top: 70px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    justify-content: initial;
}

/* Cabeçalho */
.header-section {
    margin-bottom:30px;
}

.title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.main-number {
    font-size: 150px;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 150px;
    letter-spacing: -8px;
    padding-right:10px;
}

.main-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 38px;
    text-transform: uppercase;
    letter-spacing: -1px;
    padding-top:4px;
}

    .main-title span {
        color: var(--primary-blue);
    }

.subtitle {
    font-size: 26px;
    color: var(--dark-blue);
    max-width: 500px;
    line-height: 32px;
    font-weight: 600;
}

/* Grid de Estatísticas alterado para Flexbox com larguras automáticas */
.stats-grid {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 50px;
    max-width: 700px;
    width: 100%;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center; /* Alinha o texto ao centro */
    text-align: center;
    flex: 0 0 auto; /* Força a largura a ser estritamente automática baseada no conteúdo */
    /* Configuração da tua imagem como linha divisória */
    background-image: url(../images/line.svg);
    background-repeat: repeat-y;
    background-position: right top; /* Centra a imagem verticalmente à direita */
    /* Ajusta estes paddings para dares espaço antes e depois da tua imagem */
    padding-left: 35px;
    padding-right: 40px;
    padding-bottom:10px;
}

    /* Remove a imagem divisória do primeiro elemento à esquerda (opcional, para estética) */
    .stat-box:first-child {
        padding-left: 0px;
    }

    /* Remove a imagem divisória do último elemento */
    .stat-box:last-child {
        background-image: none;
        padding-right: 0px;
    }

.stat-value {
    width: 100%;
    font-size: 98px;
    line-height: 92px;
    font-weight: 800;
    color: var(--dark-blue);
    letter-spacing: -5px;
}

.stat-label {
    width: 100%;
    font-size: 19px;
    line-height: 19px;
    color: var(--dark-blue);
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: 0px;
}

/* Secção das Etapas */
.etapas-section {
    width: 100%;
    max-width: 900px;
    padding-top: 40px;
    position:relative;
}

.etapas-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    line-height: 22px;
    letter-spacing:0px;
    font-weight: 800;
    color: var(--accent-red);
    text-transform: uppercase;
    padding-bottom:15px;
    margin-bottom: 25px;
    background-image: url(../images/line2.svg);
    background-repeat: repeat-x;
    background-position: left bottom;
    background-size: auto 5px;
}

    .etapas-title::before {
        content: '»';
        font-size: 28px;
        line-height: 18px;
        height:24px;
        text-align:center;
        width:24px;
        border: 2px solid #e00831;
        border-radius: 100px;
    }

.etapas-row {
    display:table;
    width:100%;
}

.etapas-row img{
    display: table;
    width: 100%;
}

/* Responsividade Básica */
@media (max-width: 992px) {
    .infographic-container {
        flex-direction: column;
    }

    .image-side {
        display: none; /* Oculta a imagem em ecrãs muito pequenos se necessário */
    }

    .etapas-row {
        flex-wrap: wrap;
    }

    .etapa-card {
        flex: 0 0 45%;
        margin-bottom: 20px;
    }
}





.bt {
    display: table;
    width: auto;
    margin: auto;
    padding: 20px 25px;
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    line-height: 20px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--primary-blue);
    border: none;
    border-radius: 80px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    margin-top: 50px;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.bt:hover {
    /* Faz um zoom de 4% (1.04). Se quiseres mais zoom, aumenta para 1.05 ou 1.06 */
    transform: scale(1.04); 
}

/* Opcional: Efeito de clique (reduz ligeiramente quando pressionado) */
.bt:active {
    transform: scale(0.98);
}


.stage-meta-row {
    display: table;
    width: 100%;
    position:absolute;
    top:100px;
    left:-20px;
    z-index:10;
}

/* Custom Dropbox */
.select-wrapper {
    width: 280px;
    position: relative;
    flex-shrink: 0; /* Impede a dropbox de encolher */
}

.stage-dropdown {
    width: 100%;
    padding: 20px 22px;
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--primary-blue);
    border: none;
    border-radius: 80px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

    .stage-dropdown:hover {
        /* Faz um zoom de 4% (1.04). Se quiseres mais zoom, aumenta para 1.05 ou 1.06 */
        transform: scale(1.04);
    }

.stage-dropdown span{
    font-weight: 400 !important;
}

.select-wrapper::after {
    content: '▼';
    font-size: 11px;
    color: #ffffff;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Bloco de Texto das Informações (Alinhado à Direita da Drop) */
.stage-info-sidebar {
}

.stage-date {
    font-size: 22px;
    line-height: 22px;
    letter-spacing: -1px;
    font-weight: 800;
    color: var(--dark-blue);
    text-transform: uppercase;
}

.stage-title {
    font-size: 38px;
    line-height: 38px;
    font-weight: 800;
    color: var(--dark-blue);
    text-transform: uppercase;
    margin: 25px 0 8px 20px;
    letter-spacing: -1px;
}

.stage-times {
    font-size: 20px;
    line-height: 20px;
    letter-spacing: -1px;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0px 0 10px 20px;
}

    .stage-times span {
        color: var(--dark-blue);
        margin-right: 10px;
    }

        .stage-times span:last-child {
            margin-right: 0;
        }

/* Áreas de Scroll (Mapa e Gráfico) */
.media-scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
}

    .media-scroll-container .scroll-canvas {
        width: 100%;
        /*display: flex;
        justify-content: center;*/
    }

.stage-map-img, .stage-profile-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Indicador de KM */
.stage-distance-display {
    font-size: 60px;
    line-height: 60px;
    font-weight: 800;
    color: var(--dark-blue);
    text-align: center;
    margin: -50px 0 20px 0;
    letter-spacing: -2px;
}

/* Responsividade Corrigida para Mobile */
@media (max-width: 768px) {
    .stage-meta-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .select-wrapper {
        width: 100%;
        max-width: 320px;
    }

    .stage-info-sidebar {
        align-items: center;
        width: 100%;
    }

    .stage-title {
        font-size: 34px;
        line-height: 36px;
    }

    /* Ativa o scroll horizontal seguro nas imagens */
    .media-scroll-container .scroll-canvas {
        width: 800px; /* Força largura mínima em mobile para não amassar as vossas imagens */
        justify-content: flex-start;
    }

    .stage-map-img, .stage-profile-img {
        width: 100%;
        max-width: none;
    }
}







/* Secção Geral das Camisolas */
.camisolas-section {
    width: 95%;
    margin: auto;
    padding-top: 80px;
}

.camisolas-title {
    display: flex;
    max-width: 1100px;
    margin: auto;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    line-height: 22px;
    letter-spacing: 0px;
    font-weight: 800;
    color: var(--accent-red);
    text-transform: uppercase;
    padding-bottom: 15px;
    margin-bottom: 35px;
    background-image: url(../images/line2.svg);
    background-repeat: repeat-x;
    background-position: left bottom;
    background-size: auto 5px;
}

    .camisolas-title::before {
        content: '»';
        font-size: 28px;
        line-height: 18px;
        height: 24px;
        text-align: center;
        width: 24px;
        border: 2px solid #e00831;
        border-radius: 100px;
    }

/* Container Flexbox Principal */
.camisolas-container {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
    max-width: 1540px;
    margin:auto;
}

/* Lado Esquerdo: Apenas a Imagem da Camisola Grande */
.main-jersey-left {
    flex: 0 0 360px; /* Dimensão da camisola grande da imagem */
}

.jersey-img-wrapper.large img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Lado Direito: Une o texto (em cima) e as camisolas pequenas (em baixo) */
.content-side-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Faz com que a lista horizontal possa transbordar para fora se o ecrã encolher */
    overflow: visible;
}

/* Texto da Geral Individual (Fica mesmo por cima das pequenas) */
.main-jersey-text-top {
    padding-top:20px;
    margin-bottom: 40px;
    margin-left:-30px;
    max-width: 350px; /* Limita a largura para bater certo com o aspeto da imagem */
}

    .main-jersey-text-top h3 {
        font-size: 32px;
        line-height: 32px;
        font-weight: 700;
        color: var(--dark-blue);
        margin-bottom: 6px;
        letter-spacing: -1px;
    }

    .main-jersey-text-top p {
        font-size: 21px;
        line-height: 28px;
        letter-spacing: 0px;
        color: var(--dark-blue);
        font-weight: 400;
    }

/* Contentor das 5 camisolas pequenas */
.secondary-jerseys-scroll {
    width: 100%;
    overflow: visible; /* Em desktop não queremos scroll de todo */
}

.secondary-jerseys-wrapper {
    display: flex;
    gap: 30px;
    width: 100%; /* Força as 5 colunas a distribuírem-se no espaço que sobra da direita */
    max-width: 100%;
}

.jersey-card {
    /* Alterado: permite encolher (1) e começar com base automática (0px) */
    flex: 1 1 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0; /* Truque essencial de Flexbox para permitir que o texto quebre e a coluna encolha */
}

.jersey-img-wrapper.small {
    width: 100%;
    max-width: 145px;
    height: auto;
    margin-bottom: 20px;
}

    .jersey-img-wrapper.small img {
        width: 100%;
        height: auto;
        display: block;
        margin-left: -20px;
        object-fit: contain;
    }

.jersey-text-small {
    width: 100%; /* Ocupa a largura total da coluna comprimida */
}

    .jersey-text-small h4 {
        font-size: 22px;
        line-height: 22px;
        font-weight: 700;
        color: var(--dark-blue);
        margin-bottom: 10px;
        letter-spacing: -0.5px;
    }

    .jersey-text-small p {
        font-size: 20px;
        line-height: 24px;
        color: var(--text-muted);
        font-weight: 400;
    }

/* Responsividade Adaptada para Mobile (Ativa o Scroll apenas aqui) */
@media (max-width: 992px) { /* Podes subir para 992px se vires que em tablets já fica muito apertado */

    .camisolas-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .main-jersey-left {
        flex: 0 0 auto;
        width: 100%;
        max-width: 200px;
    }

    .content-side-right {
        width: 100%;
        text-align: center;
    }

    .main-jersey-text-top {
        max-width: 100%;
        margin-bottom: 25px;
        margin-left: 0px;
    }

        .main-jersey-text-top h3 {
            font-size: 28px;
        }

    /* Ativa o scroll horizontal seguro APENAS no breakmobile */
    .secondary-jerseys-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
        width: 100%;
    }

    .secondary-jerseys-wrapper {
        width: max-content; /* Em mobile sim, expande para fora para dar scroll */
        padding-left: 20px;
    }

    .jersey-card {
        flex: 0 0 160px; /* Define um tamanho fixo para cada camisola no carrossel mobile */
        align-items: center;
        text-align: center;
    }

    .jersey-img-wrapper.small img {
        margin-left: 0px;
    }
}









/* Secção Geral das Equipas */
.equipas-section {
    width: 95%;
    margin: auto;
    padding-top: 80px;
}

.equipas-section-title {
    display: flex;
    max-width: 1100px;
    margin: auto;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    line-height: 22px;
    letter-spacing: -1px;
    font-weight: 800;
    color: var(--accent-red);
    text-transform: uppercase;
    padding-bottom: 15px;
    margin-bottom: 35px;
    background-image: url(../images/line2.svg);
    background-repeat: repeat-x;
    background-position: left bottom;
    background-size: auto 5px;
}

    .equipas-section-title::before {
        content: '»';
        font-size: 28px;
        line-height: 18px;
        height: 24px;
        text-align: center;
        width: 24px;
        border: 2px solid #e00831;
        border-radius: 100px;
    }

/* Contentor do Scroll: Só ativa se o conteúdo exceder a largura total disponível */
.equipas-scroll-container {
    width: 100%;
    margin:auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px; /* Espaço para a barra de scroll não tapar o texto */
    cursor:grab;
}

/* Linha que agrupa as camisolas todas lado a lado */
.equipas-wrapper {
    display: flex;
    gap: 55px;
    width: max-content; /* Permite expandir organicamente para fora se faltar ecrã */
    min-width: 100%;
    padding-left:20px;
}

/* Cartão Individual de cada Equipa */
.team-card {
    flex: 0 0 auto; /* Impede a compressão forçada se faltar espaço, ativando o scroll */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Envoltório da imagem para controlo de proporção */
.team-jersey-wrapper {
    width: 100%;
    max-width: 140px; /* Tamanho controlado para as camisolas ficarem uniformes */
    height: auto;
    margin-bottom: 15px;
}

    .team-jersey-wrapper img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

/* Bloco de Texto das Equipas */
.team-info h5 {
    font-size: 16px;
    line-height: 18px;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 2px;
    text-transform:uppercase;
    letter-spacing: -0.5px;
    max-width: 130px; /* Limita a quebra de texto para o nome não esticar a card em demasia */
    word-wrap: break-word;
}

.team-info span {
    font-size: 16px;
    line-height: 18px;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
}

/* Ajuste Responsivo Seguro para Mobile */
@media (max-width: 768px) {
    .equipas-scroll-container {
        padding-left: 20px; /* Margem inicial simpática para o toque do dedo no mobile */
    }

    .team-jersey-wrapper {
        max-width: 95px; /* Ligeiramente mais pequenas em ecrãs mobile */
    }

    .team-info h5 {
        font-size: 13px;
        max-width: 110px;
    }
}









/* Botão Hambúrguer (Fixo no Canto Superior Direito) */
.menu-hamburger-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9998; /* Logo abaixo da seta de voltar ou progresso */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    mix-blend-mode: difference; /* Garante visibilidade em qualquer fundo */
}

.linhas-hamburger {
    width: 22px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    /* Forçamos a cor a branco puro para o blend-mode inverter corretamente */
    .linhas-hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #FFFFFF;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

/* Painel Lateral Oculto por Padrão (Slide Out) */
.menu-painel-lateral {
    position: fixed;
    top: 0;
    right: -320px; /* Escondido à direita */
    width: 320px;
    height: 100vh;
    background-color: var(--dark-blue); /* Fundo escuro premium */
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

    /* Quando o menu ganha a classe ativa via JS, ele desliza para dentro do ecrã */
    .menu-painel-lateral.aberto {
        right: 0;
    }

/* Botão Fechar Interior */
.menu-fechar-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #888888;
    font-size: 25px;
    line-height: 25px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

    .menu-fechar-btn:hover {
        color: #FFFFFF;
    }

/* Links de Navegação (Estilo Oswald Editorial) */
.menu-titulo-auxiliar {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666666;
    display: block;
    margin-bottom: 30px;
    margin-top: 40px;
}

.menu-navegacao ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-navegacao li {
    margin-bottom: 35px;
}

.menu-navegacao a {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    line-height: 20px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: color 0.3s, transform 0.3s;
}

    .menu-navegacao span {
        font-family: 'Oswald', sans-serif;
        text-transform: uppercase;
        color: #FFFFFF;
        text-decoration: none;
        font-size: 16px;
        color: var(--cor-destaque, #888888); /* Usa a cor do tema atual para o número */
        font-weight: 300;
    }

    .menu-navegacao a:hover {
        color: var(--cor-destaque, rgba(255,255,255,0.5));
        transform: translateX(5px);
    }

/* Cortina Escura de Fundo */
.menu-overlay-fundo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

    .menu-overlay-fundo.visivel {
        opacity: 1;
        pointer-events: auto;
    }

/* Ajustes Mobile */
@media (max-width: 767px) {
    .menu-hamburger-btn {
        top: 10px;
        right: 5px;
    }

    .menu-painel-lateral {
        width: 90%;
        right: -90%;
    }
    /* Ocupa o ecrã todo em mobile */
}

.menu-item-home {
    margin-bottom: 30px; /* Dá um espaço extra para separar o "Início" dos temas numerados */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Linha divisória fina premium */
    padding-bottom: 15px;
}

.icon-home-svg {
    width: 20px;
    height: 20px;
    color: var(--cor-destaque, #fff); /* Usa o azul ou a cor ativa do teu tema */
    transition: transform 0.3s ease;
}

/* Efeito ao passar o rato na casinha */
.menu-item-home a:hover .icon-home-svg {
    transform: scale(1.1); /* Dá um leve pulso no ícone */
}







.Footer {
    display: table;
    width: 90%;
    margin: auto;
    padding-top: 30px;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0px;
    font-weight: 300;
    color: rgba(0,0,0,0.5);
    opacity: 0.9;
    text-align: center;
}

    .Footer b {
        font-weight: 500;
    }

.fleft {
    float: left;
}

.fright {
    margin: auto;
}