/* ============================================================
   Farias Brito — Home: header integrado + hero editorial
   Paleta: azul institucional, verde de apoio, creme e carvão
   ============================================================ */

.portal-body--home {
  --portal-hero-blue: #005a85;
  --portal-hero-blue-mid: #006494;
  --portal-hero-blue-deep: #073d5e;
  --portal-hero-blue-soft: rgba(8, 120, 180, 0.42);
  --portal-hero-green-soft: rgba(34, 168, 102, 0.16);
}

.portal-body--home .portal-brand-stripe {
  background: var(--portal-primary-light);
}

/* Header + hero contínuos na home */
.portal-body--home .portal-header-wrapper--home {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1055;
}

.portal-body--home .portal-topbar {
  background: linear-gradient(135deg, rgba(3, 8, 6, 0.92) 0%, rgba(6, 74, 42, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-body--home .portal-header {
  padding: 8px 0 14px;
  background: linear-gradient(
    180deg,
    rgba(6, 74, 42, 0.88) 0%,
    rgba(6, 74, 42, 0.55) 55%,
    rgba(6, 74, 42, 0) 100%
  );
}

.portal-body--home .portal-header .navbar-brand img {
  height: 58px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.portal-body--home .portal-header.is-sticky {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(6, 74, 42, 0.12);
}

.portal-body--home .portal-header.is-sticky .navbar-brand img {
  height: 48px;
  filter: none;
}

.portal-body--home .portal-header-cta {
  background: var(--portal-hero-blue-mid) !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(0, 90, 138, 0.45);
}

.portal-body--home .portal-header-cta:hover {
  background: var(--portal-hero-blue) !important;
}

.portal-body--home .portal-header:not(.is-sticky) .portal-header-cta {
  background: var(--portal-hero-blue-mid) !important;
  border: none !important;
}

.portal-body--home .portal-header:not(.is-sticky) .portal-header-cta:hover {
  background: var(--portal-hero-blue) !important;
}

.portal-body--home .portal-main {
  padding-top: 0;
}

.portal-body--home .portal-quick-access {
  margin-top: -48px;
}

/* Hero Farias Brito */
.portal-hero--farias-brito {
  margin-top: 0;
  padding: 0;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: stretch;
  color: #fff;
  background: var(--portal-hero-blue-deep);
}

.portal-hero--farias-brito .portal-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Foto aérea — cobre todo o hero, dissolvida com máscara radial ampla */
.portal-hero--farias-brito .portal-hero-bg__photo {
  position: absolute;
  inset: -2%;
  background-image: var(--hero-photo-url);
  background-size: cover;
  background-position: center 36%;
  background-repeat: no-repeat;
  transform: scale(1.06);
  -webkit-mask-image: radial-gradient(
    ellipse 135% 125% at 52% 48%,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.82) 72%,
    rgba(0, 0, 0, 0.55) 84%,
    rgba(0, 0, 0, 0.28) 93%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 135% 125% at 52% 48%,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.82) 72%,
    rgba(0, 0, 0, 0.55) 84%,
    rgba(0, 0, 0, 0.28) 93%,
    transparent 100%
  );
}

.portal-hero--farias-brito .portal-hero-bg__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 120% 110% at 48% 50%,
    rgba(0, 90, 138, 0.14) 0%,
    rgba(5, 52, 78, 0.32) 55%,
    rgba(3, 32, 50, 0.48) 100%
  );
  pointer-events: none;
}

/* Azul institucional + verde suave — foto visível por baixo */
.portal-hero--farias-brito .portal-hero-bg__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 78% 68% at 12% 26%, var(--portal-hero-blue-soft), transparent 58%),
    radial-gradient(ellipse 55% 48% at 8% 88%, var(--portal-hero-green-soft), transparent 52%),
    linear-gradient(
      108deg,
      rgba(4, 45, 72, 0.9) 0%,
      rgba(5, 62, 96, 0.72) 32%,
      rgba(5, 62, 96, 0.46) 58%,
      rgba(5, 62, 96, 0.26) 78%,
      rgba(4, 48, 72, 0.16) 100%
    );
}

/* Véu azul suave sobre toda a área */
.portal-hero--farias-brito .portal-hero-bg__blend {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 85% 100% at 18% 50%,
      rgba(4, 52, 80, 0.76) 0%,
      rgba(5, 62, 96, 0.52) 38%,
      rgba(5, 62, 96, 0.26) 58%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 130% 120% at 55% 50%,
      rgba(0, 90, 138, 0.3) 0%,
      rgba(5, 62, 96, 0.24) 45%,
      rgba(34, 168, 102, 0.08) 70%,
      rgba(4, 45, 72, 0.1) 100%
    );
}

