.platform-container,
.visitor-project-container {
  width: 100%;
  max-width: var(--app-shell-max, 1400px) !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--app-shell-pad, 24px);
  padding-right: var(--app-shell-pad, 24px);
  box-sizing: border-box;
}

.public-kpi p:last-child { line-height: 1.1; }
img { image-rendering: auto; }

/* Botão "Voltar" unificado */
.btn-voltar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  border: 1px solid #d6e0e9;
  background: #ffffff;
  color: #0f2f4a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 47, 74, 0.06);
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn-voltar:hover {
  border-color: #0e7cb4;
  color: #0e7cb4;
  box-shadow: 0 6px 16px rgba(14, 124, 180, 0.18);
  transform: translateY(-1px);
}

.btn-voltar svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform .18s ease;
}

.btn-voltar:hover svg {
  transform: translateX(-3px);
}

.company-profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.company-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.company-profile-actions .resident-access {
  flex: none;
}

.company-profile-actions .resident-access-trigger {
  flex: none;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  line-height: 1.12;
  text-align: center;
  white-space: nowrap;
}

.project-detail-actions,
.project-detail-actions .resident-access {
  min-width: 0;
}

.project-detail-topbar .btn-voltar,
.project-detail-actions .project-detail-action,
.project-detail-actions .resident-access-trigger {
  flex: none;
  white-space: nowrap;
}

.public-project-detail .visitor-project-container {
  max-width: var(--app-shell-max, 1400px) !important;
  margin: 0 auto;
}

.public-project-detail .project-banner-wrap,
.company-banner-wrap {
  padding: 0;
  background: #dfe7ee;
}

.company-banner-wrap--with-seal {
  overflow: visible !important;
  isolation: isolate;
}

.public-project-detail .project-banner-wrap--with-seal {
  position: relative;
  overflow: visible !important;
  isolation: isolate;
  border-radius: 0.75rem;
}

.public-project-detail .project-banner-picture {
  display: block;
}

.public-project-detail .project-banner-img,
.company-banner-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
}

/* Banner "hero" com nome/periodo sobrepostos: ativo apenas no mobile (ver media query). */
.company-hero {
  position: relative;
}

.company-banner-wrap > picture {
  display: block;
  width: 100%;
}

.company-banner-wrap--with-seal .company-banner-img,
.company-banner-wrap--with-seal .company-hero__overlay {
  border-radius: 18px;
}

.company-banner-seal {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(120px, 12vw, 168px);
  height: auto;
  z-index: 3;
  pointer-events: none;
  transform: translate(16%, -16%);
  transform-origin: top right;
  filter: none;
}

.company-hero__overlay {
  display: none;
}

.public-project-detail .project-banner-wrap--with-seal .project-banner-img {
  border-radius: 0.75rem;
}

.public-project-detail .project-local-video {
  object-fit: cover;
  object-position: center;
}

.public-project-detail .project-banner-seal {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(86px, 7vw, 128px);
  height: auto;
  z-index: 2;
  pointer-events: none;
  transform: translate(16%, -16%);
  transform-origin: top right;
  filter: none;
}

.public-project-detail .project-title {
  font-family: var(--app-font-family, "Inter");
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.2;
  font-weight: 600;
}

/* Desktop: o periodo fica ao lado do titulo e o titulo nunca quebra em duas
   linhas (reticencias como rede de seguranca em larguras muito estreitas). */
