/* =========================================================================
   Conexão Tech — folha de estilo compartilhada
   UniFil + Sebrae · Cambé · Ibiporã · Arapongas · Rolândia
   Usada pela home (index.html) e pelas 4 páginas de cidade.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens de design (paleta extraída da arte oficial do projeto)
   ---------------------------------------------------------------------- */
:root {
  /* Roxos profundos — base do degradê da arte */
  --ink-950: #0d0725;
  --ink-900: #1a0636;
  --ink-800: #1e0f45;
  --ink-700: #2a1560;
  --ink-600: #362080;

  /* Núcleo do degradê de fundo — do centro (mais escuro) para os cantos
     (mais claros). --core-950 é a cor "Fundo" exata da paleta oficial
     Conexão Tech (#1a0636). */
  --core-950: #1a0636;
  --core-900: #1b0e42;
  --core-800: #241455;
  --core-700: #2e1a69;
  --core-600: #3a2280;
  --core-500: #472c93;

  /* Azuis de transição */
  --indigo-700: #23276e;
  --indigo-600: #2b3a8f;

  /* Turquesa — cor de destaque da arte. --teal-500 é a cor "Fundo" (o
     turquesa) da paleta oficial Conexão Tech (#30c9cd); --teal-100 é a
     cor "Título" clara da mesma paleta (#bdfcfd). */
  --teal-600: #14b8ae;
  --teal-500: #30c9cd;
  --teal-400: #3bdcd0;
  --teal-300: #6fe5dc;
  --teal-200: #a6f0ea;
  --teal-100: #bdfcfd;

  /* Texto — paleta oficial Conexão Tech: título em #edeefe, subtítulo e
     texto corrido em branco puro. */
  --text: #edeefe;
  --text-soft: #ffffff;
  --text-muted: #a9cfcc;

  /* Superfícies */
  --surface: rgba(255, 255, 255, 0.038);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(166, 240, 234, 0.16);
  --border-strong: rgba(166, 240, 234, 0.34);

  /* Tipografia — paleta oficial Conexão Tech: título e cabeçalho em
     Helvetica Bold; subtítulo e textos corridos em Helvetica Neue LT Pro
     (peso 55 Roman ≈ regular/400). Nenhuma das duas é uma web font — não
     há arquivo de fonte pra hospedar, então o navegador usa a que estiver
     instalada no sistema (Helvetica Neue é nativa no macOS/iOS; Windows e
     Android caem no fallback Arial). Se quiser a mesma renderização em
     qualquer aparelho, é preciso o arquivo da fonte licenciada para
     @font-face. */
  --font-display: Helvetica, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-body: "Helvetica Neue LT Pro", "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", ui-monospace, monospace;

  /* Métrica */
  --header-h: 96px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1180px;

  --shadow-soft: 0 18px 50px -20px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 0 1px rgba(59, 220, 208, 0.25), 0 14px 44px -14px rgba(48, 201, 205, 0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------------------
   2. Reset enxuto
   ---------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* impede que o header fixo cubra o título da seção ancorada */
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--ink-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Degradê radial: núcleo escuro (#1a0636, cor "Fundo" da paleta oficial) no centro da
   tela, abrindo para tons mais claros conforme se aproxima dos cantos.
   A camada de turquesa fica por cima, bem suave, só para manter o acento
   da identidade nos extremos. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(130% 105% at 50% 50%, rgba(48, 201, 205, 0) 42%, rgba(48, 201, 205, 0.14) 78%, rgba(48, 201, 205, 0.24) 100%),
    radial-gradient(ellipse 118% 100% at 50% 50%,
      var(--core-950) 0%,
      var(--core-900) 22%,
      var(--core-800) 44%,
      var(--core-700) 64%,
      var(--core-600) 82%,
      var(--core-500) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  /* Mesmo "estilo tecnológico" usado na faixa do Hero, só que bem mais
     discreto aqui (é fundo do site inteiro, atrás de todo o texto): grade
     de pontos, trilhas de circuito com nós, código binário e os códigos
     hex originais, todos em baixa opacidade. */
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.6px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='none' stroke='white' stroke-opacity='0.045' stroke-width='1.4'%3E%3Cpath d='M10 10H75V60H145'/%3E%3Cpath d='M24 170V125H85V78'/%3E%3C/g%3E%3Cg fill='white' fill-opacity='0.07'%3E%3Ccircle cx='75' cy='60' r='2.6'/%3E%3Ccircle cx='145' cy='60' r='2.6'/%3E%3Ccircle cx='85' cy='78' r='2.6'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='140'%3E%3Cg font-family='monospace' font-size='13' fill='white' fill-opacity='0.04'%3E%3Ctext x='6' y='30'%3E01001101%3C/text%3E%3Ctext x='120' y='100'%3E10110%3C/text%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='260'%3E%3Cg font-family='monospace' font-size='26' font-weight='700' fill='%23ffffff' fill-opacity='0.035'%3E%3Ctext x='4' y='34'%3EA123AB2%3C/text%3E%3Ctext x='232' y='34'%3E8E67E6%3C/text%3E%3Ctext x='58' y='96'%3E907EF78 4BC%3C/text%3E%3Ctext x='300' y='96'%3E0F3E%3C/text%3E%3Ctext x='0' y='158'%3E2 AB34B29 78E6%3C/text%3E%3Ctext x='276' y='158'%3EC4BD5%3C/text%3E%3Ctext x='36' y='220'%3E45 C3A%3C/text%3E%3Ctext x='170' y='220'%3EEE6D 78E1%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-size: 22px 22px, 180px 180px, 240px 140px, 420px 260px;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-300); text-decoration: none; }
a:hover { color: var(--teal-200); }
ul { margin: 0; padding: 0; list-style: none; }
dl, dt, dd { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0; }

/* -------------------------------------------------------------------------
   3. Acessibilidade
   ---------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--teal-300);
  outline-offset: 3px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--teal-400);
  color: var(--ink-900);
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--ink-900); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------------
   4. Utilidades de layout
   ---------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 104px; position: relative; }
.section--tight { padding-block: 76px; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }

/* Rótulo monoespaçado "// seção" — remete ao tema de programação da arte */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-100);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.eyebrow::before { content: "//"; opacity: 0.65; }
.eyebrow--center { justify-content: center; }

.section-title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.85rem);
  margin-bottom: 18px;
}

