:root {
  --bg: #001427;
  --bg-2: #061b32;
  --bg-3: #0a2440;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --muted-2: rgba(255, 255, 255, 0.45);
  --glow: rgba(56, 130, 230, 0.18);
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* RICH TEXT */
.rich-text p { margin-bottom: 12px; line-height: 1.8; }
.rich-text h2 { font-size: 20px; font-weight: 700; margin: 18px 0 8px; }
.rich-text h3 { font-size: 17px; font-weight: 700; margin: 14px 0 6px; }
.rich-text ul, .rich-text ol { padding-left: 20px; margin-bottom: 12px; }
.rich-text li { margin-bottom: 4px; }
.rich-text a { color: #6ee7b7; text-decoration: underline; }
.rich-text blockquote { border-left: 3px solid var(--border-strong); padding-left: 16px; color: var(--muted); margin: 14px 0; }
.news-modal-content p { margin-bottom: 12px; }
.news-modal-content ul, .news-modal-content ol { padding-left: 20px; margin-bottom: 12px; }
.news-modal-content a { color: #93c5fd; text-decoration: underline; }
section, footer.site, .parallax { max-width: 100vw; overflow-x: hidden; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* HEADER */
header.site {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s;
}
header.site.scrolled {
  position: fixed;
  background: rgba(0, 20, 39, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 20px; }
.brand-mark {
  display: flex; align-items: center;
}
.brand-mark svg { height: 100%; width: auto; }
.brand-mark img { height: 100%; width: auto; object-fit: contain; }

nav.menu ul { list-style: none; display: flex; gap: 6px; align-items: center; }
nav.menu a {
  display: inline-block; padding: 10px 14px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.92);
  border-radius: 6px; transition: all 0.2s;
}
nav.menu a:hover { color: white; background: rgba(255,255,255,0.06); }
nav.menu a.cta {
  background: white; color: var(--bg);
  padding: 10px 18px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  font-size: 13px; border-radius: 4px;
}
nav.menu a.cta:hover { background: rgba(255,255,255,0.9); }
.nav-end-line { display: none; }

.hamburger {
  display: none;
  background: transparent; border: none; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.hamburger span { display: block; width: 26px; height: 2px; background: white; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero {
  position: relative;
  height: 100vh; min-height: 640px;
  background:
    linear-gradient(180deg, rgba(0,20,39,0.35) 0%, rgba(0,20,39,0.55) 60%, var(--bg) 100%),
    var(--hero-bg, linear-gradient(135deg, #001427 0%, #0a2a4a 50%, #001427 100%)) center/cover;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 18px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero-bioria { color: rgba(255,255,255,0.92); font-size: 18px; }
.hero-bioria::before { content: "+ "; }
.hero-logo {
  margin-top: 20px; width: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}
.hero-arrow {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: grid; place-items: center;
  color: white; z-index: 10;
  animation: bounce 2s infinite;
  text-decoration: none;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* HERO SLIDER */
.hero-slider { position: relative; overflow: hidden; padding: 0; }
.slider-track { position: relative; width: 100%; height: 100%; }
.slider-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}
.slider-slide.active { opacity: 1; z-index: 1; }
.slider-slide .slider-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background-size: cover; background-position: center;
}
.slider-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,20,39,0.35) 0%, rgba(0,20,39,0.55) 60%, var(--bg) 100%);
  z-index: 1;
}
.slider-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  z-index: 2; padding: 0 24px;
}
.slider-text h1 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.05;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
  margin-bottom: 12px;
}
.slider-text .hero-bioria { position: static; }
.slider-link { position: absolute; inset: 0; z-index: 3; }
.slider-dots {
  position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer;
  transition: all 0.3s;
}
.slider-dot.active { background: white; transform: scale(1.3); }
.slider-prev, .slider-next {
  position: absolute; top: 50%; z-index: 5;
  background: rgba(0,0,0,0.3); border: none;
  color: white; font-size: 36px; line-height: 1;
  width: 50px; height: 60px;
  cursor: pointer; transition: background 0.2s;
  display: grid; place-items: center;
}
.slider-prev:hover, .slider-next:hover { background: rgba(0,0,0,0.5); }
.slider-prev { left: 0; border-radius: 0 6px 6px 0; transform: translateY(-50%); }
.slider-next { right: 0; border-radius: 6px 0 0 6px; transform: translateY(-50%); }

/* SECTION */
section { padding: 96px 0; position: relative; overflow: hidden; }
.section-glow {
  position: absolute; pointer-events: none;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 60%);
  border-radius: 50%;
  right: -100px; top: 30%;
  z-index: 0;
}
.section-glow.left { left: -100px; right: auto; }
.section-head { text-align: center; margin-bottom: 56px; position: relative; z-index: 1; }
.section-head h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; }
.container-rel { position: relative; z-index: 1; }

/* NOSSA FREGUESIA */
.freg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.freg-card, .exec-wrap, .info-add {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  transition: background 0.3s;
}
.freg-card:hover { background: var(--card-hover); }
.freg-card h3, .exec-wrap h3, .info-add h3 {
  font-size: 26px; font-weight: 700;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
  letter-spacing: -0.01em;
}
.freg-card h3 svg, .exec-wrap h3 svg, .info-add h3 svg { width: 24px; height: 24px; opacity: 0.9; flex-shrink: 0; }
.freg-card p, .info-add p { color: rgba(255,255,255,0.78); font-size: 14.5px; margin-bottom: 14px; line-height: 1.7; }
.freg-logo { margin-top: 20px; }
.freg-logo img { width: auto; opacity: 0.75; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.freg-mini-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; margin-top: 18px;
}
.freg-mini-thumb {
  aspect-ratio: 1; border-radius: 6px; overflow: hidden;
  cursor: pointer;
}
.freg-mini-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.freg-mini-thumb:hover img { transform: scale(1.08); }
.freg-card strong, .freg-card em, .info-add strong { color: white; font-style: normal; font-weight: 600; }

.exec-wrap { margin-bottom: 24px; }
.exec-sub { font-size: 18px; font-weight: 600; margin: 28px 0 18px; }
.exec-sub:first-of-type { margin-top: 8px; }
.exec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.exec-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  transition: background 0.2s;
}
.exec-item:hover { background: rgba(255,255,255,0.08); }
.exec-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-3);
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px;
  color: white; flex-shrink: 0;
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.exec-avatar img { width: 100%; height: 100%; object-fit: cover; }
.exec-photo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: transform 0.2s;
}
.exec-photo:hover { transform: scale(1.1); }
.exec-info strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.exec-info span { color: var(--muted); font-size: 12.5px; }
.assembleia-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.info-add h4 { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.info-add h4:first-of-type { margin-top: 0; }

/* PARALLAX BREAKS */
.parallax {
  height: 60vh; min-height: 380px;
  display: grid; place-items: center;
  text-align: center; padding: 0 24px;
  position: relative;
  background-size: cover; background-position: center;
  background-attachment: fixed;
  background-color: #0d2d4a;
  background-image: linear-gradient(135deg, #0a2440 0%, #173658 50%, #0a2440 100%);
}
.parallax::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 15%, transparent 85%, var(--bg) 100%); z-index: 0; }
.parallax > * { position: relative; z-index: 1; }
.parallax h2 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800; letter-spacing: 0.02em;
  text-transform: uppercase; color: white;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.parallax p { color: white; margin-top: 14px; font-size: 16px; letter-spacing: 0.04em; }
