/* =========================================================
   FATECH - style.css
   Cores do projeto: ciano #96E7EB, preto #0A0A0A, laranja #FFC800
   ========================================================= */

:root {
  --ciano: #96E7EB;
  --preto: #0A0A0A;
  --laranja: #FFC800;
  --branco: #FFFFFF;
  --ciano-claro: #E6F9FA;
  --borda: 3px solid var(--preto);
  --sombra: 6px 6px 0 var(--preto);
  --fonte-titulo: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --fonte-texto: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--preto);
  background: var(--branco);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }

:focus-visible { outline: 3px solid var(--preto); outline-offset: 3px; }

.container { width: min(1100px, 92%); margin-inline: auto; }
.container-estreito { width: min(760px, 92%); margin-inline: auto; }

.secao { padding: 4rem 0; }
.secao-tint {
  background: var(--ciano-claro);
  border-block: var(--borda);
}
.secao-titulo { margin-bottom: 2rem; }
.secao-titulo p { margin-top: .6rem; max-width: 55ch; }

.pular {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--laranja);
  padding: .6rem 1rem;
  font-weight: 800;
  z-index: 100;
}
.pular:focus { left: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: .95rem;
  padding: .9rem 1.6rem;
  background: var(--laranja);
  color: var(--preto);
  border: var(--borda);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--preto);
  text-decoration: none;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--preto); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--preto); }
.btn-ciano { background: var(--ciano); }
.btn-branco { background: var(--branco); }
.btn-pequeno { padding: .6rem 1.1rem; font-size: .85rem; box-shadow: 3px 3px 0 var(--preto); }

/* ---------- Cabeçalho ---------- */
.site-header {
  background: var(--preto);
  border-bottom: 4px solid var(--laranja);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header :focus-visible { outline-color: var(--laranja); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--laranja);
  text-decoration: none;
}
.logo img { height: 40px; width: auto; }

.nav ul { list-style: none; display: flex; gap: .4rem; }
.nav a {
  display: block;
  padding: .5rem 1rem;
  color: var(--branco);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}
.nav a:hover { background: var(--ciano); color: var(--preto); }
.nav a[aria-current="page"] { background: var(--laranja); color: var(--preto); }

.menu-btn {
  display: none;
  font: inherit;
  font-weight: 700;
  color: var(--branco);
  background: transparent;
  border: 2px solid var(--laranja);
  border-radius: 10px;
  padding: .4rem 1rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--preto);
    padding: .5rem 4% 1rem;
    border-bottom: 4px solid var(--laranja);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
}

/* ---------- Topo das páginas (fundo ciano quadriculado) ---------- */
.hero,
.pagina-topo {
  background-color: var(--ciano);
  background-image:
    linear-gradient(rgba(10, 10, 10, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, .08) 1px, transparent 1px);
  background-size: 36px 36px;
  border-bottom: var(--borda);
}
.pagina-topo { padding: 3rem 0; }
.pagina-topo p { font-size: 1.15rem; font-weight: 500; max-width: 52ch; margin-top: .8rem; }

/* ---------- Página inicial: hero ---------- */
.hero { padding: 4rem 0 4.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.hero .lead {
  font-size: 1.25rem;
  font-weight: 500;
  max-width: 32ch;
  margin: 1.2rem 0 1.8rem;
}
.data-selo {
  display: inline-block;
  background: var(--laranja);
  border: var(--borda);
  border-radius: 12px;
  padding: .5rem 1.1rem;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 1.15rem;
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 var(--preto);
}

.painel-contagem {
  background: var(--branco);
  border: var(--borda);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--preto);
  padding: 1.5rem;
  text-align: center;
}
.painel-contagem > p { font-weight: 700; margin-bottom: 1rem; }

.contagem {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
  margin-bottom: 1.6rem;
}
.tile { background: var(--preto); border-radius: 12px; padding: .8rem .2rem; }
.tile .num {
  display: block;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.1;
  color: var(--laranja);
  font-variant-numeric: tabular-nums;
}
.tile .rot { display: block; color: var(--ciano); font-size: .8rem; font-weight: 700; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Introdução ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3rem;
  align-items: start;
}
.intro-grid h2 { margin-bottom: 1.2rem; }
.intro-grid p + p { margin-top: 1rem; }

.horarios {
  background: var(--laranja);
  border: var(--borda);
  border-radius: 20px;
  box-shadow: var(--sombra);
  padding: 1.5rem;
}
.horarios h3 { margin-bottom: 1rem; }
.horarios dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; }
.horarios dt { font-weight: 800; }
.horarios ul { padding-left: 1.2rem; margin-top: .3rem; }
.horarios .local { margin-top: 1.2rem; padding-top: 1rem; border-top: 2px solid var(--preto); font-size: .95rem; }

@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Imagem / placeholder de projeto ---------- */
.proj-img { width: 100%; height: 100%; object-fit: cover; }
.proj-img-vazia {
  background: var(--preto);
  color: var(--laranja);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1rem;
}
.tema {
  display: inline-block;
  background: var(--laranja);
  border: 2px solid var(--preto);
  border-radius: 999px;
  padding: .15rem .9rem;
  font-weight: 800;
  font-size: .9rem;
}

