/* =========================================================
   CARTOLEIROS ANÔNIMOS — STYLE.CSS (mobile-first)
   Objetivo: HOME profissional + base para todas as páginas
   ========================================================= */


/* ===================== 1) RESET + BASE GLOBAL ===================== */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* evita "estouro" lateral */
}

body{
  font-family: "Segoe UI", Arial, sans-serif;
  color: #111;
  background: #f2f4f7;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{
  color: inherit;
  text-decoration: none;
}

a:hover{
  text-decoration: underline;
}

img, svg, video{
  display: block;
  max-width: 100%;
  height: auto;
}


/* ===================== 2) VARIÁVEIS DO TEMA ===================== */
:root{
  /* Cores */
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: rgb(250,250,250);
  --text: #111;
  --muted: rgba(17,17,17,.72);
  --line: rgba(0,0,0,.10);

  /* Destaques */
  --primary: #111;          /* botões */
  --primaryText: #fff;
  --accent: #0b5bd3;        /* links */
  --silver: #c0c0c0;

  /* Layout */
  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 10px 28px rgba(0,0,0,.10);

  /* Espaçamento */
  --pad: 16px;
  --gap: 12px;

  /* Tipografia */
  --fs-base: 16px;
  --fs-small: 13px;
}


/* ===================== 3) TIPOGRAFIA (MOBILE-FIRST) ===================== */
body{ font-size: var(--fs-base); }

h1,h2,h3,h4,h5{
  margin: 0;
  line-height: 1.2;
}

p{
  margin: 0 0 12px 0;
  color: var(--text);
}

.small, .muted{
  font-size: var(--fs-small);
  color: var(--muted);
}

.titulo-pagina{
  text-align: center;
  margin: 14px 12px 8px;
  font-size: clamp(20px, 5vw, 28px);
  letter-spacing: .5px;
}


/* ===================== 4) LAYOUT GLOBAL / CONTAINER ===================== */
.container{
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 12px 22px;
}

.section{
  margin: 14px 0;
}


/* ===================== 5) IMAGENS (ANTI-ZONA) ===================== */
.img-box{
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.img-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===================== 6) BANNER / TOPO ===================== */
#banner{
  width: 100%;
  background: black;
  border-bottom: 1px solid var(--line);
  position: relative; /* ✅ */
}

#bannertitulo{
  max-width: 1060px;
  margin: 0 auto;
  padding: 10px 12px;
  text-align: center;
}

#logo_banner{
  width: 100%;
  max-width: 920px;   /* controla o tamanho do banner */
  margin: 0 auto;
}


/* ===================== 7) MENU RETRÁTIL (MOBILE) ===================== */

/* Checkbox oculto */
#check{
  display:none;
}

/* Ícone hambúrguer */
#icone{
  cursor:pointer;
  position:absolute;     /* FIXED para acompanhar rolagem */
  top:0px;
  left:6px;
  z-index:10001;
  background:rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  padding:10px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.45);
}

#icone span{
  display:block;
  width:26px;
  height:3px;
  background:#fff;
  margin:5px 0;
  transition:.3s;
  border-radius:999px;
}

/* Barra do menu */
.barra{
  position:fixed;     /* IMPORTANTE */
  top:0;
  left:-320px;
  width:320px;
  height:100vh;
  background:rgba(20,20,20,.96);
  backdrop-filter: blur(8px);
  box-shadow:5px 0 25px rgba(0,0,0,.6);
  transition:.35s;
  padding-top:90px;
  z-index:10000;
  overflow-y:auto;
}

/* Abrir menu */
#check:checked ~ .barra{
  left:0;
}

/* Overlay escurecendo o site */
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  opacity:0;
  pointer-events:none;
  transition:.25s;
  z-index:9999;
}

#check:checked ~ .overlay{
  opacity:1;
  pointer-events:auto;
}

/* Links */
.barra nav a{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 22px;
  color:#f1f1f1;
  text-decoration:none;
  font-size:17px;
  font-weight:700;
  border-left:4px solid transparent;
  transition:.25s;
}

/* Ícones */
.barra nav img{
  width:26px;
  height:26px;
  object-fit:contain;
}

/* Hover */
.barra nav a:hover{
  background:rgba(0,174,239,0.12);
  border-left:4px solid #3B82F6;
  padding-left:28px;
}

/* Link ativo */
.barra nav a.ativo{
  background:rgba(255,215,0,0.12);
  border-left:4px solid #3B82F6;
  color:#3B82F6;
}

/* Scroll bonito */
.barra::-webkit-scrollbar{
  width:6px;
}

.barra::-webkit-scrollbar-thumb{
  background:#3B82F6;
  border-radius:10px;
}
/* ===== Submenu estilo Netflix (sem JS) ===== */
.submenu-check{ display:none; }

.menu-group{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 22px;
  color:#f1f1f1;
  font-size:17px;
  font-weight:700;
  border-left:4px solid transparent;
  cursor:pointer;
  transition:.25s;
}

.menu-group__left{
  display:flex;
  align-items:center;
  gap:12px;
}

