/* =========================================================
   Fórum de Regulação e Governança do Saneamento
   Paleta provisória (ajustar ao KV oficial quando chegar)
   ========================================================= */
:root {
  --navy: #182bb3;      /* azul-escuro Arsete */
  --blue: #5592f5;      /* azul gota */
  --water: #28aae1;     /* ciano */
  --aqua: #86e4ce;      /* menta */
  --gold: #17e3cb;      /* acento água (destaques) */
  --deep: #0e1a73;
  --ink: #12205e;
  --muted: #5b6b80;
  --line: #dfe7ef;
  --bg: #ffffff;
  --bg-alt: #f2f7fb;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(24, 43, 179, .35);
  --font-display: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: .9em 1.6em; border-radius: 999px;
  font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-cta { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(24, 43, 179, .8); }
.btn-cta:hover { background: var(--blue); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-whats { background: #25d366; color: #fff; width: 100%; margin: 1rem 0 1.5rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.site-header { background: #fff; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(24,43,179,.15); }
.brand-img { height: 67px; width: auto; transition: height .3s; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand-logo {
  width: 48px; height: 48px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--water), var(--aqua), var(--gold), var(--water));
  display: grid; place-items: center; padding: 3px;
}
.brand-mark {
  width: 100%; height: 100%; border-radius: 50%; background: var(--navy);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--gold);
}
.brand-text { display: flex; flex-direction: column; max-width: 230px; }
.brand-text strong { font-family: var(--font-display); font-size: 1rem; line-height: 1.05; text-transform: uppercase; }
.brand-text small { font-size: .68rem; opacity: .8; letter-spacing: .04em; }

.main-nav { display: flex; gap: 10px; margin-left: auto; }
.main-nav a { color: var(--navy); background: transparent; text-decoration: none; font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; padding: .55em 1.2em; border-radius: 999px; transition: background .2s; }
.main-nav a:hover { background: var(--blue); color: #fff; }
.main-nav a.is-active { background: var(--navy); color: #fff; }
.btn-cta--header { padding: .7em 1.3em; font-size: .78rem; }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; color: #fff; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 60px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--navy) url("../img/hero-teresina-encontro-dos-rios.webp") center/cover no-repeat; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,26,115,.95) 0%, rgba(24,43,179,.82) 40%, rgba(85,146,245,.45) 75%, rgba(40,170,225,.25) 100%); }
.hero-pattern { position: absolute; left: -120px; top: 0; height: 100%; width: auto; max-width: none; opacity: .18; mix-blend-mode: screen; }
.hero-drops { position: absolute; right: 0; bottom: 0; height: 46%; width: auto; opacity: .9; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--aqua); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2rem;
}
.hero-tag::before { content: ""; width: 40px; height: 3px; border-radius: 3px; background: var(--gold); flex-shrink: 0; }
.hero-title { font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 800; text-transform: uppercase; margin-bottom: .35em; }
.hero-subtitle { font-size: 1.08rem; max-width: 620px; opacity: .92; margin: 0 0 1.6rem; }
.hero-info { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .55rem; font-size: .95rem; }
.hero-info li { display: flex; gap: .6em; align-items: flex-start; }
.hero-info .ico { flex-shrink: 0; width: 20px; height: 20px; color: var(--aqua); stroke-width: 2; margin-top: 2px; }

.countdown { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cd-box {
  min-width: 84px; padding: 14px 10px; border-radius: 12px; text-align: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px);
}
.cd-box span { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: #fff; }
.cd-box small { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.cd-sep { font-family: var(--font-display); font-size: 2rem; color: var(--gold); }

.card-elevated { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-form { color: var(--ink); padding: 32px; border-top: 5px solid var(--gold); }
.hero-form h2 { font-size: 1.9rem; text-transform: uppercase; color: var(--navy); margin-bottom: .1em; }
.hero-form-sub { color: var(--muted); font-size: .9rem; margin: 0 0 1.2rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8em 1em; font: inherit; font-size: .95rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfdff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--water); box-shadow: 0 0 0 4px rgba(40,170,225,.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d64545; }
.form-feedback { margin: .8rem 0 0; font-size: .88rem; min-height: 1.2em; }
.form-feedback.ok { color: #1f8a4c; }
.form-feedback.err { color: #d64545; }

/* ---------- Faixa parceiros ---------- */
.partners-strip { background: #fff; padding: 28px 0; border-bottom: 1px solid var(--line); }
.partners-inner { display: flex; align-items: center; gap: 28px 48px; flex-wrap: wrap; justify-content: center; }
.partners-group { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.partners-group + .partners-group { padding-left: 48px; border-left: 1px solid var(--line); }
.partners-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.partners-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 36px; }
.partners-logos img { height: 46px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.partners-logos img:hover { filter: none; opacity: 1; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--navy); text-transform: uppercase; line-height: 1; }
.logo-text small { font-size: .8rem; color: var(--blue); }
@media (max-width: 760px) {
  .partners-group + .partners-group { padding-left: 0; border-left: 0; }
  .partners-logos img { height: 36px; }
}

/* ---------- Seções ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
#programacao { background: #f4f8ff url("../img/kv/bg-pattern-cantos.png") center/cover no-repeat; }
#evento { position: relative; overflow: hidden; }
#evento::before { content: ""; position: absolute; right: -80px; top: 40px; width: 520px; height: 320px; background: url("../img/kv/pattern-azul.png") center/contain no-repeat; opacity: .14; pointer-events: none; }
#evento > .container { position: relative; }
.section-head { max-width: 780px; margin-bottom: 52px; }
.eyebrow { display: inline-block; color: var(--water); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: .6rem; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 10px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); text-transform: uppercase; font-weight: 800; }
.section-lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Evento ---------- */
.evento-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.evento-text { columns: 2; column-gap: 48px; }
.evento-text p { break-inside: avoid; }
.evento-text p { font-size: 1.05rem; color: #2b3d52; margin: 0 0 1.2rem; }
.evento-text p:first-child::first-letter { font-family: var(--font-display); font-size: 3.6rem; float: left; line-height: .85; margin: 6px 10px 0 0; color: var(--blue); font-weight: 800; }
.evento-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar-card {
  position: relative; padding: 30px 28px 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pillar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.pillar-num { display: block; margin-bottom: 10px; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--water); }
.pillar-card h3 { font-size: 1.35rem; color: var(--navy); text-transform: uppercase; }
.pillar-card p { margin: 0; font-size: .92rem; color: var(--muted); }

.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 72px; }
.testimonial {
  margin: 0; padding: 36px; border-radius: var(--radius); color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.testimonial { background: linear-gradient(135deg, var(--deep), var(--navy)); }
.testimonial:nth-child(2) { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.testimonial::before { content: "\201C"; position: absolute; right: 22px; top: -20px; font-family: Georgia, serif; font-size: 10rem; color: rgba(255,255,255,.1); }
.testimonial p { font-size: 1rem; font-style: italic; margin: 0 0 1.4rem; position: relative; }
.testimonial footer { display: flex; flex-direction: column; border-left: 3px solid var(--gold); padding-left: 14px; }
.testimonial footer strong { font-family: var(--font-display); font-size: 1.2rem; }
.testimonial footer span { font-size: .82rem; opacity: .8; }

/* ---------- Programação ---------- */
.prog-tabs { display: inline-flex; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow); margin-bottom: 36px; flex-wrap: wrap; }
.prog-tab { border: 0; background: none; font: inherit; font-weight: 700; padding: .8em 1.6em; border-radius: 999px; cursor: pointer; color: var(--muted); transition: background .2s, color .2s; }
.prog-tab.is-active { background: var(--navy); color: #fff; }
.prog-panel { display: none; gap: 22px; }
.prog-panel.is-active { display: grid; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.prog-block { background: #fff; border-radius: var(--radius); padding: 30px 32px; border-left: 5px solid var(--water); box-shadow: 0 8px 24px -16px rgba(6,42,77,.3); }
.prog-block-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: .4rem; }
.prog-time { font-family: var(--font-display); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; background: var(--aqua); color: var(--navy); padding: .25em .8em; border-radius: 6px; }
.prog-block h3 { font-size: 1.6rem; color: var(--navy); text-transform: uppercase; margin: 0; }
.prog-desc { color: var(--muted); margin: .4rem 0 1rem; }
.prog-mod { margin: 0 0 1rem; font-size: .95rem; }
.prog-mod span { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--water); margin-right: 8px; }
.prog-people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 28px; }
.prog-people li { font-size: .92rem; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.prog-people li strong { color: var(--ink); }
.prog-people a { text-decoration: none; }
.prog-people a:hover strong { color: var(--water); text-decoration: underline; }

/* ---------- Painelistas ---------- */
.speakers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.speaker-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.speaker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.speaker-photo { aspect-ratio: 1 / 1.05; background: linear-gradient(160deg, var(--navy), var(--blue)); position: relative; overflow: hidden; }
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.speaker-body h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: .2em; }
.speaker-body p { font-size: .82rem; color: var(--muted); margin: 0 0 1rem; flex: 1; }
.speaker-link { background: none; border: 0; padding: 0; font: inherit; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--water); cursor: pointer; text-align: left; }
.speaker-link:hover { color: var(--blue); }
.speaker-card.is-highlight { animation: pulse 1.6s ease; }
@keyframes pulse { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px var(--gold); } }

/* ---------- Modal ---------- */
.modal, .lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open, .lightbox.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,20,40,.75); backdrop-filter: blur(4px); }
.modal-dialog { position: relative; background: #fff; border-radius: var(--radius); max-width: 760px; width: 100%; max-height: 90vh; overflow: auto; animation: fade .3s ease; }
.modal-close { position: absolute; top: 10px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.06); font-size: 1.6rem; cursor: pointer; z-index: 2; line-height: 1; }
.modal-content { display: grid; grid-template-columns: 240px 1fr; }
.modal-photo { background: linear-gradient(160deg, var(--blue), var(--water)); }
.modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 36px 32px; }
.modal-info h3 { font-size: 1.9rem; color: var(--navy); }
.modal-role { color: var(--water); font-weight: 600; margin: 0 0 1rem; }
.modal-bio { color: #2b3d52; margin: 0; }

.lightbox { background: rgba(6,20,40,.92); flex-direction: column; }
.lightbox img { max-height: 85vh; border-radius: 8px; }
.lightbox .modal-close { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Notícias ---------- */
.news-feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-media { background: var(--navy); }
.news-media img { width: 100%; height: 100%; object-fit: cover; position: sticky; top: var(--header-h); max-height: calc(100vh - var(--header-h)); }
.news-body { padding: 44px; }
.news-cat { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--water); margin-bottom: .8rem; }
.news-body h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--navy); }
.news-lead { font-size: 1.08rem; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 14px; }
.news-text { position: relative; max-height: 340px; overflow: hidden; transition: max-height .6s ease; }
.news-text::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, #fff); transition: opacity .3s; }
.news-text.is-open { max-height: 4000px; }
.news-text.is-open::after { opacity: 0; pointer-events: none; }
.news-text p { color: #2b3d52; margin: 0 0 1rem; }
.news-toggle { margin: 1rem 0 0; }
.news-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .85rem; }
.news-share span { font-weight: 600; color: var(--muted); }
.news-share a { padding: .45em 1em; border-radius: 999px; background: var(--bg-alt); text-decoration: none; font-weight: 600; color: var(--blue); transition: background .2s, color .2s; }
.news-share a:hover { background: var(--blue); color: #fff; }

/* ---------- Galeria ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; position: relative; background: var(--bg-alt); border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: .8rem; text-align: center; padding: 10px; }
.gallery-item svg { width: 34px; height: 34px; opacity: .45; margin: 0 auto 6px; display: block; }
.gallery-item.has-photo { border: 0; cursor: zoom-in; padding: 0; }
.gallery-item.has-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item.has-photo:hover img { transform: scale(1.05); }

/* ---------- Serviço ---------- */
.service-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.service-map { overflow: hidden; }
.map-embed { aspect-ratio: 16/10; background: #dce6ef; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-info { padding: 28px 30px 32px; }
.map-info h3, .service-contact h3 { font-size: 1.5rem; color: var(--navy); text-transform: uppercase; }
.map-info p { color: var(--muted); margin: 0 0 1rem; }
.service-contact { padding: 32px; }
.service-contact > p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,.82); padding: calc(5.6vw + 40px) 0 0; font-size: .9rem; position: relative; }
.footer-wave { position: absolute; top: 0; left: 0; width: 100%; height: auto; display: block; }
.footer-logo { background: #fff; border-radius: 14px; padding: 16px 20px; }
.footer-logo img { width: 100%; max-width: 320px; height: auto; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 48px; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand .brand-logo { flex-shrink: 0; width: 56px; height: 56px; }
.footer-brand p { margin: 0; font-family: var(--font-display); font-size: 1.25rem; color: #fff; line-height: 1.15; text-transform: uppercase; }
.footer-brand small { font-family: var(--font-body); font-size: .72rem; text-transform: none; opacity: .7; }
.footer-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .5rem; }
.footer-col p { margin: 0 0 1.3rem; }
.footer-col .footer-logos + h4 { margin-top: 32px; }
.footer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-logos img, .footer-logos .logo-text { background: #fff; border-radius: 8px; padding: 8px 12px; height: 46px; width: auto; }
.footer-logos .logo-text { display: inline-flex; align-items: center; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-institutions { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; text-align: center; }
.footer-institutions span { color: #fff; font-weight: 600; margin-right: 6px; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .78rem; opacity: .65; }
.footer-bottom p { margin: 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: .9rem; z-index: 300; transition: transform .3s; box-shadow: var(--shadow); }
.toast.is-show { transform: translate(-50%, 0); }

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

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .main-nav { gap: 18px; }
  .brand-text { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; margin-left: auto; }
  .btn-cta--header { display: none; }
  .brand-text { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 8px;
    background: #fff; padding: 10px 16px 20px; transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
    box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: -1;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .3s ease, opacity .3s ease; }
  .main-nav a { padding: 12px 18px; font-size: .85rem; text-align: center; }
  .brand-img { height: 46px; }
  :root { --header-h: 80px; }

  .evento-cards { grid-template-columns: 1fr; }
  .evento-text { columns: 1; }
  .hero-grid, .evento-grid, .testimonials, .service-grid, .news-feature { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .speakers-grid, .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .news-media img { position: static; max-height: 320px; }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .brand-img { height: 50px; }
  .hero-drops { height: 26%; opacity: .6; }
  .section { padding: 72px 0; }
  .brand-text { max-width: 180px; }
  .brand-text strong { font-size: .85rem; }
  .hero-form, .service-contact, .news-body, .prog-block { padding: 24px 20px; }
  .cd-box { min-width: 0; flex: 1; padding: 10px 4px; }
  .cd-box span { font-size: 1.8rem; }
  .cd-sep { display: none; }
  .countdown { gap: 6px; flex-wrap: nowrap; }
  .speakers-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .speaker-body { padding: 14px; }
  .speaker-body h3 { font-size: 1.05rem; }
  .prog-people { grid-template-columns: 1fr; }
  .pillar-card { padding: 22px 20px; }
  .pillar-num { font-size: 1.8rem; }
  .testimonial { padding: 26px; }
  .modal-content { grid-template-columns: 1fr; }
  .modal-photo { aspect-ratio: 16/10; }
  .modal-info { padding: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .prog-tabs { display: flex; }
  .prog-tab { flex: 1; padding: .8em .6em; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Complementos do tema WordPress
   ========================================================= */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn svg { width: 18px; height: 18px; }
.news-share a { display: inline-flex; align-items: center; gap: 6px; }
.news-share svg { width: 15px; height: 15px; }
.evento-text p { margin: 0 0 1.2rem; }

.lightbox-download { margin-top: 18px; }

.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.news-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.news-card > div { padding: 20px 22px 24px; }
.news-card h3 { font-size: 1.25rem; color: var(--navy); margin: 0; }

.page-main { padding-top: calc(var(--header-h) + 48px); }
.page-back { margin: 0 0 20px; }
.page-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; text-decoration: none; }
.page-back svg { width: 18px; height: 18px; }
.page-content { padding: 40px; }
.page-content h1 { color: var(--navy); font-size: 2.4rem; text-transform: uppercase; }

@media (max-width: 960px) {
  .news-list { grid-template-columns: 1fr; }
}

/* Destaque de notícia compacto (home) */
.news-feature--compact { grid-template-columns: 1fr 1.4fr; align-items: stretch; }
.news-feature--compact .news-media img { position: static; height: 100%; max-height: none; aspect-ratio: auto; }
.news-feature--compact .news-body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.news-feature--compact .news-body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.news-summary p { color: #2b3d52; margin: 0 0 1.4rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { align-self: flex-start; }
.news-feature--compact .news-share { margin-top: 24px; }
@media (max-width: 960px) {
  .news-feature--compact { grid-template-columns: 1fr; }
  .news-feature--compact .news-media img { height: 240px; }
  .news-feature--compact .news-body { padding: 24px 20px; }
}

/* Página da matéria: imagem acima do texto */
.news-feature--full { grid-template-columns: 1fr; max-width: 920px; margin-inline: auto; }
.news-feature--full .news-media img { position: static; width: 100%; height: auto; max-height: 520px; aspect-ratio: 16/9; object-fit: cover; }
.news-feature--full .news-body { padding: 44px 56px 48px; }
.news-feature--full .news-text { max-height: none; overflow: visible; }
.news-feature--full .news-text::after { display: none; }
.news-feature--full .news-text p { font-size: 1.05rem; line-height: 1.75; }
.news-feature--full .news-text img { border-radius: 10px; margin: 1.5rem 0; height: auto; }
.single .page-back { max-width: 920px; margin-inline: auto; margin-bottom: 20px; }
@media (max-width: 640px) {
  .news-feature--full .news-body { padding: 24px 20px 28px; }
}

/* =========================================================
   Painelistas agrupados por painel (sem fotos)
   ========================================================= */
.panel-group + .panel-group { margin-top: 64px; }
.panel-group-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 28px; border-bottom: 2px solid var(--line); position: relative; }
.panel-group-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 90px; height: 2px; background: var(--navy); }
.panel-group-label { font-family: var(--font-display); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; background: var(--aqua); color: var(--navy); padding: .3em .9em; border-radius: 6px; }
.panel-group-head h3 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--navy); text-transform: uppercase; }
.panelists { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.panelist { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 24px 26px; transition: box-shadow .25s, transform .25s; }
.panelist:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.panelist.is-moderator { border-left-color: var(--navy); background: linear-gradient(180deg, #f4f8ff, #fff); }
.panelist h4 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 .5rem; font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); line-height: 1.15; }
.panelist-badge { font-family: var(--font-body); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--navy); padding: .35em .8em; border-radius: 999px; }
.panelist p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.65; }
.panelist.is-highlight { animation: pulse 1.6s ease; }
@media (max-width: 760px) {
  .panelists { grid-template-columns: 1fr; }
  .panelist { padding: 20px; }
}
