* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: #f7f7f7;
  color: #0c2438;
  overflow-x: hidden;
}

h1, h2, h3, h4,
.menu a,
.menu-item > a,
.btn-primary,
.btn-outline,
.dropdown-item strong {
  font-family: "Poppins", "Inter", Arial, Helvetica, sans-serif;
}

.container {
  width: 92%;
  max-width: 1500px;
  margin: auto;
}

.header {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-content {
  min-height: 178px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo img {
  height: 156px;
  width: auto;
  display: block;
}

.menu {
  display: flex;
  flex: 1;
  gap: 28px;
  align-items: center;
  justify-content: center;
}

.menu a {
  text-decoration: none;
  color: #032e47;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  padding: 42px 0;
  transition: color .2s ease;
}

.menu a.active,
.menu a:hover {
  color: #ff7a00;
}

.menu a.active::after,
.menu a:hover::after {
  content: "";
  position: absolute;
  height: 3px;
  background: #ff7a00;
  width: 100%;
  left: 0;
  bottom: 28px;
}

.menu-item {
  position: relative;
  padding: 42px 0;
}

.menu-item > a {
  text-decoration: none;
  color: #032e47;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  white-space: nowrap;
  transition: color .2s ease;
}

.menu-caret {
  font-size: 10px;
}

.menu-item:hover > a,
.menu-item.open > a {
  color: #ff7a00;
}

.menu-item > a.active::after,
.menu-item > a:hover::after {
  content: none;
}

.menu-item:hover::after,
.menu-item.open::after,
.menu-item.active::after {
  content: "";
  position: absolute;
  height: 3px;
  background: #ff7a00;
  width: 100%;
  left: 0;
  bottom: 28px;
}

.menu-item.open .menu-caret {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(12px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(3, 46, 71, 0.16);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 9999;
}

.menu-item.open .dropdown {
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform 0.2s ease;
}

.dropdown-clube {
  width: 800px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
  row-gap: 0;
}

.dropdown-item {
  display: grid;
  grid-template-columns: 46px 1fr 16px;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #eaeaea;
  text-decoration: none;
  color: #0c2438;
}

.dropdown-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.dropdown-item > i:first-child {
  font-size: 25px;
  color: #032e47;
  width: 36px;
  text-align: center;
}

.dropdown-item span {
  display: flex;
  flex-direction: column;
}

.dropdown-item strong {
  font-size: 14.5px;
  color: #032e47;
  margin-bottom: 4px;
}

.dropdown-item small {
  font-size: 12px;
  color: #4b5563;
}

.dropdown-item .arrow {
  font-size: 11px;
  color: #ff7a00;
  transition: 0.2s;
}

.dropdown-item:hover {
  background: #f2f7fa;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 10px;
}

.dropdown-item:hover .arrow {
  transform: translateX(5px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #032e47;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  min-height: 780px;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-bg.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(3,46,71,.93), rgba(3,46,71,.62), rgba(3,46,71,.32));
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Ondulação decorativa entre seções (hero->welcome, reels->footer). O SVG estica pra largura
   toda (preserveAspectRatio="none") e fica sempre com a mesma altura, então funciona em
   qualquer tamanho de tela sem distorcer o efeito. */
.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  line-height: 0;
  pointer-events: none;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 130px;
}

@media (max-width: 700px) {
  .wave-divider svg {
    height: 70px;
  }
}

.hero-text h1 {
  font-size: 58px;
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.highlight {
  color: #ff7a00;
}

.hero-text p {
  font-size: 21px;
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 32px;
  color: rgba(255,255,255,.92);
}

.btn-primary {
  background: linear-gradient(135deg, #ff9100, #ff7a00);
  border: none;
  color: #fff;
  padding: 18px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary:hover {
  background: #ff7a00;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255,122,0,.35);
}

/* Scroll-reveal: cards e blocos de conteúdo entram com fade + leve
   deslocamento pra cima conforme aparecem na tela (js/scroll-reveal.js). */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--reveal-delay, 0s);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.welcome {
  padding: 80px 0 35px;
  background: #fff;
}

.welcome-grid {
  display: grid;
  grid-template-columns: .9fr 1.7fr;
  gap: 60px;
  align-items: center;
}

.welcome-text span,
.news-title span {
  color: #ff7a00;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
}

.welcome-text h2,
.news-title h2 {
  font-size: 42px;
  color: #032e47;
  margin: 12px 0 25px;
}

.welcome-text p {
  font-size: 17px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 35px;
}

.btn-outline {
  border: 2px solid #032e47;
  background: transparent;
  color: #032e47;
  padding: 17px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn-outline:hover {
  background: #032e47;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(3,46,71,.22);
}

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

.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 12px 35px rgba(3,46,71,.08);
  border: 1px solid #eaeaea;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(3,46,71,.16);
  border-color: #ff7a00;
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: #fff;
  color: #032e47;
  border-radius: 50%;
  margin: -35px auto 15px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(3,46,71,.14);
  transition: background .25s ease, color .25s ease;
}

.card:hover .card-icon {
  background: #ff7a00;
  color: #032e47;
}

.card h3 {
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #032e47;
}

.card p {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 25px;
}

.numbers {
  position: relative;
  background: #fff;
  padding: 35px 0 80px;
}

.numbers-grid {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(3,46,71,.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid #eaeaea;
}

.numbers-grid div {
  padding: 35px 25px;
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  border-right: 1px solid #eaeaea;
}

.numbers-grid div:last-child {
  border-right: none;
}

.numbers-grid i {
  font-size: 54px;
  color: #ff7a00;
  grid-row: span 2;
}

.numbers-grid strong {
  color: #032e47;
  font-size: 36px;
  line-height: 1;
}

.numbers-grid span {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0c2438;
}

/* Seção "80 anos de história" — texto + colagem de fotos inclinadas (home) */
.legacy {
  position: relative;
  padding: 90px 0;
  background: #eef4f8;
}

.legacy-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 70px;
  align-items: center;
}

.legacy-text span {
  color: #ff7a00;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
}

.legacy-text h2 {
  font-size: 36px;
  line-height: 1.25;
  color: #032e47;
  margin: 12px 0 20px;
}

.legacy-text p {
  font-size: 16px;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 30px;
  max-width: 520px;
}

.legacy-photos {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.legacy-photo {
  width: 84%;
  border: 8px solid #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(3,46,71,.18);
}

.legacy-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.legacy-photo-1 {
  margin: 0 auto 0 0;
  transform: rotate(-4deg);
}

.legacy-photo-2 {
  margin: 0 0 0 auto;
  transform: rotate(3deg);
}

@media (max-width: 900px) {
  .legacy-grid {
    grid-template-columns: 1fr;
  }

  .legacy-text p {
    max-width: none;
  }
}

.home-atividades {
  padding: 80px 0;
  background: #fff;
}

.home-atividades-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 45px;
}

.home-atividades-header span {
  color: #ff7a00;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
}

.home-atividades-header h2 {
  font-size: 34px;
  line-height: 1.3;
  color: #032e47;
  margin-top: 10px;
}

/* Flex em vez de grid: assim, quando a última linha não fecha as 4 colunas, os cards que
   sobram ficam centralizados (não presos na esquerda) — e vão se acomodando conforme mais
   atividades são adicionadas, até fechar a linha de novo. */
.home-atividades-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.home-atividade-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 0 0 calc(25% - 16.5px);
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(3,46,71,.08);
  padding: 36px 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-atividade-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(3,46,71,.16);
  border-color: #ff7a00;
}

.home-atividade-card i {
  font-size: 44px;
  color: #ff7a00;
}

.home-atividade-card h3 {
  font-size: 15.5px;
  text-transform: uppercase;
  color: #032e47;
  margin: 0;
}

.home-atividades-see-more {
  display: flex;
  width: fit-content;
  margin: 45px auto 0;
  border-color: #ff7a00;
  color: #ff7a00;
}

.home-atividades-see-more:hover {
  background: #ff7a00;
  color: #fff;
  box-shadow: 0 10px 24px rgba(255,122,0,.28);
}

@media (max-width: 900px) {
  .home-atividade-card {
    flex-basis: calc(33.333% - 14.666px);
  }
}

@media (max-width: 560px) {
  .home-atividades-grid {
    gap: 14px;
  }

  .home-atividade-card {
    flex-basis: calc(50% - 7px);
    padding: 26px 12px;
  }

  .home-atividade-card i {
    font-size: 34px;
  }
}

.news {
  padding: 80px 0;
  background: #f7f7f7;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

/* No máximo 2 cards visíveis por vez; havendo mais, as setas (ou o arrasto,
   no touch) revelam o resto. min-width:0 é necessário porque .news-cards-wrap
   agora é o item direto do grid — sem isso, o item usa o min-width:auto padrão
   e o navegador alarga a coluna (e a página inteira) pra caber tudo sem
   cortar, em vez de deixar só a tira rolar por dentro. */
.news-cards-wrap {
  position: relative;
  min-width: 0;
}

.news-cards {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.news-cards::-webkit-scrollbar {
  display: none;
}

.news-cards-wrap .gallery-arrow {
  transition: opacity .2s ease, visibility .2s ease;
}

.news-cards-wrap.sem-rolagem .gallery-arrow,
.news-nav-oculta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.news-title h2 {
  color: #032e47;
}

.news-see-more {
  justify-self: start;
  width: fit-content;
  margin-top: 24px;
  border-color: #ff7a00;
  color: #ff7a00;
}

.news-see-more:hover {
  background: #ff7a00;
  color: #fff;
  box-shadow: 0 10px 24px rgba(255,122,0,.28);
}

.news-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(3,46,71,.07);
  border: 1px solid #eaeaea;
  cursor: pointer;
  transition: box-shadow .25s ease, border-color .25s ease;
}

/* Sem translateY aqui de propósito: o card fica dentro de uma tira com
   scroll/drag horizontal, e um card subindo no hover enquanto a página rola
   por baixo do cursor passava a sensação de estar bugado. */
.news-card:hover {
  box-shadow: 0 18px 40px rgba(3,46,71,.16);
  border-color: #ff7a00;
}

.news-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #f7f7f7;
}

.news-card div {
  padding: 20px;
}

.news-card small {
  color: #ff7a00;
  font-weight: 800;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 10px 0;
  font-size: 20px;
  color: #032e47;
}

.news-card p {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Prévia de notícias na home: card deitado (foto à esquerda, texto à direita). */
.news-cards .news-card {
  display: flex;
  align-items: stretch;
  flex: 0 0 calc(50% - 12.5px);
  scroll-snap-align: start;
}

.news-cards .news-card img {
  width: 190px;
  min-width: 190px;
  height: auto;
  object-fit: cover;
}

.news-cards .news-card div {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.news-cards .news-card small {
  font-size: 12.5px;
}

.news-cards .news-card h3 {
  margin: 8px 0;
  font-size: 19px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-cards .news-card p {
  font-size: 14.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 700px) {
  .news {
    padding: 50px 0;
  }

  .news-title {
    text-align: center;
  }

  .news-title h2 {
    font-size: 26px;
    margin: 10px 0 20px;
  }

  .news-cards {
    margin-bottom: 4px;
  }

  /* No desktop o card é "deitado" (foto à esquerda, texto à direita) — no
     celular isso espremia o texto numa coluna estreita demais e ficava
     ilegível. Aqui ele volta a empilhar: foto em cima, texto embaixo. */
  .news-cards .news-card {
    flex-basis: 88%;
    flex-direction: column;
  }

  .news-cards .news-card img {
    width: 100%;
    min-width: 0;
    height: 170px;
  }

  .news-cards .news-card div {
    padding: 18px 20px;
  }

  .news-cards .news-card h3 {
    font-size: 17px;
  }

  .news-see-more {
    justify-self: stretch;
    width: 100%;
    justify-content: center;
    margin-top: 22px;
  }
}

.footer {
  background: #032e47;
  color: #fff;
}

.footer-links {
  background: linear-gradient(135deg, #032e47, #083b5c);
  padding: 60px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 2.2fr;
  gap: 45px;
}

.footer-brand img {
  width: 170px;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  color: #f1f1f1;
}

.contact p,
.contact-map-link {
  font-size: 15px;
  line-height: 1.6;
  color: #f1f1f1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.contact p.contact-email {
  font-size: 13px;
}

.contact-map-link {
  margin-bottom: 0;
  text-decoration: none;
  transition: color .2s ease;
}

.contact-map-link:hover {
  color: #ff7a00;
}

.footer-grid h4 {
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: #fff;
}

.footer-grid a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 15px;
  font-size: 15px;
  opacity: .9;
  transition: color .2s ease, opacity .2s ease;
}

.footer-grid a:hover {
  color: #ff7a00;
  opacity: 1;
}

.social {
  display: flex;
  gap: 14px;
  margin-top: 25px;
}

.social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,122,0,.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff7a00;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.social a:hover {
  background: #ff7a00;
  color: #032e47;
  border-color: #ff7a00;
}

.contact i {
  color: #ff7a00;
  width: 16px;
  flex-shrink: 0;
  padding-top: 3px;
}

.copy {
  background: #021f30;
  padding: 24px 5%;
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  color: #e5e5e5;
}

.copy a {
  color: #e5e5e5;
  text-decoration: none;
}

.copy a:hover {
  color: #ff7a00;
  text-decoration: underline;
}

.whatsapp {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
  z-index: 9999;
}

@media (max-width: 1200px) {
  .menu {
    gap: 16px;
  }

  .menu a {
    font-size: 12px;
  }

  .hero {
    padding: 60px 0;
  }

  .welcome-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dropdown-clube {
    width: 90vw;
    grid-template-columns: 1fr;
  }

  .dropdown-item:nth-last-child(-n+2) {
    border-bottom: 1px solid #eaeaea;
  }
}

@media (max-width: 1024px) {
  .header-content {
    height: auto;
    padding: 16px 0;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
    order: 3;
    margin-left: auto;
  }

  .menu {
    display: none;
    order: 4;
    flex: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-top: 16px;
    border-top: 1px solid #eaeaea;
    max-height: 70vh;
    overflow-y: auto;
  }

  .header.menu-open .menu {
    display: flex;
  }

  .menu a {
    padding: 16px 4px;
    width: 100%;
    border-bottom: 1px solid #f2f2f2;
  }

  .menu a.active::after,
  .menu a:hover::after {
    content: none;
  }

  .menu a.active {
    background: #ffede0;
  }

  .menu-item {
    padding: 0;
    width: 100%;
    border-bottom: 1px solid #f2f2f2;
  }

  .menu-item > a {
    padding: 16px 4px;
    width: 100%;
    justify-content: space-between;
  }

  .menu-item.open::after,
  .menu-item.active::after,
  .menu-item:hover::after {
    content: none;
  }

  .menu-item.active > a {
    background: #ffede0;
  }

  .dropdown {
    position: static;
    display: none;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
    background: #f5f9fb;
  }

  .menu-item.open .dropdown {
    display: block;
  }

  .dropdown-clube {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 6px 4px 14px;
    column-gap: 0;
  }

  .dropdown-item {
    padding: 12px 4px;
  }
}

@media (max-width: 800px) {
  .hero {
    min-height: 750px;
  }

  .hero-text h1 {
    font-size: 40px;
  }

  .cards,
  .numbers-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .copy {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(3,46,71,.94), rgba(11,82,122,.88)),
    url("img/hero-country.jpg") center/cover no-repeat;
  padding: 55px 0;
  color: #fff;
  overflow: hidden;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.page-hero span {
  color: #ff7a00;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: 58px;
  margin: 15px 0 20px;
}

.page-hero p {
  font-size: 21px;
  line-height: 1.5;
  max-width: 650px;
}

.page-hero-image {
  position: relative;
}

.page-hero-image::before {
  content: "";
  position: absolute;
  width: 85%;
  height: 85%;
  right: -28px;
  top: 28px;
  background: #ff7a00;
  border-radius: 30px;
  transform: rotate(5deg);
}

@media (max-width: 800px) {
  .page-hero-image::before {
    right: 6px;
    width: 78%;
  }
}

.page-hero-image img {
  width: 100%;
  position: relative;
  z-index: 2;
  border-radius: 30px;
  display: block;
  box-shadow: 0 25px 50px rgba(3,46,71,.25);
}

.history-content {
  background: #fff;
  padding: 80px 0;
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 70px;
  align-items: flex-start;
}

.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 26px;
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 54px;
  bottom: -36px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #d8dee4 0, #d8dee4 4px, transparent 4px, transparent 9px);
}

.timeline-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #eef4f8;
  color: #032e47;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
  z-index: 1;
}

.timeline-item p {
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
  padding-top: 12px;
}

.history-side {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.history-photo {
  width: 88%;
  border: 8px solid #fff;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(3,46,71,.18);
  overflow: hidden;
}

.history-photo-1 {
  margin: 0 auto 0 0;
  transform: rotate(-4deg);
}

.history-photo-2 {
  margin: 0 0 0 auto;
  transform: rotate(3deg);
}

.history-photo-3 {
  margin: 0 auto 0 8%;
  transform: rotate(-2deg);
}

.history-photo img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .page-hero-grid,
  .history-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 42px;
  }

  .history-side {
    position: static;
  }
}

.structure-hero {
  background:
    linear-gradient(135deg, rgba(3,46,71,.94), rgba(11,82,122,.88)),
    url("img/hero-country.jpg") center/cover no-repeat;
  padding: 45px 0;
  color: #fff;
  overflow: hidden;
}

.structure-hero h1 {
  font-size: 38px;
  margin-bottom: 12px;
}

.structure-hero p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
  color: rgba(255,255,255,.9);
}

.structure-content {
  background: #f7f7f7;
  padding: 40px 0 80px;
}

.structure-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: flex-start;
}

/* min-width:0 incondicional (não só no mobile): sem isso, um item do grid
   usa o min-width:auto padrão, e um conteúdo que não quebra linha (ex: nome
   de arquivo gigante sem espaços na lista de removidos) alarga o item (e com
   ele a página inteira) em vez de só forçar scroll/quebra ali dentro — isso
   empurra pra fora da tela QUALQUER botão desse painel, não só o do item
   problemático. Já aconteceu em produção na Área de Mídia do Portal.*/
.structure-sidebar,
.structure-panel {
  min-width: 0;
}

.structure-sidebar {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(3,46,71,.06);
  border: 1px solid #eaeaea;
  overflow: hidden;
}

.structure-sidebar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid #eaeaea;
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #032e47;
}

.structure-sidebar-title i {
  color: #032e47;
  font-size: 18px;
}

.structure-list {
  display: flex;
  flex-direction: column;
}

.structure-item {
  display: grid;
  grid-template-columns: 22px 1fr 14px;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  padding: 13px 22px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #0c2438;
  text-align: left;
}

.structure-item i:first-child {
  color: #032e47;
  font-size: 15px;
}

.structure-item i:last-child {
  font-size: 11px;
  color: #bbb;
}

.structure-item:hover {
  background: #eef5f9;
}

.structure-item.active {
  background: #ff7a00;
  color: #032e47;
}

.structure-item.active i {
  color: #032e47;
}

.structure-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(3,46,71,.06);
  border: 1px solid #eaeaea;
  padding: 28px 30px;
}

.structure-panel h2 {
  font-size: 22px;
  color: #032e47;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 3px solid #ff7a00;
  display: inline-block;
}

.structure-panel > p,
.structure-panel #structure-desc p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #4b5563;
  margin: 14px 0 20px;
  max-width: 720px;
}

.structure-panel #structure-desc p:last-child {
  margin-bottom: 0;
}

