/* Tema Alicerce (premium): materiais de construcao - azul de projeto, tijolo e cinza claro, Space Grotesk nos
   titulos, grade de planta baixa e linhas de cota. Carregado depois do CSS do Vitrine e do premium.css. */

.tema-alicerce { --al-tinta: var(--titulos, #1d3f73); --al-tijolo: #d0532c; --al-cinza: #ecebe7; --al-linha: #dcdad3; --al-grade: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 24px 24px; }
body.vitrine.tema-alicerce h1, body.vitrine.tema-alicerce h2, body.vitrine.tema-alicerce h3 { font-weight: 700 !important; letter-spacing: -.02em; }

/* titulos das secoes: Space Grotesk com linha de cota */
.tema-alicerce .vt-secao-cab { align-items: flex-end; margin-bottom: 24px; }
.tema-alicerce .vt-secao-cab h2 { position: relative; padding-bottom: 12px; font-size: 32px; color: var(--al-tinta); }
.tema-alicerce .vt-secao-cab h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 9px; border-left: 2px solid var(--al-tijolo); border-right: 2px solid var(--al-tijolo); background: linear-gradient(var(--al-tijolo), var(--al-tijolo)) 0 50% / 100% 2px no-repeat; }
.tema-alicerce .vt-secao-cab a { color: var(--al-tijolo) !important; font-weight: 600; }

/* cartao: branco, cantos pequenos, foto cinza, botao azul */
.tema-alicerce .vt-card { border: 1px solid var(--al-linha); border-radius: 8px; background: #fff; box-shadow: none !important; }
.tema-alicerce .vt-card:hover { border-color: var(--al-tinta); box-shadow: 0 14px 30px rgba(29, 63, 115, .14) !important; }
.tema-alicerce .vt-card-img { border-radius: 8px 8px 0 0; background: var(--al-cinza); }
.tema-alicerce .vt-card-info { padding: 14px 16px 6px; }
.tema-alicerce .vt-card-nome { font-size: 14px; font-weight: 500; color: #34404f; }
.tema-alicerce .vt-card-preco strong { font-family: var(--fonte-titulos), sans-serif; font-size: 23px; font-weight: 700; color: var(--al-tinta); }
.tema-alicerce .ppc-marca { color: var(--al-tijolo); }
.tema-alicerce .vt-card-botao { margin: 0 16px 16px; border-radius: 6px; background: var(--al-tinta); color: #fff; font-weight: 600; }
.tema-alicerce .vt-card:hover .vt-card-botao { background: var(--al-tijolo); }
.tema-alicerce .ppc .ppc-ver { border-radius: 6px; background: var(--al-tijolo); color: #fff; }
.tema-alicerce .vt-selo { border-radius: 4px; background: var(--al-tijolo); color: #fff; font-weight: 700; }

/* etapas da obra (bloco HTML al-etapas) */
.al-etapas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #dcdad3; border-radius: 10px; background: #fff; overflow: hidden; }
.al-etapas p { position: relative; display: grid; gap: 2px; margin: 0; padding: 20px 24px 20px 72px; border-left: 1px solid #dcdad3; }
.al-etapas p:first-child { border-left: 0; }
.al-etapas b { position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; background: #1d3f73; color: #fff; font-family: var(--fonte-titulos), sans-serif; font-size: 14px; }
.al-etapas p:nth-child(4) b { background: #d0532c; }
.al-etapas strong { font-family: var(--fonte-titulos), sans-serif; font-size: 18px; color: #1d3f73; }
.al-etapas span { font-size: 13px; color: #5f6a78; }

/* mosaico, banners, depoimentos, blog, newsletter */
.tema-alicerce .hdl-mos a { text-align: center; }
.tema-alicerce .hdl-mos-img { border-radius: 10px !important; border: 1px solid var(--al-linha); transition: transform .3s, border-color .3s; }
.tema-alicerce .hdl-mos a:hover .hdl-mos-img { transform: translateY(-4px); border-color: var(--al-tijolo); }
.tema-alicerce .hdl-mos b, .tema-alicerce .hdl-mos strong { font-family: var(--fonte-titulos), sans-serif; font-weight: 600; color: var(--al-tinta); }
.tema-alicerce .hdl-hero { border-radius: 10px; overflow: hidden; }
.tema-alicerce .hdl-hero .vt-botao { border-radius: 6px; background: var(--al-tijolo) !important; color: #fff !important; }
.tema-alicerce .hdl-it-img img { border-radius: 10px; }
.tema-alicerce .hdl-it-txt h2 { font-size: 40px; color: var(--al-tinta); }
.tema-alicerce .hdl-depo figure { border: 1px solid var(--al-linha); border-radius: 10px; background: #fff; }
.tema-alicerce .vt-blog a { border: 1px solid var(--al-linha); border-radius: 10px; background: #fff; overflow: hidden; }
.tema-alicerce .vt-blog strong { font-family: var(--fonte-titulos), sans-serif; font-weight: 700; color: var(--al-tinta); }
body.vitrine.tema-alicerce .vt-news { border-radius: 12px; background: var(--al-grade), #1d3f73; color: #fff; }
body.vitrine.tema-alicerce .vt-news h3 { color: #fff !important; }
body.vitrine.tema-alicerce .vt-news p { color: #c6d3e6; }
body.vitrine.tema-alicerce .vt-news-campo input { border-radius: 6px; }
body.vitrine.tema-alicerce .vt-news-campo button { border-radius: 6px; background: var(--al-tijolo); }
.tema-alicerce .vt-vantagens > * { border: 1px solid var(--al-linha); border-radius: 10px; background: #fff; }
.tema-alicerce .vt-vantagens i { border-radius: 6px; background: var(--al-tinta); color: #fff; }

/* ---------- topo proprio (topo.php): branco, busca larga e regua no menu ---------- */
.al-topo .vt-aviso { font-weight: 600; }
.al-topo .vt-marca img { width: auto; height: var(--logo-altura, 54px); max-width: 240px; border: 0; border-radius: 0; background: none; object-fit: contain; mix-blend-mode: multiply; }
body.vitrine .al-topo .vt-busca input { height: 46px; border: 2px solid #dcdad3; border-radius: 8px; background: #fff; }
body.vitrine .al-topo .vt-busca input:focus { border-color: #1d3f73; box-shadow: none; }
body.vitrine .al-topo .vt-busca button { border-radius: 6px !important; background: #d0532c !important; color: #fff !important; }
.al-topo .vt-acao { color: #1d3f73 !important; }
.al-topo .vt-acao:hover { background: #ecebe7; }
.al-topo .vt-sacola .counter { background: #d0532c; color: #fff; }
@media (min-width: 992px) {
	.al-topo .vt-barra .container { min-height: 88px; }
	body.vitrine .al-topo .vt-busca { flex: 1 1 560px; max-width: 600px; margin: 0 auto; }
	body.vitrine .al-topo .vt-menu { background: #1d3f73; }
	.al-topo .vt-menu .container { justify-content: flex-start; gap: 2px; }
	body.vitrine .al-topo .vt-menu > .container > a, body.vitrine .al-topo .vt-menu-cat > a, body.vitrine .al-topo .vt-menu-dep-link { position: relative; color: #fff !important; font-weight: 500; background: transparent !important; white-space: nowrap; }
	body.vitrine .al-topo .vt-menu > .container > a::after, body.vitrine .al-topo .vt-menu-cat > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 6px; background: repeating-linear-gradient(90deg, #f0b49f 0 1px, transparent 1px 6px) 0 100% / 100% 4px no-repeat, repeating-linear-gradient(90deg, #f0b49f 0 1px, transparent 1px 30px) 0 100% / 100% 6px no-repeat; opacity: 0; transition: opacity .25s; }
	body.vitrine .al-topo .vt-menu > .container > a:hover::after, body.vitrine .al-topo .vt-menu-cat:hover > a::after { opacity: 1; }
	body.vitrine .al-topo .vt-menu > .container > a:hover, body.vitrine .al-topo .vt-menu-cat:hover > a { background: #16325c !important; }
	body.vitrine .al-topo .vt-menu a.vt-ofertas { background: #d0532c !important; }
	body.vitrine .al-topo .vt-menu-dep-link { border: 0; }
	body.vitrine .al-topo .vt-mega-painel, body.vitrine .al-topo .vt-menu-cat-lista, body.vitrine .al-topo .vt-menu-dep-lista { border: 1px solid #dcdad3; border-top: 3px solid #d0532c; border-radius: 0 0 10px 10px; box-shadow: 0 30px 60px rgba(29, 63, 115, .15); }
	body.vitrine .al-topo .vt-mega-painel a, body.vitrine .al-topo .vt-menu-cat-lista a, body.vitrine .al-topo .vt-menu-dep-lista a { color: #1d3f73 !important; }
	body.vitrine .al-topo .vt-mega-painel a::after, body.vitrine .al-topo .vt-menu-cat-lista a::after { display: none; }
	body.vitrine .al-topo .vt-mega-prod img { border-radius: 8px; background: #ecebe7; }
}

/* ---------- rodape proprio (rodape.php): planta baixa e linhas de cota ---------- */
.al-rodape { padding-top: 0; }
.al-assinatura { display: grid; justify-items: center; gap: 20px; margin-bottom: 44px; padding: 48px 24px; background: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 24px 24px, #1d3f73; text-align: center; }
.al-frase { max-width: 760px; margin: 0; font-family: var(--fonte-titulos), sans-serif; font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.al-cotas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; margin: 0; padding: 0; list-style: none; }
.al-cotas li { position: relative; padding: 0 0 10px; color: #dfe7f3; font-size: 13.5px; font-weight: 500; }
.al-cotas li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; border-left: 1px solid #f0b49f; border-right: 1px solid #f0b49f; background: linear-gradient(#f0b49f, #f0b49f) 0 50% / 100% 1px no-repeat; }
.al-rodape h3 { font-family: var(--fonte-titulos), sans-serif !important; color: #fff !important; }
.al-rodape .vt-redes a { border-radius: 6px; }

/* ---------- pagina do produto premium ---------- */
.tema-alicerce .pp, .tema-alicerce .ppa { --pp-titulo-tam: 32px; --pp-preco-tam: 36px; --pp-raio: 10px; --pp-raio-botao: 8px; --pp-suave: var(--al-cinza); --pp-borda: var(--al-linha); --pp-acento: var(--al-tinta); }
.tema-alicerce .pp-nome { font-weight: 700; letter-spacing: -.02em; }
.tema-alicerce .pp-marca { color: var(--al-tijolo); }
.tema-alicerce .pp-foto, .tema-alicerce .pp-mini { background: var(--al-cinza); }
.tema-alicerce .pp-preco { background: #fff; border: 1px solid var(--al-linha); border-top: 4px solid var(--al-tinta); }
.tema-alicerce .pp-preco-valor { font-weight: 700; }
.tema-alicerce .pp-preco-off { border-radius: 4px; background: var(--al-tijolo); color: #fff; }
.tema-alicerce .pp .opcao.pp-op.active { --pp-op-borda: var(--al-tinta); --pp-op-fundo: #eef3fa; --pp-op-sombra: 0 0 0 3px rgba(29, 63, 115, .15); }
.tema-alicerce .pp-variacao-cartao .pp-var:not(.pp-var-cores) .opcao.pp-op.active::before { border-color: var(--al-tinta); background: var(--al-tinta); }
.tema-alicerce .pp .pp-botao { background: var(--al-tijolo); color: #fff; --pp-b-sombra: 0 10px 22px rgba(208, 83, 44, .28); --pp-b-peso: 700; }
.tema-alicerce .pp .pp-botao:hover { background: #b9451f; color: #fff; }
.tema-alicerce .pp .pp-agora { border-color: var(--al-tinta); color: var(--al-tinta); }
.tema-alicerce .pp .pp-agora:hover { background: var(--al-tinta); color: #fff; }
.tema-alicerce .pp-selo { border-radius: 4px; background: var(--al-tijolo); color: #fff; }
.tema-alicerce .pp-garantias svg { border-radius: 6px; background: #eef3fa; color: var(--al-tinta); }
.tema-alicerce .ppa .ppa-abas button { font-family: var(--fonte-titulos), sans-serif; font-weight: 600; }
.tema-alicerce .ppa-destaques li { background: #fff; border: 1px solid var(--al-linha); border-radius: 8px; }
.tema-alicerce .ppa-destaques li::before { background-color: var(--al-tijolo); }

/* ---------- carrinho (carrinho.php): parede de tijolos ---------- */
body.vitrine.tema-alicerce .ck h1 { font-size: 38px; color: var(--al-tinta); }
body.vitrine.tema-alicerce .co-passos .atual { color: var(--al-tijolo); }
body.vitrine.tema-alicerce .ck-item, body.vitrine.tema-alicerce .co-bloco { border: 1px solid var(--al-linha); border-radius: 10px; background: #fff; }
body.vitrine.tema-alicerce .ck-foto img { background: var(--al-cinza); border-radius: 8px; }
body.vitrine.tema-alicerce .ck-resumo { border: 1px solid var(--al-linha); border-top: 4px solid var(--al-tinta); border-radius: 10px; background: #fff; }
body.vitrine.tema-alicerce .ck-finalizar { border-radius: 8px !important; background: #d0532c !important; color: #fff !important; }
.al-frete { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 18px; padding: 14px 20px; border: 1px solid #dcdad3; border-radius: 10px; background: #fff; }
.al-frete p { grid-column: 2; margin: 0; font-size: 14px; }
.al-frete p b { color: #d0532c; }
.al-parede { grid-row: span 2; display: flex; flex-wrap: wrap-reverse; gap: 2px; width: 62px; padding-bottom: 3px; border-bottom: 3px solid #1d3f73; }
.al-parede i { display: block; width: 14px; height: 9px; border-radius: 1px; background: #d0532c; opacity: .12; transition: opacity .4s; }
.al-parede i:nth-child(5), .al-parede i:nth-child(6), .al-parede i:nth-child(7), .al-parede i:nth-child(8) { transform: translateX(7px); }
.al-parede i:nth-child(1) { opacity: clamp(.12, calc(var(--al-p) / 12.5), 1); }
.al-parede i:nth-child(2) { opacity: clamp(.12, calc((var(--al-p) - 12.5) / 12.5), 1); }
.al-parede i:nth-child(3) { opacity: clamp(.12, calc((var(--al-p) - 25) / 12.5), 1); }
.al-parede i:nth-child(4) { opacity: clamp(.12, calc((var(--al-p) - 37.5) / 12.5), 1); }
.al-parede i:nth-child(5) { opacity: clamp(.12, calc((var(--al-p) - 50) / 12.5), 1); }
.al-parede i:nth-child(6) { opacity: clamp(.12, calc((var(--al-p) - 62.5) / 12.5), 1); }
.al-parede i:nth-child(7) { opacity: clamp(.12, calc((var(--al-p) - 75) / 12.5), 1); }
.al-parede i:nth-child(8) { opacity: clamp(.12, calc((var(--al-p) - 87.5) / 12.5), 1); }
.al-barra { grid-column: 2; display: block; height: 6px; border-radius: 6px; background: #ecebe7; overflow: hidden; }
.al-barra i { display: block; height: 100%; border-radius: 6px; background: #1d3f73; transition: width .6s ease; }

@media (max-width: 991px) { .al-etapas { grid-template-columns: 1fr 1fr; } .al-etapas p:nth-child(3) { border-left: 0; } .al-etapas p:nth-child(n+3) { border-top: 1px solid #dcdad3; } }
@media (max-width: 767px) {
	.tema-alicerce .vt-secao-cab h2 { font-size: 25px; }
	.al-etapas p { padding: 14px 12px 14px 56px; }
	.al-etapas b { left: 12px; top: 16px; width: 32px; height: 32px; }
	.al-etapas strong { font-size: 15px; }
	.al-frase { font-size: 24px; }
	.al-topo .vt-marca img { height: 38px; max-width: 160px; }
	.tema-alicerce .pp, .tema-alicerce .ppa { --pp-titulo-tam: 25px; --pp-preco-tam: 30px; }
}

/* newsletter: a caixa do campo segue o formato do botao do tema (a base deixa em pilula) */
body.vitrine.tema-alicerce .vt-news-campo { border-radius: 12px; }