.section-lead {
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.12rem);
  color: var(--text-soft);
}
.section-lead--gap { margin-bottom: 34px; }

.text-teal { color: var(--teal-300); }

/* -------------------------------------------------------------------------
   5. Botões
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              background-color 0.22s var(--ease), border-color 0.22s var(--ease),
              color 0.22s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: #06232b;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  color: #06232b;
  box-shadow: 0 0 0 1px rgba(59, 220, 208, 0.4), 0 20px 52px -14px rgba(48, 201, 205, 0.7);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--teal-300);
  color: var(--text);
}

.btn--lg { padding: 17px 38px; font-size: 1.06rem; }
.btn--block { display: flex; width: 100%; }

.btn__icon { width: 18px; height: 18px; flex: none; }

/* -------------------------------------------------------------------------
   6. Header fixo (presente em todas as páginas do site)
   ---------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(16, 8, 40, 0.55);
  border-bottom: 1px solid rgba(166, 240, 234, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(13, 7, 32, 0.9);
  border-bottom-color: rgba(166, 240, 234, 0.2);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Marca */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand__mark { width: auto; height: 44px; flex: none; display: block; }
.brand__name span { color: var(--teal-100); }

/* Navegação */
.nav { display: flex; align-items: center; gap: 4px; }

.nav__link {
  position: relative;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.header-cta { margin-left: 10px; padding: 11px 22px; font-size: 0.92rem; }

/* Botão hambúrguer */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  margin-left: -10px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease), top 0.28s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* -------------------------------------------------------------------------
   7. Hero
   ---------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 76px);
  padding-bottom: 96px;
}

/* Moldura arredondada — mesmo recurso gráfico da arte de divulgação */
.hero__frame {
  position: relative;
  border: 1px solid rgba(166, 240, 234, 0.16);
  border-radius: 30px;
  padding: clamp(26px, 3.2vw, 52px);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-soft);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
}

.hero__year {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.44em;
  color: var(--teal-200);
  margin-bottom: 14px;
}

.hero__title {
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 20px;
}
.hero__title span {
  color: var(--teal-100);
}

.hero__tagline {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.12rem);
  color: var(--teal-100);
  margin-bottom: 24px;
}

.hero__text {
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.14rem);
  color: var(--text-soft);
  max-width: 54ch;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

/* -------------------------------------------------------------------------
   7b. Hero de abertura da home — pilha centralizada:
       título → texto → botão → loop de logos das cidades.
   ---------------------------------------------------------------------- */
.hero--intro { padding-bottom: 56px; }

.hero__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__stack .hero__title { margin-bottom: 18px; }

.hero__stack .hero__text {
  max-width: 46ch;
  margin-bottom: 30px;
  font-size: clamp(1.02rem, 0.96rem + 0.4vw, 1.22rem);
}

.hero__stack .hero__actions { margin-bottom: 0; justify-content: center; }

/* Faixa estática com as logos das cidades atendidas ---------------------- */
.logo-loop {
  width: 100%;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.logo-loop__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* As logos ficam centralizadas, numa lista estática (sem rolagem/loop).
   Sem overflow:hidden aqui: esse recorte era usado só quando a faixa
   ainda rolava (mascarava a emenda do loop infinito); sem rolagem, ele só
   cortava a ponta de cima do pill no efeito de hover (translateY). */
.logo-loop__viewport {
  overflow: visible;
}

.logo-loop__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  align-items: stretch;
  gap: 14px;
}
/* Cópia técnica que existia só para o loop infinito recomeçar sem emenda
   visível — sem animação, ela é dispensável e ficaria duplicada na tela. */