.structure-gallery {
  position: relative;
  max-width: 750px;
  border-radius: 12px;
  overflow: hidden;
  background: #eaeaea;
}

.structure-gallery img {
  width: 100%;
  aspect-ratio: 750 / 421;
  height: auto;
  object-fit: cover;
  display: block;
}

.structure-gallery.gallery-contain img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #032e47;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(3,46,71,.2);
  transition: background .2s ease, color .2s ease;
}

.gallery-prev {
  left: 18px;
}

.gallery-next {
  right: 18px;
}

.gallery-arrow:hover {
  background: #032e47;
  color: #fff;
}

.structure-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  max-width: 750px;
}

.structure-thumbs .thumb {
  width: 90px;
  height: 66px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: .6;
  border: 2px solid transparent;
}

.structure-thumbs .thumb:hover {
  opacity: .85;
}

.structure-thumbs .thumb.active {
  opacity: 1;
  border-color: #ff7a00;
}

/* Área do Associado — lista de documentos em PDF */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f7f7f7;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}

.doc-item:hover {
  border-color: #ff7a00;
  background: #fff;
}

.doc-item-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.doc-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eef4f8;
  color: #032e47;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.doc-item-title {
  font-weight: 700;
  color: #032e47;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.doc-item-download {
  color: #ff7a00;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.doc-list-empty {
  color: #4b5563;
  font-size: 14.5px;
  padding: 10px 0;
}

