/*
 * CH Builder Child — reskin do WooCommerce + estrutura fora do construtor.
 *
 * Carregado por inc/chb-bridge.php DEPOIS do chb-base.css do plugin (dep
 * ['chb-base']), então sobrescreve componentes sem !important. Usa só tokens
 * --chb-* (injetados por chb_brand_css()). NÃO substitui o CSS estrutural do
 * WooCommerce — só cor, raio e tipografia.
 *
 * Cole overrides específicos do projeto no fim, na seção marcada.
 */

/* Tokens locais — cores que o plugin não expõe (com fallback sensato). */
:root {
	--chb-wa: #1ec773;
	--chb-wa-dark: #15a862;
	--chb-success: #14803b;
	--chb-success-soft: #e6f7ec;
}

/* ── Sticky footer — chb-base.css não define isto; sem ele o rodapé sobe em
      páginas curtas (carrinho vazio, 404, minha conta). ── */
body.chb-site { display: flex; flex-direction: column; min-height: 100vh; }
body.chb-site .chb-main { flex: 1 0 auto; }

/* ── Página comum (page.php) ── */
.chb-page { padding-block: var(--chb-space-4, 32px); }
.chb-page__title { font-family: var(--chb-font-display); font-size: var(--chb-text-3xl, 2rem); margin: 0 0 var(--chb-space-2, 16px); }

/* ── Barra de promoção (inc/promo-bar.php) ── */
.chb-promo-bar {
	background: var(--chb-ink); color: var(--chb-paper);
	font-family: var(--chb-font-condensed, var(--chb-font)); font-size: 12.5px;
	letter-spacing: .04em; text-transform: uppercase;
}
.chb-promo-bar .chb-shell { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; padding-block: 7px; }
.chb-promo-bar span { position: relative; }
.chb-promo-bar span + span::before { content: '·'; position: absolute; left: -13px; opacity: .5; }

/* ── Wrapper de loja (inc/woocommerce.php) ── */
.chb-woo { padding-block: var(--chb-space-4, 32px); }
.woocommerce-breadcrumb { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--chb-ink-mute); margin-bottom: var(--chb-space-2, 16px); }

/* ── Grade de produtos ── */
.woocommerce ul.products {
	display: grid; gap: var(--chb-space-3, 24px); margin: 0; padding: 0; list-style: none;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); } }
.woocommerce ul.products li.product {
	margin: 0; width: auto; float: none;
	background: var(--chb-paper); border: 1px solid var(--chb-line); border-radius: var(--chb-radius-lg, 16px);
	padding: var(--chb-space-2, 16px); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.woocommerce ul.products li.product:hover {
	box-shadow: var(--chb-shadow); transform: translateY(-3px);
	border-color: rgba(var(--chb-primary-rgb), .35);
}
.woocommerce ul.products li.product a img {
	border-radius: var(--chb-radius, 10px); aspect-ratio: 1 / 1; object-fit: cover;
	background: var(--chb-paper-alt); margin-bottom: var(--chb-space-1, 8px);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--chb-font-display); font-weight: 600; font-size: var(--chb-text-sm, 14px);
	color: var(--chb-ink); padding: 0; line-height: 1.35;
}
.woocommerce ul.products li.product .price {
	color: var(--chb-primary); font-weight: 700; font-size: var(--chb-text-base, 16px);
}
.woocommerce ul.products li.product .price del { opacity: .5; font-weight: 400; font-size: var(--chb-text-sm, 13px); }
.woocommerce ul.products li.product .price ins { text-decoration: none; }

