/* ============================================================
   PRAGMATICando: site público
   Identidade do site antigo (verde-água + vermelho, títulos com
   serifa, cartões brancos), com cores ajustadas para contraste AA,
   foco visível, movimento reduzido e sem tipos de letra externos.
   ============================================================ */
:root {
    /* Marca */
    --pc-teal: #64c3c8;          /* decorativo: linhas, fundos, ícones grandes */
    --pc-teal-mid: #7fd4d8;
    --pc-teal-light: #e0f5f6;
    --pc-teal-pale: #f0fafb;
    --pc-teal-strong: #2f7478;   /* texto e ligações (5,4:1 sobre branco) */
    --pc-teal-darker: #245a5d;
    --pc-red: #eb505f;           /* cor oficial (CELGA-ILTEC): rodapé, botão de pesquisa, realces */
    --pc-red-strong: #b8394a;    /* variante escura: hover e painel de pesquisa */
    --pc-ink: #1a2e2e;
    --pc-text: #3a5252;
    --pc-muted: #536e6e;         /* 5,3:1 sobre branco */
    --pc-bg: #f7fafa;
    --pc-white: #fff;
    --pc-border: rgba(100, 195, 200, .22);
    --pc-shadow-sm: 0 2px 8px rgba(47, 116, 120, .08);
    --pc-shadow-md: 0 8px 28px rgba(47, 116, 120, .14);
    --pc-radius: 10px;
    --pc-radius-lg: 18px;
    --pc-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --pc-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --pc-header-h: 120px;

    --bs-body-color: var(--pc-text);
    --bs-body-bg: var(--pc-bg);
    --bs-body-font-family: var(--pc-sans);
    --bs-link-color: var(--pc-teal-strong);
    --bs-link-color-rgb: 47, 116, 120;
    --bs-link-hover-color: var(--pc-teal-darker);
    --bs-link-hover-color-rgb: 36, 90, 93;
}

html { scroll-padding-top: calc(var(--pc-header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--pc-bg); color: var(--pc-text); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--pc-teal-strong); outline-offset: 2px; border-radius: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; padding: .6rem 1rem; background: var(--pc-white); color: var(--pc-teal-strong); font-weight: 600; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
#conteudo:focus { outline: none; }

.container-site { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2rem); }

.preview-banner { background: #fff3cd; color: #664d03; text-align: center; padding: .5rem 1rem; font-weight: 600; position: sticky; top: 0; z-index: 1031; }

/* ===================== Cabeçalho ===================== */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--pc-white); box-shadow: 0 1px 0 var(--pc-border), var(--pc-shadow-sm); }
.header-top { border-bottom: 1px solid var(--pc-border); }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .45rem; min-height: 50px; }
.institution-brand { display: inline-flex; align-items: center; }
.institution-brand img { height: 34px; width: auto; }
.search-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--pc-red); color: var(--pc-white); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background .2s; }
.search-btn:hover, .search-btn[aria-expanded="true"] { background: var(--pc-red-strong); color: var(--pc-white); }

.search-panel { background: var(--pc-red-strong); border-bottom: 2px solid var(--pc-teal); }
.search-panel-form { display: flex; align-items: center; gap: .6rem; padding-block: .7rem; color: var(--pc-white); }
.search-panel-form input { flex: 1; min-width: 0; border: 0; border-radius: 8px; padding: .5rem .9rem; font: inherit; color: var(--pc-ink); }
.search-panel-close { background: none; border: 0; color: var(--pc-white); font-size: 1.1rem; padding: .25rem .4rem; border-radius: 6px; }
.search-panel-close:hover { background: rgba(255, 255, 255, .15); }

.header-main-inner { display: flex; align-items: center; gap: 1rem; padding-block: .45rem; min-height: 64px; }
.project-brand { flex: none; display: inline-flex; }
.project-brand img { height: 46px; width: auto; }
/* Botão «Entrar» (área de administração), como no site antigo; texto escuro para contraste AA. */
.btn-entrar { margin-left: auto; flex: none; align-items: center; gap: .4rem; padding: .46rem 1.15rem; background: var(--pc-teal); color: #10393b; font-size: .878rem; font-weight: 600; border-radius: 7px; text-decoration: none; transition: background .2s, color .2s, transform .15s, box-shadow .2s; }
.btn-entrar:hover, .btn-entrar:focus-visible { background: var(--pc-teal-strong); color: var(--pc-white); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 134, 138, .3); }
.btn-entrar-full { display: flex; width: 100%; justify-content: center; margin: 0; }
.site-nav-footer { padding: .75rem; border-top: 1px solid var(--pc-border); }
.btn-hamburger { margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--pc-border); border-radius: 10px; background: var(--pc-white); color: var(--pc-teal-strong); font-size: 1.5rem; display: inline-flex; align-items: center; justify-content: center; }

