:root{
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;

  --red: #d11f2a;
  --green: #1f8a3b;
  --accent: var(--red);

  --shadow: 0 10px 30px rgba(17,24,39,0.10);
  --radius: 16px;
  --container: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img{ max-width:100%; display:block; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 9999;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip: rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: inherit;
}

.brand__logo{
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px;
}

.brand__text{
  display:flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__title{
  font-size: 0.95rem;
  line-height: 1.1;
}

.brand__subtitle{
  font-size: 0.8rem;
}

/* Nav */
.nav{ position: relative; }
.nav__toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
}
.nav__toggleBars{
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  border-radius: 999px;
}
.nav__toggleBars::before,
.nav__toggleBars::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}
.nav__toggleBars::before{ top: -6px; }
.nav__toggleBars::after{ top: 6px; }

.nav__menu{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 280px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
}

.nav__menu.is-open{ display:block; }

.nav__link{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  color: inherit;
  font-weight: 600;
}
.nav__link:hover{
  background: var(--bg-alt);
}
.nav__link.is-active{
  background: rgba(209,31,42,0.08);
  color: var(--text);
  border: 1px solid rgba(209,31,42,0.18);
}

.nav__lang{
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav__langLabel{
  font-size: 0.9rem;
  color: var(--muted);
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration:none;
  color: inherit;
  font-weight: 700;
  font-size: 0.9rem;
}
.pill:hover{ background: var(--bg-alt); }
.pill--active{
  border-color: rgba(31,138,59,0.35);
  background: rgba(31,138,59,0.08);
}

/* Desktop nav layout */
@media (min-width: 980px){
  .nav__toggle{ display:none; }
  .nav__menu{
    position: static;
    display:flex !important;
    align-items:center;
    gap: 28px;
    flex-wrap: nowrap;       /* 🔑 impede quebras */
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    min-width: 720px;
    justify-content: center;
  }
  .nav__link{
    display:inline-flex;
    padding: 10px 10px;
  }
  .nav__lang{
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    margin-left: 10px;
  }
}

/* Hero */
.hero{
  padding: 42px 0 26px;
  background: linear-gradient(180deg, rgba(209,31,42,0.06), rgba(31,138,59,0.04) 60%, rgba(255,255,255,1));
}
.hero__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.hero__content h1{
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.lead{
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 16px;
}

.hero__panel .panel{
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.panel__title{
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.panel__text{ margin: 0 0 12px; color: var(--muted); }
.panel__note{
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

@media (min-width: 980px){
  .hero__grid{
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
  }
}

/* Buttons & links */
.ctaRow{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration:none;
  border: 1px solid var(--border);
}
.btn--primary{
  background: var(--accent);
  border-color: rgba(209,31,42,0.25);
  color: #fff;
}
.btn--primary:hover{ filter: brightness(0.95); }
.btn--ghost{
  background: var(--bg);
  color: var(--text);
}
.btn--ghost:hover{ background: var(--bg-alt); }

.link{
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.link:hover{ color: var(--accent); }

/* Quick links */
.quickLinks{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.cardLink{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration:none;
  color: inherit;
}
.cardLink:hover{ background: var(--bg-alt); }
.cardLink__title{ font-weight: 900; }
.cardLink__meta{ color: var(--muted); font-weight: 700; }

@media (min-width: 700px){
  .quickLinks{ grid-template-columns: repeat(3, 1fr); }
}

/* Sections */
.section{
  padding: 40px 0;
}
.section--alt{
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__head h2{
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.section__head p{
  margin: 0 0 18px;
  color: var(--muted);
}

.grid{
  display:grid;
  gap: 12px;
}
.grid--2{ grid-template-columns: 1fr; }
.grid--3{ grid-template-columns: 1fr; }

@media (min-width: 900px){
  .grid--2{ grid-template-columns: repeat(2, 1fr); }
  .grid--3{ grid-template-columns: repeat(3, 1fr); }
}

.box{
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 25px rgba(17,24,39,0.06);
}
.box h3{ margin: 0 0 8px; }
.box p{ margin: 0; color: var(--muted); }

.docGroup h3{ margin: 0 0 8px; }
.list{
  list-style: none;
  padding: 0;
  margin: 0;
}
.list li{ padding: 6px 0; }

.hint{
  color: var(--muted);
  margin-top: 14px;
  font-size: 0.95rem;
}

.note{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(31,138,59,0.25);
  background: rgba(31,138,59,0.06);
}

/* Event cards */
.eventCard{
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 10px 25px rgba(17,24,39,0.06);
}
.eventCard__img{
  height: 140px;
  background:
    linear-gradient(135deg, rgba(209,31,42,0.18), rgba(31,138,59,0.12)),
    radial-gradient(circle at 20% 20%, rgba(0,0,0,0.08), transparent 40%);
}
.eventCard__body{ padding: 14px; }
.eventCard__title{ margin: 0 0 6px; }
.eventCard__meta{ margin: 0 0 10px; color: var(--muted); font-weight: 700; }
.eventCard__text{ margin: 0; color: var(--muted); }

/* Big links */
.bigLink{
  display:block;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration:none;
  color: inherit;
  box-shadow: 0 10px 25px rgba(17,24,39,0.06);
}
.bigLink:hover{ background: #fff; border-color: rgba(209,31,42,0.25); }
.bigLink__title{ display:block; font-weight: 900; margin-bottom: 6px; }
.bigLink__desc{ display:block; color: var(--muted); }

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  padding: 22px 0;
  background: #fff;
}
.footer__inner{
  display:flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
}
.footer__inner p{ margin: 0; }
.footer__small{ font-size: 0.95rem; }

/* =========================================================
   EVENTOS – CARDS COM CARROSSEL PEQUENO
   (EXTENSÃO – NÃO REMOVE NADA DO CSS EXISTENTE)
   ========================================================= */

.eventsGrid{
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

/* Desktop – garante 3 cards lado a lado */
@media (min-width: 900px){
  .eventsGrid{
    grid-template-columns: repeat(3, 1fr);
  }
}

.eventCard{
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(17,24,39,0.06);
}

/* =========================
   Carrossel pequeno
   ========================= */
.eventCarousel{
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--bg-alt);
}

.eventCarousel a{
  display: block;
  width: 100%;
  height: 100%;
}

.eventCarousel img{
  width: 100%;
  height: 100%;
  object-fit: cover;     /* 🔑 mantém proporção sem esticar */
  display: none;
}

.eventCarousel img.is-active{
  display: block;
}

/* Botões */
.eventCarousel__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.eventCarousel__btn:hover{
  background: rgba(0,0,0,.75);
}

.eventCarousel__btn--prev{ left: 8px; }
.eventCarousel__btn--next{ right: 8px; }

/* =========================
   Corpo do card
   ========================= */
.eventCard__body{
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.eventCard__title{
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
}

.eventCard__meta{
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}


/* =========================================================
   REDES SOCIAIS – ICONES CORRETOS
   ========================================================= */

.socials{
  display:flex;
  gap:14px;
  margin-top:12px;
}

.socials a{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
}

.socials a:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.socials svg{
  width:22px;
  height:22px;
  display:block;
}

/* === Forms (Sugestões) === */

form label{
  display:block;
  font-weight:700;
  margin-bottom:6px;
}

form input,
form textarea{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  font-size:1rem;
  font-family:inherit;
}

form input:focus,
form textarea:focus{
  outline:none;
  border-color: rgba(209,31,42,0.5);
  box-shadow: 0 0 0 3px rgba(209,31,42,0.12);
}

form textarea{
  resize:vertical;
  min-height:120px;
}

form .btn{
  margin-top:10px;
}

form .box{
  max-width:720px;
}
/* === Buttons hover / micro animation === */
.btn{
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.btn:active{
  transform: translateY(0);
  box-shadow: none;
}

/* === Success message === */
.form-success{
  margin-top:14px;
  padding:12px 14px;
  border-radius: var(--radius);
  background: rgba(31,138,59,0.08);
  border:1px solid rgba(31,138,59,0.25);
  color:#065f46;
  font-weight:700;
}

/* === Mobile form tweaks === */
@media (max-width: 700px){
  .grid--2{
    grid-template-columns: 1fr;
  }
  form .btn{
    width:100%;
  }
}

/* Hero title entrance animation */
.hero-title {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1.2s ease-out forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero subtitle animation */
.hero-subtitle {
  opacity: 0;
  transform: translateY(18px);
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  animation: heroSubtitleFade 1s ease-out forwards;
  animation-delay: 0.25s;
}

@keyframes heroSubtitleFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.bigLink {
  padding: 14px;
}

.footer {
  background:#111;
  color:#fff;
}

/* HERO - LOGO INFERIOR DIREITO */
.hero-logo-right {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 3;
  opacity: 0.95;
}

.hero-logo-right img {
  height: 260px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero-logo-right img {
    height: 64px;
  }
}

@media (max-width: 520px) {
  .hero-logo-right {
    display: block;      /* em vez de none */
    bottom: 14px;        /* ajusta posição */
    right: 14px;
  }

  .hero-logo-right img {
    height: 120px;        /* tamanho no mobile (ajusta se quiseres) */
    width: auto;
  }
}


/* Container mais largo só para eventos */
.container--wide{
  max-width: 1200px;
}

/* =========================================================
   PARCEIROS
   ========================================================= */

.partnersGrid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  align-items: center;
}

.partnerItem{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  /* 👇 reduz o tamanho do quadrado */
  aspect-ratio: 1 / 1;
  max-width: 230px;
  margin: 0 auto;

  display:flex;
  align-items:center;
  justify-content:center;
  padding:1px;
}



.partnerItem:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.partnerItem img{
  max-width: 50%;
  max-height: 50%;
  object-fit: contain;
}

.partnerItem img{
  filter: grayscale(100%);
  opacity: .85;
  transition: all .25s ease;
}

.partnerItem:hover img{
  filter: grayscale(0%);
  opacity: 1;
}

.nav__link{
  white-space: nowrap;        /* 🔑 nunca quebra texto */
  font-size: 0.95rem;         /* ligeiramente mais compacto */
}

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

  .nav__link{
    font-size: 0.9rem;
  }
}


/* HEADER — mostrar apenas o logo */
.brand__text{
  display: none;
}

.brand__logo{
  height: 50px; /* ajusta se quiseres maior */
}
/* ===============================
   POP-UP EVENTOS
   =============================== */

.popup-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box{
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  max-width: 420px;
  width: calc(100% - 32px);
  text-align: center;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  animation: popupIn .35s ease;
}

.popup-box h3{
  margin-top: 0;
  margin-bottom: 16px;
}

.popup-events{
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.popup-events li{
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.popup-events li:last-child{
  border-bottom: none;
}

.popup-close{
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  font-size: 26px;
  cursor: pointer;
  color: #6b7280;
}

.popup-close:hover{
  color: #000;
}

@keyframes popupIn{
  from{
    transform: scale(.9);
    opacity: 0;
  }
  to{
    transform: scale(1);
    opacity: 1;
  }
}

/* POP-UP – EVENTO COM TITULO EM CIMA */

.popup-event{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

.popup-event:last-child{
  border-bottom: none;
}

.popup-title{
  font-weight: 800;
  font-size: 1.05rem;
}

.popup-event img{
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.popup-meta{
  color: #6b7280;
  font-weight: 600;
  font-size: 0.95rem;
}

/* =====================================================
   POP-UP EVENTOS
   ===================================================== */

.events-popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.events-popup{
  background:#fff;
  width:360px;
  max-width:92%;
  border-radius:18px;
  padding:22px;
  position:relative;
  text-align:center;
}

.popup-close{
  position:absolute;
  top:12px;
  right:14px;
  background:none;
  border:0;
  font-size:22px;
  cursor:pointer;
}

.popup-title{
  margin:0 0 14px;
  font-weight:800;
}

.popup-carousel{
  position:relative;
}

.popup-slide{
  display:none;
}

.popup-slide.active{
  display:block;
}

.popup-slide img{
  width:100%;
  border-radius:14px;
  margin:10px 0;
}

.popup-slide h4{
  margin:0;
  font-weight:800;
}

.popup-slide p{
  margin:6px 0 12px;
  color:#6b7280;
  font-weight:600;
}

.popup-controls{
  display:flex;
  justify-content:space-between;
  margin-bottom:14px;
}

.popup-controls button{
  width:42px;
  height:42px;
  border-radius:50%;
  border:0;
  background:#111827;
  color:#fff;
  font-size:20px;
  cursor:pointer;
}

.popup-btn{
  display:inline-block;
  background:#dc2626;
  color:#fff;
  padding:10px 18px;
  border-radius:999px;
  font-weight:800;
  text-decoration:none;
}

/* desktop/tablet */
.heroShell { height: 85vh; min-height: 560px; }

/* mobile */
@media (max-width: 520px){
  .heroShell { height: 70vh; min-height: 420px; }
}

* { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

.partners { padding: 3rem 0; }
.partners__marquee{
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  padding: 18px 0;
}

/* “fade” nas laterais */
.partners__marquee::before,
.partners__marquee::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 70px;
  pointer-events:none;
  z-index: 2;
  background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.partners__marquee::after{
  right:0;
  transform: rotate(180deg);
}
.partners__marquee::before{ left:0; }

.partners__track{
  display: flex;
  gap: 56px;
  align-items: center;
  width: max-content;
  animation: partners-scroll 22s linear infinite;
}

.partners__item{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 8px 0;
}

.partners__item img{
  height: 42px;
  width: auto;
  display:block;
  opacity: .95;
}

.partners__marquee:hover .partners__track{ animation-play-state: paused; }

@keyframes partners-scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 520px){
  .partners__track{ gap: 34px; animation-duration: 18s; }
  .partners__item img{ height: 34px; }
}

/* garante que o "cartão" do carrossel respeita a largura do container */
.partners__marquee{
  width: 100%;
  margin: 0 auto;
}

/* aumenta os logos */
.partners__item img{
  height: 70px;   /* antes tinhas 42px - mete 60/70/80 conforme queres */
  width: auto;
  display:block;
}

/* em mobile, um pouco mais pequenos para não rebentar */
@media (max-width: 520px){
  .partners__item img{ height: 52px; }
}