html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "Staatliches", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* =========================================================
   MENU LATERAL REESTILIZADO (CA-*)
   ========================================================= */
.CAmenu-lateral {
  position: fixed;
  top: 0;
  left: 0;
  width: 15%;
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #CCC 100%);
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
  font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}

.CAmenu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.CAmenu-header img {
  width: 60%;
  max-width: 160px;
  height: auto;
  margin: 0 auto;
}

.CAmenu-close {
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  color: #888;
  display: none;
  line-height: 1;
}

.CAmenu-mobile {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #223A8F;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  transition: background-color 0.2s;
}

.CAmenu-mobile:hover {
  background-color: #2b4ab0;
}

.CAmenu-links {
  padding: 16px 8px;
}

.CAmenu-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 4px 0;
  border-radius: 12px;
  color: #223A8F;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: #CCC solid 1px;
  border-top: #aaaaaa 2px solid;
}

.CAmenu-links a i {
  font-size: 1.3rem;
  color: #FFD204;
  background-color: #223A8F;
  padding: 10px;
  border-radius: 25px;
}

.CAmenu-links a:hover {
  background-color: rgba(34, 58, 143, 0.06);
  color: #223A8F;
}

.CAmenu-links a.ativo {
  background-color: #223A8F;
  color: #FFD204;
  box-shadow: 0 6px 12px rgba(34, 58, 143, 0.2);
}

.CAmenu-links a.ativo i {
  color: #223A8F;
  background-color: #FFF;
  padding: 10px;
  border-radius: 25px;
}

.CA-link-destaque {
  background-color: #223A8F !important;
  color: white !important;
  box-shadow: 0 6px 14px rgba(34, 58, 143, 0.3);
}

.CA-link-destaque i {
  color: white !important;
}

.menu-item {
  margin: 4px 0;
}

.CA-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
}

.CA-trigger-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.CA-trigger-left i {
  color: #FFD204 !important;
}

.CA-caret {
  transition: transform 0.2s;
  background-color: transparent !important;
  padding: 0px !important;
  border-radius: 0px !important;
  color: #223A8F !important;
}

.CA-dropdown-body {
  display: none;
  margin-left: 16px;
  margin-top: 4px;
  border-left: 2px solid #223A8F;
  padding-left: 8px;
}

.CA-dropdown-body.open {
  display: block;
}

.CA-sublink {
  padding: 10px 16px !important;
  margin: 2px 0 !important;
  font-size: 0.9rem !important;
  color: #223A8F !important;
  border-radius: 8px !important;
}

.CA-sublink:hover {
  background-color: #eef2f6 !important;
  color: #223A8F !important;
}

.CA-sublink.cat-ativa {
  background-color: #223A8F !important;
  color: #FFD204 !important;
  font-weight: 600;
}

.CA-dropdown-trigger.trigger-ativo {
  background-color: #223A8F;
  color: #FFD204;
  font-weight: 500;
}

.CA-dropdown-trigger.trigger-ativo i {
  color: #223A8F !important;
  background-color: #FFF;
  padding: 10px;
  border-radius: 25px;
}

.CA-link-externo {
  background-color: transparent;
}

.CA-link-sair {
  margin-top: 20px !important;
  border-top: 1px solid #e0e4e9;
  color: #223A8F !important;
}

.CA-link-sair i {
  color: #FFD204 !important;
}

.CA-link-sair:hover {
  background-color: #fee9e7 !important;
}

/* =========================================================
   CONTEÚDO PRINCIPAL
   ========================================================= */
.CAconteudo {
  margin-left: 15%;
  width: 85%;
  padding: 0px;
}

.CAbanner {
  display: flex;
  align-items: center;
  background: #e2e2e2;
  padding: 10px;
}

.CAbanner h4 {
  text-transform: uppercase;
}

.CAbanner img {
  height: 75px;
  margin-right: 15px;
}

/* =========================================================
   COLLAPSIBLE (MATERIALIZE) – mantido para outras páginas
   ========================================================= */