.logo-loop__track > [aria-hidden="true"] { display: none; }

.logo-loop__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  padding: 10px 20px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: border-color 0.24s var(--ease), background-color 0.24s var(--ease),
  transform 0.24s var(--ease);
}
.logo-loop__item:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

/* Fundo claro atrás do brasão: os símbolos municipais são coloridos e
   perderiam legibilidade direto sobre o roxo. */
.logo-loop__crest {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 5px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}
.logo-loop__crest img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  overflow: hidden;
}

/* Quem pede menos movimento também não tem mais nada a desligar aqui: a
   lista de logos já é estática por padrão (ver ".logo-loop__track" acima). */

/* Estatísticas com contador animado */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 56px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

/* O <dt> vem antes do <dd> no HTML (ordem exigida numa lista de definição);
   a inversão visual — valor acima do rótulo — é feita aqui. Cada estatística
   fica centralizada, e o grupo inteiro é centralizado na faixa acima. */
.stat {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--teal-300);
  letter-spacing: -0.03em;
}

.stat__label {
  margin-top: 8px;
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   8. Mapa (Leaflet) — substitui a ilustração de pontos conectados
   ---------------------------------------------------------------------- */
.map-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(9, 5, 24, 0.6);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.map-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px 14px;
}

.map-panel__title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-100);
}

.map-panel__dots { display: flex; gap: 6px; }
.map-panel__dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(166, 240, 234, 0.28);
}
.map-panel__dots i:first-child { background: var(--teal-400); }

#mapa {
  height: 430px;
  border-radius: var(--radius);
  background: #ffffff; /* fundo branco, pedido pelo cliente, visível como flash antes do tile carregar */
  z-index: 1; /* mantém o mapa abaixo do header fixo */
}

.map-panel__note {
  padding: 13px 6px 2px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Código a ser adicionado ou corrigido em styles.css */
.city-card img,
.brasao-img {
  width: 100%;
  height: 180px;         /* Defina uma altura fixa padronizada para o container */
  object-fit: contain;   /* Garante que a imagem fique inteira sem cortar ou distorcer */
  object-position: center; /* Centraliza a imagem no espaço disponível */
  padding: 10px;         /* Margem interna de respiro para não encostar nas bordas */
  background-color: transparent; /* Mantém o fundo limpo */
}

/* Marcador customizado */
.pin {
  position: relative;
  width: 26px;
  height: 26px;
}
.pin__dot {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--teal-400);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(48, 201, 205, 0.28), 0 4px 12px rgba(0, 0, 0, 0.6);
}
.pin__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(59, 220, 208, 0.45);
  animation: pin-pulse 2.6s ease-out infinite;
}
@keyframes pin-pulse {
  0%   { transform: scale(0.55); opacity: 0.85; }
  70%  { transform: scale(1.5);  opacity: 0; }
  100% { transform: scale(1.5);  opacity: 0; }
}

/* Balão de informação (popup) do Leaflet — o mapa usa um estilo claro
   (CartoDB Positron), então o conteúdo do balão (nosso HTML, injetado via
   bindPopup) precisa de cores escuras para continuar legível sobre o fundo
   branco que o próprio Leaflet desenha. */
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow-soft); }
.leaflet-popup-content { margin: 14px 16px; min-width: 150px; }
.leaflet-popup-tip { box-shadow: var(--shadow-soft); }
.leaflet-container { font-family: var(--font-body); background: #ffffff; }
.leaflet-control-attribution { font-size: 0.68rem; background: rgba(255, 255, 255, 0.8) !important; }
.leaflet-control-attribution a { color: var(--indigo-700); }

.popup__city {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: #1c1330;
  margin-bottom: 2px;
}
.popup__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6280;
  margin-bottom: 8px;
}
.popup__link { font-size: 0.9rem; font-weight: 600; color: var(--indigo-700); }

/* -------------------------------------------------------------------------
   9. Cartões genéricos
   ---------------------------------------------------------------------- */
.card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
              background-color 0.28s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.card__icon {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(48, 201, 205, 0.1);
  color: var(--teal-300);
}


.card__icon svg { width: 26px; height: 26px; }

.card__title { font-size: 1.18rem; margin-bottom: 10px; }
.card__text { color: var(--text-soft); font-size: 0.96rem; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* -------------------------------------------------------------------------
   10. Sobre o projeto
   ---------------------------------------------------------------------- */
.about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(34px, 4vw, 64px);
  align-items: start;
}

.checklist { display: grid; gap: 16px; margin-top: 8px; }
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-soft);
}
.checklist svg {
  width: 22px; height: 22px;
  flex: none;
  margin-top: 2px;
  color: var(--teal-400);
}
.checklist strong { color: var(--text); font-weight: 600; }

/* Painel lateral "público-alvo" */
.panel {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(48, 201, 205, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-soft);
}
.panel__title { font-size: 1.28rem; margin-bottom: 16px; }
.panel__text { color: var(--text-soft); font-size: 0.97rem; margin-bottom: 22px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  padding: 7px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal-100);
}