@media (min-width: 769px) {
  .public-project-detail .project-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.public-project-detail .project-title-mobile {
  display: none;
}

.public-project-detail .project-date {
  font-size: 16px;
}

.public-project-detail .project-kpi-card {
  padding: 18px 20px;
}

.public-project-detail .project-kpi-label {
  font-size: 13px;
}

.public-project-detail .project-kpi-value {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
}

@media (max-width: 768px) {
  .platform-container,
  .visitor-project-container {
    padding-left: var(--app-shell-pad-mobile, 16px);
    padding-right: var(--app-shell-pad-mobile, 16px);
  }

  .public-project-detail .project-banner-wrap,
  .company-banner-wrap {
    padding: 0;
  }

  .public-project-detail .project-banner-picture,
  .public-project-detail .project-banner-img {
    border-radius: 14px;
  }

  .public-project-detail .project-banner-seal {
    display: block;
    top: 0;
    right: 0;
    width: clamp(58px, 17vw, 74px);
    z-index: 3;
    transform: translate(16%, -16%);
    transform-origin: top right;
    filter: none;
  }

  .company-profile-topbar {
    gap: 8px;
  }

  .company-profile-topbar .btn-voltar {
    min-height: 42px;
    padding: 8px 12px 8px 10px;
    font-size: 12px;
  }

  .company-profile-actions {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }

  .company-profile-actions .resident-access-trigger {
    min-width: 72px;
    padding: 0 13px;
    font-size: 12px;
  }

  .company-profile-actions .company-profile-register {
    min-width: 166px;
  }

  .public-project-detail .project-detail-topbar {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 6px;
  }

  .public-project-detail .project-detail-actions {
    display: contents !important;
  }

  .public-project-detail .project-detail-actions .resident-access {
    width: 100%;
  }

  .public-project-detail .project-detail-topbar .btn-voltar,
  .public-project-detail .project-detail-actions .project-detail-action,
  .public-project-detail .project-detail-actions .resident-access-trigger {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    height: 34px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: clamp(9.5px, 2.75vw, 11px);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  .public-project-detail .project-detail-topbar .btn-voltar {
    gap: 3px;
  }

  .public-project-detail .project-detail-topbar .btn-voltar svg {
    width: 12px;
    height: 12px;
  }

  .public-project-detail .project-summary-block {
    margin-top: 14px;
    padding: 16px 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 47, 74, 0.07);
    text-align: center;
  }

  .public-project-detail .project-summary-heading {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .public-project-detail .project-title {
    max-width: 22rem;
    margin: 0 auto;
    font-size: clamp(20px, 5.55vw, 23px);
    line-height: 1.12;
    font-weight: 700;
    text-align: center;
  }

  .public-project-detail .project-title-desktop {
    display: none;
  }

  .public-project-detail .project-title-mobile {
    display: block;
  }

  .public-project-detail .project-date {
    width: 100%;
    margin: 0 auto;
    font-size: 11.5px;
    line-height: 1.35;
    text-align: center;
    color: #64748b;
  }

  .public-project-detail .project-kpi-grid {
    width: min(100%, 320px);
    margin: 16px auto 0;
    gap: 12px;
  }

  .public-project-detail .project-kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 94px;
    padding: 20px 18px 17px;
    border-color: #dbeafe;
    border-radius: 14px;
    background:
      linear-gradient(135deg, rgba(14, 124, 180, 0.08) 0%, rgba(255, 255, 255, 0) 58%),
      #f8fbff;
    box-shadow: 0 8px 18px rgba(15, 47, 74, 0.06);
    text-align: center;
  }

  .public-project-detail .project-kpi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 64px;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: #1178a7;
    transform: translateX(-50%);
  }

  .public-project-detail .project-kpi-card:nth-child(2)::before {
    background: #22c55e;
  }

  .public-project-detail .project-kpi-card:nth-child(3)::before {
    background: #38bdf8;
  }

  .public-project-detail .project-kpi-label {
    font-size: 12px;
    line-height: 1.3;
    color: #64748b;
  }

  .public-project-detail .project-kpi-value {
    margin-top: 7px;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
  }

  .public-project-detail .project-about-card {
    text-align: center;
  }

  .public-project-detail .project-about-card h2 {
    text-align: center;
  }

  .public-project-detail .project-about-card p {
    text-align: justify;
    hyphens: auto;
  }

  .public-project-detail .project-card-title {
    font-size: 1.5rem;
    line-height: 2rem;
    text-align: center;
  }

  .public-project-detail .project-local-video {
    aspect-ratio: 16 / 9;
    height: auto !important;
    object-fit: cover;
  }

  /* Banner "hero" no mobile: maior, ocupando a largura, com texto sobreposto. */
  .company-hero .company-banner-img {
    height: clamp(210px, 60vw, 280px);
    object-fit: cover;
    /* Banner atual e' muito largo (logo no canto esquerdo); ancora a esquerda p/ nao cortar o logo.
       Com um banner dedicado p/ mobile (1080x1080) pode-se voltar para "center". */
    object-position: left center;
  }

  .company-hero .biroska-mobile-banner-picture .company-banner-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
  }

  .company-hero--biroska-mobile {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
    background: transparent;
    border: 1px solid rgba(15, 47, 74, 0.14) !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .company-hero .biroska-mobile-banner-picture {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 0 !important;
    border-radius: 16px;
    box-shadow: none !important;
    font-size: 0;
  }

  .company-banner-seal {
    display: block;
    top: 0;
    right: 0;
    width: 76px;
    z-index: 20;
    transform: translate(16%, -16%);
    transform-origin: top right;
    filter: none;
  }

  .company-hero__overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 66px 18px 8px;
    background: linear-gradient(180deg, rgba(7, 32, 52, 0) 0%, rgba(7, 32, 52, 0.78) 100%);
  }

  .company-hero__title {
    margin: 18px 0 0;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.12;
    font-size: clamp(21px, 6.2vw, 28px);
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  }

  .company-hero__eyebrow {
    display: block;
    color: #ffffff;
    font-size: clamp(23px, 6.8vw, 30px);
    letter-spacing: -0.02em;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  }

  .company-hero__caption {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
  }

  .company-hero__period {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
  }

  .company-hero__period svg {
    width: 15px;
    height: 15px;
    flex: none;
  }

  .company-hero--biroska-mobile .company-hero__overlay {
    bottom: 56px;
    padding: 42px 16px 10px;
    z-index: 5;
    gap: 5px;
    background: transparent !important;
  }

  .company-hero--biroska-mobile .company-hero__title {
    margin-top: 0;
    font-size: clamp(18px, 5.6vw, 24px);
  }

  .company-hero--biroska-mobile .company-hero__eyebrow {
    width: 100%;
    white-space: nowrap;
    font-size: clamp(18px, 5.6vw, 24px);
  }

  /* Quando o hero existe, o titulo/periodo repetido abaixo do banner some no mobile. */
  .company-profile-page--has-banner .company-profile-title-row {
    display: none;
  }

  .company-profile-title-row,
  .company-profile-title-block {
    width: 100%;
    justify-content: center !important;
    text-align: center;
  }

  .company-profile-title,
  .company-profile-period {
    width: 100%;
    text-align: center;
  }

  .company-profile-summary .grid > article {
    text-align: center;
  }

  .company-profile-page .company-section-title {
    text-align: center;
  }
}