.collapsible {
  background-color: #2c3e50;
  border: none;
}

.collapsible-header {
  color: white;
  font-size: 16px;
  padding: 12px;
  background-color: #2c3e50;
  border-bottom: 2px solid #172a38;
  display: flex;
  align-items: center;
}

.collapsible-header i {
  margin-right: 10px;
}

.collapsible-body {
  background-color: #34495e;
  padding: 10px;
}

.collapsible-body a {
  display: flex;
  align-items: center;
  color: white;
  padding: 8px 10px;
  font-size: 14px;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.collapsible-body a:hover {
  background: #3a4f63;
  border-left: 3px solid #e2e2e2;
}

.collapsible-body a i {
  margin-right: 8px;
  font-size: 18px;
}

/* =========================================================
   LAYOUT DE PARTIDAS, CLASSIFICAÇÃO, ARTILHARIA
   ========================================================= */
.rowPartidas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px;
  margin: 25px auto;
}

.rowClassificacao {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px;
  margin: 0px auto;
}

.rowArtilharia {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 800px;
  margin: 0px auto;
  padding: 0;
}

.ColPartidas {
  padding: 5px;
  background-color: rgba(255, 255, 255, 0.125);
}

.btnCaptureS {
  margin-left: 47.75%;
  margin-bottom: 10px;
}

.backgroundIMG {
  padding-top: 150px;
  height: 1000px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto;
}

.backgroundIMGClass {
  height: 1000px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto;
}

.backgroundIMGStory {
  height: 1920px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto;
}

.cabecPai {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  z-index: 995;
}

th {
  text-align: center;
  font-size: 1.5em;
}

td {
  text-align: center;
  font-size: 1.2em;
}

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline {
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
}

.timeline-item {
  display: flex;
  margin-bottom: 10px;
  position: relative;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #401111;
  margin: 10px 14px;
}

.timeline-content {
  background: #fff;
  padding-left: 5px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex: 1;
}

.timeline-content p {
  margin: 2px;
}

/* =========================================================
   BARRA DE INSCRIÇÃO
   ========================================================= */