.partners {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.partners__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.partners__names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.partners__names a { color: var(--text); }
.partners__names a:hover { color: var(--teal-200); }

/* -------------------------------------------------------------------------
   11. Cidades atendidas
   ---------------------------------------------------------------------- */
.city-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
              background-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.city-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

/* Londrina não é uma cidade-satélite: é a sede da UniFil, então o card sai
   da grade das 4 cidades e ganha um layout horizontal de destaque, deixando
   claro que o botão leva para fora do site (site oficial do programa). */
.city-card--wide {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 22px;
  margin-top: 22px;
  padding: 22px 28px;
}
.city-card--wide .crest { margin-bottom: 0; flex-shrink: 0; }
.city-card--wide:hover { transform: translateY(-4px); }

.city-card__wide-text { flex: 1 1 auto; min-width: 0; }
.city-card__wide-text .city-card__state {
  margin-top: 4px;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: normal;
  text-transform: none;
}

.city-card__badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-100);
  vertical-align: middle;
}

.city-card--wide .city-card__cta { flex-shrink: 0; }

/* Medalhão claro: os brasões oficiais são desenhados para fundo claro */
.crest {
  width: 108px; height: 108px;
  display: grid;
  place-items: center;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
/* aspect-ratio garante caixa quadrada: a altura percentual não resolvia contra
   uma trilha dimensionada pelo conteúdo, então a caixa seguia a proporção do
   arquivo e não batia com o width/height declarados (fonte de layout shift). */
.crest img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

/* Os brasões têm proporções diferentes; dentro de uma caixa quadrada os mais
   altos ficam visualmente menores. Estes ajustes igualam a massa óptica. */
.crest--tall img { transform: scale(1.14); }
.crest--mid img  { transform: scale(1.06); }

.city-card__name { font-size: 1.24rem; margin-bottom: 6px; }
.city-card__state {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.city-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-300);
}
.city-card__cta svg { width: 15px; height: 15px; transition: transform 0.24s var(--ease); }
.city-card:hover .city-card__cta svg { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   12. Como funciona — trilha de 3 etapas
   ---------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  position: relative;
}

.step {
  position: relative;
  padding: 34px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step__num {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: #06232b;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.step__title { font-size: 1.16rem; margin-bottom: 10px; }
.step__text { color: var(--text-soft); font-size: 0.95rem; }

/* Conector entre etapas (apenas no desktop) */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 57px;
  right: -22px;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

/* -------------------------------------------------------------------------
   13. Requisitos
   ---------------------------------------------------------------------- */
.req-list { display: grid; gap: 14px; }
.req {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.req__mark {
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(48, 201, 205, 0.14);
  color: var(--teal-300);
}
.req__mark svg { width: 15px; height: 15px; }
.req__title { font-weight: 600; margin-bottom: 3px; }
.req__text { color: var(--text-soft); font-size: 0.93rem; }

/* -------------------------------------------------------------------------
   14. Cronograma
   ---------------------------------------------------------------------- */
.timeline {
  position: relative;
  display: grid;
  gap: 4px;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal-400), rgba(59, 220, 208, 0.08));
}

.tl-item { position: relative; padding: 18px 0 22px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 25px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ink-800);
  border: 2px solid var(--teal-400);
  box-shadow: 0 0 0 4px rgba(48, 201, 205, 0.12);
}

.tl-item__when {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-100);
  margin-bottom: 6px;
}
.tl-item__title { font-size: 1.1rem; margin-bottom: 6px; }
.tl-item__text { color: var(--text-soft); font-size: 0.95rem; }

/* -------------------------------------------------------------------------
   15. FAQ (accordion)
   ---------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.faq-item.is-open {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 24px;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-item__icon {
  flex: none;
  width: 26px; height: 26px;
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  transition: background-color 0.25s var(--ease), transform 0.3s var(--ease);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--teal-300);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s var(--ease);
}
.faq-item__icon::before { width: 11px; height: 2px; }
.faq-item__icon::after  { width: 2px; height: 11px; }
.faq-item.is-open .faq-item__icon { transform: rotate(180deg); }
.faq-item.is-open .faq-item__icon::after { opacity: 0; }

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}
.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }

.faq-item__inner { overflow: hidden; }
.faq-item__inner > div {
  padding: 0 24px 22px;
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* -------------------------------------------------------------------------
   16. CTA final
   ---------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding: clamp(44px, 5vw, 72px);
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  text-align: center;
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(48, 201, 205, 0.22), rgba(48, 201, 205, 0) 62%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-soft);
}
.cta-band__title {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem);
  margin-bottom: 16px;
}
.cta-band__text {
  max-width: 60ch;
  margin: 0 auto 32px;
  color: var(--text-soft);
  font-size: 1.04rem;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* -------------------------------------------------------------------------
   17. Rodapé
   ---------------------------------------------------------------------- */
.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  background: rgba(9, 5, 24, 0.55);
  padding-block: 56px 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--border);
}