@media (max-width: 560px) {
  .doc-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Portal do Colaborador — Área de Mídia */
.midia-select {
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14.5px;
  color: #0c2438;
  background: #fff;
  margin-bottom: 24px;
}

.midia-editing-label {
  background: #eef4f8;
  border-left: 3px solid #0b527a;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  color: #032e47;
  margin-bottom: 20px;
}

.midia-editing-label strong {
  color: #ff7a00;
}

.midia-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.midia-photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eaeaea;
  aspect-ratio: 4 / 3;
  background: #f7f7f7;
}

.midia-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.midia-photo-actions {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: linear-gradient(to top, rgba(3,46,71,.85), transparent);
}

.midia-photo-btn {
  flex: 1;
  border: none;
  background: rgba(255,255,255,.9);
  color: #032e47;
  border-radius: 6px;
  padding: 6px 0;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.midia-photo-btn:hover:not(:disabled) {
  background: #ff7a00;
  color: #fff;
}

.midia-photo-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.midia-photo-btn-remove:hover {
  background: #c0392b !important;
  color: #fff;
}

.midia-photo-add {
  aspect-ratio: 4 / 3;
  border: 2px dashed #eaeaea;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #4b5563;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 10px;
  transition: border-color .2s ease, color .2s ease;
}

.midia-photo-add:hover {
  border-color: #ff7a00;
  color: #ff7a00;
}

.midia-photo-add i {
  font-size: 22px;
}

.midia-people-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.midia-person-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f7f7f7;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 14px 18px;
}