.barra-inscricao {
  background-color: #ecf0f1;
  height: auto;
  padding: 10px 20px;
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.info-esquerda {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.info-direita {
  text-align: right;
}

.categoria-mobile,
.voltar-mobile {
  display: none;
}

/* =========================================================
   SÚMULA (TABELAS)
   ========================================================= */
.tg {
  border-color: #ccc;
}

.tg td {
  background-color: #fff;
  border-bottom: 1px #ccc solid;
  font-size: 14px;
  overflow: hidden;
  padding: 2px;
}

.tg th {
  background-color: #f0f0f0;
  font-size: 14px;
  overflow: hidden;
}

.tg .ConteudoNumeracao {
  text-align: center;
  vertical-align: middle;
}

.tg .TituloNumeracao {
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  padding: 10px 5px;
}

.tg .TituloNumeracaoLibero {
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  padding: 2px;
}

.TA1 { width: 25%; }
.TA2 { width: 55%; }
.TA3 { width: 10%; }
.TA4 { width: 10%; }
.TS1 { width: 15%; }
.TS2 { width: 75%; }
.TS3 { width: 5%; }
.TS4 { width: 5%; }

.numero-opcao {
  display: inline-block;
  border: 1px solid #aaa;
  cursor: pointer;
  font-size: 0.75em;
  background-color: #f0f0f0;
  color: #000;
  border-radius: 3px;
  text-align: center;
}

.numero-opcao.ativo {
  background-color: #223A8F;
  color: #FFF;
}

.RSTitulo {
  margin: 10px auto 0 auto;
  background-color: #CCC;
  color: #000;
  font-size: 0.75em;
}

.RSPai {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.RSInput {
  margin: 0 !important;
  width: 80% !important;
  text-align: center !important;
  background-color: #f0f0f0 !important;
  height: 30px !important;
  color: #000 !important;
}

.h5Cabecalho {
  margin: 5px;
  font-size: 1em;
  line-height: 1em;
}

.logoCabecalho {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.SetsCabecalho {
  background-color: #223A8F;
  color: #e2e2e2;
  margin: 2px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.SetsCabecalho h5 {
  margin: 5px 5px 35px 5px;
  font-size: 4em;
  line-height: 0.75em;
}

.SetsCabecalho h5 span {
  font-size: 0.2em;
  line-height: 0.25em;
}

.PontosCabecalho {
  background-color: #e2e2e2;
  margin: 2px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.PontosCabecalho h5 {
  margin: 5px;
  font-size: 4em;
}

.XCabecalho {
  margin: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.XCabecalho h5 {
  margin: 5px;
  font-size: 4em;
}

.titulosModais {
  margin: 0 auto;
  background-color: #CCC;
  color: #000;
  font-size: 1.5em;
}

.custom-number-input {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Staatliches', sans-serif;
}

.custom-number-input button {
  background-color: #223A8F;
  color: #fff;
  border: none;
  width: 24px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  font-family: 'Staatliches', sans-serif;
}

.custom-input {
  text-align: center;
  width: 45px;
  height: 30px;
  font-size: 18px;
  font-family: 'Staatliches', sans-serif;
  border: none;
  background-color: #f0f0f0;
  color: #000;
}

/* Remove setinhas padrão no Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove setinhas padrão no Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* =========================================================
   PILARES (visual + fotos)
   ========================================================= */
.pilares-title {
  color: #223A8F;
  margin: 40px 0 18px 0;
}

.pilares-wrap {
  position: relative;
  padding: 0 10px;
}

.pilares-scroller {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 14px 0;
}

.pilares-scroller::-webkit-scrollbar {
  height: 8px;
}

.pilares-scroller::-webkit-scrollbar-thumb {
  background: rgba(34, 58, 143, 0.25);
  border-radius: 999px;
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.pilar-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  scroll-snap-align: start;
}

.pilar-mosaic {
  position: relative;
  height: 220px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  background: #f3f4f6;
}

.pilar-mosaic .m1 {
  grid-row: 1 / span 2;
  grid-column: 1;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.pilar-mosaic .m2,
.pilar-mosaic .m3 {
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.pilar-mosaic .m2 {
  grid-row: 1;
  grid-column: 2;
}

.pilar-mosaic .m3 {
  grid-row: 2;
  grid-column: 2;
}

.pilar-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 58, 143, 0.92);
  color: #FFD204;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pilar-badge i {
  font-size: 20px;
  color: #FFD204;
}

.pilar-body {
  padding: 12px 12px 14px 12px;
}

.pilar-chips .chip {
  background: #223A8F;
  color: #fff;
  font-weight: 600;
  margin: 0 8px 8px 0;
}

.pilares-arrow {
  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(34, 58, 143, 0.95);
  color: #FFD204;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
}

.pilares-arrow i {
  color: #FFD204;
}

.pilares-left {
  left: 4px;
}

.pilares-right {
  right: 4px;
}

/* =========================================================
   MEDIA QUERIES (RESPONSIVIDADE)
   ========================================================= */
@media (max-width: 992px) {
  .pilares-grid {
    grid-template-columns: repeat(4, minmax(260px, 300px));
    padding: 0 6px;
  }
}

@media (max-width: 768px) {
  .CAmenu-lateral {
    transform: translateX(-100%);
    width: 260px;
    border-radius: 0 16px 16px 0;
  }

  .CAmenu-lateral.aberto {
    transform: translateX(0);
  }

  .CAmenu-mobile {
    display: flex;
  }

  .CAmenu-close {
    display: block;
  }

  .CAmenu-header img {
    width: 70%;
  }

  .CAconteudo {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .barra-inscricao {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-esquerda {
    flex-direction: column;
    align-items: flex-start;
  }

  .categoria-mobile,
  .voltar-mobile {
    display: block;
    margin-top: 5px;
  }

  .voltar-desktop {
    display: none;
  }
}

@media (max-width: 480px) {
  .CAmenu-lateral {
    width: 85%;
  }
}