/* Página inicial — blocos próprios */

/* Abertura */
.h-hero { background: var(--bege-2); padding: 64px 0 88px; border-bottom: 1px solid rgba(168,145,111,.25); }
.h-hero-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: 64px; align-items: center; }
.h-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; }
.h-hero h1 em { color: var(--verde-2); }
.h-facts { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid rgba(168,145,111,.45); }
.h-facts li { padding: 18px 18px 0 0; display: flex; flex-direction: column; gap: 2px; }
.h-facts li + li { padding-left: 18px; border-left: 1px solid rgba(168,145,111,.3); }
.h-facts strong { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--verde); line-height: 1.2; }
.h-facts span { font-size: .88rem; color: var(--suave); }

.h-tree { position: relative; margin: 0; aspect-ratio: 480 / 580; border-radius: 999px 999px 28px 28px; background: radial-gradient(120% 80% at 50% 20%, #0b5a4a, var(--verde) 60%, #03392e); overflow: hidden; box-shadow: var(--sombra-forte); }
.h-tree svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-tree svg g:nth-of-type(1) circle { animation: anel 9s ease-in-out infinite; transform-origin: 240px 235px; }
.h-tree svg g:nth-of-type(1) circle:nth-child(2) { animation-delay: -2.2s; }
.h-tree svg g:nth-of-type(1) circle:nth-child(3) { animation-delay: -4.4s; }
.h-tree svg g:nth-of-type(1) circle:nth-child(4) { animation-delay: -6.6s; }
@keyframes anel { 0%,100% { stroke-opacity: .06; } 50% { stroke-opacity: .2; } }
.tag-tree { position: absolute; background: rgba(241,232,223,.95); color: var(--verde); font-family: var(--serif); font-size: .98rem; padding: 7px 15px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.18); white-space: nowrap; transform: translate(-50%, -50%); }
.t1 { left: 26%; top: 24%; }
.t2 { left: 66%; top: 64%; }
.t3 { left: 70%; top: 12%; }
.t4 { left: 50%; top: 93%; }

/* Pilares */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--salvia); border-bottom: 1px solid var(--salvia); }
.pillar { padding: 40px 30px 44px; text-align: left; }
.pillar + .pillar { border-left: 1px solid var(--salvia); }
.pillar h3 { margin-top: 24px; font-size: 1.55rem; }
.pillar-sub { font-family: var(--serif); font-style: italic; color: var(--ouro); margin-top: 2px; }
.pillar p:last-child { margin-top: 14px; color: var(--suave); }

