:root {
  --home-blue: #064aa3;
  --home-navy: #10265f;
  --home-bg: #f4f8fd;
  --home-muted: #607394;
  --home-safe-bottom: env(safe-area-inset-bottom, 0px);
}
* {
  box-sizing: border-box;
}
.home-body {
  margin: 0;
  min-height: 100vh;
  background: var(--home-bg);
  color: var(--home-navy);
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  padding-bottom: var(--home-safe-bottom);
}
.home-header {
  background: linear-gradient(135deg, #064aa3, #0b61c5);
  color: #fff;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 16px;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 8px 24px #064aa326;
}
.home-header__inner {
  max-width: 1100px;
  margin: auto;
  min-height: 58px;
  display: grid;
  grid-template-columns: 52px 1fr 48px;
  align-items: center;
  gap: 12px;
}
.home-header__menu-space {
  width: 52px;
}
.home-brand {
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.home-brand__name {
  font-size: clamp(1.25rem, 5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.home-brand__tag {
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-top: 2px;
}
.home-brand__mark {
  justify-self: end;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.home-main {
  max-width: 1100px;
  margin: auto;
  padding: 26px 18px 44px;
}
.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 270px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(110deg, #e3f0ff, #c9e3ff);
  box-shadow: 0 14px 32px #164c8d18;
}
.home-hero__copy {
  padding: 30px 26px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  margin: 0 0 9px;
  color: #2260ab;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.home-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}
.home-hero__lead {
  max-width: 430px;
  margin: 18px 0 0;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  line-height: 1.3;
  color: #355b91;
}
.home-hero__rule {
  display: block;
  width: 78px;
  height: 8px;
  border-radius: 99px;
  background: #1979e9;
  margin: 24px 0 15px;
}
.home-hero__foot {
  margin: 0;
  color: #2260ab;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  max-width: 300px;
  line-height: 1.5;
}
.home-hero__placeholder {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #86bce9, #2e79bd);
}
.home-hero__placeholder:before,
.home-hero__placeholder:after {
  content: "";
  position: absolute;
  border: 1px solid #ffffff70;
  border-radius: 50%;
}
.home-hero__placeholder:before {
  width: 280px;
  height: 280px;
  right: -80px;
  top: -30px;
}
.home-hero__placeholder:after {
  width: 180px;
  height: 180px;
  left: -60px;
  bottom: -50px;
}
.home-hero__placeholder-shape {
  width: 105px;
  height: 145px;
  border: 6px solid #ffffffaa;
  border-bottom: 0;
  border-radius: 50px 50px 0 0;
  position: relative;
}
.home-hero__placeholder-shape:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 18px;
  background: #ffffff80;
  bottom: -6px;
  left: -44px;
  border-radius: 50%;
}
.home-hero__placeholder-label {
  position: absolute;
  bottom: 20px;
  right: 22px;
  color: #fff8;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.home-section {
  margin-top: 34px;
}
.home-section__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 0 3px 15px;
}
.home-section h2 {
  margin: 0;
  color: var(--home-navy);
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  letter-spacing: -0.05em;
}
.home-section__heading--line {
  border-top: 2px solid #dce8f5;
  padding-top: 22px;
}
.home-primary-grid,
.home-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.home-card,
.home-secondary-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e4edf7;
  border-radius: 22px;
  padding: 22px;
  min-height: 142px;
  box-shadow: 0 9px 26px #2b5d9514;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.home-card:active,
.home-secondary-card:active {
  transform: scale(0.985);
}
.home-card__icon,
.home-secondary-card__icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
}
.home-card--blue .home-card__icon {
  background: #dbeaff;
  color: #1262c5;
}
.home-card--green .home-card__icon {
  background: #d9f4e9;
  color: #087a4c;
}
.home-card--gold .home-card__icon {
  background: #ffedbf;
  color: #d98200;
}
.home-card strong,
.home-secondary-card strong {
  display: block;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: -0.035em;
}
.home-card small,
.home-secondary-card small {
  display: block;
  color: var(--home-muted);
  font-size: 0.98rem;
  line-height: 1.35;
  margin-top: 7px;
}
.home-card__arrow {
  margin-left: auto;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #edf4fb;
  display: grid;
  place-items: center;
  font-size: 2rem;
  line-height: 1;
  color: var(--home-navy);
}
.home-card--wide {
  grid-column: 1/-1;
}
.home-card--wide .home-card__icon {
  flex-basis: 70px;
  width: 70px;
  height: 70px;
}
.home-secondary-card {
  min-height: 112px;
  padding: 18px;
}
.home-secondary-card__icon {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  background: #dbeaff;
  color: #1262c5;
  font-size: 1.6rem;
}
.home-secondary-card strong {
  font-size: 1.1rem;
}
.home-secondary-card small {
  font-size: 0.85rem;
}
@media (max-width: 650px) {
  .home-main {
    padding: 20px 14px 34px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .home-hero__copy {
    padding: 26px 22px 22px;
  }
  .home-hero__placeholder {
    min-height: 150px;
  }
  .home-primary-grid,
  .home-secondary-grid {
    gap: 12px;
  }
  .home-card {
    padding: 17px;
    gap: 11px;
    min-height: 145px;
    align-items: flex-start;
  }
  .home-card__icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 1.6rem;
  }
  .home-card__arrow {
    width: 34px;
    height: 34px;
    font-size: 1.7rem;
  }
  .home-card small {
    font-size: 0.88rem;
  }
  .home-card--wide {
    min-height: 112px;
    align-items: center;
  }
  .home-card--wide .home-card__icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }
  .home-secondary-card {
    gap: 9px;
    padding: 14px;
    align-items: flex-start;
  }
  .home-secondary-card__icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 1.3rem;
  }
  .home-secondary-card small {
    font-size: 0.76rem;
  }
}
@media (max-width: 390px) {
  .home-primary-grid,
  .home-secondary-grid {
    grid-template-columns: 1fr;
  }
  .home-card--wide {
    grid-column: auto;
  }
  .home-secondary-card {
    min-height: 90px;
  }
}

/* Refinamento de densidade dos cards — mantém a estrutura e os links existentes. */
.home-primary-grid {
  gap: 14px;
}
.home-card {
  min-height: 124px;
  padding: 16px 17px;
  gap: 12px;
  border-radius: 20px;
}
.home-card__icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  font-size: 1.55rem;
}
.home-card strong {
  font-size: clamp(1rem, 2.7vw, 1.28rem);
  line-height: 1.12;
}
.home-card small {
  font-size: 0.84rem;
  line-height: 1.25;
  margin-top: 5px;
}
.home-card__arrow {
  width: 34px;
  height: 34px;
  font-size: 1.7rem;
  flex-basis: 34px;
}
.home-card--wide {
  min-height: 124px;
  align-items: center;
}
.home-card--wide .home-card__icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}
.home-secondary-grid {
  gap: 12px;
}
.home-secondary-card {
  min-height: 88px;
  padding: 14px 15px;
  gap: 10px;
  border-radius: 18px;
}
.home-secondary-card__icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  font-size: 1.25rem;
}
.home-secondary-card strong {
  font-size: 1rem;
  line-height: 1.1;
}
.home-secondary-card small {
  font-size: 0.77rem;
  line-height: 1.22;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

@media (max-width: 650px) {
  .home-card {
    padding: 15px 14px;
    gap: 10px;
  }
  .home-card small {
    font-size: 0.8rem;
  }
  .home-card__arrow {
    margin-left: auto;
  }
  .home-card--wide {
    min-height: 106px;
  }
  .home-secondary-card {
    min-height: 82px;
    padding: 12px 13px;
  }
}

/* Estrutura visual da Home: o menu global permanece funcional, mas o botão
   fica reservado visualmente dentro da faixa do cabeçalho e não sobre o Hero. */
.home-header {
  position: relative;
  display: block;
  z-index: 20;
  isolation: isolate;
}
.home-header__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 52px;
  padding-left: 52px;
  white-space: nowrap;
}
.home-main {
  position: relative;
  z-index: 1;
  margin-top: 16px;
}
.home-body .appm__btn {
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: calc(env(safe-area-inset-left, 0px) + 8px);
  width: 42px;
  height: 42px;
}
@media (max-width: 650px) {
  .home-header__inner {
    padding-left: 52px;
    gap: 8px;
  }
  .home-main {
    margin-top: 14px;
  }
  .home-brand__name {
    font-size: clamp(1rem, 4.7vw, 1.3rem);
  }
  .home-brand__wordmark {
    font-size: clamp(0.5rem, 1.9vw, 0.68rem);
  }
}

