@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --radius: 0.75rem;
  --primary: #0B1F3A;
  --primary-foreground: #f8fafc;
  --success: #1B7A4E;
  --success-soft: #e8f6ef;
  --navy-soft: #1a3355;
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --secondary: #f8fafc;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --ring: var(--success);
  --gradient-hero: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--success) 18%, transparent), transparent 45%),
    linear-gradient(180deg, var(--secondary), var(--background));
  --shadow-card: 0 20px 50px -24px color-mix(in srgb, var(--primary) 35%, transparent);
  --font-display: "Archivo", sans-serif;
  --font-sans: "Public Sans", sans-serif;
  --max: 80rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 90%, transparent);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.75rem 0;
}
.logo { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.logo__mark {
  width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 0.75rem; background: var(--primary); color: var(--primary-foreground);
  box-shadow: 0 0 0 2px var(--success);
  overflow: hidden;
}
.logo__mark--image {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.logo__mark--image img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.logo__sigla { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; color: var(--primary); margin: 0; line-height: 1.15; }
.logo__sigla--light { color: var(--primary-foreground); }
.logo__nome { margin: 0; font-size: 0.75rem; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16rem; }
.logo__nome--light { color: color-mix(in srgb, var(--primary-foreground) 70%, transparent); }

.nav-desktop { display: none; align-items: center; gap: 1.5rem; }
.nav-desktop a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground);
  transition: color .15s;
}
.nav-desktop a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.btn-area {
  display: none; border-radius: 0.5rem; background: var(--primary);
  color: var(--primary-foreground); padding: 0.625rem 1rem;
  font-size: 0.875rem; font-weight: 600; transition: background .15s;
}
.btn-area:hover { background: var(--navy-soft); }
@media (min-width: 640px) { .btn-area { display: inline-flex; } }
.btn-menu {
  display: grid; place-items: center; padding: 0.5rem; color: var(--primary); border-radius: 0.5rem;
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .btn-menu { display: none; }
}
.nav-mobile {
  display: none; border-top: 1px solid var(--border); padding: 0.75rem 1rem 1rem;
}
.nav-mobile.is-open { display: block; }
.nav-mobile a { display: block; padding: 0.5rem 0; font-weight: 500; color: var(--primary); }
.nav-mobile .btn-area { display: block; text-align: center; margin-top: 0.5rem; }
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }

/* Sections */
.section { padding: 5rem 0; }
.section--alt { background: var(--secondary); }
.section-head { margin-bottom: 2.5rem; max-width: 42rem; }
.section-head__bar {
  width: 3rem; height: 0.25rem; border-radius: 999px; background: var(--success); margin-bottom: 0.75rem;
}
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; color: var(--primary); }
.section-head p { margin: 0.75rem 0 0; color: var(--muted-foreground); }
.empty {
  border: 1px dashed var(--border); border-radius: 1rem; background: var(--card);
  padding: 2.5rem; text-align: center; color: var(--muted-foreground);
}

/* Hero */
.hero { background: var(--gradient-hero); }
.hero__grid {
  display: grid; gap: 3rem; align-items: center; padding: 4rem 0;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1fr; padding: 6rem 0; }
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; background: var(--success-soft);
  padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600; color: var(--primary);
}
.hero__badge svg { color: var(--success); }
.hero h1 {
  margin-top: 1.5rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  line-height: 1.15; color: var(--primary);
}
.hero__lead { margin: 1.25rem 0 0; max-width: 36rem; font-size: 1.125rem; color: var(--muted-foreground); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 0.5rem; background: var(--primary); color: var(--primary-foreground);
  padding: 0.75rem 1.25rem; font-weight: 600; transition: background .15s;
}
.btn-primary:hover { background: var(--navy-soft); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 0.5rem; border: 2px solid var(--primary); color: var(--primary);
  padding: 0.7rem 1.25rem; font-weight: 600; transition: background .15s, color .15s;
}
.btn-outline:hover { background: var(--primary); color: var(--primary-foreground); }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 2.5rem; max-width: 28rem; font-size: 0.875rem;
}
.hero__stats svg { color: var(--success); margin-bottom: 0.25rem; }
.hero__stats strong {
  display: block; font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 800; color: var(--primary);
}
.hero__stats span { color: var(--muted-foreground); }

