/*
Theme Name: Instituto Pequenos Gigantes
Theme URI: https://instituto-pequenos-gigantes.jander-master.chatgpt.site
Author: Janderson Martins - TECNET
Author URI: https://wa.me/5592991874771
Description: Tema institucional responsivo para o Instituto Pequenos Gigantes, com campos editáveis para identidade visual, apresentação do projeto, atendimentos, territórios, acolhimento e contato.
Version: 1.0.5
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pequenos-gigantes
*/

:root {
  --pg-primary: #123b70;
  --pg-deep: #0c2d58;
  --pg-secondary: #21a678;
  --pg-accent: #f2bd3c;
  --pg-ink: #173b5d;
  --pg-muted: #60798d;
  --pg-soft: #f3f8fb;
  --pg-white: #fff;
  --pg-radius: 28px;
  --pg-shadow: 0 18px 44px rgba(18, 59, 112, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--pg-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--pg-primary); }
button, input, textarea { font: inherit; }
.pg-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.pg-topline { padding: 8px 0; background: var(--pg-deep); color: #e7f5fb; font-size: .78rem; letter-spacing: .02em; }
.pg-topline .pg-wrap { display: flex; justify-content: space-between; gap: 20px; }
.pg-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid #e7eef3; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.pg-nav { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; }
.pg-brand { display: inline-flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.pg-brand img { display: block; width: 192px; max-height: 68px; object-fit: contain; }
.pg-nav .custom-logo-link { display: inline-flex; flex: 0 0 auto; align-items: center; }
.pg-nav .custom-logo-link img { display: block; width: 192px; max-height: 68px; object-fit: contain; }
.pg-brand-title { color: var(--pg-primary); font-size: 1.02rem; font-weight: 850; line-height: 1.15; }
.pg-brand-tagline { display: block; margin-top: 3px; color: var(--pg-muted); font-size: .7rem; font-weight: 600; }
.pg-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.pg-menu a { color: #4e667a; font-size: .88rem; font-weight: 750; text-decoration: none; transition: color .2s ease; }
.pg-menu a:hover { color: var(--pg-secondary); }
.pg-menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 13px; background: #eef6fa; color: var(--pg-primary); cursor: pointer; }
.pg-menu-toggle svg { width: 22px; height: 22px; }
.pg-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--pg-secondary); box-shadow: 0 9px 22px rgba(33,166,120,.22); color: #fff; font-weight: 800; text-align: center; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.pg-button:hover { transform: translateY(-2px); background: #178b63; box-shadow: 0 12px 26px rgba(33,166,120,.27); color: #fff; }
.pg-button-light { background: #fff; color: var(--pg-primary); box-shadow: none; }
.pg-button-light:hover { background: #eaf6fb; color: var(--pg-primary); box-shadow: none; }
.pg-hero { position: relative; overflow: hidden; padding: 82px 0 76px; background: linear-gradient(135deg, #f0f8fc 0%, #fff 53%, #f4fbf6 100%); }
.pg-hero::before, .pg-hero::after { position: absolute; z-index: 0; border-radius: 50%; content: ""; pointer-events: none; }
.pg-hero::before { top: -140px; right: -95px; width: 360px; height: 360px; background: rgba(33,166,120,.08); }
.pg-hero::after { bottom: -185px; left: -95px; width: 390px; height: 390px; background: var(--pg-accent); opacity: .13; }
.pg-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; }
.pg-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--pg-secondary); font-size: .77rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.pg-eyebrow::before { width: 9px; height: 9px; border-radius: 50%; background: var(--pg-accent); content: ""; }
.pg-hero h1 { max-width: 730px; margin: 15px 0 19px; color: var(--pg-primary); font-size: clamp(2.6rem, 5.2vw, 4.55rem); font-weight: 900; letter-spacing: -.06em; line-height: .99; }
.pg-hero h1 em { color: var(--pg-secondary); font-style: normal; }
.pg-lead { max-width: 650px; margin: 0; color: #526d82; font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.72; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pg-territory { margin-top: 23px; color: #698193; font-size: .87rem; font-weight: 750; }
.pg-logo-stage { position: relative; display: grid; min-height: 370px; place-items: center; padding: 30px; border: 1px solid #e0eef4; border-radius: 38px; background: rgba(255,255,255,.84); box-shadow: var(--pg-shadow); }
.pg-logo-stage img { width: min(100%, 370px); border-radius: 24px; }
.pg-sticker { position: absolute; right: -16px; bottom: 24px; max-width: 240px; padding: 13px 18px; border: 1px solid #f6df9b; border-radius: 18px; background: #fff8e3; color: #755b18; font-size: .83rem; font-weight: 800; box-shadow: 0 12px 26px rgba(117,91,24,.1); }
.pg-metrics { position: relative; z-index: 2; margin-top: -25px; }
.pg-metric-grid { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid #e3edf2; border-radius: 23px; background: #fff; box-shadow: 0 18px 46px rgba(16,57,90,.08); }
.pg-metric { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 23px 25px; }
.pg-metric + .pg-metric { border-left: 1px solid #edf2f5; }
.pg-metric-value { color: var(--pg-secondary); font-size: 2.1rem; font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.pg-metric-label { color: #5c7284; font-size: .85rem; font-weight: 750; line-height: 1.38; }
.pg-section { padding: 82px 0; }
.pg-section-soft { background: var(--pg-soft); }
.pg-section-head { max-width: 760px; margin-bottom: 34px; }
.pg-section-head-center { margin-right: auto; margin-left: auto; text-align: center; }
.pg-section-head-center .pg-eyebrow { justify-content: center; }
.pg-section h2 { margin: 11px 0 14px; color: var(--pg-primary); font-size: clamp(2rem, 3.7vw, 3.15rem); font-weight: 880; letter-spacing: -.05em; line-height: 1.05; }
.pg-section-head > p { margin: 0; color: #60798d; font-size: 1.05rem; line-height: 1.72; }
.pg-intro-grid, .pg-areas-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.pg-card { position: relative; overflow: hidden; padding: 29px; border: 1px solid #e0ebf0; border-radius: var(--pg-radius); background: #fff; box-shadow: 0 12px 34px rgba(16,57,90,.055); }
.pg-card h3 { position: relative; z-index: 1; margin: 0 0 11px; color: var(--pg-primary); font-size: 1.35rem; letter-spacing: -.035em; line-height: 1.15; }
.pg-card p { position: relative; z-index: 1; margin: 0; color: #60798d; font-size: 1rem; line-height: 1.65; }
.pg-card-mark { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 20px; border: 4px solid #fff; border-radius: 20px; background: #e0f4fc; color: var(--pg-primary); font-size: 1.3rem; font-weight: 900; box-shadow: 0 8px 19px rgba(18,59,112,.1); }
.pg-card:nth-child(2) .pg-card-mark { background: #dff4e7; color: #178b63; }
.pg-card:nth-child(3) .pg-card-mark { background: var(--pg-accent); color: #75550a; }
.pg-section-attendance .pg-card { min-height: 315px; background: #eff8fd; }
.pg-section-attendance .pg-card:nth-child(2) { background: #f0faf2; }
.pg-section-attendance .pg-card:nth-child(3) { background: #fff9e9; }
.pg-section-attendance .pg-card::after { position: absolute; top: -48px; right: -35px; width: 140px; height: 140px; border-radius: 50%; background: rgba(24,120,189,.08); content: ""; }
.pg-section-attendance .pg-card:nth-child(2)::after { background: rgba(57,167,121,.1); }
.pg-section-attendance .pg-card:nth-child(3)::after { background: rgba(244,189,55,.14); }
.pg-section-attendance .pg-specialty-card { min-height: 340px; padding-right: 148px; }
.pg-specialty-card p { max-width: 24ch; }
.pg-specialty-card .pg-badge { max-width: 100%; }
.pg-doctor-figure { position: absolute; right: 11px; bottom: 10px; display: flex; width: 130px; flex-direction: column; align-items: center; margin: 0; text-align: center; }
.pg-doctor-figure::before { position: absolute; right: 7px; bottom: 20px; width: 105px; height: 105px; border-radius: 50%; background: rgba(90,177,215,.15); content: ""; }
.pg-specialty-card:nth-child(2) .pg-doctor-figure::before { background: rgba(57,167,121,.16); }
.pg-specialty-card:nth-child(3) .pg-doctor-figure::before { background: rgba(244,189,55,.2); }
.pg-doctor-figure svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.pg-doctor-figure figcaption { position: relative; z-index: 2; margin-top: -7px; color: #365e78; font-size: .68rem; font-weight: 850; line-height: 1.2; }
.pg-doctor-skin { fill: #cf8c62; }
.pg-doctor-hair { fill: #283d54; }
.pg-doctor-coat { fill: #fff; stroke: #d8e8ee; stroke-width: 2; }
.pg-doctor-shirt { fill: #6fc3bd; }
.pg-specialty-card:nth-child(2) .pg-doctor-skin { fill: #a96343; }
.pg-specialty-card:nth-child(2) .pg-doctor-hair { fill: #302a27; }
.pg-specialty-card:nth-child(2) .pg-doctor-shirt { fill: #75bba0; }
.pg-specialty-card:nth-child(3) .pg-doctor-skin { fill: #d69b71; }
.pg-specialty-card:nth-child(3) .pg-doctor-hair { fill: #26384a; }
.pg-specialty-card:nth-child(3) .pg-doctor-shirt { fill: #f0c35a; }
.pg-badge { position: relative; z-index: 1; display: inline-flex; margin-top: 21px; padding: 8px 12px; border: 1px solid rgba(18,59,112,.08); border-radius: 999px; background: rgba(255,255,255,.8); color: #315d79; font-size: .83rem; font-weight: 800; }
.pg-area { padding: 27px; border: 1px solid #e1edf2; border-radius: 23px; background: #fff; }
.pg-area h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 15px; color: var(--pg-primary); font-size: 1.1rem; }
.pg-area h3 span { color: #7890a0; font-size: .76rem; }
.pg-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-pill { padding: 7px 11px; border: 1px solid #e3edf2; border-radius: 999px; background: #f8fbfc; color: #526b7d; font-size: .78rem; font-weight: 650; }
.pg-region-explorer { max-width: 930px; margin-left: auto; }
.pg-region-hint { margin: 0 0 13px; color: #6b8192; font-size: .86rem; font-weight: 700; }
.pg-region-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.pg-region-tab { display: flex; min-height: 96px; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px; border: 1px solid #dfeaf0; border-radius: 21px; background: #fff; color: var(--pg-primary); cursor: pointer; text-align: left; box-shadow: 0 9px 24px rgba(16,57,90,.04); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.pg-region-tab:hover { transform: translateY(-2px); border-color: #b8dced; box-shadow: 0 13px 28px rgba(18,59,112,.08); }
.pg-region-tab.is-active { border-color: var(--pg-secondary); background: #f1fbf6; box-shadow: 0 0 0 3px rgba(33,166,120,.11), 0 12px 28px rgba(18,59,112,.06); }
.pg-region-tab-copy { display: grid; gap: 3px; }
.pg-region-tab-copy strong { font-size: 1rem; font-weight: 850; }
.pg-region-tab-copy small { color: #748a9a; font-size: .76rem; font-weight: 750; }
.pg-region-tab-action { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; color: var(--pg-secondary); font-size: .72rem; font-weight: 850; }
.pg-region-tab-action span { font-size: 1rem; }
.pg-region-tab:nth-child(2).is-active { border-color: #29a982; background: #f0faf5; }
.pg-region-tab:nth-child(3).is-active { border-color: var(--pg-accent); background: #fffaf0; }
.pg-region-panels { margin-top: 17px; }
.pg-region-panel { padding: 23px 25px; border: 1px solid #dceaf0; border-radius: 23px; background: #fff; box-shadow: 0 12px 30px rgba(16,57,90,.05); animation: pg-panel-in .24s ease both; }
.pg-region-panel[hidden] { display: none !important; }
.pg-region-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.pg-region-panel-head .pg-eyebrow { font-size: .67rem; }
.pg-region-panel-head h3 { margin: 4px 0 0; color: var(--pg-primary); font-size: 1.25rem; }
.pg-region-total { padding: 7px 11px; border-radius: 999px; background: #edf7fb; color: var(--pg-primary); font-size: .76rem; font-weight: 850; white-space: nowrap; }
.pg-region-panel .pg-pill { transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.pg-region-panel .pg-pill:hover { transform: translateY(-2px); border-color: #b8dced; background: #eef8fc; }
@keyframes pg-panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.pg-house { display: grid; grid-template-columns: .85fr 1.15fr; gap: 42px; align-items: center; padding: 40px; border-radius: 32px; background: var(--pg-primary); color: #fff; }
.pg-house-stat { display: grid; min-height: 240px; place-items: center; padding: 28px; border: 1px solid rgba(255,255,255,.16); border-radius: 26px; background: rgba(255,255,255,.08); text-align: center; }
.pg-house-stat strong { display: block; color: #c9f2de; font-size: clamp(3rem, 6vw, 5rem); font-weight: 900; letter-spacing: -.07em; line-height: 1; }
.pg-house-stat span { display: block; max-width: 260px; margin-top: 12px; color: #d5e7f2; font-weight: 700; }
.pg-house .pg-eyebrow { color: #bfe6f4; }
.pg-house h2 { color: #fff; }
.pg-house p { color: #d0e2ee; }
.pg-house-amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pg-house-amenities span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; background: rgba(255,255,255,.07); color: #d9eaf2; font-size: .78rem; font-weight: 750; }
.pg-goal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.pg-goal { padding: 23px; border: 1px solid #e1edf2; border-radius: 21px; background: #fff; }
.pg-goal strong { display: block; margin-bottom: 5px; color: var(--pg-secondary); font-size: 2.5rem; font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.pg-goal span { color: #60798d; font-weight: 750; }
.pg-funding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pg-funding { padding: 25px; border: 1px solid #e1edf2; border-radius: 22px; background: #fff; }
.pg-funding h3 { margin: 0 0 8px; color: var(--pg-primary); font-size: 1.18rem; }
.pg-funding p { margin: 0; color: #60798d; }
.pg-note { margin: 19px 0 0; color: #7b8e9b; font-size: .82rem; }
.pg-closing { position: relative; overflow: hidden; padding: 74px 0; background: var(--pg-deep); color: #fff; text-align: center; }
.pg-closing h2 { max-width: 830px; margin: 13px auto 17px; color: #fff; font-size: clamp(2.1rem, 4vw, 3.35rem); letter-spacing: -.05em; line-height: 1.06; }
.pg-closing p { max-width: 730px; margin: 0 auto 24px; color: #c8dce9; font-size: 1.04rem; }
.pg-closing .pg-eyebrow { color: #bde7f6; justify-content: center; }
.pg-footer { padding: 29px 0; border-top: 1px solid rgba(255,255,255,.1); background: var(--pg-deep); color: #c8d9e6; }
.pg-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pg-footer-brand { display: inline-flex; padding: 6px; border-radius: 17px; background: #fff; }
.pg-footer-brand img { display: block; width: 170px; border-radius: 10px; }
.pg-footer-copy { display: grid; max-width: 620px; gap: 5px; text-align: right; }
.pg-footer-name { color: #fff; font-size: 1rem; font-weight: 850; }
.pg-footer-tagline { color: #bfe6f4; font-style: italic; }
.pg-signature { margin-top: 6px; color: #b5c8d6; font-size: .84rem; }
.pg-signature a { color: #fff; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(191,230,244,.6); text-underline-offset: 3px; }
.pg-signature a:hover { color: #bfe6f4; }
.pg-focus:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(24,120,189,.55); outline-offset: 3px; }
.pg-reveal { opacity: 0; transform: translateY(15px); transition: opacity .55s ease, transform .55s ease; }
.pg-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .pg-section-attendance .pg-card { transition: transform .25s ease, box-shadow .25s ease; }
  .pg-section-attendance .pg-card:hover { transform: translateY(-5px); box-shadow: 0 21px 42px rgba(18,59,112,.14); }
}
@media (max-width: 900px) {
  .pg-nav { min-height: 72px; }
  .pg-brand img { width: 160px; }
  .pg-nav .custom-logo-link img { width: 160px; }
  .pg-menu-toggle { display: inline-grid; place-items: center; }
  .pg-menu-wrap { position: absolute; top: calc(100% - 1px); right: 20px; left: 20px; display: none; padding: 18px; border: 1px solid #e7eef3; border-radius: 0 0 19px 19px; background: #fff; box-shadow: var(--pg-shadow); }
  .pg-menu-wrap.is-open { display: block; }
  .pg-menu { align-items: stretch; flex-direction: column; gap: 13px; }
  .pg-nav > .pg-button { display: none; }
  .pg-hero-grid { grid-template-columns: 1fr; gap: 37px; }
  .pg-logo-stage { min-height: 300px; }
  .pg-logo-stage img { width: min(75%, 320px); }
  .pg-intro-grid, .pg-areas-grid, .pg-goal-grid { grid-template-columns: 1fr; }
  .pg-region-explorer { margin-left: 0; }
  .pg-section-attendance .pg-card { min-height: 0; }
  .pg-section-attendance .pg-specialty-card { min-height: 335px; padding-right: 128px; }
  .pg-doctor-figure { right: 8px; width: 112px; }
  .pg-doctor-figure::before { right: 4px; bottom: 18px; width: 90px; height: 90px; }
  .pg-house { grid-template-columns: 1fr; padding: 25px; gap: 27px; }
}
@media (max-width: 620px) {
  .pg-wrap { width: min(100% - 30px, 1160px); }
  .pg-topline { font-size: .68rem; }
  .pg-topline .pg-wrap { flex-direction: column; gap: 1px; }
  .pg-hero { padding: 58px 0 54px; }
  .pg-hero h1 { font-size: clamp(2.45rem, 11vw, 3.7rem); }
  .pg-lead { font-size: 1rem; }
  .pg-logo-stage { min-height: 250px; padding: 19px; border-radius: 27px; }
  .pg-logo-stage img { width: min(88%, 290px); }
  .pg-sticker { right: 9px; bottom: 10px; max-width: 200px; font-size: .74rem; }
  .pg-metric-grid { grid-template-columns: 1fr; border-radius: 19px; }
  .pg-metric { padding: 17px 19px; }
  .pg-metric + .pg-metric { border-top: 1px solid #edf2f5; border-left: 0; }
  .pg-metric-value { min-width: 70px; font-size: 1.85rem; }
  .pg-section { padding: 61px 0; }
  .pg-region-tabs { grid-template-columns: 1fr; }
  .pg-region-tab { min-height: 74px; padding: 14px 16px; }
  .pg-region-panel { padding: 19px; }
  .pg-card, .pg-area { padding: 23px; border-radius: 23px; }
  .pg-funding-grid { grid-template-columns: 1fr; }
  .pg-house { padding: 20px; border-radius: 25px; }
  .pg-house-stat { min-height: 185px; }
  .pg-closing { padding: 62px 0; }
  .pg-footer-row { align-items: flex-start; flex-direction: column; }
  .pg-footer-brand img { width: 155px; }
  .pg-footer-copy { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .pg-reveal { opacity: 1; transform: none; }
}