.footer__about {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.93rem;
  max-width: 42ch;
}

.footer__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-100);
  margin-bottom: 16px;
}
.footer__title--gap { margin-top: 22px; }

.footer__list { display: grid; gap: 2px; }
.footer__list a,
.footer__list span {
  display: inline-block;
  padding: 10px 0;              /* alvo de toque confortável sem inchar a coluna */
  color: var(--text-soft);
  font-size: 0.93rem;
}
.footer__list a:hover { color: var(--teal-200); }

.footer__contact { display: grid; gap: 2px; }
.footer__contact a { word-break: break-word; }

.footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* -------------------------------------------------------------------------
   18. Páginas de cidade
   ---------------------------------------------------------------------- */
.city-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 88px;
}

/* Entrada em CSS puro: o bloco é todo o conteúdo da página, então não pode
   depender de JavaScript para ficar visível. */
@keyframes city-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.city-hero {
  animation: city-in 0.8s var(--ease) both;
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(34px, 5vw, 62px) clamp(24px, 4vw, 56px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-soft);
}

.city-hero .crest {
  width: 170px; height: 170px;
  padding: 18px;
  margin-inline: auto;
  margin-bottom: 28px;
}


.city-hero__name {
  font-size: clamp(2.1rem, 1.4rem + 2.9vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 10px;
}


.city-hero__state {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-100);
  margin-bottom: 26px;
}

.city-hero__text {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-soft);
  margin-bottom: 34px;
}
.city-hero__text strong { color: var(--text); font-weight: 600; }

.city-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Tranquilização no momento do compromisso — última coisa antes do formulário */
.city-hero__note {
  max-width: 42ch;
  margin: -2px auto 4px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}
.back-link:hover { color: var(--teal-200); }
.back-link svg { width: 15px; height: 15px; transition: transform 0.24s var(--ease); }
.back-link:hover svg { transform: translateX(-4px); }

/* -------------------------------------------------------------------------
   18b. Barra de ação fixa (apenas mobile)
   Entre a seção de cidades e o CTA final existem ~7 telas de conteúdo
   persuasivo sem nenhuma saída para ação. Esta barra cobre esse vão.
   ---------------------------------------------------------------------- */
.action-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(13, 7, 32, 0.94);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(110%);
  /* visibility impede que o botão fora da tela receba foco pelo teclado */
  visibility: hidden;
  transition: transform 0.32s var(--ease), visibility 0.32s;
}
.action-bar.is-visible { transform: none; visibility: visible; }
.action-bar .btn { width: 100%; }

@media (max-width: 960px) {
  .action-bar { display: block; }
  /* impede que a barra cubra o fim do rodapé */
  body.has-action-bar { padding-bottom: 84px; }
}

/* -------------------------------------------------------------------------
   19. Animação de entrada (scroll reveal)
   ---------------------------------------------------------------------- */
/* O estado inicial escondido só é aplicado quando o JS está ativo (classe .js
   adicionada no <head>). Sem JS, o conteúdo aparece normalmente. */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Escalonamento dos filhos de uma grade revelada */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* -------------------------------------------------------------------------
   19b. Marca UniFil e blocos de parceria (realização + municípios)

   O arquivo assets/logos/unifil.png é o ponto único de troca da marca:
   sobrescrevê-lo atualiza cabeçalho, rodapé e faixas de todas as páginas.
   A altura é sempre definida aqui e a largura fica em "auto", então qualquer
   proporção de arquivo oficial encaixa sem quebrar o layout.
   ---------------------------------------------------------------------- */

/* Logos institucionais no início do header: UniFil primeiro, Computação UniFil
   em seguida, separadas do restante do header por uma régua vertical. */
.header-brands {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  padding-right: 18px;
  border-right: 1px solid var(--border);
}

.header-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  transition: opacity 0.24s var(--ease);
}
.header-brand:hover { opacity: 0.78; }

.header-brand__logo {
  height: 34px;
  width: auto;
  display: block;
}
/* O selo quadrado da Computação pede um pouco mais de altura para não
   parecer menor que o wordmark ao lado. */
.header-brand--square .header-brand__logo { height: 56px; }

/* A logo da UniFil, um pouco maior que as demais em todo lugar em que
   aparece (ver .logo-unifil mais abaixo, junto com as outras instâncias). */
.header-brand__logo.logo-unifil { height: 78px; }

.partners__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Medalhão claro reduzido: os brasões oficiais são feitos para fundo claro */
.partner-city__crest {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}
.partner-city__crest img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

/* Lista de municípios dentro do painel "Público-alvo" (sem brasão) */
.partners__label--gap { margin-top: 20px; }

.partners__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.partners__cities a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal-100);
  transition: border-color 0.24s var(--ease), background-color 0.24s var(--ease),
              color 0.24s var(--ease);
}
.partners__cities a:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
  color: var(--text);
}
.partners__cities svg {
  width: 12px;
  height: 12px;
  flex: none;
  opacity: 0.75;
}

