/* ============================================================
   PALETA — as proporções vêm do emblema do clube:
   79% preto · 11% branco · 7% vermelho · 1% dourado
   Ver CLAUDE.md. Regra: se o vermelho ocupa mais de um décimo
   do que se vê, é de mais.
   ============================================================ */
:root {
    --preto:      #0a0a0a;
    --preto-2:    #121212;
    --preto-3:    #1a1a1a;
    --branco:     #ffffff;
    --cinza-1:    #a3a3a3;
    --cinza-2:    #878787;
    --cinza-3:    #6b6b6b;
    /* Contraste sobre o fundo (#0a0a0a): cinza-1 7,8:1 · cinza-2 5,5:1 ·
       cinza-3 3,7:1. O mínimo para texto é 4,5:1; para texto grande, 3:1.
       Até 20/10/2026 o cinza-2 dava 3,7 e o cinza-3 dava 1,8, e estavam em
       31 regras de texto com 10 a 13px. Os sócios deste clube não são todos
       novos: se isto baixar outra vez, é por engano. */
    --linha:      rgba(255,255,255,0.09);
    --linha-2:    rgba(255,255,255,0.16);
    --vermelho:   #fe3c00;
    --dourado:    #df9000;
    --max:        1120px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--preto);
    color: var(--branco);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografia de secção ---------- */
.eyebrow {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cinza-2);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--vermelho);
    flex-shrink: 0;
}

h2.title {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 32px;
}

section { padding: 72px 0; }
.rule { height: 1px; background: var(--linha); }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,10,10,0.88);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--linha);
}
.header-inner {
    max-width: var(--max); margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span {
    font-family: 'Archivo', sans-serif;
    font-weight: 800; font-size: 14px;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
    font-size: 13px; font-weight: 600; color: var(--cinza-1);
    letter-spacing: 0.02em; transition: color .15s;
}
.nav a:hover { color: var(--branco); }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Archivo', sans-serif;
    font-size: 12px; font-weight: 800;
    letter-spacing: 0.09em; text-transform: uppercase;
    padding: 11px 20px; border-radius: 2px;
    transition: transform .15s, background .15s, color .15s;
    white-space: nowrap;
}
/* O único elemento permanentemente vermelho do site */
.btn-primary { background: var(--vermelho); color: var(--branco); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.12); }
.btn-primary:active { transform: translateY(0); filter: brightness(0.94); }
.btn:focus-visible { outline: 2px solid var(--branco); outline-offset: 3px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn-ghost { border: 1px solid var(--linha-2); color: var(--branco); }
.btn-ghost:hover { border-color: var(--branco); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex; align-items: center;
    padding: 80px 0 64px;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: url('campo.jpg') center/cover no-repeat;
    filter: grayscale(100%) contrast(112%) brightness(0.42);
    z-index: 0;
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.75) 55%, var(--preto) 100%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-season {
    font-family: 'Archivo', sans-serif;
    display: inline-block;
    font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
    border: 1px solid var(--linha-2); padding: 6px 12px; border-radius: 2px;
    margin-bottom: 22px; color: var(--branco);
}
.hero h1 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(42px, 9vw, 92px);
    font-weight: 900; line-height: 0.95; letter-spacing: -0.035em;
    text-transform: uppercase; margin-bottom: 20px;
}
.hero p { color: var(--cinza-1); font-size: 16px; max-width: 460px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Próximo jogo ---------- */

.team.away { flex-direction: row-reverse; text-align: right; }

.fixtures { display: grid; gap: 8px; }

/* resultados */

.badge.v { background: rgba(255,255,255,0.14); color: var(--branco); }
.badge.e { background: rgba(255,255,255,0.06); color: var(--cinza-1); }
.badge.d { background: rgba(255,255,255,0.03); color: var(--cinza-2); }

.season-stat .n { font-family: 'Archivo', sans-serif; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.season-stat .l { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cinza-2); }

/* ---------- Agenda (fila horizontal) ---------- */
.agenda-scroll { position: relative; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
                 scroll-snap-type: x mandatory; padding-bottom: 10px; margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
.agenda-scroll::-webkit-scrollbar { height: 3px; }
.agenda-scroll::-webkit-scrollbar-track { background: var(--linha); }
.agenda-scroll::-webkit-scrollbar-thumb { background: var(--cinza-3); }
.agenda { display: flex; gap: 10px; min-width: min-content; }
.game { scroll-snap-align: center; flex: 0 0 216px; background: var(--preto-2);
        border: 1px solid var(--linha); border-radius: 3px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.game.next { background: var(--preto-3); border-color: var(--vermelho); }
.game-badge { font-family: 'Archivo', sans-serif; font-size: 9px; font-weight: 800; letter-spacing: 0.16em;
              text-transform: uppercase; color: var(--vermelho); height: 12px; }
.game-when { }
.game-day { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cinza-2); }
.game-date { font-family: 'Archivo', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.game-line { height: 1px; background: var(--linha); }
.game-side { display: flex; align-items: center; gap: 10px; }
.game-side img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.game-side .nm { font-size: 13px; font-weight: 600; flex: 1; line-height: 1.25; }
.game-side .sc { font-family: 'Archivo', sans-serif; font-size: 17px; font-weight: 900; }
.game-side.lost .nm, .game-side.lost .sc { color: var(--cinza-2); }
.game-foot { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cinza-3); }
.agenda-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 12px;
               font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cinza-2); }
