/**
 * Home — redesign institucional (escopo: .page-home)
 * Tipografia: Plus Jakarta Sans (títulos) + DM Sans (corpo)
 */
/*
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Plus+Jakarta+Sans:ital,wght@0,600;0,700;0,800;1,600&display=swap');
*/
.page-home {
  --home-navy: #001a3d;
  --home-navy-mid: #0a2744;
  --home-navy-soft: #0d3054;
  --home-green: #34c67e;
  --home-green-dark: #2aab6b;
  --home-green-glow: rgba(52, 198, 126, 0.35);
  --home-ice: #e9eef5;
  --home-mist: #f4f6fa;
  --home-text: #1c2430;
  --home-muted: #5c6778;
  --home-font: 'DM Sans', system-ui, sans-serif;
  --home-display: 'Plus Jakarta Sans', var(--home-font);
  --home-radius: 16px;
  --home-radius-sm: 10px;
  --home-shadow: 0 20px 50px rgba(0, 26, 61, 0.12);
  --home-shadow-soft: 0 12px 40px rgba(0, 26, 61, 0.08);
  --home-topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1' d='M0 50c28-10 52 10 80 0s52-10 80 0M0 110c28 10 52-10 80 0s52 10 80 0M30 0c-10 28 10 52 0 80s-10 52 0 80M80 0c10 28-10 52 0 80s10 52 0 80'/%3E%3C/svg%3E");
  font-family: var(--home-font);
  color: var(--home-text);
  background: var(--home-mist);
}

.page-home .home-main {
  overflow-x: hidden;
}


/* —— Hero —— */
.page-home .home-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  color: #fff;
  isolation: isolate;
}

.home-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--home-navy);
  background-image:
    var(--home-topo),
    radial-gradient(ellipse 120% 80% at 15% 20%, rgba(52, 198, 126, 0.2) 0%, transparent 52%),
    radial-gradient(ellipse 80% 60% at 88% 72%, rgba(120, 175, 255, 0.14) 0%, transparent 48%),
    linear-gradient(165deg, var(--home-navy) 0%, var(--home-navy-mid) 44%, #042a4a 100%);
}

.home-hero__noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  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)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.home-hero__wrap {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.home-hero__content {
  padding-right: 0.5rem;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.25rem;
}

.home-hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home-green);
  box-shadow: 0 0 14px var(--home-green);
}

.home-hero__title {
  font-family: var(--home-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.home-hero__title-line {
  display: block;
  margin-top: 0.2em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(90deg, #fff 0%, rgba(200, 230, 255, 0.95) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.home-hero__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.home-hero__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem;
}

.home-hero__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  background: rgba(52, 198, 126, 0.2);
  border: 1px solid rgba(52, 198, 126, 0.55);
  position: relative;
}

.home-hero__check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid var(--home-green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--home-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.home-btn--primary {
  background: var(--home-green);
  color: #fff !important;
  box-shadow: 0 8px 28px var(--home-green-glow);
}

.home-btn--primary:hover {
  background: var(--home-green-dark);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(52, 198, 126, 0.45);
}

.home-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.28);
}

.home-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff !important;
}

.home-btn--outline {
  background: transparent;
  color: var(--home-navy) !important;
  border-color: rgba(0, 26, 61, 0.2);
}

.home-btn--outline:hover {
  border-color: var(--home-green);
  color: var(--home-navy) !important;
  background: rgba(52, 198, 126, 0.08);
}

.home-btn--lg {
  padding: 1rem 2rem;
  font-size: 0.875rem;
}

.home-hero__visual {
  position: relative;
}

.home-hero__frame {
  position: relative;
  border-radius: var(--home-radius);
  overflow: hidden;
  box-shadow: var(--home-shadow);
}

.home-hero__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 26, 61, 0.15) 0%, transparent 45%, rgba(52, 198, 126, 0.12) 100%);
  z-index: 1;
  pointer-events: none;
}

.home-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: transparent;
  transform: none;
  padding: 2rem;
}

.home-hero__card {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 26, 61, 0.15);
  max-width: 220px;
}

.home-hero__card-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-green-dark);
  margin-bottom: 0.25rem;
}

.home-hero__card-title {
  font-family: var(--home-display);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--home-navy);
  line-height: 1.25;
}

/* —— Sobre —— */
.home-about {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
  background: #fff;
}

.home-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  max-width: 1180px;
}

.home-section-label {
  font-family: var(--home-display);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--home-green-dark);
  margin: 0 0 1rem;
}

.home-section-label--center {
  text-align: center;
}

.home-section-label--light {
  color: rgba(255, 255, 255, 0.85);
}

.home-about__figure {
  position: relative;
  border-radius: var(--home-radius);
  overflow: hidden;
  box-shadow: var(--home-shadow-soft);
}

.home-about__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.home-about__badge {
  position: absolute;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 26, 61, 0.12);
  max-width: 160px;
}

.home-about__badge strong {
  display: block;
  font-family: var(--home-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--home-navy);
  line-height: 1;
}

.home-about__badge span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--home-muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

.home-about__badge--tl {
  top: 1.25rem;
  left: 1.25rem;
  border-left: 3px solid var(--home-green);
}

.home-about__badge--br {
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--home-navy);
  color: #fff;
  border-left: 3px solid var(--home-green);
  max-width: 180px;
}

.home-about__badge--br strong {
  color: #fff;
}

.home-about__badge--br span {
  color: rgba(255, 255, 255, 0.75);
}

.home-about__heading {
  font-family: var(--home-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--home-navy);
  margin: 0 0 1.25rem;
}