@media (max-width: 380px) {
  .company-profile-topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .company-profile-actions {
    width: 100%;
    justify-content: center;
  }
}

/* Uma linha so (celular padrao): dissolve o grupo de acoes para que os tres botoes
   fiquem com o mesmo espacamento entre si via space-between. */
@media (min-width: 381px) and (max-width: 768px) {
  .company-profile-topbar .company-profile-actions {
    display: contents;
  }
}

.visitor-video-frame {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.visitor-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

.visitor-video-placeholder {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #64748b;
  background: #fff;
}
.segment-hero {
  background:
    radial-gradient(circle at top right, rgba(14, 124, 180, 0.12), transparent 34%),
    linear-gradient(135deg, #f8fbfd 0%, #ffffff 58%, #eef6fb 100%);
}

.segment-eyebrow,
.segment-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 124, 180, 0.1);
  color: #0e7cb4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segment-title {
  font-family: var(--app-font-family, "Inter");
  font-size: clamp(32px, 3vw, 52px);
  line-height: 1.04;
  font-weight: 600;
  color: #0f172a;
}

.segment-subtitle {
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.75;
  color: #475569;
}

.segment-hero-media {
  overflow: hidden;
  border: 1px solid #dbe3ea;
  border-radius: 24px;
  background: #dfe7ee;
}

.segment-hero-image,
.segment-project-image {
  display: block;
  width: 100%;
}

.segment-hero-image {
  height: auto;
}

.segment-project-image {
  aspect-ratio: 16 / 9;
  min-height: 220px;
  object-fit: cover;
}

.segment-project-summary {
  min-height: 84px;
}

.segment-impact-card {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.segment-impact-card .segment-section-label,
.segment-impact-card h3,
.segment-impact-card p {
  color: #f8fafc;
}

.segment-impact-card .segment-section-label {
  background: rgba(255, 255, 255, 0.12);
}

.segment-impact-value {
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1;
  font-weight: 700;
}

.segment-impact-bar {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.segment-impact-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #59c3ff 0%, #8cf1c4 100%);
}

.segment-step-card {
  position: relative;
  overflow: hidden;
}

.segment-step-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, #0e7cb4 0%, #60a5fa 100%);
}

.segment-step-number,
.segment-chip {
  display: inline-flex;
  min-width: 46px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(14, 124, 180, 0.1);
  color: #0e7cb4;
  font-size: 14px;
  font-weight: 700;
}

.segment-final-cta {
  background:
    linear-gradient(135deg, rgba(14, 124, 180, 0.08) 0%, rgba(96, 165, 250, 0.08) 100%),
    #ffffff;
}

.segment-benefit-bands {
  display: grid;
  gap: 28px;
}

.segment-benefit-band {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(14, 124, 180, 0.05), transparent 28%),
    #ffffff;
}

.segment-benefit-band-head {
  max-width: 72ch;
}

.segment-benefit-band-head h3 {
  font-family: var(--app-font-family, "Inter");
  margin: 12px 0 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  font-weight: 600;
  color: #0f172a;
}

.segment-benefit-band-head p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: #475569;
}

.segment-benefit-band-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.segment-benefit-card {
  min-height: 182px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.segment-benefit-card h4 {
  font-family: var(--app-font-family, "Inter");
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
  color: #0f172a;
}

.segment-benefit-card p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

.segment-benefit-band-media {
  overflow: hidden;
  border: 1px solid #dbe3ea;
  border-radius: 22px;
  background: #dfe7ee;
}

.segment-benefit-band-media img {
  display: block;
  width: 100%;
  min-height: 260px;
  max-height: 360px;
  object-fit: cover;
}

.segment-project-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 124, 180, 0.1);
  color: #0e7cb4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.segment-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.segment-project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dbe3ea;
  background: #f8fbfd;
  color: #476072;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .segment-title {
    font-size: clamp(28px, 9vw, 40px);
  }

  .segment-subtitle {
    font-size: 15px;
    line-height: 1.65;
  }

  .segment-benefit-band-grid {
    grid-template-columns: 1fr;
  }

  .segment-benefit-band {
    padding: 18px;
  }

  .segment-benefit-band-media img {
    min-height: 220px;
  }
}