.portal-hero--farias-brito .portal-hero-bg__band {
  position: absolute;
  width: 140%;
  height: 38%;
  left: -20%;
  bottom: 18%;
  transform: rotate(-8deg);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 90, 138, 0.78) 18%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(8, 120, 180, 0.62) 82%,
    transparent 100%
  );
  opacity: 0.55;
  pointer-events: none;
}

.portal-hero--farias-brito .portal-hero-bg__ring {
  position: absolute;
  width: min(480px, 62vw);
  height: min(480px, 62vw);
  right: 6%;
  top: 10%;
  opacity: 0.35;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 24px rgba(255, 255, 255, 0.03),
    0 0 80px rgba(8, 120, 180, 0.2);
  pointer-events: none;
}

.portal-hero--farias-brito .portal-hero-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.portal-hero--farias-brito .portal-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 148px 0 72px;
}

.portal-hero--farias-brito .portal-hero-copy {
  text-align: left;
}

.portal-hero--farias-brito .portal-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.25rem;
}

.portal-hero--farias-brito .portal-hero-eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  background: #0284c7;
  border-radius: 2px;
}

.portal-hero--farias-brito #portal-hero-title {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.15rem, 4.8vw, 3.25rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.25);
  max-width: 15em;
}

.portal-hero--farias-brito .portal-hero-accent {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  position: relative;
  display: inline-block;
}

.portal-hero--farias-brito .portal-hero-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.32em;
  background: rgba(0, 90, 138, 0.58);
  z-index: -1;
  border-radius: 2px;
}

.portal-hero--farias-brito .portal-hero-accent--rotate {
  vertical-align: top;
  text-align: left;
  transition:
    opacity 0.46s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.46s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.portal-hero--farias-brito .portal-hero-accent--rotate.is-leaving {
  opacity: 0;
  transform: translateY(-0.55em);
}

.portal-hero--farias-brito .portal-hero-accent--rotate.is-entering {
  opacity: 0;
  transform: translateY(0.55em);
}

@media (prefers-reduced-motion: reduce) {
  .portal-hero--farias-brito .portal-hero-accent--rotate {
    transition: none;
  }
}

.portal-hero--farias-brito .portal-hero-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34rem;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1.5rem;
  text-align: left;
}

.portal-hero--farias-brito .portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}

.portal-hero--farias-brito .portal-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-hero--farias-brito .portal-hero-btn--primary {
  background: #fff;
  color: var(--portal-primary-dark);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.portal-hero--farias-brito .portal-hero-btn--primary:hover {
  transform: translateY(-2px);
  color: var(--portal-primary-dark);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.portal-hero--farias-brito .portal-hero-btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.portal-hero--farias-brito .portal-hero-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-2px);
}

.portal-hero--farias-brito .portal-hero-search {
  max-width: 100%;
  margin-top: 0;
}

.portal-hero--farias-brito .portal-hero-search .input-group {
  background: rgba(255, 255, 255, 0.97);
  border: none;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  padding: 4px;
}

.portal-hero--farias-brito .portal-hero-search .form-control {
  color: var(--portal-dark);
  padding: 16px 20px;
}

.portal-hero--farias-brito .portal-hero-search .form-control::placeholder {
  color: rgba(12, 24, 18, 0.45);
}

.portal-hero--farias-brito .portal-hero-search .btn {
  background: var(--portal-hero-blue-deep);
  color: #fff;
  border-radius: 12px !important;
  margin: 0;
  padding: 14px 24px;
}

.portal-hero--farias-brito .portal-hero-search .btn:hover {
  background: var(--portal-hero-blue-mid);
  color: #fff;
}

.portal-hero--farias-brito .portal-hero-chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 13px;
}