.partners__logo { height: 38px; width: auto; display: block; }
.partners__logo.logo-unifil { height: 70px; }

/* Bloco de realização do rodapé (todas as páginas) */
.footer__partners { margin-top: 26px; }

.footer__partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.footer__partners-row a { color: var(--text); }
.footer__partners-row a:hover { color: var(--teal-200); }
.footer__partners-row img { height: 34px; width: auto; display: block; }
.footer__partners-row img.logo-unifil { height: 74px; }

.footer__partners-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 42ch;
}
.footer__partners-note a { color: var(--text-soft); text-decoration: underline; }
.footer__partners-note a:hover { color: var(--teal-200); }

/* Linha de realização das páginas de cidade */
.city-partners {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.city-partners__label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.city-partners__label--gap { margin-left: 20px; }
.city-partners a { color: var(--text); }
.city-partners a:hover { color: var(--teal-200); }
.city-partners img { height: 34px; width: auto; display: block; }
.city-partners img.logo-unifil { height: 70px; }
.city-partners .partner-city__crest { width: 42px; height: 42px; }

/* -------------------------------------------------------------------------
   19b. Telas grandes (min-width) — o site só tinha regras para encolher em
   telas pequenas; a partir de 1440px o container e as marcas do cabeçalho
   crescem também, para não sobrar um vão vazio nas laterais em monitores
   largos. 1920px reforça mais um pouco para monitores muito grandes/4K.
   ---------------------------------------------------------------------- */
@media (min-width: 1440px) {
  :root { --maxw: 1320px; --header-h: 108px; }

  .header-brand--square .header-brand__logo { height: 64px; }
  .header-brand__logo.logo-unifil { height: 92px; }
  .brand { font-size: 1.55rem; gap: 16px; }
  .brand__mark { width: auto; height: 50px; }

  .partners__logo { height: 44px; }
  .partners__logo.logo-unifil { height: 82px; }

  .footer__partners-row img { height: 40px; }
  .footer__partners-row img.logo-unifil { height: 86px; }

  .partner-city__crest { width: 50px; height: 50px; }

  .city-partners img { height: 38px; }
  .city-partners img.logo-unifil { height: 80px; }
  .city-partners .partner-city__crest { width: 48px; height: 48px; }

  /* Bônus de espaço pros cartões da trajetória (já em 6 colunas desde
     1180px) respirarem um pouco mais nessa largura de tela. */
  #linha-do-tempo .lt-trilha {
    max-width: 1400px;
  }
}

@media (min-width: 1920px) {
  :root { --maxw: 1480px; --header-h: 118px; }

  .header-brand--square .header-brand__logo { height: 70px; }
  .header-brand__logo.logo-unifil { height: 102px; }
  .brand { font-size: 1.7rem; }
  .brand__mark { width: auto; height: 56px; }

  .partners__logo { height: 48px; }
  .partners__logo.logo-unifil { height: 92px; }

  .footer__partners-row img { height: 44px; }
  .footer__partners-row img.logo-unifil { height: 96px; }

  .partner-city__crest { width: 56px; height: 56px; }

  .city-partners img { height: 42px; }
  .city-partners img.logo-unifil { height: 90px; }
  .city-partners .partner-city__crest { width: 54px; height: 54px; }
}

/* -------------------------------------------------------------------------
   20. Responsividade — breakpoints em 960px e 640px
   ---------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav__link { padding: 9px 10px; font-size: 0.88rem; }
  .header-cta { padding: 11px 18px; }

  /* Entre 960 e 1080px a barra ainda mostra os 6 itens do menu ao lado das
     logos: elas encolhem para liberar espaço horizontal. */
  .header-brands { gap: 11px; padding-right: 14px; }
  .header-brand__logo { height: 28px; }
  .header-brand--square .header-brand__logo { height: 48px; }
  .header-brand__logo.logo-unifil { height: 66px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }

  /* Menu mobile em painel deslizante */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 20px 24px 28px;
    background: rgba(13, 7, 32, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.85);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), visibility 0.26s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__link { padding: 13px 14px; font-size: 1rem; }
  .header-cta { margin: 10px 0 0; width: 100%; padding: 14px 22px; font-size: 1rem; }

  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__text { max-width: none; }

  .about__layout { grid-template-columns: minmax(0, 1fr); }

  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-card--wide { flex-direction: column; text-align: center; }
  .city-card--wide .crest { margin-bottom: 20px; }

  /* Três etapas nunca devem quebrar como 2+1: isso órfã a última e destrói
     a leitura de sequência. Uma coluna mantém a trilha legível. */
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step:not(:last-child)::after { display: none; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

  .section { padding-block: 78px; }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }

  .container { padding-inline: 18px; }
  .section { padding-block: 62px; }
  .section-head { margin-bottom: 38px; }

  /* Em telas bem estreitas, a marca "Conexão Tech" some do tamanho maior
     do desktop pra sobrar espaço pra logo da UniFil e o botão de menu. */
  .brand { gap: 10px; font-size: 1.12rem; }
  .brand__mark { width: auto; height: 34px; }

  .hero__frame { padding: 22px 18px; border-radius: 22px; }
  .hero__actions .btn { width: 100%; }

  .logo-loop { margin-top: 32px; padding-top: 24px; }
  .logo-loop__item { padding: 8px 16px 8px 8px; font-size: 0.9rem; }
  .logo-loop__crest { width: 38px; height: 38px; }

  .stats { gap: 6px 28px; }
  .stat__label { font-size: 0.74rem; }

  #mapa { height: 320px; }

  .grid--2, .grid--3, .grid--4, .steps { grid-template-columns: minmax(0, 1fr); }

  .card, .step { padding: 24px 20px; }
  .panel { padding: 24px 20px; }

  .faq-item__btn { padding: 18px; font-size: 0.97rem; }
  .faq-item__inner > div { padding: 0 18px 18px; }

  .cta-band { padding: 34px 20px; border-radius: 22px; }
  .cta-band__actions .btn { width: 100%; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .city-hero { padding: 32px 20px; border-radius: 22px; }
  .city-hero .crest { width: 132px; height: 132px; padding: 14px; }
  .city-hero__actions .btn { width: 100%; }

  /* No mobile o header guarda só a marca da UniFil: as duas logos lado a lado
     competiriam com o nome do projeto numa faixa de 74px. */
  .header-brands { gap: 9px; padding-right: 11px; }
  .header-brand__logo { height: 22px; }
  .header-brand__logo.logo-unifil { height: 54px; }
  .header-brand--square { display: none; }

  .partner-city__crest { width: 38px; height: 38px; }

  .city-partners img { height: 26px; }
  .city-partners img.logo-unifil { height: 54px; }
  .city-partners .partner-city__crest { width: 34px; height: 34px; }
}