/* Você não precisa dar conta sozinho */
.h-alone { background: var(--verde) var(--ramos) right -80px center/560px no-repeat; color: #d4e2de; padding: 104px 0; }
.h-alone h2 { color: #fff; }
.h-alone .lead { color: #c4d6d1; }
.h-alone-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 64px; align-items: center; }
.h-topics { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.h-topics li { border: 1px solid rgba(241,232,223,.35); color: #f1e8df; border-radius: 999px; padding: 12px 22px; font-family: var(--serif); font-size: 1.12rem; background: rgba(255,255,255,.04); }

/* Infantil */
.h-kids { background: #fff; border-radius: 28px; padding: 44px; box-shadow: var(--sombra); position: relative; }
.h-kids .check-list { gap: 20px; font-size: 1.08rem; }
.h-kids .check-list li { padding-bottom: 20px; border-bottom: 1px solid var(--bege); }
.h-kids .check-list li:last-child { border: 0; padding-bottom: 0; }

/* Caminho */
.path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; position: relative; }
.path::before { content: ""; position: absolute; left: 12%; right: 12%; top: 32px; border-top: 1.5px dashed var(--areia); }
.path li { position: relative; text-align: center; padding: 0 6px; }
.path-dot { position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; background: var(--verde); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.5rem; box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--salvia); }
.path li:last-child .path-dot { background: var(--bege); color: var(--verde); }
.path h3 { font-size: 1.25rem; }
.path p { margin-top: 8px; color: var(--suave); }

/* Medicina + Psicologia */
.arch-wrap { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.arch { position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--verde) var(--ramos) center/130% no-repeat; box-shadow: var(--sombra-forte); }
.arch-emblem { position: absolute; left: 50%; top: 50%; width: 62%; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.arch-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.venn { position: absolute; right: -36px; bottom: 34px; display: flex; }
.venn span { width: 118px; height: 118px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1rem; color: var(--verde); background: rgba(255,255,255,.88); border: 1px solid var(--areia); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.venn span + span { margin-left: -30px; background: rgba(215,219,213,.9); }
.creds { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 32px 0 0; }
.creds div { border-left: 2px solid var(--ouro); padding-left: 16px; }
.creds dt { font-family: var(--serif); font-size: 1.2rem; color: var(--verde); }
.creds dd { margin: 2px 0 0; color: var(--suave); font-size: .95rem; }

/* Avaliações */
.carousel-nav { display: none; }
@media (max-width: 1320px) { .carousel-nav { display: flex; } }

/* Chamada final */
.h-cta { background: var(--verde) var(--ramos) center bottom/640px no-repeat; color: #d4e2de; padding: 112px 0 120px; }
.h-cta h2 { color: #fff; }
.h-cta .lead { color: #c4d6d1; }
.h-cta-emblem { width: 120px; height: 120px; margin: 0 auto 26px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(241,232,223,.4), 0 0 0 10px rgba(241,232,223,.06); }

@media (max-width: 1060px) {
  .pillars { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--salvia); }
  .path { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 48px; }
  .path::before { display: none; }
}
@media (max-width: 900px) {
  .h-hero { background: var(--bege-2); padding-bottom: 72px; }
  .h-hero-grid, .h-alone-grid { grid-template-columns: 1fr; gap: 48px; }
  .h-tree { max-width: 440px; width: 100%; justify-self: center; }
  .venn { right: -8px; }
}
@media (max-width: 640px) {
  .h-hero { padding-top: 36px; }
  .h-facts { grid-template-columns: 1fr; }
  .h-facts li, .h-facts li + li { padding: 14px 0; border-left: 0; border-bottom: 1px solid rgba(168,145,111,.25); flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { border-left: 0; padding: 32px 4px; }
  .pillar + .pillar { border-top: 1px solid var(--salvia); }
  .path { grid-template-columns: 1fr; text-align: left; }
  .path li { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; text-align: left; }
  .path-dot { grid-row: span 2; margin: 0; }
  .h-alone, .h-cta { padding: 80px 0; }
  .h-kids { padding: 30px; }
  .tag-tree { font-size: .86rem; padding: 6px 12px; }
  .t3 { left: 64%; top: 9%; } .t1 { left: 24%; }
  .venn span { width: 96px; height: 96px; font-size: .9rem; }
}

/* Ensino e palestras */
.talk-gallery { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.talk-gallery figure { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--sombra); background: var(--bege); }
.talk-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.tg-main { grid-row: span 2; border-radius: 999px 999px 20px 20px !important; }
@media (max-width: 640px) { .talk-gallery { gap: 10px; } }

/* Abertura com foto */
.h-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.h-photo { overflow: visible; }
.h-photo > svg, .h-photo > .h-photo-img { border-radius: 999px 999px 28px 28px; }
.h-photo > svg { overflow: hidden; }
.h-badge { position: absolute; left: -28px; bottom: 32px; display: flex; align-items: center; gap: 12px; background: #fff; padding: 12px 20px 12px 12px; border-radius: 999px; box-shadow: var(--sombra-forte); }
.h-badge img { width: 48px; height: 48px; border-radius: 50%; }
.h-badge span { display: flex; flex-direction: column; font-size: .85rem; color: var(--suave); line-height: 1.3; }
.h-badge strong { font-family: var(--serif); font-weight: 500; font-size: 1.08rem; color: var(--verde); }
@media (max-width: 900px) { .h-badge { left: 12px; bottom: 16px; } }
@media (max-width: 900px) { .h-photo { order: -1; max-width: 360px; aspect-ratio: 5 / 6; } .h-hero { padding-top: 28px; } }

/* Cartão infantil dentro da faixa verde */
.h-kids-card { display: block; margin-top: 28px; padding: 26px 28px; border-radius: 22px; background: var(--bege); color: var(--suave); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.h-kids-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.h-kids-card .k { display: block; font-family: var(--serif); font-style: italic; color: var(--ouro); }
.h-kids-card strong { display: block; margin-top: 4px; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--verde); }
.h-kids-card > span:not(.k) { display: block; margin-top: 8px; }
.h-kids-card em { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-style: normal; font-weight: 600; color: var(--verde); }

/* Pilares: tudo centralizado */
.pillar, .pillar + .pillar { text-align: center; padding-left: 26px; padding-right: 26px; }
.pillar .icon-circle { margin: 0 auto; }
.pillar p:last-child { text-align: center; -webkit-hyphens: manual; hyphens: manual; max-width: 30ch; margin-left: auto; margin-right: auto; }