.menu-group img{
  width:26px;
  height:26px;
  object-fit:contain;
}

/* Hover do grupo */
.menu-group:hover{
  background:rgba(0,174,239,0.12);
  border-left:4px solid #3B82F6;
  padding-left:28px;
}

/* Setinha */
.menu-group__chev{
  transition: transform .25s;
  opacity:.9;
}

/* Conteúdo do submenu (fechado) */
.submenu{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
  margin: 4px 12px 10px 34px; /* “recuo Netflix” */
  border-left: 1px solid rgba(255,255,255,.12);
}

/* Links do submenu */
.submenu__link{
  display:block;
  padding:10px 14px;
  color:#f1f1f1;
  text-decoration:none;
  font-size:16px;
  border-radius:12px;
  transition:.2s;
}

.submenu__link:hover{
  background:rgba(255,255,255,.06);
  text-decoration:none;
}

/* Quando abre */
#subcomp:checked ~ .submenu{
  max-height: 460px; /* altura suficiente pros 7 links */
}

#subcomp:checked + .menu-group .menu-group__chev{
  transform: rotate(180deg);
}

/* Competições ativo (quando você colocar class="ativo") */
.menu-group.ativo{
  background: rgba(255,215,0,0.12);
  border-left: 4px solid #3B82F6;
  color: #3B82F6;
}

.submenu__link.ativo{
  background: rgba(0,174,239,0.12);
  border: 1px solid rgba(59,130,246,.35);
}

/* ===================== FAIXA TÍTULO DA PÁGINA ===================== */

.faixa-titulo{
  width: 100%;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1px 0px;
  border-top: 1px solid rgba(255,255,255);
  border-bottom: 1px solid rgba(225,255,255,.12);
}

.faixa-titulo h1{
  margin: 0;
  font-size: clamp(18px, 4.8vw, 28px);
  letter-spacing: .8px;
  font-weight: 900;
}

/* ===== IDENTIDADE DAS COMPETIÇÕES ===== */

.liga{
  background:#c62828;   /* vermelho mais nobre */
  color:#fff;
}

.copatrimonio{
  background:linear-gradient(180deg,#d9d9d9,#a6a6a6);
  color:#111;
}

.supercopa{
  background:#1b5e20;   /* verde escuro troféu */
  color:#fff;
}

.copadoscampeoes{
  background:#0d47a1;   /* azul profundo */
  color:#fff;
}

.copadaliga{
  background:#ffb300;   /* ouro mais premium */
  color:#111;
}

.recopa{
  background:#fdd835;   /* amarelo troféu FIFA */
  color:#111;
}

.copadomundo{
  background:#e91e63;   /* rosa mais esportivo */
  color:#fff;
}

/* Páginas institucionais */
.demais{
  background:#000;
  color:#fff;
}

/* ===================== 8) CARDS / CAIXAS ===================== */
.card{
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: var(--pad);
  margin: 14px 0;
}

.card__header{
  margin-bottom: 10px;
}

.card__header h3{
  font-size: 18px;
  margin-bottom: 2px;
}

.lead{
  font-style: italic;
  font-weight: 700;
  margin-bottom: 10px;
}


/* ===================== 9) BOTÕES / LINKS DE AÇÃO ===================== */
.btn-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* toque no celular */
  padding: 10px 14px;
  border-radius: 14px;
  background:#0b5bd3;
  color:#fff;
  font-weight: 900;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn:hover{
  text-decoration: none;
  filter: brightness(0.95);
}

.btn--ghost{
  background: rgba(255,255,255,.15);
  color:#fff;
  border:1px solid rgba(255,255,255,.35);
}

.link{
  color: var(--accent);
  font-weight: 800;
}


/* ===================== 10) HERO (HOME) ===================== */
.hero{
  background: url("_Imagens/bg-estadio.jpg") center/cover no-repeat;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  color: #fff;

  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0px;
  margin-top: 16px;
}


.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}

.hero > *{
  position: relative;
  z-index: 1;
}
.hero-card{
  background: rgba(20,20,20,.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  padding: 18px;
}

.hero__ico{
  width: 100%;
  flex: 0 0 auto;
}
.hero__media{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;   /* mantém altura mínima no mobile */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0px;
  overflow: hidden;
}


.hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.70), rgba(0,0,0,.15));
  pointer-events: none;   /* permite clicar nos botões abaixo */
}

.hero__content{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #fff;
}

.hero__content h2{ margin: 0 0 6px; }
.hero__content p{ margin: 0 0 12px; color:#fff; }


/* Chips (etiqeutas)*/
.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip{
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.chip--silver{
  background: var(--silver);
  color: #111;
}


/* ===================== 11) GRID (MOBILE -> 1 COLUNA) ===================== */
.grid-2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}


/* ===================== 12) RANKING SIMPLES ===================== */
.ranking{
  margin: 8px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}


/* ===================== 13) ACESSO RÁPIDO ===================== */
.quick{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.quick__item{
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.quick__item img{
  width: 28px;
  height: 28px;
  object-fit: contain;
}


/* ===================== 14) JANELA DE TABELA / ROLAGEM LATERAL ===================== */
.janela-tabela{
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 10px;
}

.janela-tabela img{
  max-width: none; /* permite imagem ser maior que a tela */
  height: auto;
}


/* ===================== 15) RODAPÉ ===================== */
#rodape{
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding: 14px 12px 18px;
  text-align: center;
}

#rodape h4{
  margin: 0;
  font-size: 14px;
}

#redessociais{
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}