.home-about__text {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--home-muted);
  margin: 0 0 1rem;
  max-width: 36rem;
}

/* —— Curso —— */
.home-course {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 420px;
}

.home-course__photo {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.home-course__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
  transform: scale(1.03);
}

.home-course__panel {
  position: relative;
  background: var(--home-navy);
  background-image: var(--home-topo), linear-gradient(160deg, var(--home-navy) 0%, var(--home-navy-soft) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4rem);
}

.home-course__inner {
  max-width: 440px;
}

.home-course__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--home-green);
  margin: 0 0 0.75rem;
}

.home-course__title {
  font-family: var(--home-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.home-course__text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.75rem;
}

.home-course .home-btn--primary {
  box-shadow: 0 8px 28px rgba(52, 198, 126, 0.35);
}

/* —— Stats —— */
.home-stats-wrap {
  position: relative;
  z-index: 3;
  margin-top: -3rem;
  margin-bottom: 0;
  padding: 0 1rem 3rem;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(0, 26, 61, 0.06);
}

.home-stat {
  padding: 1.75rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(0, 26, 61, 0.06);
  transition: background 0.2s;
}

.home-stat:last-child {
  border-right: none;
}

.home-stat:hover {
  background: var(--home-mist);
}

.home-stat__icon {
  display: flex;
  justify-content: center;
  color: var(--home-green-dark);
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.home-stat__num {
  display: block;
  font-family: var(--home-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--home-navy);
  letter-spacing: -0.02em;
}

.home-stat__txt {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--home-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* —— Blog —— */
.home-blog {
  padding: clamp(4rem, 9vw, 6rem) 0;
  background: linear-gradient(180deg, var(--home-ice) 0%, var(--home-mist) 100%);
}

.home-blog__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.home-blog__title {
  font-family: var(--home-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--home-navy);
  margin: 0 0 0.75rem;
}

.home-blog__sub {
  font-size: 1.05rem;
  color: var(--home-muted);
  line-height: 1.6;
  margin: 0;
}

.home-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

.home-post {
  height: 100%;
}

.home-post__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: var(--home-radius-sm);
  overflow: hidden;
  border: 1px solid rgba(0, 26, 61, 0.06);
  box-shadow: 0 4px 24px rgba(0, 26, 61, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
  color: inherit !important;
}

.home-post__link:hover {
  transform: translateY(-6px);
  box-shadow: var(--home-shadow-soft);
}

.home-post__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--home-ice);
}

.home-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.home-post__link:hover .home-post__media img {
  transform: scale(1.05);
}

.home-post__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dfe8f2 0%, #c8d7e8 100%);
}

.home-post__body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-post__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--home-green);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.home-post__title {
  font-family: var(--home-display);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--home-navy);
  margin: 0 0 0.5rem;
}

.home-post__excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--home-muted);
  margin: 0 0 1rem;
  flex: 1;
}

.home-post__more {
  font-family: var(--home-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-green-dark);
}

.home-post__link:hover .home-post__more {
  color: var(--home-navy);
}

.home-post--empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: var(--home-radius-sm);
  border: 1px dashed rgba(0, 26, 61, 0.15);
}

.home-post__empty {
  margin: 0;
  color: var(--home-muted);
  font-size: 1rem;
}

/* —— CTA —— */
.home-cta {
  padding: clamp(4rem, 10vw, 5.5rem) 0;
  background: #fff;
  border-top: 1px solid rgba(0, 26, 61, 0.06);
  text-align: center;
}

.home-cta__inner {
  max-width: 640px;
}

.home-cta__title {
  font-family: var(--home-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--home-navy);
  margin: 0 0 1rem;
}

.home-cta__text {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--home-muted);
  margin: 0 0 1.75rem;
}

/* —— Rodapé na home —— */
.page-home .site-footer {
  background-color: var(--home-navy);
  background-image: var(--home-topo), linear-gradient(180deg, var(--home-navy) 0%, #000f22 100%);
  padding-top: 4rem;
}

.page-home .site-footer__contact {
  border-radius: 14px;
  margin-top: -1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  padding: 1.75rem 1.5rem;
}

.page-home .site-footer__contact p a {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-home .site-footer h4 {
  font-family: var(--home-display);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.95;
}

.page-home .site-footer .social a {
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s, border-color 0.2s;
}

.page-home .site-footer .social a:hover {
  background: rgba(52, 198, 126, 0.2);
  border-color: var(--home-green);
}

.page-home .site-footer__sub {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1rem;
}

/* —— Responsivo —— */
@media (max-width: 991px) {
  .home-hero__wrap {
    grid-template-columns: 1fr;
  }

  .home-hero__visual {
    order: -1;
  }

  .home-hero__frame {
    max-width: 520px;
    margin: 0 auto;
  }

  .home-about__grid {
    grid-template-columns: 1fr;
  }

  .home-about__media {
    order: -1;
  }

  .home-course {
    grid-template-columns: 1fr;
  }

  .home-course__photo {
    min-height: 260px;
    max-height: 360px;
  }

  .home-stats-wrap {
    margin-top: -2rem;
  }

  .home-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-stat:nth-child(2) {
    border-right: none;
  }

  .home-stat {
    border-bottom: 1px solid rgba(0, 26, 61, 0.06);
  }

  .home-blog__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

@media (max-width: 575px) {
  .home-stats {
    grid-template-columns: 1fr;
  }

  .home-stat {
    border-right: none;
  }

  .page-home .site-logo {
    padding-left: 42px;
  }
}
