:root {
  --verde: #2f9e41;
  --verde-escuro: #1e7a2e;
  --verde-claro: #e8f5eb;
  --vermelho: #cd191e;
  --laranja: #e8820c;
  --laranja-claro: #fff4e6;
  --cinza-bg: #f5f5f3;
  --cinza-texto: #1a1a1a;
  --cinza-muted: #5a5a5a;
  --branco: #ffffff;
  --borda: #d8ddd0;
  --radius: 10px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--cinza-bg);
  color: var(--cinza-texto);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  background: var(--branco);
  border-bottom: 1px solid var(--borda);
  position: sticky; top: 0; z-index: 100;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  color: var(--cinza-muted); transition: color .2s;
}
.nav-links a:hover { color: var(--verde); }
.nav-cta {
  background: var(--verde); color: white;
  border: none; border-radius: 8px;
  padding: 8px 20px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: 'Open Sans', sans-serif;
  transition: background .2s;
}
.nav-cta:hover { background: var(--verde-escuro); }

/* ── CARROSSEL ── */
.carousel-wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - 64px);
  min-height: 400px;
  max-height: 900px;
  overflow: hidden;
  background: #1a1a1a;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .7s cubic-bezier(.77,0,.175,1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.08) 100%);
}
.slide-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 5%; max-width: 700px; z-index: 2;
}
.slide-logo { margin-bottom: 1.5rem; }
.slide-logo img { height: 70px; width: auto; }
.slide-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(47,158,65,.9); color: white;
  border-radius: 100px; padding: 5px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; margin-bottom: 1rem; width: fit-content;
}
.slide-title {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800; line-height: 1.15;
  color: #fff; margin-bottom: .75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.slide-title em { font-style: normal; color: #7ee89a; }
.slide-desc {
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(255,255,255,.85); line-height: 1.65;
  margin-bottom: 1.75rem; max-width: 520px;
}
.slide-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Botões */
.btn-primary {
  background: var(--verde); color: white;
  border: none; border-radius: 10px;
  padding: 13px 28px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: 'Open Sans', sans-serif;
  transition: all .2s;
}
.btn-primary:hover { background: var(--verde-escuro); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--cinza-texto);
  border: 1.5px solid var(--borda); border-radius: 10px;
  padding: 13px 28px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: 'Open Sans', sans-serif;
  transition: all .2s;
}
.btn-secondary:hover { border-color: var(--verde); color: var(--verde); }
.btn-outline-white {
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,.6); border-radius: 10px;
  padding: 13px 28px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: 'Open Sans', sans-serif;
  transition: all .2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: white; }

/* Controles carrossel */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.3);
  color: white; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.carousel-btn:hover { background: rgba(255,255,255,.28); }
.carousel-btn.prev { left: 1.5rem; }
.carousel-btn.next { right: 1.5rem; }
.carousel-dots {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%); z-index: 10;
  display: flex; gap: 8px; align-items: center;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer; padding: 0;
  transition: all .3s;
}
.carousel-dot.active { background: white; width: 22px; border-radius: 4px; }
.carousel-stats {
  position: absolute; bottom: 1.5rem; right: 2rem;
  z-index: 10; display: flex; gap: 16px; align-items: center;
}
.c-stat { text-align: center; color: white; }
.c-stat-num {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.4rem; font-weight: 800; line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.c-stat-label {
  font-size: 10px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; opacity: .75;
}
.c-stat-divider { width: 1px; height: 30px; background: rgba(255,255,255,.25); }

/* ── SEÇÕES GERAIS ── */
section { padding: 4rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--verde); margin-bottom: .5rem;
}
.section-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--cinza-texto); margin-bottom: .75rem;
}
.section-sub {
  font-size: 16px; color: var(--cinza-muted);
  max-width: 540px; line-height: 1.6; margin-bottom: 2.5rem;
}