/* Menu principal */
.site-menu, .site-submenu { list-style: none; margin: 0; padding: 0; }
.site-menu-link { display: block; color: var(--pc-ink); font-weight: 500; text-decoration: none; padding: .55rem .7rem; border-radius: 8px; }
.site-menu-link:hover, .site-menu-link.is-active { color: var(--pc-teal-strong); }
.site-menu-link[aria-current="page"] { color: var(--pc-teal-strong); font-weight: 600; }
.site-menu-link.is-label { cursor: default; }
.site-menu-row { display: flex; align-items: center; }
.site-menu-toggle { background: none; border: 0; color: var(--pc-teal-strong); padding: .4rem .45rem; border-radius: 6px; line-height: 1; }
.site-menu-toggle:hover { background: var(--pc-teal-light); }
.site-menu-toggle .bi { transition: transform .2s; display: inline-block; font-size: .8rem; }
.site-menu-toggle[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.site-menu-toggle[aria-expanded="true"] .bi-chevron-right { transform: rotate(90deg); }

@media (min-width: 992px) {
    .site-nav { flex: 1; display: flex; justify-content: center; }
    .site-nav .offcanvas-header { display: none; }
    .site-nav .offcanvas-body { padding: 0; overflow: visible; }
    .site-menu { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; justify-content: center; }
    .site-menu > .site-menu-item { position: relative; }
    .site-menu-toggle { padding-inline: .2rem; margin-left: -.35rem; }
    .site-submenu { display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 15rem; background: var(--pc-white); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); box-shadow: var(--pc-shadow-md); padding: .4rem; }
    .site-submenu .site-menu-link { font-weight: 400; padding: .45rem .7rem; white-space: nowrap; }
    .site-submenu .site-menu-link:hover { background: var(--pc-teal-pale); }
    .site-submenu .site-menu-item { position: relative; }
    .site-submenu .site-menu-row { justify-content: space-between; }
    .site-submenu-3 { top: -.4rem; left: 100%; }
    .site-menu-item.is-open > .site-submenu { display: block; }
    @media (hover: hover) {
        .site-menu-item.has-children:hover > .site-submenu { display: block; }
    }
    /* Submenus longos (10 ou mais itens, ex.: Atos de Fala) em duas colunas, para caberem
       no ecrã mesmo em portáteis baixos (o cabeçalho é fixo, o que passasse do fundo ficava inacessível). */
    .site-menu > .site-menu-item.is-open > .site-submenu:has(> .site-menu-item:nth-child(10)) { display: grid; grid-template-columns: repeat(2, minmax(13rem, 1fr)); column-gap: .25rem; }
    @media (hover: hover) {
        .site-menu > .site-menu-item.has-children:hover > .site-submenu:has(> .site-menu-item:nth-child(10)) { display: grid; grid-template-columns: repeat(2, minmax(13rem, 1fr)); column-gap: .25rem; }
    }
}

@media (max-width: 991.98px) {
    .site-nav { --bs-offcanvas-width: min(340px, 88vw); }
    .site-nav .offcanvas-header { border-bottom: 1px solid var(--pc-border); }
    .site-nav .offcanvas-body { padding: .75rem; }
    .site-menu-item { border-bottom: 1px solid var(--pc-border); }
    .site-menu-row { justify-content: space-between; }
    .site-menu-toggle { width: 44px; height: 44px; }
    .site-submenu { display: none; padding: 0 0 .5rem .9rem; }
    .site-submenu .site-menu-item { border-bottom: 0; }
    .site-submenu .site-menu-link { font-weight: 400; padding: .4rem .5rem; }
    .site-menu-item.is-open > .site-submenu { display: block; }
}

/* ===================== Estrutura das páginas ===================== */
.content-card { background: var(--pc-white); border-radius: var(--pc-radius-lg); box-shadow: var(--pc-shadow-sm); border: 1px solid var(--pc-border); padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4.5vw, 4rem); min-width: 0; }
.page-header { margin-bottom: 1.75rem; }
.page-title { font-family: var(--pc-serif); font-weight: 700; color: var(--pc-teal-strong); font-size: clamp(1.75rem, 3.5vw, 2.3rem); line-height: 1.25; padding-bottom: .75rem; border-bottom: 3px solid var(--pc-teal); position: relative; margin: 0; }
.page-title::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 100px; height: 3px; background: var(--pc-red); }
.page-header .lead { color: var(--pc-muted); max-width: 48rem; margin: 1rem 0 0; }

.layout-with-aside { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.layout-with-aside.layout-aside-end { grid-template-columns: minmax(0, 1fr) 300px; }
.layout-with-aside.no-aside { grid-template-columns: minmax(0, 1fr); }
.layout-aside { position: sticky; top: calc(var(--pc-header-h) + 1rem); max-height: calc(100vh - var(--pc-header-h) - 2rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none; }
/* Barras laterais (índice, navegação do ato de fala): deslocamento próprio, sem barra visível. */
.layout-aside::-webkit-scrollbar, .site-nav .offcanvas-body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.site-nav .offcanvas-body { scrollbar-width: none; -ms-overflow-style: none; }
@media (max-width: 991.98px) {
    .layout-with-aside, .layout-with-aside.layout-aside-end { grid-template-columns: minmax(0, 1fr); }
    .layout-aside { position: static; max-height: none; }
    .layout-aside-nav .layout-aside { order: 2; }
}

.research-column { max-width: 50rem; }

/* Índice da página */
.toc { border-left: 3px solid var(--pc-teal-light); padding-left: 1rem; }
.toc-title, .speech-act-nav-title { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--pc-muted); margin-bottom: .5rem; }
.toc a { display: block; padding: .3rem 0; color: var(--pc-text); text-decoration: none; font-size: .93rem; }
.toc a:hover { color: var(--pc-teal-strong); text-decoration: underline; }
.toc .toc-3 { padding-left: .9rem; font-size: .88rem; }

/* ===================== Conteúdo (texto) ===================== */
.content { color: var(--pc-text); }
.content > :first-child, .content .block:first-child { margin-top: 0; }
.content .block + .block { margin-top: 1.25rem; }
.content p { line-height: 1.85; margin-bottom: 1.15rem; }
.content ul, .content ol { line-height: 1.8; margin-bottom: 1.15rem; padding-left: 1.75rem; }
.content li { margin-bottom: .5rem; }
.content strong, .content b { color: var(--pc-teal-darker); font-weight: 600; }
.content a { text-underline-offset: .15em; }
.content a.link-subtle { color: inherit; text-decoration: underline; text-decoration-color: rgba(58, 82, 82, .45); text-underline-offset: .18em; transition: color .2s, text-decoration-color .2s; }
.content a.link-subtle:hover, .content a.link-subtle:focus-visible { color: var(--pc-teal-strong); text-decoration-color: currentColor; }
.content h2 { font-size: 1.3rem; font-weight: 600; color: var(--pc-teal-strong); margin: 2.5rem 0 1rem; padding-left: 1rem; border-left: 4px solid var(--pc-red); line-height: 1.35; }
.content h3 { font-size: 1.08rem; font-weight: 600; color: var(--pc-text); margin: 1.75rem 0 .75rem; }
.content h4 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 .6rem; }
.content > h2:first-child, .sa-section:first-of-type > h2, .page-header + .content > .block-heading:first-child { margin-top: .5rem; }