.parallax .deco { width: 60px; height: 1px; background: rgba(255,255,255,0.4); margin: 0 auto 20px; }
.parallax .deco.bottom { margin: 20px auto 0; }

/* PILLS */
.pills { display: flex; justify-content: center; gap: 10px; margin-bottom: 44px; flex-wrap: wrap; }
.pill {
  padding: 8px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  cursor: pointer; transition: all 0.2s;
}
.pill:hover { color: white; background: var(--card-hover); }
.pill.active { background: white; color: var(--bg); border-color: white; }

/* NEWS */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.news-img { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--bg-3); }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-meta-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.news-tag {
  align-self: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: white;
  font-size: 11px;
  padding: 4px 12px; border-radius: 999px;
  font-weight: 600;
}
.news-meta { color: var(--muted); font-size: 12px; }
.news-body h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; letter-spacing: -0.01em; }
.news-body p { color: var(--muted); font-size: 13.5px; flex: 1; margin-bottom: 16px; }
.read-more { color: white; font-size: 13px; font-weight: 600; align-self: flex-start; }
.read-more::after { content: " ›"; }
.news-footer { text-align: center; margin-top: 44px; }

/* NEWS HIDDEN (show only first 3) */
.news-card.news-hidden { display: none; }

/* NEWS MODAL */
.news-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 10, 20, 0.88);
  overflow-y: auto;
  padding: 40px 20px;
}
.news-modal-overlay.active { display: block; }