.portal-hero--farias-brito .portal-hero-chips span {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.portal-hero--farias-brito .portal-hero-chips a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.portal-hero--farias-brito .portal-hero-chips a:hover {
  background: rgba(0, 90, 138, 0.4);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Hero — layout dividido (conteúdo em painel + foto à direita) */
.portal-hero--farias-brito.portal-hero--split {
  min-height: min(88vh, 820px);
  align-items: center;
  background: linear-gradient(118deg, #032818 0%, #043d24 38%, var(--portal-hero-blue-deep) 100%);
}

.portal-hero--farias-brito.portal-hero--split .portal-hero-bg__photo {
  left: 34%;
  right: -4%;
  width: auto;
  inset-block: -4%;
  transform: scale(1.03);
  background-position: center 42%;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 78%, rgba(0, 0, 0, 0.45) 92%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, #000 78%, rgba(0, 0, 0, 0.45) 92%, transparent 100%);
}

.portal-hero--farias-brito.portal-hero--split .portal-hero-bg__photo::after {
  background: linear-gradient(
    105deg,
    rgba(4, 61, 36, 0.55) 0%,
    rgba(5, 62, 96, 0.22) 45%,
    rgba(3, 32, 50, 0.12) 100%
  );
}

.portal-hero--farias-brito.portal-hero--split .portal-hero-bg__mesh {
  background:
    radial-gradient(ellipse 70% 80% at 8% 40%, rgba(34, 168, 102, 0.22), transparent 62%),
    linear-gradient(
      102deg,
      rgba(3, 40, 28, 0.94) 0%,
      rgba(4, 61, 36, 0.82) 34%,
      rgba(5, 62, 96, 0.52) 52%,
      rgba(5, 62, 96, 0.18) 64%,
      transparent 72%
    );
}

.portal-hero--farias-brito.portal-hero--split .portal-hero-bg__blend {
  background: linear-gradient(
    90deg,
    rgba(3, 24, 16, 0.35) 0%,
    rgba(3, 24, 16, 0.08) 42%,
    transparent 58%
  );
}

.portal-hero--farias-brito.portal-hero--split .portal-hero-bg__grain {
  opacity: 0.22;
}

.portal-hero--farias-brito.portal-hero--split .portal-hero-inner {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: min(88vh, 820px);
  padding: 104px 0 56px;
  box-sizing: border-box;
}

.portal-hero--farias-brito.portal-hero--split .portal-hero-inner > .row {
  width: 100%;
}

.portal-hero--farias-brito.portal-hero--split .portal-hero-copy {
  position: relative;
  padding-left: 0;
  border: none;
  background: none;
}

.portal-hero--farias-brito.portal-hero--split .portal-hero-eyebrow::before {
  background: var(--portal-primary-light);
}

.portal-hero--farias-brito.portal-hero--split #portal-hero-title,
.portal-hero--farias-brito.portal-hero--split .portal-hero-lead {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.portal-hero--farias-brito.portal-hero--split #portal-hero-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  max-width: 13em;
}

.portal-hero--farias-brito.portal-hero--split .portal-hero-accent {
  color: #bae6fd;
  -webkit-text-fill-color: #bae6fd;
}

.portal-hero--farias-brito.portal-hero--split .portal-hero-accent::after {
  height: 0.22em;
  bottom: 0.1em;
  background: rgba(0, 90, 138, 0.45);
}

.portal-hero--farias-brito.portal-hero--split .portal-hero-search .input-group {
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991.98px) {
  .portal-hero--farias-brito.portal-hero--split {
    min-height: auto;
  }

  .portal-hero--farias-brito.portal-hero--split .portal-hero-bg__photo {
    left: 0;
    right: 0;
    inset: 0;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #000 38%, #000 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #000 38%, #000 100%);
  }

  .portal-hero--farias-brito.portal-hero--split .portal-hero-bg__mesh {
    background: linear-gradient(
      180deg,
      rgba(3, 40, 28, 0.92) 0%,
      rgba(5, 62, 96, 0.75) 55%,
      rgba(5, 62, 96, 0.55) 100%
    );
  }

  .portal-hero--farias-brito.portal-hero--split .portal-hero-inner {
    min-height: auto;
    align-items: flex-start;
    padding: 112px 0 48px;
  }
}

/* ============================================================
   Home — Últimas notícias (Farias Brito)
   ============================================================ */

.portal-body--home .portal-home-banner-strip--spacing-bottom {
  margin-bottom: 0;
}

.portal-home-news {
  position: relative;
  padding-top: 2.5rem;
  padding-bottom: 4.75rem;
  overflow: hidden;
  margin-top: 0;
}

.portal-home-news__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fafdfb 8%,
    #f2f9f5 22%,
    #eef6f0 48%,
    #f4faf6 100%
  );
  pointer-events: none;
}

.portal-home-news__bg::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 122, 74, 0.08) 0%, transparent 70%);
}

.portal-home-news__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  margin-bottom: 2.25rem;
}

.portal-home-news__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--portal-primary-dark);
  background: rgba(15, 122, 74, 0.1);
  border: 1px solid rgba(6, 74, 42, 0.12);
  margin-bottom: 0.75rem;
}

.portal-home-news__badge i {
  color: var(--portal-accent);
  font-size: 13px;
}

.portal-home-news__title {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  color: var(--portal-primary-dark);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.portal-home-news__subtitle {
  margin: 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(12, 24, 18, 0.62);
}

.portal-home-news__link-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--portal-primary-dark), var(--portal-primary));
  box-shadow: 0 10px 28px rgba(6, 74, 42, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.portal-home-news__link-all:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(6, 74, 42, 0.28);
}

.portal-home-news__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.portal-home-news__featured-wrap {
  min-width: 0;
}

.portal-home-news__carousel {
  border-radius: 20px;
  overflow: hidden;
}

