@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
body {
    font-family: "Lato", sans-serif;
    background-color: #ffffff;
    color: #212226;
    line-height: 1.7;
}

/* HEADER */
header {
    background-color: #212226;
    border-bottom: 1px solid #2c2d32;
}

.nav-link {
    color: #CFF250;
    font-weight: 600;
}

.nav-link:hover {
    color: #ffffff;
}

/* SEÇÕES */
.section-light {
    background-color: #ffffff;
    padding: 60px 0;
}

.section-green {
    background-color: #0b6b3a;
    padding: 90px 0;
}

/* TEXTO EM FUNDO VERDE */
.section-green h1,
.section-green h2,
.section-green h3,
.section-green p {
    color: #ffffff;
}

/* ============================
   TÍTULOS
============================ */
h1 {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* PARÁGRAFOS */
p {
    font-size: 1.05rem;
    max-width: 760px;
    margin-bottom: 18px;
}

/* ============================
   BOTÕES
============================ */
.btn-primary {
    background-color: #006437;
    border-color: #006437;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 6px;
}

.btn-primary:hover {
    background-color: #004f2b;
    border-color: #004f2b;
}

/* BOTÃO EM FUNDO VERDE */
.section-green .btn-primary {
    background-color: #ffffff;
    color: #006437;
    border-color: #ffffff;
}

.section-green .btn-primary:hover {
    background-color: #CFF250;
    color: #212226;
}

/* ============================
   GALERIA
============================ */
.gallery-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* GALERIA EM FUNDO VERDE */
.section-green .gallery-item {
    background-color: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
}

/* Ajuste de texto dentro dos cards */
.section-green .gallery-item p {
    color: #f1f1f1;
}

/* ============================
   IMAGENS E VÍDEOS
============================ */
img.img-fluid {
    width: 90%;
    border-radius: 10px;
}

.video {
    width: 100%;
    border-radius: 10px;
}

/* ============================
   IDENTIDADE DE PAÍSES (CORRIGIDA)
============================ */

/* Brasil – Amarelo oficial da seleção */
.brasileiro {
    color: #FFDF00;
    font-weight: 800;
}

/* Portugal – Vermelho oficial da seleção */
.portugal {
    color: #C8102E;
    font-weight: 800;
}

/* GARANTE QUE FUNCIONE EM FUNDO VERDE */
.section-green .brasileiro {
    color: #FFDF00;
}

.section-green .portugal {
    color: #FF4C4C;
}

/* ============================
   CENTRALIZAÇÃO DE TEXTOS
============================ */
section h2,
section p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

section p {
    max-width: 820px;
}

/* ============================
   FOOTER
============================ */
footer {
    background-color: #212226;
    color: #ffffff;
    text-align: center;
}

footer a {
    color: #CFF250;
}

footer a:hover {
    color: #ffffff;
}

footer .container {
    text-align: center;
}

footer p {
    width: 100%;
    margin: 0 auto;
}

/* Ícones */
footer .mt-3 {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================
   BOTÃO TOPO
============================ */
.btn-topo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #006437;
    color: #ffffff;
    border-radius: 50%;
    padding: 10px 14px;
    font-size: 22px;
    border: none;
    cursor: pointer;
}

/* ============================
   RESPONSIVO
============================ */
@media (max-width: 768px) {
    h1, h2, h3, p {
        text-align: center;
    }
}

.gallery-item {
    margin: 0.25cm;
}

/* ===== AJUSTE DE VÍDEOS – EQUILIBRADO ===== */

/* Cards de vídeo mais compactos, mas confortáveis */
.section-green .gallery-item,
.section-light .gallery-item {
    padding: 20px;
}

/* Vídeos com tamanho visual ideal */
.video {
    width: 100%;
    max-height: 330px; /* tamanho ideal */
    object-fit: contain; /* não corta o vídeo */
    border-radius: 10px;
    background-color: #000; /* evita áreas “estranhas” */
}

/* Títulos mais proporcionais */
.gallery-item h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

/* Texto legível sem inflar o card */
.gallery-item p {
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.45;
}

/* Ajuste fino para mobile */
@media (max-width: 768px) {
    .video {
        max-height: 240px;
    }
}

/* ===== ALINHAMENTO PERFEITO DOS VÍDEOS ===== */

/* Transforma o card em coluna flexível */
.gallery-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Área fixa para títulos + descrição */
.gallery-item h3,
.gallery-item p {
    flex-shrink: 0;
}

/* Cria um bloco de texto com altura padrão */
.gallery-item-text {
    min-height: 140px; /* ajuste fino aqui */
}

/* Vídeo sempre alinhado */
.gallery-item video {
    margin-top: auto;
}