.hero-card {
  width: 100%; max-width: 28rem; margin-inline: auto;
  overflow: hidden; border-radius: 1.5rem; border: 1px solid var(--border);
  background: var(--card); box-shadow: var(--shadow-card);
}
.hero-card__img {
  aspect-ratio: 1; width: 100%; object-fit: cover; object-position: top;
  background: var(--muted);
}
.hero-card__media--logo {
  display: flex; align-items: center; justify-content: center;
  padding: 1.75rem 1.75rem 0;
  background: transparent;
}
.hero-card__img--logo {
  aspect-ratio: auto;
  width: auto;
  height: auto;
  max-width: min(100%, 14rem);
  max-height: 12rem;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.hero-card__body { padding: 1.5rem; }
.hero-card__gestao {
  margin: 0; font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--success);
}
.hero-card__nome { margin: 0.25rem 0 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.hero-card__quote {
  margin: 1rem 0 0; border-left: 4px solid var(--success); border-radius: 0.75rem;
  background: var(--secondary); padding: 1rem; font-size: 0.875rem; font-style: italic; color: var(--primary);
}

/* Presidência */
.presidencia { max-width: 56rem; margin-inline: auto; padding: 5rem 1rem; }
.presidencia__texto { font-size: 1.125rem; line-height: 1.7; color: var(--muted-foreground); }
.presidencia__texto p { margin: 0 0 1rem; }
.accordion-btn {
  margin-top: 2rem; width: 100%; display: flex; align-items: center; justify-content: space-between;
  border-radius: 0.75rem; border: 1px solid var(--border); background: var(--secondary);
  padding: 1rem 1.25rem; text-align: left; font-weight: 600; color: var(--primary);
  transition: border-color .15s;
}
.accordion-btn:hover { border-color: var(--success); }
.accordion-btn svg { transition: transform .2s; }
.accordion-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.timeline {
  display: none; margin: 1.5rem 0 0; padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--success); list-style: none;
}
.timeline.is-open { display: block; }
.timeline li { position: relative; margin-bottom: 1rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.95rem; top: 0.4rem;
  width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--success);
}
.timeline .periodo { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--success); }
.timeline .nome { margin: 0; font-weight: 500; color: var(--primary); }

/* Search */
.search-wrap { position: relative; max-width: 36rem; margin-bottom: 2rem; }
.search-wrap svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--muted-foreground); pointer-events: none;
}
.search-wrap input {
  width: 100%; border: 1px solid var(--border); border-radius: 0.75rem;
  background: var(--card); padding: 0.875rem 1rem 0.875rem 3rem;
  outline: none;
}
.search-wrap input:focus { box-shadow: 0 0 0 2px var(--ring); }

/* Cards grid */
.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.ref-card, .evt-card, .news-card {
  border: 1px solid var(--border); border-radius: 1rem; background: var(--card);
  padding: 1.25rem; transition: box-shadow .15s;
}
.ref-card:hover, .evt-card:hover, .news-card:hover { box-shadow: var(--shadow-card); }
.ref-card__head { display: flex; align-items: center; gap: 1rem; }
.avatar {
  width: 3.5rem; height: 3.5rem; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: var(--primary); color: var(--primary-foreground);
  font-family: var(--font-display); font-weight: 700;
  overflow: hidden;
}
.avatar--photo { background: var(--muted); padding: 0; }
.avatar--photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ref-card__nome { margin: 0; font-weight: 600; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-card__cidade { margin: 0; display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.ref-card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; font-size: 0.75rem; font-weight: 500; }
.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border-radius: 999px; padding: 0.25rem 0.625rem;
}
.pill--dark { background: var(--primary); color: var(--primary-foreground); }
.pill--muted { background: var(--muted); color: var(--primary); }
.pill--ok { background: var(--success-soft); color: var(--success); font-weight: 700; }
.ref-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
}
.btn-qr {
  border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.5rem; color: var(--primary);
  transition: border-color .15s, color .15s;
}
.btn-qr:hover { border-color: var(--success); color: var(--success); }
.ref-card.is-hidden { display: none; }
.more-wrap { margin-top: 2.5rem; text-align: center; }

