        :root {
            --primary-blue: #0b1a47; 
            --primary-blue-80: rgba(11, 26, 71, 0.8);
            --primary-red: #e62b1e;  
            --text-light: #ffffff;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Montserrat', sans-serif;
            scroll-behavior: smooth;
        }

        body {
            background-color: #000;
            color: var(--text-light);
            overflow-x: hidden;
        }

        /* --- BARRA SUPERIOR --- */
        .top-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 70px;
            background-color: var(--primary-blue-80);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 100;
        }

        /* Imagem do Logotipo */
        .logo-img {
            height: 40px;
            width: auto;
            max-width: 80%;
            transition: height 0.3s ease;
        }

        /* Ícone Hamburger (Mobile) */
        .mobile-menu-btn {
            display: none;
            position: absolute;
            left: 20px;
            font-size: 28px;
            color: var(--text-light);
            cursor: pointer;
            background: none;
            border: none;
            z-index: 101;
        }

        /* --- MENU LATERAL (DESKTOP E MOBILE) --- */
        .sidebar {
            position: fixed;
            top: 0;
            left: -320px;
            width: 280px;
            height: 100vh;
            background-color: var(--primary-blue-80);
            z-index: 110;
            transition: left 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding-left: 40px;
            box-shadow: 5px 0 15px rgba(0,0,0,0.5);
        }

        .sidebar.open {
            left: 0;
        }

        .sidebar ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .sidebar ul li {
            position: relative;
        }

        .sidebar ul li::before {
            content: '•';
            color: var(--primary-red);
            font-size: 4rem;
            position: absolute;
            left: -20px;
            top: -34px;
        }

        .sidebar ul li a {
            text-decoration: none;
            color: var(--text-light);
            font-size: 0.95rem;
            font-weight: 700;
            transition: color 0.3s;
        }

        .sidebar ul li a:hover {
            color: var(--primary-red);
        }

        /* Seta para fechar o menu (ativa quando aberto) */
        .close-sidebar-btn {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 24px;
            padding: 20px 15px; 
            cursor: pointer;
            z-index: 10;
            transition: color 0.3s;
        }
        
        .close-sidebar-btn:hover {
            color: var(--primary-red);
        }

        /* --- GATILHO MENU FECHADO (DESKTOP) --- */
        .menu-trigger {
            position: fixed;
            left: 0;
            top: 110px;
            transform: translateY(-50%);
            background-color: var(--primary-blue-80);
            color: var(--text-light);
            font-size: 20px;
            padding: 15px 10px;
            border-radius: 0 5px 5px 0;
            cursor: pointer;
            z-index: 90;
            transition: background 0.3s, opacity 0.3s;
        }

        .menu-trigger:hover {
            background-color: var(--primary-blue);
        }

        /* --- SEÇÃO HOME --- */
        #home {
            position: relative;
            height: 100vh;
            background: url('../img/home-background2.webp') no-repeat center center;
            background-size: cover;
        }

        /* --- BOTÃO CTA --- */
        .btn-cta {
            position: absolute;
            bottom: 40px;
            right: 40px;
            display: inline-flex;
            align-items: center;
            padding: 15px 25px;
            background-color: var(--primary-red);
            color: var(--text-light);
            font-size: 0.9rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 1px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s, transform 0.2s;
            z-index: 10;
        }

        .btn-cta:hover {
            background-color: #c42014;
            transform: scale(1.05);
        }

        .btn-cta .play-icon {
            margin-right: 10px;
            font-size: 1rem;
        }

        /* --- MODAL DE VÍDEO --- */
        .modal {
            display: none;
            position: fixed;
            z-index: 999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            position: relative;
            width: 80%;
            max-width: 900px;
            aspect-ratio: 16/9;
            background: #000;
        }

        .modal-content iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        .close-btn {
            position: absolute;
            top: -40px;
            right: 0;
            color: white;
            font-size: 30px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s;
        }
        
        .close-btn:hover {
            color: var(--primary-red);
        }
		
		/* --- ESTILOS GERAIS PARA NOVAS SEÇÕES --- */
        .section-padding {
            padding: 100px 5%;
            /* Removido o background-color fixo daqui para podermos usar imagens nas seções */
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative; /* Importante para sobreposições, se necessário no futuro */
        }

        /* --- SEÇÃO AUTÓDROMOS (BACKGROUND) --- */
        #autodromos {
            /* Imagem de fundo com um overlay azul escuro/preto transparente para não prejudicar a leitura */
            background: linear-gradient(rgba(11, 26, 71, 0.85), rgba(0, 0, 0, 0.8)), url('../img/autodromos-bg.webp') no-repeat center center;
            background-size: cover;
            /* background-attachment: fixed; /* Opcional: Descomente esta linha se quiser um efeito Parallax (a foto fica parada enquanto a página rola) */
        }

        .section-title {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-title h2 {
            font-size: 2.5rem;
            color: var(--text-light);
            text-transform: uppercase;
            font-weight: 900;
            letter-spacing: 2px;
        }

        .section-title p {
            color: var(--primary-red);
            font-size: 1rem;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 1px;
            margin-top: 5px;
        }

        /* --- GALERIA DE AUTÓDROMOS --- */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            width: 100%;
            max-width: 1200px;
        }

        .gallery-card {
            background-color: var(--primary-blue);
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 5px 15px rgba(0,0,0,0.5);
            border-bottom: 4px solid var(--primary-red); /* Detalhe vermelho da nova identidade */
        }

        .gallery-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 25px rgba(230, 43, 30, 0.3); /* Brilho vermelho no hover */
        }

        .card-img {
            width: 100%;
            height: 200px;
            overflow: hidden;
        }

        .card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .gallery-card:hover .card-img img {
            transform: scale(1.1); /* Efeito de zoom na foto */
        }

        .card-info {
            padding: 20px 15px;
            text-align: center;
        }

        .card-info h3 {
            color: var(--text-light);
            font-size: 1.1rem;
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 5px;
        }

        .card-info span {
            color: #b0b8d1;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* --- ESTILOS ESPECÍFICOS DO MODAL DE IMAGEM --- */
        .image-modal-content {
            background: transparent;
            display: flex;
            flex-direction: column;
            align-items: center;
            max-width: 90%;
            height: auto;
            aspect-ratio: auto; 
        }

        .image-modal-content img {
            max-width: 100%;
            max-height: 80vh;
            border: 2px solid var(--primary-blue);
            box-shadow: 0 0 20px rgba(0,0,0,0.8);
            border-radius: 4px;
        }
		
		/* Ajuste específico para o botão de fechar do Modal de Imagem */
        #closeImageBtn {
            position: absolute;
            top: 20px;
            right: 40px;
            font-size: 40px;
            color: #fff;
            z-index: 1000; /* Garante que fique por cima de tudo */
        }

        /* E para não ficar colado na borda no celular, adicionamos isso dentro do seu @media (max-width: 768px) */

        #modalImageCaption {
            margin-top: 15px;
            color: var(--text-light);
            font-size: 1.2rem;
            font-weight: 700;
            text-transform: uppercase;
            text-align: center;
            letter-spacing: 1px;
        }
		
		/* --- SEÇÃO PILOTO (QUEM É ANDRÉ) --- */
        #piloto {
            background-color: #060e22; /* Fundo azul bem escuro, conforme a referência */
			background: linear-gradient(rgba(11, 26, 71, 0.85), rgba(0, 0, 0, 0.8)), url('../img/piloto-bg.webp') no-repeat center center;
            background-size: cover;
            display: flex;
            justify-content: center;
        }

        .piloto-content {
            width: 100%;
            max-width: 1300px;
            margin: 0 auto;
            display: flex;
            flex-direction: column; /* Coluna no mobile */
            gap: 40px;
        }

        .piloto-image {
            width: 100%;
            display: flex;
            overflow: hidden; /* Garante que nada vaze */
            border-radius: 4px;
        }

        .piloto-image img {
            width: 100%;
            height: auto; /* Mantém a proporção nativa no mobile e evita cortes */
            display: block; /* Remove espaços em branco indesejados */
        }

        .piloto-text {
            color: var(--text-light);
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 25px;
        }

        .piloto-title {
            font-size: 1.2rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .biografia {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .biografia p {
            font-size: 0.85rem; /* Fonte menor para caber de forma elegante */
            line-height: 1.6;
            text-align: left;
        }

        .citacoes {
            display: flex;
            flex-direction: column; /* Embaixo um do outro no mobile */
            gap: 20px;
            margin-top: 15px;
        }

        .quote-block {
            position: relative;
            padding-left: 20px;
            border-left: 2px solid var(--primary-red); /* A barra vermelha lateral */
            margin: 0;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .quote-block p {
            font-style: italic;
            color: #d1d5e5;
            font-size: 0.85rem;
            line-height: 1.5;
            margin-bottom: 15px;
        }

        .quote-cite {
            display: block;
            text-align: right;
            color: var(--primary-red);
            font-weight: 700;
            font-size: 0.7rem;
            text-transform: uppercase;
        }

        /* --- RESPONSIVIDADE DESKTOP (A Mágica do Layout) --- */
        @media (min-width: 992px) {
            .piloto-content {
                flex-direction: row; /* Lado a lado */
                align-items: center; /* Alinha verticalmente ao centro para evitar esticamento e cortes */
                gap: 40px;
            }

            .piloto-image {
                flex: 0 0 45%; /* Aumentado de 32% para 45% para mais largura e exibir a imagem toda */
                justify-content: center; /* Centraliza horizontalmente se houver espaço com contain */
            }

            .piloto-image img {
                height: auto; /* Mantém a proporção nativa e evita esticamento vertical */
                width: auto; /* Permite que a largura natural funcione com contain */
                max-width: 100%; /* Impede que a imagem vaze da largura do contêiner */
                max-height: 100%; /* Impede que a imagem vaze verticalmente */
                object-fit: contain; /* Garante que a imagem inteira apareça no desktop, sem cortes */
            }

            .piloto-text {
                flex: 1; /* O texto ocupa o restante */
                padding: 20px 0 20px 20px;
            }

            .citacoes {
                flex-direction: row; /* As citações ficam lado a lado */
                gap: 30px;
            }

            .quote-block {
                flex: 1; /* Divide as duas citações em 50% / 50% */
            }
        }

        /* --- RESPONSIVIDADE --- */
        @media (max-width: 768px) {
            #home {
                background: url('../img/home-background-vertical.webp') no-repeat center center;
                background-size: cover;
            }
            .logo-img {
                height: 28px;
            }
            .menu-trigger {
                display: none;
            }
            .mobile-menu-btn {
                display: block;
            }
            .sidebar {
                padding-top: 80px;
                justify-content: flex-start;
            }
            /* O botão CTA no mobile centralizado */
            .btn-cta {
                bottom: 80px; 
                left: 0;
                right: 0;
                margin: 0 auto;
                width: max-content; /* Impede o botão de esticar 100% da tela */
                font-size: 0.8rem;
                padding: 12px 15px;
            }
			
			.section-padding { padding: 80px 5% 50px; }
            .section-title h2 { font-size: 2rem; }
			
			#closeImageBtn {
                top: 10px;
                right: 20px;
                font-size: 35px;
            }
			
			#piloto {
			background: linear-gradient(rgba(11, 26, 71, 0.85), rgba(0, 0, 0, 0.3)), url('../img/piloto-bg.webp') no-repeat center center;
            background-size: cover;
		  }

        }
		
		/* --- SEÇÃO FOTOS (MOSAICO - CORREÇÃO DEFINITIVA) --- */
        .fotos-section {
            position: relative;
            padding-top: 70px; /* Desconta o menu */
            height: 100vh;
            background-color: #000;
            overflow: hidden;
        }

        .fotos-mosaic {
            display: grid;
            /* CÁLCULO EXATO: (100% da tela - 70px do menu - 10px dos espaços) dividido por 6 linhas */
            grid-template-rows: repeat(5, calc((100vh - 80px) / 5));
            
            /* LARGURA IDÊNTICA À ALTURA = QUADRADO PERFEITO */
            grid-auto-columns: calc((100vh - 80px) / 5);
            
            grid-auto-flow: column; /* Preenche de cima pra baixo, depois avança para a direita */
            height: calc(100vh - 70px);
            gap: 2px;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .fotos-mosaic::-webkit-scrollbar {
            display: none;
        }

        .fotos-mosaic img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Garante que a foto encaixe no quadrado rígido sem distorcer */
            display: block;
            cursor: pointer;
            transition: opacity 0.3s;
        }

        .fotos-mosaic img:hover {
            opacity: 0.6;
        }

        /* --- SETAS DO CARROSSEL (DESKTOP) --- */
        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(11, 26, 71, 0.9);
            color: var(--text-light);
            border: none;
            font-size: 2rem;
            padding: 20px 15px;
            cursor: pointer;
            z-index: 10;
            transition: background 0.3s, color 0.3s;
            border-radius: 4px;
        }

        .slider-arrow:hover {
            background: var(--primary-red);
            color: #fff;
        }

        .left-arrow { left: 10px; }
        .right-arrow { right: 10px; }

        /* --- RESPONSIVIDADE FOTOS --- */
        @media (max-width: 992px) {
            .fotos-mosaic {
                /* Tablet: 4 linhas (desconta 70px menu + 6px de gap = 76px) */
                grid-template-rows: repeat(4, calc((100vh - 76px) / 4));
                grid-auto-columns: calc((100vh - 76px) / 4);
            }
        }

        @media (max-width: 768px) {
            .slider-arrow {
                display: none; /* Sem setas no mobile */
            }
            .fotos-mosaic {
                /* Mobile: 4 linhas */
                grid-template-rows: repeat(4, calc((100vh - 76px) / 4));
                grid-auto-columns: calc((100vh - 76px) / 4);
            }
        }
		
		/* --- SEÇÃO VÍDEOS --- */
		/* --- SEÇÃO VÍDEOS (COM ROLAGEM INTERNA) --- */
        #videos {
            background: linear-gradient(rgba(11, 26, 71, 0.85), rgba(0, 0, 0, 0.8)), url('../img/videos-bg.webp') no-repeat center center;
            background-size: cover;
            height: 100vh; /* Trava a altura exatamente no tamanho da tela */
            min-height: 100vh;
            max-height: 100vh;
            overflow-y: auto; /* Habilita a rolagem vertical apenas dentro desta seção */
            overflow-x: hidden;
            padding-top: 100px; /* Garante espaço abaixo da barra fixa do topo (70px) */
            padding-bottom: 40px;

            /* Estilização da barra de rolagem (Firefox) */
            scrollbar-width: thin;
            scrollbar-color: var(--primary-red) rgba(11, 26, 71, 0.5);
        }

        /* Estilização da barra de rolagem interna (Chrome, Edge, Safari) */
        #videos::-webkit-scrollbar {
            width: 8px;
        }

        #videos::-webkit-scrollbar-track {
            background: rgba(11, 26, 71, 0.5);
        }

        #videos::-webkit-scrollbar-thumb {
            background-color: var(--primary-red);
            border-radius: 4px;
        }

        #videos::-webkit-scrollbar-thumb:hover {
            background-color: #c42014;
        }

        .video-grid {
            display: grid;
            /* Grid responsivo: ajusta automaticamente quantas colunas cabem (mínimo 300px por vídeo) */
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .video-card {
            background-color: var(--primary-blue);
            border-radius: 6px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-bottom: 4px solid var(--primary-red);
            box-shadow: 0 5px 15px rgba(0,0,0,0.5);
        }

        .video-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 25px rgba(230, 43, 30, 0.25); /* Brilho vermelho suave */
        }

        .video-thumb {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9; /* Mantém a proporção exata de vídeo do YouTube */
            overflow: hidden;
            background-color: #000;
        }

        .video-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .video-card:hover .video-thumb img {
            transform: scale(1.08); /* Zoom na miniatura */
        }

        .play-overlay {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(11, 26, 71, 0.5); /* Película azul transparente */
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 3.5rem;
            color: var(--text-light);
            opacity: 0.8;
            transition: opacity 0.3s, color 0.3s, transform 0.3s;
        }

        .video-card:hover .play-overlay {
            opacity: 1;
            color: var(--primary-red);
            transform: scale(1.1); /* Ícone de play cresce um pouco */
        }

        .video-info {
            padding: 15px 20px;
            text-align: center;
            background: var(--primary-blue);
        }

        .video-info h3 {
            font-size: 1rem;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--text-light);
            letter-spacing: 0.5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis; /* Coloca "..." se o título for muito longo */
        }
		
		/* --- SEÇÃO ANDRÉ NA MÍDIA --- */
        #midia {
            /* Fundo com overlay azul escuro consistente com o resto do site */
           	background: linear-gradient(rgba(11, 26, 71, 0.85), rgba(0, 0, 0, 0.8)), url('../img/midia-bg.webp') no-repeat center center;
            background-size: cover;
        }
		
		/* --- SEÇÃO ANDRÉ NA MÍDIA (COM ROLAGEM INTERNA) --- */
		#midia {
			height: 100vh; /* Trava a altura exatamente no tamanho da tela */
			min-height: 100vh;
			max-height: 100vh;
			overflow-y: auto; /* Habilita a rolagem vertical apenas dentro desta seção */
			overflow-x: hidden;
			padding-top: 100px; /* Garante espaço abaixo da barra fixa do topo (70px) */
			padding-bottom: 40px;
			
			/* Estilização da barra de rolagem (Firefox) */
			scrollbar-width: thin;
			scrollbar-color: var(--primary-red) rgba(11, 26, 71, 0.5);
		}
		
		/* Estilização da barra de rolagem interna (Chrome, Edge, Safari) */
		#midia::-webkit-scrollbar {
			width: 8px;
		}
		
		#midia::-webkit-scrollbar-track {
			background: rgba(11, 26, 71, 0.5);
		}
		
		#midia::-webkit-scrollbar-thumb {
			background-color: var(--primary-red);
			border-radius: 4px;
		}
		
		#midia::-webkit-scrollbar-thumb:hover {
			background-color: #c42014;
		}

        .midia-grid {
            display: flex;
            flex-wrap: wrap; /* Permite que os cards pulem de linha se não couberem na tela */
            justify-content: center; /* Centraliza o bloco de matérias na tela */
            gap: 25px; /* Espaço entre os cartões */
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .midia-card {
            width: 250px;
            height: 320px; /* Aumentado para comportar a nova foto e o conteúdo */
            background-color: #ffffff;
            border-radius: 4px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: 0 5px 15px rgba(0,0,0,0.5);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-bottom: 3px solid var(--primary-red);
        }

        .midia-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(230, 43, 30, 0.25);
        }

        .midia-img {
            width: 100%;
            height: 167px; /* Nova altura exata solicitada */
            object-fit: cover; /* Garante que a imagem preencha esse espaço sem distorcer */
            display: block;
        }

        .midia-content {
            padding: 15px;
            display: flex;
            flex-direction: column;
            justify-content: space-between; /* Empurra o botão pro fundo do quadrado */
            flex-grow: 1; /* Faz o conteúdo ocupar todo o espaço restante */
        }

        .midia-title {
            font-size: 0.85rem;
            color: var(--primary-blue);
            font-weight: 900;
            line-height: 1.4;
            /* Truque mágico para limitar a 3 linhas exatas */
            display: -webkit-box;
            -webkit-line-clamp: 3; 
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .btn-saiba-mais {
            display: inline-block;
            align-self: flex-start; /* Alinha o botão totalmente à esquerda */
            background-color: var(--primary-blue);
            color: var(--text-light);
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            text-decoration: none;
            padding: 8px 15px;
            border-radius: 3px;
            transition: background 0.3s, transform 0.2s;
            margin-top: 10px;
        }

        .btn-saiba-mais:hover {
            background-color: var(--primary-red);
            transform: scale(1.05); /* Leve pulinho no botão */
        }
		
		/* --- SEÇÃO CALENDÁRIO --- */
        #calendario {
            background: linear-gradient(rgba(11, 26, 71, 0.85), rgba(0, 0, 0, 0.8)), url('../img/calendario-bg.webp') no-repeat center center;
            background-size: cover;
            /* background-attachment: fixed; Descomente para efeito parallax */
        }

        .calendario-container {
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 30px; /* Espaço entre a tabela Sprint e Endurance */
        }

        .calendario-table {
            width: 100%;
            border-collapse: collapse;
            table-layout: fixed; /* Ajuda a controlar a largura exata das colunas */
        }

        .calendario-table td {
            border: 2px solid rgba(255, 255, 255, 1); /* Contornos brancos translúcidos */
            padding: 15px 20px;
            color: var(--text-light);
            font-size: 1rem;
            font-style: italic;
            font-weight: 700;
            text-transform: uppercase;
            background-color: transparent; /* Células transparentes */
            vertical-align: middle;
        }

        /* Alinhamentos das colunas */
        .col-etapa { text-align: left; width: 30%; }
        .col-pista { text-align: left; width: 30%; }
        .col-bandeira { text-align: center; width: 15%; padding: 0 !important; }
        .col-data { text-align: right; width: 25%; }

        .flag-img {
            width: 100%;
            height: 55px;
            object-fit: cover;
            display: block;
        }

        /* --- RESPONSIVIDADE DO CALENDÁRIO --- */
        @media (max-width: 768px) {
            .calendario-table td {
                padding: 10px 5px; /* Reduz o respiro para caber na tela */
                font-size: 0.65rem; /* Fonte menor para não quebrar linhas */
                letter-spacing: -0.5px;
            }

            .col-etapa { width: 30%; }
            .col-pista { width: 30%; }
            .col-bandeira { width: 15%; }
            .col-data { width: 25%; text-align: right; }

            .flag-img {
                height: auto;
                aspect-ratio: 1 / 1; /* Transforma a bandeira em um quadrado perfeito */
                width: 100%;
                max-width: 30px; /* Limita o tamanho para não ficar gigante na célula */
                margin: 5px auto; /* Centraliza vertical e horizontalmente */
                border-radius: 2px; /* Cantinhos levemente arredondados */
            }
        }
		
		/* --- SEÇÃO PATROCINADORES --- */
        #patrocinadores {
            background: linear-gradient(rgba(11, 26, 71, 0.85), rgba(0, 0, 0, 0.8)), url('../img/patrocinadores-bg.webp') no-repeat center center;
            background-size: cover;
        }

        .sponsors-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr); /* 3 colunas no desktop */
            gap: 30px;
            width: 100%;
            max-width: 1000px; /* Limita a largura para os logos não ficarem esticados demais */
            margin: 0 auto;
        }

        .sponsor-box {
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #ffffff; /* Fundo branco para garantir a leitura dos SVGs */
            aspect-ratio: 4 / 2; /* Proporção solicitada (retângulo horizontal) */
            border-radius: 6px;
            text-decoration: none;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.5);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-bottom: 4px solid var(--primary-red); /* Detalhe da identidade visual */
        }

        .sponsor-box:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 25px rgba(230, 43, 30, 0.25); /* Brilho vermelho suave */
        }

        .sponsor-logo {
            max-width: 80%; /* Garante um respiro interno (padding visual) */
            max-height: 80%;
            object-fit: contain; /* Ajusta o SVG sem distorcer as proporções originais */
            transition: transform 0.3s ease;
        }

        .sponsor-box:hover .sponsor-logo {
            transform: scale(1.05); /* Leve zoom no logo ao passar o mouse */
        }

        /* --- RESPONSIVIDADE PATROCINADORES --- */
        @media (max-width: 992px) {
            .sponsors-grid {
                grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
                gap: 20px;
            }
        }

        @media (max-width: 768px) {
            .sponsors-grid {
                grid-template-columns: repeat(2, 1fr); /* Mantém 2 colunas no celular para não ficar gigante */
                gap: 15px;
            }
            .sponsor-box {
                padding: 10px;
            }
        }
		
		/* --- WRAPPER PARA JUNTAR CONTATO E RODAPÉ NA MESMA TELA --- */
        .contato-footer-wrapper {
            display: flex;
            flex-direction: column;
            min-height: 100vh; /* Garante que a junção dos dois ocupe a tela toda */
        }
		
		/* --- SEÇÃO CONTATO (FORMULÁRIO) --- */
        #contato {
            background: linear-gradient(rgba(11, 26, 71, 0.85), rgba(0, 0, 0, 0.9)), url('../img/contato-bg.webp') no-repeat center center;
            background-size: cover;
            
            /* A mágica acontece aqui: ele se estica para preencher o que o rodapé não usou */
            flex-grow: 1; 
            
            justify-content: center; /* Mantém o formulário centralizado no meio desse espaço */
            min-height: auto; /* Remove o 100vh fixo que tínhamos antes */
            padding-bottom: 40px; 
        }

        .contact-container {
            width: 100%;
            max-width: 600px; /* Limita a largura do formulário para não ficar esticado */
            margin: 0 auto;
        }

        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .contact-form input,
        .contact-form textarea {
            width: 100%;
            padding: 15px 20px;
            background-color: rgba(255, 255, 255, 0.05); /* Fundo sutil */
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            color: var(--text-light);
            font-size: 1rem;
            font-family: 'Montserrat', sans-serif;
            transition: border-color 0.3s, background-color 0.3s;
        }

        .contact-form input:focus,
        .contact-form textarea:focus {
            outline: none;
            background-color: rgba(255, 255, 255, 0.1);
            border-color: var(--primary-red); /* Fica vermelho ao clicar */
        }

        .contact-form textarea {
            resize: vertical;
            min-height: 120px;
        }

        .btn-submit {
            background-color: var(--primary-red);
            color: var(--text-light);
            font-size: 1.1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.3s, transform 0.2s;
            margin-top: 10px;
        }

        .btn-submit:hover {
            background-color: #c42014;
            transform: scale(1.02);
        }

        /* --- RODAPÉ --- */
        .site-footer {
            background-color: var(--primary-blue);
            padding: 50px 20px 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 40px; /* Espaçamento entre as linhas */
            border-top: 3px solid var(--primary-red); /* Linha vermelha separando o site do rodapé */
        }

        /* Linha 1: Ícones */
        .footer-icons {
            display: flex;
            gap: 25px;
            justify-content: center;
            flex-wrap: wrap; /* Adapta em telas pequenas */
        }

        .footer-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transition: background-color 0.3s, transform 0.3s;
        }

        .footer-icons a svg {
            width: 22px;
            height: 22px;
            fill: var(--text-light); /* Preenchimento branco pros SVGs */
            transition: fill 0.3s;
        }

        .footer-icons a:hover {
            background-color: var(--primary-red);
            transform: translateY(-5px); /* Efeito de flutuação no hover */
        }

        /* Linha 2: Logotipo */
        .footer-logo {
            width: 100%;
            max-width: 300px; /* Define o tamanho máximo no desktop */
            display: flex;
            justify-content: center;
        }

        .footer-logo img {
            width: 100%;
            height: auto;
            aspect-ratio: 20 / 2; /* Força a proporção 20x2 exigida */
            object-fit: contain;
            opacity: 0.8; /* Levemente translúcido para ficar elegante */
            transition: opacity 0.3s;
        }

        .footer-logo img:hover {
            opacity: 1;
        }

        /* Linha 3: Copyright */
        .footer-copyright p {
            color: rgba(255, 255, 255, 0.5); /* Branco opaco */
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 0;
        }
		
		/* Card circular do canal no final da grade de vídeos */
		.video-channel-card {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			text-decoration: none;
			color: #ffffff;
			min-height: 180px;
			padding: 15px;
			transition: transform 0.3s ease;
		}
		
		.video-channel-card:hover {
			transform: translateY(-5px);
		}
		
		.channel-avatar {
			width: 160px;
			height: 160px;
			border-radius: 50%;
			overflow: hidden;
			border: 3px solid #e6192e; /* Destaque vermelho da identidade visual */
			box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
			transition: border-color 0.3s ease, box-shadow 0.3s ease;
		}
		
		.video-channel-card:hover .channel-avatar {
			border-color: #ffffff;
			box-shadow: 0 8px 24px rgba(230, 25, 46, 0.55);
		}
		
		.channel-avatar img {
			width: 100%;
			height: 100%;
			object-fit: cover;
			display: block;
		}
		
		.channel-label {
			margin-top: 12px;
			font-size: 0.9rem;
			font-weight: 700;
			text-transform: uppercase;
			letter-spacing: 0.5px;
			text-align: center;
		}
		
		