body.resident-access-open {
  overflow: hidden;
}

.resident-access {
  position: relative;
}

.resident-access-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #0e7cb4;
  border-radius: 14px;
  background: #0e7cb4;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.resident-access-trigger:hover {
  background: #0a5c87;
  transform: translateY(-1px);
}

.resident-access-modal[hidden] {
  display: none !important;
}

.resident-access-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.resident-access-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(5px);
}

.resident-access-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.resident-access-panel {
  position: relative;
  width: min(100%, 540px);
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(14, 124, 180, 0.14), transparent 32%),
    linear-gradient(145deg, #f8fbfd 0%, #ffffff 70%);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.28);
}

.resident-access-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

.resident-access-brand {
  max-width: 40ch;
}

.resident-access-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 124, 180, 0.1);
  color: #0e7cb4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resident-access-title {
  margin-top: 18px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
  font-weight: 700;
  color: #0f172a;
}

.resident-access-subtitle {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}

.resident-access-steps {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 22px;
}

.resident-access-step {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.resident-access-step.is-active {
  background: #dff3ff;
  color: #0e7cb4;
}

.resident-access-form {
  display: none;
  gap: 16px;
}

.resident-access-form.is-active {
  display: grid;
}

.resident-access-field {
  display: grid;
  gap: 8px;
}

.resident-access-field span {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.resident-access-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.resident-access-field input:focus {
  border-color: #0e7cb4;
  box-shadow: 0 0 0 4px rgba(14, 124, 180, 0.12);
}

.resident-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.resident-access-primary,
.resident-access-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
}

.resident-access-primary {
  border: 1px solid #0e7cb4;
  background: #0e7cb4;
  color: #ffffff;
}

.resident-access-primary:hover {
  background: #0a5c87;
}

.resident-access-secondary {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}

.resident-access-secondary:hover {
  background: #f8fafc;
}

@media (max-width: 640px) {
  .resident-access-dialog {
    padding: 16px;
  }

  .resident-access-panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .resident-access-steps {
    flex-direction: column;
  }

  .resident-access-actions {
    flex-direction: column;
  }
}

/* Comercio segment remix */
.commerce-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(460px, 62vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: start;
  padding: clamp(20px, 2.2vw, 34px);
  background: url('/images/Comércio/hero%20mercado.png') center/cover no-repeat;
}

.commerce-hero .segment-section-label {
  background: rgba(27, 106, 214, 0.12);
  color: #1d4ed8;
}

.commerce-hero__content {
  max-width: 620px;
  align-self: start;
  margin-top: 8px;
  z-index: 2;
}

.commerce-hero__content h1 {
  margin-top: 10px;
  font-family: var(--app-font-family, "Inter");
  font-size: clamp(38px, 5vw, 78px);
  line-height: 0.98;
  font-weight: 700;
  color: #0b2f6d;
}

.commerce-hero__subtitle {
  margin-top: 14px;
  font-size: clamp(24px, 2.1vw, 38px);
  line-height: 1.08;
  font-weight: 700;
  color: #2563eb;
}

.commerce-hero__description {
  margin-top: 16px;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.62;
  color: #0f172a;
  font-weight: 500;
}

.commerce-hero__actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.commerce-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.commerce-hero__btn--primary {
  background: linear-gradient(90deg, #0d3fb8 0%, #163fbf 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(13, 63, 184, 0.3);
}

.commerce-hero__btn--ghost {
  border: 1px solid #1d4ed8;
  color: #0f2f7f;
  background: rgba(255, 255, 255, 0.95);
}

.commerce-hero__impact {
  align-self: start;
  justify-self: end;
  width: min(100%, 420px);
  margin-top: 58px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(219, 234, 254, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  z-index: 2;
}

.commerce-hero__impact header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.commerce-hero__impact h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  color: #0f172a;
}

.commerce-hero__impact header span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.commerce-hero__metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.commerce-hero__metrics article {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
  text-align: center;
}

.commerce-hero__metrics small {
  display: block;
  width: 100%;
  font-size: 12px;
  line-height: 1.15;
  color: #475569;
  white-space: nowrap;
}

.commerce-hero__metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 36px;
  line-height: 1;
  color: #16a34a;
}

.commerce-hero__metrics article:last-child strong {
  color: #2563eb;
}

.commerce-hero__metrics em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  line-height: 1.15;
  color: #1e293b;
  white-space: nowrap;
}

.commerce-hero__feature {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  min-height: 92px;
  padding: 12px 14px 18px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fdf8 0%, #eefaf2 100%);
}

.commerce-hero__feature small {
  display: block;
  font-size: 12px;
  color: #475569;
}

.commerce-hero__feature strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
  color: #0f172a;
  font-weight: 700;
}