.portal-home-news__carousel .carousel-inner {
  border-radius: 20px;
}

.portal-home-news__carousel .carousel-item {
  transition: transform 0.65s ease-in-out;
}

.portal-home-news__carousel-indicators {
  margin-bottom: 0.85rem;
  gap: 6px;
}

.portal-home-news__carousel-indicators [type="button"] {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(6, 74, 42, 0.25);
  opacity: 1;
  transition: width 0.25s ease, background 0.25s ease;
}

.portal-home-news__carousel-indicators [type="button"].active {
  width: 22px;
  background: var(--portal-accent);
}

.portal-home-news__carousel-control {
  width: 44px;
  height: 44px;
  top: 38%;
  bottom: auto;
  transform: translateY(-50%);
  opacity: 1;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(6, 74, 42, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.portal-home-news__carousel-control .carousel-control-prev-icon,
.portal-home-news__carousel-control .carousel-control-next-icon {
  display: none;
}

.portal-home-news__carousel-control:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.portal-home-news__carousel-control.carousel-control-prev {
  left: 12px;
}

.portal-home-news__carousel-control.carousel-control-next {
  right: 12px;
}

.portal-home-news__carousel-control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 20px;
  color: var(--portal-primary-dark);
}

.portal-home-news__featured-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(6, 74, 42, 0.08);
  box-shadow: 0 16px 48px rgba(6, 74, 42, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.portal-home-news__featured-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(6, 74, 42, 0.16);
}

.portal-home-news__featured-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.portal-home-news__featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.portal-home-news__featured-link:hover .portal-home-news__featured-media img {
  transform: scale(1.04);
}

.portal-home-news__featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(3, 8, 6, 0.55) 100%
  );
  pointer-events: none;
}

.portal-home-news__featured-body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 3px solid var(--portal-primary);
}

.portal-home-news__featured-title {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--portal-dark);
  margin: 0 0 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-home-news__featured-excerpt {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(12, 24, 18, 0.58);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Duas matérias em coluna dentro do painel lateral */
.portal-home-news__aside-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(6, 74, 42, 0.08);
}

.portal-home-news__aside-duo-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(6, 74, 42, 0.1);
  background: #fafdfb;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.portal-home-news__aside-duo-card:hover {
  background: #fff;
  box-shadow: 0 8px 24px rgba(6, 74, 42, 0.1);
  transform: translateY(-2px);
}

.portal-home-news__aside-duo-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.portal-home-news__aside-duo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portal-home-news__aside-duo-card:hover .portal-home-news__aside-duo-media img {
  transform: scale(1.05);
}

.portal-home-news__aside-duo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.65rem 0.7rem 0.75rem;
  min-width: 0;
}

.portal-home-news__aside-duo-title {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--portal-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-home-news__featured-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--portal-accent);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.35);
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-home-news__meta {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(12, 24, 18, 0.5);
}

.portal-home-news__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-home-news__meta i {
  color: var(--portal-primary);
  font-size: 12px;
}

.portal-home-news__read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--portal-primary-dark);
  margin-top: auto;
}

.portal-home-news__read-more i {
  transition: transform 0.2s ease;
}

.portal-home-news__featured-link:hover .portal-home-news__read-more i {
  transform: translateX(4px);
}

.portal-home-news__aside {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(6, 74, 42, 0.1);
  box-shadow: 0 12px 40px rgba(6, 74, 42, 0.08);
  padding: 1.25rem 1.25rem 1rem;
  min-height: 100%;
}

.portal-home-news__aside-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
  border-bottom: 2px solid rgba(6, 74, 42, 0.08);
}

.portal-home-news__aside-title {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--portal-primary-dark);
  margin: 0;
}

.portal-home-news__aside-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(12, 24, 18, 0.45);
  white-space: nowrap;
}

.portal-home-news__feed {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.portal-home-news__feed > li + li {
  border-top: 1px solid rgba(6, 74, 42, 0.08);
}

.portal-home-news__feed-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0.85rem 0.35rem;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.portal-home-news__feed-item:hover {
  background: rgba(15, 122, 74, 0.06);
}

.portal-home-news__feed-thumb {
  display: block;
  width: 72px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(6, 74, 42, 0.08);
}

.portal-home-news__feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-home-news__feed-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.portal-home-news__feed-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--portal-accent);
}

.portal-home-news__feed-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--portal-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-home-news__feed-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(12, 24, 18, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portal-home-news__feed-arrow {
  color: var(--portal-primary);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.portal-home-news__feed-item:hover .portal-home-news__feed-arrow {
  opacity: 1;
  transform: translateX(0);
}

.portal-home-news__aside-empty {
  margin: 0.5rem 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(12, 24, 18, 0.55);
}

.portal-home-news__aside-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--portal-primary-dark);
  background: rgba(15, 122, 74, 0.08);
  border: 1px dashed rgba(6, 74, 42, 0.2);
  transition: background 0.2s ease, color 0.2s ease;
}