/* -------------------------------------------------------------------------
   21. Preferência por menos movimento
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .city-card:hover { transform: none; }
  .pin__pulse { display: none; }
}

/* Impressão */
@media print {
  body::before, body::after { display: none; }
  .site-header, .nav-toggle, .map-panel { display: none; }
  body { background: #fff; color: #000; }
}

/* -------------------------------------------------------------------------
   22. Linha do tempo (Londrinense Tech + Pensamento Computacional)
   Bloco só usado na home, entre o hero e a seção "O projeto" (#panorama).
   Sem background próprio: usa o mesmo degradê escuro do body, como o
   resto da página. Os cartões mantêm cor sólida própria por ano.
   ---------------------------------------------------------------------- */
#linha-do-tempo {
  padding: 72px 24px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

#linha-do-tempo .lt-cabecalho {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

#linha-do-tempo .lt-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-100);
  margin-bottom: 12px;
}

#linha-do-tempo h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 800;
}

#linha-do-tempo .lt-sub {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0;
}

#linha-do-tempo .lt-trilha {
  display: flex;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 8px 4px 28px;
  scroll-snap-type: x proximity;
}

/* A partir do primeiro breakpoint acima do celular, a trilha vira uma
   grade que quebra linha sozinha — todos os anos ficam visíveis de uma
   vez, sem precisar rolar. No celular (ver @media max-width:640px lá
   embaixo) o comportamento de rolagem horizontal continua o mesmo.
   Os cartões também encolhem em relação ao tamanho do celular — no
   desktop tem espaço de sobra, mas 6 cartões grandes ficam pesados. */
@media (min-width: 641px) {
  #linha-do-tempo .lt-trilha {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 8px 4px 4px;
  }

  #linha-do-tempo .lt-card { padding: 18px 16px; border-radius: 14px; }
  #linha-do-tempo .lt-card .lt-ano { font-size: 22px; margin-bottom: 10px; }
  #linha-do-tempo .lt-card .lt-icone { width: 26px; height: 26px; margin-bottom: 10px; }
  #linha-do-tempo .lt-card .lt-linha { font-size: 12px; margin-bottom: 8px; }
  #linha-do-tempo .lt-card .lt-linha strong { font-size: 10px; }
  #linha-do-tempo .lt-card .lt-valor { font-size: 14px; }
  #linha-do-tempo .lt-card .lt-total { margin-top: 10px; padding-top: 9px; }
  #linha-do-tempo .lt-card .lt-total .lt-valor { font-size: 17px; }
}

/* A partir daqui cabem 3 por linha (2 linhas de 3) sem espremer o
   conteúdo de cada cartão. */
@media (min-width: 960px) {
  #linha-do-tempo .lt-trilha {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* E a partir daqui já cabem os 6 numa linha só, do tamanho compacto
   definido lá em cima. */
@media (min-width: 1180px) {
  #linha-do-tempo .lt-trilha {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Barra de rolagem customizada (fina, turquesa) — Firefox e navegadores
   baseados em WebKit/Blink usam propriedades diferentes, então as duas
   regras convivem sem conflito. */
#linha-do-tempo .lt-trilha {
  scrollbar-width: thin;
  scrollbar-color: var(--teal-400) rgba(0, 0, 0, 0.08);
}

#linha-do-tempo .lt-trilha::-webkit-scrollbar {
  height: 6px;
}

