/* ==========================================================
   AFCEC - Layout novo (usado por index-novo.html)
   Paleta herdada do tema original: #001532 (azul) / #3CD3AD (verde)
   ========================================================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@300;400;500&display=swap");

:root {
  --azul: #001532;
  --azul-2: #0a2a5c;
  --verde: #3CD3AD;
  --texto: #444;
  --cinza-bg: #f5f7fb;
  --gradiente: linear-gradient(45deg, #001532, #3CD3AD);
  --raio: 14px;
  --sombra: 0 10px 30px rgba(0, 21, 50, .08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--texto);
  background: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Poppins", sans-serif;
  color: var(--azul);
}

a {
  color: var(--azul-2);
}

a:hover {
  color: var(--verde);
  text-decoration: none;
}

section {
  padding: 90px 0;
  scroll-margin-top: 70px;
}

.bg-cinza {
  background: var(--cinza-bg);
}

/* ---------- Títulos de seção ---------- */
.titulo-secao {
  text-align: center;
  margin-bottom: 50px;
}

.titulo-secao .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 8px;
}

.titulo-secao h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 14px;
}

.titulo-secao p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Botões ---------- */
.btn-afcec {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all .25s;
  text-align: center;
}

.btn-afcec.primario {
  background: var(--verde);
  color: var(--azul);
}

.btn-afcec.primario:hover {
  background: #fff;
  color: var(--azul);
}

.btn-afcec.contorno {
  border-color: #fff;
  color: #fff;
}

.btn-afcec.contorno:hover {
  background: #fff;
  color: var(--azul);
}

.btn-afcec.escuro {
  background: var(--azul);
  color: #fff;
}

.btn-afcec.escuro:hover {
  background: var(--verde);
  color: var(--azul);
}

.btn-afcec.pequeno {
  padding: 8px 18px;
  font-size: 14px;
  margin-top: 9%;
}

/* ---------- Header ---------- */
.topo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background .3s, box-shadow .3s;
  padding: 10px 0;
}

.topo.rolado,
.topo.menu-aberto {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.topo .logo img {
  height: 52px;
}

.topo .nav-link {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #fff !important;
  padding: 8px 12px !important;
}

.topo.rolado .nav-link,
.topo.menu-aberto .nav-link {
  color: var(--azul) !important;
}

.topo .nav-link:hover,
.topo .nav-link.active {
  color: var(--verde) !important;
}

.topo .dropdown-menu {
  border: 0;
  border-radius: 10px;
  box-shadow: var(--sombra);
  padding: 8px 0;
}

.topo .dropdown-item {
  font-size: 14px;
  padding: 8px 18px;
  cursor: pointer;
}

.topo .dropdown-item:hover {
  background: var(--cinza-bg);
  color: var(--azul);
}

.topo .btn-apoie {
  margin-left: 12px;
}

.topo .navbar-toggler {
  border: 0;
  color: #fff;
  font-size: 24px;
}

.topo.rolado .navbar-toggler,
.topo.menu-aberto .navbar-toggler {
  color: var(--azul);
}

.topo .navbar-toggler:focus {
  outline: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 500px);
  display: flex;
  align-items: center;
  color: #fff;
  padding: 0px 0 0px;
  margin-top: -8px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .selo {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero p.lead {
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 34px;
}

.hero .botoes .btn-afcec {
  margin: 0 12px 12px 0;
}

.hero .video-hero {
  width: 100%;
  max-width: 320px;
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
  border: 6px solid rgba(255, 255, 255, .25);
}

/* ---------- Sobre ---------- */
.card-mvv {
  background: #fff;
  border-radius: var(--raio);
  padding: 34px 28px;
  box-shadow: var(--sombra);
  height: 100%;
  transition: transform .25s;
}

.card-mvv:hover {
  transform: translateY(-6px);
}

.card-mvv .icone {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: var(--gradiente);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-mvv h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-mvv p,
.card-mvv li {
  font-size: 15px;
  line-height: 1.7;
}

.card-mvv ul {
  padding-left: 18px;
  margin: 0;
}

.subtitulo {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin: 70px 0 30px;
}

.nucleo {
  display: block;
  background: #fff;
  border-radius: var(--raio);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--sombra);
  height: 100%;
  color: var(--azul);
  transition: all .25s;
  cursor: pointer;
}

.nucleo:hover {
  background: var(--azul);
  color: #fff;
}

.nucleo i {
  font-size: 30px;
  color: var(--verde);
  margin-bottom: 10px;
}

.nucleo h5 {
  font-size: 17px;
  margin: 0;
  color: inherit;
}

.nucleo small {
  display: block;
  opacity: .7;
  margin-top: 4px;
}

.numeros {
  background: var(--azul);
  border-radius: var(--raio);
  padding: 40px 20px;
  margin-top: 70px;
  color: #fff;
}

.numero {
  text-align: center;
  padding: 10px;
}

.numero strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--verde);
  line-height: 1.1;
}

.numero span {
  font-size: 15px;
  opacity: .85;
}

