/* ===== PORTAL PAGE ===== */
.portal-page {
  background: #F5F8FA;
  min-height: 100vh;
}

.portal-page .top-bar {
  height: 8px;
}

.pt-main {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 72px;
  overflow: hidden;
}

/* Grain suave sobre fundo claro */
.pt-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: multiply;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.pt-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) 1.3fr;
  grid-template-areas:
    ".      paths"
    "header paths"
    "social paths"
    ".      paths";
  grid-template-rows: 1fr auto auto 1fr;
  align-items: center;
  column-gap: 64px;
  row-gap: 28px;
}

/* ===== HEADER ===== */
.pt-header {
  grid-area: header;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  animation: pt-fadeDown 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.pt-logo {
  height: 60px;
  width: auto;
  margin-bottom: 52px;
  filter: drop-shadow(0 2px 10px rgba(10, 79, 130, 0.12));
}

.pt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3C8BBC;
}

.pt-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, #3C8BBC, #0A4F82);
}


.pt-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #263746;
}

.pt-subtitle {
  margin-top: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: #0A4F82;
}

.pt-intro {
  margin-top: 22px;
  max-width: 360px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: #5B6B7A;
}

/* ===== REDES SOCIAIS ===== */
.pt-social {
  grid-area: social;
  width: 100%;
  max-width: 360px;
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid rgba(10, 79, 130, 0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  opacity: 0;
  animation: pt-fadeDown 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.pt-social-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 79, 130, 0.5);
}

.pt-social-links {
  display: flex;
  gap: 10px;
}

.pt-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0A4F82;
  background: rgba(60, 139, 188, 0.08);
  border: 1px solid rgba(10, 79, 130, 0.14);
  transition: color 0.22s, background 0.22s, border-color 0.22s, transform 0.22s;
}

.pt-social-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #3C8BBC, #0A4F82);
  border-color: transparent;
  transform: translateY(-2px);
}

/* ===== CAMINHOS ===== */
.pt-paths {
  grid-area: paths;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  width: 100%;
}

.pt-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: #0A4F82;
  box-shadow: 0 8px 32px rgba(10, 79, 130, 0.18);
  text-decoration: none;
  opacity: 0;
  transition: transform 0.22s, box-shadow 0.22s;
}

.pt-card:nth-child(1) { animation: pt-fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards; }
.pt-card:nth-child(2) { animation: pt-fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards; }

/* Foto recortada (sem fundo) sobre coluna vertebral abstrata */
.pt-card--coluna {
  background:
    url('portal-coluna-bg.webp') 90% 6% / 125% auto no-repeat,
    linear-gradient(180deg, #3C8BBC, #0A4F82);
}

.pt-card picture {
  position: absolute;
  inset: 0;
}

.pt-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.pt-card--coluna .pt-card-img {
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
  padding-top: 18px;
}

.pt-card--bebe .pt-card-img {
  object-position: 15% center;
}

/* Degradê para leitura da legenda */
.pt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 47, 89, 0.92) 0%, rgba(3, 47, 89, 0.6) 32%, transparent 62%);
  pointer-events: none;
}

.pt-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 79, 130, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 24px 26px;
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
}

.pt-kicker {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.2;
}

.pt-card-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.pt-card-desc {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.pt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(10, 79, 130, 0.28);
}

.pt-card:hover .pt-card-img {
  transform: scale(1.04);
}

/* ===== ANIMATIONS ===== */
@keyframes pt-fadeDown {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pt-fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .pt-main { padding-top: 40px; }
  .pt-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "paths"
      "social";
    grid-template-rows: auto;
    max-width: 560px;
    row-gap: 32px;
  }
  .pt-header { align-items: center; text-align: center; }
  .pt-logo { margin-bottom: 32px; }
  .pt-eyebrow::after {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(to left, #3C8BBC, #0A4F82);
  }
  .pt-eyebrow { margin-bottom: 10px; }
  .pt-title { font-size: 34px; }
  .pt-subtitle { margin-top: 8px; font-size: 17px; }
  .pt-intro { margin-top: 14px; max-width: 440px; font-size: 14px; line-height: 1.65; }
  .pt-social {
    justify-self: center;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .pt-paths { grid-template-columns: 1fr; gap: 14px; }
  .pt-card { aspect-ratio: 10 / 9; border-radius: 18px; }
  .pt-card--bebe .pt-card-img { object-position: center 22%; }
  .pt-caption { padding: 20px 20px 22px; }
  .pt-card-title { font-size: 20px; }
  .pt-card-desc { font-size: 13px; }
}

@media (max-width: 480px) {
  .pt-main { padding: 40px 16px 56px; }
  .pt-logo { height: 56px; margin-bottom: 26px; }
  .pt-eyebrow { font-size: 11px; }
  .pt-title { font-size: 28px; }
  .pt-subtitle { font-size: 15px; }
  .pt-intro { font-size: 13.5px; }
  .pt-container { row-gap: 28px; }
  .pt-card--coluna .pt-card-img { padding-top: 14px; }
  .pt-badge { top: 12px; left: 12px; width: 36px; height: 36px; }
}

/* Footer centralizado no portal */
.portal-page .site-footer-inner {
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .pt-header,
  .pt-social,
  .pt-card {
    opacity: 1;
    animation: none;
  }
}