.news-modal-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 20px;
}

.news-modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.news-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 40px; height: 40px;
  background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border);
  border-radius: 50%;
  color: white; font-size: 24px; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
}
.news-modal-close:hover { background: rgba(255, 255, 255, 0.15); }

.news-modal-image {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-3);
}

.news-modal-body { padding: 32px 36px 40px; }
.news-modal-body .news-meta-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 8px; }
.news-modal-body .news-tag { margin-bottom: 0; }
.news-modal-body .news-meta { margin-bottom: 0; }
.news-modal-body h2 {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 24px;
}
.news-modal-content {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px; line-height: 1.8;
}
.news-modal-content br { margin-bottom: 8px; }

/* FLOATING ATTACHMENTS (outside modal, sticky) */
.news-modal-float {
  position: sticky;
  top: 60px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90px;
  flex-shrink: 0;
  align-self: flex-start;
}
.float-att {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}
.float-att:hover { transform: scale(1.06); border-color: rgba(255,255,255,0.25); text-decoration: none; }
.float-att img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.float-att-pdf .float-att-icon {
  aspect-ratio: 1;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.03);
}
.float-att-link .float-att-icon {
  aspect-ratio: 1;
  display: grid; place-items: center;
  font-size: 18px;
  background: rgba(79,70,229,0.1);
}
.float-att-link { border-color: rgba(79,70,229,0.25); }
.float-att-link:hover { border-color: rgba(79,70,229,0.5); background: rgba(79,70,229,0.08); }
.float-att span {
  display: block; padding: 6px 8px;
  font-size: 10px; color: rgba(255,255,255,0.6);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: center; font-weight: 500;
}

/* MOBILE: inline attachments fallback */
.news-modal-anexos-mobile { display: none; }
.modal-anexos-title {
  font-size: 15px; font-weight: 700;
  margin-bottom: 14px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.modal-anexos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.modal-anexo-item {
  display: block;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden; text-decoration: none; color: white;
}
.modal-anexo-item:hover { border-color: var(--border-strong); text-decoration: none; }
.modal-anexo-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.modal-anexo-item span {
  display: block; padding: 6px 8px;
  font-size: 10px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.modal-anexo-pdf-icon {
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.03);
  display: grid; place-items: center;
  font-size: 20px; color: var(--muted); font-weight: 700;
}

@media (max-width: 700px) {
  .news-modal-wrap { flex-direction: column; align-items: center; padding-top: 10px; }
  .news-modal-float { display: none !important; }
  .news-modal-anexos-mobile { display: block; }
  .news-modal-body { padding: 22px 20px 28px; }
  .news-modal-body h2 { font-size: 22px; }
  .news-modal-overlay { padding: 16px 10px; }
  .news-modal-image { aspect-ratio: 16/10; }
}
.btn-ghost {
  display: inline-block; padding: 10px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: white; font-weight: 600; font-size: 13.5px;
  transition: all 0.2s; cursor: pointer;
}
.btn-ghost:hover { background: var(--card-hover); border-color: var(--border-strong); }

/* COLETIVIDADES - CARD + MODAL */
.colet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.colet-card {
  border-radius: 12px; overflow: hidden; position: relative;
  height: 240px; border: 1px solid var(--border);
  background: var(--card);
}
.colet-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.colet-card:hover img { transform: scale(1.05); }
.colet-card-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-size: 14px; font-weight: 700; color: white;
}