.commerce-hero__feature em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  color: #1e293b;
}

.commerce-hero__feature-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e 0%, #86efac 100%);
}

.commerce-hero__line {
  margin-top: 12px;
  height: 74px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(180deg, #f6fdf8 0%, #eefaf2 100%);
  position: relative;
  overflow: hidden;
}

.commerce-hero__line span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e 0%, #86efac 100%);
}

.commerce-hero__legend {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.commerce-hero__legend div {
  border-radius: 10px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  padding: 8px;
  text-align: center;
}

.commerce-hero__legend b {
  display: block;
  font-size: 12px;
  color: #0f172a;
}

.commerce-hero__legend small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
}

.commerce-overview-grid,
.commerce-wheel-grid {
  display: grid;
  gap: 18px;
}

.commerce-overview-intro h2,
.commerce-wheel h2,
.commerce-flow-head h2 {
  margin-top: 10px;
  font-family: var(--app-font-family, "Inter");
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  color: #0f172a;
}

.commerce-overview-intro p,
.commerce-wheel p,
.commerce-flow-head p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.commerce-link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 16px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #0e7cb4;
  font-size: 12px;
  font-weight: 700;
}

.commerce-overview-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: #ffffff;
}

.commerce-overview-card-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.commerce-pill-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.commerce-pill-grid article {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

.commerce-pill-grid h3 {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}

.commerce-pill-grid p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.commerce-wheel-panel {
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #0f172a 0%, #111f36 100%);
  padding: 16px;
}

.commerce-wheel-panel h3 {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: #f8fafc;
}

.commerce-wheel-panel p {
  margin-top: 10px;
  color: #cbd5e1;
}

.commerce-bars {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.commerce-bars span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee 0%, #4ade80 100%);
}

/* Painel "Destaque técnico" da página de comunidades */
/* Alinha as colunas da seção (esquerda x painel) na página de comunidades */
.commerce-wheel-grid--community > article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.commerce-wheel-grid--community > article > .segment-section-label {
  flex: none;
}

.commerce-wheel-grid--community > article > h2,
.commerce-wheel-grid--community > article > p,
.commerce-wheel-grid--community > article > .commerce-pill-grid {
  align-self: stretch;
}

.commerce-wheel-grid--community > article .commerce-pill-grid {
  margin-top: auto;
}

.commerce-wheel-panel--community {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 47, 74, 0.35);
  background:
    linear-gradient(165deg, rgba(8, 26, 45, 0.92) 0%, rgba(8, 26, 45, 0.74) 42%, rgba(8, 26, 45, 0.6) 100%),
    var(--panel-bg) center/cover no-repeat;
  padding: 22px;
}

.commerce-wheel-panel--community .commerce-wheel-panel__content {
  position: relative;
  z-index: 1;
}

.commerce-wheel-panel--community .segment-section-label {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.commerce-wheel-panel--community h3 {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(6, 28, 48, 0.5);
}

.commerce-wheel-panel--community p {
  color: #e8f1fb;
  max-width: 32ch;
  text-shadow: 0 1px 10px rgba(6, 28, 48, 0.45);
}

.commerce-wheel-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.commerce-wheel-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(9, 28, 47, 0.45);
  backdrop-filter: blur(4px);
  color: #f4f9ff;
  font-size: 14px;
  font-weight: 600;
}

.commerce-wheel-tags svg {
  width: 18px;
  height: 18px;
  color: #a8e85f;
}

.commerce-wheel-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 28, 47, 0.55);
  color: #f4f9ff;
}

.commerce-wheel-footer > svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: #a8e85f;
}

.commerce-wheel-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  flex-wrap: wrap;
}

.commerce-wheel-footer b {
  font-weight: 700;
}

.commerce-wheel-footer i {
  font-style: normal;
  color: #cfe0f0;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.commerce-flow-media {
  margin-top: 14px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
}