.agenda-link:hover { color: var(--vermelho); }

/* ---------- Plantel ---------- */
.squad-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: start; }
@media (max-width: 1000px) { .squad-groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .squad-groups { grid-template-columns: 1fr; } }
.squad-group h3 { font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.16em;
                  text-transform: uppercase; color: var(--cinza-2); padding-bottom: 11px;
                  border-bottom: 1px solid var(--linha); margin-bottom: 4px; }
.squad-group ul { list-style: none; }
.squad-group li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linha); }
.squad-group .num { font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 800;
                    color: var(--cinza-3); min-width: 24px; font-variant-numeric: tabular-nums; }
.squad-group .who { font-size: 13.5px; flex: 1; line-height: 1.35; }
.squad-group .age { font-size: 12px; color: var(--cinza-3); font-variant-numeric: tabular-nums; }
.squad-group h3 .count { float: right; color: var(--cinza-3); }
.staff-row { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--linha); }
.staff-row div .r { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cinza-2); margin-bottom: 4px; }
.staff-row div .n { font-family: 'Archivo', sans-serif; font-size: 17px; font-weight: 800; }

/* ---------- Classificação ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.standings { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.standings th {
    font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--cinza-2); text-align: center; padding: 0 8px 12px; white-space: nowrap;
}
table.standings th:nth-child(2) { text-align: left; }
table.standings td { padding: 11px 8px; text-align: center; border-top: 1px solid var(--linha); color: var(--cinza-1); }
table.standings td:nth-child(2) { text-align: left; color: var(--branco); }
table.standings td.pos { color: var(--cinza-2); font-variant-numeric: tabular-nums; width: 34px; }
table.standings td.pts { color: var(--branco); font-weight: 700; }
table.standings .club { display: flex; align-items: center; gap: 10px; }
table.standings .club img { width: 22px; height: 22px; object-fit: contain; }
table.standings tr.is-us td { background: rgba(254,60,0,0.07); color: var(--branco); }
table.standings tr.is-us td.pos { color: var(--vermelho); font-weight: 800; }
table.standings tr.is-us td:nth-child(2) { font-weight: 800; }

.section-lead { color: var(--cinza-1); font-size: 16px; max-width: 640px; line-height: 1.72; margin-bottom: 32px; }
.section-lead strong { color: var(--branco); font-weight: 600; }

/* ---------- Faixa do Trail ---------- */
.trail {
    background: var(--preto-2);
    border: 1px solid var(--linha);
    border-radius: 3px;
    padding: 38px;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center;
}
.trail h3 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(26px, 4vw, 38px); font-weight: 900;
    text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; margin-bottom: 12px;
}
.trail .lead { color: var(--cinza-1); margin-bottom: 22px; }
.trail-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--linha); border: 1px solid var(--linha); border-radius: 3px; overflow: hidden; }
.trail-fact { background: var(--preto-3); padding: 16px; }
.trail-fact dt { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cinza-2); margin-bottom: 5px; }
.trail-fact dd { font-family: 'Archivo', sans-serif; font-size: 19px; font-weight: 800; }
.trail-deadline { margin-top: 16px; font-size: 12px; color: var(--cinza-2); }
.trail-deadline strong { color: var(--vermelho); }