/* ---------- Eventos ---------- */
.card-evento {
  background: #fff;
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-evento .capa {
  height: 190px;
  background: var(--gradiente) center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 54px;
}

.card-evento .capa.capa-aulas-basquete {
  background-image: url("../img/eventos/capa-aulas-basquete.jpg");
}

.card-evento .capa .categoria {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  color: var(--azul);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.card-evento .corpo {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-evento h4 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 14px;
}

.card-evento .info {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 15px;
}

.card-evento .info li {
  margin-bottom: 6px;
}

.card-evento .info i {
  color: var(--verde);
  width: 20px;
}

.card-evento .btn-afcec {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Galeria em mosaico (tiles) ----------
   Grade de 10 colunas com padrão que se repete a cada 10 fotos:
   pequena | grande | grande      grande | pequena | grande      larga | larga
   pequena |        |                    | pequena |                          */
.galeria-tiles {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-auto-rows: 170px;
  grid-auto-flow: dense;
  gap: 12px;
}

.galeria-tiles .tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e9edf3;
  grid-column: span 2;
}

.galeria-tiles .tile:nth-child(10n+2),
.galeria-tiles .tile:nth-child(10n+3),
.galeria-tiles .tile:nth-child(10n+5),
.galeria-tiles .tile:nth-child(10n+7) {
  grid-column: span 4;
  grid-row: span 2;
}

.galeria-tiles .tile:nth-child(10n+9),
.galeria-tiles .tile:nth-child(10n+10) {
  grid-column: span 5;
  grid-row: span 2;
}

.galeria-tiles img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.galeria-tiles .tile::after {
  content: "\f00e";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  background: rgba(0, 21, 50, .45);
  opacity: 0;
  transition: opacity .3s;
}

.galeria-tiles .tile.video::after {
  content: "\f04b";
  opacity: 1;
  background: rgba(0, 21, 50, .2);
}

.galeria-tiles .tile:hover img {
  transform: scale(1.06);
}

.galeria-tiles .tile:hover::after {
  opacity: 1;
}

.mfp-title a {
  color: var(--verde);
  margin-left: 8px;
}

.video-institucional {
  width: 100%;
  max-height: 520px;
  border-radius: var(--raio);
  background: #000;
  box-shadow: var(--sombra);
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.insta-grid .instagram-media {
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}

/* ---------- Patrocínio ---------- */
.card-cota {
  background: #fff;
  border-radius: var(--raio);
  padding: 34px 28px;
  box-shadow: var(--sombra);
  height: 100%;
  text-align: center;
  border-top: 6px solid;
}

.card-cota.ouro {
  border-color: #d4a72c;
}

.card-cota.prata {
  border-color: #a8b0b9;
}

.card-cota.bronze {
  border-color: #b2703c;
}

.card-cota img {
  width: 110px;
  margin-bottom: 14px;
}

.card-cota h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-cota .rotulo {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 20px;
}

.card-cota ul {
  text-align: left;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
}

.beneficios {
  background: var(--gradiente);
  color: #fff;
  border-radius: var(--raio);
  padding: 40px;
  margin-top: 50px;
}

.beneficios h3 {
  color: #fff;
  font-size: 24px;
}

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

.beneficios li {
  margin-bottom: 10px;
}

.beneficios li i {
  color: var(--verde);
  margin-right: 8px;
}

.logos-parceiros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 50px;
}

.logos-parceiros .logo-vaga {
  width: 170px;
  height: 90px;
  border: 2px dashed #c9d2e0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a97ab;
  font-size: 14px;
  text-align: center;
}

/* ---------- Contato ---------- */
.contato-form .form-control {
  height: 50px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.contato-form textarea.form-control {
  height: 140px;
}

.mapa iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--raio);
}

/* ---------- Footer ---------- */
.rodape {
  background: var(--azul);
  color: rgba(255, 255, 255, .8);
  padding: 70px 0 0;
  font-size: 15px;
}

.rodape h5 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 18px;
}

.rodape a {
  color: rgba(255, 255, 255, .8);
  cursor: pointer;
}

.rodape a:hover {
  color: var(--verde);
}

.rodape ul {
  list-style: none;
  padding: 0;
}

.rodape li {
  margin-bottom: 10px;
}

.rodape li i {
  color: var(--verde);
  width: 22px;
}

.rodape .logo-rodape {
  height: 60px;
  margin-bottom: 18px;
}

.rodape .redes a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 17px;
}

.rodape .redes a:hover {
  background: var(--verde);
  color: var(--azul);
}

.rodape .pix-box {
  background: rgba(255, 255, 255, .07);
  border-radius: 10px;
  padding: 14px 16px;
}

.rodape .copy {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

/* ---------- Modal PIX ---------- */
.modal-content {
  border: 0;
  border-radius: var(--raio);
}

.pix-chave {
  background: var(--cinza-bg);
  border-radius: 10px;
  padding: 14px;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--azul);
}

/* ---------- Popups (iframes dos núcleos/transparência) ---------- */
.popup-iframe {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-iframe .caixa {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 85vh;
  background: #fff;
  border-radius: var(--raio);
  overflow: hidden;
}

.popup-iframe iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.popup-iframe .fechar {
  position: absolute;
  top: 8px;
  right: 12px;
  background: var(--azul);
  color: #fff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  z-index: 1;
}

/* ---------- Responsivo ---------- */
@media (max-width: 991px) {
  .topo .navbar-collapse {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    margin-top: 10px;
  }

  .topo .nav-link {
    color: var(--azul) !important;
  }

  .topo .btn-apoie {
    margin: 10px 0 0;
    display: block;
  }

  .hero {
    text-align: center;
  }

  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .video-hero {
    margin-top: 40px;
  }

  .galeria-tiles {
    grid-auto-rows: 130px;
  }
}

@media (max-width: 767px) {
  .galeria-tiles {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 8px;
  }

  .galeria-tiles .tile,
  .galeria-tiles .tile:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .galeria-tiles .tile:nth-child(3n+1) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 575px) {
  section {
    padding: 64px 0;
  }

  .hero h1 {
    font-size: 34px;
  }

  .titulo-secao h2 {
    font-size: 28px;
  }

  .beneficios {
    padding: 28px 20px;
  }
}