/* ── PROJETOS ── */
#projetos { background: var(--cinza-bg); }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: 7px 18px; border-radius: 100px;
  border: 1.5px solid var(--borda);
  background: var(--branco); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: 'Open Sans', sans-serif;
  color: var(--cinza-muted); transition: all .2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--verde); border-color: var(--verde); color: white;
}
.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.projeto-card {
  background: var(--branco); border: 1px solid var(--borda);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: all .25s; cursor: pointer; position: relative; overflow: hidden;
}
.projeto-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--verde); transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.projeto-card:hover { transform: translateY(-3px); border-color: var(--verde); }
.projeto-card:hover::before { transform: scaleX(1); }
.projeto-area {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600; margin-bottom: 1rem;
}
.area-redes    { background: #e6f0ff; color: #1a55b8; }
.area-infra    { background: #fff0e6; color: #b85a00; }
.area-seguranca{ background: #fce6e6; color: #b81a1a; }
.area-cloud    { background: #e6f7ee; color: #007a3a; }
.area-dev      { background: #f0e6ff; color: #6a1ab8; }
.projeto-titulo {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--cinza-texto); margin-bottom: .6rem; line-height: 1.3;
}
.projeto-desc { font-size: 14px; color: var(--cinza-muted); line-height: 1.6; margin-bottom: 1.2rem; }
.projeto-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1rem; border-top: 1px solid var(--borda);
}
.projeto-professor { font-size: 13px; color: var(--cinza-muted); font-weight: 500; }
.projeto-alunos { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--cinza-muted); }
.projeto-alunos svg { width: 14px; height: 14px; fill: var(--cinza-muted); }
.projeto-status {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
  background: var(--verde-claro); color: var(--verde-escuro);
}
.projeto-status.andamento { background: #fff4e6; color: #b85a00; }

/* ── ÁREAS ── */
#areas { background: var(--branco); border-top: 1px solid var(--borda); }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.area-card { border: 1px solid var(--borda); border-radius: var(--radius); padding: 1.25rem; transition: all .2s; }
.area-card:hover { border-color: var(--verde); background: var(--verde-claro); }
.area-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: .75rem; font-size: 20px; }
.area-card h4 { font-size: 14px; font-weight: 700; color: var(--cinza-texto); margin-bottom: 4px; }
.area-card p  { font-size: 12px; color: var(--cinza-muted); }

/* ── EQUIPE ── */
#equipe { background: var(--cinza-bg); }
.equipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.professor-card {
  background: var(--branco); border: 1px solid var(--borda);
  border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; transition: all .25s;
}
.professor-card:hover { border-color: var(--verde); transform: translateY(-2px); }
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-family: 'Open Sans', sans-serif; font-size: 20px; font-weight: 800; color: white;
}
.professor-card h4 { font-size: 15px; font-weight: 700; color: var(--cinza-texto); margin-bottom: 4px; }
.professor-card .area-tag {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
  background: var(--verde-claro); color: var(--verde-escuro); margin-bottom: .5rem;
}
.professor-card p { font-size: 12px; color: var(--cinza-muted); }

/* ── EVENTOS ── */
#eventos { background: var(--branco); border-top: 1px solid var(--borda); }
.eventos-lista { display: flex; flex-direction: column; gap: 12px; }
.evento-item {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--cinza-bg); border: 1px solid var(--borda);
  border-radius: var(--radius); padding: 1.25rem; transition: all .2s;
}
.evento-item:hover { border-color: var(--verde); }
.evento-data {
  background: var(--verde); color: white;
  border-radius: 10px; padding: 8px 12px;
  text-align: center; min-width: 52px; flex-shrink: 0;
}
.evento-data .dia { font-family: 'Open Sans', sans-serif; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.evento-data .mes { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; opacity: .85; }
.evento-info h4 { font-size: 15px; font-weight: 700; color: var(--cinza-texto); margin-bottom: 4px; }
.evento-info p  { font-size: 13px; color: var(--cinza-muted); line-height: 1.5; }
.evento-tipo {
  display: inline-block; padding: 2px 8px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
  background: var(--laranja-claro); color: #b85a00; margin-top: 6px;
}

/* ── CONTATO ── */
#contato { background: var(--verde); color: white; }
#contato .section-label { color: rgba(255,255,255,.7); }
#contato .section-title { color: white; }
#contato .section-sub   { color: rgba(255,255,255,.8); max-width: 100%; }
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contato-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 10px; padding: 10px 14px;
  font-size: 14px; color: white; font-family: 'Open Sans', sans-serif;
  transition: border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.45); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: rgba(255,255,255,.7); }
.form-group select option { color: var(--cinza-texto); background: white; }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-form {
  background: white; color: var(--verde-escuro);
  border: none; border-radius: 10px;
  padding: 13px 28px; font-size: 15px; font-weight: 800;
  cursor: pointer; font-family: 'Open Sans', sans-serif;
  transition: all .2s; align-self: flex-start;
}
.btn-form:hover { background: var(--cinza-bg); transform: translateY(-1px); }
.contato-info { display: flex; flex-direction: column; gap: 20px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-icon svg { width: 18px; height: 18px; fill: white; }
.info-item h5 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 2px; }
.info-item p  { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.5; }

/* ── FOOTER ── */
footer {
  background: var(--cinza-texto); color: rgba(255,255,255,.6);
  padding: 2rem; text-align: center; font-size: 13px;
}
footer strong { color: white; }

/* ── ANIMAÇÕES ── */
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp .6s ease forwards; }
.fade-up:nth-child(1) { animation-delay: .1s; }
.fade-up:nth-child(2) { animation-delay: .2s; }
.fade-up:nth-child(3) { animation-delay: .3s; }
.fade-up:nth-child(4) { animation-delay: .4s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVO ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .contato-grid { grid-template-columns: 1fr; }
  .slide-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, rgba(0,0,0,.65) 60%, rgba(0,0,0,.8) 100%);
  }
  .slide-content { justify-content: flex-end; padding: 2rem 1.5rem 4rem; max-width: 100%; }
  .slide-logo img { height: 50px; }
  .slide-desc { display: none; }
  .carousel-stats { display: none; }
  .carousel-btn { width: 36px; height: 36px; font-size: 14px; }
  .carousel-btn.prev { left: .75rem; }
  .carousel-btn.next { right: .75rem; }
}