.midia-person-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef4f8;
  color: #9ca8b5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.midia-person-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.midia-person-info {
  flex: 1;
  min-width: 0;
}

.midia-person-info strong {
  display: block;
  color: #032e47;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.midia-person-info span {
  color: #4b5563;
  font-size: 13px;
}

.midia-person-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.midia-btn-trocar {
  border: none;
  background: #032e47;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.midia-btn-trocar:hover {
  background: #0b527a;
}

.midia-btn-remover {
  border: none;
  background: #fdecea;
  color: #c0392b;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.midia-btn-remover:hover {
  background: #f8d3cf;
}

.midia-fixed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.midia-fixed-slot {
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7f7;
}

.midia-fixed-slot img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.midia-fixed-slot-footer {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.midia-fixed-slot-footer strong {
  font-size: 13.5px;
  color: #032e47;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.midia-doc-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: #f7f7f7;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 24px;
}

.midia-doc-form .form-row {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.form-row-hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.5;
}

.midia-feedback {
  margin-top: 14px;
  font-size: 13.5px;
}

.midia-feedback.sucesso {
  color: #1a7f37;
  background: #e9f9ee;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
}

/* Modal de confirmação de exclusão (Portal do Colaborador) */
body.confirm-modal-open {
  overflow: hidden;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.confirm-modal.active {
  display: flex;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,10,15,.75);
}

.confirm-modal-content {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(3,46,71,.35);
}

.confirm-modal-icon {
  font-size: 34px;
  color: #ff7a00;
  margin-bottom: 16px;
}

.confirm-modal-content p {
  font-size: 15.5px;
  color: #0c2438;
  line-height: 1.6;
  margin-bottom: 26px;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
}

.confirm-modal-actions .btn-outline {
  flex: 1;
  justify-content: center;
}

.confirm-modal-btn-excluir {
  flex: 1;
  border: none;
  background: #c0392b;
  color: #fff;
  padding: 17px 26px;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease;
}

.confirm-modal-btn-excluir:hover {
  background: #a5301f;
}

@media (max-width: 480px) {
  .confirm-modal-content {
    padding: 28px 22px;
  }
}

/* Modal de fotos por item (Portal do Colaborador — Atividades / Estrutura) */
body.midia-galeria-modal-open {
  overflow: hidden;
}

.midia-galeria-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.midia-galeria-modal.active {
  display: flex;
}

.midia-galeria-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,10,15,.75);
}

