  :root {
            --primary: #ce0000;
            --dark: #0a0a0a;
            --grey: #f4f4f4;
            --white: #ffffff;
            --nav-bg: rgba(10, 10, 10, 0.95);
        }

       «{ box-sizing: border-box; }

        body { 
            font-family: 'Montserrat', sans-serif; 
            margin: 0; 
            background: var(--grey); 
            color: var(--dark);
            line-height: 1.6;
        }

        header { 
            background: var(--dark); 
            color: var(--white); 
            padding: 40px 20px; 
            text-align: center;
            border-bottom: 4px solid var(--primary);
        }
        header img { 
            max-height: 100px; 
            margin-bottom: 15px;
            filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
        }
        header h1 { 
            margin: 0; 
            font-size: 1.8rem; 
            font-weight: 900; 
            letter-spacing: -1px;
            text-transform: uppercase;
        }

        nav { 
            background: var(--nav-bg); 
            display: flex; 
            justify-content: center; 
            flex-wrap: wrap; 
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            backdrop-filter: blur(5px);
        }
        nav a { 
            color: var(--white); 
            padding: 18px 20px; 
            text-decoration: none; 
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s ease;
        }
        nav a:hover { 
            color: var(--primary);
            background: rgba(255,255,255,0.05);
        }
        nav a.active-link {
            border-bottom: 3px solid var(--primary);
        }

        section { 
            max-width: 1100px;
            margin: 40px auto;
            padding: 40px; 
            display: none; 
            background: var(--white); 
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }
        section.active { display: block; animation: fadeInUp 0.5s ease forwards; }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        h2 { 
            color: var(--dark); 
            font-weight: 900;
            text-transform: uppercase;
            border-left: 6px solid var(--primary);
            padding-left: 15px;
            margin-bottom: 30px;
        }

.plantel { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 25px; 
}

:root {
    --relva-clara: #388e3c;
    --relva-escura: #2e7d32;
    --linhas: rgba(255, 255, 255, 0.6);
    --fidec-red: #ce0000;
}

.container-futebol {
    max-width: 900px;
    margin: 20px auto;
    font-family: 'Segoe UI', sans-serif;
}

.campo {
    width: 100%;
    height: 600px;
    background: repeating-linear-gradient(
        to bottom,
        var(--relva-clara),
        var(--relva-clara) 50px,
        var(--relva-escura) 50px,
        var(--relva-escura) 100px
    );
    border: 4px solid white;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.linha-meio {
    position: absolute;
    top: 50%; width: 100%; height: 2px;
    background: var(--linhas);
}

.circulo-central {
    position: absolute;
    top: 50%; left: 50%;
    width: 120px; height: 120px;
    border: 2px solid var(--linhas);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.area-penalti {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    width: 250px; height: 100px;
    border: 2px solid var(--linhas);
}
.area-penalti.topo { top: 0; border-top: none; }
.area-penalti.baixo { bottom: 0; border-bottom: none; }

.jogador {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    transform: translateX(-50%); /* Garante que a bola fica no centro do 'left' */
}

.jogador span {
    white-space: nowrap; /* Nomes em uma só linha */
    text-transform: uppercase;
    font-size: 11px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px black;
    margin-top: 4px;
}

.suplente span {
    font-size: 13px;
    color: #eee;
    white-space: nowrap; /* Também para os suplentes */
}

.bola {
    width: 40px; height: 40px;
    background: var(--fidec-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.banco-contentor {
    background: #1a1a1a;
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    color: white;
}

.banco-contentor h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--fidec-red);
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
}

.grelha-suplentes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.suplente {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #262626;
    padding: 8px 12px;
    border-radius: 20px;
}
.bola-mini {
    width: 28px; height: 28px;
    background: #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #ccc;
}
        form input, form textarea, form select { 
            width: 100%; 
            padding: 12px 15px; 
            margin: 10px 0; 
            border: 2px solid #eee;
            border-radius: 6px;
            font-family: inherit;
        }
        form input:focus { border-color: var(--primary); outline: none; }
        form button { 
            background: var(--primary); 
            color: white; 
            border: none; 
            padding: 15px 30px; 
            font-weight: 900;
            text-transform: uppercase;
            cursor: pointer; 
            border-radius: 6px;
            transition: 0.3s;
        }
        form button:hover { background: #a50000; transform: scale(1.02); }

        .galeria { display: flex; flex-wrap: wrap; gap: 15px; }
        .galeria img { 
            flex: 1 1 300px;
            height: 200px;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            transition: 0.3s;
        }
        .galeria img:hover { filter: brightness(1.2); }

        footer { 
            text-align: center; 
            padding: 50px 20px; 
            background: var(--dark); 
            color: rgba(255,255,255,0.5); 
            font-size: 12px;
            margin-top: 60px;
        }

        iframe { width: 100%; height: 400px; border-radius: 12px; border: 2px solid #ddd; }

        @media (max-width: 768px) {
            nav a { padding: 12px 10px; font-size: 11px; }
            section { margin: 10px; padding: 20px; }
        }
        .filter-bar {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 8px 20px;
        border: 2px solid var(--cor-primaria);
        background: transparent;
        color: var(--cor-primaria);
        cursor: pointer;
        border-radius: 20px;
        font-weight: bold;
        transition: 0.3s;
    }

    .filter-btn.active, .filter-btn:hover {
        background: var(--cor-primaria);
        color: white;
    }

    .calendar-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 50px;
    }

    .match-card {
        background: white;
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        align-items: center;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        border-left: 5px solid var(--cor-primaria);
    }

    .match-info {
        text-align: left;
        font-size: 0.9rem;
        color: var(--texto-suave);
    }

    .match-teams {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        font-weight: bold;
        font-size: 1.1rem;
    }

    .team { display: flex; align-items: center; gap: 10px; width: 120px; }
    .team.home { justify-content: flex-end; }
    .team.away { justify-content: flex-start; }

    .score {
        background: var(--cor-secundaria);
        color: rgb(0, 0, 0);
        padding: 5px 15px;
        border-radius: 5px;
        min-width: 40px;
        text-align: center;
    }

    .match-venue {
        text-align: right;
        font-size: 0.85rem;
        color: #888;
    }

      @media (max-width: 600px) {
        .match-card {
            grid-template-columns: 1fr;
            text-align: center;
            gap: 15px;
        }
        .match-info, .match-venue { text-align: center; }
        .match-teams { flex-direction: column; }
    }

.galeria-container {
    padding: 40px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.galeria-container h2 {
    margin-bottom: 30px;
    font-family: sans-serif;
    color: #333;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px; 
    max-width: 1200px;
    margin: 0 auto;
}

.foto {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.foto:hover {
    transform: translateY(-5px);
}

.foto:hover img {
    transform: scale(1.1); 
}

#galeria {
    padding: 40px 20px;
    background: var(--white); /* Mantém o padrão do seu site */
    text-align: center;
}


.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    max-width: 1200px; 
    margin: 0 auto;
    align-items: start;
}


.foto {
    background: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.foto:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}


.foto img {
    max-width: 100%; 
    max-height: 100%; 
    width: auto; 
    height: auto; 
    
    display: block;
    transition: transform 0.5s ease;
}


.foto:hover img {
    transform: scale(1.08); 
}


@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
    }
    .foto {
        min-height: 200px;
    }
}