/* =========================================
   Hero Detail (reusa .hero do base.css)
   Padrão para detalhes: categoria/serviço/local/setor/blog/seo
   Ajustes: mais distância do header e mais respiro breadcrumb -> subtitle
   ========================================= */

.hero--detail {
  /* aumenta a distância do header e mantém controle para não ficar gigante */
  padding-top: clamp(40px, 8vw, 60px);
  padding-bottom: 2px;
}

.hero--detail .hero__inner {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.hero--detail .hero__left {
  max-width: 980px;
}

/* H1 controlado para títulos longos */
.hero--detail .hero__title {
  margin: 0 0 14px;
  font-size: clamp(34px, 3.25vw + 12px, 56px);
  line-height: 1.10;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero--detail .breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--c-muted, rgba(11, 18, 32, 0.62));
  margin-bottom: 28px; /* mais espaço antes do subtítulo */
}

.hero--detail .breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.hero--detail .breadcrumbs a:hover {
  color: rgba(11, 18, 32, 0.86);
}

.hero--detail .hero__subtitle {
  margin: 0 auto 24px;
  max-width: 820px;
  line-height: 1.58;
  font-size: clamp(15px, 1.0vw + 11px, 18px);
  color: var(--c-muted, rgba(11, 18, 32, 0.72));
}

.hero--detail .hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero--detail .hero__btn {
  min-width: 220px;
}

@media (max-width: 520px) {
  .hero--detail {
    padding: 52px 0 40px;
  }

  .hero--detail .hero__left {
    width: 100%;
    min-width: 0;
  }

  .hero--detail .hero__title {
    font-size: clamp(28px, 7.8vw, 42px);
    line-height: 1.12;
  }

  .hero--detail .breadcrumbs {
    font-size: 13px;
    margin-bottom: 22px;

    display: flex;
    flex-wrap: nowrap;

    /* padrão: centraliza quando cabe */
    justify-content: center;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    padding-right: 6px; /* sem fade por padrão */
  }

  .hero--detail .breadcrumbs::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  /* quando estoura, ancora à esquerda e mostra “tem mais” */
  .hero--detail .breadcrumbs.is-overflow {
    justify-content: flex-start;
    padding-right: 22px;

    -webkit-mask-image: linear-gradient(
      90deg,
      #000 0%,
      #000 calc(100% - 22px),
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      #000 0%,
      #000 calc(100% - 22px),
      transparent 100%
    );
  }

  .hero--detail .hero__subtitle {
    margin-bottom: 42px;
    margin-top: 22px;
    font-size: 14px;
  }

  .hero--detail .hero__actions {
    gap: 10px;
  }

  .hero--detail .hero__btn {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }
}

@media (max-height: 720px) and (min-width: 521px) {
  .hero--detail {
    padding: 50px 0 30px;
  }

  .hero--detail .breadcrumbs {
    margin-bottom: 22px;
  }
}

/* breadcrumb link hover: gradient text */
.hero--detail .breadcrumbs a:hover,
.hero--institutional .breadcrumbs a:hover {
  color: transparent;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
}