.midia-galeria-modal-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(3,46,71,.35);
}

.midia-galeria-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #032e47;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s ease;
}

.midia-galeria-modal-close:hover {
  background: #eaeaea;
}

@media (max-width: 480px) {
  .midia-galeria-modal-content {
    padding: 26px 20px;
  }
}

@media (max-width: 1000px) {
  .structure-grid {
    grid-template-columns: 1fr;
  }

  .structure-gallery,
  .structure-thumbs {
    max-width: 100%;
  }

  /* No celular/tablet a lista de módulos (Atividades, Estrutura, Locação, Área
     do Associado) vira uma tira horizontal de chips com scroll — sem isso, é
     uma lista vertical enorme que empurra todo o conteúdo (foto, descrição)
     pra bem abaixo da dobra antes da pessoa conseguir ver qualquer coisa. */
  .structure-sidebar {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  .structure-sidebar-title {
    padding: 0 2px 12px;
    border-bottom: none;
  }

  .structure-list {
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .structure-list::-webkit-scrollbar {
    display: none;
  }

  .structure-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(3,46,71,.07);
    padding: 12px 20px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }

  .structure-item:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(3,46,71,.12);
  }

  .structure-item i:last-child {
    display: none;
  }

  .structure-item.active {
    background: #ff7a00;
    border-color: #ff7a00;
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #ff7a00;
}

.breadcrumb i {
  font-size: 9px;
  color: rgba(255,255,255,.5);
}

.breadcrumb span {
  color: #fff;
}

.presidents-content {
  background: #f7f7f7;
  padding: 50px 0 80px;
}

.current-president-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(3,46,71,.06);
  border: 1px solid #eaeaea;
  padding: 36px 40px;
  overflow: hidden;
  margin-bottom: 45px;
}

.current-president-watermark {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  font-size: 160px;
  color: #edf1f4;
  z-index: 0;
}

.current-president-body {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.current-president-tag {
  display: inline-block;
  color: #ff7a00;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .5px;
  margin-bottom: 16px;
}

.current-president-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.current-president-header h2 {
  font-size: 22px;
  color: #032e47;
}

.current-president-period {
  font-size: 13.5px;
  font-weight: 700;
  color: #ff7a00;
  text-transform: uppercase;
}

.current-president-body > p {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 22px;
}

.president-photo-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #eef2f5;
  color: #9ca8b5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
}

.president-photo-wrap-lg {
  width: 78px;
  height: 78px;
  font-size: 28px;
}

.president-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-filter {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid #eaeaea;
  margin-bottom: 30px;
}

.timeline-label {
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: #032e47;
  letter-spacing: .5px;
  white-space: nowrap;
}

.timeline-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tab {
  border: none;
  background: none;
  cursor: pointer;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
  transition: color .2s ease, background .2s ease;
}

.timeline-tab:hover {
  color: #0b527a;
}

.timeline-tab.active {
  background: #ff7a00;
  color: #032e47;
}

.decade-title {
  font-size: 20px;
  color: #032e47;
  margin-bottom: 22px;
}

.presidents-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.presidents-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.president-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(3,46,71,.06);
  border: 1px solid #eaeaea;
  padding: 26px 18px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.president-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(3,46,71,.14);
  border-color: #ff7a00;
}