/* Últimas regras para garantir o recorte lado a lado também no mobile. */
.home-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  min-height: 270px;
}
.home-hero__media {
  min-height: 270px;
}
.home-hero__image {
  min-height: 270px;
  object-fit: cover;
  object-position: 58% center;
  border-radius: 0 24px 24px 0;
}
.home-hero__datetime {
  margin: 0 0 10px;
  color: #3d6090;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  white-space: nowrap;
}
.home-hero__foot {
  margin: 12px 0 0;
  color: #52719a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.35;
}
.home-hero__lead {
  font-style: italic;
  line-height: 1.35;
}
.home-hero__lead::first-letter {
  font-size: 1.08em;
}
.home-hero__copy::before {
  content: "“";
  position: absolute;
  top: 24px;
  left: 16px;
  color: #2169b51a;
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  pointer-events: none;
}
.home-hero__copy > * {
  position: relative;
}
.home-hero__lead {
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    min-height: 210px;
  }
  .home-hero__media {
    min-height: 210px;
  }
  .home-hero__image {
    min-height: 210px;
    object-position: 58% center;
    border-radius: 0 24px 24px 0;
  }
}

/* Identidade tipográfica técnica do cabeçalho. */
.home-brand__name {
  font-family: "Rajdhani", "Arial Narrow", "Segoe UI", sans-serif;
  font-size: clamp(1.18rem, 4.9vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
}
.home-brand__wordmark {
  font-family: "Rajdhani", "Arial Narrow", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
@media (max-width: 650px) {
  .home-brand__name {
    font-size: clamp(1.08rem, 4.8vw, 1.34rem);
  }
  .home-brand__wordmark {
    font-size: clamp(0.52rem, 1.9vw, 0.68rem);
  }
}

/* Cabeçalho da Home separado do Hero; o menu continua sendo o componente global. */
.home-header {
  position: relative;
  display: block;
  z-index: 20;
  isolation: isolate;
}
.home-header__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 52px;
  padding-left: 52px;
  white-space: nowrap;
}
.home-main {
  position: relative;
  z-index: 1;
  margin-top: 16px;
}
.home-body .appm__btn {
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: calc(env(safe-area-inset-left, 0px) + 8px);
  width: 42px;
  height: 42px;
}
@media (max-width: 650px) {
  .home-header__inner {
    padding-left: 52px;
    gap: 8px;
  }
  .home-main {
    margin-top: 14px;
  }
  .home-brand__name {
    font-size: clamp(1rem, 4.7vw, 1.3rem);
  }
  .home-brand__wordmark {
    font-size: clamp(0.5rem, 1.9vw, 0.68rem);
  }
}

/* O Hero permanece em duas colunas no mobile para manter a composição da referência. */
.home-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  min-height: 270px;
}
.home-hero__media {
  min-width: 0;
  min-height: 270px;
}
.home-hero__image {
  min-height: 270px;
  object-position: 58% center;
}
@media (max-width: 650px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    min-height: 210px;
  }
  .home-hero__copy {
    padding: 20px 14px 18px;
  }
  .home-hero__lead {
    font-size: 1rem;
    line-height: 1.2;
    margin-top: 12px;
  }
  .home-hero__rule {
    width: 52px;
    height: 5px;
    margin: 16px 0 11px;
  }
  .home-hero__foot {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
  .home-hero__media {
    min-height: 210px;
  }
  .home-hero__image {
    min-height: 210px;
    border-radius: 0 24px 24px 0;
    object-position: 58% center;
  }
  .home-brand__name {
    font-size: clamp(1.05rem, 4.8vw, 1.35rem);
  }
  .home-brand__wordmark {
    font-size: clamp(0.48rem, 1.8vw, 0.68rem);
    letter-spacing: 0.04em;
  }
}