.commerce-flow-media img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.commerce-flow-top {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.commerce-flow-head p + p {
  margin-top: 8px;
  color: #334155;
}

.commerce-flow-steps {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.commerce-flow-steps article {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
}

.commerce-flow-steps span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #0e7cb4;
  font-size: 12px;
  font-weight: 700;
}

.commerce-flow-steps h3 {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}

.commerce-flow-steps p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

@media (min-width: 1024px) {
  .commerce-overview-grid {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: stretch;
  }

  .commerce-wheel-grid {
    grid-template-columns: 1.35fr 0.65fr;
    align-items: stretch;
  }

  /* Painel "Destaque técnico" com a mesma largura do card BANCLIMA (seção acima) */
  .commerce-wheel-grid--community {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .commerce-flow-top {
    grid-template-columns: 1fr 1.1fr;
  }

  .commerce-flow-media {
    margin-top: 0;
  }
}

/* Comunidades: a imagem do fluxo e uma infografia e deve aparecer inteira */
.commerce-flow--community .commerce-flow-media {
  background: #ffffff;
}

.commerce-flow--community .commerce-flow-media img {
  min-height: 0;
  height: auto;
  object-fit: contain;
}

/* Comunidades: reaproveita o layout do comercio com fundo proprio */
.commerce-hero--community {
  background:
    linear-gradient(100deg, rgba(6, 28, 48, 0.82) 0%, rgba(6, 28, 48, 0.66) 38%, rgba(6, 28, 48, 0.32) 64%, rgba(6, 28, 48, 0.12) 100%),
    url('/images/comunidades/hero%20comunidades.png') center/cover no-repeat;
}

.commerce-hero--community .segment-section-label {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.commerce-hero--community .commerce-hero__content h1 {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(6, 28, 48, 0.45);
}

.commerce-hero--community .commerce-hero__subtitle {
  color: #a8e85f;
  text-shadow: 0 2px 12px rgba(6, 28, 48, 0.4);
}

.commerce-hero--community .commerce-hero__description {
  color: #eef5fb;
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(6, 28, 48, 0.4);
}

.commerce-hero--community .commerce-hero__btn--primary {
  background: #a8e85f;
  color: #0d2f4a;
  box-shadow: 0 6px 18px rgba(6, 28, 48, 0.28);
}

.commerce-hero--community .commerce-hero__btn--primary:hover {
  background: #98de4d;
}

@media (max-width: 768px) {
  .commerce-hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 520px;
    background: url('/images/Comércio/hero%20mercado.png') center/cover no-repeat;
  }

  .commerce-hero--community {
    background:
      linear-gradient(180deg, rgba(6, 28, 48, 0.82) 0%, rgba(6, 28, 48, 0.6) 55%, rgba(6, 28, 48, 0.35) 100%),
      url('/images/comunidades/hero%20comunidades.png') center/cover no-repeat;
  }

  .commerce-hero__content h1 {
    font-size: clamp(34px, 9vw, 52px);
  }

  .commerce-hero__subtitle {
    font-size: clamp(22px, 6vw, 30px);
  }

  .commerce-hero__impact {
    width: 100%;
    justify-self: stretch;
    margin-top: 12px;
  }

  .commerce-hero__actions {
    display: grid;
    width: min(100%, 260px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .commerce-hero__btn {
    min-height: 44px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .commerce-hero__metrics {
    gap: 8px;
  }

  .commerce-hero__metrics article {
    min-height: 92px;
    padding: 9px 6px;
  }

  .commerce-hero__metrics small,
  .commerce-hero__metrics em {
    font-size: 9px;
  }

  .commerce-hero__metrics strong {
    font-size: 32px;
  }

  .commerce-hero__legend {
    grid-template-columns: 1fr;
  }

  .commerce-wheel-panel--community {
    padding: 18px 12px;
  }

  .commerce-wheel-panel--community .commerce-wheel-tags {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 220px);
    margin: 16px auto 0;
    gap: 6px;
  }

  .commerce-wheel-panel--community .commerce-wheel-tags span {
    width: 100%;
    min-width: 0;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 7px 3px;
    font-size: 10.5px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .commerce-wheel-panel--community .commerce-wheel-tags svg {
    width: 14px;
    height: 14px;
  }

  .commerce-pill-grid,
  .commerce-flow-steps {
    grid-template-columns: 1fr;
  }

  .segment-page--comercio .commerce-hero {
    justify-items: center;
    text-align: center;
  }

  .segment-page--comercio .commerce-hero__content {
    display: flex;
    width: 100%;
    max-width: 42rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .segment-page--comercio .commerce-hero__content h1,
  .segment-page--comercio .commerce-hero__subtitle,
  .segment-page--comercio .commerce-hero__description {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .segment-page--comercio .commerce-hero__actions {
    width: min(100%, 260px);
    justify-content: initial;
  }

  .segment-page--comercio .commerce-overview .transport-selector,
  .segment-page--comercio .transport-selector-copy,
  .segment-page--comercio .commerce-overview-intro,
  .segment-page--comercio .commerce-wheel-grid > article,
  .segment-page--comercio .commerce-wheel-panel,
  .segment-page--comercio .commerce-flow-head,
  .segment-page--comercio .segment-final-cta > div {
    text-align: center;
  }

  .segment-page--comercio .commerce-overview .transport-selector > .space-y-1,
  .segment-page--comercio .transport-selector-copy,
  .segment-page--comercio .commerce-overview-intro,
  .segment-page--comercio .commerce-wheel-grid > article,
  .segment-page--comercio .commerce-wheel-panel,
  .segment-page--comercio .commerce-flow-head,
  .segment-page--comercio .segment-final-cta > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .segment-page--comercio .transport-selector-choices,
  .segment-page--comercio .transport-selector-actions,
  .segment-page--comercio .segment-final-cta .flex {
    justify-content: center;
  }

  .segment-page--comercio .transport-selector-label {
    justify-content: center;
    text-align: center;
  }

  .segment-page--comercio .commerce-overview-intro p,
  .segment-page--comercio .commerce-wheel-grid > article > p,
  .segment-page--comercio .commerce-wheel-panel p,
  .segment-page--comercio .commerce-flow-head p,
  .segment-page--comercio .segment-final-cta p {
    margin-left: auto;
    margin-right: auto;
  }

  .segment-page--comercio .commerce-link-chip {
    align-self: center;
  }

  .segment-page--comercio .commerce-pill-grid,
  .segment-page--comercio .commerce-flow-steps {
    width: 100%;
  }

  .segment-page--comercio .commerce-bars {
    width: 100%;
  }
}

/* Modo embutido (iframe "Sobre o Projeto" dentro do dashboard do cliente):
   usa fundo branco integral para evitar quebra visual entre a tela do cliente
   e a pagina incorporada. Aplicado em html+body+main para preencher toda a
   area da iframe. */
html:has(.company-profile-page--embed),
.company-profile-page--embed,
.company-profile-page--embed main {
  background: transparent !important;
}

.company-profile-page--embed main {
  padding-top: 0;
}

/* Linha vermelha (cor do projeto/Biroska) sob cada titulo de secao. */
.company-profile-page--embed .company-section-title {
  position: relative;
  padding-bottom: 10px;
}

.company-profile-page--embed .company-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: #e11d2a;
}

/* Cards de metrica com icone circular no azul da plataforma. */
.company-profile-page--embed .kpi-card {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  border-top: 3px solid #e11d2a;
}

/* Referencia final: selo do banner igual ao dashboard.
   Mantem desktop e mobile separados para nao uma versao contaminar a outra. */
.company-hero.company-banner-wrap.company-banner-wrap--with-seal > .hero-banner-badge {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: clamp(120px, 12vw, 168px) !important;
  height: auto !important;
  z-index: 30 !important;
  pointer-events: none !important;
  transform: translate(16%, -16%) !important;
  transform-origin: top right !important;
  filter: none !important;
}

@media (min-width: 768px) {
  .company-hero.company-banner-wrap.company-banner-wrap--with-seal > .hero-banner-badge {
    top: 0 !important;
    right: 0 !important;
    width: clamp(120px, 12vw, 168px) !important;
    z-index: 30 !important;
  }
}

@media (max-width: 575.98px) {
  .company-hero.company-banner-wrap.company-banner-wrap--with-seal > .hero-banner-badge {
    display: block !important;
    top: 0 !important;
    right: 0 !important;
    width: 76px !important;
    z-index: 20 !important;
  }
}
.company-profile-page--embed.company-profile-page--hortifruti .company-section-title::after {
  background: #168a3a;
}

.company-profile-page--embed.company-profile-page--hortifruti .kpi-card {
  border-top-color: #168a3a;
}

.company-profile-page--embed .kpi-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 999px;
  background: rgba(17, 120, 167, 0.1);
  color: #1178a7;
}

.company-profile-page--embed .kpi-card-icon svg {
  width: 22px;
  height: 22px;
}

/* Kit visual das secoes do embed ( icones, pilulas e badges) seguindo a
   referencia: azul da plataforma, verde e laranja, com a linha vermelha. */
.emb-ic {
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.emb-ic--blue { background: #1178a7; color: #ffffff; }
.emb-ic--green { background: #10b981; color: #ffffff; }
.emb-ic--orange { background: #f97316; color: #ffffff; }
.emb-ic--soft { background: rgba(17, 120, 167, 0.1); color: #1178a7; }

.emb-pill {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #334155;
}
.emb-pill--blue { background: rgba(17, 120, 167, 0.06); }
.emb-pill--green { background: rgba(16, 185, 129, 0.08); }
.emb-pill--orange { background: rgba(249, 115, 22, 0.08); }

.emb-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(17, 120, 167, 0.15);
  color: #1178a7;
  font-size: 12px;
  font-weight: 700;
}
.emb-chk {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #10b981;
  color: #ffffff;
}
.emb-warn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #f97316;
}

/* Ajustes do embed no mobile: legenda dos indicadores centralizada (frase em
   cima, data embaixo), unidade dos cards em linha propria, e cabecalhos de
   secao centralizados (com a linha vermelha tambem centralizada). */
@media (max-width: 640px) {
  .company-profile-page--embed .ind-caption {
    text-align: center;
  }
  .company-profile-page--embed .ind-caption .ind-date {
    display: block;
  }
  .company-profile-page--embed .kpi-unit {
    display: block;
  }
  .company-profile-page--embed .sec-head {
    justify-content: center;
  }
  /* Todos os titulos centralizados, encolhendo ao proprio texto, com a linha
     vermelha ocupando toda a largura do titulo (em vez do tracinho curto). */
  .company-profile-page--embed .company-section-title {
    text-align: center;
  }
  .company-profile-page--embed article > .company-section-title {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  .company-profile-page--embed .company-section-title::after {
    left: 0;
    width: 100%;
    transform: none;
  }
  /* O texto do "Sobre o Projeto" fica justificado (centralizado ficou estranho). */
  .company-profile-page--embed .sobre-text {
    text-align: justify;
  }
}

/* O conteudo embutido deve acompanhar a largura do menu do dashboard: sem o
   recuo lateral do container, ele encosta nas bordas da iframe (= largura do menu). */
.company-profile-page--embed .platform-container {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* No embed o banner acompanha a largura dos cards (100% do container); o selo
   fica recolhido para dentro do banner para nao ser cortado pela iframe. */
.company-profile-page--embed .company-banner-wrap--with-seal {
  margin-top: 30px;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
}

.company-profile-page--embed .company-hero.company-banner-wrap.company-banner-wrap--with-seal > .hero-banner-badge,
.company-profile-page--embed .company-banner-wrap--with-seal > .hero-banner-badge,
.company-profile-page--embed .company-banner-wrap--with-seal > .company-banner-seal,
.company-profile-page--embed .msc-banner-seal {
  transform: translate(0, 0) !important;
}

.company-profile-page--embed .company-banner-seal {
  top: 0 !important;
  right: 0 !important;
  width: clamp(82px, 7vw, 118px);
  transform: translate(16%, -16%) !important;
  transform-origin: top right !important;
  filter: none !important;
}

@media (min-width: 769px) {
  .company-profile-page--embed .company-information-grid--biroska {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: start;
    column-gap: clamp(24px, 4vw, 72px);
    row-gap: 0;
  }

  .company-profile-page--embed .company-information-grid--biroska > div {
    min-width: 0;
    align-items: flex-start;
  }

  .company-profile-page--embed .company-information-grid--biroska > div > div {
    min-width: 0;
  }

  .company-profile-page--embed .company-information-grid--biroska p {
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (min-width: 769px) {
  .company-profile-page--embed .company-banner-wrap--with-seal,
  .company-profile-page--embed .company-banner-wrap {
    position: relative;
    border-radius: 16px !important;
    overflow: visible !important;
    isolation: isolate;
  }

  .company-profile-page--embed .company-banner-wrap--with-seal .company-hero,
  .company-profile-page--embed .company-banner-wrap--with-seal picture,
  .company-profile-page--embed .company-banner-wrap--with-seal .company-banner-img,
  .company-profile-page--embed .company-banner-wrap > picture,
  .company-profile-page--embed .company-banner-wrap .company-banner-img {
    border-radius: 16px !important;
  }

  .company-profile-page--embed .company-banner-wrap--with-seal .company-hero,
  .company-profile-page--embed .company-banner-wrap--with-seal picture,
  .company-profile-page--embed .company-banner-wrap > picture {
    display: block;
    overflow: hidden;
  }

  .company-profile-page--embed .company-banner-seal {
    top: 0 !important;
    right: 0 !important;
    width: clamp(120px, 12vw, 168px) !important;
    z-index: 20 !important;
  }
}

@media (max-width: 575.98px) {
  html:has(.company-profile-page--embed),
  .company-profile-page--embed {
    overflow-x: hidden;
  }

  .company-profile-page--embed .company-banner-wrap--with-seal {
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: visible !important;
  }

  .company-profile-page--embed .company-banner-seal {
    display: block !important;
    top: 0 !important;
    right: 0 !important;
    width: 76px !important;
  }

}

/* Componente unico para banner com selo: usado na pagina publica, Dashboard e Sobre o Projeto. */
.msc-banner-with-seal,
.project-banner-wrap--with-seal,
.company-banner-wrap--with-seal,
.hero-banner--with-seal {
  position: relative;
  width: 100%;
  overflow: visible !important;
  isolation: isolate;
  contain: initial !important;
  transform: none !important;
  filter: none !important;
}

.msc-banner-frame,
.project-banner-wrap--with-seal > .project-banner-picture,
.company-banner-wrap--with-seal > .company-banner-frame,
.company-banner-wrap--with-seal > picture,
.hero-banner--with-seal > .hero-image {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
}

.msc-banner-frame > picture,
.msc-banner-frame > picture > img,
.msc-banner-frame > img,
.project-banner-wrap--with-seal .project-banner-img,
.company-banner-wrap--with-seal .company-banner-img,
.hero-banner--with-seal .hero-banner-image {
  display: block;
  width: 100%;
}

.msc-banner-seal,
.project-banner-wrap--with-seal > .project-banner-seal,
.company-banner-wrap--with-seal > .company-banner-seal,
.company-banner-wrap--with-seal > .hero-banner-badge,
.hero-banner--with-seal > .hero-banner-badge,
.hero-banner--with-seal > .cacuia-hero-seal {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  transform: translate(16%, -16%) !important;
  transform-origin: top right !important;
  z-index: 30 !important;
  pointer-events: none !important;
  filter: none !important;
}

.company-profile-page--embed .company-banner-wrap--with-seal.msc-banner-with-seal {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