/* ---------- Galeria ---------- */
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 44px 0 16px; }
.gallery-head h4 { font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cinza-2); }
.gallery-head p { font-size: 12px; color: var(--cinza-3); }
.gallery-credit { margin-top: 14px; font-size: 11px; color: var(--cinza-3); letter-spacing: 0.02em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.shot { display: block; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--preto-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.shot:hover img { transform: scale(1.05); }
.shot::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07); border-radius: 2px; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
            background: rgba(8,8,8,0.97); padding: 28px; }
.lightbox:target { display: flex; }
.lightbox img { position: relative; z-index: 1; max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 2px; pointer-events: none; }
/* o fundo inteiro fecha a foto */
.lb-backdrop { position: absolute; inset: 0; z-index: 0; cursor: zoom-out; }
.lb-close { position: absolute; z-index: 2; top: 18px; right: 22px; font-size: 30px; line-height: 1; color: var(--cinza-1); padding: 6px 12px; }
.lb-close:hover { color: var(--vermelho); }
.lb-cap { position: absolute; z-index: 2; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--cinza-2); padding: 0 24px; }

/* ---------- Sócios ---------- */
.socios { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.price-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.price {
    background: var(--preto-2); border: 1px solid var(--linha); border-radius: 3px;
    padding: 20px 24px; flex: 1; min-width: 140px;
}
.price .amount { font-family: 'Archivo', sans-serif; font-size: 34px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.price .amount span { font-size: 14px; font-weight: 700; color: var(--cinza-2); }
.price .who { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cinza-2); margin-top: 8px; }
.benefits { list-style: none; display: grid; gap: 1px; background: var(--linha); border: 1px solid var(--linha); border-radius: 3px; overflow: hidden; }
.benefits li { background: var(--preto-2); padding: 16px 18px; }
.benefits b { display: block; font-size: 14px; margin-bottom: 3px; }
.benefits span { font-size: 13px; color: var(--cinza-2); }
.quota-note { margin-top: 18px; font-size: 13px; color: var(--cinza-2); }
.quota-note a { color: var(--cinza-1); border-bottom: 1px solid var(--cinza-3); }

/* ---------- Escalões ---------- */
.squads { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.squads h3 {
    font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--cinza-2);
    padding-bottom: 12px; border-bottom: 1px solid var(--linha); margin-bottom: 4px;
}
.squads ul { list-style: none; }
.squads li a {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid var(--linha); transition: padding-left .15s;
}
.squads li a:hover { padding-left: 7px; }
.squad-name { font-weight: 600; font-size: 15px; }
.squad-age { color: var(--cinza-2); font-size: 13px; }
.squad-link { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cinza-3); }
.squads li a:hover .squad-link { color: var(--vermelho); }

/* ---------- Info do clube ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--linha); border: 1px solid var(--linha); border-radius: 3px; overflow: hidden; }
.info-cell { background: var(--preto-2); padding: 18px 20px; }
.info-cell dt { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cinza-2); margin-bottom: 6px; }
.info-cell dd { font-size: 14px; }
.info-cell dd a:hover { color: var(--vermelho); }

/* ---------- Redes ---------- */

/* ---------- Redes (faixa compacta) ---------- */
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--linha);
         border: 1px solid var(--linha); border-radius: 3px; overflow: hidden; }