/* Selo de promoção */
.woocommerce span.onsale {
	background: var(--chb-accent); color: var(--chb-accent-text, #fff);
	border-radius: 6px; padding: 3px 9px; font-size: 11px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .04em; min-height: 0; line-height: 1.6;
	top: 10px; right: 10px; left: auto; margin: 0;
}

/* Botões */
.woocommerce a.button, .woocommerce button.button,
.woocommerce .single_add_to_cart_button, .chb-loop-btn {
	background: var(--chb-primary); color: var(--chb-primary-ink, #fff);
	border-radius: var(--chb-radius, 8px); font-family: var(--chb-font); font-weight: 700;
	font-size: var(--chb-text-sm, 13px); text-transform: uppercase; letter-spacing: .03em;
	padding: 10px 18px; transition: background .15s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce .single_add_to_cart_button:hover, .chb-loop-btn:hover { background: var(--chb-primary-dark); color: var(--chb-primary-ink, #fff); }
.woocommerce ul.products li.product .chb-loop-btn { display: block; text-align: center; margin-top: 10px; }

/* Avisos */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top-color: var(--chb-primary); border-radius: var(--chb-radius-lg, 14px);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--chb-primary); }

/* Tabelas de carrinho / checkout */
.woocommerce table.shop_table { border-radius: var(--chb-radius-lg, 14px); }
.woocommerce table.shop_table th { background: var(--chb-paper-alt); }
.woocommerce #place_order, .woocommerce-checkout #place_order {
	background: var(--chb-primary); color: var(--chb-primary-ink, #fff);
	border-radius: var(--chb-radius, 8px); font-weight: 700; text-transform: uppercase;
}
.woocommerce #place_order:hover { background: var(--chb-primary-dark); }

/* ── Página de produto (PDP) ── */
.single-product .product .product_title {
	font-family: var(--chb-font-display); font-size: clamp(24px, 3.4vw, 34px);
	color: var(--chb-secondary, var(--chb-ink));
}
.single-product .price { color: var(--chb-primary); font-family: var(--chb-font-display); font-weight: 700; }
.single-product .woocommerce-product-details__short-description { color: var(--chb-ink-soft); font-size: var(--chb-text-sm, 14px); }
.single-product form.cart {
	background: var(--chb-paper); border: 1px solid var(--chb-line); border-radius: var(--chb-radius-lg, 14px);
	box-shadow: var(--chb-shadow); padding: var(--chb-space-3, 20px); margin-block: var(--chb-space-3, 20px);
}

/* Galeria vertical em telas largas */
@media (min-width: 860px) {
	.single-product div.product .woocommerce-product-gallery { display: grid; grid-template-columns: 82px 1fr; gap: 12px; }
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { width: 82px; }
}
.woocommerce-product-gallery__wrapper {
	border: 1px solid var(--chb-line); border-radius: var(--chb-radius-lg, 14px); overflow: hidden; background: var(--chb-paper);
}
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active { border-color: var(--chb-primary); }

/* Tags categoria + estoque (inc/single-product.php) */
.chb-pdp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chb-pdp-tag {
	font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	padding: 4px 10px; border-radius: 999px; line-height: 1.4;
}
.chb-pdp-tag--cat { background: rgba(var(--chb-primary-rgb), .1); color: var(--chb-primary); }
.chb-pdp-tag--stock { background: var(--chb-success-soft); color: var(--chb-success); }

/* Botão "Pedir no WhatsApp" (inc/single-product.php) */
.chb-pdp-whatsapp {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
	padding: 11px 18px; border: 1.5px solid var(--chb-wa); border-radius: var(--chb-radius, 8px);
	color: var(--chb-wa-dark); font-weight: 700; font-size: var(--chb-text-sm, 13px);
	text-transform: uppercase; letter-spacing: .03em; text-decoration: none; transition: background .15s ease;
}
.chb-pdp-whatsapp:hover { background: var(--chb-success-soft); }
.chb-pdp-whatsapp svg { flex: none; }

/* Aba Especificações (inc/single-product.php) */
.woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--chb-line); }
.woocommerce-tabs ul.tabs li a { font-family: var(--chb-font); font-weight: 700; font-size: var(--chb-text-sm, 13px); text-transform: uppercase; color: var(--chb-ink-mute); }
.woocommerce-tabs ul.tabs li.active a { color: var(--chb-secondary, var(--chb-ink)); }
.chb-pdp-specs { display: flex; flex-direction: column; }
.chb-pdp-specs__row {
	display: flex; justify-content: space-between; gap: 16px;
	padding: 9px 0; border-bottom: 1px solid var(--chb-line); font-size: var(--chb-text-sm, 13px);
}
.chb-pdp-specs__row span { color: var(--chb-ink-mute); }
.chb-pdp-specs__row strong { color: var(--chb-secondary, var(--chb-ink)); text-align: right; }

/* Relacionados */
.related.products > h2, .upsells.products > h2 {
	font-family: var(--chb-font-display); font-size: var(--chb-text-2xl, 24px);
	color: var(--chb-secondary, var(--chb-ink)); margin-top: var(--chb-space-5, 48px);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * OVERRIDES DO PROJETO — cole aqui o que for específico deste cliente
 * (retoques de cor, ajustes de seção do plugin tipo .chb-hero / .chb-cta,
 * layout da PDP, etc.). Mantém o starter acima limpo pra receber updates.
 * ═════════════════════════════════════════════════════════════════════════ */

/* ── Header: transparente sobre o hero da home, sólido (azul + blur) ao rolar.
      Fora da home o header continua com o comportamento padrão do plugin
      (sticky, fundo claro) — nada muda nas demais páginas. ── */
body.kfb-home .chb-header {
	position: fixed;
	top: 0; left: 0; right: 0; z-index: 1000;
	--chb-header-bg: transparent;
	--chb-header-text: #fff;
	border-bottom-color: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	transition: background-color .25s ease, backdrop-filter .25s ease, border-color .25s ease, box-shadow .25s ease;
}
body.kfb-home .chb-header .chb-header__wa { color: #fff; border-color: rgba(255, 255, 255, .5); }
body.kfb-home .chb-header.is-scrolled {
	--chb-header-bg: rgba(6, 43, 88, .92);
	--chb-header-text: #fff;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom-color: rgba(255, 255, 255, .12);
	box-shadow: var(--chb-shadow);
}
body.kfb-home .chb-header .chb-hamburger span { background: var(--chb-header-text); }
/* O menu mobile (drawer) precisa de fundo sólido pra ser legível, mesmo
   quando o header em si ainda está transparente no topo. */
@media (max-width: 768px) {
	body.kfb-home .chb-header .chb-nav.is-open,
	body.kfb-home .chb-nav {
		background: var(--chb-paper);
	}
	body.kfb-home .chb-header:not(.is-scrolled) .chb-nav__list a { color: var(--chb-ink-soft); }
}

/* ── Seções "invertidas": a marca usa o azul profundo (primary) como cor de
      destaque para blocos escuros — não o azul médio (secondary), que fica
      reservado para acentos/links. Ajuste só de projeto, token global. ── */
.chb-section--invert { background: var(--chb-primary); }

/* ── Hero (home): overlay em degradê azul-marinho — mais forte à esquerda (onde
      fica o texto), leve no topo (legibilidade do menu transparente) e embaixo,
      livre à direita. A intensidade segue o campo nativo "Escurecimento do
      fundo" da seção (--chb-hero-overlay), então o cliente ainda controla pelo
      painel. Conteúdo e botões alinhados à esquerda; CTA principal amarelo. ── */
body.kfb-home .chb-hero__overlay {
	background:
		linear-gradient(180deg, rgba(6, 43, 88, calc(var(--chb-hero-overlay, .4) * .9)) 0%, rgba(6, 43, 88, 0) 24%),
		linear-gradient(0deg, rgba(6, 43, 88, calc(var(--chb-hero-overlay, .4) * 1.1)) 0%, rgba(6, 43, 88, 0) 40%),
		linear-gradient(90deg, rgba(6, 43, 88, calc(var(--chb-hero-overlay, .4) * 1.9)) 0%, rgba(6, 43, 88, calc(var(--chb-hero-overlay, .4) * .8)) 45%, rgba(6, 43, 88, 0) 85%);
}
/* O <video> do hero é position:absolute e o overlay do plugin não é posicionado,
   então ele ficava ATRÁS do vídeo (overlay invisível). Posicionar traz pra frente. */
.chb-hero__overlay { position: relative; z-index: 0; }
body.kfb-home .chb-hero__inner { align-items: flex-start; text-align: left; }
body.kfb-home .chb-hero__eyebrow { text-align: left; }
body.kfb-home .chb-hero__actions { justify-content: flex-start; }
.chb-hero .chb-btn { border-radius: 999px; }
.chb-hero .chb-btn--primary { background: var(--chb-accent); color: var(--chb-accent-ink, #0b1f3a); }
.chb-hero .chb-btn--primary:hover { background: var(--chb-accent); color: var(--chb-accent-ink, #0b1f3a); filter: brightness(.93); }
.chb-hero .chb-btn--primary::after { content: "\2192"; margin-left: .15em; }


/* ── Títulos de seção: mesmo estilo do título da faixa "Quando o evento encontra
      a imaginação" em TODAS as seções — maiúsculas, azul-marinho, alinhados à
      esquerda e com a barrinha amarela embaixo (inclui a CTA de cidade). ── */
:root { --kfb-title-size: clamp(1.45rem, 1rem + 1vw, 1.95rem); }
.chb-section-header { text-align: left; }
.chb-section-header .chb-section__lead { margin-inline: 0; }
.chb-section__title,
.chb-cta__title {
	color: var(--chb-primary); text-transform: uppercase; line-height: 1.08;
	font-size: var(--kfb-title-size);
}
.chb-section__title::after,
.chb-cta__title::after {
	content: ""; display: block; width: 60px; height: 5px; margin-top: 1rem;
	border-radius: 2px; background: var(--chb-accent);
}
.chb-cta { text-align: left; }
.chb-cta__title { color: inherit; }
.chb-cta__text { margin-inline: 0; }
.chb-cta__actions { justify-content: flex-start; }
.chb-header__wa { display: none; }

/* ── Rodapé: logo maior (o padrão do plugin limita a 40px de altura). A imagem "medium"
      tem 300px de largura, então 280px fica nítido; em tela retina o navegador usa a maior. ── */
.chb-footer__logo img { max-height: none; width: clamp(190px, 19vw, 280px); height: auto; }

/* ── Seletor de idioma (cabeçalho): botão com a bandeira atual + lista. ── */
.kfb-lang { position: relative; }
.kfb-lang__btn {
	display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
	padding: .3rem .55rem .3rem .35rem; border-radius: 999px; font: inherit;
	color: var(--chb-header-text, var(--chb-ink)); background: transparent;
	border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
	transition: background-color .2s ease, border-color .2s ease;
}
.kfb-lang__btn:hover, .kfb-lang__btn[aria-expanded="true"] { background: color-mix(in srgb, currentColor 12%, transparent); }
.kfb-lang__btn:focus-visible, .kfb-lang__list a:focus-visible { outline: 2px solid var(--chb-accent); outline-offset: 2px; }
.kfb-lang__chev { transition: transform .2s ease; }
.kfb-lang__btn[aria-expanded="true"] .kfb-lang__chev { transform: rotate(180deg); }
.kfb-lang__flag {
	display: inline-flex; width: 24px; height: 24px; flex: none; overflow: hidden; border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px rgba(255, 255, 255, .55);
}
.kfb-lang__flag svg { display: block; width: 100%; height: 100%; }
.kfb-lang__list {
	position: absolute; right: 0; top: calc(100% + 10px); z-index: 1200; min-width: 11.5rem; margin: 0; padding: .4rem;
	list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 18px 44px rgba(6, 43, 88, .3);
}
.kfb-lang__list[hidden] { display: none; }
.kfb-lang__list a {
	display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px;
	color: var(--chb-primary); font-weight: 600; text-decoration: none;
}
.kfb-lang__list a:hover { background: #eef3fa; color: var(--chb-primary); }
.kfb-lang__list a.is-current { background: #eef3fa; font-weight: 800; }

/* ── Faixas com foto de fundo (seção chbchild_banner) ── */
@font-face {
	font-family: "Dancing Script"; font-style: normal; font-weight: 400 700; font-display: swap;
	src: url("../fonts/dancing-script-variable.woff2") format("woff2");
}
.chbchild-banner {
	position: relative; isolation: isolate; overflow: hidden; color: var(--chb-primary);
	background: #fff var(--chbchild-bg, none) 78% top / auto 260px no-repeat;
	padding-block: clamp(1.75rem, 2.6vw, 3rem); padding-top: 280px;
}
.chbchild-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.chbchild-banner__grid { display: grid; gap: 1.5rem 2.5rem; align-items: center; }
.chbchild-banner .chb-section-header { margin-bottom: 1rem; }
.chbchild-banner__lead { margin: 0; max-width: 42ch; line-height: 1.6; font-size: clamp(.9rem, .85rem + .2vw, 1rem); }
.chbchild-banner__items { list-style: none; margin: 0; padding: 0; }
.chbchild-banner__note {
	display: none; position: absolute; z-index: 1; margin: 0; max-width: 16ch;
	font-family: "Dancing Script", "Segoe Script", "Brush Script MT", cursive; font-weight: 500;
	font-size: clamp(1.15rem, 1.55vw, 1.75rem); line-height: 1.15; color: #fff;
	transform: rotate(-6deg); text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}

/* indicadores e pilares (ícones de linha) */
.chbchild-banner__items:not(.chbchild-banner__items--flags) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; align-items: start; }
.chbchild-banner__item { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .25rem clamp(.4rem, 1vw, 1rem); text-align: center; }
.chbchild-banner__icon { display: inline-flex; width: clamp(40px, 3.4vw, 52px); }
.chbchild-banner__icon svg { display: block; width: 100%; height: auto; }
.chbchild-banner__value { font-family: var(--chb-font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.chbchild-banner__label { font-weight: 800; font-size: .74rem; letter-spacing: .02em; line-height: 1.25; text-transform: uppercase; max-width: 15ch; }
@media (min-width: 640px) {
	.chbchild-banner--intro .chbchild-banner__items { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
	.chbchild-banner--intro .chbchild-banner__item:nth-child(n+3) { border-left: 1px solid rgba(6, 43, 88, .2); }
	.chbchild-banner--purpose .chbchild-banner__items { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
}

/* botão pílula (outline) */
.chbchild-banner__btn {
	display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.25rem; padding: .75rem 1.4rem;
	border-radius: 999px; background: #fff; color: var(--chb-primary); font-weight: 800; font-size: .8rem;
	letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
	border: 1.5px solid rgba(6, 43, 88, .25); box-shadow: 0 6px 18px rgba(6, 43, 88, .12);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.chbchild-banner__btn:hover { transform: translateY(-2px); border-color: var(--chb-primary); color: var(--chb-primary); box-shadow: 0 10px 24px rgba(6, 43, 88, .2); }

/* — intro: foto no topo (mobile) / faixa inteira (desktop) — */
.chbchild-banner--intro::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 150px, #fff 262px); }

/* — propósito: pôr do sol — */
.chbchild-banner--purpose { background-color: #fff8ea; background-position: 80% top; }
.chbchild-banner--purpose::before { background: linear-gradient(180deg, rgba(255, 248, 234, 0) 150px, #fff8ea 262px); }
.chbchild-banner--purpose .chbchild-banner__item { padding-inline: .3rem; }
.chbchild-banner--purpose .chbchild-banner__label { font-size: .7rem; max-width: none; letter-spacing: .03em; }
.chbchild-banner--purpose .chbchild-banner__icon { width: clamp(38px, 3.1vw, 48px); }

/* — internacional: céu azul com bandeiras — */
.chbchild-banner--flags { color: #fff; background-color: #0a3a8a; background-position: 38% bottom; background-size: cover; padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); min-height: 420px; display: flex; align-items: center; }
.chbchild-banner--flags::before { background: linear-gradient(180deg, rgba(5, 36, 100, .55), rgba(5, 36, 100, .12) 70%); }
.chbchild-banner--flags .chbchild-banner__grid { width: 100%; }
.chbchild-banner--flags .chb-section__title { color: #fff; }
.chbchild-banner--flags .chbchild-banner__lead { color: rgba(255, 255, 255, .92); }
.chbchild-banner__items--flags { display: flex; flex-wrap: wrap; gap: clamp(.6rem, 1.2vw, 1.1rem); margin-top: 1.5rem; }
.chbchild-banner--flags .chbchild-banner__items { display: flex; flex-wrap: wrap; gap: clamp(.6rem, 1.2vw, 1.1rem); margin-top: 1.5rem; }
.chbchild-banner__item--flag { padding: 0; }
.chbchild-banner__flag {
	display: inline-flex; width: clamp(44px, 4.2vw, 62px); aspect-ratio: 1; overflow: hidden; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
	transition: transform .25s ease;
}
.chbchild-banner__flag svg { display: block; width: 100%; height: 100%; }
.chbchild-banner__item--flag:hover .chbchild-banner__flag { transform: translateY(-3px) scale(1.06); }

@media (min-width: 1100px) {
	.chbchild-banner__note { display: block; }
	.chbchild-banner--intro .chbchild-banner__note { right: 4vw; top: 14%; }
	.chbchild-banner--flags .chbchild-banner__note { right: 3.5vw; top: 16%; }
	.chbchild-banner--purpose .chbchild-banner__note { right: 3vw; top: 15%; }
}
@media (min-width: 1200px) {
	.chbchild-banner--intro,
	.chbchild-banner--purpose {
		display: flex; align-items: center; padding-top: clamp(1.75rem, 2.6vw, 3rem);
		background-position: right center; background-size: cover;
	}
	.chbchild-banner--intro { background-color: #fff; min-height: clamp(280px, 20.6vw, 440px); }
	.chbchild-banner--purpose { min-height: clamp(300px, 27vw, 500px); }
	.chbchild-banner--intro::before { background: linear-gradient(90deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .5) 42%, rgba(255, 255, 255, 0) 64%); }
	.chbchild-banner--purpose::before { background: linear-gradient(90deg, rgba(255, 248, 234, .9) 0%, rgba(255, 248, 234, .5) 40%, rgba(255, 248, 234, 0) 62%); }
	.chbchild-banner--intro .chbchild-banner__grid { width: 100%; grid-template-columns: minmax(0, 350px) minmax(0, 440px); gap: 1.5rem 2rem; }
	.chbchild-banner--purpose .chbchild-banner__grid { width: 100%; grid-template-columns: minmax(0, 330px) minmax(0, 580px); gap: 1.5rem 2rem; }
	.chbchild-banner--flags { min-height: clamp(340px, 31vw, 560px); background-position: right center; }
	.chbchild-banner--flags::before { background: linear-gradient(90deg, rgba(5, 36, 100, 0), rgba(5, 36, 100, 0)); }
	.chbchild-banner--flags .chb-shell { max-width: none; margin: 0; padding-left: 24vw; padding-right: 30vw; }
}

/* — botão amarelo (patrocínio e cidade) — */
.chbchild-banner--sponsor .chbchild-banner__btn,
.chbchild-banner--city .chbchild-banner__btn {
	background: var(--chb-accent); color: var(--chb-accent-ink, #0b1f3a); border-color: transparent;
	box-shadow: 0 8px 22px rgba(255, 201, 0, .28);
}
.chbchild-banner--sponsor .chbchild-banner__btn:hover,
.chbchild-banner--city .chbchild-banner__btn:hover { color: var(--chb-accent-ink, #0b1f3a); filter: brightness(.95); box-shadow: 0 12px 28px rgba(255, 201, 0, .4); }

/* — patrocínio: foto da baleia (esq.) + painel azul-marinho com texto, botão e benefícios — */
.chbchild-banner--sponsor { background: var(--chb-primary); color: #fff; padding: 0 0 clamp(2rem, 6vw, 3rem); }
.chbchild-banner--sponsor::before {
	position: relative; inset: auto; z-index: 0; display: block; height: clamp(230px, 62vw, 380px);
	margin-bottom: clamp(1.5rem, 5vw, 2.25rem); pointer-events: none;
	background: var(--chbchild-bg, none) center / cover no-repeat;
}
.chbchild-banner--sponsor .chbchild-banner__grid { position: relative; z-index: 2; }
.chbchild-banner--sponsor .chb-section__title { color: #fff; }
.chbchild-banner--sponsor .chbchild-banner__lead { color: rgba(255, 255, 255, .92); max-width: 46ch; }
.chbchild-banner--sponsor .chbchild-banner__items { margin-top: 1.75rem; gap: 1.5rem 1rem; }
.chbchild-banner--sponsor .chbchild-banner__item { color: #fff; padding-inline: .25rem; }
.chbchild-banner--sponsor .chbchild-banner__icon { width: 34px; opacity: .92; }
.chbchild-banner--sponsor .chbchild-banner__label { font-size: .64rem; letter-spacing: .05em; max-width: 15ch; }
@media (min-width: 640px) {
	.chbchild-banner--sponsor .chbchild-banner__items { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
}
/* texto "SUA MARCA AQUI" sobre a barriga da baleia (texto de verdade: editável e traduzível) */
.chbchild-banner__brand { display: none; }
.chbchild-banner--sponsor .chbchild-banner__brand {
	display: block; position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: clamp(230px, 62vw, 380px);
	pointer-events: none; --brand-fs: clamp(1.15rem, 6.2vw, 2.1rem);
}
.chbchild-banner--sponsor .chbchild-banner__brand span {
	position: absolute; left: 71%; top: 48%; transform: translate(-50%, -50%) rotate(-11deg); white-space: nowrap; text-align: center;
	font-family: var(--chb-font-display); font-weight: 900; text-transform: uppercase; line-height: 1.02; letter-spacing: .02em;
	font-size: calc(var(--brand-fs) * var(--chbchild-brand-scale, 1)); color: #213f7d; opacity: .92; mix-blend-mode: multiply;
}
@media (min-width: 900px) {
	.chbchild-banner--sponsor { display: flex; align-items: center; min-height: clamp(340px, 30vw, 500px); padding: clamp(2rem, 3vw, 3.5rem) 0; }
	.chbchild-banner--sponsor::before { position: absolute; inset: 0 auto 0 0; width: 56%; height: auto; margin: 0; }
	.chbchild-banner--sponsor .chbchild-banner__brand { width: 56%; height: 100%; --brand-fs: 2.9vw; }
	.chbchild-banner--sponsor .chb-shell { max-width: none; width: 100%; margin: 0; padding-left: calc(56% + clamp(1.5rem, 3.5vw, 4rem)); padding-right: clamp(1.5rem, 4vw, 4.5rem); }
	.chbchild-banner--sponsor .chbchild-banner__grid { grid-template-columns: 1fr; }
}

/* — cidade: foto de cidade ao pôr do sol, texto navy + botão amarelo — */
.chbchild-banner--city { background-color: #fff3dc; background-position: 84% top; }
.chbchild-banner--city::before { background: linear-gradient(180deg, rgba(255, 243, 220, 0) 150px, #fff3dc 262px); }
.chbchild-banner--city .chbchild-banner__lead { color: var(--chb-primary); }
.chbchild-banner--city .chb-section__title { max-width: 13em; }
.chbchild-banner--sponsor .chb-section__title { max-width: 12em; }
@media (min-width: 1100px) {
	/* recado em azul-marinho sobre o céu dourado (a foto foi recortada antes da área do recado original) */
	.chbchild-banner--city .chbchild-banner__note { right: 15vw; top: 4%; color: var(--chb-primary); text-shadow: 0 1px 8px rgba(255, 255, 255, .55); }
}
@media (min-width: 1200px) {
	.chbchild-banner--city {
		display: flex; align-items: center; padding-top: clamp(1.75rem, 2.6vw, 3rem);
		min-height: clamp(240px, 21.5vw, 420px); background-position: right center; background-size: cover;
	}
	.chbchild-banner--city::before { background: linear-gradient(90deg, rgba(255, 246, 228, .9) 0%, rgba(255, 246, 228, .45) 42%, rgba(255, 246, 228, 0) 62%); }
	.chbchild-banner--city .chbchild-banner__grid { width: 100%; grid-template-columns: minmax(0, 560px); }
}

/* ── Vídeos do YouTube (seção chbchild_videos): fachada com miniatura + play ── */
.chbchild-videos__grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.chbchild-videos__grid--cols-1 { grid-template-columns: minmax(0, 880px); }
@media (min-width: 700px) {
	.chbchild-videos__grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chbchild-videos__grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Shorts (vertical 9:16): grade própria abaixo dos vídeos horizontais; a miniatura 16:9 do YouTube
   traz o vídeo vertical centralizado com tarjas — "cover" no quadro 9:16 mostra só o vídeo. */
.chbchild-videos__grid + .chbchild-videos__grid { margin-top: 1.5rem; }
.chbchild-videos__grid--shorts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 250px)); justify-content: start; }
.chbchild-video--short .chbchild-video__media { aspect-ratio: 9 / 16; }
.chbchild-video { margin: 0; }
.chbchild-video__media {
	position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1f3a;
	border-radius: var(--chb-radius-lg, 16px); box-shadow: var(--chb-shadow);
}
.chbchild-video__play { position: absolute; inset: 0; display: block; }
.chbchild-video__play::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(6, 43, 88, 0) 45%, rgba(6, 43, 88, .45) 100%);
}
.chbchild-video__thumb { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .4s ease; }
/* o plugin/tema aplicam "img { height:auto }" com mais especificidade; sem isto a miniatura não preenche o quadro (aparece nos Shorts, 9:16) */
.chbchild-video__media .chbchild-video__play .chbchild-video__thumb { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; }
.chbchild-video__icon {
	position: absolute; z-index: 1; left: 50%; top: 50%; width: clamp(56px, 6vw, 76px); aspect-ratio: 1;
	display: grid; place-items: center; border-radius: 50%; transform: translate(-50%, -50%);
	background: var(--chb-accent); color: var(--chb-primary); box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
	transition: transform .25s ease, box-shadow .25s ease;
}
.chbchild-video__icon svg { width: 42%; height: auto; margin-left: 6%; }
@media (hover: hover) {
	.chbchild-video__play:hover .chbchild-video__thumb { transform: scale(1.06); filter: brightness(1.05); }
	.chbchild-video__play:hover .chbchild-video__icon { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 12px 34px rgba(0, 0, 0, .45); }
}
.chbchild-video__play:focus-visible { outline: 3px solid var(--chb-accent); outline-offset: -3px; }
.chbchild-video__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chbchild-video__caption { margin-top: .75rem; font-weight: 700; line-height: 1.3; color: var(--chb-primary); }
.chbchild-videos__hint {
	margin: 0; padding: 1rem 1.25rem; border: 2px dashed rgba(6, 43, 88, .35); border-radius: var(--chb-radius, 10px);
	background: rgba(255, 201, 0, .12); color: var(--chb-primary); font-size: .9rem; line-height: 1.5;
}

/* — logos ao lado do texto (ex.: faixa "cidade"): lado a lado, sem fundo — */
.chbchild-banner__logos {
	list-style: none; margin: 0; padding: 0; width: fit-content; max-width: 100%;
	display: flex; flex-wrap: nowrap; align-items: center; gap: 1.25rem;
}
.chbchild-banner__logo-item { display: flex; align-items: center; }
.chbchild-banner__logo-item + .chbchild-banner__logo-item { padding-left: 1.25rem; border-left: 1px solid rgba(6, 43, 88, .22); }
.chbchild-banner__logo { display: block; height: auto; max-width: 100%; filter: drop-shadow(0 1px 6px rgba(255, 255, 255, .7)); }
.chbchild-banner__logo-item:first-child .chbchild-banner__logo { width: clamp(140px, 46vw, 190px); }
.chbchild-banner__logo-item:not(:first-child) .chbchild-banner__logo { width: clamp(66px, 21vw, 96px); }
@media (min-width: 1200px) {
	.chbchild-banner--city .chbchild-banner__grid { grid-template-columns: minmax(0, 410px) auto; gap: 1.5rem 2.25rem; }
	.chbchild-banner--city .chbchild-banner__logos { gap: 1.5rem; }
	.chbchild-banner--city .chbchild-banner__logo-item + .chbchild-banner__logo-item { padding-left: 1.5rem; }
	.chbchild-banner--city .chbchild-banner__logo-item:first-child .chbchild-banner__logo { width: 230px; }
	.chbchild-banner--city .chbchild-banner__logo-item:not(:first-child) .chbchild-banner__logo { width: 110px; }
}

/* ── Cards com foto: proporção das fotos recortadas do layout aprovado. ── */
#atracoes .chb-link-card__media img,
#atracoes .chb-link-card__media .chb-media-placeholder { aspect-ratio: 16 / 10; }
#experiencias .chb-link-card__media img,
#experiencias .chb-link-card__media .chb-media-placeholder { aspect-ratio: 16 / 8; }

/* ── Cards de "O céu vira palco" (fundo escuro) e "Uma experiência…" (fundo claro):
      entrada escalonada ao rolar, elevação + brilho dourado + zoom na foto +
      varredura de luz + barra amarela que cresce sob o título (mouse). ── */
:is(#atracoes, #experiencias) .chb-link-card {
	position: relative; transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease, border-color .3s ease;
}
:is(#atracoes, #experiencias) .chb-link-card__media { overflow: hidden; }
:is(#atracoes, #experiencias) .chb-link-card__media img { transition: transform .9s cubic-bezier(.2, .8, .2, 1), filter .5s ease; will-change: transform; }
:is(#atracoes, #experiencias) .chb-link-card__media::after {
	content: ""; position: absolute; top: 0; left: -70%; width: 40%; height: 100%; pointer-events: none;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-18deg);
}
:is(#atracoes, #experiencias) .chb-link-card__title { transition: color .3s ease; }
:is(#atracoes, #experiencias) .chb-link-card__title::after {
	content: ""; display: block; width: 28px; height: 3px; margin-top: .5rem; border-radius: 2px;
	background: var(--chb-accent); transition: width .4s cubic-bezier(.2, .8, .2, 1);
}
#experiencias .chb-link-card__title { color: var(--chb-primary); }
@media (hover: hover) {
	:is(#atracoes, #experiencias) .chb-link-card:hover { transform: translateY(-10px); border-color: var(--chb-accent); }
	#atracoes .chb-link-card:hover {
		box-shadow: 0 24px 44px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 201, 0, .55), 0 0 28px rgba(255, 201, 0, .18);
	}
	#experiencias .chb-link-card:hover {
		box-shadow: 0 24px 44px rgba(6, 43, 88, .2), 0 0 0 1px rgba(255, 201, 0, .75), 0 0 26px rgba(255, 201, 0, .16);
	}
	:is(#atracoes, #experiencias) .chb-link-card:hover .chb-link-card__media img { transform: scale(1.12); filter: saturate(1.15) brightness(1.05); }
	:is(#atracoes, #experiencias) .chb-link-card:hover .chb-link-card__media::after { left: 135%; transition: left .9s ease; }
	#atracoes .chb-link-card:hover .chb-link-card__title { color: var(--chb-accent); }
	#experiencias .chb-link-card:hover .chb-link-card__title { color: var(--chb-secondary); }
	:is(#atracoes, #experiencias) .chb-link-card:hover .chb-link-card__title::after { width: 64px; }
}
.kfb-js :is(#atracoes, #experiencias) .chb-link-card.kfb-reveal:not(.is-in) { opacity: 0; transform: translateY(34px) scale(.97); }
:is(#atracoes, #experiencias) .chb-link-card.kfb-reveal.is-in { animation: kfb-rise .75s cubic-bezier(.2, .8, .2, 1) var(--kfb-delay, 0s) backwards; }
@keyframes kfb-rise { from { opacity: 0; transform: translateY(34px) scale(.97); } to { opacity: 1; transform: none; } }

/* ── Galeria: mosaico editorial (4 destaques + 6 menores), sem biblioteca. ── */
#galeria .chb-gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
#galeria .chb-gallery__item {
	position: relative; margin: 0; aspect-ratio: 1 / 1; overflow: hidden; border: 0;
	border-radius: var(--chb-radius-lg, 16px); box-shadow: var(--chb-shadow); background: var(--chb-paper-alt);
}
#galeria .chb-gallery__item:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
#galeria .chb-gallery__link { display: block; width: 100%; height: 100%; }
#galeria .chb-gallery__item img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) { #galeria .chb-gallery__item:hover img { transform: scale(1.07); } }
@media (min-width: 900px) {
	#galeria .chb-gallery__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem;
		grid-template-rows: clamp(190px, 18vw, 280px) clamp(140px, 13vw, 200px); grid-auto-rows: clamp(140px, 13vw, 200px);
	}
	#galeria .chb-gallery__item { grid-column: span 2; aspect-ratio: auto; }
	#galeria .chb-gallery__item:first-child { grid-column: span 4; aspect-ratio: auto; }
	#galeria .chb-gallery__item:nth-child(2) { grid-column: span 2; }
	#galeria .chb-gallery__item:nth-child(3) { grid-column: span 4; }
	#galeria .chb-gallery__item:nth-child(4) { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
	:is(#atracoes, #experiencias) .chb-link-card, :is(#atracoes, #experiencias) .chb-link-card__media img, #galeria .chb-gallery__item img,
	.chbchild-banner__flag, .chbchild-banner__btn, .kfb-lang__chev, .chbchild-video__thumb, .chbchild-video__icon { transition: none; }
	:is(#atracoes, #experiencias) .chb-link-card.kfb-reveal.is-in { animation: none; }
	.kfb-js :is(#atracoes, #experiencias) .chb-link-card.kfb-reveal:not(.is-in) { opacity: 1; transform: none; }
}
