/* [cfp_novidades] — faixa horizontal de eventos e notícias. Cores do cabeçalho (--cfp-*): segue o modo claro/escuro sozinho. */
.cfpv { --v-cartao: #ffffff; --v-fundo2: #f4f6f7; --v-sombra: 0 1px 2px rgba(16, 34, 44, 0.05), 0 8px 24px rgba(16, 34, 44, 0.07); --v-gap: 14px;
    box-sizing: border-box; max-width: 1240px; margin: 44px auto 28px; font-family: 'Inter', 'Segoe UI', Roboto, sans-serif; color: var(--cfp-tinta); line-height: 1.45; }
html.ceclimar-dark-mode .cfpv { --v-cartao: #1c1c1c; --v-fundo2: #242424; --v-sombra: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.cfpv *, .cfpv *::before, .cfpv *::after { box-sizing: border-box; }
.cfpv a { text-decoration: none !important; color: inherit; }
.cfpv p, .cfpv h2, .cfpv h3 { margin: 0; padding: 0; }
.cfpv-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cfpv .cfpv-h2 { display: flex; align-items: center; gap: 10px; font: 700 clamp(1.4rem, 2.4vw, 1.8rem)/1.2 'Fraunces', Georgia, serif; color: var(--cfp-tinta); }
.cfpv-h2::before { content: ''; flex: none; width: 10px; height: 10px; margin-right: 4px; border-radius: 50%; background: var(--cfp-agua); box-shadow: 4px 0 0 var(--cfp-coral); }
.cfpv-acoes { display: flex; align-items: center; gap: 16px; }
.cfpv .cfpv-link { font-size: 0.86rem; font-weight: 700; color: var(--cfp-agua) !important; }
.cfpv .cfpv-link:hover { color: var(--cfp-coral) !important; }
.cfpv-nav { display: flex; gap: 6px; }
.cfpv-nav button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--v-cartao); box-shadow: var(--v-sombra); color: var(--cfp-tinta);
    font: 700 1rem 'Inter', sans-serif; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease; }
.cfpv-nav button:hover:not(:disabled) { background: var(--cfp-tinta); color: var(--v-cartao); }
.cfpv-nav button:disabled { opacity: 0.35; cursor: default; box-shadow: none; }

/* faixa: 4 cards visíveis, rola para o lado (setas, roda do mouse com shift, dedo) */
.cfpv-faixa { display: flex; gap: var(--v-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 14px; margin: -4px -2px 0; overscroll-behavior-x: contain; }
.cfpv-faixa::-webkit-scrollbar { display: none; }
.cfpv-faixa:focus-visible { outline: 2px solid var(--cfp-agua); outline-offset: 4px; border-radius: 12px; }
.cfpv-card { position: relative; flex: 0 0 calc((100% - 3 * var(--v-gap)) / 4); display: flex; flex-direction: column; scroll-snap-align: start; overflow: hidden;
    border-radius: 18px; background: var(--v-cartao); box-shadow: var(--v-sombra); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.cfpv-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16, 34, 44, 0.06), 0 14px 32px rgba(16, 34, 44, 0.12); }
html.ceclimar-dark-mode .cfpv-card:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 14px 32px rgba(0, 0, 0, 0.5); }
.cfpv-card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--v-fundo2); }
.cfpv-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cfpv-card:hover .cfpv-card-img img { transform: scale(1.04); }
.cfpv-card-img.sem { display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 140% at 0% 0%, #13706a 0%, #0e2a3f 55%, #0a1c2b 100%); }
.cfpv-card-img.sem img { width: auto; height: 58%; object-fit: contain; }
.cfpv-card-txt { display: flex; flex-direction: column; gap: 5px; flex: 1; padding: 13px 16px 16px; }
.cfpv-card-txt time { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cfp-agua); }
.cfpv-card-titulo { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 600 0.98rem/1.32 'Fraunces', Georgia, serif; }
.cfpv-card-noticia:hover .cfpv-card-titulo { color: var(--cfp-coral); }