.portal-home-news__aside-cta:hover {
  background: rgba(15, 122, 74, 0.14);
  color: var(--portal-primary-dark);
}

.portal-home-news__empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: 20px;
  border: 1px dashed rgba(6, 74, 42, 0.2);
}

.portal-home-news__empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--portal-accent);
  background: rgba(200, 16, 46, 0.08);
}

.portal-home-news__empty p {
  margin: 0 0 1.25rem;
  color: rgba(12, 24, 18, 0.6);
}

.portal-home-news__empty-btn {
  display: inline-flex;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  color: #fff;
  background: var(--portal-primary-dark);
}

.portal-home-news__empty-btn:hover {
  color: #fff;
  background: var(--portal-accent);
}

/* ============================================================
   Home — Secretarias (Farias Brito)
   ============================================================ */

.portal-body--home .portal-home-secretarias.portal-section {
  padding: 4rem 0 3rem;
}

.portal-home-secretarias {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.portal-home-secretarias__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  min-height: 100%;
  background: linear-gradient(
    180deg,
    #f4faf6 0%,
    #ffffff 18%,
    #f6fbf8 42%,
    #eef6f0 72%,
    #e6f0ea 100%
  );
  pointer-events: none;
  z-index: 0;
}

.portal-home-secretarias__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 95% 8%, rgba(15, 122, 74, 0.09) 0%, transparent 58%),
    radial-gradient(ellipse 75% 60% at 0% 92%, rgba(6, 74, 42, 0.12) 0%, transparent 62%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(200, 16, 46, 0.05) 0%, transparent 70%);
}

.portal-home-secretarias__bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(160px, 28%);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(230, 240, 234, 0.85) 45%,
    #e6f0ea 100%
  );
}

.portal-home-secretarias .container,
.portal-home-secretarias__slider-wrap {
  position: relative;
  z-index: 1;
}

.portal-home-secretarias__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.portal-home-secretarias__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--portal-primary-dark);
  background: rgba(15, 122, 74, 0.1);
  border: 1px solid rgba(6, 74, 42, 0.12);
  margin-bottom: 0.75rem;
}

.portal-home-secretarias__badge i {
  color: var(--portal-accent);
}

.portal-home-secretarias__title {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  color: var(--portal-primary-dark);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.portal-home-secretarias__subtitle {
  margin: 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(12, 24, 18, 0.62);
}

.portal-home-secretarias__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.portal-home-secretarias__link-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--portal-primary-dark), var(--portal-primary));
  box-shadow: 0 10px 28px rgba(6, 74, 42, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.portal-home-secretarias__link-all:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(6, 74, 42, 0.28);
}

.portal-home-secretarias__nav {
  display: flex;
  gap: 8px;
}

.portal-home-secretarias__nav-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: var(--portal-primary-dark);
  box-shadow: 0 6px 20px rgba(6, 74, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.portal-home-secretarias__nav-btn:hover {
  background: var(--portal-primary-dark);
  color: #fff;
  transform: scale(1.05);
}

.portal-home-secretarias__slider-wrap {
  position: relative;
}

.portal-home-secretarias__slider-wrap::before,
.portal-home-secretarias__slider-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(56px, 10vw);
  z-index: 2;
  pointer-events: none;
}

.portal-home-secretarias__slider-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #eef6f0 0%, rgba(238, 246, 240, 0) 100%);
}

.portal-home-secretarias__slider-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #e6f0ea 0%, rgba(230, 240, 234, 0) 100%);
}

.portal-home-secretarias__slider {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0 12px;
}

.portal-home-secretarias__slider::-webkit-scrollbar {
  display: none;
}

.portal-home-secretarias__track {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  padding-top: 4px;
  padding-bottom: 2px;
  padding-left: max(0.75rem, calc((100vw - 1140px) / 2 + 0.75rem));
  padding-right: max(0.75rem, calc((100vw - 1140px) / 2 + 0.75rem));
}

@media (min-width: 1400px) {
  .portal-home-secretarias__track {
    padding-left: max(0.75rem, calc((100vw - 1320px) / 2 + 0.75rem));
    padding-right: max(0.75rem, calc((100vw - 1320px) / 2 + 0.75rem));
  }
}

@media (max-width: 1199.98px) {
  .portal-home-secretarias__track {
    padding-left: max(0.75rem, calc((100vw - 960px) / 2 + 0.75rem));
    padding-right: max(0.75rem, calc((100vw - 960px) / 2 + 0.75rem));
  }
}