/* Classes de apresentação do conteúdo do site antigo */
.content .fw-semibold, .content .font-semibold { font-weight: 600; }
.content .italic { font-style: italic; }
.content .ml-4 { margin-left: 1.5rem; }
.content .texto-verde { color: var(--pc-teal-strong); font-weight: 500; }
.content .text-highlight { background: var(--pc-teal-light); padding: 0 .2em; border-radius: 3px; }
.content .titulo-verde { color: var(--pc-teal-strong); }
.content .subtitulo-professores { color: var(--pc-teal-strong); }
.content .frase-preta { color: var(--pc-ink); }
.content .bolinha-preta { list-style: disc; }
.content .citacao { font-style: italic; color: var(--pc-ink); font-size: 1.05rem; }
.content .explicacao { color: var(--pc-text); }
.content hr, .content hr.linha-grande { border: 0; height: 2px; background: linear-gradient(to right, transparent, var(--pc-teal), transparent); opacity: 1; margin: 2.5rem 0; }
.content .respostas { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.5rem 0; padding: 1.25rem; background: var(--pc-bg); border-radius: var(--pc-radius); }
.content .bloco { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.content .caixa { background: var(--pc-white); border: 2px solid var(--pc-teal); border-radius: var(--pc-radius); padding: .85rem 1.5rem; font-weight: 500; color: var(--pc-ink); box-shadow: var(--pc-shadow-sm); }
.content .seta { color: var(--pc-red-strong); font-size: 1.3rem; font-weight: 700; }
.content .legenda { font-size: .88rem; color: var(--pc-muted); text-align: center; }
.content .para-saber-mais, .content .subtitulo { margin-top: 1rem; }
.content em.bi { font-style: normal; }
/* Imagens inseridas pelo editor (tamanho e posição escolhidos no editor; no telemóvel ocupam a largura toda). */
.content img { border-radius: 6px; }
.content img[style*="float:left"], .content img[style*="float: left"] { margin: .3rem 1.25rem .75rem 0; }
.content img[style*="float:right"], .content img[style*="float: right"] { margin: .3rem 0 .75rem 1.25rem; }
@media (max-width: 575.98px) { .content img[style*="float"] { float: none !important; width: 100% !important; margin: 1rem 0; } }
:where(.content) .block, .sa-intro { display: flow-root; } /* contém as imagens flutuantes; :where() não pesa, para blocos em grelha (galeria, imagem com texto) manterem o seu display */

/* Exemplo com imagem (bloco «Imagem com texto») */
.block-media-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 340px); gap: 1.5rem; align-items: center; background: linear-gradient(135deg, var(--pc-teal-pale) 0%, var(--pc-white) 100%); border: 1px solid var(--pc-border); border-radius: var(--pc-radius-lg); padding: 1.5rem; box-shadow: var(--pc-shadow-sm); }
.block-media-text-left { grid-template-columns: minmax(200px, 340px) minmax(0, 1fr); }
.block-media-text-left .block-media-text-media { order: -1; }
.block-media-text-media { margin: 0; }
.block-media-text-body > :last-child { margin-bottom: 0; }
@media (max-width: 767.98px) { .block-media-text, .block-media-text-left { grid-template-columns: 1fr; } .block-media-text-left .block-media-text-media { order: 0; } }

/* Restantes blocos */
.block-example { background: var(--pc-white); border-left: 4px solid var(--pc-teal); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; }
.block-example .line { font-style: italic; margin: .25rem 0 .25rem 1rem; }
.block-example .line-speaker1 { color: var(--pc-teal-strong); }
.block-example .line-highlight span { background: var(--pc-teal-light); padding: 0 .2em; border-radius: 3px; }
.block-quote { border-left: 4px solid var(--pc-teal); padding: .5rem 1.25rem; font-size: 1.1rem; color: var(--pc-ink); }
.block-quote footer { font-size: .9rem; color: var(--pc-muted); margin-top: .5rem; }
.block-card { background: var(--pc-white); border: 1px solid var(--pc-border); border-radius: 12px; padding: 1.25rem; }
.block-cta { background: var(--pc-teal-light); border-radius: 12px; padding: 1.5rem; text-align: center; }
.block-cta .btn { background: var(--pc-teal-strong); border-color: var(--pc-teal-strong); color: var(--pc-white); }
.block-video .ratio { border-radius: 12px; overflow: hidden; }
.block-bibliography li { margin-bottom: .6rem; }
.block-bibliography li p { margin: 0; }
.block-image-medium { max-width: 480px; }
.block-image-small { max-width: 280px; }
.block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.block-gallery figure { margin: 0; }

.audio-player { background: var(--pc-white); border: 1px solid var(--pc-border); border-radius: 12px; padding: .9rem 1rem; margin: 0; }
.audio-player-title { font-weight: 600; margin-bottom: .5rem; color: var(--pc-ink); }
.audio-player-duration { font-weight: 400; color: var(--pc-muted); }
.audio-player audio { width: 100%; }
.audio-player-transcript { margin-top: .6rem; }

/* Atividades */
.activity { background: var(--pc-teal-pale); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); padding: 1rem 1.25rem; }
.activity-prompt { display: flex; gap: .75rem; }
.activity-prompt > div { min-width: 0; flex: 1; }
.activity-prompt ol, .activity-prompt ul { margin-bottom: .5rem; }
.activity-prompt > div > :last-child { margin-bottom: 0; }
.activity-number { flex: 0 0 auto; font-weight: 700; color: var(--pc-teal-strong); }
.activity-audios { display: grid; gap: .75rem; margin: .75rem 0 0 1.75rem; padding: 0; }
.activity-options, .activity-statements, .activity-matching, .activity-text { margin-top: .75rem; }
.activity-gap { border: 0; border-bottom: 2px solid var(--pc-teal); background: var(--pc-teal-light); padding: 0 .3rem; }
.activity-solution { margin-top: .75rem; }
.activity-solution summary { color: var(--pc-teal-strong); font-weight: 600; cursor: pointer; }