/* Eventos */
.evt-card { display: flex; flex-direction: column; padding: 1.5rem; }
.evt-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.evt-date {
  border-radius: 0.75rem; background: var(--primary); color: var(--primary-foreground);
  padding: 0.5rem 0.75rem; text-align: center; font-family: var(--font-display); font-weight: 800; line-height: 1.2;
}
.evt-date svg { display: block; margin: 0 auto 0.25rem; color: var(--success); }
.evt-card h3 { margin: 1.25rem 0 0; font-size: 1.125rem; font-weight: 700; color: var(--primary); }
.evt-card__local {
  margin: 0.5rem 0 2.5rem; display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; color: var(--muted-foreground);
}
.evt-card__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; margin-top: auto; padding: 0.85rem 1.25rem;
  border-radius: 0.5rem; background: var(--success); color: #fff;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.01em;
  transition: background .15s, transform .15s;
}
.evt-card__cta:hover { background: var(--primary); color: var(--primary-foreground); transform: translateY(-1px); }

/* Notícias */
.news-card__meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; }
.news-card__meta time { color: var(--muted-foreground); }
.news-card svg.icon-news { margin-top: 1.25rem; color: var(--success); }
.news-card h3 { margin: 0.75rem 0 0; font-size: 1.125rem; font-weight: 700; color: var(--primary); }
.news-card__link {
  margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; font-weight: 600; color: var(--primary);
}
.news-card__link:hover { color: var(--success); }
.news-card__body { display: none; margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted-foreground); }
.news-card.is-expanded .news-card__body { display: block; }

/* Diretoria */
.board-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (min-width: 640px) { .board-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .board-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .board-grid { grid-template-columns: repeat(7, 1fr); } }
.board-card {
  border: 1px solid var(--border); border-radius: 1rem; background: var(--card);
  padding: 1.25rem; text-align: center;
}
.board-card .avatar { margin-inline: auto; width: 4rem; height: 4rem; font-size: 1.125rem; }
.board-card .avatar--muted { background: var(--muted); color: var(--primary); }
.board-card__nome { margin: 0.75rem 0 0; font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.board-card__cargo { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--muted-foreground); }

/* Footer */
.site-footer { background: var(--primary); color: color-mix(in srgb, var(--primary-foreground) 80%, transparent); }
.site-footer__grid {
  display: grid; gap: 2.5rem; padding: 3.5rem 0;
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer__title {
  margin: 0 0 1rem; font-family: var(--font-display); font-weight: 700; color: var(--primary-foreground);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a:hover { color: var(--success); }
.site-footer__row { display: flex; gap: 0.5rem; margin: 0.5rem 0; font-size: 0.875rem; }
.socials { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.socials a {
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border-radius: 0.5rem; background: var(--navy-soft); color: var(--primary-foreground);
  transition: background .15s;
}
.socials a:hover { background: var(--success); }
.site-footer__bar {
  border-top: 1px solid color-mix(in srgb, var(--primary-foreground) 10%, transparent);
}
.site-footer__bar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 1.25rem 0; font-size: 0.75rem;
}
.badge-saas {
  border-radius: 999px; background: var(--navy-soft); padding: 0.25rem 0.75rem;
}
.badge-saas strong { color: var(--success); }

/* Modal QR */
.modal {
  position: fixed; inset: 0; z-index: 50; display: none;
  align-items: center; justify-content: center; padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
}
.modal.is-open { display: flex; }
.modal__dialog {
  width: min(100%, 24rem); border-radius: 1rem; background: var(--card);
  padding: 1.5rem; text-align: center; position: relative;
  box-shadow: var(--shadow-card);
}
.modal__close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 2rem; height: 2rem; border-radius: 0.5rem; color: var(--muted-foreground);
}
.modal__close:hover { background: var(--muted); }
.modal h3 { color: var(--primary); font-size: 1.125rem; }
.modal p { margin: 0.35rem 0; color: var(--muted-foreground); font-size: 0.875rem; }
.qr-box {
  margin: 1rem auto; width: 11rem; height: 11rem; display: grid; place-items: center;
  border: 4px solid var(--primary); border-radius: 50%; overflow: hidden;
  position: relative;
}
.qr-box--foto { padding: 0; background: var(--muted); }
.qr-box--iniciais { background: var(--primary); }
.qr-box img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; grid-area: 1 / 1;
}
.qr-box img[hidden] { display: none !important; }
.qr-box__iniciais {
  grid-area: 1 / 1;
  display: block;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.75rem;
  color: var(--primary-foreground);
  letter-spacing: 0.02em;
  user-select: none;
}
.qr-box--foto .qr-box__iniciais { display: none !important; }
.modal__nome { font-weight: 600; color: var(--primary) !important; font-size: 1rem !important; }

