/* =========================================================================
   DESPORTIVO DE CANELAS FC — Folha de estilos principal
   Baseado no mockup fornecido: navy profundo, azul elétrico, branco.
   Todas as cores, tipos, raios e espaçamentos estão nas variáveis abaixo.
   ========================================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Cores base — verde-escuro do relvado à noite + amarelo do equipamento */
  --green-950: #04170e;      /* fundo da página */
  --green-900: #062014;      /* menu lateral / rodapé */
  --green-850: #0a2a1a;      /* painéis */
  --green-800: #0e3522;      /* cartões dentro de painéis */
  --green-700: #154a30;      /* hover / linhas destacadas */
  --yellow-400: #ffd21f;     /* amarelo principal do clube (botões, destaques) */
  --yellow-500: #ffdf55;     /* hover de botão amarelo */
  --accent-300: #ffe066;     /* amarelo claro para títulos e links sobre verde */
  --club-green: #1f9d55;     /* verde do clube (faixas, detalhes) */
  --on-accent: #062014;      /* texto em cima do amarelo */
  --white: #ffffff;
  --text: #eef5ec;
  --text-muted: #a9bfae;
  --text-dim: #7d9884;
  --line: rgba(150, 215, 165, 0.15);
  --line-strong: rgba(150, 215, 165, 0.3);

  /* Estados de resultado */
  --win: #3ddc84;
  --loss: #ff6b6b;
  --draw: #b0bec5;

  /* Tipografia: Barlow Condensed (títulos, números de camisola) + Barlow (texto) */
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Barlow Condensed", sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(2rem, 3.2vw, 2.7rem);
  --fs-hero: clamp(2.8rem, 5vw, 4.8rem);

  /* Raios */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  --shadow-panel: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 10px 28px -12px rgba(255, 210, 31, 0.6);

  /* Layout */
  --sidebar-w: 208px;
  --content-max: 1360px;
  --gutter: clamp(16px, 2.2vw, 32px);
  --gap: clamp(12px, 1.2vw, 18px);
  --section-gap: clamp(22px, 2.4vw, 34px);
  --topbar-h: 62px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--green-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-family: var(--font-display); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-300); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--yellow-400); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- 3. APP SHELL (sidebar + main) ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 60;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #072a19 0%, var(--green-900) 60%);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 18px 12px 14px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar__brand { text-align: center; padding: 2px 6px 16px; }