/* COLET MODAL */
.colet-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,10,20,0.88);
  overflow-y: auto; padding: 40px 20px;
}
.colet-modal-overlay.active { display: flex; align-items: center; justify-content: center; }
.colet-modal {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; max-width: 700px; width: 100%;
  overflow: hidden; position: relative;
  animation: modalIn 0.3s ease;
  max-height: 85vh; overflow-y: auto;
  scrollbar-width: none;
}
.colet-modal::-webkit-scrollbar { display: none; }
.colet-modal-image {
  width: 100%; aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  background-color: var(--bg-3);
}
.colet-modal-body { padding: 28px 32px 36px; }
.colet-modal-tag {
  display: inline-block; padding: 3px 12px;
  background: rgba(255,255,255,0.06); border-radius: 4px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  margin-bottom: 10px;
}
.colet-modal-body h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.colet-modal-desc { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.75); margin-bottom: 20px; }
.colet-modal-desc p { margin-bottom: 10px; }
.colet-modal-contacts {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 10px;
}
.colet-ci {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.7);
}
.colet-ci-icon {
  width: 30px; height: 30px; border-radius: 6px;
  background: rgba(255,255,255,0.05);
  display: grid; place-items: center; font-size: 14px; flex-shrink: 0;
}
.colet-ci a { color: #93c5fd; text-decoration: underline; }

@media (max-width: 600px) {
  .colet-card { height: 200px; }
  .colet-modal-body { padding: 22px 20px 28px; }
  .colet-modal-body h2 { font-size: 18px; }
  .colet-modal-overlay { padding: 20px 10px; }
}

/* GALLERY - COVER CARDS */
.covers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cover-card {
  border-radius: 12px; overflow: hidden; cursor: pointer;
  position: relative; aspect-ratio: 16/10;
  border: 1px solid var(--border);
}
.cover-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.cover-card:hover img { transform: scale(1.05); }
.cover-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.cover-info h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 2px; }
.cover-info span { font-size: 11px; color: rgba(255,255,255,0.5); }
.cover-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s;
}
.cover-card:hover .cover-overlay { opacity: 1; }
.cover-overlay span { font-size: 24px; margin-bottom: 6px; }
.cover-overlay small { font-size: 12px; color: rgba(255,255,255,0.8); font-weight: 600; }
.cover-hidden { display: none; }

/* ALBUM POPUP */
.album-popup-wrap {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; max-width: 680px; width: 100%;
  overflow: hidden; position: relative;
  max-height: 85vh; display: flex; flex-direction: column;
  animation: modalIn 0.3s ease;
}
.album-popup-head {
  padding: 20px 28px 14px; flex-shrink: 0;
}
.album-popup-head h3 { font-size: 18px; font-weight: 700; padding-right: 40px; }
.album-popup-head span { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.album-popup-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; padding: 0 28px 28px;
  overflow-y: auto; scrollbar-width: none; flex: 1;
}
.album-popup-grid::-webkit-scrollbar { display: none; }
.album-popup-grid .ap-img {
  aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  cursor: pointer; transition: transform 0.2s;
}
.album-popup-grid .ap-img:hover { transform: scale(1.03); }
.album-popup-grid .ap-img img { width: 100%; height: 100%; object-fit: cover; }