.president-card .president-photo-wrap {
  width: 84px;
  height: 84px;
  font-size: 30px;
  margin: 0 auto 16px;
}

.president-card h4 {
  font-size: 14.5px;
  color: #032e47;
  margin-bottom: 6px;
  line-height: 1.3;
}

.president-card span {
  font-size: 12.5px;
  font-weight: 700;
  color: #ff7a00;
}

.presidents-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #4b5563;
  font-size: 15px;
  padding: 30px 0;
}

.presidents-carousel .gallery-arrow {
  position: static;
  flex-shrink: 0;
  transform: none;
  box-shadow: 0 8px 20px rgba(3,46,71,.12);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
}

.dot.active {
  background: #ff7a00;
}

@media (max-width: 1000px) {
  .presidents-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .current-president-watermark {
    display: none;
  }
}

@media (max-width: 560px) {
  .presidents-grid {
    grid-template-columns: 1fr;
  }

  .current-president-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.board-content {
  background: #f7f7f7;
  padding: 60px 0 80px;
}

.board-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 45px;
}

.board-heading h2 {
  font-size: 30px;
  color: #032e47;
  margin-bottom: 12px;
}

.board-heading p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.board-card {
  text-align: center;
}

.board-photo-wrap {
  width: 130px;
  height: 130px;
  margin: 0 auto 18px;
  font-size: 44px;
  border: 3px solid #ff7a00;
  transition: transform .25s ease;
}

.board-card:hover .board-photo-wrap {
  transform: scale(1.06);
}

.board-card h4 {
  font-size: 16px;
  color: #032e47;
  margin-bottom: 6px;
  line-height: 1.3;
}

.board-card span {
  font-size: 12.5px;
  font-weight: 800;
  color: #ff7a00;
  text-transform: uppercase;
  letter-spacing: .3px;
}

@media (max-width: 1000px) {
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .board-grid {
    grid-template-columns: 1fr;
  }
}

/* Seção "Em movimento" — vídeos do Instagram (formato vertical, estilo story) */
.reels-country {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #032e47, #083b5c);
}

.reels-header {
  text-align: center;
  margin-bottom: 45px;
}

.reels-header h2 {
  color: #fff;
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.reels-header h2 i {
  color: #ff7a00;
  font-size: 0.85em;
  margin-right: 12px;
}

.reels-header p {
  color: rgba(255,255,255,.75);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.reel-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: none;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #021f30;
  box-shadow: 0 15px 35px rgba(0,0,0,.3);
}

.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.reel-card:hover img {
  transform: scale(1.05);
}

.reel-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(3,46,71,.55), rgba(3,46,71,0) 45%);
}

.reel-play i {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(3,46,71,.65);
  border: 2px solid rgba(255,255,255,.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background .2s ease, transform .2s ease;
}

.reel-card:hover .reel-play i {
  background: #ff7a00;
  border-color: #ff7a00;
  transform: scale(1.1);
}

.reels-see-more {
  display: flex;
  width: fit-content;
  margin: 45px auto 0;
  background: linear-gradient(135deg, #ff9100, #ff7a00);
  color: #fff;
  border: none;
  padding: 17px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  gap: 10px;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.reels-see-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255,122,0,.35);
}

.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.reel-modal.active {
  display: flex;
}

.reel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,10,15,.9);
}

.reel-modal-content {
  position: relative;
  z-index: 1;
  height: min(90vh, 900px);
  aspect-ratio: 9 / 16;
}

.reel-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #032e47;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-modal-content video {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
  display: block;
}

@media (max-width: 1100px) {
  .reels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .reels-header h2 {
    font-size: 26px;
  }

  /* Tela pequena: mostra um reel por vez, e a pessoa arrasta para o lado (como um story).
     -4%/4% (não -5%/5%) porque é exatamente o respiro que o .container já tem de cada lado
     (width:92%) — usar um valor diferente deixava a grade alguns pixels mais larga que a tela
     e criava uma rolagem horizontal fantasma na página inteira. */
  .reels-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin: 0 -4%;
    padding: 0 4% 6px;
    scrollbar-width: none;
  }

  .reels-grid::-webkit-scrollbar {
    display: none;
  }

  .reels-grid .reel-card {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }

  .reel-modal-content {
    height: auto;
    width: 100%;
  }
}

.membership-intro {
  background: #fff;
  padding: 70px 0;
}

.membership-intro .container {
  max-width: 900px;
}

.membership-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 22px;
}

.membership-plans {
  background: #f7f7f7;
  padding: 70px 0 90px;
}

.membership-tabs-wrap {
  background: none;
  border-bottom: 1px solid #eaeaea;
}

.membership-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(3,46,71,.06);
  border: 1px solid #eaeaea;
  padding: 40px 44px;
  max-width: 900px;
  margin: 0 auto;
}

.membership-panel h3 {
  font-size: 22px;
  color: #032e47;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 3px solid #ff7a00;
  display: inline-block;
}

.membership-panel p {
  font-size: 15px;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 16px;
}

.membership-panel strong {
  color: #0b527a;
}

.membership-docs {
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.membership-docs li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #4b5563;
  border-bottom: 1px solid #eaeaea;
}

.membership-docs li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 11px;
  color: #0b527a;
  font-size: 13px;
}

.membership-docs a {
  color: #0b527a;
  font-weight: 700;
}

.membership-note {
  background: #eef4f8;
  border-left: 3px solid #0b527a;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #4b5563;
  margin-top: 10px;
}

@media (max-width: 800px) {
  .membership-panel {
    padding: 28px 22px;
  }
}

.contact-page {
  background: #f7f7f7;
  padding: 70px 0 90px;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 55px;
  align-items: start;
}