#linha-do-tempo .lt-trilha::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}

#linha-do-tempo .lt-trilha::-webkit-scrollbar-thumb {
  background: var(--teal-400);
  border-radius: 999px;
}

#linha-do-tempo .lt-trilha::-webkit-scrollbar-thumb:hover {
  background: var(--teal-300);
}

#linha-do-tempo .lt-card {
  scroll-snap-align: start;
  flex: 0 0 220px;
  border-radius: 16px;
  padding: 24px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

#linha-do-tempo .lt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

#linha-do-tempo .lt-card .lt-ano {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

#linha-do-tempo .lt-card .lt-icone {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  opacity: 0.9;
}

#linha-do-tempo .lt-card .lt-linha {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}

#linha-do-tempo .lt-card .lt-linha strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-bottom: 2px;
}

#linha-do-tempo .lt-card .lt-valor {
  font-size: 17px;
  font-weight: 700;
}

#linha-do-tempo .lt-card .lt-total {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

#linha-do-tempo .lt-card .lt-total .lt-valor {
  font-size: 22px;
}

#linha-do-tempo .lt-card.andamento {
  opacity: 0.92;
  border: 2px dashed rgba(255, 255, 255, 0.6);
}

#linha-do-tempo .lt-card.andamento .lt-valor {
  font-style: italic;
  font-weight: 600;
}

/* Cores por ano, seguindo a paleta de referência */
#linha-do-tempo .lt-card.ano-2021 { background: #1f5fa6; }
#linha-do-tempo .lt-card.ano-2022 { background: #3e7d3a; }
#linha-do-tempo .lt-card.ano-2023 { background: #c81e5c; }
#linha-do-tempo .lt-card.ano-2024 { background: #b5541e; }
#linha-do-tempo .lt-card.ano-2025 { background: #3d2374; }
#linha-do-tempo .lt-card.ano-2026 { background: #b3941a; }

/* Galeria — slideshow com fade automático entre as fotos das turmas.
   Sem moldura/painel: é só a imagem inteira, com a legenda e a barra de
   progresso sobrepostas nela — maior que o resto do conteúdo da seção. */
#linha-do-tempo .lt-galeria {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#linha-do-tempo .lt-galeria__titulo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-100);
  text-align: center;
  margin: 0 0 22px;
}

.slide {
  position: relative;
}

.slide__viewport {
  position: relative;
  width: 100%;
  height: clamp(340px, 52vw, 640px);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.slide__trilha { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }

.slide__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
}
.slide__item.is-ativo { opacity: 1; visibility: visible; }

.slide__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  transform: scale(1);
  transition: transform 12s linear;
}
/* Zoom lento e contínuo na foto em exibição ("efeito Ken Burns"), só
   enquanto ela está ativa — dá vida ao card sem depender de JS. */
.slide__item.is-ativo img { transform: scale(1.09); }

.slide__legenda {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 64px 26px 22px;
  background: linear-gradient(0deg, rgba(9, 5, 24, 0.92) 10%, rgba(9, 5, 24, 0.55) 55%, transparent);
  color: #fff;
}
.slide__legenda-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-100);
  margin-bottom: 6px;
}
.slide__legenda p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 700;
}

/* Setas de navegação manual */
.slide__seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(9, 5, 24, 0.45);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.slide__viewport:hover .slide__seta,
.slide__seta:focus-visible {
  opacity: 1;
}
.slide__seta:hover { background: rgba(9, 5, 24, 0.7); border-color: rgba(255, 255, 255, 0.6); }
.slide__seta svg { width: 20px; height: 20px; }
.slide__seta--ant { left: 16px; }
.slide__seta--prox { right: 16px; }

/* Barra de progresso segmentada (1 segmento por foto), sobreposta no topo
   da própria imagem — preenche sozinha enquanto a foto correspondente
   está em exibição, e também funciona como navegação direta ao clicar. */
.slide__progresso {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(9, 5, 24, 0.55), transparent);
}
.slide__seg {
  flex: 1;
  height: 3px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.slide__seg-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: 999px;
  background: var(--teal-400);
}
.slide__seg.is-concluido .slide__seg-fill { width: 100%; }
.slide__seg:hover .slide__seg-fill { background: var(--teal-300); }

@media (max-width: 640px) {
  .slide__viewport { height: clamp(260px, 78vw, 420px); }
  .slide__seta { opacity: 1; width: 36px; height: 36px; }
  .slide__legenda { padding: 44px 16px 16px; }
  .slide__progresso { padding: 12px 12px; }
}

#linha-do-tempo .lt-rodape {
  max-width: 640px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
#linha-do-tempo .lt-rodape strong {
  color: var(--teal-100);
  font-weight: 700;
}

@media (max-width: 640px) {
  #linha-do-tempo .lt-trilha {
    gap: 14px;
  }
  #linha-do-tempo .lt-card {
    flex-basis: 200px;
  }
}

