/* ====== Blocos de página (site e pré-visualização do painel) ====== */
.bk{--bk-primary:var(--primary,#ec7004);--bk-dark:var(--dark,#111);--bk-soft:color-mix(in srgb,var(--bk-primary) 8%,#fff);--bk-muted:#6f685f;
  display:flex;flex-direction:column;gap:clamp(36px,6vw,72px);font-family:Manrope,ui-sans-serif,system-ui,sans-serif;color:#1c1a17}
.bk h2{font-family:"Bricolage Grotesque",Manrope,ui-sans-serif,sans-serif;font-weight:800;letter-spacing:-.025em;line-height:1.05;color:var(--bk-dark);margin:0 0 .45em;font-size:clamp(1.6rem,3.2vw,2.5rem);text-wrap:balance}
.bk img{display:block;width:100%;height:100%;object-fit:cover;border-radius:22px}
.bk .rich{font-size:1rem;line-height:1.7;min-width:0}
.bk .rich p{margin:0 0 .9em}
.bk .rich h3{font-family:"Bricolage Grotesque",Manrope,sans-serif;font-size:1.25rem;margin:1em 0 .4em}
.bk .rich ul{padding-left:0;list-style:none;margin:0 0 1em}
.bk .rich ul li{position:relative;padding-left:24px;margin-bottom:4px}
.bk .rich ul li::before{content:"";position:absolute;left:0;top:.45em;width:12px;height:12px;border-radius:50%;background:var(--bk-primary)}
.bk .rich strong{color:var(--bk-dark)}
.bk-noimg{display:flex;align-items:center;justify-content:center;min-height:200px;height:100%;border-radius:22px;background:repeating-linear-gradient(45deg,var(--bk-soft) 0 12px,#fff 12px 24px);color:var(--bk-muted);font-weight:700;border:2px dashed #ecd9c6}

/* Imagem grande */
.bk-hero{position:relative;border-radius:26px;overflow:hidden;background:var(--bk-soft)}
.bk-hero img,.bk-hero .bk-noimg{border-radius:0;aspect-ratio:16/7;height:auto}
.bk-h-s img,.bk-h-s .bk-noimg{aspect-ratio:21/7}
.bk-h-l img,.bk-h-l .bk-noimg{aspect-ratio:16/9}
.bk-hero-cap{position:absolute;inset:auto 0 0 0;padding:clamp(20px,4vw,48px);background:linear-gradient(transparent,rgba(0,0,0,.72));color:#fff}
.bk-hero-cap h2{color:#fff;margin:0;font-size:clamp(1.8rem,4.6vw,3.6rem)}
.bk-hero-cap p{margin:.5em 0 0;font-size:1.1rem;font-weight:600;opacity:.92;max-width:640px}

/* Imagem + texto */
.bk-media{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,56px);align-items:center}
.bk-media.bk-size-third{grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:start}
.bk-media.bk-right .bk-media-img{order:2}
.bk-media.bk-right.bk-size-third{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.bk-media-img{margin:0;min-width:0}
.bk-media-img img,.bk-media-img .bk-noimg{aspect-ratio:4/3;height:auto}
.bk-size-third .bk-media-img img,.bk-size-third .bk-media-img .bk-noimg{aspect-ratio:1}
.bk-big-title{font-size:clamp(2rem,4vw,3rem)!important;margin:.45em 0 0!important;position:relative;padding-top:.35em}
.bk-big-title::before{content:"";position:absolute;left:0;top:0;width:44px;height:5px;border-radius:5px;background:var(--bk-primary)}
.bk-media-text{min-width:0}

/* Texto */
.bk-text{max-width:820px}
.bk-text.bk-center{margin-inline:auto;text-align:center}
.bk-text.bk-center .rich ul{display:inline-block;text-align:left}

/* Colunas */
.bk-cols{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,56px)}
.bk-cols>.rich{background:var(--bk-soft);border-radius:22px;padding:clamp(20px,3vw,32px)}

/* Galeria */
.bk-gallery{display:grid;gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}
.bk-gallery.bk-c2{grid-template-columns:repeat(2,minmax(0,1fr))}
.bk-gallery.bk-c4{grid-template-columns:repeat(4,minmax(0,1fr))}
.bk-gallery figure{margin:0}
.bk-gallery img{aspect-ratio:1;height:auto;border-radius:18px;transition:transform .4s}
.bk-gallery figure:hover img{transform:scale(1.02)}
.bk-gallery>.bk-noimg{grid-column:1/-1}

/* Citação */
.bk-quote{margin:0;position:relative;background:var(--bk-dark);color:#fff;border-radius:26px;padding:clamp(28px,5vw,56px) clamp(24px,5vw,64px);overflow:hidden}
.bk-quote::before{content:"\201C";position:absolute;left:24px;top:-24px;font-family:Georgia,serif;font-size:10rem;line-height:1;color:var(--bk-primary);opacity:.9}
.bk-quote p{position:relative;margin:0;font-family:"Bricolage Grotesque",Manrope,sans-serif;font-weight:700;font-size:clamp(1.3rem,2.6vw,2rem);line-height:1.25;letter-spacing:-.015em}
.bk-quote cite{display:block;margin-top:14px;font-style:normal;font-weight:700;color:var(--bk-primary)}

/* Botão */
.bk-btn{display:flex}.bk-btn.bk-center{justify-content:center}
.bk-btn .btn{font-size:1rem;padding:15px 28px}

/* Divisor */
.bk-divider{display:flex;align-items:center;gap:16px}
.bk-divider::before,.bk-divider::after{content:"";flex:1;height:2px;background:#ecd9c6;border-radius:2px}
.bk-divider span{width:26px;height:26px;border-radius:50%;background:var(--bk-primary);box-shadow:0 0 0 6px var(--bk-soft)}

@media (max-width:760px){
  .bk-media,.bk-media.bk-size-third,.bk-media.bk-right.bk-size-third,.bk-cols{grid-template-columns:1fr}
  .bk-media.bk-right .bk-media-img{order:0}
  .bk-gallery,.bk-gallery.bk-c4{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Área dos blocos no site */
.bk-area{padding-block:24px 72px;max-width:1140px}

/* ====== Editor de blocos (painel) ====== */
.bk-editor{border:1px solid #e5e7eb;border-radius:14px;background:#fafafa;overflow:hidden}
.bk-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:12px;background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:66px;z-index:6}
.bk-tabs{display:flex;background:#f2f4f7;border-radius:10px;padding:3px}
.bk-tabs button{border:0;background:transparent;padding:8px 16px;border-radius:8px;font:inherit;font-weight:700;cursor:pointer;color:#475467}
.bk-tabs button.on{background:#111;color:#fff}
.bk-tpl{display:flex;align-items:center;gap:8px;font-weight:600;font-size:.88rem}
.bk-tpl select{padding:8px 10px;border:1px solid #d0d5dd;border-radius:8px;font:inherit;background:#fff;color:#1f2328}
.bk-split{display:grid;grid-template-columns:minmax(0,1fr)}
.bk-edit{padding:14px;display:flex;flex-direction:column;gap:14px;min-width:0}
.bk-preview-wrap{display:none;min-width:0;border-left:1px solid #e5e7eb;background:#fff}
.bk-show-preview .bk-preview-wrap{display:block}
.bk-show-preview .bk-edit{display:none}
.bk-preview-head{font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:#98a2b3;padding:12px 16px;border-bottom:1px solid #f2f4f7}
.bk-preview{padding:20px;--primary:var(--primary,#ec7004)}
.bk-preview .bk{gap:36px}
.bk-preview .btn{display:inline-flex;align-items:center;background:#111;color:#fff;border-radius:999px;padding:12px 22px;font-weight:700;text-decoration:none}
.bk-preview .btn-secondary{background:var(--primary,#ec7004);color:#111}
.bk-empty,.bk-empty-list{color:#98a2b3;text-align:center;padding:28px;border:2px dashed #e5e7eb;border-radius:12px;background:#fff}
@media (min-width:1500px){
  .bk-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .bk-preview-wrap{display:block;position:relative}
  .bk-preview{position:sticky;top:130px;max-height:calc(100vh - 150px);overflow:auto}
  .bk-show-preview .bk-edit{display:flex}
  .bk-tabs{display:none}
}
.bk-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}
.bk-card-head{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#fcfcfd;border-bottom:1px solid #f2f4f7}
.bk-card-head b{display:flex;gap:8px;align-items:center;font-size:.95rem}
.bk-card-head b i{font-style:normal;color:var(--primary,#ec7004)}
.bk-num{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#111;color:#fff;font-size:.75rem;font-weight:800}
.bk-tools{margin-left:auto;display:flex;gap:4px}
.bk-tools button{border:1px solid #e5e7eb;background:#fff;border-radius:8px;min-width:32px;height:32px;cursor:pointer;font:inherit;font-weight:700;color:#344054}
.bk-tools button:disabled{opacity:.35;cursor:default}
.bk-tools .bk-del{color:#b42318;padding:0 10px}
.bk-card-body{padding:14px;display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
.bk-field{min-width:0}
.bk-field.bk-f-html,.bk-field.bk-f-images,.bk-field.bk-f-textarea{grid-column:1/-1}
.bk-field>label{display:block;font-size:.8rem;font-weight:700;margin-bottom:5px;color:#344054}
.bk-field input:not([type=file]),.bk-field select,.bk-field textarea{width:100%;padding:8px 10px;border:1px solid #d0d5dd;border-radius:8px;font:inherit;background:#fff;color:#1f2328}
.bk-field .ql-editor{min-height:120px;max-height:360px}
.bk-img{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bk-img img{width:120px;height:80px;object-fit:cover;border-radius:8px;border:1px solid #e5e7eb}
.bk-img-empty{font-size:.82rem;color:#98a2b3}
.bk-x{border:0;background:none;color:#b42318;font:inherit;font-size:.82rem;font-weight:700;cursor:pointer}
.bk-up{display:inline-flex;align-items:center;gap:6px;border:1px dashed #d0d5dd;border-radius:8px;padding:8px 12px;font-size:.85rem;font-weight:700;cursor:pointer;background:#fff;position:relative}
.bk-up:hover{border-color:var(--primary,#ec7004)}
.bk-up input{position:absolute;inset:0;opacity:0;cursor:pointer}
.bk-up.bk-busy{opacity:.5;pointer-events:none}
.bk-up.bk-busy::after{content:"enviando…";font-weight:600}
.bk-imgs{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bk-thumb{position:relative}.bk-thumb img{width:84px;height:84px;object-fit:cover;border-radius:8px}
.bk-thumb button{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:0;background:#111;color:#fff;cursor:pointer;line-height:1}
.bk-add{background:#fff;border:1px dashed #d0d5dd;border-radius:12px;padding:12px}
.bk-add>span{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:#98a2b3;margin-bottom:8px}
.bk-add-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.bk-add-grid button{display:flex;align-items:center;gap:8px;border:1px solid #e5e7eb;background:#fcfcfd;border-radius:10px;padding:10px;font:inherit;font-weight:700;font-size:.85rem;cursor:pointer;text-align:left;color:#1f2328}
.bk-add-grid button i{font-style:normal;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;background:#fff4ea;color:var(--primary,#ec7004)}
.bk-add-grid button:hover{border-color:var(--primary,#ec7004);background:#fff}
@media (max-width:700px){.bk-card-body{grid-template-columns:1fr}}
/* evita que estilos gerais dos campos do painel estiquem a barra do editor */
.bk-editor .bk-bar{flex-wrap:wrap}
.bk-editor .bk-tpl{display:flex!important;align-items:center;gap:8px;margin:0;white-space:nowrap}
.bk-editor .bk-tpl select{width:auto!important;min-width:260px}
@media (min-width:1500px){.bk-editor .bk-bar{justify-content:flex-end}}
/* "overflow:hidden" impedia a pré-visualização e a barra de ficarem fixas ao rolar */
.bk-editor{overflow:visible}
.bk-bar{border-radius:14px 14px 0 0}
.bk-preview-wrap{align-self:stretch}
@media (min-width:1500px){.bk-preview{position:sticky;top:140px}}

/* Texto de abertura grande */
.bk-text.bk-lead .rich{font-size:clamp(1.15rem,2vw,1.45rem);line-height:1.55;font-weight:500;color:var(--bk-dark)}
.bk-text.bk-lead{max-width:900px}

/* Cartões (missão, visão…) */
.bk-cards-wrap>h2{text-align:center}
.bk-cards{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.bk-card-item{position:relative;isolation:isolate;overflow:hidden;border-radius:26px;padding:30px 28px 32px;background:var(--bk-soft);border:1px solid #f3dfca;transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s}
.bk-card-item:nth-child(2){background:var(--bk-dark);border-color:var(--bk-dark);color:#e9e4de}
.bk-card-item:nth-child(2) h3{color:#fff}
.bk-card-item:nth-child(3){background:var(--bk-primary);border-color:var(--bk-primary)}
.bk-card-item:nth-child(3) p{color:rgba(17,17,17,.78)}
.bk-card-item::after{content:"";position:absolute;z-index:-1;right:-50px;bottom:-60px;width:170px;height:170px;border-radius:50%;background:currentColor;opacity:.05;transition:transform 1s cubic-bezier(.2,.8,.2,1)}
.bk-card-item:hover{transform:translateY(-5px);box-shadow:0 26px 50px -30px rgba(17,17,17,.55)}
.bk-card-item:hover::after{transform:scale(1.4)}
.bk-seal{display:inline-flex;align-items:center;justify-content:center;width:58px;height:58px;margin-bottom:18px;font-family:"Bricolage Grotesque",Manrope,sans-serif;font-weight:800;font-size:1.05rem;color:#111;background:var(--bk-primary);
  -webkit-mask:var(--selo,none) center/contain no-repeat;mask:var(--selo,none) center/contain no-repeat;border-radius:50%;transition:transform .9s cubic-bezier(.2,.8,.2,1)}
.bk-card-item:nth-child(3) .bk-seal{background:#111;color:#fff}
.bk-card-item:hover .bk-seal{transform:rotate(180deg)}
.bk-card-item h3{font-family:"Bricolage Grotesque",Manrope,sans-serif;font-weight:800;font-size:clamp(1.5rem,2.4vw,2rem);letter-spacing:-.02em;margin:0 0 10px;color:var(--bk-dark)}
.bk-card-item p{margin:0;font-size:1.02rem;line-height:1.6}

/* Lista de selos (valores) */
.bk-chips-wrap{text-align:center}
.bk-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.bk-chips li{display:inline-flex;align-items:center;gap:12px;padding:12px 22px 12px 12px;border-radius:999px;background:#fff;border:1.5px solid #f0dcc7;font-weight:800;font-size:1.05rem;color:var(--bk-dark);transition:background .25s,color .25s,border-color .25s,transform .25s}
.bk-chips li i{width:32px;height:32px;flex-shrink:0;background:var(--bk-primary);-webkit-mask:var(--selo,none) center/contain no-repeat;mask:var(--selo,none) center/contain no-repeat;border-radius:50%;transition:transform .8s cubic-bezier(.2,.8,.2,1)}
.bk-chips li:hover{background:var(--bk-dark);border-color:var(--bk-dark);color:#fff;transform:translateY(-2px)}
.bk-chips li:hover i{transform:rotate(200deg)}
.bk,.bk-preview{--selo:url("../img/selo.svg")}
