:root{
    --brand-2:#9c2c50; --stroke:#edeeef;
}

/* =========================================
   Container base
   ========================================= */
.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* =========================================
   Seções base
   ========================================= */
.section {
  padding: 2.5rem 0;
  background: #fff;
}

.section--alt {
  background: var(--stroke);
}

.section > .wrap > h3 {
  margin: .4rem 0 1.8rem 0;
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  color: var(--brand-2);
}

.section > .wrap > p {
  margin-top: 0;
  color: #434343;
  text-align: center;
}


/* =========================================
   Hero
   ========================================= */
.hero {
  padding-bottom: 0;
  padding-top: 1.6rem;
  color: #0f172a;
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: .2px;
}

.hero__subtitle {
  margin-top: .35rem;
  color: rgba(255,255,255,.85);
}

/* =========================================
   Aplicações (5 colunas em círculos)
   ========================================= */
/* Grid base das aplicações */
.apps-grid {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 1rem;
  justify-items: center; /* centraliza os círculos na célula */
}

/* Responsividade das colunas */
@media (max-width: 1100px) {
  .apps-grid { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
}

@media (max-width: 700px) {
  .apps-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}

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


/* ============ GALERIA ============ */

/* Container do grid */
.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  gap: .2rem;
}

/* Card base */
.gallery-item {
  margin-top: 2rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0,0,0,.10);
}

/* Imagens (thumb) — mantém proporção e preenche o card */
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;              /* altura fixa para grade bonita */
  object-fit: cover;          /* sem distorcer, recorta se precisar */
  object-position: center;    /* foco central */
}

/* Link cobrindo o card inteiro */
.gallery-link {
  display: block;
  text-decoration: none;
  color: inherit;
}



/* Antes você usava height fixa e object-fit: cover */
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;      /* mantém a proporção real (paisagem ou retrato) */
  border-radius: 12px;
}


/* Desktop: calcula sozinho quantas colunas cabem (largura mínima de 260px) */
@media (min-width: 1025px) {
  .gallery-item.span-2 {
    grid-column: span 2;
  }
}

/* Tablet: força 2 colunas */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 coluna */
@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}



/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: none;               /* escondido por padrão */
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}
.lightbox.is-open {
  display: flex;
}

.lightbox__figure {
  margin: 0;
  max-width: min(100%, 1100px);
  max-height: 90vh;
  display: grid;
  gap: .75rem;
  justify-items: center;
}

.lightbox__figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;        /* ocupa bem a tela, sem estourar */
  border-radius: 12px;
  background: #fff;
}

.lightbox__figure figcaption {
  color: #eee;
  font-size: .95rem;
  text-align: center;
}

/* Botão fechar */
.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  font-size: 28px;
  cursor: pointer;
}

/* Evita scroll de fundo quando modal está aberto (controle via JS) */
.body--no-scroll {
  overflow: hidden;
}

/* a figure vira o “pai” das setas */
.lightbox__figure { position: relative; }

/* setas básicas */
/* Botões circulares */
.lightbox__nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border:0; border-radius:50%;
  background:rgba(255,255,255,.95);
  box-shadow:0 2px 10px rgba(0,0,0,.25);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  user-select:none;
}
.lightbox__prev{ left:-60px; }   /* use 10px se quiser sobre a imagem */
.lightbox__next{ right:-60px; }

/* A seta é um “L” rotacionado, sempre centralizado */
.lightbox__nav::before{
  content:"";
  width:12px; height:12px;
  border-right:3px solid #111;
  border-top:3px solid #111;
  display:block;
}
.lightbox__next::before{ transform:rotate(45deg); }   /* > */
.lightbox__prev::before{ transform:rotate(225deg); }  /* < */

/* opcional – menor no mobile */
@media (max-width:700px){
  .lightbox__nav{ width:36px; height:36px; }
  .lightbox__nav::before{ width:10px; height:10px; border-width:2px; }
}


/* Galeria da notícia =============================== */
/* NOTÍCIA =============================== */
#noticia-unica {
  padding: 0.2rem 0 2.2rem 0;
}

.news-split{
  display: grid;
  gap: 1.25rem;
  /* Fallback: começa 60/40 (ajuste a gosto) */
  grid-template-columns: var(--colA, 56%) var(--colB, 44%);
  align-items: start;
}

.news-body{ display: grid; gap: 1rem; }

.news-split img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

#noticia-unica p{
  line-height: 1.6;
  text-wrap: pretty;
  color: #434343;
}

/* Mobile: 1 coluna */
@media (max-width: 768px){
  .news-split{ grid-template-columns: 1fr; }
}