/* ===================== Atos de fala ===================== */
.speech-act-nav { border-right: 1px solid var(--pc-border); padding-right: .75rem; }
.speech-act-nav .sa-link { display: block; padding: .55rem .9rem; color: var(--pc-text); text-decoration: none; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; font-size: .92rem; transition: background .2s, border-color .2s, color .2s; }
.speech-act-nav .sa-link:hover { background: linear-gradient(90deg, var(--pc-teal-pale) 0%, transparent 100%); border-left-color: var(--pc-teal); color: var(--pc-teal-strong); }
.speech-act-nav .sa-link.active { background: linear-gradient(90deg, var(--pc-teal-light) 0%, transparent 100%); border-left-color: var(--pc-teal-strong); color: var(--pc-teal-strong); font-weight: 600; }
.speech-act-nav .sa-sections { margin: .2rem 0 .5rem .9rem; padding-left: .5rem; border-left: 2px solid var(--pc-border); }
.speech-act-nav .sa-sections a { display: block; padding: .3rem .5rem; font-size: .86rem; color: var(--pc-text); text-decoration: none; }
.speech-act-nav .sa-sections a:hover { color: var(--pc-teal-strong); background: var(--pc-teal-pale); }
@media (max-width: 991.98px) { .speech-act-nav { border-right: 0; border-top: 1px solid var(--pc-border); padding: 1rem 0 0; } }
.sa-section + .sa-section { margin-top: .5rem; }
.sa-intro > :last-child { margin-bottom: 1rem; }

/* ===================== Página inicial ===================== */
.hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: center; overflow: hidden; background: #fafaf7; }
.hero-media { position: absolute; inset: 0 0 0 auto; width: 48%; }
.hero-media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #fafaf7 0%, rgba(250, 250, 247, .5) 35%, transparent 100%); }
.hero-media picture, .hero-media .hero-img { display: block; width: 100%; height: 100%; }
.hero-media .hero-img { object-fit: cover; filter: brightness(.85) saturate(.8) opacity(.55); }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin-inline: auto; padding: 4rem clamp(1rem, 3vw, 2rem); display: flex; flex-direction: column; align-items: flex-start; }
.hero-label { display: inline-block; padding: .35rem 1rem; background: rgba(47, 116, 120, .08); border: 1px solid rgba(47, 116, 120, .25); border-radius: 50px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pc-teal-strong); margin-bottom: 1.25rem; }
.hero-title { margin: 0 0 1.75rem; }
.hero-logo { width: clamp(260px, 38vw, 480px); height: auto; }
.hero-sub { font-size: 1.1rem; color: var(--pc-text); max-width: 500px; margin-bottom: 2.25rem; }
.btn-hero { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.75rem; color: var(--pc-teal-strong); font-weight: 500; border-radius: 50px; border: 1.5px solid rgba(47, 116, 120, .4); background: transparent; }
.btn-hero:hover { background: var(--pc-teal-light); color: var(--pc-teal-darker); border-color: var(--pc-teal); }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--pc-muted); font-size: .75rem; letter-spacing: .05em; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--pc-teal-mid), transparent); }
@media (prefers-reduced-motion: no-preference) {
    .hero-label, .hero-title, .hero-sub, .btn-hero { animation: pc-fade-up .7s ease both; }
    .hero-sub { animation-delay: .1s; } .btn-hero { animation-delay: .2s; }
    .scroll-line { animation: pc-pulse 2s infinite; }
}
@keyframes pc-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pc-pulse { 0%, 100% { opacity: .4; } 50% { opacity: .9; } }
@media (max-width: 640px) { .hero-media { display: none; } .hero { min-height: 60vh; } .hero-content { padding-block: 2.75rem; } .hero-scroll { display: none; } }

.stats-bar { background: var(--pc-white); border-bottom: 1px solid var(--pc-border); padding: 1.75rem clamp(1rem, 3vw, 2rem); }
.stats-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-around; align-items: center; gap: 1rem; flex-wrap: wrap; }
.stat-item { text-align: center; padding: .5rem 1.5rem; display: flex; flex-direction: column-reverse; }
.stat-item + .stat-item { border-left: 1px solid var(--pc-border); }
.stat-num { font-family: var(--pc-serif); font-size: 2rem; font-weight: 700; color: var(--pc-teal-strong); line-height: 1; margin: 0; }
.stat-label { font-size: .8rem; color: var(--pc-muted); margin-top: .35rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 400; }
@media (max-width: 640px) { .stat-item + .stat-item { border-left: 0; } .stat-item { flex: 1 1 40%; } }