.link-card { background: var(--preto-2); padding: 22px; display: flex; align-items: center; gap: 15px; transition: background .15s; }
.link-card:hover { background: var(--preto-3); }
.link-card svg { width: 22px; height: 22px; color: var(--cinza-2); flex-shrink: 0; transition: color .15s; }
.link-card:hover svg { color: var(--vermelho); }
.link-card b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.link-card span { font-size: 12px; color: var(--cinza-2); line-height: 1.4; }
@media (max-width: 760px) { .links { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fg { display: flex; flex-direction: column; gap: 7px; }
.fg.full { grid-column: 1 / -1; }
.fg label { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cinza-2); }
.fg input, .fg textarea {
    background: var(--preto-2); border: 1px solid var(--linha); border-radius: 3px;
    padding: 13px 15px; color: var(--branco); font-family: inherit; font-size: 15px;
    transition: border-color .15s;
}
/* O outline por omissão é removido, por isso tem de ser substituído: sem isto,
   quem navega por teclado não vê onde está. A mudança de cor da moldura não
   chega -- há quem não distinga a diferença. */
.fg input:focus, .fg textarea:focus { outline: none; border-color: var(--vermelho); }
.fg input:focus-visible, .fg textarea:focus-visible {
    outline: 2px solid var(--vermelho); outline-offset: 2px;
}
.fg textarea { min-height: 128px; resize: vertical; }

/* ---------- Mapas ---------- */
.maps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.map-label { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cinza-2); margin-bottom: 10px; }
.map-frame { border: 1px solid var(--linha); border-radius: 3px; overflow: hidden; height: 260px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--linha); padding: 48px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand b { font-family: 'Archivo', sans-serif; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; display: block; }
.footer-brand span { font-size: 12px; color: var(--cinza-2); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--linha); border-radius: 3px; color: var(--cinza-1); transition: all .15s;
}
.footer-social a:hover { color: var(--branco); border-color: var(--linha-2); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12px; color: var(--cinza-2); padding-top: 24px; border-top: 1px solid var(--linha); }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
    section { padding: 56px 0; }
    .nav { display: none; }
    .trail, .socios, .squads, .social-grid, .maps { grid-template-columns: 1fr; }
    .trail { padding: 26px; gap: 26px; }

    .form-grid { grid-template-columns: 1fr; }

}
@media (max-width: 560px) {

    .team.away { flex-direction: column; text-align: center; }
    .hero { min-height: 68vh; }
}

/* ============================================================
   Páginas interiores (clube.html e outras)
   ============================================================ */
.page-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--linha); }
.page-hero h1 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(34px, 6vw, 60px); font-weight: 900;
    letter-spacing: -0.03em; line-height: 1; text-transform: uppercase;
}

.prose { max-width: 680px; }
.prose p { color: var(--cinza-1); font-size: 16px; line-height: 1.78; margin-bottom: 20px; }
.prose p strong { color: var(--branco); font-weight: 600; }
.prose h3 { font-family: 'Archivo', sans-serif; font-size: 20px; font-weight: 800;
            letter-spacing: -0.01em; margin: 36px 0 14px; }

/* marcador do que falta escrever — não deve sobreviver à publicação final */
.timeline { list-style: none; border-left: 1px solid var(--linha); padding-left: 26px; margin: 8px 0 8px 4px; }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 7px; width: 9px; height: 9px;
                       border-radius: 50%; background: var(--preto); border: 2px solid var(--cinza-3); }