@media (max-width: 991.98px) {
  .portal-home-secretarias__track {
    padding-left: max(0.75rem, calc((100vw - 720px) / 2 + 0.75rem));
    padding-right: max(0.75rem, calc((100vw - 720px) / 2 + 0.75rem));
  }
}

@media (max-width: 575.98px) {
  .portal-home-secretarias__track {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.portal-home-sec-card {
  flex: 0 0 min(300px, 78vw);
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(6, 74, 42, 0.1);
  box-shadow: 0 12px 36px rgba(6, 74, 42, 0.08);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.portal-home-sec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(6, 74, 42, 0.14);
  border-color: color-mix(in srgb, var(--sec-accent, #064a2a) 35%, transparent);
}

.portal-home-sec-card__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--sec-accent, #064a2a),
    color-mix(in srgb, var(--sec-accent, #064a2a) 60%, #fff)
  );
}

.portal-home-sec-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.portal-home-sec-card__sigla {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sec-accent, var(--portal-primary-dark));
}

.portal-home-sec-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--sec-accent, #0f7a4a) 12%, transparent);
  color: var(--sec-accent, var(--portal-primary));
  font-size: 20px;
  transition: background 0.25s ease, color 0.25s ease;
}

.portal-home-sec-card:hover .portal-home-sec-card__icon {
  background: var(--sec-accent, var(--portal-primary-dark));
  color: #fff;
}

.portal-home-sec-card__nome {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--portal-dark);
  margin: 0 0 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-home-sec-card__secretario {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(12, 24, 18, 0.72);
  line-height: 1.35;
}

.portal-home-sec-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(6, 74, 42, 0.12);
}

.portal-home-sec-card__avatar--iniciais {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--sec-accent, var(--portal-primary-dark));
}

.portal-home-sec-card__desc {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(12, 24, 18, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-home-sec-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sec-accent, var(--portal-primary-dark));
  margin-top: auto;
}

.portal-home-sec-card__cta i {
  transition: transform 0.2s ease;
}

.portal-home-sec-card:hover .portal-home-sec-card__cta i {
  transform: translateX(4px);
}

/* ============================================================
   Home — Serviços ao Cidadão (Farias Brito)
   ============================================================ */

.portal-home-services {
  position: relative;
  padding-top: 4.25rem;
  padding-bottom: 4.75rem;
  overflow: hidden;
  color: #fff;
}

.portal-home-services__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    128deg,
    #021a0f 0%,
    #064a2a 28%,
    #0a5c34 52%,
    #043d24 78%,
    #1a0810 100%
  );
  pointer-events: none;
}

.portal-home-services__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}

.portal-home-services__orb--green {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(34, 168, 102, 0.85) 0%, transparent 70%);
}

.portal-home-services__orb--red {
  width: 380px;
  height: 380px;
  top: 20%;
  right: -100px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.65) 0%, transparent 68%);
}

.portal-home-services__orb--gold {
  width: 280px;
  height: 280px;
  bottom: -60px;
  left: 35%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.35) 0%, transparent 70%);
}

.portal-home-services__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  margin-bottom: 2.25rem;
}

.portal-home-services__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 0.75rem;
}

.portal-home-services__badge i {
  color: #ffb4c0;
}

