/* =========================================================
   Escola Princípios — Estilos do site
   Paleta extraída da logo
   ========================================================= */
:root {
  --verde: #3E5B2F;
  --verde-2: #2C4321;
  --verde-claro: #8AA65B;
  --verde-suave: #EEF3E6;
  --verde-suave-2: #F6F9F1;
  --laranja: #D9782E;
  --laranja-2: #BF6420;
  --laranja-suave: #FBEBDD;
  --creme: #FFFDF8;
  --texto: #1E2919;
  --muted: #5B6853;
  --linha: #E3E9DA;
  --branco: #fff;
  --raio: 18px;
  --raio-sm: 12px;
  --sombra: 0 10px 30px -12px rgba(44, 67, 33, .22);
  --sombra-lg: 0 24px 60px -20px rgba(44, 67, 33, .35);
  --f-titulo: "Poppins", system-ui, sans-serif;
  --f-texto: "Nunito", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-texto); font-size: 17px; line-height: 1.65; color: var(--texto); background: var(--creme); overflow-x: hidden; }
body.no-scroll, body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--verde); }
h1, h2, h3, h4 { font-family: var(--f-titulo); line-height: 1.18; margin: 0 0 .5em; color: var(--verde-2); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--verde); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; border-radius: 6px; }
.center { text-align: center; margin-top: 28px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 30px 0; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-family: var(--f-titulo); font-weight: 600; font-size: 15.5px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s, color .18s; line-height: 1.1; }
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--laranja); color: #fff; box-shadow: 0 10px 22px -10px rgba(217, 120, 46, .8); }
.btn-orange:hover { background: var(--laranja-2); }
.btn-green { background: var(--verde); color: #fff; }
.btn-green:hover { background: var(--verde-2); }
.btn-ghost { background: transparent; color: var(--verde); border-color: var(--verde-claro); }
.btn-ghost:hover { background: var(--verde-suave); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Topbar */
.topbar { background: var(--verde-2); color: #DDE7CF; font-size: 13.5px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.tb-right { display: flex; gap: 20px; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.tb-item svg { width: 15px; height: 15px; flex: none; }
a.tb-item:hover { color: #fff; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 248, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.header.scrolled { box-shadow: 0 6px 24px -14px rgba(44, 67, 33, .35); border-color: var(--linha); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 92px; height: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; font-family: var(--f-titulo); }
.brand-txt small { font-size: 10.5px; letter-spacing: .55em; color: var(--verde); font-weight: 500; }
.brand-txt strong { font-size: 19px; color: var(--verde); font-weight: 800; letter-spacing: .02em; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 10px 13px; border-radius: 999px; text-decoration: none; color: var(--texto); font-weight: 700; font-size: 15px; transition: background .15s, color .15s; }
.nav a:not(.btn):hover { background: var(--verde-suave); color: var(--verde); }
.nav-cta { margin-left: 10px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: var(--verde-suave); border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 20px; height: 2px; background: var(--verde); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 0%, var(--verde-suave) 0%, transparent 60%), var(--creme); padding: 56px 0 80px; }
.hero-arc { position: absolute; right: -120px; top: -40px; width: 900px; overflow: visible; max-width: none; opacity: .5; pointer-events: none; }
.hero-arc path { fill: none; stroke: var(--verde-claro); stroke-width: 26; stroke-linecap: round; opacity: .35; }
.hero-arc path.thin { stroke-width: 10; stroke: var(--verde); opacity: .15; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; background: var(--laranja-suave); color: var(--laranja-2); font-weight: 800; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; margin-bottom: 20px; }
.eyebrow[hidden] { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--laranja); box-shadow: 0 0 0 0 rgba(217, 120, 46, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(217, 120, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 120, 46, 0); } }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; color: var(--verde-2); margin-bottom: 18px; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--linha); border-radius: 999px; padding: 8px 16px; font-size: 14.5px; color: var(--muted); }
.chips b { color: var(--verde); font-weight: 800; }
.hero-media { position: relative; justify-self: center; }
.hero-frame { width: min(420px, 100%); border-radius: 32px; overflow: hidden; box-shadow: var(--sombra-lg); border: 8px solid #fff; transform: rotate(2deg); background: #fff; }
.hero-frame img { width: 100%; aspect-ratio: 313 / 425; object-fit: cover; }
.hero-badge { position: absolute; left: -48px; bottom: -22px; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 18px 12px 12px; box-shadow: var(--sombra); max-width: 270px; }
.hero-badge svg { width: 46px; height: 46px; flex: none; background: var(--laranja-suave); border-radius: 12px; padding: 4px; }
.hero-badge strong { display: block; font-family: var(--f-titulo); font-size: 14.5px; color: var(--verde-2); line-height: 1.25; }
.hero-badge span { font-size: 13px; color: var(--muted); }

/* Frase */
.quote-band { background: var(--verde); color: #fff; position: relative; overflow: hidden; }
.quote-band::after { content: ""; position: absolute; inset: auto -10% -120px auto; width: 520px; height: 240px; border-radius: 50%; border: 22px solid rgba(138, 166, 91, .35); }
.quote-in { padding-top: 38px; padding-bottom: 38px; text-align: center; position: relative; z-index: 1; }
.quote-in p { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(22px, 3vw, 32px); margin: 0 0 6px; }
.quote-in span { color: #D4E2C2; }

/* Seções */
.section { padding: 96px 0; }
.section-soft { background: var(--verde-suave-2); }
.sec-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; text-align: left; flex-wrap: wrap; }
.sec-head.row h2 { margin-bottom: 0; }
.kicker { display: inline-block; font-family: var(--f-titulo); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--laranja); margin-bottom: 10px; }
.kicker.light { color: #F6C193; }
.section h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.sec-lead { color: var(--muted); font-size: 18px; }

/* Missão/Visão/Propósito */
.mvp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvp-card { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 32px 28px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.mvp-card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.mvp-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--verde), var(--verde-claro)); }
.mvp-card:nth-child(2)::before { background: linear-gradient(90deg, var(--verde-claro), var(--laranja)); }
.mvp-card:nth-child(3)::before { background: linear-gradient(90deg, var(--laranja), var(--laranja-2)); }
.mvp-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--verde-suave); color: var(--verde); display: grid; place-items: center; margin-bottom: 18px; }
.mvp-ic svg { width: 28px; height: 28px; }
.mvp-card h3 { font-size: 22px; }
.mvp-card p { color: var(--muted); margin: 0; }
.valores { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.valores-lbl { font-family: var(--f-titulo); font-weight: 700; color: var(--verde); }
.valores ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.valores li { background: var(--verde); color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; }
.valores li:nth-child(even) { background: var(--verde-claro); color: var(--verde-2); }

/* Atividades */
.atv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.atv { background: #fff; border-radius: var(--raio); padding: 28px; border: 1px solid var(--linha); transition: transform .2s, box-shadow .2s, border-color .2s; }
.atv:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: var(--verde-claro); }
.atv-ic { width: 58px; height: 58px; border-radius: 18px; background: var(--laranja-suave); color: var(--laranja-2); display: grid; place-items: center; margin-bottom: 16px; }
.atv:nth-child(3n+2) .atv-ic { background: var(--verde-suave); color: var(--verde); }
.atv:nth-child(3n) .atv-ic { background: #E7EFD9; color: #5E7A33; }
.atv-ic svg { width: 30px; height: 30px; }
.atv h3 { font-size: 20px; }
.atv p { color: var(--muted); margin: 0; font-size: 16px; }

/* Equipe */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member { background: #fff; border-radius: var(--raio); padding: 28px 22px; text-align: center; border: 1px solid var(--linha); transition: transform .2s, box-shadow .2s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.avatar { width: 124px; height: 124px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--verde), var(--verde-claro)); display: grid; place-items: center; border: 5px solid var(--verde-suave); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { color: #fff; font-family: var(--f-titulo); font-size: 36px; font-weight: 700; }
.member h3 { font-size: 18px; margin-bottom: 4px; }
.member .role { display: inline-block; color: var(--laranja-2); font-weight: 800; font-size: 14px; }
.member .form { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.member p { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; }

/* Mural */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-f { border: 1.5px solid var(--linha); background: #fff; color: var(--muted); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all .15s; }
.chip-f:hover { border-color: var(--verde-claro); color: var(--verde); }
.chip-f.on { background: var(--verde); color: #fff; border-color: var(--verde); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { background: #fff; border-radius: var(--raio); overflow: hidden; border: 1px solid var(--linha); transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.post-open { all: unset; display: flex; flex-direction: column; height: 100%; width: 100%; cursor: pointer; box-sizing: border-box; }
.post-open:focus-visible { outline: 3px solid var(--laranja); outline-offset: -3px; }
.post-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--verde-suave); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post:hover .post-img img { transform: scale(1.04); }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.cat { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.cat-mat { background: var(--laranja-suave); color: var(--laranja-2); }
.cat-fest { background: #FDF1D8; color: #9A6412; }
.cat-dia { background: #E7EFD9; color: #4E6A27; }
.cat-info { background: var(--verde-suave); color: var(--verde); }
.post h3 { font-size: 19px; margin-bottom: 8px; color: var(--verde-2); }
.post-body p { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--laranja-2); font-weight: 800; font-size: 14.5px; }
.more svg { width: 16px; height: 16px; transition: transform .2s; }
.post:hover .more svg { transform: translateX(4px); }
.post.featured { grid-column: span 2; }
.post.featured .post-open { flex-direction: row; }
.post.featured .post-img { aspect-ratio: auto; flex: 1.1; min-height: 300px; }
.post.featured .post-body { flex: 1; padding: 32px; justify-content: center; }
.post.featured h3 { font-size: 26px; }

/* Galeria */
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.album { border-radius: var(--raio); overflow: hidden; position: relative; }
.album-open { all: unset; display: block; cursor: pointer; position: relative; width: 100%; aspect-ratio: 4 / 3; }
.album-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album:hover img { transform: scale(1.05); }
.album-cap { position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(30, 45, 22, .85)); color: #fff; }
.album-cap h3 { color: #fff; margin: 0 0 2px; font-size: 19px; }
.album-cap span { font-size: 13.5px; opacity: .85; }
.album-open:focus-visible { outline: 3px solid var(--laranja); outline-offset: -3px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 16px; }
.gal-item { all: unset; cursor: zoom-in; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gal-item:hover img { transform: scale(1.06); }
.gal-item:focus-visible { outline: 3px solid var(--laranja); }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(15, 22, 11, .94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 10px; margin: auto; }
.lightbox figcaption { color: #E4ECD9; margin-top: 10px; font-size: 15px; }
.lightbox figcaption span { opacity: .6; margin-left: 8px; }
.lb-x, .lb-nav { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 50px; height: 50px; border-radius: 50%; font-size: 30px; cursor: pointer; line-height: 1; }
.lb-x { top: 18px; right: 18px; }
.lb-nav.prev { left: 18px; } .lb-nav.next { right: 18px; }
.lb-x:hover, .lb-nav:hover { background: rgba(255, 255, 255, .25); }

/* Matrícula */
.matricula { background: linear-gradient(160deg, var(--verde) 0%, var(--verde-2) 100%); color: #fff; position: relative; overflow: hidden; }
.matricula::before { content: ""; position: absolute; left: -200px; top: -160px; width: 620px; height: 420px; border-radius: 50%; border: 30px solid rgba(138, 166, 91, .22); }
.mat-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; position: relative; }
.mat-side h2 { color: #fff; }
.mat-side > p, .mat-side > .rich { color: #DCE7CF; font-size: 18px; }
.mat-photo { margin: 24px 0; border-radius: 22px; overflow: hidden; border: 6px solid rgba(255, 255, 255, .15); max-width: 300px; transform: rotate(-2deg); box-shadow: var(--sombra-lg); }
.mat-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.mat-steps li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.mat-steps b { width: 34px; height: 34px; border-radius: 50%; background: var(--laranja); display: grid; place-items: center; font-family: var(--f-titulo); flex: none; }
.mat-form { background: #fff; color: var(--texto); border-radius: 26px; padding: 34px; box-shadow: var(--sombra-lg); }
.mat-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.mat-form legend { font-family: var(--f-titulo); font-weight: 700; color: var(--verde); font-size: 17px; margin-bottom: 12px; padding: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; color: var(--texto); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--linha); border-radius: 12px; background: var(--verde-suave-2); color: var(--texto); transition: border-color .15s, background .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--verde-claro); background: #fff; box-shadow: 0 0 0 4px rgba(138, 166, 91, .2); }
.field.err input, .field.err select { border-color: #C0392B; background: #FFF6F5; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 20px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--verde); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 14px 0 0; font-weight: 700; font-size: 15px; min-height: 1px; }
.form-msg.good { color: var(--verde); background: var(--verde-suave); padding: 12px 14px; border-radius: 12px; }
.form-msg.bad { color: #B03A2E; }
.form-msg a { color: var(--laranja-2); }
.closed-note { background: var(--laranja-suave); color: var(--laranja-2); padding: 12px 14px; border-radius: 12px; font-weight: 700; margin-bottom: 18px; font-size: 15px; }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci { width: 46px; height: 46px; border-radius: 14px; background: var(--verde-suave); color: var(--verde); display: grid; place-items: center; flex: none; }
.ci svg { width: 22px; height: 22px; }
.contact-list b { display: block; font-family: var(--f-titulo); font-size: 15px; color: var(--verde-2); }
.contact-list span, .contact-list a { color: var(--muted); text-decoration: none; }
.contact-list a:hover { color: var(--laranja-2); }
.map { border-radius: 24px; overflow: hidden; box-shadow: var(--sombra); border: 6px solid #fff; aspect-ratio: 4 / 3; background: var(--verde-suave); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.footer { background: var(--verde-2); color: #CBD8BC; padding: 64px 0 0; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.f-logo { background: #fff; border-radius: 18px; padding: 16px 20px; display: inline-block; margin-bottom: 14px; }
.f-logo img { width: 190px; height: auto; }
.f-col { display: flex; flex-direction: column; gap: 8px; }
.f-col h4 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.f-col a, .f-col span { color: #CBD8BC; text-decoration: none; font-size: 15px; }
.f-col a:hover { color: #fff; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 22px; display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; flex-wrap: wrap; }
.f-admin { color: #9FB38A; text-decoration: none; }
.f-admin:hover { color: #fff; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -8px rgba(37, 211, 102, .7); z-index: 60; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(20, 30, 14, .6); backdrop-filter: blur(3px); animation: fade .2s; }
.modal-box { position: relative; background: #fff; border-radius: 24px; width: min(720px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--sombra-lg); animation: up .25s ease; outline: none; }
.modal-box.wide { width: min(1040px, 100%); }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 26px; line-height: 1; cursor: pointer; color: var(--verde-2); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.m-cover { width: 100%; max-height: 380px; object-fit: cover; }
.m-pad { padding: 30px 34px 34px; }
.m-pad h2 { font-size: 28px; }
.m-text { color: #3A4733; }
.m-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }

/* Skeleton / reveal / toasts */
.skeleton { background: linear-gradient(90deg, #EEF2E8 0%, #F7F9F3 50%, #EEF2E8 100%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: var(--raio); min-height: 170px; }
.skeleton.tall { min-height: 290px; }
@keyframes sk { to { background-position: -200% 0; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.toast { background: var(--verde-2); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 700; opacity: 0; transform: translateY(10px); transition: all .25s; box-shadow: var(--sombra); }
.toast.show { opacity: 1; transform: none; }
.toast-bad { background: #B03A2E; }
.demo-flag { cursor: pointer; position: fixed; left: 16px; bottom: 16px; z-index: 55; background: #FFF4E5; color: #8A5311; border: 1px solid #F0CFA3; font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 10px; max-width: calc(100% - 110px); }

/* Responsivo */
@media (max-width: 1024px) {
  .nav { position: fixed; inset: 74px 0 0 0; background: var(--creme); flex-direction: column; align-items: stretch; padding: 20px; gap: 4px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s, transform .2s, visibility .2s; overflow-y: auto; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { font-size: 18px; padding: 14px 16px; border-radius: 12px; }
  .nav-cta { margin: 12px 0 0; }
  .menu-btn { display: flex; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .hero-frame { width: min(330px, 80vw); }
  .hero-badge { left: -20px; bottom: 20px; }
  .mvp, .atv-grid, .posts-grid, .albums { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .mat-in, .contact { grid-template-columns: 1fr; }
  .mat-photo { display: none; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .topbar-in > .tb-item { display: none; }
  .topbar-in { justify-content: center; }
  .header-in { height: 66px; }
  .nav { inset: 66px 0 0 0; }
  .brand img { width: 72px; }
  .brand-txt strong { font-size: 16px; }
  .brand-txt small { font-size: 9px; }
  .section { padding: 68px 0; }
  .hero { padding: 36px 0 56px; }
  .hero-badge { position: relative; left: 0; bottom: 0; margin: -30px auto 0; }
  .lead { font-size: 17px; }
  .hero-btns .btn { flex: 1 1 100%; }
  .mvp, .atv-grid, .posts-grid, .albums, .team-grid { grid-template-columns: 1fr; }
  .post.featured { grid-column: auto; }
  .post.featured .post-open { flex-direction: column; }
  .post.featured .post-img { min-height: 0; aspect-ratio: 16 / 10; }
  .post.featured .post-body { padding: 20px 22px 24px; }
  .post.featured h3 { font-size: 20px; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .mat-form { padding: 24px 18px; border-radius: 20px; }
  .footer-in { grid-template-columns: 1fr; }
  .m-pad { padding: 24px 20px; }
  .sec-head.row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ===== Texto editável pelo painel (parágrafos, tópicos, negrito, itálico, cor) ===== */
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0; }
.rich p + p, .rich p + .rich-list, .rich .rich-list + p { margin-top: .8em; }
.rich b, .rich strong { font-weight: 800; }
.rich-list { list-style: none; padding: 0; margin: .4em 0 0; text-align: left; }
.rich-list li { position: relative; padding-left: 22px; margin: 0 0 .55em; }
.rich-list li:last-child { margin-bottom: 0; }
.rich-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--laranja); }
.mvp-card .rich-list { margin-top: 0; }
/* "Princípios que formam para a vida": texto justificado */
#escola .sec-lead { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
#escola .sec-lead .rich-list { text-align: left; }
