/* ============================================================
   ESTILOS.CSS — Design System Moderno
   Compatível com todas as classes existentes
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Sora:wght@600;700&display=swap');

/* -- Variáveis globais -- */
:root {
  --primary:        #1a5cff;
  --primary-dark:   #0f3fd4;
  --primary-light:  #e8eeff;
  --primary-mid:    #4a7bff;
  --success:        #0fae6e;
  --success-light:  #e6faf3;
  --warning:        #f59e0b;
  --danger:         #e24b4a;
  --surface:        #ffffff;
  --bg:             #f5f6fa;
  --border:         #e2e6f0;
  --text:           #1a1f36;
  --muted:          #6b7194;
  --font:           'Plus Jakarta Sans', 'Nunito', sans-serif;
  --display:        'Sora', sans-serif;
  --radius:         16px;
  --radius-sm:      10px;
  --radius-xs:      6px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow:         0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.12);
  --transition:     all 0.18s ease;
}

/* -- Reset base -- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.6;
}

/* -- Links -- */
a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.15s;
}
a:hover {
  color: var(--primary-dark);
}

/* -- Headings -- */
h1 {
  font-family: var(--display);
  color: var(--text);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  margin-bottom: 20px;
}
h1::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

h2 {
  font-family: var(--display);
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
}

h3 {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  margin-bottom: 16px;
}
h3::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--primary-mid);
  border-radius: 2px;
}

hr {
  width: 80%;
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 20px auto;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.site {
  display: grid;
  grid-template-columns: 1fr;
  width: 1200px;
  grid-gap: 16px;
  margin: 0 auto;
}

.grade_cabecalho {
  display: grid;
  grid-template-columns: 5fr 3fr;
  grid-gap: 16px;
}

.redes_sociais {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 6px;
  text-align: left;
  width: 98%;
}

.conteudo {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
}
.conteudo img {
  max-width: 50%;
  float: left;
  padding: 12px;
  border-radius: var(--radius-sm);
}

.colunas2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px;
  grid-gap: 14px;
}

.colunas3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 14px;
}

.colunas6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 6px;
}

.colunas42 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 12px;
}

.colunas51 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 12px;
}

.colunas24 {
  display: grid;
  grid-template-columns: 2fr 4fr;
  grid-gap: 14px;
}

.grid-container1 {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr;
  grid-gap: 14px;
}

.grid-container2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 14px;
}

.grid-container3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
}

.grid-rodape {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 14px;
}

.lista_documentos {
  display: grid;
  grid-template-columns: 1fr 7fr;
  grid-gap: 6px;
}

/* ============================================================
   BARRAS
   ============================================================ */

.barra {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-mid));
}

.barra_topo {
  width: 100%;
  background-color: #0d4f18;
  padding: 6px 16px;
  color: #fff;
}
.barra_topo a {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  transition: color 0.15s;
}
.barra_topo a:hover {
  color: #fff;
}

/* ============================================================
   BOX — card principal
   ============================================================ */