.contact-form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(3,46,71,.06);
  border: 1px solid #eaeaea;
  padding: 44px;
}

.contact-form-card h2 {
  font-size: 24px;
  color: #032e47;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-form-card h2::before {
  content: "";
  width: 4px;
  height: 24px;
  border-radius: 4px;
  background: #ff7a00;
}

.contact-form-card > p {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 30px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #032e47;
  margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14.5px;
  color: #0c2438;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover {
  border-color: #d4d4d4;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #0b527a;
  box-shadow: 0 0 0 3px rgba(11,82,122,.15);
}

.form-row textarea {
  resize: vertical;
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23032e47' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.contact-form-card form button[type="submit"],
#post-form button[type="submit"] {
  margin-top: 10px;
}

.form-hint {
  margin-top: 16px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info {
  background: #032e47;
  border-radius: 16px;
  padding: 30px 32px;
}

.contact-info h3 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 18px;
  opacity: .75;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  transition: transform .2s ease, opacity .2s ease;
}

.contact-info-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.contact-info-item:last-child {
  padding-bottom: 0;
}

.contact-info-item:hover {
  transform: translateX(4px);
  opacity: .9;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #ff7a00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.contact-info-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  overflow-wrap: anywhere;
  min-width: 0;
  padding-top: 8px;
}

.contact-info-text strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}

.contact-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eaeaea;
  box-shadow: 0 12px 35px rgba(3,46,71,.06);
  height: 240px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 1000px) {
  .contact-page-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-side {
    order: -1;
    min-width: 0;
  }

  .contact-form-card {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 28px 22px;
  }
}

.form-error {
  color: #c0392b;
  background: #fdecea;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
}

.portal-login {
  padding: 80px 0;
  background: #f7f7f7;
  display: flex;
  justify-content: center;
}

.portal-card {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.portal-logo img {
  height: 120px;
  margin-bottom: 22px;
}

.portal-card .form-row {
  text-align: left;
}

/* Barra de módulos do Portal do Colaborador (Notícias / Mídia / Reservas) — compartilhada
   pelas 3 telas via partials/portal-nav.html, pra parecer um sistema só, não páginas soltas. */
.portal-nav {
  background: #032e47;
  color: #fff;
}

.portal-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 5%;
  flex-wrap: wrap;
}

.portal-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}

.portal-nav-brand i {
  color: #ff7a00;
}

.portal-nav-modules {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.portal-nav-modules a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.portal-nav-modules a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* Estado ativo: comparado pelo data-page do <body> (já existe em cada página) com o
   data-portal-nav de cada link — sem precisar de JS pra marcar qual módulo está aberto. */
body[data-page="portal-admin"] .portal-nav-modules a[data-portal-nav="portal-admin"],
body[data-page="portal-midia"] .portal-nav-modules a[data-portal-nav="portal-midia"],
body[data-page="portal-reservas"] .portal-nav-modules a[data-portal-nav="portal-reservas"] {
  background: #ff7a00;
  color: #fff;
}

.portal-nav-user {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
}

.portal-nav-user .btn-outline {
  border-color: rgba(255,255,255,.4);
  color: #fff;
  padding: 9px 16px;
  font-size: 12px;
}

.portal-nav-user .btn-outline:hover {
  background: #fff;
  color: #032e47;
}

@media (max-width: 760px) {
  .portal-nav-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-nav-modules {
    justify-content: center;
  }

  .portal-nav-user {
    justify-content: space-between;
  }
}

/* ---------- Módulo de Reservas ---------- */

.reservas-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.reservas-toolbar h2 {
  font-size: 24px;
  color: #032e47;
  margin: 4px 0 6px;
}

.reservas-toolbar p {
  color: #4b5563;
  font-size: 14.5px;
  max-width: 560px;
}

.reservas-toolbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reservas-voltar {
  border: none;
  background: none;
  color: #0b527a;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.reservas-voltar:hover {
  color: #ff7a00;
}

.reservas-eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.reservas-evento-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 35px rgba(3,46,71,.06);
}

.reservas-evento-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reservas-evento-info strong {
  color: #032e47;
  font-size: 17px;
}

.reservas-evento-info span {
  color: #4b5563;
  font-size: 13.5px;
}

.reservas-evento-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reservas-evento-actions .btn-outline {
  flex: 1;
  justify-content: center;
  padding: 10px 16px;
  font-size: 12px;
}

.reservas-legenda {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px;
  color: #4b5563;
}

.reservas-legenda span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reservas-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.reservas-dot-livre {
  background: #1a7f37;
}

.reservas-dot-parcial {
  background: #ff7a00;
}

.reservas-dot-lotada {
  background: #c0392b;
}