.sidebar__crest { width: 70px; margin: 0 auto 10px; border-radius: 50%; }
.sidebar__name { font-family: var(--font-display); font-weight: 800; font-size: 0.88rem; letter-spacing: 0.08em; line-height: 1.2; text-transform: uppercase; }
.sidebar__place { margin-top: 6px; font-size: 0.66rem; letter-spacing: 0.22em; color: var(--text-muted); text-transform: uppercase; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__link {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 9px 12px; border-radius: var(--r-sm);
  color: #cfe0d3; font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.nav__link .icon { width: 19px; height: 19px; color: #9fd3ad; }
.nav__link:hover { background: rgba(255,210,31, 0.1); color: #fff; }
.nav__link[aria-current="page"] { background: var(--yellow-400); color: var(--on-accent); font-weight: 700; }
.nav__link[aria-current="page"] .icon { color: var(--on-accent); }
.nav__link[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent-300); }

.sidebar__foot { margin-top: auto; padding-top: 16px; }
.socials { display: flex; gap: 6px; }
.socials a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #cfe0d3; transition: background 0.15s, color 0.15s; }
.socials a:hover { background: rgba(255,210,31,.16); color: #fff; }
.socials .icon { width: 18px; height: 18px; }
.sidebar__venue { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.sidebar__venue img { width: 40px; flex: none; opacity: 0.9; border-radius: 4px; }
.sidebar__venue strong { display: block; font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.35; }
.sidebar__venue span { display: block; font-size: 0.68rem; color: var(--text-muted); }
.sidebar__venue a { display: inline-flex; gap: 4px; align-items: center; margin-top: 4px; font-size: 0.66rem; font-weight: 700; color: var(--accent-300); text-transform: uppercase; letter-spacing: 0.06em; }
.sidebar__venue a .icon { width: 12px; height: 12px; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }

/* Topbar */
.topbar {
  position: absolute; top: 0; left: var(--sidebar-w); right: 0; z-index: 40;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 var(--gutter);
}
.topbar--solid { position: sticky; left: auto; top: 0; background: rgba(4,23,14, 0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar__brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.topbar__brand img { width: 36px; border-radius: 50%; }
.topbar__brand strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
.topbar__brand span { display: block; font-size: 0.66rem; letter-spacing: 0.3em; color: var(--text-muted); text-transform: uppercase; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: rgba(4,23,14,.45); color: #fff; transition: border-color .15s, background .15s; }
.icon-btn:hover { border-color: var(--yellow-400); background: rgba(255,210,31,.12); }
.menu-toggle { display: none; }
.cart-btn { position: relative; }
.cart-btn__count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--yellow-400); font-size: 0.7rem; font-weight: 700; display: grid; place-items: center; }
.cart-btn__count:empty, .cart-btn__count[data-count="0"] { display: none; }

/* ---------- 4. BOTÕES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 40px; padding: 0 18px; border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn .icon { width: 16px; height: 16px; }
.btn--primary { background: var(--yellow-400); color: var(--on-accent); box-shadow: var(--shadow-glow); }
.btn--primary:hover { background: var(--yellow-500); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(4,23,14,.35); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--soft { background: rgba(255,210,31,.14); color: #fff; border-color: rgba(255,210,31,.35); }
.btn--soft:hover { background: rgba(255,210,31,.24); }
.btn--sm { min-height: 34px; padding: 0 13px; font-size: 0.7rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn:active:not([disabled]) { transform: translateY(1px); }

.link-more { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-300); white-space: nowrap; }
.link-more .icon { width: 14px; height: 14px; transition: transform .15s; }
.link-more:hover { color: #fff; }
.link-more:hover .icon { transform: translateX(3px); }

/* ---------- 5. HERO (página inicial) ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(360px, 30vw, 430px);
  padding: calc(var(--topbar-h) + 8px) 0 96px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background: url("../img/campo.svg") center / cover no-repeat; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(4,23,14,.96) 0%, rgba(4,23,14,.82) 34%, rgba(4,23,14,.25) 68%, rgba(4,23,14,.45) 100%),
    linear-gradient(0deg, var(--green-950) 0%, rgba(4,23,14,0) 42%);
}
.hero__inner { position: relative; width: 100%; }
.hero__eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-300); margin-bottom: 14px; }
.hero__title { font-weight: 900; font-size: var(--fs-hero); line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase; }
.hero__title span { display: block; }
.hero__title .accent { color: var(--yellow-400); }
.hero__lead { max-width: 60ch; margin: 14px 0 20px; font-size: var(--fs-base); color: #dceadf; }
.hero__lead strong { color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__script {
  position: absolute; right: 2%; top: 50%; transform: translateY(-58%) rotate(-14deg);
  font-family: var(--font-script); font-size: clamp(1.8rem, 2.8vw, 2.8rem); line-height: 1.02; color: #fff;
  text-align: center; text-shadow: 0 4px 24px rgba(0,0,0,.5);
  pointer-events: none;
}
.hero__script span { display: block; }
.hero__script span:nth-child(2) { margin-left: 0.8em; }
.hero__script span:nth-child(3) { margin-left: 1.6em; }
.hero__script svg { width: 75%; margin: -4px 0 0 30%; color: var(--yellow-400); }

/* Banner interior (páginas secundárias) */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 36px 0 30px;
  border-bottom: 1px solid var(--line);
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/campo.svg") center 40% / cover; opacity: .5; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--green-950) 10%, rgba(4,23,14,.7) 60%, rgba(4,23,14,.85)); }
.crumbs { display: flex; gap: 8px; font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 12px; }
.crumbs a:hover { color: #fff; }
.page-hero h1 { font-weight: 900; font-size: var(--fs-2xl); text-transform: uppercase; letter-spacing: -0.01em; }
.page-hero p { margin: 12px 0 0; max-width: 60ch; color: #d2e2d6; }

/* ---------- 6. PAINÉIS ---------- */
.dash { position: relative; z-index: 2; display: grid; gap: var(--gap); }
/* Página inicial: as três filas partilham a mesma grelha de 3 colunas, para os painéis alinharem */
.dash--home-top, .dash--home-mid, .dash--home-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash--home-top { margin-top: -80px; }
.dash--home-mid, .dash--home-shop { margin-top: var(--section-gap); }
.span-2 { grid-column: span 2; }

.panel {
  background: linear-gradient(180deg, rgba(14,53,34,.92), rgba(10,42,26,.94));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 16px 16px;
  box-shadow: var(--shadow-panel);
  min-width: 0;
}
.panel--bare { background: none; border: 0; box-shadow: none; padding: 0; }
.panel__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 26px; }
.panel__title { display: flex; align-items: center; gap: 10px; margin-right: auto; font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-300); }
.panel__title .icon { width: 20px; height: 20px; color: var(--yellow-400); }

.section { margin-top: var(--section-gap); }
.section:first-child { margin-top: 0; }
.page-body { padding-top: var(--section-gap); padding-bottom: calc(var(--section-gap) * 1.4); flex: 1; }

/* ---------- 7. PRÓXIMO JOGO ---------- */
.match {
  background: var(--green-800); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 10px; display: grid; grid-template-columns: 1fr 1.6fr 1fr; align-items: center; gap: 10px; text-align: center;
}
.team { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.team__crest { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.team__crest img { width: 100%; height: 100%; object-fit: cover; }
.team__crest--badge { background: linear-gradient(160deg, #fffdf0, #e8e2b8); color: #10301f; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; letter-spacing: .02em; }
.team__name { font-family: var(--font-display); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.match__date { font-family: var(--font-display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: #cfe0d3; }
.match__time { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 2.4vw, 2.3rem); line-height: 1; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.match__comp { font-size: 0.72rem; color: var(--text-muted); line-height: 1.35; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-family: var(--font-display); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line-strong); color: #cfe0d3; white-space: nowrap; }
.tag--blue { background: rgba(255,210,31,.16); border-color: rgba(255,210,31,.5); color: var(--accent-300); }
.tag--win { background: rgba(47,210,122,.12); border-color: rgba(47,210,122,.45); color: var(--win); }
.tag--loss { background: rgba(255,84,104,.12); border-color: rgba(255,84,104,.45); color: var(--loss); }
.tag--draw { background: rgba(176,190,197,.12); border-color: rgba(176,190,197,.45); color: var(--draw); }
.match__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.match__venue { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #cfe0d3; }
.match__venue .icon { width: 16px; height: 16px; color: var(--accent-300); }
.countdown { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.countdown div { min-width: 40px; padding: 4px 3px 3px; border-radius: var(--r-sm); background: rgba(4,23,14,.6); border: 1px solid var(--line); }
.countdown b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.countdown small { display: block; font-size: 0.6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }

/* ---------- 8. CLASSIFICAÇÃO ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); }
.league { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.league th { font-family: var(--font-display); font-weight: 700; font-size: 0.66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); text-align: center; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.league th.l, .league td.l { text-align: left; }
.league td { padding: 7px 8px; text-align: center; border-bottom: 1px solid rgba(150,215,165,.08); white-space: nowrap; }
.league td.pts { font-weight: 700; color: #fff; }
.league tbody tr { transition: background .12s; }
.league tbody tr:hover { background: rgba(255,210,31,.06); }
.league tr.is-club td { background: var(--yellow-400); color: var(--on-accent); font-weight: 600; border-bottom-color: transparent; }
.league tr.is-club td:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.league tr.is-club td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.league .team-cell { display: flex; align-items: center; gap: 10px; }
.mini-crest { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #eef3e6; color: #10301f; font-size: 0.56rem; font-weight: 800; font-family: var(--font-display); overflow: hidden; }
.mini-crest img { width: 100%; height: 100%; object-fit: cover; }
.form-dots { display: inline-flex; gap: 4px; }
.form-dots i { width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; font-style: normal; font-size: 0.62rem; font-weight: 800; color: #04101f; }
.form-dots .V { background: var(--win); } .form-dots .E { background: var(--draw); } .form-dots .D { background: var(--loss); }
.zone { position: relative; }
.zone::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; }
.zone--up::before { background: var(--win); }
.zone--down::before { background: var(--loss); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: var(--fs-sm); color: var(--text-muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; }

/* ---------- 9. RESULTADOS ---------- */
.results { display: flex; flex-direction: column; }
.result { display: grid; grid-template-columns: 44px minmax(0,1fr) auto minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(150,215,165,.1); }
.result:last-child { border-bottom: 0; padding-bottom: 0; }
.result:first-child { padding-top: 0; }
.datebox { width: 44px; padding: 4px 0; text-align: center; border-radius: var(--r-sm); background: rgba(4,23,14,.55); border: 1px solid var(--line); }
.datebox b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1.1; }
.datebox small { display: block; font-size: 0.62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.result__team { font-size: 0.82rem; line-height: 1.25; color: #cfe0d3; min-width: 0; overflow-wrap: anywhere; }
.result__team--home { text-align: right; }
.result__team.is-club { color: #fff; font-weight: 700; }
.score { min-width: 50px; padding: 5px 8px; border-radius: var(--r-sm); background: var(--green-700); font-family: var(--font-display); font-weight: 800; font-size: 0.88rem; text-align: center; font-variant-numeric: tabular-nums; }
.score--pending { font-size: 0.82rem; color: var(--accent-300); }
.result__tags { display: flex; gap: 5px; }

/* ---------- 10. NOTÍCIAS ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.news-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 150px; border-radius: var(--r-md); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); background: var(--green-800);
}
.news-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.news-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,23,14,0) 20%, rgba(4,23,14,.92) 78%); }
.news-card:hover img { transform: scale(1.04); }
.news-card__body { padding: 12px 48px 12px 14px; }
.news-meta { display: flex; gap: 8px; align-items: center; font-size: 0.7rem; letter-spacing: .06em; text-transform: uppercase; color: #cfe0d3; margin-bottom: 6px; }
.news-meta .cat { color: var(--accent-300); font-weight: 600; }
.news-meta .sep { width: 1px; height: 10px; background: var(--line-strong); }
.news-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; line-height: 1.3; }
.news-card__go { position: absolute; right: 12px; bottom: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(4,23,14,.7); border: 1px solid var(--line-strong); }
.news-card__go .icon { width: 14px; height: 14px; }
.news-card:hover .news-card__go { background: var(--yellow-400); border-color: var(--yellow-400); }

/* Lista de notícias (página) */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.news-list .news-card { min-height: 0; justify-content: flex-start; background: var(--green-850); }
.news-list .news-card::after { display: none; }
.news-list .news-card img { position: static; aspect-ratio: 16 / 9; height: auto; }
.news-list .news-card__body { padding: 16px 18px 20px; }
.news-list .news-card h3 { font-size: 1rem; margin-bottom: 8px; }
.news-list .news-card p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.news-list .news-card__go { display: none; }
.news-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--green-850); margin-bottom: var(--gap); }
.news-feature img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.news-feature__body { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; }
.news-feature h2 { font-size: var(--fs-xl); margin: 6px 0 12px; line-height: 1.15; }
.news-feature p { color: var(--text-muted); }

/* Artigo */
.article { max-width: 760px; }
.article__img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 8; object-fit: cover; border: 1px solid var(--line); margin-bottom: 28px; }
.article__body { font-size: 1.06rem; line-height: 1.75; color: #dceadf; }
.article__body p { margin-bottom: 1.2em; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 3vw, 48px); align-items: start; }

/* ---------- 11. PLANTEL ---------- */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 12px) / 3); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green-900); border: 1px solid var(--line-strong); color: #fff; z-index: 2; }
.carousel__btn:hover { background: var(--yellow-400); border-color: var(--yellow-400); }
.carousel__btn[disabled] { opacity: .3; pointer-events: none; }
.carousel__btn--prev { left: -16px; } .carousel__btn--next { right: -16px; }
.carousel__btn .icon { width: 16px; height: 16px; }

.player {
  position: relative; display: block; text-align: left; width: 100%;
  border-radius: var(--r-md); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 70% 10%, #1d5a3a 0%, #0b2f1d 60%);
  border: 1px solid var(--line); aspect-ratio: 3 / 3.4;
}
.player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; z-index: -2; }
.player::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,23,14,0) 45%, rgba(4,23,14,.95) 92%); }
.player__num { position: absolute; top: 8px; left: 10px; font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; line-height: 1; }
.player__pos { display: block; font-size: 0.64rem; font-weight: 700; letter-spacing: .08em; margin-top: 4px; color: #cfe0d3; }
.player__info { position: absolute; left: 10px; right: 8px; bottom: 8px; }
.player__name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 0.76rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1.2; }
.player__role { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: #cfe0d3; margin-top: 3px; }
.player:hover { border-color: var(--yellow-400); }
.player--nophoto img { object-fit: contain; object-position: center 30%; padding: 18% 14% 30%; opacity: .5; }
.flag { width: 16px; height: 11px; border-radius: 2px; flex: none; display: inline-block; background: #8aa0c0; }
.flag--PT { background: linear-gradient(90deg, #046a38 0 40%, #da291c 40% 100%); position: relative; }
.flag--PT::after { content: ""; position: absolute; left: 40%; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #ffe900; transform: translate(-50%, -50%); }
.flag--BR { background: #009c3b; position: relative; } .flag--BR::after { content: ""; position: absolute; inset: 2px 3px; background: #ffdf00; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.flag--CV { background: linear-gradient(180deg, #003893 0 55%, #fff 55% 65%, #cf2027 65% 75%, #fff 75% 85%, #003893 85%); }
.flag--AO { background: linear-gradient(180deg, #cc092f 50%, #000 50%); }

.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--gap); }
.squad-group + .squad-group { margin-top: var(--section-gap); }
.squad-group h2 { font-size: var(--fs-md); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.squad-group h2 small { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-sm); color: var(--text-muted); letter-spacing: 0; text-transform: none; }

/* ---------- 12. FILTROS / CHIPS ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line-strong); background: rgba(14,53,34,.5); font-size: var(--fs-sm); font-weight: 500; color: #cfe0d3; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--yellow-400); color: #fff; }
.chip[aria-pressed="true"] { background: var(--yellow-400); border-color: var(--yellow-400); color: var(--on-accent); font-weight: 600; }
.select { height: 36px; padding: 0 36px 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--green-850) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236db6ff' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 14px center no-repeat; appearance: none; font-size: var(--fs-sm); }
.toolbar__spacer { flex: 1; }

/* Lista de jogos (página Jogos) */
.fixtures { display: flex; flex-direction: column; gap: 8px; }
.fixture { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px; border-radius: var(--r-md); background: var(--green-850); border: 1px solid var(--line); }
.fixture__match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; min-width: 0; }
.fixture__team { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; }
.fixture__team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixture__team .short { display: none; }
.fixture__team--home { justify-content: flex-end; text-align: right; }
.fixture__team.is-club { font-weight: 700; color: #fff; }
.fixture__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 0.78rem; color: var(--text-muted); text-align: right; }
.fixture__meta .tags { display: flex; gap: 6px; }
.month-label { font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-300); margin: 18px 0 4px; }
.month-label:first-child { margin-top: 0; }

/* ---------- 13. LOJA ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--gap); }
.products--row { grid-template-columns: repeat(3, 1fr); }
.product { display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: var(--green-800); border: 1px solid var(--line); }
.product__img { position: relative; aspect-ratio: 16 / 11; background: radial-gradient(90% 90% at 50% 30%, #1f6a43, #0d2f1e); display: grid; place-items: center; overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__img img[src$=".svg"] { width: 72%; height: 82%; object-fit: contain; }
.product__badge { position: absolute; top: 10px; left: 10px; }
.product__body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product__name { font-weight: 600; font-size: 0.88rem; line-height: 1.3; }
.product__cat { font-size: 0.72rem; color: var(--text-muted); }
.product__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 1rem; }
.price s { font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--text-dim); margin-left: 6px; }

/* Carrinho (gaveta) */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(1,10,6,.65); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 100%); background: var(--green-900); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer__foot { padding: 18px 20px; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); background: var(--green-800); }
.cart-line small { display: block; color: var(--text-muted); font-size: 0.75rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); margin-top: 6px; }
.qty button { width: 30px; height: 30px; display: grid; place-items: center; }
.qty span { min-width: 26px; text-align: center; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart-total strong { font-family: var(--font-display); font-size: 1.4rem; }

/* ---------- 14. BILHETES / SÓCIOS ---------- */
.ticket-card { display: flex; flex-direction: column; gap: 10px; }
.ticket-match { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--green-800); border: 1px solid var(--line); }
.ticket-match__vs { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: .03em; }
.ticket-match small { display: block; color: var(--text-muted); font-size: 0.78rem; margin-top: 2px; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prices div { padding: 8px 6px; border-radius: var(--r-sm); background: rgba(4,23,14,.5); border: 1px solid var(--line); text-align: center; }
.prices b { display: block; font-family: var(--font-display); font-size: 1rem; }
.prices small { font-size: 0.7rem; color: var(--text-muted); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.plan { position: relative; display: flex; flex-direction: column; padding: 18px; border-radius: var(--r-lg); background: var(--green-850); border: 1px solid var(--line); }
.plan--featured { border-color: var(--yellow-400); background: linear-gradient(180deg, rgba(255,210,31,.18), var(--green-850) 60%); }
.plan h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.plan__price { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; margin: 12px 0 2px; }
.plan__price small { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.plan ul { margin: 16px 0 22px; display: flex; flex-direction: column; gap: 9px; font-size: var(--fs-sm); color: #d2e2d6; }
.plan li { display: flex; gap: 10px; }
.plan li .icon { width: 18px; height: 18px; color: var(--yellow-400); margin-top: 1px; }
.plan .btn { margin-top: auto; }
.plan .tag { position: absolute; top: 18px; right: 18px; }

/* ---------- 15. FORMULÁRIOS ---------- */
.form { display: grid; gap: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: #dceadf; }
.field .hint { font-size: 0.76rem; color: var(--text-dim); }
.input, .textarea { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: rgba(4,23,14,.55); color: #fff; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--yellow-400); box-shadow: 0 0 0 3px rgba(255,210,31,.25); }
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--loss); }
.field__error { font-size: 0.76rem; color: var(--loss); min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: #d2e2d6; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--yellow-400); flex: none; }
.hp { position: absolute !important; left: -9999px !important; }
.form-status { padding: 12px 14px; border-radius: var(--r-sm); font-size: var(--fs-sm); display: none; }
.form-status.is-ok { display: block; background: rgba(47,210,122,.12); border: 1px solid rgba(47,210,122,.4); color: #c4f5d6; }
.form-status.is-error { display: block; background: rgba(255,84,104,.12); border: 1px solid rgba(255,84,104,.4); color: #ffd0d0; }

/* ---------- 16. COMUNIDADE + RODAPÉ ---------- */
.community { margin-top: var(--section-gap); display: grid; grid-template-columns: 1.3fr auto 1px 1.5fr; gap: clamp(18px, 2.4vw, 36px); align-items: center; }
.community__text h2 { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-300); margin-bottom: 8px; }
.community__text h2 .icon { width: 20px; height: 20px; color: var(--yellow-400); }
.community__text p { margin: 0; font-size: var(--fs-sm); color: #cfe0d3; max-width: 46ch; }
.social-tiles { display: flex; gap: 10px; }
.social-tiles a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; transition: transform .15s; }
.social-tiles a:hover { transform: translateY(-2px); }
.social-tiles .icon { width: 20px; height: 20px; }
.st-facebook { background: #1877f2; } .st-instagram { background: linear-gradient(45deg, #f9a43a, #e1306c 50%, #833ab4); } .st-youtube { background: #ff0000; } .st-x { background: #000; border: 1px solid #333; }
.community__divider { width: 1px; height: 60px; background: var(--line-strong); }
.community__venue { display: flex; align-items: center; gap: 18px; }
.community__venue img { width: 64px; flex: none; border-radius: 6px; }
.community__venue strong { display: block; font-family: var(--font-display); font-size: 0.78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-300); }
.community__venue span { font-size: 0.8rem; color: var(--text-muted); }
.community__venue .btn { margin-left: auto; }

.footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--green-900); }
.footer__inner { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 36px; border-radius: 50%; }
.footer__brand strong { display: block; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; }
.footer__brand span { display: block; font-size: 0.58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0 auto; font-size: 0.78rem; color: #cfe0d3; }
.footer__nav a:hover { color: #fff; }
.footer__copy { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; text-align: right; }

/* ---------- 17. PESQUISA / MODAL / TOAST ---------- */
.overlay { position: fixed; inset: 0; z-index: 120; background: rgba(1,10,6,.75); backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; }
.overlay.is-open { display: flex; }
.dialog { width: min(640px, 100%); max-height: 80vh; overflow: auto; border-radius: var(--r-lg); background: var(--green-900); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -20px #000; }
.dialog--wide { width: min(820px, 100%); }
.search-box { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; font-size: 1.1rem; color: #fff; outline: none; }
.search-results { padding: 8px; }
.search-results a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); }
.search-results a:hover, .search-results a:focus { background: rgba(255,210,31,.12); outline: none; }
.search-results small { display: block; color: var(--text-muted); font-size: 0.75rem; }
.search-results .tag { margin-left: auto; }
.search-empty { padding: 22px 18px; color: var(--text-muted); font-size: var(--fs-sm); }

.player-modal { display: grid; grid-template-columns: 300px 1fr; }
.player-modal__img { position: relative; background: radial-gradient(120% 90% at 70% 10%, #1d5a3a 0%, #0b2f1d 60%); min-height: 340px; }
.player-modal__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.player-modal__body { padding: 28px; position: relative; }
.player-modal__num { font-family: var(--font-display); font-weight: 900; font-size: 3.5rem; line-height: 1; color: var(--yellow-400); }
.player-modal h2 { font-size: 1.6rem; text-transform: uppercase; margin: 6px 0 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.stats div { padding: 12px; border-radius: var(--r-sm); background: var(--green-800); border: 1px solid var(--line); text-align: center; }
.stats b { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.stats small { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: var(--fs-sm); }
.dl dt { color: var(--text-muted); } .dl dd { margin: 0; }
.dialog-close { position: absolute; top: 14px; right: 14px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 150; padding: 12px 20px; border-radius: var(--r-md); background: var(--yellow-400); color: var(--on-accent); font-weight: 600; box-shadow: var(--shadow-glow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 18. CONTEÚDO GENÉRICO ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.split--aside { grid-template-columns: minmax(0, 1fr) 320px; }
.prose { max-width: 68ch; color: #dceadf; font-size: 1rem; line-height: 1.75; }
.prose h2 { font-size: var(--fs-xl); text-transform: uppercase; margin: 0 0 16px; color: #fff; }
.prose h3 { font-size: var(--fs-lg); margin: 28px 0 10px; color: #fff; }
.feature { padding: 18px; border-radius: var(--r-lg); background: var(--green-850); border: 1px solid var(--line); }
.feature .icon { width: 24px; height: 24px; color: var(--yellow-400); margin-bottom: 10px; }
.feature h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.feature p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.levels div { padding: 14px 16px; border-radius: var(--r-md); background: var(--green-800); border: 1px solid var(--line); }
.levels b { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 0.9rem; letter-spacing: .03em; }
.levels small { color: var(--text-muted); font-size: 0.76rem; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 22px; height: 22px; color: var(--yellow-400); margin-top: 2px; }
.contact-list small { display: block; color: var(--text-muted); font-size: 0.78rem; }
.map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--r-lg); filter: invert(.9) hue-rotate(180deg) saturate(.7); }
.empty { padding: 32px; text-align: center; color: var(--text-muted); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.skeleton { min-height: 120px; border-radius: var(--r-md); background: linear-gradient(90deg, var(--green-850), var(--green-800), var(--green-850)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Entrada do hero: um único momento orquestrado */
.hero__eyebrow, .hero__title span, .hero__lead, .hero__actions { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero__title span:nth-child(1) { animation-delay: .06s; }
.hero__title span:nth-child(2) { animation-delay: .14s; }
.hero__lead { animation-delay: .24s; } .hero__actions { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 19. RESPONSIVO ---------- */
@media (max-width: 1280px) {
  .dash--home-top { grid-template-columns: 1fr 1fr; }
  .dash--home-top > :last-child { grid-column: 1 / -1; }
  .dash--home-mid, .dash--home-shop { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}
@media (max-width: 1360px) {
  .community { grid-template-columns: 1fr auto; }
  .community__divider { display: none; }
  .community__venue { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }
  .hero__script { right: 1%; font-size: clamp(1.8rem, 3vw, 2.6rem); }
}
@media (max-width: 1100px) {
  .article-layout, .split, .split--aside { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  :root { --sidebar-w: 0px; --topbar-h: 64px; }
  .sidebar { width: 280px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .sidebar.is-open { transform: none; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(1,10,6,.6); opacity: 0; visibility: hidden; transition: opacity .2s; }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  .menu-toggle { display: grid; }
  .topbar { left: 0; }
  .hero__script { display: none; }
  .footer__copy { text-align: left; }
}
@media (max-width: 860px) {
  .dash--home-top { grid-template-columns: 1fr; margin-top: -64px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-grid .news-card { min-height: 190px; }
  .products--row { grid-template-columns: repeat(2, 1fr); }
  .products--row > :nth-child(3) { display: none; }
  .news-feature { grid-template-columns: 1fr; }
  .player-modal { grid-template-columns: 1fr; }
  .player-modal__img { min-height: 300px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .fixture { grid-template-columns: 1fr; gap: 10px; }
  .fixture .datebox { width: auto; display: flex; gap: 8px; align-items: baseline; justify-content: center; padding: 4px 10px; }
  .fixture__meta { align-items: center; text-align: center; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 100px; min-height: 0; }
  .hero__lead { font-size: var(--fs-base); }
  .hero__actions .btn { flex: 1 1 auto; }
  .topbar__brand strong { font-size: 0.86rem; }
  .topbar__brand span { display: none; }
  .zone-btn span { display: none; }
  .zone-btn { padding: 0 12px; }
  .match { grid-template-columns: 1fr 1.4fr 1fr; padding: 16px 8px; }
  .team__crest { width: 52px; height: 52px; }
  .result { grid-template-columns: 48px 1fr auto 1fr; row-gap: 8px; }
  .result .datebox { width: 48px; }
  .result__tags { grid-column: 2 / -1; justify-content: center; }
  .carousel__track { grid-auto-columns: 46%; }
  .carousel__btn { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .community { grid-template-columns: 1fr; }
  .community__venue { flex-wrap: wrap; }
  .community__venue .btn { margin-left: 0; width: 100%; }
  .footer__nav { margin: 0; gap: 8px 18px; }
  .products--row { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr 1fr 1fr; }
  .fixture__match { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .fixture__team { font-size: 0.86rem; }
  .fixture__team .mini-crest { display: none; }
  .fixture__team .long { display: none; }
  .fixture__team .short { display: inline; }
  .products--row .product__row .btn, .products .product__row .btn { flex: 1 1 100%; }
}

/* ---------- 20. CONTAINER QUERIES (componentes que se adaptam ao espaço do painel) ---------- */
.panel, .fixtures { container-type: inline-size; }
@container (max-width: 380px) {
  .result { grid-template-columns: 48px minmax(0, 1fr) auto minmax(0, 1fr); row-gap: 8px; }
  .result .datebox { width: 48px; grid-row: span 2; }
  .result__tags { grid-column: 2 / -1; justify-content: center; }
}
@container (max-width: 900px) {
  .fixture__team .long { display: none; }
  .fixture__team .short { display: inline; }
}
@container (max-width: 520px) {
  .fixture { grid-template-columns: 1fr; gap: 10px; }
  .fixture .datebox { width: auto; display: flex; gap: 8px; align-items: baseline; justify-content: center; padding: 4px 10px; }
  .fixture__meta { align-items: center; text-align: center; }
}
@container (min-width: 760px) {
  .results { flex-direction: row; gap: 14px; }
  .result { flex: 1; grid-template-columns: 50px minmax(0, 1fr) auto minmax(0, 1fr); row-gap: 10px; padding: 0 14px 0 0 !important; border-bottom: 0; border-right: 1px solid rgba(150,215,165,.1); }
  .result:last-child { border-right: 0; }
  .result .datebox { grid-row: span 2; }
  .result__tags { grid-column: 2 / -1; justify-content: center; }
}
.carousel { container-type: inline-size; }
@container (min-width: 700px) { .carousel__track { grid-auto-columns: calc((100% - 4 * 12px) / 5); } }
@container (min-width: 1000px) { .carousel__track { grid-auto-columns: calc((100% - 5 * 12px) / 6); } }

/* Painel que estica e encosta a ação ao fundo (ex.: Bilhetes na página inicial) */
.panel--fill { display: flex; flex-direction: column; }
.panel--fill > :last-child { flex: 1; }
.ticket-card > .btn:last-child { margin-top: auto; }
.ticket-note { margin: 0; font-size: 0.78rem; color: var(--text-muted); }
.player__role { font-size: 0.66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product__body { padding: 10px; }
  .product__name { font-size: 0.82rem; }
  .fixture .datebox { justify-self: center; }
}

/* ---------- 21. MENU LATERAL COMPACTO (cabe no ecrã sem deslizar) ---------- */
.sidebar { padding: 14px 10px 12px; scrollbar-width: thin; scrollbar-color: var(--green-700) transparent; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--green-700); border-radius: 3px; }
.sidebar__brand { display: flex; align-items: center; gap: 10px; text-align: left; padding: 2px 6px 14px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.sidebar__crest { width: 46px; margin: 0; flex: none; }
.sidebar__name { display: block; font-size: 0.8rem; line-height: 1.15; letter-spacing: 0.06em; }
.sidebar__place { display: block; margin-top: 4px; font-size: 0.58rem; letter-spacing: 0.16em; }
.nav { gap: 1px; }
.nav__link { padding: 7px 10px; gap: 11px; font-size: 0.86rem; }
.nav__link .icon { width: 18px; height: 18px; }
.nav__link[aria-current="page"]::before { left: -10px; }
.nav__sep { display: block; height: 1px; margin: 7px 10px; background: var(--line); }
.sidebar__foot { padding-top: 12px; }
.socials { gap: 2px; padding: 0 4px; }
.socials a { width: 30px; height: 30px; }
.socials .icon { width: 16px; height: 16px; }
.sidebar__venue { margin-top: 10px; padding: 10px 6px 0; gap: 8px; }
.sidebar__venue img { width: 32px; }
.sidebar__venue strong { font-size: 0.6rem; }
.sidebar__venue span { font-size: 0.64rem; }
/* Ecrãs baixos (portáteis): esconder o que é secundário em vez de obrigar a deslizar */
@media (max-height: 700px) and (min-width: 1025px) { .sidebar__venue { display: none; } }
@media (max-height: 600px) and (min-width: 1025px) {
  .nav__link { padding: 5px 10px; }
  .sidebar__brand { padding-bottom: 10px; margin-bottom: 6px; }
  .nav__sep { margin: 4px 10px; }
}

/* ---------- 22. IDENTIDADE CANELAS: texto escuro sobre amarelo ---------- */
.league tr.is-club td.pts { color: var(--on-accent); }
.carousel__btn:hover, .news-card:hover .news-card__go { color: var(--on-accent); }
.cart-btn__count { color: var(--on-accent); }
.btn--primary:hover { background: var(--yellow-500); }
.plan--featured { background: linear-gradient(180deg, rgba(255,210,31,.14), var(--green-850) 60%); }
.form-dots .E { background: var(--draw); }

/* ---------- 23. HERO CANELAS ---------- */
.hero::before {
  background:
    linear-gradient(90deg, rgba(4,23,14,.97) 0%, rgba(4,23,14,.86) 38%, rgba(4,23,14,.35) 72%, rgba(4,23,14,.55) 100%),
    linear-gradient(0deg, var(--green-950) 0%, rgba(4,23,14,0) 45%);
}
/* Duas faixas diagonais — amarelo e verde — como uma braçadeira de capitão */
.hero__stripes { position: absolute; z-index: -1; top: -20%; bottom: -20%; right: 12%; width: 220px; transform: skewX(-16deg); display: flex; gap: 18px; pointer-events: none; }
.hero__stripes span { flex: 1; }
.hero__stripes span:first-child { background: var(--yellow-400); opacity: .92; }
.hero__stripes span:last-child { background: var(--club-green); opacity: .85; }
.hero__title { font-weight: 800; line-height: .88; letter-spacing: -0.005em; }
.hero__title .accent { color: var(--yellow-400); }
.hero__eyebrow { color: var(--yellow-400); letter-spacing: .2em; }
.hero__eyebrow::before { content: ""; display: inline-block; width: 28px; height: 4px; margin-right: 10px; vertical-align: middle; background: linear-gradient(90deg, var(--yellow-400) 50%, var(--club-green) 50%); }
.hero__form { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; }
.hero__form:empty { display: none; }
.hero__form div { display: flex; align-items: baseline; gap: 8px; }
.hero__form dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); order: 2; }
.hero__form dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #fff; order: 1; }
.hero__form .form-dots { align-self: center; }
@media (max-width: 1024px) { .hero__stripes { right: -60px; width: 160px; opacity: .55; } }

/* Títulos de secção: faixa amarelo/verde em vez de cor sólida */
.panel__title { color: #fff; }
.panel__title .icon { color: var(--yellow-400); }
.page-hero h1::after { content: ""; display: block; width: 56px; height: 5px; margin-top: 12px; background: linear-gradient(90deg, var(--yellow-400) 50%, var(--club-green) 50%); }
.panel { position: relative; }
.panel::before { content: ""; position: absolute; left: 16px; top: -1px; width: 52px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--yellow-400) 50%, var(--club-green) 50%); }
.panel--bare::before, .community::before { display: none; }

/* Jogadores sem foto: camisola com o número */
.player__shirt { position: absolute; left: 50%; top: 46%; width: 74%; transform: translate(-50%, -50%); z-index: -2; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.player--nophoto::after { background: linear-gradient(180deg, rgba(4,23,14,0) 55%, rgba(4,23,14,.95) 92%); }
.player--nophoto .player__num { opacity: 0; }
.player-modal__img .player__shirt { width: 64%; top: 50%; z-index: 0; }
.player { background: radial-gradient(120% 90% at 70% 10%, #1d5a3a 0%, #0b2f1d 60%); }

/* Barra inferior no telemóvel */
.tabbar { display: none; }
@media (max-width: 1024px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(6,32,20,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line-strong); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; min-height: 56px; font-size: .68rem; font-weight: 600; color: var(--text-muted); }
  .tabbar .icon { width: 21px; height: 21px; }
  .tabbar [aria-current="page"] { color: var(--yellow-400); }
  .tabbar [aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; background: var(--yellow-400); border-radius: 0 0 3px 3px; }
  .tabbar a { position: relative; }
  body { padding-bottom: 64px; }
  .toast { bottom: 80px; }
}

/* Textos de foco visível em amarelo (contraste com o verde) */
:focus-visible { outline-color: var(--yellow-400); }
.panel { background: linear-gradient(180deg, #0f3824, #0b2c1b); }
.icon-btn { background: var(--green-900); }
@media (max-width: 640px) {
  .hero__stripes { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 6px; transform: none; gap: 0; opacity: 1; }
}

/* ---------- 24. ACESSIBILIDADE (revisão WCAG 2.1 AA) ---------- */
.price s { color: var(--text-muted); }
.link-more, .crumbs a, .footer__nav a, .sidebar__venue a { min-height: 24px; display: inline-flex; align-items: center; }
.footer__nav a { padding: 2px 0; }
.form-dots i { color: #04170e; }

/* ---------- 25. CABEÇALHO COM FOTOGRAFIAS (oficial) ---------- */
.hero--photo .hero__bg { background: url("../img/hero-canelas.jpg") 70% 30% / cover no-repeat; }
.hero--photo::before {
  background:
    linear-gradient(90deg, rgba(4,23,14,.96) 0%, rgba(4,23,14,.86) 34%, rgba(6,32,20,.55) 60%, rgba(6,32,20,.35) 100%),
    linear-gradient(0deg, var(--green-950) 2%, rgba(4,23,14,0) 42%),
    linear-gradient(180deg, rgba(4,23,14,.75) 0%, rgba(4,23,14,0) 22%);
}
.hero--photo { min-height: clamp(460px, 38vw, 560px); }
.hero--photo .hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
/* As faixas passam a ser uma banda no fundo do cabeçalho */
.hero--photo .hero__stripes { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 6px; transform: none; gap: 0; opacity: 1; }
.hero__team { margin: 0; justify-self: end; width: min(100%, 460px); transform: rotate(2.2deg); }
.hero__team img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 6px solid #fff; border-radius: 4px; box-shadow: 14px 14px 0 var(--yellow-400), 0 24px 50px -12px rgba(0,0,0,.7); }
.hero__team figcaption { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0 8px; padding: 6px 12px 6px 6px; border-radius: 20px; background: var(--green-900); border: 1px solid var(--line-strong); font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.hero__team figcaption img { width: 28px; height: 28px; border: 0; box-shadow: none; aspect-ratio: auto; }
.hero__credit { position: absolute; right: var(--gutter); bottom: 14px; margin: 0; font-size: .7rem; color: rgba(238,245,236,.75); text-shadow: 0 1px 2px rgba(0,0,0,.8); }
@media (max-width: 1280px) { .hero__team { width: min(100%, 380px); } }
@media (max-width: 860px) {
  .hero--photo .hero__inner { grid-template-columns: 1fr; }
  .hero__team { justify-self: start; width: min(100%, 420px); transform: rotate(-1.5deg); margin-top: 8px; }
  .hero--photo .hero__bg { background-position: 60% 30%; }
}
.page-hero::before { background: url("../img/hero-canelas.jpg") center 35% / cover; opacity: .4; }
/* Emblema oficial: disco branco já incluído no ficheiro */
.sidebar__crest, .topbar__brand img, .footer__brand img { border-radius: 50%; }
.hero--photo .hero__inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr); }
.hero--photo .hero__title { font-size: clamp(2.6rem, 4.4vw, 4.1rem); }
.hero__team figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 18px 0 0; padding: 0; background: none; border: 0; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 400; font-size: .8rem; }
.hero__team-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 20px; background: var(--green-900); border: 1px solid var(--line-strong); font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.hero__credit { position: static; font-size: .72rem; color: var(--text-muted); text-shadow: none; }
@media (max-width: 860px) {
  .hero--photo .hero__inner { grid-template-columns: 1fr; }
  .hero__team { justify-self: stretch; width: 100%; max-width: 460px; transform: rotate(-1.2deg); margin: 6px 0 4px; }
  .hero__team img { box-shadow: 9px 9px 0 var(--yellow-400), 0 18px 36px -12px rgba(0,0,0,.7); }
}
@media (min-width: 861px) { .hero__team { margin-right: 16px; } }