/* ---------- Carrossel ---------- */
.carrossel {
  background: var(--branco);
  border: var(--borda);
  border-radius: 20px;
  box-shadow: 8px 8px 0 var(--preto);
  overflow: hidden;
}
.carrossel-janela { overflow: hidden; }
.pista { display: flex; transition: transform .5s ease; }

.slide { min-width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.slide .proj-img { border-right: var(--borda); min-height: 280px; }
.slide-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .8rem;
}

.carrossel-controles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  background: var(--laranja);
  border-top: var(--borda);
}
.seta {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--borda);
  background: var(--branco);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.seta:hover { background: var(--ciano); }
.pontos { display: flex; gap: .6rem; }
.ponto {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid var(--preto);
  background: var(--branco);
  cursor: pointer;
}
.ponto[aria-current="true"] { background: var(--preto); }

@media (max-width: 760px) {
  .slide { grid-template-columns: 1fr; }
  .slide .proj-img { border-right: 0; border-bottom: var(--borda); min-height: 200px; }
  .slide-info { padding: 1.4rem; }
}

/* ---------- Alunos responsáveis ---------- */
.grade-alunos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.aluno {
  background: var(--branco);
  border: var(--borda);
  border-radius: 20px;
  box-shadow: var(--sombra);
  padding: 1.5rem;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ciano);
  border: var(--borda);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  margin-bottom: 1rem;
}
.aluno h3 { font-size: 1rem; margin-bottom: .5rem; }
.aluno p { font-size: .95rem; }
.aluno-prof { background: var(--preto); color: var(--branco); }
.aluno-prof .avatar { background: var(--laranja); color: var(--preto); }
.aluno-prof .cargo { color: var(--laranja); font-weight: 800; }

/* ---------- Cronograma: mapa mental ---------- */
.mapa {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 70px;
  align-items: center;
}
.mapa-centro {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--preto);
  color: var(--laranja);
  border: var(--borda);
  box-shadow: 6px 6px 0 var(--laranja);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 1.5rem;
}
.mapa-centro small {
  font-family: var(--fonte-texto);
  font-size: .85rem;
  font-weight: 700;
  color: var(--branco);
}
.mapa-centro::before,
.mapa-centro::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 70px;
  height: 4px;
  background: var(--preto);
  transform: translateY(-50%);
}
.mapa-centro::before { right: 100%; }
.mapa-centro::after { left: 100%; }

.dia {
  display: block;
  width: fit-content;
  background: var(--preto);
  color: var(--laranja);
  border-radius: 999px;
  padding: .4rem 1.1rem;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.ramo-esq .dia { margin-left: auto; }

.nos {
  list-style: none;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nos::before {
  content: "";
  position: absolute;
  top: 2.6rem;
  bottom: 2.6rem;
  width: 4px;
  background: var(--preto);
}
.ramo-esq .nos { padding-right: 35px; }
.ramo-esq .nos::before { right: 0; }
.ramo-dir .nos { padding-left: 35px; }
.ramo-dir .nos::before { left: 0; }

.no {
  position: relative;
  min-height: 5.2rem;
  padding: .8rem 1rem;
  background: var(--ciano);
  border: var(--borda);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--preto);
}
.ramo-dir .no { background: var(--laranja); }
.no::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35px;
  height: 4px;
  background: var(--preto);
  transform: translateY(-50%);
}
.ramo-esq .no::after { left: 100%; }
.ramo-dir .no::after { right: 100%; }

.no strong { display: block; font-family: var(--fonte-titulo); font-size: .95rem; line-height: 1.25; }
.no p { font-size: .92rem; line-height: 1.4; margin-top: .25rem; }
.hora {
  display: inline-block;
  background: var(--preto);
  color: var(--branco);
  border: 2px solid var(--preto);
  border-radius: 999px;
  padding: 0 .65rem;
  margin-bottom: .35rem;
  font-size: .8rem;
  font-weight: 800;
}
.hora-vazia { background: transparent; color: var(--preto); border-style: dashed; }
.no.pendente { background: var(--branco); border-style: dashed; box-shadow: none; }

.legenda { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; margin-top: 3rem; font-weight: 600; }
.legenda span { display: inline-flex; align-items: center; gap: .5rem; }
.legenda i {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: var(--borda);
  border-radius: 6px;
  background: var(--ciano);
}
.legenda .l-dia2 { background: var(--laranja); }
.legenda .l-pend { background: var(--branco); border-style: dashed; }

@media (max-width: 820px) {
  .mapa { grid-template-columns: 1fr; gap: 2.5rem; justify-items: center; }
  .mapa-centro { order: -1; }
  .mapa-centro::before, .mapa-centro::after { display: none; }
  .ramo { width: 100%; }
  .ramo-esq .dia { margin-left: 0; }
  .ramo-esq .nos, .ramo-dir .nos { padding: 0 0 0 35px; }
  .ramo-esq .nos::before, .ramo-dir .nos::before { left: 0; right: auto; }
  .ramo-esq .no::after, .ramo-dir .no::after { left: -35px; right: auto; }
}

