/* ===============================
   TREINAMENTOS – PÁGINA (NOVO DESIGN)
================================ */

.treinamentos-page{
  padding: 10px 0;
  background: #f6f7fb;
}

.treinamentos-page .container{
  max-width: 1180px;
}

/* CARD */
.treinamento-card{
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(17, 24, 39, .08);
  padding: 26px;
  margin-bottom: 26px;
}

.treinamento-item{
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 28px;
  align-items: start;
}

/* GALERIA */
.treinamento-galeria{
  position: relative;
}

.galeria-main{
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 20px 45px rgba(0,0,0,.18);
  cursor: zoom-in;
  border: 1px solid rgba(17,24,39,.08);
}

.galeria-main img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.galeria-main:hover img{
  transform: scale(1.05);
}

.galeria-thumbs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.galeria-thumbs img{
  width: 74px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: .75;
  border: 2px solid transparent;
  transition: .25s;
  background: #fff;
}

.galeria-thumbs img:hover{
  opacity: 1;
  transform: translateY(-2px);
}

.galeria-thumbs img.active{
  opacity: 1;
  border-color: rgba(13,110,253,.55); /* bootstrap primary */
  box-shadow: 0 10px 18px rgba(13,110,253,.16);
}

/* INFO */
.treinamento-info{
  min-width: 0;
}

.treinamento-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0d6efd;
  background: rgba(13,110,253,.10);
  border: 1px solid rgba(13,110,253,.18);
}

.treinamento-info h2{
  font-size: 1.65rem;
  line-height: 1.25;
  margin: 14px 0 14px;
  color: #111827;
}

.treinamento-texto{
  line-height: 1.9;
  color: #4b5563;
  font-size: 1rem;
}

/* Ajuste de espaçamento de <p> vindo do editor */
.texto-treinamento p{
  margin-top: 0;
  margin-bottom: .35rem;
}

/* ===============================
   LIGHTBOX
================================ */

.treinamento-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.treinamento-lightbox.active{
  display: flex;
}

.lightbox-content{
  position: relative;
  max-width: min(980px, 92vw);
  width: 100%;
  text-align: center;
}

.lightbox-close{
  position: absolute;
  top: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(17,24,39,.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s;
}

.lightbox-close:hover{
  transform: scale(1.04);
  background: rgba(17,24,39,.72);
}

.lightbox-content img{
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: zoomIn .25s ease;
}

.lightbox-title{
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e5e7eb;
}

/* navegação */
.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(17,24,39,.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  cursor: pointer;
  opacity: .9;
  user-select: none;
  transition: .2s;
}

.lightbox-nav:hover{
  background: rgba(17,24,39,.68);
  transform: translateY(-50%) scale(1.04);
}

.lightbox-prev{ left: -72px; }
.lightbox-next{ right: -72px; }

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

/* RESPONSIVO */
@media (max-width: 991px){
  .treinamento-item{
    grid-template-columns: 1fr;
  }
  .galeria-main{
    height: 280px;
  }
  .lightbox-prev{ left: 10px; }
  .lightbox-next{ right: 10px; }
}

/* CARD (único - sem duplicidade) */
.treinamento-card{
  position: relative;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(17, 24, 39, .08);
  padding: 26px;
  margin-bottom: 26px;
  overflow: hidden;
}

/* risco inferior */
.treinamento-card::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--bs-primary);
  border-radius: 0 0 16px 16px;
}

/* =========================================================
   ABOUT – INSTITUCIONAL
========================================================= */

.about-institutional {
  padding: 100px 0;
  background: #f6f7fb;
}

.about-image-wrapper {
  position: relative;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bs-primary), #1f2937);
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(0,0,0,.25);
}

.about-image-wrapper::after {
  content: "";
  position: absolute;
  top: -18px;
  left: -18px;
  width: 80px;
  height: 80px;
  border: 3px solid var(--bs-primary);
  border-radius: 12px;
  z-index: -1;
}

/* ✅ NOVO: botão invisível pra clicar na imagem do ABOUT */
.about-img-btn{
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  display: block;
  cursor: zoom-in;
  text-align: left;
}

.about-subtitle {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bs-primary);
  margin-bottom: 12px;
}

.about-title {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 18px;
  color: #111827;
  line-height: 1.25;
}

.about-title strong { color: var(--bs-primary); }

.about-text {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 14px;
}

@media (max-width: 991px) {
  .about-institutional { padding: 80px 0; }
  .about-image-wrapper { margin-bottom: 30px; }
}

@media (max-width: 575px) {
  .about-institutional { padding: 70px 0; }
}

.about-img-btn,
.about-img-btn img,
.galeria-main,
.galeria-main img{
  cursor: zoom-in !important;
}