.box {
  padding: 20px;
  background-color: var(--surface);
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.box img {
  max-width: 100%;
  border-radius: var(--radius-sm);
}
.box:hover {
  background-color: #fafbff;
}

/* ============================================================
   BUTTONS
   ============================================================ */

button {
  font-family: var(--font);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  margin: 4px;
  transition: var(--transition);
  padding: 10px 16px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  background: var(--muted);
}

button:hover {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

button:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* Variação azul (classe .blue) */
.blue {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.blue:hover {
  background: linear-gradient(135deg, var(--primary-dark), #0a2fa0) !important;
  transform: translateY(-2px);
}

/* Botão neve */
.neve {
  background: linear-gradient(135deg, #eef1f5, #e6e9f0);
  color: var(--text);
}

/* -- Botão brilhante (inscrição em destaque) -- */
.botao-brilhante {
  position: relative;
  overflow: hidden;
  animation: brilho-atencao 3s infinite;
}
.botao-brilhante::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255,255,255,0.18);
  transform: skewX(-20deg);
  animation: brilho-sweep 3s infinite;
}

@keyframes brilho-atencao {
  0%, 100% { box-shadow: 0 0 6px rgba(255,255,255,0.3); }
  50%       { box-shadow: 0 0 18px rgba(255,255,255,0.85), 0 0 24px #4a7bff; }
}

@keyframes brilho-sweep {
  0%   { left: -75%; }
  50%, 100% { left: 125%; }
}

/* Botão redondo */
.btn_redondo {
  border-radius: 50px;
  background: var(--surface);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: 1rem;
  text-align: center;
  padding: 8px 20px;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: none;
  transition: var(--transition);
}
.btn_redondo:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Botão voltar ao topo */
.btn-topo {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: none;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}
.btn-topo:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */

.floating-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  border: none;
  outline: none;
  background-color: #25D366;
  color: white;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  display: flex;
  align-items: center;
  transition: var(--transition);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
}

.floating-button:hover {
  background-color: #128C7E;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(18,140,126,0.35);
}

.floating-button .icon {
  margin-right: 8px;
  font-size: 18px;
}

.floating-button .text {
  display: none;
}

@media (min-width: 768px) {
  .floating-button .text {
    display: inline;
  }
}

/* ============================================================
   TOPO / LOGO
   ============================================================ */

.topo {
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
}

.logo {
  padding-top: 12px;
  max-width: 80%;
}

/* ============================================================
   FOOTER / RODAPÉ
   ============================================================ */

footer {
	background: #f0f0f0;
	color: #000;
	width: 100%;
}

footer a {
  color: $000;
  text-decoration: none;
  transition: color 0.15s;
}
footer a:hover {
  color: #e0e0e0;
}

.rodape {
  margin: 0 auto;
  width: 1200px;
}

.links_rodape a {
  display: block;
  margin: 3px 0;
}

/* ============================================================
   REDES SOCIAIS
   ============================================================ */

.linkedin  { color: #0077B5; }
.facebook  { color: #3B5998; }
.instagram { color: #C13584; }
.youtube   { color: #FF0000; }

/* ============================================================
   SLIDESHOW
   ============================================================ */

#slideshow {
  margin: 6px auto;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.slide {
  display: none;
  width: 100%;
  height: auto;
  transition: opacity 0.6s ease-in-out;
}

.slide.active {
  display: block;
}

.slide-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 10px;
  padding-bottom: 6px;
}

.slide-item {
  flex-shrink: 0;
  scroll-snap-align: start;
}

.slide-item img {
  width: 100%;
  border-radius: var(--radius-sm);
}

/* ============================================================
   CURSOS
   ============================================================ */

.cursos {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 12px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  margin: 10px;
  padding: 16px;
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   DOCUMENTOS
   ============================================================ */

.icone {
  border: 1px dashed var(--border);
  padding: 12px;
  text-align: center;
  border-radius: var(--radius-sm);
}

.documento {
  border: 1px dashed var(--border);
  padding: 12px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   CONTADOR REGRESSIVO
   ============================================================ */

.contador {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border);
  text-align: center;
  margin: 5px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  min-width: 70px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.numeros {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

#regressivo {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 auto;
}

/* ============================================================
   RESULTADOS
   ============================================================ */

.resultados {
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border);
  text-align: center;
  padding: 6px 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   UTILIDADES
   ============================================================ */

.desktop { display: block; }
.mobile  { display: none; }

.thin {
  font-weight: 300;
  line-height: 1.6;
}

.maiusculas {
  text-transform: uppercase;
}

.centralizar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.medicos {
  border-radius: var(--radius);
}

.btn-link {
  display: inline-block;
  padding: 6px 14px;
  border: none;
  background-color: var(--muted);
  color: #fff;
  border-radius: var(--radius-xs);
  transition: var(--transition);
  font-size: 13px;
}
.btn-link:hover {
  background-color: var(--primary);
  color: #fff;
}

/* ============================================================
   TABELA DE LOTES
   ============================================================ */

.tabela-lotes {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  overflow: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tabela-lotes thead {
  background: linear-gradient(135deg, #1a1f36, #2c3e6e);
  color: #fff;
}

.tabela-lotes th,
.tabela-lotes td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 0.5px solid var(--border);
  font-size: 14px;
}

.tabela-lotes tbody tr:nth-child(even) {
  background-color: #f9faff;
}

.tabela-lotes tbody tr:nth-child(odd) {
  background-color: var(--surface);
}

.tabela-lotes tbody tr:hover {
  background-color: var(--primary-light);
  transition: background 0.12s;
}

.lote-vigente {
  background-color: #e8eeff !important;
  font-weight: 600;
  position: relative;
}

.lote-vigente::after {
  content: "VIGENTE";
  position: absolute;
  top: 4px;
  right: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}

.valor-lote {
  font-weight: 700;
  color: var(--success);
}

.periodo-lote {
  font-size: 12px;
  color: var(--muted);
}

.curso-titulo {
  font-weight: 600;
  color: #1a1f36;
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25%       { transform: scale(1.15); }
  50%       { transform: scale(0.9); }
  75%       { transform: scale(1.15); }
}

/* ============================================================
   RESPONSIVO — Mobile
   ============================================================ */

@media screen and (max-width: 768px) {

  .desktop { display: none; }
  .mobile  { display: block; }

  .slide { height: auto; }

  .site {
	width: 100%;
    max-width: 100%;
    grid-gap: 10px;
	overflow:hidden
  }

  .logo {
    text-align: center;
    max-width: 80%;
  }

  .grade_cabecalho,
  .grid-container1,
  .colunas2,
  .grid-container2,
  .colunas3,
  .colunas24 {
    grid-template-columns: 1fr;
  }

  .grid-container3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .colunas42 {
    grid-template-columns: repeat(2, 1fr);
  }

  .colunas51 {
    grid-template-columns: repeat(2, 1fr);
  }

  .colunas6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-rodape {
    grid-template-columns: 1fr;
  }

  .rodape {
    width: 100%;
  }

  .redessociais,
  .webmail,
  .contatos {
    display: none;
  }

  .conteudo {
    grid-template-columns: 1fr;
  }
  .conteudo img {
    max-width: 100%;
    padding: 4px;
    float: none;
  }

  #slideshow {
    width: 100%;
    border-radius: var(--radius-sm);
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }

  /* Tabela de lotes responsiva */
  .tabela-lotes thead {
    display: none;
  }

  .tabela-lotes tr {
    display: block;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .tabela-lotes td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 0.5px solid var(--border);
    font-size: 13px;
  }

  .tabela-lotes td.curso-titulo {
    background: linear-gradient(135deg, #1a1f36, #2c3e6e);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: block;
    text-align: center;
    padding: 14px;
  }

  .tabela-lotes td::before {
    content: attr(data-title);
    font-weight: 600;
    color: var(--muted);
    font-size: 12px;
  }
}