.icon { width: 1em; height: 1em; flex-shrink: 0; }
.icon--sm { width: 0.875rem; height: 0.875rem; }
.icon--md { width: 1.25rem; height: 1.25rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }

/* Página de inscrição (evento) */
.page-evento__wrap { max-width: 40rem; }
.page-evento__back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-bottom: 1.25rem; font-size: 0.875rem; font-weight: 600; color: var(--primary);
}
.page-evento__back:hover { color: var(--success); }
.evt-page-card {
  border: 1px solid var(--border); border-radius: 1rem; background: var(--card);
  padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-card);
}
.evt-page-card h1 {
  margin: 0.75rem 0 0; font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800; color: var(--primary);
}
.evt-page-card h2 {
  margin: 0 0 1rem; font-size: 1.15rem; font-weight: 700; color: var(--primary);
}
.evt-page-card__lead { margin: 0.75rem 0 0; color: var(--muted-foreground); }
.evt-page-card__desc { margin-top: 0.75rem; color: var(--muted-foreground); }
.evt-page-card__desc p { margin: 0 0 0.75rem; }
.evt-page-card__desc p:last-child { margin-bottom: 0; }
.evt-page-meta {
  list-style: none; margin: 1.25rem 0 0; padding: 1.25rem 0 0;
  border-top: 1px solid var(--border); display: grid; gap: 0.5rem;
  font-size: 0.9rem; color: var(--foreground);
}
.evt-page-meta strong { color: var(--primary); font-weight: 600; }
.evt-page-alert {
  border-radius: 0.75rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem; font-size: 0.95rem;
}
.evt-page-alert ul { margin: 0; padding-left: 1.1rem; }
.evt-page-alert--ok { background: var(--success-soft); color: var(--success); font-weight: 600; }
.evt-page-alert--err { background: #fef2f2; color: #b91c1c; }
.evt-form { display: grid; gap: 1rem; }
.evt-form__row {
  display: grid; gap: 1rem;
}
@media (min-width: 640px) {
  .evt-form__row { grid-template-columns: 1fr 1fr; }
}
.evt-form__field { display: grid; gap: 0.35rem; }
.evt-form__field label {
  font-size: 0.875rem; font-weight: 600; color: var(--primary);
}
.evt-form__field label span { color: #dc2626; }
.evt-form__field input {
  width: 100%; border: 1px solid var(--border); border-radius: 0.5rem;
  padding: 0.7rem 0.85rem; background: var(--background); color: var(--foreground);
  transition: box-shadow .15s, border-color .15s;
}
.evt-form__field input:focus {
  outline: none; border-color: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
}
.evt-form__submit {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 0.5rem; padding: 0.9rem 1.25rem;
  border-radius: 0.5rem; background: var(--success); color: #fff;
  font-size: 1rem; font-weight: 700; transition: background .15s, transform .15s;
}
.evt-form__submit:hover { background: var(--primary); transform: translateY(-1px); }