.timeline li.mark::before { border-color: var(--vermelho); background: var(--vermelho); }
.timeline .ano { font-family: 'Archivo', sans-serif; font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.timeline .o-que { font-size: 14px; color: var(--cinza-1); line-height: 1.6; }

.video-wrap { position: relative; padding-top: 56.25%; border: 1px solid var(--linha);
              border-radius: 3px; overflow: hidden; background: var(--preto-2); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Zonas da classificação ---------- */
/* Um só conjunto de classes para todas as provas. As cores são as do ZeroZero
   e o significado muda de competição para competição -- na Divisão de Honra
   zz-c1 é o campeão, nos Sub-18 é o apuramento de campeão -- e por isso o
   texto da legenda é lido de lá pelo script, em vez de estar escrito aqui.
   Decisão da direção a 19/10/2026: mostrar as zonas como o Sofascore mostra.
   Ver docs/CONTENT.md. */
table.standings td.pos { border-left: 3px solid transparent; padding-left: 9px; }
table.standings tr.zz-c1 td.pos { border-left-color: #92c949; }  /* verde escuro */
table.standings tr.zz-c2 td.pos { border-left-color: #b1eb84; }  /* verde claro  */
table.standings tr.zz-c3 td.pos { border-left-color: #6eaadc; }  /* azul         */
table.standings tr.zz-c4 td.pos { border-left-color: #ffbf41; }  /* laranja      */
table.standings tr.zz-c5 td.pos { border-left-color: #f67370; }  /* vermelho     */
table.standings tr.zz-c6 td.pos { border-left-color: #ff3c64; }  /* carmim       */

.legenda-zonas {
    display: flex; flex-wrap: wrap; gap: 8px 20px;
    margin-top: 16px; font-size: 12px; color: var(--cinza-1);
}
.legenda-zonas span { display: inline-flex; align-items: center; gap: 8px; }
.legenda-zonas i {
    width: 3px; height: 13px; border-radius: 2px; flex-shrink: 0; font-style: normal;
}

/* ---------- Patrocinadores ---------- */
/* Quadros escuros, logótipos a cinzento e clareados, a cores ao passar o rato.
   A parede fica calma e o que se aponta acende.

   O clarear não é enfeite: medidos os 22, três ficavam com luminância abaixo
   de 70 em fundo preto -- Zembe 43, José Jorge Santos 41, Auto Aval 67 -- e
   outros quatro entre 70 e 95. O brightness(1.7) resolve isso em repouso.
   Ao passar o rato volta-se à cor verdadeira e esses voltariam a sumir-se:
   por isso os sete escuros levam a classe .escuro, que lhes acende um fundo
   claro só nesse momento. Nenhum logótipo é alterado. */
.patros {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 1px; background: var(--linha); border: 1px solid var(--linha);
    border-radius: 4px; overflow: hidden; margin-top: 26px;
}
.patro {
    flex: 0 0 auto; width: 174px; min-height: 116px; background: transparent;
    padding: 18px 16px; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.patro:hover { background: var(--preto-2); }
/* Com um só logótipo, o contentor ajusta-se a ele: senão sobra fundo à volta. */
.patros.uma { width: fit-content; }
.patro.escuro:hover { background: #fff; }
.patro img {
    max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain;
    filter: grayscale(1) brightness(1.7) contrast(0.85); opacity: 0.62;
    transition: filter .18s, opacity .18s;
}
.patro:hover img { filter: none; opacity: 1; }
/* Verticais e quadrados: a 52px de altura o texto deles fica ilegível. */
.patro.alto img { max-height: 80px; }

@media (max-width: 480px) {
    .patro { width: 144px; min-height: 96px; padding: 14px 12px; }
    .patro img { max-height: 42px; }
    .patro.alto img { max-height: 64px; }
}

/* ---------- Faixa de patrocinadores no rodapé ---------- */
/* Só a ligação. A direção confirmou a 20/10/2026 que NÃO há níveis de
   patrocínio: os 22 são iguais. Sem níveis não há forma de escolher quais
   mostrar, e os 22 em todas as páginas seriam 400 KB por página. */
.patro-faixa { border-top: 1px solid var(--linha); padding-top: 26px; margin-bottom: 26px; }

@media (max-width: 600px) {

}

/* ---------- Rodapé: mapa do site ---------- */
.footer-mapa {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px 26px; padding: 30px 0; border-top: 1px solid var(--linha);
}
.footer-mapa h3 {
    font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 800;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--branco);
    margin: 0 0 12px;
}
.footer-mapa ul { list-style: none; margin: 0; padding: 0; }
.footer-mapa li { margin-bottom: 7px; }
.footer-mapa a { font-size: 13px; color: var(--cinza-2); }
.footer-mapa a:hover { color: var(--branco); }

/* ---------- Carrossel de patrocinadores (rodapé) ---------- */
/* Logótipos sempre a rodar, em placas claras: o fundo do site é preto e três
   dos logótipos desapareciam nele. Sem JavaScript -- é uma animação CSS sobre
   a lista duplicada, e o salto não se vê porque a segunda metade é igual à
   primeira. Ver docs/CONTENT.md. */
.patro-rolo {
    overflow: hidden; margin: 4px 0 20px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.patro-fita {
    display: flex; gap: 10px; width: max-content;
    animation: patro-rolar 70s linear infinite;
}
.patro-rolo:hover .patro-fita { animation-play-state: paused; }
@keyframes patro-rolar { to { transform: translateX(calc(-50% - 5px)); } }

.patro-mini {
    flex: 0 0 auto; width: 116px; height: 54px; border-radius: 3px;
    background: transparent; display: flex; align-items: center; justify-content: center;
    padding: 9px 12px; transition: background .15s;
}
.patro-mini:hover { background: var(--preto-2); }
.patro-mini.escuro:hover { background: #fff; }
.patro-mini img {
    max-width: 100%; max-height: 28px; width: auto; height: auto; object-fit: contain;
    filter: grayscale(1) brightness(1.7) contrast(0.85); opacity: 0.62;
    transition: filter .18s, opacity .18s;
}
.patro-mini:hover img { filter: none; opacity: 1; }
.patro-mini.alto img { max-height: 40px; }

/* Quem pede menos movimento não leva movimento nenhum. */
@media (prefers-reduced-motion: reduce) {
    .patro-fita { animation: none; }
    .patro-rolo { overflow-x: auto; }
}
@media (max-width: 600px) {
    .patro-mini { width: 96px; height: 46px; padding: 7px 10px; }
    .patro-mini img { max-height: 24px; }
    .patro-mini.alto img { max-height: 33px; }
}

/* ---------- Formulário: botão e contactos alternativos ---------- */
/* O botão não ocupa a largura toda: um botão esticado de margem a margem
   parece uma barra, não um botão, e não diz onde se carrega. */
.fg.acao { grid-column: 1 / -1; flex-direction: row; align-items: center;
           justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.fg.acao .btn { padding-inline: 26px; }
.fg.acao .aviso { font-size: 12px; color: var(--cinza-2); max-width: 420px; }

.contactos-diretos {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1px; background: var(--linha); border: 1px solid var(--linha);
    border-radius: 3px; overflow: hidden; margin-top: 26px;
}
.contactos-diretos > div { background: var(--preto-2); padding: 16px 18px; }
.contactos-diretos dt {
    font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--cinza-2); margin-bottom: 6px;
}
.contactos-diretos dd {
    margin: 0; font-family: 'Archivo', sans-serif; font-size: 15px;
    font-weight: 700; color: var(--branco);
}
.contactos-diretos .quem { display: block; font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 400; color: var(--cinza-1); margin-top: 3px; }

/* Adversário ainda por sortear (Taça AFC) */
.game-side.por-sortear { color: var(--cinza-3); font-style: italic; }
.game-side.por-sortear .nm { color: var(--cinza-3); }

/* Nota secundária dentro de uma célula de informação */
.info-cell .nota {
    display: block; font-family: 'Inter', sans-serif; font-size: 12px;
    font-weight: 400; color: var(--cinza-1); margin-top: 4px; line-height: 1.45;
}
.info-cell .nota a { color: var(--branco); border-bottom: 1px solid var(--linha-2); }
.info-cell .nota a:hover { color: var(--vermelho); border-bottom-color: var(--vermelho); }