.reservas-canvas {
  position: relative;
  min-height: 700px;
  padding-bottom: 60px;
  background:
    radial-gradient(circle, #dfe6ea 1px, transparent 1px) 0 0 / 22px 22px,
    #f7f9fb;
  border: 1px dashed #d5dde3;
  border-radius: 14px;
  /* Sem overflow:hidden de propósito — uma mesa arrastada bem pra borda fica visível inteira,
     só ligeiramente "pra fora" do tracejado, em vez de cortada. */
}

.reservas-elemento,
.reservas-mesa {
  position: absolute;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.reservas-elemento:active,
.reservas-mesa:active {
  cursor: grabbing;
}

.reservas-elemento {
  background: rgba(3,46,71,.9);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  padding: 6px;
}

.reservas-elemento span {
  white-space: nowrap;
}

/* Elementos bem mais altos que largos (Aparador, Escada, Lareira...) ficam com o texto na
   vertical, igual costuma aparecer em plantas desenhadas à mão — assim não precisa espremer
   a palavra numa faixa estreita demais. */
.reservas-elemento-vertical span {
  writing-mode: vertical-rl;
}

.reservas-mesa {
  width: 74px;
  height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 3px solid #1a7f37;
  background: #e9f9ee;
  color: #032e47;
  box-shadow: 0 8px 18px rgba(3,46,71,.12);
}

.reservas-mesa-redonda {
  border-radius: 50%;
}

.reservas-mesa-retangular {
  width: 100px;
  border-radius: 10px;
}

.reservas-mesa strong {
  font-size: 17px;
  line-height: 1;
}

.reservas-mesa span {
  font-size: 11px;
  font-weight: 700;
}

.reservas-mesa-parcial {
  border-color: #ff7a00;
  background: #fff4e8;
}

.reservas-mesa-lotada {
  border-color: #c0392b;
  background: #fdecea;
}

.reservas-item-remover {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #c0392b;
  color: #fff;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s ease;
}

.reservas-elemento:hover .reservas-item-remover,
.reservas-mesa:hover .reservas-item-remover {
  opacity: 1;
}

.reservas-cadeiras-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
}

.reservas-cadeira-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reservas-cadeira-numero {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef4f8;
  color: #032e47;
  font-weight: 800;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reservas-cadeira-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
}

.reservas-cadeira-row input:focus {
  outline: none;
  border-color: #0b527a;
}

@media (max-width: 700px) {
  .reservas-canvas {
    min-height: 460px;
  }

  .reservas-item-remover {
    opacity: 1;
  }
}

.portal-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 14px 18px;
}

.post-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.post-item-info strong {
  color: #0c2438;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.post-item-info small {
  color: #4b5563;
}

.post-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  color: #fff;
  background: #032e47;
}

.post-badge-torneio {
  background: #ff7a00;
}

.post-badge-noticia {
  background: #0b527a;
}

.post-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.post-item-edit,
.post-item-delete {
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.post-item-edit {
  background: #eef4f8;
  color: #032e47;
}

.post-item-edit:hover {
  background: #dce9f2;
}

.post-item-delete {
  background: #fdecea;
  color: #c0392b;
}

.post-item-delete:hover {
  background: #f8d3cf;
}

@media (max-width: 1000px) {
  .portal-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .portal-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

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

#posts-tabs {
  margin-bottom: 30px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.posts-grid .news-card img {
  height: 180px;
}

.posts-empty {
  grid-column: 1 / -1;
  color: #4b5563;
  font-size: 15px;
  padding: 30px 0;
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.image-lightbox.open {
  display: flex;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,10,15,.85);
}

/* Modal de detalhe da notícia/evento (ver js/news-detail.js) — reaproveita o
   fundo escuro e o botão de fechar do antigo lightbox de imagem, só troca o
   conteúdo: em vez de mostrar só a foto, mostra foto + título + texto completo. */
.news-detail-content {
  position: relative;
  z-index: 1;
  width: min(560px, 92vw);
  max-height: 86vh;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
}

/* object-fit:contain (não cover) de propósito — muita foto de evento é um
   cartaz com informação importante (data, preço, local) até nas bordas, e
   cortar perdia justamente isso. */
.news-detail-img {
  display: block;
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  background: #f7f7f7;
}

.news-detail-body {
  padding: 24px 26px 30px;
}

.news-detail-meta {
  display: block;
  color: #ff7a00;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12.5px;
  margin-bottom: 10px;
}

.news-detail-title {
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-size: 22px;
  line-height: 1.3;
  color: #032e47;
  margin-bottom: 14px;
}

.news-detail-text {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.news-detail-text a {
  color: #0b527a;
  text-decoration: underline;
}

/* Fica sobreposto no canto da própria imagem (não flutuando acima da caixa)
   porque em telas baixas, com o modal quase do tamanho da viewport, "acima
   da caixa" não sobrava espaço e o botão ficava cortado/invisível. */
.image-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(3,10,15,.5);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.image-lightbox-close:hover {
  background: rgba(3,10,15,.75);
}

.quote-open-btn {
  margin-top: 26px;
}

body.quote-modal-open {
  overflow: hidden;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.quote-modal.active {
  display: flex;
}

.quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,10,15,.75);
}

.quote-modal-content {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(3,46,71,.35);
}

.quote-modal-content h2 {
  font-size: 24px;
  color: #032e47;
  margin-bottom: 8px;
}

.quote-modal-content > p {
  color: #4b5563;
  font-size: 15px;
  margin-bottom: 26px;
}

.quote-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f2f2f2;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.quote-modal-close:hover {
  background: #e5e5e5;
}

.quote-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

@media (max-width: 560px) {
  .quote-modal-content {
    padding: 28px 22px;
  }

  .quote-modal-actions {
    flex-direction: column;
  }

  .quote-modal-actions .btn-primary,
  .quote-modal-actions .btn-outline {
    justify-content: center;
  }
}

/* ---------- Páginas legais (Política de Privacidade, Termos de Uso) ---------- */

.legal-content {
  background: #fff;
  padding: 50px 0 80px;
}

.legal-content .container {
  max-width: 860px;
}

.legal-updated {
  color: #4b5563;
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-content .legal-intro p {
  margin-bottom: 14px;
}

.legal-content h2 {
  font-size: 21px;
  color: #032e47;
  margin: 40px 0 14px;
  padding-top: 24px;
  border-top: 1px solid #eaeaea;
}

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 14px 22px;
  padding: 0;
}

.legal-content li {
  font-size: 15.5px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 8px;
}

.legal-content strong {
  color: #032e47;
}

.legal-content a {
  color: #0b527a;
}

@media (max-width: 560px) {
  .legal-content h2 {
    font-size: 19px;
  }
}