.portal-home-services__title {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.portal-home-services__subtitle {
  margin: 0;
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.portal-home-services__link-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--portal-primary-dark);
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.portal-home-services__link-all:hover {
  color: var(--portal-primary-dark);
  background: #f4faf6;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.portal-home-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.portal-home-svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem 1.15rem 1.15rem;
  min-height: 100%;
  border-radius: 18px;
  text-decoration: none;
  color: var(--portal-dark);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.portal-home-svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  border-color: color-mix(in srgb, var(--svc-color, #0f7a4a) 45%, #fff);
}

.portal-home-svc-card__glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--svc-color, #0f7a4a) 35%, transparent);
  opacity: 0.45;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.portal-home-svc-card:hover .portal-home-svc-card__glow {
  opacity: 0.75;
  transform: scale(1.15);
}

.portal-home-svc-card__icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(
    145deg,
    var(--svc-color, #0f7a4a),
    color-mix(in srgb, var(--svc-color, #064a2a) 70%, #000)
  );
  box-shadow: 0 8px 22px color-mix(in srgb, var(--svc-color, #0f7a4a) 45%, transparent);
  transition: transform 0.25s ease;
}

.portal-home-svc-card:hover .portal-home-svc-card__icon {
  transform: scale(1.06) rotate(-3deg);
}

.portal-home-svc-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.portal-home-svc-card__name {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--portal-dark);
}

.portal-home-svc-card__desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(12, 24, 18, 0.58);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-home-svc-card__action {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--svc-color, var(--portal-primary-dark));
  background: color-mix(in srgb, var(--svc-color, #0f7a4a) 12%, #fff);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.portal-home-svc-card:hover .portal-home-svc-card__action {
  background: var(--svc-color, var(--portal-primary-dark));
  color: #fff;
  transform: translateX(3px);
}

.portal-home-services__empty {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1199.98px) {
  .portal-home-services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .portal-home-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-home-services__link-all {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .portal-home-services {
    padding-top: 3.25rem;
    padding-bottom: 3.5rem;
  }

  .portal-home-services__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .portal-home-secretarias__header {
    align-items: stretch;
  }

  .portal-home-secretarias__actions {
    width: 100%;
    justify-content: space-between;
  }

  .portal-home-secretarias__link-all {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  .portal-home-news__layout {
    grid-template-columns: 1fr;
  }

  .portal-home-news__featured-media {
    aspect-ratio: 16 / 9;
  }

  .portal-home-news__link-all {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .portal-home-news__aside-duo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .portal-home-news {
    padding-top: 3.25rem;
    padding-bottom: 3.5rem;
  }

  .portal-home-news__feed-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .portal-home-news__feed-arrow {
    display: none;
  }
}

/* ============================================================
   Home — Publicações recentes + licitações
   ============================================================ */

.portal-body--home .portal-home-publications.portal-section {
  padding: 4rem 0 4.25rem;
}

.portal-home-publications {
  position: relative;
  overflow: hidden;
}

.portal-home-publications__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 55%, #f0f7f3 100%);
  pointer-events: none;
}

.portal-home-publications__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.portal-home-publications__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--portal-primary-dark);
  background: rgba(15, 122, 74, 0.1);
  border: 1px solid rgba(6, 74, 42, 0.12);
  margin-bottom: 0.65rem;
}

.portal-home-publications__badge i {
  color: var(--portal-accent);
}

.portal-home-publications__title {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--portal-primary-dark);
  margin: 0 0 0.4rem;
}

.portal-home-publications__subtitle {
  margin: 0;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(12, 24, 18, 0.58);
}

.portal-home-publications__link-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--portal-primary-dark), var(--portal-primary));
  box-shadow: 0 8px 24px rgba(6, 74, 42, 0.2);
  white-space: nowrap;
}

.portal-home-publications__link-all:hover {
  color: #fff;
  transform: translateY(-2px);
}

.portal-home-publications__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-home-pub-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(6, 74, 42, 0.1);
  box-shadow: 0 8px 28px rgba(6, 74, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.portal-home-pub-card:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 36px rgba(6, 74, 42, 0.12);
  border-color: rgba(6, 74, 42, 0.2);
}

.portal-home-pub-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  background: var(--portal-primary);
}

.portal-home-pub-card--decree .portal-home-pub-card__icon {
  background: linear-gradient(145deg, #064a2a, #0f7a4a);
}

.portal-home-pub-card--portaria .portal-home-pub-card__icon {
  background: linear-gradient(145deg, #0f7a4a, #22a866);
}

.portal-home-pub-card--law .portal-home-pub-card__icon {
  background: linear-gradient(145deg, #9333ea, #7c3aed);
}

.portal-home-pub-card--resolution .portal-home-pub-card__icon {
  background: linear-gradient(145deg, #c8102e, #9b0f28);
}

.portal-home-pub-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.portal-home-pub-card__type {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--portal-accent);
}

.portal-home-pub-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--portal-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-home-pub-card__desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(12, 24, 18, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-home-pub-card__date {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--portal-primary-dark);
  white-space: nowrap;
}

.portal-home-pub-card__arrow {
  color: var(--portal-primary);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.portal-home-pub-card:hover .portal-home-pub-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.portal-home-publications__empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: rgba(12, 24, 18, 0.55);
}

.portal-home-licit-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, #064a2a 0%, #0a5c34 45%, #043d24 100%);
  color: #fff;
  box-shadow: 0 20px 50px rgba(6, 74, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-home-licit-panel__head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-home-licit-panel__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.portal-home-licit-panel__title {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #fff;
}

.portal-home-licit-panel__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #fff;
}

.portal-home-licit-panel__list {
  flex: 1;
  padding: 0.75rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.portal-home-licit-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.portal-home-licit-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.portal-home-licit-item:hover .portal-home-licit-item__title,
.portal-home-licit-item:hover .portal-home-licit-item__obj,
.portal-home-licit-item:hover .portal-home-licit-item__date,
.portal-home-licit-item:hover .portal-home-licit-item__badge {
  color: #fff;
}

.portal-home-licit-item__badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.portal-home-licit-item__title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.portal-home-licit-item__obj {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #fff;
}

.portal-home-licit-item__date {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portal-home-licit-item__date i {
  color: #fff;
}

.portal-home-licit-panel__empty {
  margin: 0;
  padding: 1.5rem 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #fff;
}

.portal-home-licit-panel__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--portal-primary-dark);
  background: #fff;
  transition: background 0.2s ease;
}

.portal-home-licit-panel__footer:hover {
  color: var(--portal-primary-dark);
  background: #f4faf6;
}

/* ============================================================
   Home — CTA Fale com a Prefeitura
   ============================================================ */

.portal-home-contact {
  position: relative;
  padding: 4.5rem 0;
  overflow: hidden;
}

.portal-home-contact__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    #eef6f0 0%,
    #ffffff 35%,
    #fce8ec 70%,
    #f4faf6 100%
  );
  pointer-events: none;
}

.portal-home-contact__bg::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 122, 74, 0.12) 0%, transparent 70%);
}