#redessociais img{
  width: 36px;
  height: 36px;
  object-fit: contain;
}


/* ===================== 16) DESKTOP (AJUSTE) ===================== */
@media (min-width: 884px){

  /* Container com mais respiro */
  .container{ padding: 0 16px 28px; }

  /* Hero vira "duas áreas" mais confortáveis */
  .hero{
    padding: 18px;
  }

  .hero__top{
    align-items: center;
  }

  /* Grid 2 colunas no desktop */
  .grid-2{
    grid-template-columns: 1fr 1fr;
  }

  /* Acesso rápido 4 colunas no desktop */
  .quick{
    grid-template-columns: repeat(4, 1fr);
  }

  /* Menu: opcionalmente mais largo em desktop */
  .barra{
    width: 320px;
    left: -320px;
  }

  #check:checked ~ .barra{
    left: 0;
  }
}

/* ===================== 17) RANKING ===================== */

.ranking {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ranking li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ranking img {
  width: 28px;   /* tamanho do escudo */
  height: 28px;
  object-fit: contain;
}


.pos{
  font-size: 12px;
  margin-left: 6px;
  font-weight: bold;
}

.up{ color: #2ecc71; }     /* verde */
.down{ color: #e74c3c; }   /* vermelho */
.same{ color: #f1c40f; }   /* amarelo */

.linha{
  flex: 1;
  border-bottom: 1px dotted rgba(0,0,0,0.25);
  margin: 0 6px;
}

.pts{
  font-size: 12px;
  color: #000;
  font-weight: 600;
  white-space: nowrap;
}


/* ===================== 18) TIMELINE DA TEMPORADA (5 ETAPAS • SEM SCROLL) ===================== */

/* Base (mobile-first): 5 colunas SEM scroll */
.season-track{
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  align-items: start;
  overflow: hidden;                 /* garante: sem scroll */
  padding: 10px 0 56px;             /* espaço do "Agora" embaixo */
}

/* Linha atrás das taças */
.season-track::before{
  content:"";
  position:absolute;
  left: 18px;                       /* ajuste do início da linha */
  right: 18px;                      /* ajuste do fim da linha */
  top: clamp(34px, 10vw, 44px);     /* altura responsiva da linha */
  height: 2px;
  background: rgba(0,0,0,.12);
  z-index: 0;
}

/* Taças/itens */
.stage{
  position: relative;
  z-index: 1;
  text-align: center;
  min-width: 0;
  padding: 0 2px;
}

.trophy{
  width: clamp(56px, 8vw, 96px);   /* CABE na menor tela */
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.label{
  display: block;
  margin-top: 4px;
  font-weight: 800;
  font-size: clamp(9px, 2.8vw, 12px);
  line-height: 1;
}

/* Passado / atual */
.stage.is-done{ opacity: .6; }

.stage.is-now .trophy{
  transform: scale(1.06);
}

/* "Agora" flutuando (não empurra layout) */
.stage.is-now{ position: relative; }

.stage.is-now .now{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: clamp(50px, 14vw, 76px);
  width: clamp(56px, 18vw, 96px);
  display: grid;
  justify-items: center;
  gap: 6px;
}
/* "hat é o bonequinho abaixo das taças) */
.hat{
  width: clamp(56px, 8vw, 96px);
  height: auto;
  object-fit: contain;
}

.now__info{
  font-size: clamp(8px, 2.4vw, 10px);
  line-height: 1.1;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,.04);
}

/* Desktop: mais respiro (continua 5 colunas, só cresce) */
@media (min-width: 884px){
  .season-track{ gap: 4px; padding-bottom: 80px; }
  .trophy{ width: clamp(56px, 8vw, 96px) }
  .label{ font-size: 13px; }
  .season-track::before{ top: 44px; left: 26px; right: 26px; }
}

/* ===== HERO COPA ===== */

.copa-ico{
  width: 70px;   /* ajuste aqui */
  height: auto;
}

.hero-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.cta-mini .btn{
  padding: 2px 10px;   /* diminui altura e largura */
  font-size: 14px;     /* texto menor */
  border-radius: 6px;  /* opcional: deixa proporcional */
}

/* ===== LINK DE TODAS AS VEZES QUE EU USO HREF ===== */

.link-destaque{
  color:#1e90ff;
  text-decoration:none;
  font-weight:bold;
}

.link-destaque:hover{
  text-decoration:underline;
}

.tabela-grande{
  width: 900px;   /* ← escolha o tamanho inicial */
  height: auto;
}