.home-content { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: clamp(1.5rem, 4vw, 3.25rem); align-items: start; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.home-content.no-aside { grid-template-columns: minmax(0, 1fr); }
.home-main { display: flex; flex-direction: column; gap: clamp(1.5rem, 4vw, 3rem); }
.home-aside { position: sticky; top: calc(var(--pc-header-h) + 1rem); }
@media (max-width: 1060px) { .home-content { grid-template-columns: minmax(0, 1fr); } .home-aside { position: static; } }
.section-block { background: var(--pc-white); border-radius: var(--pc-radius-lg); padding: clamp(1.5rem, 4vw, 2.2rem) clamp(1.25rem, 4vw, 2.4rem); box-shadow: var(--pc-shadow-sm); border: 1px solid var(--pc-border); position: relative; overflow: hidden; }
.section-block::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(to bottom, var(--pc-teal), var(--pc-teal-mid)); }
.section-block.content h2 { font-family: var(--pc-serif); font-size: 1.5rem; font-weight: 700; color: var(--pc-teal-strong); margin: 0 0 1.05rem; padding: 0 0 .6rem; border-left: 0; border-bottom: 1px solid var(--pc-border); }
.section-block p { font-size: .96rem; }
.section-block p:last-child { margin-bottom: 0; }
.section-block ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.section-block ul li { padding: .55rem 0; border-bottom: 1px solid var(--pc-border); margin: 0; display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.section-block ul li:last-child { border-bottom: 0; }
.section-block ul li::before { content: '→'; color: var(--pc-teal-strong); font-size: .78rem; }

.sidebar-card { background: var(--pc-white); border-radius: var(--pc-radius-lg); overflow: hidden; box-shadow: var(--pc-shadow-sm); border: 1px solid var(--pc-border); margin-bottom: 1.2rem; }
.sidebar-card-header { background: var(--pc-teal-strong); padding: 1rem 1.35rem; }
.sidebar-card-header.is-alert { background: var(--pc-red); }
.sidebar-card-header h2 { font-family: var(--pc-serif); font-size: 1rem; color: var(--pc-white); margin: 0; }
.sidebar-card-body { padding: 1rem 1.35rem; }
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav a { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; font-size: .9rem; color: var(--pc-text); border-radius: 7px; text-decoration: none; }
.sidebar-nav a:hover { background: var(--pc-teal-light); color: var(--pc-teal-darker); }
.sidebar-nav a .bi { color: var(--pc-teal-strong); }
.sidebar-badge { margin-left: auto; padding: .1rem .45rem; background: var(--pc-teal-light); color: var(--pc-teal-darker); font-size: .7rem; font-weight: 600; border-radius: 50px; }
.sidebar-card-note { font-size: .88rem; color: var(--pc-text); margin: 0; }

.topics-section { background: var(--pc-teal-light); padding: clamp(2.75rem, 6vw, 4.25rem) 0; }
.topics-inner { max-width: 1280px; margin: 0 auto; padding-inline: clamp(1rem, 3vw, 2rem); }
.section-eyebrow { font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--pc-teal-strong); margin-bottom: .55rem; }
.section-title { font-family: var(--pc-serif); font-size: clamp(1.65rem, 3vw, 2.3rem); font-weight: 700; color: var(--pc-teal-strong); margin-bottom: .85rem; }
.section-desc { color: var(--pc-text); max-width: 530px; margin-bottom: 2.6rem; }
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.05rem; margin: 0; }
.topic-card { height: 100%; background: var(--pc-white); border-radius: var(--pc-radius); padding: 1.55rem; border: 1px solid var(--pc-border); display: flex; flex-direction: column; gap: .6rem; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.topic-card:hover { box-shadow: var(--pc-shadow-md); border-color: var(--pc-teal); }
@media (prefers-reduced-motion: no-preference) { .topic-card:hover { transform: translateY(-4px); } .topic-card:hover .topic-arrow { transform: translateX(4px); } }
.topic-name { font-size: .98rem; font-weight: 600; color: var(--pc-teal-strong); }
.topic-desc { font-size: .86rem; color: var(--pc-muted); line-height: 1.5; }
.topic-arrow { margin-top: auto; color: var(--pc-teal-strong); transition: transform .2s; }

/* ===================== Pesquisa ===================== */
.search-box { max-width: 640px; }
.search-results li { padding: .9rem 0; border-bottom: 1px solid var(--pc-border); }
.search-result-title { font-size: 1.1rem; font-weight: 600; }
.search-results mark { background: var(--pc-teal-light); color: inherit; padding: 0 .1em; border-radius: 2px; }

/* ===================== Rodapé ===================== */
.site-footer { background: var(--pc-red); color: var(--pc-white); padding: clamp(2rem, 5vw, 3.25rem) 0 1.6rem; margin-top: 3rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2.4rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255, 255, 255, .25); margin-bottom: 1.6rem; }
.footer-brand { flex: 1.8 1 280px; }
.footer-col { flex: 1 1 160px; }
.footer-brand img { height: 48px; width: auto; margin-bottom: .85rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .88rem; line-height: 1.7; margin: 0; }
.footer-title { font-family: var(--pc-serif); font-size: 1rem; font-weight: 600; color: var(--pc-white); margin-bottom: .85rem; }
.footer-title a { color: inherit; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .42rem; }
.site-footer a { color: var(--pc-white); }
.footer-links a { font-size: .88rem; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact p { font-size: .88rem; margin-bottom: .38rem; }
.footer-bottom { display: flex; align-items: center; justify-content: center; text-align: center; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.site-footer :focus-visible { outline-color: var(--pc-white); }
@media (max-width: 767.98px) { .footer-brand { flex-basis: 100%; } }

/* Voltar ao topo */
.scroll-top { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1020; width: 44px; height: 44px; border-radius: 50%; background: var(--pc-teal-strong); color: var(--pc-white); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(47, 116, 120, .35); text-decoration: none; }
.scroll-top[hidden] { display: none; }
.scroll-top:hover { background: var(--pc-teal-darker); color: var(--pc-white); }

/* Aviso de cookies (mostrado por site.js enquanto não houver escolha) */
.footer-link-button { background: none; border: 0; padding: 0; color: var(--pc-white); text-decoration: underline; font: inherit; cursor: pointer; }
.footer-link-button[hidden] { display: none; }
.cookie-banner { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 1040; width: min(440px, calc(100vw - 2rem)); background: var(--pc-white); color: var(--pc-text); border: 1px solid var(--pc-border); border-top: 4px solid var(--pc-teal); border-radius: 12px; box-shadow: 0 12px 40px rgba(26, 46, 46, .22); padding: 1.35rem 1.4rem 1.1rem; display: flex; flex-direction: column; gap: .9rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner-title { font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--pc-ink); margin: 0; display: flex; align-items: center; gap: .45rem; }
.cookie-banner-title .bi { color: var(--pc-teal-strong); font-size: 1.15rem; }
.cookie-banner-text { font-size: .86rem; line-height: 1.65; margin: 0; }
.cookie-banner :focus-visible { outline: 2px solid var(--pc-teal-strong); outline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: .6rem; }
.btn-cookie { flex: 1; padding: .6rem 1rem; border-radius: 7px; font-size: .88rem; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn-cookie-accept { background: var(--pc-teal); color: #10393b; border: 1px solid var(--pc-teal); }
.btn-cookie-accept:hover { background: var(--pc-teal-mid); border-color: var(--pc-teal-mid); }
.btn-cookie-decline { background: var(--pc-white); color: var(--pc-teal-strong); border: 1px solid var(--pc-teal-strong); }
.btn-cookie-decline:hover { background: var(--pc-teal-pale); }
.cookie-banner-link { align-self: center; font-size: .8rem; color: var(--pc-teal-strong); text-underline-offset: .15em; }
body.has-cookie-banner .scroll-top { display: none; } /* o cartão ocupa o mesmo canto */
@media (max-width: 575.98px) { .cookie-banner { right: 1rem; bottom: 1rem; } }

/* ===================== Impressão ===================== */
@media print {
    .site-header, .site-footer, .scroll-top, .cookie-banner, .layout-aside, .home-aside, .hero-media, .hero-scroll, .skip-link { display: none !important; }
    body { background: #fff; }
    .content-card, .section-block { box-shadow: none; border: 0; padding: 0; }
    .layout-with-aside, .home-content { display: block; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}

/* ===================== Construtor: blocos novos ===================== */
.header-top-actions { margin-left: auto; }
.lang-switcher .btn { border: 1px solid var(--pc-border); font-weight: 600; }
.footer-brand img.no-invert { filter: none; }
.footer-zone { padding-bottom: 1.6rem; }

/* Secções e colunas */
.cms-section { position: relative; background-size: cover; background-position: center; border-radius: var(--pc-radius-lg); margin-block: 1.5rem; }
.cms-section > .cms-section-inner { position: relative; z-index: 1; width: 100%; padding-inline: clamp(1rem, 3vw, 2rem); }
.cms-section.has-bg-image.overlay-dark::before, .cms-section.has-bg-image.overlay-light::before { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.cms-section.overlay-dark::before { background: rgba(0, 0, 0, .5); }
.cms-section.overlay-light::before { background: rgba(255, 255, 255, .7); }
.cms-section-full, .cms-section-full_content { border-radius: 0; width: 100vw; margin-left: calc(50% - 50vw); }
.cms-section-full_content > .cms-section-inner { padding-inline: clamp(1rem, 3vw, 2rem); }
.cms-section.text-on-dark, .cms-section.text-on-dark :is(h1, h2, h3, h4, h5, h6, p, li, a:not(.btn), .page-title, .section-title) { color: #fff; }
.cms-section.text-on-light, .cms-section.text-on-light :is(h1, h2, h3, h4, h5, h6, p, li) { color: var(--pc-ink); }
.cms-section > .cms-section-inner > :last-child, .cms-column > :last-child { margin-bottom: 0; }
.cms-columns { margin-block: 1rem; }
.cms-column.has-bg { padding: 1.25rem; border-radius: var(--pc-radius); }
.cms-canvas > .cms-section:first-child, .cms-blank > .cms-section:first-child { margin-top: 0; }
.cms-canvas, .cms-blank { overflow-x: clip; }
.cms-spacer { display: flex; align-items: center; }
.cms-spacer hr { width: 100%; margin: 0; }

/* Conteúdo */
.cms-buttons { margin-block: 1rem; }
.cms-alert { margin-block: 1rem; }
.cms-alert-body > :last-child { margin-bottom: 0; }
.cms-table { margin-block: 1rem; }
.cms-features { margin-block: 1rem; }
.cms-feature { display: flex; flex-direction: column; }
.cms-feature.card { border: 1px solid var(--pc-border); box-shadow: var(--pc-shadow-sm); }
.cms-feature-icon { font-size: 2rem; color: var(--pc-teal-strong); line-height: 1; margin-bottom: .6rem; }
.cms-feature-title { font-family: var(--pc-serif); color: var(--pc-ink); }
.cms-social-link { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--pc-teal-light); color: var(--pc-teal-strong); font-size: 1.2rem; text-decoration: none; }
.cms-social-link:hover { background: var(--pc-teal-strong); color: #fff; }
.cms-toc { background: var(--pc-teal-pale); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); padding: 1rem 1.25rem; margin-block: 1rem; }
.cms-file { margin-block: 1rem; border: 1px solid var(--pc-border); }
.cms-file-icon { font-size: 2.2rem; color: var(--pc-teal-strong); }
.cms-embed, .cms-carousel { margin-block: 1rem; }
.cms-carousel-caption { background: rgba(0, 0, 0, .45); border-radius: var(--pc-radius); padding: .6rem 1rem; }
.cms-color-swatch { display: inline-block; width: 1rem; height: 1rem; border-radius: 4px; vertical-align: -2px; border: 1px solid rgba(0, 0, 0, .15); }

/* Formulários do construtor */
.cms-form-block { margin-block: 1.5rem; }
.cms-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cms-form .invalid-feedback:empty { display: none !important; }
.cms-form-status:focus { outline: none; }

/* Tipos de conteúdo */
.cms-entry-card { border: 1px solid var(--pc-border); box-shadow: var(--pc-shadow-sm); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.cms-entry-card:hover { transform: translateY(-2px); box-shadow: var(--pc-shadow-md); }
.cms-entry-card .card-title a { color: var(--pc-ink); text-decoration: none; }
.cms-entry-card .card-title a:hover { color: var(--pc-teal-strong); }
.cms-entry-thumb img { width: 180px; height: 120px; }
.cms-entry-compact li { padding-block: .35rem; border-bottom: 1px solid var(--pc-border); }
.cms-archive-categories .nav-link { border: 1px solid var(--pc-border); }
.cms-archive-categories .nav-link.active { background: var(--pc-teal-strong); border-color: var(--pc-teal-strong); }
.cms-entry-fields { background: var(--pc-teal-pale); border-radius: var(--pc-radius); padding: 1rem; margin: 1.5rem 0; }
.cms-entry-fields dd:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) { .cms-entry-thumb img { width: 110px; height: 80px; } }

/* Zonas (antes/depois do cabeçalho, antes do rodapé): alinhadas com o resto do site */
.site-zone { overflow-x: clip; }
.site-zone > .container-site > :first-child { margin-top: 1rem; }
.site-zone > .container-site > :last-child { margin-bottom: 1rem; }

/* Botões principais do Bootstrap com a cor do site (a Aparência › Cores pode substituir) */
.btn-primary { --bs-btn-bg: var(--pc-teal-strong); --bs-btn-border-color: var(--pc-teal-strong); --bs-btn-hover-bg: var(--pc-teal-darker); --bs-btn-hover-border-color: var(--pc-teal-darker); --bs-btn-active-bg: var(--pc-teal-darker); --bs-btn-active-border-color: var(--pc-teal-darker); --bs-btn-disabled-bg: var(--pc-teal-strong); --bs-btn-disabled-border-color: var(--pc-teal-strong); }
.btn-outline-primary { --bs-btn-color: var(--pc-teal-strong); --bs-btn-border-color: var(--pc-teal-strong); --bs-btn-hover-bg: var(--pc-teal-strong); --bs-btn-hover-border-color: var(--pc-teal-strong); --bs-btn-active-bg: var(--pc-teal-darker); --bs-btn-active-border-color: var(--pc-teal-darker); }

/* ===================================================================
   Opções dos blocos e separador «Estilo»
   Valores por ecrã: --x-d (computador), --x-t (tablet), --x-m (telemóvel);
   tablet e telemóvel herdam do ecrã maior quando ficam vazios.
   =================================================================== */
.cms-block { min-width: 0; }
.content :is(.block, .cms-block) + .cms-block, .content .cms-block + .block { margin-top: 1.25rem; }

/* Animação ao aparecer (só com JavaScript e sem pedido de menos movimento) */
@media (prefers-reduced-motion: no-preference) {
    .js-anim .cs-anim { transition: opacity .7s ease, transform .7s ease; }
    .js-anim .cs-anim:not(.is-visible) { opacity: 0; }
    .js-anim .cs-anim-up:not(.is-visible) { transform: translateY(28px); }
    .js-anim .cs-anim-left:not(.is-visible) { transform: translateX(-36px); }
    .js-anim .cs-anim-right:not(.is-visible) { transform: translateX(36px); }
    .js-anim .cs-anim-zoom:not(.is-visible) { transform: scale(.94); }
}

/* Destaque inicial */
.hero.hero-sized-h { min-height: var(--hero-h-d, min(82vh, 760px)); }
.hero-sized-t .hero-title:not(:has(img)) { font-size: var(--hero-t-d, 2.5rem); }
@media (max-width: 991.98px) {
    .hero.hero-sized-h { min-height: var(--hero-h-t, var(--hero-h-d, min(82vh, 760px))); }
    .hero-sized-t .hero-title:not(:has(img)) { font-size: var(--hero-t-t, var(--hero-t-d, 2.25rem)); }
}
@media (max-width: 767.98px) {
    .hero.hero-sized-h { min-height: var(--hero-h-m, var(--hero-h-t, var(--hero-h-d, 60vh))); }
    .hero-sized-t .hero-title:not(:has(img)) { font-size: var(--hero-t-m, var(--hero-t-t, var(--hero-t-d, 2rem))); }
}
.hero-media .hero-img { filter: brightness(.85) saturate(.8) opacity(var(--hero-img-o, .55)); object-position: var(--hero-focal, center); }
.hero-media::before { background: linear-gradient(90deg, var(--hero-fade-c, #fafaf7) 0%, color-mix(in srgb, var(--hero-fade-c, #fafaf7) 50%, transparent) 35%, transparent 100%); opacity: var(--hero-fade-o, 1); }
.hero-background .hero-media { inset: 0; width: 100%; display: block; }
.hero-background .hero-media .hero-img { filter: opacity(var(--hero-img-o, 1)); }
.hero-background .hero-media::before { background: var(--hero-fade-c, #000); opacity: var(--hero-fade-o, .45); }
.hero-background:not(.hero-has-color) :is(.hero-title, .hero-sub, .hero-label, .hero-link) { color: #fff; }
.hero-background:not(.hero-has-color) .hero-label { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .4); }
.hero-background:not(.hero-has-color) .btn-hero { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero-has-color :is(.hero-title, .hero-sub, .hero-label, .hero-link, .btn-hero) { color: var(--hero-color); }
.hero-align-center .hero-content { align-items: center; text-align: center; }
.hero-align-center .hero-sub { margin-inline: auto; }
.hero-align-end .hero-content { align-items: flex-end; text-align: end; }
.hero-valign-start { align-items: flex-start; }
.hero-valign-end { align-items: flex-end; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero-align-center .hero-actions { justify-content: center; }
.hero-align-end .hero-actions { justify-content: flex-end; }
@media (max-width: 640px) { .hero-background .hero-media { display: block; } }

/* Títulos */
.block-heading.heading-sized { font-size: var(--hd-size-d); }
@media (max-width: 991.98px) { .block-heading.heading-sized { font-size: var(--hd-size-t, var(--hd-size-d)); } }
@media (max-width: 767.98px) { .block-heading.heading-sized { font-size: var(--hd-size-m, var(--hd-size-t, var(--hd-size-d))); } }
.block-heading:is(.heading-none, .heading-underline, .heading-center) { border-left: 0; padding-left: 0; }
.block-heading.heading-underline { padding-bottom: .45rem; border-bottom: 3px solid var(--pc-red); display: inline-block; }
.block-heading.heading-center { text-align: center; }
.block-heading.heading-center::after { content: ""; display: block; width: 3.5rem; height: 3px; margin: .6rem auto 0; background: var(--pc-red); border-radius: 2px; }

/* Texto */
.text-lead { font-size: 1.2em; line-height: 1.6; color: var(--pc-ink); }
.text-columns { column-count: var(--tx-cols-d, 1); column-gap: 2rem; }
@media (max-width: 991.98px) { .text-columns { column-count: var(--tx-cols-t, var(--tx-cols-d, 1)); } }
@media (max-width: 767.98px) { .text-columns { column-count: var(--tx-cols-m, 1); } }

/* Imagem */
.block-image img { border-radius: var(--img-radius, var(--bs-border-radius)); }
.block-image-center { margin-inline: auto; text-align: center; }
.block-image-end { margin-left: auto; text-align: end; }
[data-lightbox] { cursor: zoom-in; display: block; }

/* Citação */
.block-quote { border-left-color: var(--quote-accent, var(--pc-teal)); }
.quote-large { border-left: 0; text-align: center; font-family: var(--pc-serif); font-size: 1.55rem; line-height: 1.4; padding: 1rem 2rem; }
.quote-large::before { content: "\201C"; display: block; font-size: 3.5rem; line-height: .6; color: var(--quote-accent, var(--pc-red)); }
.quote-boxed { border-left: 0; position: relative; background: var(--pc-teal-pale); border-radius: var(--pc-radius-lg); padding: 1.5rem 1.5rem 1.25rem 4rem; }
.quote-boxed::before { content: "\201C"; position: absolute; left: 1.1rem; top: .2rem; font-family: var(--pc-serif); font-size: 4rem; color: var(--quote-accent, var(--pc-teal-strong)); }

/* Cartão */
.block-card-icon { font-size: 1.9rem; line-height: 1; color: var(--card-accent, var(--pc-teal-strong)); margin-bottom: .6rem; }
.block-card.has-media { padding-top: 0; overflow: hidden; }
.block-card-media { margin: 0 -1.25rem 1rem; }
.block-card-media img { width: 100%; height: auto; display: block; }
.card-bordered { border: 2px solid var(--card-accent, var(--pc-teal)); }
.card-filled { background: var(--card-accent, var(--pc-teal-light)); border-color: transparent; }
.card-shadow { border-color: transparent; box-shadow: 0 10px 30px rgba(26, 46, 46, .12); }
.card-accent { border-top: 5px solid var(--card-accent, var(--pc-red)); }

/* Chamada para ação */
.block-cta .btn.cta-btn-custom { background: var(--bs-btn-bg); border-color: var(--bs-btn-border-color); color: var(--bs-btn-color); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; text-align: start; }
.cta-row p { margin: 0 !important; flex: 1 1 18rem; }
.cta-center { text-align: center; }

/* Números em destaque */
.stat-num { font-size: var(--stat-size-d, 2rem); color: var(--stat-color, var(--pc-teal-strong)); }
@media (max-width: 991.98px) { .stat-num { font-size: var(--stat-size-t, var(--stat-size-d, 2rem)); } }
@media (max-width: 767.98px) { .stat-num { font-size: var(--stat-size-m, var(--stat-size-t, var(--stat-size-d, 2rem))); } }
.stat-icon { display: block; font-size: .6em; margin-bottom: .35rem; opacity: .85; }

/* Galeria */
.block-gallery { gap: var(--gal-gap, 1rem); }
.block-gallery.gallery-cols { grid-template-columns: repeat(var(--gal-cols-d, 4), minmax(0, 1fr)); }
@media (max-width: 991.98px) { .block-gallery.gallery-cols { grid-template-columns: repeat(var(--gal-cols-t, var(--gal-cols-d, 3)), minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .block-gallery.gallery-cols { grid-template-columns: repeat(var(--gal-cols-m, 2), minmax(0, 1fr)); } }
.block-gallery img { border-radius: var(--gal-radius, var(--bs-border-radius)); }
.block-gallery.gallery-ratio img { width: 100%; aspect-ratio: var(--gal-ratio); object-fit: cover; }

/* Separador visual */
.block-separator.sep-custom, .block-separator:is(.sep-dashed, .sep-dotted) { border: 0; border-top: var(--sep-size, 1px) solid var(--sep-color, var(--pc-border)); opacity: 1; width: var(--sep-width, 100%); margin-inline: auto; }
.block-separator.sep-dashed { border-top-style: dashed; }
.block-separator.sep-dotted { border-top-style: dotted; }
.block-separator.sep-gradient { border: 0; opacity: 1; height: var(--sep-size, 2px); width: var(--sep-width, 100%); margin-inline: auto; background: linear-gradient(90deg, transparent, var(--sep-color, var(--pc-teal)), transparent); }
.sep-icon { display: flex; align-items: center; gap: 1rem; width: var(--sep-width, 100%); margin-inline: auto; color: var(--sep-color, var(--pc-teal-strong)); }
.sep-icon span { flex: 1; border-top: var(--sep-size, 1px) solid currentColor; opacity: .5; }
.sep-icon i { font-size: 1.25rem; }

/* Espaçador */
.cms-spacer.spacer-exact { height: var(--sp-h-d, 4rem) !important; }
@media (max-width: 991.98px) { .cms-spacer.spacer-exact { height: var(--sp-h-t, var(--sp-h-d, 4rem)) !important; } }
@media (max-width: 767.98px) { .cms-spacer.spacer-exact { height: var(--sp-h-m, var(--sp-h-t, var(--sp-h-d, 4rem))) !important; } }

/* Botões */
.buttons-radius .btn { border-radius: var(--btn-radius); }
@media (max-width: 767.98px) { .buttons-full-mobile { flex-direction: column; } .buttons-full-mobile .btn { width: 100%; } }

/* Caixas com ícone */
.cms-feature-icon { font-size: var(--feat-icon-size, 2rem); color: var(--feat-icon-color, var(--pc-teal-strong)); }
.features-icon-bg .cms-feature-icon i { display: inline-flex; align-items: center; justify-content: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--feat-icon-bg); }

/* Secção: película com opacidade e formas */
.cms-section.overlay-dark::before { background: rgba(0, 0, 0, var(--overlay-o, .5)); }
.cms-section.overlay-light::before { background: rgba(255, 255, 255, var(--overlay-o, .7)); }
.cms-section:is(.has-divider-top, .has-divider-bottom) { position: relative; overflow: hidden; }
.section-divider { position: absolute; left: 0; width: 100%; height: clamp(30px, 6vw, 80px); z-index: 1; pointer-events: none; }
.section-divider-top { top: -1px; }
.section-divider-bottom { bottom: -1px; transform: rotate(180deg); }
.cms-section.has-divider-top { padding-top: calc(clamp(30px, 6vw, 80px) + 1.5rem) !important; }
.cms-section.has-divider-bottom { padding-bottom: calc(clamp(30px, 6vw, 80px) + 1.5rem) !important; }

/* Ampliar imagem (galeria e imagem) */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(10, 20, 20, .85); }
.lightbox img { display: block; max-width: 100%; max-height: 90vh; margin: auto; border-radius: 6px; }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #1a2e2e; font-size: 1.4rem; }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #1a2e2e; font-size: 1.3rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