.portal-home-contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2rem 2.5rem;
  align-items: center;
}

.portal-home-contact__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--portal-primary-dark);
  background: rgba(15, 122, 74, 0.12);
  border: 1px solid rgba(6, 74, 42, 0.12);
  margin-bottom: 0.75rem;
}

.portal-home-contact__title {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--portal-primary-dark);
  margin: 0 0 0.75rem;
}

.portal-home-contact__text {
  margin: 0 0 1.35rem;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(12, 24, 18, 0.62);
}

.portal-home-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portal-home-contact__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-home-contact__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--portal-primary-dark), var(--portal-primary));
  box-shadow: 0 10px 28px rgba(6, 74, 42, 0.25);
}

.portal-home-contact__btn--transparency {
  color: var(--portal-primary-dark);
  background: #fff;
  border: 2px solid rgba(6, 74, 42, 0.18);
  box-shadow: 0 8px 24px rgba(6, 74, 42, 0.1);
}

.portal-home-contact__btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.portal-home-contact__btn--primary:hover {
  color: #fff;
}

.portal-home-contact__btn--transparency:hover {
  color: var(--portal-primary-dark);
  border-color: var(--portal-accent);
}

.portal-home-contact__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.portal-home-contact__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(6, 74, 42, 0.1);
  box-shadow: 0 10px 30px rgba(6, 74, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portal-home-contact__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(6, 74, 42, 0.12);
  border-color: rgba(15, 122, 74, 0.25);
}

.portal-home-contact__card--static {
  cursor: default;
}

.portal-home-contact__card--static:hover {
  transform: none;
}

.portal-home-contact__card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  background: var(--portal-primary-dark);
}

.portal-home-contact__card-icon--whatsapp {
  background: #25d366;
}

.portal-home-contact__card-icon--email {
  background: #0ea5e9;
}

.portal-home-contact__card-icon--schedule {
  background: var(--portal-accent);
}

.portal-home-contact__card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 0.8125rem;
  color: rgba(12, 24, 18, 0.65);
}

.portal-home-contact__card-text strong {
  font-size: 0.875rem;
  color: var(--portal-dark);
}

.portal-home-contact__hint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: rgba(12, 24, 18, 0.5);
}

@media (max-width: 991.98px) {
  .portal-home-contact__layout {
    grid-template-columns: 1fr;
  }

  .portal-home-publications__link-all {
    width: 100%;
    justify-content: center;
  }

  .portal-home-pub-card {
    grid-template-columns: auto 1fr auto;
  }

  .portal-home-pub-card__arrow {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .portal-home-contact__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .portal-hero--farias-brito .portal-hero-inner {
    padding-top: 132px;
    padding-bottom: 48px;
  }

  .portal-hero--farias-brito .portal-hero-bg__photo {
    background-position: center 32%;
    -webkit-mask-image: radial-gradient(
      ellipse 140% 115% at 50% 48%,
      #000 0%,
      rgba(0, 0, 0, 0.75) 65%,
      rgba(0, 0, 0, 0.4) 85%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse 140% 115% at 50% 48%,
      #000 0%,
      rgba(0, 0, 0, 0.75) 65%,
      rgba(0, 0, 0, 0.4) 85%,
      transparent 100%
    );
  }

  .portal-hero--farias-brito .portal-hero-bg__blend {
    background: radial-gradient(
      ellipse 130% 110% at 50% 42%,
      rgba(4, 61, 36, 0.88) 0%,
      rgba(6, 74, 42, 0.78) 50%,
      rgba(6, 74, 42, 0.72) 100%
    );
  }

  .portal-hero--farias-brito #portal-hero-title {
    font-size: clamp(1.9rem, 6.5vw, 2.65rem);
    max-width: none;
  }

  .portal-body--home .portal-header-wrapper--home {
    position: relative;
  }

  .portal-hero--farias-brito {
    min-height: auto;
  }
}
