/**
 * Página Trabalhos — portfólio institucional
 */

.portal-trabalhos-page .portal-institucional-painel__corpo {
  display: block;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.portal-trabalhos-page__lead {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4b5563;
}

.portal-trabalhos-carrossel__topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.portal-trabalhos-carrossel__dica {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.portal-trabalhos-carrossel__bolinhas {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.portal-trabalhos-carrossel__bolinha {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.portal-trabalhos-carrossel__bolinha--ativa {
  background: #f2c318;
  transform: scale(1.2);
}

.portal-trabalhos-carrossel__viewport {
  position: relative;
  width: 100%;
}

.portal-trabalhos-carrossel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 0.125rem 0.75rem;
}

.portal-trabalhos-carrossel__track::-webkit-scrollbar {
  display: none;
}

.portal-trabalhos-carrossel__slot {
  flex: 0 0 calc(100% - 0.5rem);
  scroll-snap-align: start;
  min-width: 0;
}

@media (min-width: 640px) {
  .portal-trabalhos-carrossel__slot {
    flex-basis: calc(50% - 0.5rem);
  }
}

@media (min-width: 992px) {
  .portal-trabalhos-carrossel__slot {
    flex-basis: calc(33.333% - 0.7rem);
  }
}

@media (min-width: 1200px) {
  .portal-trabalhos-carrossel__slot {
    flex-basis: calc(25% - 0.75rem);
  }
}

.portal-trabalhos-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px -20px rgba(10, 37, 64, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.portal-trabalhos-card:hover {
  box-shadow: 0 16px 36px -18px rgba(10, 37, 64, 0.4);
  transform: translateY(-2px);
}

.portal-trabalhos-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8f6f1;
}

.portal-trabalhos-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-trabalhos-card__lupa {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0a2540;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.14);
  cursor: pointer;
}

.portal-trabalhos-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  padding: 1.15rem 1.2rem 1.25rem;
}

.portal-trabalhos-card__titulo {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.portal-trabalhos-card__titulo a {
  color: #0a2540;
  text-decoration: none;
}

.portal-trabalhos-card__titulo a:hover {
  text-decoration: underline;
}

.portal-trabalhos-card__descricao {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #374151;
}

.portal-trabalhos-card__complemento {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #6b7280;
}

.portal-trabalhos-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a2540;
  text-decoration: none;
}

.portal-trabalhos-card__link:hover {
  text-decoration: underline;
}

.portal-trabalhos-page__acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 2px dashed var(--portal-institucional-traco, #d9ccb0);
}

.portal-trabalhos-page__acoes .portal-btn {
  min-height: 44px;
}

.portal-trabalhos-page__acoes .portal-btn--whatsapp .portal-btn__icon {
  font-size: 1.2rem;
  line-height: 1;
}

.portal-trabalhos-page__acoes .portal-catalog-loja-cta {
  font-weight: 700;
}

.portal-trabalhos-page__zoom {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 37, 64, 0.72);
  backdrop-filter: blur(4px);
}

.portal-trabalhos-page__zoom-painel {
  position: relative;
  max-width: min(92vw, 44rem);
  max-height: min(88vh, 44rem);
}

.portal-trabalhos-page__zoom-img {
  display: block;
  max-width: 100%;
  max-height: min(88vh, 44rem);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.portal-trabalhos-page__zoom-fechar {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 9999px;
  background: #fff;
  color: #0a2540;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

@media (max-width: 639px) {
  .portal-trabalhos-carrossel__dica {
    width: 100%;
    text-align: center;
  }

  .portal-trabalhos-carrossel__bolinhas {
    width: 100%;
    justify-content: center;
  }
}
