/* [cfp_ensino] — cursos e serviços de apoio; [cfp_biblioteca] — card da Biblioteca (foto ao fundo, contatos, dúvidas frequentes se revezando). */
.cfpe, .cfpe-bib { --e-titulo: #2a4b7c; --e-cartao: #fff; --e-fundo2: #f4f6f7; --e-borda: rgba(14, 42, 63, 0.09); --e-sombra: 0 1px 2px rgba(14, 42, 63, 0.05), 0 8px 24px rgba(14, 42, 63, 0.07);
    --e-agua: var(--cfp-agua, #0d8f84); --e-coral: var(--cfp-coral, #e0705f); --e-suave: var(--cfp-suave, #5f6b75); --e-tinta: var(--cfp-tinta, #16222c); --e-linha: var(--cfp-linha, rgba(0, 0, 0, 0.08));
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif; color: var(--e-tinta); line-height: 1.45; }
html.ceclimar-dark-mode .cfpe, html.ceclimar-dark-mode .cfpe-bib { --e-titulo: #8fb4e8; --e-cartao: #1b232c; --e-fundo2: #232d37; --e-borda: rgba(255, 255, 255, 0.08); --e-sombra: 0 8px 24px rgba(0, 0, 0, 0.3); --e-agua: #3cc7b8; }
.cfpe *, .cfpe *::before, .cfpe *::after, .cfpe-bib *, .cfpe-bib *::before, .cfpe-bib *::after { box-sizing: border-box; }
.cfpe.cfpe h2, .cfpe-bib.cfpe-bib h3, .cfpe.cfpe p, .cfpe-bib.cfpe-bib p, .cfpe.cfpe ul, .cfpe-bib.cfpe-bib ul { margin: 0; padding: 0; }
.cfpe.cfpe ul, .cfpe-bib.cfpe-bib ul { list-style: none; }
.cfpe.cfpe ul > li, .cfpe-bib.cfpe-bib ul > li { margin: 0; padding: 0; list-style: none; }
.cfpe a, .cfpe-bib a { text-decoration: none !important; color: inherit; }
.cfpe svg, .cfpe-bib svg { display: block; flex: none; }

.cfpe-secao { margin-bottom: 56px; }
.cfpe-secao:last-child { margin-bottom: 0; }
.cfpe.cfpe .cfpe-h2 { margin-bottom: 6px; font: 700 clamp(1.3rem, 2.2vw, 1.6rem)/1.25 'Inter', sans-serif; color: var(--e-titulo); text-transform: none; letter-spacing: -0.01em; }
.cfpe.cfpe .cfpe-intro { margin-bottom: 20px; font-size: 1rem; line-height: 1.7; color: var(--e-suave); }

/* ícone em quadradinho, endereço e seta (comum aos cursos e ao apoio) */
.cfpe-ic { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: rgba(13, 143, 132, 0.1); color: var(--e-agua); }
.cfpe-ic svg { width: 26px; height: 26px; }
.cfpe-url { display: block; margin-top: 3px; font-size: 0.8rem; color: var(--e-suave); overflow-wrap: anywhere; }
.cfpe-seta { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-left: auto; border-radius: 50%; background: var(--e-fundo2); color: var(--e-titulo); transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.cfpe-seta svg { width: 16px; height: 16px; }

/* cards com foto (cursos e apoio): a foto fica por cima da ilustração, que só aparece se a foto não carregar; o card todo é o link */
.cfpe.cfpe .cfpe-cursos, .cfpe.cfpe .cfpe-apoio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cfpe.cfpe .cfpe-apoio { margin-top: 18px; }
.cfpe.cfpe .cfpe-card { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--e-cartao); box-shadow: var(--e-sombra), inset 0 0 0 1px var(--e-borda);
    transition: transform 0.25s ease, box-shadow 0.25s ease; }
.cfpe.cfpe .cfpe-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(14, 42, 63, 0.06), 0 18px 40px rgba(14, 42, 63, 0.13), inset 0 0 0 1px var(--e-borda); }
.cfpe-tom-presencial { --g1: #0d8f84; --g2: #2a4b7c; --tom: var(--e-agua); --tom-f: rgba(13, 143, 132, 0.1); }
.cfpe-tom-distancia { --g1: #e0705f; --g2: #2a4b7c; --tom: var(--e-coral); --tom-f: rgba(224, 112, 95, 0.12); }
.cfpe-tom-colecao { --g1: #2f9e6e; --g2: #0d8f84; --tom: var(--e-agua); --tom-f: rgba(13, 143, 132, 0.1); }
.cfpe-tom-dabmar { --g1: #2a4b7c; --g2: #5b4c8a; --tom: #5b6fd0; --tom-f: rgba(91, 111, 208, 0.12); }
html.ceclimar-dark-mode .cfpe-tom-dabmar { --tom: #9aa8f0; }
.cfpe-capa { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.cfpe-item .cfpe-capa { aspect-ratio: 2 / 1; }
.cfpe-capa-ilustra { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.9); }
.cfpe-capa-ilustra svg { width: 22%; height: auto; stroke-width: 1.2; }
.cfpe.cfpe .cfpe-capa img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 0; transition: transform 0.6s ease; }
.cfpe-card:hover .cfpe-capa img { transform: scale(1.04); }
/* imagem inteira (logo): ela mesma, desfocada, preenche o fundo */
.cfpe-capa.is-inteira::before { content: ''; position: absolute; inset: -20px; background: var(--foto) center / cover no-repeat; filter: blur(18px) saturate(1.2); opacity: 0.55; }
.cfpe-capa.is-inteira.sem-foto::before { display: none; }
.cfpe.cfpe .cfpe-capa.is-inteira img { inset: 10%; width: 80%; height: 80%; object-fit: contain; }
.cfpe-card:hover .cfpe-capa.is-inteira img { transform: scale(1.03); }

.cfpe-card-corpo { display: flex; align-items: center; gap: 16px; flex: 1; padding: 18px 20px 20px; }
.cfpe-card .cfpe-ic { background: var(--tom-f); color: var(--tom); }
.cfpe-card-txt { min-width: 0; }
.cfpe-card-txt small { display: block; margin-bottom: 3px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--e-suave); }
.cfpe .cfpe-card-link { display: block; font: 700 1.12rem/1.28 'Inter', sans-serif; color: var(--e-titulo) !important; }
.cfpe-item .cfpe-card-link { font-size: 1.02rem; }
.cfpe .cfpe-card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }   /* o card todo clica */
.cfpe .cfpe-card-link:focus-visible { outline: none; }
.cfpe .cfpe-card:has(.cfpe-card-link:focus-visible) { outline: 3px solid var(--e-agua); outline-offset: 3px; }
.cfpe .cfpe-card:hover .cfpe-seta { background: var(--e-titulo); color: var(--e-cartao); }

/* vídeo do curso: botão por cima do link do card */
.cfpe .cfpe-play { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 28px); margin: 0 !important; padding: 6px 16px 6px 6px !important; border: 0 !important; border-radius: 999px !important;
    background: rgba(10, 20, 30, 0.62) !important; color: #fff !important; backdrop-filter: blur(6px); font: 600 0.86rem/1.25 'Inter', sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; text-align: left; white-space: normal !important; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.cfpe .cfpe-play:hover { background: rgba(10, 20, 30, 0.8) !important; transform: scale(1.03); }
.cfpe .cfpe-play:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cfpe-play-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #e0705f; }
.cfpe-play-ic svg { width: 18px; height: 18px; margin-left: 2px; }
.cfpe-video { width: min(960px, calc(100vw - 24px)); margin: auto; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.cfpe-video::backdrop { background: rgba(6, 14, 22, 0.75); backdrop-filter: blur(4px); }
.cfpe-video-tela { aspect-ratio: 16 / 9; }
.cfpe-video-tela iframe { display: block; width: 100%; height: 100%; border: 0; }
.cfpe .cfpe-video-fecha { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.6) !important; color: #fff !important; font: 400 1.5rem/1 'Inter', sans-serif !important; cursor: pointer; }

/* laboratórios de ensino: foto (com ilustração por baixo, caso a foto não carregue), sala, o que tem e responsável */
.cfpe.cfpe .cfpe-labs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cfpe.cfpe .cfpe-lab { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--e-cartao); box-shadow: var(--e-sombra), inset 0 0 0 1px var(--e-borda); }
.cfpe-lab-foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #0d8f84, #2a4b7c); }
.cfpe-lab:nth-child(2) .cfpe-lab-foto { background: linear-gradient(135deg, #2a4b7c, #5b4c8a); }
.cfpe-lab:nth-child(3) .cfpe-lab-foto { background: linear-gradient(135deg, #e0705f, #2a4b7c); }
.cfpe-lab-ilustra { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.9); }
.cfpe-lab-ilustra svg { width: 34%; height: auto; stroke-width: 1.2; }
.cfpe.cfpe .cfpe-lab-foto img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center 45%; border-radius: 0; transition: transform 0.6s ease; }
.cfpe-lab:hover .cfpe-lab-foto img { transform: scale(1.04); }
.cfpe-lab-sala { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: #16222c; font: 700 0.72rem/1.2 'Inter', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
.cfpe-lab-corpo { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 20px 20px; }
.cfpe.cfpe .cfpe-lab h3 { margin: 0; font: 700 1.08rem/1.3 'Inter', sans-serif; color: var(--e-titulo); }
.cfpe.cfpe .cfpe-lab-predio { font-size: 0.8rem; font-weight: 600; color: var(--e-agua); }
.cfpe.cfpe .cfpe-lab-tem { font-size: 0.9rem; line-height: 1.55; color: var(--e-suave); }
.cfpe.cfpe .cfpe-lab-resp { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--e-linha); font-size: 0.85rem; font-weight: 600; }
.cfpe-lab-resp svg { width: 15px; height: 15px; color: var(--e-agua); }
.cfpe-labs-agenda { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 20px; border-radius: 18px; background: var(--e-fundo2); box-shadow: inset 0 0 0 1px var(--e-borda); }
.cfpe.cfpe .cfpe-labs-agenda p { flex: 1; min-width: 0; font-size: 0.9rem; line-height: 1.55; color: var(--e-suave); }
.cfpe-labs-agenda b { display: block; font-size: 0.98rem; color: var(--e-tinta); }
.cfpe .cfpe-labs-agenda p a { color: var(--e-agua) !important; font-weight: 600; text-decoration: underline !important; text-underline-offset: 2px; }
.cfpe .cfpe-labs-mais { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--e-titulo); color: #fff !important; font-weight: 700; font-size: 0.9rem; transition: filter 0.2s ease, transform 0.2s ease; }
html.ceclimar-dark-mode .cfpe .cfpe-labs-mais { color: #0f1a26 !important; }
.cfpe .cfpe-labs-mais:hover { filter: brightness(1.1); transform: translateY(-1px); }
.cfpe-labs-mais svg { width: 15px; height: 15px; }

/* ---------- Biblioteca ---------- */
.cfpe-bib { position: relative; overflow: hidden; border-radius: 24px; background: var(--e-cartao); box-shadow: var(--e-sombra), inset 0 0 0 1px var(--e-borda); scroll-margin-top: 110px; }
.cfpe-bib-corpo > :not(.cfpe-bib-foto) { position: relative; z-index: 1; }   /* conteúdo na frente da foto */
/* foto da biblioteca à direita (só na parte de cima, não atrás das dúvidas), esmaecendo para o lado do texto */
.cfpe-bib-foto { position: absolute; inset: 0 0 0 38%; pointer-events: none; overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 60%); mask-image: linear-gradient(to right, transparent 0%, #000 60%); }
.cfpe-bib-foto::before { content: ''; position: absolute; inset: 0; background: var(--foto) 60% 40% / cover no-repeat; opacity: 0.3; filter: saturate(0.7); }
html.ceclimar-dark-mode .cfpe-bib-foto::before { opacity: 0.2; filter: saturate(0.55) brightness(0.8); }
.cfpe-bib-corpo { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; padding: clamp(22px, 3.2vw, 34px); }
.cfpe-bib.cfpe-bib .cfpe-bib-logo { display: block; width: 104px; height: 104px; margin: 0; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(14, 42, 63, 0.18); }
.cfpe-bib-sobre { margin-bottom: 4px !important; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--e-agua); }
.cfpe-bib.cfpe-bib h3 { margin-bottom: 10px; font: 700 clamp(1.35rem, 2.4vw, 1.75rem)/1.15 'Fraunces', Georgia, serif; letter-spacing: -0.01em; color: var(--e-tinta); }
.cfpe-bib-hora { display: flex; align-items: center; gap: 8px; margin-bottom: 14px !important; font-size: 0.92rem; color: var(--e-suave); }
.cfpe-bib-hora svg { width: 17px; height: 17px; color: var(--e-agua); }
.cfpe-bib.cfpe-bib .cfpe-bib-contatos { display: flex; flex-wrap: wrap; gap: 8px; }
.cfpe-bib-contatos a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 13px; border-radius: 999px; background: var(--e-fundo2); box-shadow: inset 0 0 0 1px var(--e-borda);
    font-size: 0.86rem; font-weight: 600; color: var(--e-tinta) !important; transition: box-shadow 0.2s ease, color 0.2s ease; }
.cfpe-bib-contatos a:hover { box-shadow: inset 0 0 0 1.5px var(--e-agua); color: var(--e-agua) !important; }
.cfpe-bib-contatos svg { width: 15px; height: 15px; color: var(--e-agua); }
.cfpe-bib-contatos small { margin-left: 2px; font-size: 0.76rem; font-weight: 500; color: var(--e-suave); }
.cfpe-bib-acervo { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 18px; background: var(--e-titulo); color: #fff !important; font-weight: 800; font-size: 1.02rem;
    box-shadow: 0 8px 22px rgba(42, 75, 124, 0.3); transition: transform 0.2s ease, filter 0.2s ease; }
html.ceclimar-dark-mode .cfpe-bib-acervo { color: #0f1a26 !important; box-shadow: none; }
.cfpe-bib-acervo:hover { transform: translateY(-2px); filter: brightness(1.1); }
.cfpe-bib-acervo svg { width: 24px; height: 24px; }
.cfpe-bib-acervo span { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.cfpe-bib-acervo small { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }

/* dúvidas frequentes: uma pergunta passando por vez; clicar abre a lista com ela respondida */
.cfpe-faq { position: relative; border-top: 1px solid var(--e-linha); background: color-mix(in srgb, var(--e-cartao) 82%, transparent); }
.cfpe-faq > summary { display: flex; align-items: center; gap: 14px; padding: 15px clamp(22px, 3.2vw, 34px); cursor: pointer; list-style: none; }
.cfpe-faq > summary::-webkit-details-marker, .cfpe-faq-item > summary::-webkit-details-marker { display: none; }
.cfpe-faq > summary > span:first-child { flex: none; font-weight: 800; font-size: 0.96rem; }
.cfpe-faq-giro { position: relative; flex: 1; min-width: 0; height: 1.4em; overflow: hidden; }
.cfpe-faq-giro small { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.88rem; color: var(--e-suave);
    opacity: 0; transform: translateY(70%); transition: opacity 0.45s ease, transform 0.45s ease; }
.cfpe-faq-giro small.is-ativa { opacity: 1; transform: none; }
.cfpe-faq-giro small.is-saindo { opacity: 0; transform: translateY(-70%); }
.cfpe-faq > summary:hover .cfpe-faq-giro small.is-ativa { color: var(--e-agua); }
.cfpe-faq[open] .cfpe-faq-giro { visibility: hidden; }
.cfpe-faq > summary i { position: relative; flex: none; width: 26px; height: 26px; margin-left: auto; border-radius: 50%; background: var(--e-fundo2); }
.cfpe-faq > summary i::before, .cfpe-faq > summary i::after { content: ''; position: absolute; left: 8px; right: 8px; top: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s ease; }
.cfpe-faq > summary i::after { transform: rotate(90deg); }
.cfpe-faq[open] > summary i::after { transform: rotate(0); }
.cfpe-faq-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; padding: 0 clamp(22px, 3.2vw, 34px) 20px; }
.cfpe-faq-item { border-top: 1px solid var(--e-linha); }
.cfpe-faq-item > summary { position: relative; padding: 13px 28px 13px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 0.93rem; }
.cfpe-faq-item > summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 1.2rem; color: var(--e-agua); transition: transform 0.2s ease; }
.cfpe-faq-item[open] > summary::after { transform: rotate(45deg); }
.cfpe-faq-resp { padding: 0 0 14px; font-size: 0.9rem; line-height: 1.6; color: var(--e-suave); }
.cfpe-faq-resp p { margin: 0 0 8px !important; }
.cfpe-faq-resp strong { color: var(--e-tinta); }
.cfpe-bib .cfpe-faq-resp a { color: var(--e-agua) !important; text-decoration: underline !important; text-underline-offset: 2px; }
.cfpe-bib .cfpe-faq-resp img { display: block; max-width: 100%; height: auto; margin: 10px 0 4px; border-radius: 10px; cursor: zoom-in; box-shadow: 0 0 0 1px var(--e-borda); }

/* imagem da resposta ampliada */
.cfpe-zoom { max-width: min(1000px, calc(100vw - 24px)); max-height: calc(100vh - 24px); margin: auto; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.cfpe-zoom::backdrop { background: rgba(6, 14, 22, 0.7); backdrop-filter: blur(4px); }
.cfpe-zoom img { display: block; max-width: 100%; max-height: calc(100vh - 24px); margin: 0 !important; }
.cfpe-bib .cfpe-zoom button { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.55) !important; color: #fff !important; font: 400 1.5rem/1 'Inter', sans-serif !important; cursor: pointer; }

/* ---------- telas menores ---------- */
@media (max-width: 980px) {
    .cfpe-bib-corpo { grid-template-columns: auto minmax(0, 1fr); }
    .cfpe-bib-acervo { grid-column: 1 / -1; justify-self: start; }
    .cfpe-bib-foto { inset: 0 0 0 20%; }
}
@media (max-width: 900px) {
    .cfpe.cfpe .cfpe-labs { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 760px) {
    .cfpe-labs-agenda { flex-wrap: wrap; }
    .cfpe .cfpe-labs-mais { margin-left: 68px; }
    .cfpe.cfpe .cfpe-cursos, .cfpe.cfpe .cfpe-apoio, .cfpe-faq-lista { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .cfpe-card-corpo { padding: 16px; gap: 14px; }
    .cfpe .cfpe-play { font-size: 0.8rem !important; }
    .cfpe-bib-corpo { grid-template-columns: 1fr; }
    .cfpe-bib.cfpe-bib .cfpe-bib-logo { width: 84px; height: 84px; }
    .cfpe-bib-foto { inset: 0; -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 65%); mask-image: linear-gradient(to bottom, #000 0%, transparent 65%); }
    .cfpe-bib-acervo { justify-self: stretch; }
    .cfpe-faq > summary { flex-wrap: wrap; row-gap: 4px; }
    .cfpe-faq-giro { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cfpe *, .cfpe-bib * { transition: none !important; animation: none !important; } }
