/* ============================================================
   FECITERN — Feira Estadual de Ciência, Inovação e Tecnologia do RN
   Identidade visual: tema claro, tipografia Rubik, paleta
   multicor escolhida (índigo / magenta / laranja / verde).
   Assinatura: barra "espectro" multicolor — as muitas áreas da
   ciência representadas nos 16 destaques da feira.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Paleta  */
  --brand:        #4d44a0;  /* índigo — cor primária */
  --brand-dark:   #181a49;  /* azul-marinho profundo (títulos/bandas) */
  --brand-ink:    #1b1d69;
  --magenta:      #a8157d;
  --green:        #71db6f;
  --orange:       #f59b29;
  --blue:         #3033ba;

  --text:         #464e5c;  /* texto corrido */
  --heading:      #181a49;  /* títulos */
  --muted:        #6a7282;

  --bg:           #ffffff;
  --bg-soft:      #f6f6f6;
  --line:         #e7e9ed;
  --line-strong:  #d5dae2;

  --spectrum: linear-gradient(90deg, #4d44a0 0%, #a8157d 33%, #f59b29 66%, #71db6f 100%);

  /* Tipografia */
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 6px 18px -8px rgba(24, 26, 73, .14);
  --shadow-lg: 0 24px 48px -24px rgba(24, 26, 73, .28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utilitários ---------- */
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.container--narrow { max-width: 860px; }

/* Barra "espectro" (assinatura) */
.spectrum {
  display: inline-block;
  width: 56px; height: 5px;
  border-radius: 3px;
  background: var(--spectrum);
  margin-bottom: 1.1rem;
}
.spectrum--center { display: block; margin-inline: auto; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.7rem;
}

.section { padding: 7rem 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--brand {
  background: linear-gradient(135deg, #181a49 0%, #4d44a0 100%);
  color: #fff;
}
.section--brand .eyebrow { color: #b9c0ff; }

.section__head { max-width: 720px; margin-bottom: 3rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title {
  color: var(--heading);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.section--brand .section__title { color: #fff; }
.section__sub { color: var(--muted); margin-top: 1rem; }

.subheading {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--heading);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid;
  border-image: var(--spectrum) 1;
}

.link { color: var(--brand); font-weight: 500; display: inline-flex; align-items: center; gap: .4rem; transition: gap .25s var(--ease), color .25s; }
.link:hover { gap: .65rem; color: var(--magenta); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(77, 68, 160, .7);
}
.btn--primary:hover {
  background: var(--brand-ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(77, 68, 160, .85);
}
.btn--ghost { border: 1.5px solid var(--line-strong); color: var(--brand-ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), height .35s var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); height: 66px; }

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.nav__logo { display: inline-flex; align-items: center; gap: .6rem; }
.nav__logo img { width: 48px; height: auto; }
.nav__logo-text { font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; color: var(--brand-dark); }

.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__link { position: relative; font-size: .92rem; font-weight: 500; color: var(--text); transition: color .25s; padding: .4rem 0; }
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 3px;
  background: var(--spectrum);
  transition: width .3s var(--ease);
  border-radius: 3px;
}
.nav__link:hover, .nav__link.active { color: var(--brand); }
.nav__link.active::after, .nav__link:hover::after { width: 100%; }

.nav__link--btn { display: inline-flex; align-items: center; gap: .4rem; }
.nav__link--btn .fa-chevron-down { font-size: .7rem; transition: transform .25s; }
.has-dropdown:hover .fa-chevron-down, .has-dropdown.open .fa-chevron-down { transform: rotate(180deg); }

.nav__item { position: relative; }
.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px); left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .5rem;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  box-shadow: var(--shadow-lg);
}
.nav__item:hover .nav__dropdown, .nav__item.open .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sublink { display: block; padding: .7rem .9rem; border-radius: 8px; font-size: .9rem; color: var(--text); transition: background .2s, color .2s; }
.nav__sublink:hover { background: rgba(77, 68, 160, .08); color: var(--brand); }

.nav__actions { display: flex; align-items: center; gap: .9rem; }

/* Hambúrguer */
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle span {
  position: absolute; left: 9px; right: 9px; height: 2px;
  background: var(--brand-dark); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s, top .35s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 28px; }
.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); }

/* ---------- Hero ---------- */
.hero { padding-top: var(--nav-h); }
.hero__banner img { width: 100%; height: auto; display: block; }

/* ---------- Apoio ---------- */
.apoio { margin: 0; }
.apoio img { width: 100%; height: auto; display: block; }

.hero__content { padding: 4rem 0 5rem; max-width: 880px; }
.hero__title {
  color: var(--heading);
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
}
.grad { font-weight: 700; }
.grad--1 { background: linear-gradient(90deg, #4d44a0, #6a5bd0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad--2 { background: linear-gradient(90deg, #a8157d, #e0489b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad--3 { background: linear-gradient(90deg, #f59b29, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__sub { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 580px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Indicador de scroll */
.hero__scroll {
/*  display: inline-flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  margin-top: 2.5rem;*/
  display: flex; /* Mudamos de inline-flex para flex */
  width: fit-content; /* Força o botão a ter apenas o tamanho do conteúdo */
  margin: 3.5rem auto 0; /* O "auto" nas laterais é o que centraliza o elemento na tela */
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero__scroll-line { width: 2px; height: 40px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--brand); animation: scrollhint 2s var(--ease) infinite;
}
@keyframes scrollhint { to { top: 100%; } }

/* ---------- Cards ---------- */

/*Espaçamento adequado*/
/*.sobre__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sobre__grid .card { padding: 1.5rem;

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }

.card__body { padding: 2rem; }*/

.sobre__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Espaçamento interno (respiro) para os cards "Sobre" */
.sobre__grid .card {
  padding: 1.8rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.card__body {
  padding: 2rem;
}



.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.35rem;
  border-radius: 14px;
  margin-bottom: 1.1rem;
}
.card__icon--green   { background: rgba(113, 219, 111, .18); color: #1a675a; }
.card__icon--indigo  { background: rgba(77, 68, 160, .12);  color: var(--brand); }
.card__icon--magenta { background: rgba(168, 21, 125, .12); color: var(--magenta); }

.card__kicker {
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .6rem;
}
.card__title { color: var(--heading); font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -.01em; }
.card__text { color: var(--text); font-size: .96rem; margin-bottom: .9rem; }
.card__text strong { color: var(--brand-dark); font-weight: 600; }
.card__text--lead { color: var(--brand-ink); font-size: 1.15rem; font-weight: 500; line-height: 1.5; }

.card__media { background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card--wide { display: grid; grid-template-columns: 1fr 1.2fr; }
.card--wide .card__media { min-height: 100%; }
.card--wide .card__media img { height: 100%; }

.card__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.card__subhead { color: var(--heading); font-size: 1rem; font-weight: 600; margin: 1.4rem 0 .6rem; }
.card__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.card__footnote { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

.list { display: grid; gap: .6rem; margin: .8rem 0; }
.list li { position: relative; padding-left: 1.4rem; color: var(--text); font-size: .95rem; }
.list li::before { content: "—"; position: absolute; left: 0; color: var(--brand); }
.list li strong { color: var(--heading); }

/* Territórios */
.territorios { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.territorios li {
  font-size: .78rem; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem;
  transition: border-color .25s, color .25s, background .25s;
}
.territorios li:hover { border-color: var(--brand); color: var(--brand); background: rgba(77, 68, 160, .05); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-size: .78rem; padding: .4rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); background: #fff;
}
.chip--brand { border-color: var(--brand); color: #fff; background: var(--brand); }

/* Galeria */

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }

.gallery__item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg-soft); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }




/* ---------- Stats (banda brand) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat {
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  text-align: center;
  transition: transform .3s var(--ease), background .3s;
}
.stat:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .12); }
.stat__num { display: block; font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; line-height: 1; color: #fff; margin-bottom: .7rem; }
.stat__label { color: rgba(255, 255, 255, .85); font-size: .9rem; }

/* ---------- Timeline (Eventos) ---------- */
.timeline { display: grid; gap: 1rem; }
.tl {
  display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem;
  padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.tl:hover { border-color: var(--brand); transform: translateX(6px); box-shadow: var(--shadow-sm); }
.tl__date { text-align: center; }
.tl__day { display: block; font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--brand); }
.tl__month { font-size: .72rem; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.tl__title { color: var(--heading); font-size: 1.15rem; font-weight: 600; margin-bottom: .4rem; }
.tl__text { color: var(--text); font-size: .95rem; margin-bottom: .8rem; }

/* ---------- Banner de datas importantes ---------- */
.datas {
  margin-top: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.datas__head {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.3rem 2rem;
  background: linear-gradient(135deg, #181a49 0%, #4d44a0 100%);
  color: #fff;
}
.datas__icon {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, .16);
  border-radius: 12px;
}
.datas__title { font-size: 1.5rem; font-weight: 700; letter-spacing: .02em; }
/* ALTERAÇÃO: aumento da coluna do meio (FEIRAS REGIONAIS) e
 reduzi a coluna da direi*ta (FECITERN) para melhor distribuição.
 Antes: 1fr 1fr 1.25fr */
.datas__grid { display: grid; grid-template-columns: 0.9fr 1.6fr 0.9fr; }
.datas__block { padding: 1.8rem 2rem; position: relative; }
.datas__block + .datas__block { border-left: 1px solid var(--line); }
.datas__block--main { background: rgba(77, 68, 160, .05); }
.datas__block--main::before {
  content: ""; position: absolute; top: 0; left: 2rem; right: 2rem;
  height: 3px; border-radius: 3px; background: var(--spectrum);
}
.datas__block-title {
  font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .35rem;
}
.datas__period { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.datas__list { display: grid; gap: .7rem; }
.datas__list li { display: flex; flex-direction: column; gap: .12rem; font-size: .95rem; color: var(--text); }
.datas__label {
  font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 960px) {
  .datas__grid { grid-template-columns: 1fr; }
  .datas__block + .datas__block { border-left: none; border-top: 1px solid var(--line); }
  .datas__block--main::before { left: 1.5rem; right: 1.5rem; }
}

/* ---------- Oficinas ---------- */
.oficinas__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.oficinas__grid .card__media { max-height: 320px; overflow: hidden; }

/* Banner do avaliador (portrait): exibir a imagem inteira ocupando todo o quadro */
#avaliador .card__media { max-height: none; overflow: visible; }
#avaliador .card__media img { height: auto; }

/* ---------- Editais ---------- */
.edital {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.edital:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.edital__icon { width: 60px; height: 60px; display: grid; place-items: center; font-size: 1.5rem; color: var(--brand); background: rgba(77, 68, 160, .12); border-radius: var(--radius-sm); }
.edital__title { color: var(--heading); font-size: 1.25rem; font-weight: 700; margin-bottom: .4rem; }

/* ---------- Anais ---------- */
.anais {
  padding: 3rem; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
}
.anais__title { color: var(--heading); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 1.2rem; }
.anais__text { color: var(--text); max-width: 640px; margin: 0 auto 1rem; }
.anais__text strong { color: var(--brand-dark); }
/*.anais .btn { margin-top: 1.2rem; }*/
.anais .btn {
  margin: 1.2rem auto 0; /* O "auto" força a centralização do elemento */
  width: fit-content; /* Garante que o botão se molde ao tamanho do texto */
}

/* ---------- Canal + redes ---------- */
.canal { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.canal__socials { display: grid; gap: .8rem; }
.social {
  display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.social:hover { transform: translateX(6px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.social i { font-size: 1.4rem; color: var(--brand); width: 26px; text-align: center; }
.social span { font-size: .95rem; color: var(--text); }
.social strong { color: var(--heading); }

/* QR codes */
.qrcodes { margin-top: 3.5rem; }
.qrcodes__grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.qr {
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.qr:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.qr img { width: 120px; height: auto; }
.qr span { font-size: .82rem; color: var(--heading); font-weight: 500; }

/* ---------- Formulário ---------- */
.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--heading); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; font: inherit; font-size: .95rem;
  color: var(--text); background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa3b2; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(77, 68, 160, .12); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23464e5c' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }

.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231, 76, 60, .12); }
.field__error { min-height: .9rem; font-size: .8rem; color: #c0392b; opacity: 0; transform: translateY(-2px); transition: opacity .2s, transform .2s; }
.field.invalid .field__error { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.footer { background: var(--brand-dark); color: rgba(255, 255, 255, .82); padding: 4rem 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer .nav__logo-text { color: #fff; }
.footer__tagline { color: rgba(255, 255, 255, .7); font-size: .95rem; margin: 1rem 0 1.4rem; max-width: 340px; }
.footer__socials { display: flex; gap: .7rem; }
.footer__socials a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #fff;
  transition: color .25s, border-color .25s, transform .25s, background .25s;
}
.footer__socials a:hover { color: #fff; border-color: var(--green); background: rgba(113, 219, 111, .18); transform: translateY(-3px); }

.footer__heading { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 1.1rem; }
.footer__nav { display: grid; gap: .6rem; }
.footer__nav a { color: rgba(255, 255, 255, .72); font-size: .92rem; transition: color .2s, padding-left .2s; }
.footer__nav a:hover { color: #fff; padding-left: 4px; }

.footer__partners ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer__partners li { font-size: .78rem; padding: .35rem .8rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: rgba(255, 255, 255, .8); }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .55); font-size: .86rem;
}
.footer__bottom a { color: rgba(255, 255, 255, .75); transition: color .2s; }
.footer__bottom a:hover { color: #fff; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 90;
  width: 58px; height: 58px; display: grid; place-items: center;
  font-size: 1.9rem; color: #fff; background: #25d366; border-radius: 50%;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .7);
  transition: transform .25s var(--ease), box-shadow .25s;
  animation: float 3s ease-in-out infinite;
}
.whatsapp:hover { transform: scale(1.08); box-shadow: 0 18px 36px -10px rgba(37, 211, 102, .85); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.5rem; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(24, 26, 73, .55); backdrop-filter: blur(4px); animation: fade .25s; }
.modal__dialog {
  position: relative; width: min(440px, 100%);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem; text-align: center; animation: pop .3s var(--ease);
}
.modal__close { position: absolute; top: .8rem; right: 1rem; font-size: 1.6rem; color: var(--muted); transition: color .2s; }
.modal__close:hover { color: var(--heading); }
.modal__icon { width: 64px; height: 64px; margin: 0 auto 1.2rem; display: grid; place-items: center; font-size: 1.7rem; color: #1a675a; background: rgba(113, 219, 111, .2); border-radius: 50%; }
.modal__title { color: var(--heading); font-size: 1.5rem; font-weight: 700; margin-bottom: .6rem; }
.modal__text { color: var(--text); margin-bottom: 1.6rem; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .sobre__grid { grid-template-columns: 1fr 1fr; }
  .sobre__grid .card:last-child { grid-column: 1 / -1; }
  .card--wide { grid-template-columns: 1fr; }
  .card--wide .card__media { max-height: 280px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .canal { grid-template-columns: 1fr; gap: 2rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 5rem 0; }

  .nav__actions .btn--primary { display: none; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 0 1.25rem; max-height: 0; overflow: hidden;
    transition: max-height .45s var(--ease), padding .45s var(--ease);
    box-shadow: var(--shadow-sm);
  }
  .nav__links.open { max-height: 70vh; padding: .5rem 1.25rem 1.5rem; }
  .nav__link { padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); color: var(--heading); }
  .nav__link::after { display: none; }

  .nav__dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; border: none; min-width: 0;
    padding: 0 0 .4rem 1rem; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .nav__item.open .nav__dropdown { max-height: 200px; }
  .nav__sublink { padding: .6rem 0; font-size: .95rem; }

  .sobre__grid { grid-template-columns: 1fr; }
  .sobre__grid .card:last-child { grid-column: auto; }
  .oficinas__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .tl { grid-template-columns: 84px 1fr; gap: 1rem; }
  .tl__day { font-size: 2rem; }
  .form__row { grid-template-columns: 1fr; }
  .edital { grid-template-columns: auto 1fr; }
  .edital .btn { grid-column: 1 / -1; justify-content: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  /*.hero__actions .btn { width: 100%; justify-content: center; }
  .gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
}*/
  /* Adicionamos o .anais .btn nesta regra junto com o hero */
  .hero__actions .btn, .anais .btn {
    width: 100%;
    justify-content: center;
  }
  .gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Card do Regulamento / Editais */
.regulamento__card,
.edital__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 960px;
  margin-inline: auto;
}

/* Área central de texto */
.regulamento__content,
.edital__content {
  flex: 1 1 auto;
  min-width: 0; /* Previne quebras forçadas de palavras e estouro no Flexbox */
}

.regulamento__title,
.edital__title {
  color: var(--heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.4rem 0 0.8rem;
}

/* Coluna de botões à direita (alinhada na vertical em fila única) */
.regulamento__actions,
.edital__actions {
  display: flex !important;
  flex-direction: column !important; /* Força os botões a ficarem empilhados */
  flex-wrap: nowrap !important;
  flex-shrink: 0;
  gap: 0.75rem;
  width: 260px; /* Largura padrão uniforme idêntica à segunda imagem */
}

.regulamento__actions .btn,
.edital__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Mobile: Regulamento empilhado em coluna ---------- */
@media (max-width: 768px) {
  .regulamento__card,
  .edital__card {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  /* Ícone roxo: alinhado à esquerda, sem sobrepor o conteúdo */
  .regulamento__card > .card__icon,
  .edital__card > .card__icon {
    align-self: flex-start;
    margin-bottom: 0;
  }

  /* Texto ocupa 100% da largura útil do card */
  .regulamento__content,
  .edital__content {
    flex: 1 1 100%;
    min-width: 100%;
    width: 100%;
  }

  /* Botões logo abaixo do texto, em largura total */
  .regulamento__actions,
  .edital__actions {
    width: 100%;
    flex-shrink: 1;
  }

  .regulamento__actions .btn,
  .edital__actions .btn {
    width: 100%;
    white-space: normal;
  }
}
