/* Modelo visual do blog do Vila Verde. Usa os tokens e componentes de ../assets/css/style.css. */

/* ---------- topo das páginas do blog */
.blog-topo { position: relative; padding: calc(150px + env(safe-area-inset-top, 0px)) 0 clamp(48px, 8vw, 84px); background: radial-gradient(120% 90% at 80% 0%, #1d3b2a 0%, var(--verde-fundo) 55%, var(--preto) 100%); }
.blog-topo .h2 { margin-top: 18px; max-width: 16ch; text-wrap: balance; }
.blog-topo .lead { margin-top: 18px; max-width: 52ch; color: rgba(247,245,240,.72); }

/* ---------- categorias */
.cats { display: flex; gap: 10px; margin-top: 34px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; color: var(--off-white); font-size: .88rem; text-decoration: none; border: 1px solid rgba(255,255,255,.18); transition: background .25s, border-color .25s, color .25s; }
.cat:hover { border-color: var(--dourado); }
.cat.is-on { background: var(--dourado); border-color: var(--dourado); color: var(--preto); font-weight: 600; }

/* ---------- destaque */
.destaque { display: grid; margin-top: clamp(36px, 6vw, 56px); border-radius: 26px; overflow: hidden; background: #0b1610; text-decoration: none; color: inherit; }
.destaque figure { margin: 0; aspect-ratio: 16/10; overflow: hidden; }
.destaque img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.destaque:hover img { transform: scale(1.04); }
.destaque-txt { display: grid; align-content: center; gap: 14px; padding: clamp(24px, 4vw, 48px); }
.destaque-txt .h3 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); text-wrap: balance; }
.destaque-txt p { color: rgba(247,245,240,.72); max-width: 46ch; }
@media (min-width: 900px) { .destaque { grid-template-columns: 1.25fr 1fr; } .destaque figure { aspect-ratio: auto; min-height: 420px; } }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .78rem; letter-spacing: .04em; color: var(--texto-claro); }
.selo { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: rgba(201,168,76,.16); color: var(--dourado-light); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.card .selo { background: rgba(201,168,76,.18); color: #7a5d12; }

/* ---------- lista */
.blog-lista { background: var(--off-white); color: var(--texto-escuro); padding-block: clamp(56px, 9vw, 110px); }
.lista-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; }
.lista-head .h3 { color: var(--verde-escuro); }
.busca { position: relative; flex: 1 1 260px; max-width: 360px; }
.busca input { width: 100%; min-height: 46px; padding: 0 18px 0 44px; border-radius: 999px; border: 1px solid var(--borda); background: #fff; font: inherit; color: var(--texto-escuro); }
.busca input:focus-visible { outline: 2px solid var(--dourado); outline-offset: 2px; }
.busca svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--texto-claro); }
.grade { display: grid; gap: 28px; margin-top: 34px; }
@media (min-width: 640px) { .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--borda); text-decoration: none; color: inherit; transition: transform .35s ease, box-shadow .35s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18,39,28,.12); }
.card figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card-txt { display: grid; align-content: start; gap: 10px; padding: 20px 22px 24px; }
.card-txt h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.12; color: var(--verde-escuro); text-wrap: balance; }
.card-txt p { color: var(--texto-medio); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mais { display: flex; justify-content: center; margin-top: 44px; }
.btn-escuro { min-height: 48px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--verde-escuro); color: var(--verde-escuro); background: transparent; font: inherit; font-weight: 500; cursor: pointer; }
.btn-escuro:hover { background: var(--verde-escuro); color: var(--off-white); }

/* ---------- faixa de orçamento */
.faixa-orc { background: var(--verde-fundo); padding-block: clamp(56px, 9vw, 96px); text-align: center; }
.faixa-orc .kicker { justify-content: center; }
.faixa-orc .h2 { max-width: 18ch; margin: 14px auto 0; text-wrap: balance; }
.faixa-orc .btn { margin-top: 28px; }

/* ---------- post */
.post-topo { position: relative; min-height: min(86svh, 760px); display: grid; align-items: end; padding: calc(140px + env(safe-area-inset-top, 0px)) 0 clamp(36px, 6vw, 64px); overflow: hidden; }
.post-topo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-topo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,11,9,.35) 0%, rgba(8,11,9,.2) 40%, rgba(8,11,9,.92) 100%); }
.post-topo .shell { position: relative; z-index: 2; }
.post-topo h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 7vw, 5rem); line-height: 1; max-width: 18ch; margin: 16px 0 18px; text-wrap: balance; }
.migalha { font-size: .8rem; color: rgba(247,245,240,.7); }
.migalha a { color: inherit; text-decoration: none; }
.migalha a:hover { color: var(--dourado-light); }

.artigo { background: var(--off-white); color: var(--texto-escuro); padding-block: clamp(48px, 8vw, 96px); }
.artigo-corpo { max-width: 700px; margin: 0 auto; font-size: 1.06rem; line-height: 1.8; }
.artigo-corpo > * + * { margin-top: 1.1em; }
.artigo-corpo h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.1; color: var(--verde-escuro); margin-top: 1.8em; }
.artigo-corpo .abre { font-size: 1.22rem; line-height: 1.6; color: var(--verde-escuro); }
.artigo-corpo figure { margin: 2em 0; }
.artigo-corpo figure img { width: 100%; border-radius: var(--r-md); }
.artigo-corpo figcaption { margin-top: 10px; font-size: .84rem; color: var(--texto-claro); }
.artigo-corpo ul { padding-left: 1.2em; }
.artigo-corpo li + li { margin-top: .4em; }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dupla img { aspect-ratio: 3/4; object-fit: cover; }