/* evento: arte inteira sobre um fundo desfocado dela mesma, selo, período e contagem */
.cfpv-arte::before { content: ''; position: absolute; inset: -20px; background: var(--arte) center / cover; filter: blur(18px) brightness(0.7); }
.cfpv-arte img { position: relative; object-fit: contain; }
.cfpv-card-evento .cfpv-card-img img { transform: none !important; }
.cfpv-selo { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--cfp-coral); color: #fff; font: 800 0.62rem 'Inter', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.cfpv-ev-quando { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cfp-coral); }
.cfpv-ev-quando b { font: 700 1.05rem/1 'Fraunces', Georgia, serif; letter-spacing: 0; }
.cfpv-ev-quando i { margin-left: auto; font-style: normal; font-size: 0.66rem; letter-spacing: 0.04em; text-transform: none; color: var(--cfp-suave); }
.cfpv-ev-quando i.is-breve, .cfpv-ev-quando i.is-hoje { color: #c2571f; }
.cfpv-ev-quando i.is-agora { color: #1d9a52; }
.cfpv-ev-local { font-size: 0.8rem; font-weight: 600; color: var(--cfp-suave); }
.cfpv .cfpv-mais { align-self: flex-start; margin-top: auto; padding: 6px 13px; border: 0; border-radius: 999px; background: var(--cfp-tinta); color: var(--v-cartao) !important; font: 700 0.78rem 'Inter', sans-serif; cursor: pointer; transition: background 0.2s ease; }
.cfpv .cfpv-mais:hover { background: var(--cfp-agua); color: #fff !important; }

/* janela do "Saiba mais" */
.cfpv-janela-ev { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0 0 22px; border: 0; border-radius: 22px; background: var(--v-cartao); color: var(--cfp-tinta);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); font-family: 'Inter', 'Segoe UI', Roboto, sans-serif; overflow: auto; }
.cfpv-janela-ev::backdrop { background: rgba(6, 18, 28, 0.55); backdrop-filter: blur(4px); }
.cfpv-janela-ev > img { display: block; width: 100%; max-height: 260px; object-fit: contain; background: #0e2a3f; }
.cfpv-janela-ev > p, .cfpv-janela-ev > h3, .cfpv-janela-ev > div { margin: 14px 24px 0; }
.cfpv-janela-ev h3 { font: 700 1.35rem/1.25 'Fraunces', Georgia, serif; }
.cfpv-janela-ev .cfpv-ev-texto { font-size: 0.93rem; line-height: 1.6; }
.cfpv-janela-ev .cfpv-ev-texto p { margin: 0 0 0.8em; }
.cfpv-fecha { position: sticky; float: right; top: 10px; margin: 10px 10px -48px 0; z-index: 1; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: #0e2a3f; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }

/* o tema (Hello) pinta todo <button> de rosa: aqui as cores são as da seção */
.cfpv .cfpv-fecha, .cfpv .cfpv-fecha:hover, .cfpv .cfpv-fecha:focus { background: rgba(255, 255, 255, 0.92) !important; color: #0e2a3f !important; border: 0 !important; }
.cfpv .cfpv-nav button { border: 0 !important; }
.cfpv .cfpv-nav button:hover:not(:disabled), .cfpv .cfpv-nav button:focus-visible { background: var(--cfp-tinta) !important; color: var(--v-cartao) !important; }
.cfpv .cfpv-nav button:not(:hover) { background: var(--v-cartao) !important; color: var(--cfp-tinta) !important; }
.cfpv button.cfpv-mais { border: 0 !important; background: var(--cfp-tinta) !important; color: var(--v-cartao) !important; }
.cfpv button.cfpv-mais:hover { background: var(--cfp-agua) !important; color: #fff !important; }

@media (max-width: 1000px) { .cfpv-card { flex-basis: calc((100% - 2 * var(--v-gap)) / 3); } }
@media (max-width: 760px) { .cfpv-card { flex-basis: calc((100% - var(--v-gap)) / 2.15); } }
@media (max-width: 520px) {
    .cfpv { margin-top: 32px; }
    .cfpv-card { flex-basis: 78%; }
    .cfpv-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cfpv *, .cfpv-faixa { transition: none !important; scroll-behavior: auto; } }