/* NEWS ARCHIVE */
.archive-overlay {
  display:none;position:fixed;inset:0;z-index:250;
  background:rgba(0,10,20,0.92);padding:40px 20px;overflow-y:auto;
}
.archive-overlay.active{display:flex;align-items:center;justify-content:center;}
.archive-wrap {
  background:var(--bg-2);border:1px solid var(--border);border-radius:16px;
  width:100%;max-width:720px;display:flex;overflow:hidden;
  max-height:80vh;position:relative;
}
.archive-close {
  position:absolute;top:14px;right:14px;z-index:2;
  width:36px;height:36px;background:rgba(255,255,255,0.06);
  border:1px solid var(--border);border-radius:50%;
  color:white;font-size:22px;cursor:pointer;display:grid;place-items:center;
}
.archive-left {
  flex:1;overflow-y:auto;padding:28px 24px;
  scrollbar-width:none;
}
.archive-left::-webkit-scrollbar{display:none;}
.archive-left h2{font-size:20px;font-weight:700;margin-bottom:20px;}
.arch-month {
  font-size:12px;font-weight:600;color:var(--muted);
  text-transform:uppercase;letter-spacing:0.06em;
  margin:24px 0 10px;padding-bottom:6px;
  border-bottom:1px solid var(--border);
}
.arch-month:first-of-type{margin-top:0;}
.arch-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.arch-item {
  background:rgba(255,255,255,0.03);border:1px solid var(--border);
  border-radius:8px;padding:12px;cursor:pointer;transition:border-color 0.15s;
}
.arch-item:hover{border-color:var(--border-strong);}
.arch-tag{font-size:10px;color:var(--muted);margin-bottom:4px;}
.arch-ata{display:inline-block;padding:1px 6px;border-radius:3px;background:rgba(79,70,229,0.15);color:#a5b4fc;font-size:10px;font-weight:600;margin-bottom:4px;}
.arch-conv{display:inline-block;padding:1px 6px;border-radius:3px;background:rgba(245,158,11,0.15);color:#fbbf24;font-size:10px;font-weight:600;margin-bottom:4px;}
.arch-filters{display:flex;gap:6px;margin-bottom:16px;}
.arch-fpill{padding:4px 12px;border-radius:999px;font-size:11px;font-weight:600;background:rgba(255,255,255,0.04);border:1px solid var(--border);color:var(--muted);cursor:pointer;}
.arch-fpill.active{background:white;color:#001427;border-color:white;}
.arch-title{font-size:13px;font-weight:600;color:rgba(255,255,255,0.85);line-height:1.4;}
.arch-date{font-size:11px;color:var(--muted);margin-top:4px;}
.archive-tl {
  width:110px;border-left:1px solid var(--border);flex-shrink:0;
  background:rgba(255,255,255,0.01);overflow-y:auto;padding:28px 0;
  scrollbar-width:none;
}
.archive-tl::-webkit-scrollbar{display:none;}
.tl-year {
  padding:14px 14px 2px;font-size:10px;font-weight:700;
  color:var(--muted);text-transform:uppercase;letter-spacing:0.08em;
}
.tl-year:first-child{padding-top:0;}
.tl-item {
  padding:6px 14px;font-size:12px;color:var(--muted);
  cursor:pointer;transition:all 0.15s;position:relative;
}
.tl-item:hover{color:white;}
.tl-item.active{color:white;font-weight:600;}
.tl-item.active::before {
  content:'';position:absolute;left:-1px;top:4px;bottom:4px;
  width:2px;background:#4f46e5;
}
@media(max-width:600px){
  .archive-wrap{flex-direction:column;max-height:90vh;}
  .archive-tl{width:100%;border-left:none;border-top:1px solid var(--border);
    display:flex;flex-wrap:wrap;padding:12px;gap:4px;overflow-x:auto;}
  .tl-year{padding:4px 8px;width:100%;}
  .tl-item{padding:4px 10px;border-radius:6px;background:rgba(255,255,255,0.04);}
  .tl-item.active::before{display:none;}
  .tl-item.active{background:rgba(79,70,229,0.2);}
  .arch-grid{grid-template-columns:1fr;}
  .archive-left{padding:20px 16px;}
}

/* LIGHTBOX */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center; padding: 20px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 90vw; max-height: 85vh; border-radius: 8px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: white;
  font-size: 36px; cursor: pointer; z-index: 2;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none;
  color: white; font-size: 28px; width: 44px; height: 60px;
  cursor: pointer; border-radius: 8px; z-index: 2;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* REUNIÕES / DOWNLOADS */
.reunioes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.doc-card, .reuniao-card, .download-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.doc-type-tag {
  display: inline-block; padding: 3px 10px;
  border-radius: 4px; font-size: 11px; font-weight: 600;
  margin-bottom: 10px;
}
.doc-ata { background: rgba(79,70,229,0.15); color: #a5b4fc; }
.doc-conv { background: rgba(245,158,11,0.15); color: #fbbf24; }
.doc-card h4, .reuniao-card h4, .download-card h4 {
  font-size: 14px; font-weight: 700;
  margin-bottom: 16px; line-height: 1.4;
}
.doc-card .desc, .download-card .desc { color: var(--muted); font-size: 13px; margin-bottom: 16px; word-break: break-word; }
.doc-hidden { display: none; }
.btn-pdf {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: white; font-size: 13px; font-weight: 600;
  padding: 10px 16px; border-radius: 8px;
  width: 100%; cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-pdf:hover { background: rgba(255,255,255,0.08); }

/* INFORMAÇÕES */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}
.info-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.info-img {
  aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  background-color: var(--bg-3);
}
.info-body { padding: 18px 22px 22px; }
.info-body h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.info-body p { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* CONTACTOS */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact-form, .contact-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}
.contact-form h3, .contact-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.contact-form > p { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.form-field label em { color: rgba(255,255,255,0.6); font-style: normal; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: white; font-family: inherit; font-size: 14px;
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--border-strong); background: rgba(0,0,0,0.3);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted-2); }
.form-field textarea { min-height: 100px; resize: vertical; }
.check-row {
  display: flex; gap: 10px; margin: 18px 0;
  align-items: flex-start; font-size: 12px; color: var(--muted);
  line-height: 1.5;
}
.check-row input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: white; }
.submit-btn {
  width: 100%; padding: 12px;
  background: white;
  border: 1px solid white;
  border-radius: 8px;
  color: var(--bg); font-weight: 700; font-size: 13.5px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.2s;
}
.submit-btn:hover { opacity: 0.9; }
.submit-btn:disabled { background: rgba(255,255,255,0.05); border-color: var(--border); color: var(--muted); cursor: not-allowed; }

.info-block { display: flex; gap: 14px; margin-bottom: 18px; }
.info-block svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; opacity: 0.85; }
.info-block strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.info-block span { color: var(--muted); font-size: 13.5px; }
.info-block small { display: block; color: var(--muted-2); font-size: 12px; }
.info-divider { height: 1px; background: var(--border); margin: 22px 0; }
.socials-row { display: flex; gap: 10px; }
.socials-row a {
  width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  transition: background 0.2s;
}
.socials-row a:hover { background: rgba(255,255,255,0.12); }

/* DROPDOWN MENU */
.has-dropdown { position: relative; }
.has-dropdown > a svg { transition: transform 0.2s; vertical-align: middle; margin-left: 2px; }
.has-dropdown:hover > a svg { transform: rotate(180deg); }
.dropdown {
  display: none;
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: rgba(0,20,39,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  min-width: 200px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  z-index: 100;
  list-style: none;
  margin-top: 8px;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}
.dropdown li a:hover { background: rgba(255,255,255,0.1); color: white; }
@media (max-width: 980px) {
  .dropdown { position: static; transform: none; background: transparent; border: none; box-shadow: none; padding: 0 0 0 20px; margin-top: 0; backdrop-filter: none; display: none; }
  .has-dropdown:hover .dropdown { display: none; }
  .dropdown li a { padding: 10px 12px; font-size: 14px; }
}

/* NAV CTA BUTTON */
.nav-cta {
  display: inline-flex !important;
  align-items: center;
  padding: 8px 22px !important;
  border: 2px solid #fff;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  transition: all 0.25s !important;
}
.nav-cta:hover {
  background: rgba(255,255,255,0.18) !important;
}
@media (max-width: 980px) {
  .nav-cta {
    margin: 0 !important;
    text-align: center;
    justify-content: center;
    display: flex !important;
    width: 100%;
  }
}

/* COOKIE CONSENT */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: rgba(240,242,245,0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 0;
  animation: cookieSlide 0.4s ease;
}
@keyframes cookieSlide { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.cookie-banner p { font-size: 13px; color: #475569; line-height: 1.5; margin: 0; flex: 1; }
.cookie-banner a { color: #4f46e5; text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  padding: 9px 20px; border-radius: 8px; font-size: 13px;
  font-weight: 600; cursor: pointer; border: none; font-family: inherit;
}
.cookie-accept { background: #4f46e5; color: white; }
.cookie-accept:hover { background: #4338ca; }
.cookie-reject { background: rgba(0,0,0,0.04); color: #64748b; border: 1px solid rgba(0,0,0,0.1); }
.cookie-reject:hover { background: rgba(0,0,0,0.08); }

@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; text-align: center; padding: 16px 20px; gap: 12px; }
  .cookie-btns { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* NEWSLETTER */
.newsletter-section { padding: 0; }
.newsletter-bar {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 48px;
}
.newsletter-text h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.newsletter-text p { font-size: 13px; color: var(--muted); max-width: 340px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input[type="email"] {
  padding: 10px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: white; font-size: 13px; font-family: inherit;
  width: 240px; outline: none;
}
.newsletter-form input[type="email"]:focus { border-color: rgba(79,70,229,0.5); }
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.25); }
.newsletter-form button {
  padding: 10px 22px;
  background: #4f46e5; border: none;
  border-radius: 8px; color: white;
  font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: #4338ca; }
.newsletter-rgpd { display: block; font-size: 10px; color: rgba(255,255,255,0.25); margin-top: 8px; }

@media (max-width: 700px) {
  .newsletter-bar { flex-direction: column; text-align: center; padding: 24px 20px; }
  .newsletter-text p { max-width: 100%; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input[type="email"] { width: 100%; }
  .newsletter-rgpd { text-align: center; }
}

/* FOOTER */
footer.site {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.foot-col h4 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.foot-col p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin-bottom: 8px; }
.foot-col a { color: var(--muted); font-size: 13.5px; }
.foot-col a:hover { color: white; }
.foot-col small { color: var(--muted-2); font-size: 12px; }
.foot-col .social-fb {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: inline-grid; place-items: center;
  margin-top: 10px;
}
.foot-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: var(--muted);
}
.foot-bottom .legal a { margin-left: 18px; }
.rede-info { display: block; font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 2px; font-weight: 400; }
.dev-credits { margin-left: 18px; font-size: 11px; color: rgba(255,255,255,0.25); }
.dev-credits a { color: rgba(255,255,255,0.4); text-decoration: underline; }
.dev-credits a:hover { color: rgba(255,255,255,0.7); }
.dev-logo { height: 20px; width: auto; vertical-align: middle; opacity: 0.5; transition: opacity 0.2s; margin-left: 4px; }
.dev-credits a:hover .dev-logo { opacity: 0.9; }

/* FLASH MESSAGES */
.flash {
  position: fixed; top: 90px; right: 20px; z-index: 200;
  padding: 14px 22px; border-radius: 8px;
  background: var(--bg-3); border: 1px solid var(--border-strong);
  color: white; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease;
}
.flash.success { border-left: 4px solid #4ade80; }
.flash.error { border-left: 4px solid #f87171; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* SINGLE NEWS PAGE */
.single-news { padding: 140px 0 96px; }
.single-news .article-meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.single-news h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 20px; max-width: 900px; }
.single-news .article-image { width: 100%; max-width: 900px; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; margin: 24px 0 36px; }
.single-news .article-body { max-width: 800px; font-size: 16px; color: rgba(255,255,255,0.85); }
.single-news .article-body p { margin-bottom: 18px; line-height: 1.8; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.back-link:hover { color: white; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .freg-grid, .contact-wrap, .foot-grid { grid-template-columns: 1fr; gap: 20px; }
  .news-grid, .info-grid, .reunioes-grid { grid-template-columns: repeat(2, 1fr); }
  .colet-grid { grid-template-columns: repeat(2, 1fr); }
  .exec-grid, .assembleia-grid { grid-template-columns: repeat(2, 1fr); }
  .covers-grid { grid-template-columns: repeat(2, 1fr); }
  .hamburger { display: flex; }
  nav.menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(0, 20, 39, 0.98);
    backdrop-filter: blur(14px);
    display: none;
    border-top: 1px solid var(--border);
  }
  nav.menu.open { display: block; }
  nav.menu ul {
    display: flex; flex-direction: row; flex-wrap: wrap;
    gap: 0; padding: 10px 24px; align-items: stretch;
    list-style: none; margin: 0;
  }
  nav.menu ul li { width: 100%; }
  nav.menu a { display: block; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); border-radius: 0; }
  nav.menu ul li.nav-cta-li { display: none; }
  section { padding: 64px 0; }
  .hero { min-height: 500px; }
  .slider-prev, .slider-next { width: 40px; height: 48px; font-size: 28px; }
  .slider-dots { bottom: 60px; }
}
@media (max-width: 600px) {
  .news-grid, .info-grid, .reunioes-grid,
  .exec-grid, .assembleia-grid { grid-template-columns: 1fr; }
  .colet-grid { grid-template-columns: 1fr; }
  .covers-grid { grid-template-columns: 1fr; }
  .freg-mini-gallery { grid-template-columns: repeat(3, 1fr); }
  .album-popup-grid { grid-template-columns: repeat(3, 1fr); }
  .album-popup-head { padding: 20px 18px 10px; }
  .album-popup-grid { padding: 0 18px 18px; }
  .hero { min-height: 420px; height: 85vh; }
  .hero h1 { font-size: 28px; }
  .hero-bioria { font-size: 14px; }
  .slider-text h1 { font-size: 26px; }
  .slider-prev, .slider-next { width: 34px; height: 40px; font-size: 22px; }
  .slider-dots { bottom: 50px; gap: 8px; }
  .slider-dot { width: 8px; height: 8px; }
  section { padding: 48px 0; }
  .section-head h2 { font-size: 26px; }
  .container { padding: 0 16px; }
  .parallax { height: 40vh; min-height: 260px; background-attachment: scroll; }
  .parallax h2 { font-size: 24px; }
  .contact-form { padding: 28px 20px; }
  .contact-form h3 { font-size: 20px; }
  .contact-info { padding: 28px 20px; }
  .foot-grid { gap: 28px; padding-bottom: 28px; }
  .foot-col h4 { font-size: 16px; margin-bottom: 10px; }
  .foot-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .foot-bottom .legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .foot-bottom .legal a { margin-left: 0; }
  .pills { gap: 6px; }
  .pill { padding: 6px 14px; font-size: 12px; }
  .exec-item { padding: 14px; }
  .freg-card { padding: 28px 20px; }
  .freg-card h3 { font-size: 17px; }
  .socials-row { gap: 10px; }
  .socials-row a { width: 36px; height: 36px; }
  .socials-row a svg { width: 14px; height: 14px; }
  .reuniao-card, .download-card { padding: 18px; }
  .flash { right: 10px; left: 10px; top: 80px; font-size: 13px; }
}

/* iOS parallax fix */
@supports (-webkit-touch-callout: none) {
  .parallax { background-attachment: scroll; }
}