.ficha { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin: 2em 0; border-radius: var(--r-md); overflow: hidden; background: var(--borda); border: 1px solid var(--borda); }
.ficha div { background: #fff; padding: 16px 18px; }
.ficha b { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-claro); font-weight: 600; }
.ficha span { display: block; margin-top: 4px; font-family: var(--serif); font-size: 1.35rem; color: var(--verde-escuro); }

.orc-card { margin: 2.4em 0; padding: clamp(24px, 4vw, 36px); border-radius: 26px; background: radial-gradient(120% 120% at 100% 0%, #1d3b2a, var(--verde-fundo)); color: var(--off-white); display: grid; gap: 14px; }
.orc-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.05; }
.orc-card p { color: rgba(247,245,240,.75); }
.orc-card .btn { justify-self: start; }

.relacionados { background: var(--off-white); color: var(--texto-escuro); padding-block: 0 clamp(64px, 10vw, 120px); }
.relacionados .h3 { color: var(--verde-escuro); text-align: center; }

/* ===== versão clara (pedido do Miguel em 13/10): fundo branco em tudo; verde só na faixa "Seu evento aqui" ===== */
.blog-claro { background: var(--off-white); color: var(--texto-escuro); }
.blog-claro .kicker::before { display: none; }
.blog-claro .nav-pill { background: rgba(18, 39, 28, 0.94); }
.blog-topo { background: var(--off-white); color: var(--texto-escuro); }
.blog-topo .h2, .blog-topo .kicker { color: var(--verde-escuro); }
.blog-topo .kicker { color: #8a6a1c; }
.blog-topo .lead { color: var(--texto-medio); }
.cat { color: var(--verde-escuro); border-color: var(--borda); background: #fff; }
.cat.is-on { color: var(--preto); }
.destaque { background: #fff; border: 1px solid var(--borda); }
.destaque-txt .h3 { color: var(--verde-escuro); }
.destaque-txt p { color: var(--texto-medio); }
.selo, .destaque .selo { background: rgba(201,168,76,.18); color: #7a5d12; }
.blog-lista { padding-top: 0; }
.post-topo { min-height: 0; display: block; padding: calc(140px + env(safe-area-inset-top, 0px)) 0 0; background: var(--off-white); color: var(--texto-escuro); }
.post-topo::after { display: none; }
.post-topo > img { position: static; display: block; width: min(var(--maxw), calc(100% - 2 * var(--gutter))); height: auto; aspect-ratio: 16/8; margin: 34px auto 0; border-radius: 26px; }
.post-topo h1 { color: var(--verde-escuro); }
.post-topo .meta { color: var(--texto-claro) !important; }
.migalha { color: var(--texto-claro); }
.migalha a:hover { color: #8a6a1c; }
.orc-card { background: #fff; color: var(--texto-escuro); border: 1px solid var(--borda); box-shadow: 0 18px 40px rgba(18,39,28,.08); }
.orc-card h3 { color: var(--verde-escuro); }
.orc-card p { color: var(--texto-medio); }
.orc-card .kicker { color: #8a6a1c !important; }
.faixa-orc { color: var(--off-white); }

/* ---------- WordPress: post sem imagem de capa, paginação, conteúdo do editor */
.sem-imagem { background: #fff; border-bottom: 1px solid var(--borda); }
.destaque .sem-imagem { border-bottom: 0; border-right: 1px solid var(--borda); min-height: 260px; }
.vazio { margin-top: 34px; color: var(--texto-medio); }
.paginas ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 44px 0 0; padding: 0; list-style: none; }
.paginas a, .paginas span { display: inline-flex; align-items: center; min-height: 42px; min-width: 42px; justify-content: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--borda); color: var(--verde-escuro); text-decoration: none; background: #fff; }
.paginas .current { background: var(--verde-escuro); color: var(--off-white); border-color: var(--verde-escuro); }
.artigo-corpo a { color: #7a5d12; }
.artigo-corpo img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.artigo-corpo .wp-block-image, .artigo-corpo .wp-block-gallery { margin: 2em 0; }
.artigo-corpo .wp-block-image figcaption, .artigo-corpo .wp-element-caption { margin-top: 10px; font-size: .84rem; color: var(--texto-claro); text-align: left; }
.artigo-corpo .wp-block-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.artigo-corpo .wp-block-gallery img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.artigo-corpo blockquote { margin: 2em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--dourado); font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; color: var(--verde-escuro); }
.artigo-corpo h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--verde-escuro); margin-top: 1.6em; }
.artigo-corpo ol { padding-left: 1.3em; }
.artigo-corpo hr { border: 0; border-top: 1px solid var(--borda); margin: 2.4em 0; }
.blog-home { padding-block: clamp(64px, 10vw, 120px); }
.blog-home .lista-head { align-items: center; }
.blog-home .kicker { color: #8a6a1c; }
.blog-home .kicker::before { display: none; }
.blog-home .ver-todas { display: flex; justify-content: center; margin-top: 40px; }