/* ---------- Inscrição ---------- */
.abas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.aba {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.4rem;
  background: var(--branco);
  color: var(--preto);
  border: var(--borda);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--preto);
  cursor: pointer;
}
.aba:hover { background: var(--ciano); }
.aba[aria-pressed="true"] { background: var(--laranja); }

.painel {
  background: var(--branco);
  border: var(--borda);
  border-radius: 20px;
  box-shadow: 8px 8px 0 var(--preto);
  padding: 2rem;
}
.painel h2 { font-size: 1.4rem; margin-bottom: .6rem; }
.painel > p,
.painel form > p { margin-bottom: 1.5rem; }

.lista-dados-inscricao {
  list-style: none;
  display: grid;
  gap: .8rem;
  margin: 1rem 0 1.5rem;
  padding: 0;
}
.lista-dados-inscricao li {
  position: relative;
  background: var(--ciano-claro);
  border: 2px solid var(--preto);
  border-radius: 12px;
  padding: .8rem 1rem .8rem 2.8rem;
  box-shadow: 3px 3px 0 var(--preto);
  font-weight: 700;
  line-height: 1.4;
}
.lista-dados-inscricao li::before {
  content: "✓";
  position: absolute;
  left: .8rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--laranja);
  border: 2px solid var(--preto);
  font-size: .8rem;
  font-weight: 900;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.campo-largo { grid-column: 1 / -1; }
label { display: block; font-weight: 800; margin-bottom: .3rem; }
.opcional { font-weight: 500; color: #444; }

input[type="text"], input[type="file"] {
  width: 100%;
  font: inherit;
  padding: .75rem 1rem;
  background: var(--branco);
  border: var(--borda);
  border-radius: 10px;
}
input[type="text"]:focus-visible, input[type="file"]:focus-visible {
  outline: 3px solid var(--preto);
  box-shadow: 4px 4px 0 var(--laranja);
}
input:user-invalid { border-color: #B00020; }
#logo-preview {
  max-height: 110px;
  margin-top: .8rem;
  border: var(--borda);
  border-radius: 10px;
  background: var(--branco);
}
.form-acoes { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.resumo-lista { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 1.2rem 0 1.6rem; }
.resumo-lista dt { font-weight: 800; }
.aviso {
  background: var(--ciano-claro);
  border: 2px dashed var(--preto);
  border-radius: 12px;
  padding: .8rem 1rem;
  font-size: .95rem;
  margin-bottom: 1.4rem;
}
.contato-prof { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.2rem; margin-bottom: 1.2rem; }
.link-regulamento { margin-top: 1.4rem; font-size: .95rem; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .painel { padding: 1.4rem; }
}

/* ---------- Projetos ---------- */
.grade-proj {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
}
.card-proj {
  display: flex;
  flex-direction: column;
  background: var(--branco);
  border: var(--borda);
  border-radius: 20px;
  box-shadow: var(--sombra);
  overflow: hidden;
}
.card-proj .proj-img { height: auto; aspect-ratio: 16 / 10; border-bottom: var(--borda); }
.card-proj-corpo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  padding: 1.2rem 1.3rem 1.5rem;
}
.card-proj h3 { font-size: 1.1rem; }
.alunos strong { display: block; }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--preto);
  color: var(--branco);
  border-top: 4px solid var(--laranja);
  padding: 3rem 0 1.5rem;
}
.site-footer :focus-visible { outline-color: var(--laranja); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: 1.6rem; color: var(--laranja); margin-bottom: .6rem; }
.site-footer h3 { font-size: 1rem; color: var(--ciano); margin-bottom: .6rem; }
.site-footer p { font-size: .95rem; }
.site-footer p + p { margin-top: .6rem; }
.site-footer a { color: var(--branco); }
.site-footer a:hover { color: var(--laranja); }
/* ---------- Patrocinadores (no rodapé) ---------- */
.patrocinadores {
  border-top: 1px solid #333;
  margin-top: 2.5rem;
  padding-top: 2rem;
}
.patrocinadores h3 {
  text-align: center;
  margin-bottom: 1.4rem;
}
.lista-patrocinadores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.2rem;
  list-style: none;
}
.lista-patrocinadores li {
  display: flex;
}
.patrocinador-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--branco);
  border: var(--borda);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--laranja);
  padding: .9rem 1.4rem;
  transition: transform .15s;
}
.patrocinador-logo:hover { transform: translateY(-3px); }
.patrocinador-logo img {
  height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}
@media (max-width: 540px) {
  .patrocinador-logo { padding: .7rem 1.1rem; }
  .patrocinador-logo img { height: 34px; max-width: 120px; }
}

.copy {
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: .9rem;
  color: #bbb;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