@media (min-width: 391px) and (max-width: 650px) {
  .home-card small {
    white-space: normal;
  }
}

@media (max-width: 390px) {
  .home-card {
    min-height: 116px;
  }
  .home-card--wide {
    min-height: 102px;
  }
  .home-card small {
    font-size: 0.78rem;
  }
  .home-secondary-card {
    min-height: 78px;
  }
}

/* Regra final do Hero: prevalece sobre os estilos legados acima. */
.home-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  min-height: 270px;
}
.home-hero__media {
  min-height: 270px;
}
.home-hero__image {
  min-height: 270px;
  object-fit: cover;
  object-position: 58% center;
  border-radius: 0 24px 24px 0;
}
@media (max-width: 650px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    min-height: 210px;
  }
  .home-hero__copy {
    padding: 20px 14px 18px;
  }
  .home-hero__media {
    min-height: 210px;
  }
  .home-hero__image {
    min-height: 210px;
    object-position: 58% center;
    border-radius: 0 24px 24px 0;
  }
  .home-hero__lead {
    font-size: 1rem;
    line-height: 1.2;
    margin-top: 12px;
  }
  .home-hero__rule {
    width: 52px;
    height: 5px;
    margin: 16px 0 11px;
  }
  .home-hero__foot {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
  .home-brand__name {
    font-size: clamp(1.05rem, 4.8vw, 1.35rem);
  }
  .home-brand__wordmark {
    font-size: clamp(0.48rem, 1.8vw, 0.68rem);
    letter-spacing: 0.04em;
  }
}

/* Header alinhado à referência e mídia real do Hero. */
.home-header__inner {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  min-height: 52px;
}
.home-brand {
  flex-direction: row;
  align-items: center;
}
.home-brand__tag,
.home-brand__mark {
  display: none;
}
.home-brand__wordmark {
  justify-self: end;
  color: #fff;
  font-size: clamp(0.58rem, 2.2vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.home-brand__wordmark b {
  font-size: 1.25em;
  margin: 0 0.1em;
}
.home-hero__media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #8abce8;
}
.home-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
  border-radius: 0 24px 24px 0;
}
@media (max-width: 650px) {
  .home-header {
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-bottom: 10px;
  }
  .home-hero__media {
    min-height: 150px;
  }
  .home-hero__image {
    min-height: 150px;
    border-radius: 0 0 24px 24px;
  }
}

/* Últimas regras para garantir o recorte lado a lado também no mobile. */
.home-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  min-height: 270px;
}
.home-hero__media {
  min-height: 270px;
}
.home-hero__image {
  min-height: 270px;
  object-fit: cover;
  object-position: 58% center;
  border-radius: 0 24px 24px 0;
}
@media (max-width: 650px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    min-height: 210px;
  }
  .home-hero__media {
    min-height: 210px;
  }
  .home-hero__image {
    min-height: 210px;
    object-position: 58% center;
    border-radius: 0 24px 24px 0;
  }
}
