/* ==========================================================================
   Aparência melhorada — camada sobre o tema Benevolence
   Mantém a estrutura (topo, menu amarelo, colunas 9/3) e moderniza o acabamento.
   Tema filho Benevolence — carregado por inc/pr-visual.php (classe body.cms-refresh)
   ========================================================================== */

.cms-refresh {
	--cms-primary: #008c64;
	--cms-hover: #ed1c24;
	--cms-dark: #0b4d3a;
	--cms-yellow: #ffcc29;
	--cms-text: #2f3437;
	--cms-muted: #6b7378;
	--cms-line: #e5e8ea;
	--cms-soft: #f5f7f6;
	--cms-radius: 6px;
	--cms-shadow: 0 1px 3px rgba(16, 24, 32, .08), 0 1px 2px rgba(16, 24, 32, .04);
	--cms-shadow-hover: 0 8px 24px rgba(16, 24, 32, .12);
	color: var(--cms-text);
	-webkit-font-smoothing: antialiased;
}
.cms-refresh *, .cms-refresh *::before, .cms-refresh *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---------- Acessibilidade ---------- */
.cms-skip { position: absolute; left: -9999px; top: 0; z-index: 100000; background: #fff; color: #000; padding: 10px 16px; font-weight: 600; }
.cms-skip:focus { left: 10px; top: 10px; }
.cms-refresh a:focus-visible, .cms-refresh button:focus-visible, .cms-refresh input:focus-visible, .cms-refresh select:focus-visible, .cms-refresh textarea:focus-visible {
	outline: 3px solid var(--cms-yellow); outline-offset: 2px;
}




/* ---------- Faixa de título das páginas internas ---------- */
.cms-page-header { background: linear-gradient(180deg, #fff 0%, var(--cms-soft) 100%); border-bottom: 1px solid var(--cms-line); }
.cms-page-header .grid_12 { padding: 26px 0 24px; border-left: 4px solid var(--cms-primary); padding-left: 20px !important; }
.cms-breadcrumbs { font-size: 13px; color: var(--cms-muted); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.cms-breadcrumbs a { color: var(--cms-muted) !important; text-decoration: none; }
.cms-breadcrumbs a:hover { color: var(--cms-primary) !important; text-decoration: underline; }
.cms-breadcrumbs .sep { color: #b6bcc0; }
.cms-page-title { margin: 0; font-size: 30px; line-height: 1.25; font-weight: 700; color: #1f2a2e; max-width: 980px; }
.cms-page-meta { margin-top: 10px; font-size: 14px; color: var(--cms-muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.cms-page-meta i { color: var(--cms-primary); margin-right: 4px; }
.cms-page-meta a { color: var(--cms-muted) !important; }
.cms-page-meta .dot { color: #c4c9cc; }

/* ---------- Área principal ---------- */
.cms-refresh #main { box-shadow: none; border-left: 1px solid var(--cms-line); border-right: 1px solid var(--cms-line); padding-top: 40px; }
.cms-refresh.home #main { padding-top: 30px; }

/* ---------- Texto dos artigos e páginas ---------- */
.cms-refresh .entry-content { font-size: 16px; line-height: 1.75; color: var(--cms-text); }
.cms-refresh .entry-content p { margin: 0 0 1.15em; }
.cms-refresh .entry-content h2, .cms-refresh .entry-content h3, .cms-refresh .entry-content h4 { line-height: 1.3; margin: 1.6em 0 .6em; font-weight: 700; }
.cms-refresh .entry-content h2 { font-size: 24px; }
.cms-refresh .entry-content h3 { font-size: 20px; }
.cms-refresh .entry-content img { max-width: 100%; height: auto; border-radius: var(--cms-radius); }
.cms-refresh .entry-content figure { margin-bottom: 1.4em; }
.cms-refresh .entry-content figcaption, .cms-refresh .entry-content .wp-element-caption { font-size: 13px; color: var(--cms-muted); text-align: center; margin-top: 8px; }
.cms-refresh .entry-content .content-image { margin: 0 0 24px; }
.cms-refresh .entry-content .content-image img { width: 100%; height: auto; border-radius: var(--cms-radius); box-shadow: var(--cms-shadow); }
.cms-refresh .entry-content blockquote { background: var(--cms-soft); border-left: 4px solid var(--cms-primary) !important; padding: 18px 22px; margin: 1.5em 0; border-radius: 0 var(--cms-radius) var(--cms-radius) 0; font-size: 18px; font-style: italic; }
.cms-refresh .entry-content blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--cms-muted); }
.cms-refresh .entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cms-refresh .entry-content th { background: var(--cms-soft); text-align: left; }
.cms-refresh .entry-content th, .cms-refresh .entry-content td { border: 1px solid var(--cms-line); padding: 10px 12px; }
.cms-refresh .entry-content .wp-block-table { overflow-x: auto; }
.cms-refresh .entry-content ul, .cms-refresh .entry-content ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.cms-refresh .entry-content li { margin-bottom: .35em; }
.cms-refresh .entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.cms-refresh .entry-content .wp-block-button__link { background: var(--cms-primary); border-radius: 4px; text-decoration: none; color: #fff !important; }
.cms-refresh .entry-content .wp-block-button__link:hover { background: var(--cms-dark); }
.cms-refresh .entry-content iframe { max-width: 100%; }
.cms-refresh .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.cms-refresh .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.cms-refresh .cms-callout { background: #fff8e1; border-left: 4px solid var(--cms-yellow); padding: 14px 18px; border-radius: 0 var(--cms-radius) var(--cms-radius) 0; margin: 1.4em 0; }

/* Data e categoria no fim do artigo (já estão no cabeçalho) */
.cms-refresh .entry-meta-news { display: none; }

/* ---------- Partilha, navegação e relacionados ---------- */
.cms-share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0; margin: 10px 0 24px; border-top: 1px solid var(--cms-line); border-bottom: 1px solid var(--cms-line); }
.cms-share-bar span { font-weight: 600; margin-right: 6px; color: var(--cms-text); }
.cms-share-bar a, .cms-share-bar button { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff !important; text-decoration: none; border: 0; cursor: pointer; font-size: 15px; transition: transform .15s, opacity .15s; }
.cms-share-bar a:hover, .cms-share-bar button:hover { transform: translateY(-2px); opacity: .9; }
.cms-share-bar .s-fb { background: #1877f2; }
.cms-share-bar .s-tw { background: #111; }
.cms-share-bar .s-wa { background: #25d366; }
.cms-share-bar .s-li { background: #0a66c2; }
.cms-share-bar .s-mail { background: #6b7378; }
.cms-share-bar .s-print { background: var(--cms-primary); }

.cms-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 34px; }
.cms-post-nav a { display: block; padding: 14px 16px; border: 1px solid var(--cms-line); border-radius: var(--cms-radius); text-decoration: none; transition: border-color .2s, box-shadow .2s; background: #fff; }
.cms-post-nav a:hover { border-color: var(--cms-primary); box-shadow: var(--cms-shadow-hover); }
.cms-post-nav a.next { text-align: right; grid-column: 2; }
.cms-post-nav small { display: block; color: var(--cms-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.cms-post-nav span { color: var(--cms-text); font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.cms-related { margin-bottom: 40px; }
.cms-related .widget-title h3 { color: var(--cms-primary) !important; }
.cms-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cms-related-card { display: flex; flex-direction: column; border-radius: var(--cms-radius); overflow: hidden; background: #fff; box-shadow: var(--cms-shadow); text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.cms-related-card:hover { transform: translateY(-3px); box-shadow: var(--cms-shadow-hover); }
.cms-related-card .img img { display: block; width: 100%; height: 140px; object-fit: cover; }
.cms-related-card .body { padding: 12px 14px 16px; }
.cms-related-card time { display: block; font-size: 12px; color: var(--cms-muted); margin-bottom: 4px; }
.cms-related-card strong { color: var(--cms-text); font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cms-related-card:hover strong { color: var(--cms-primary); }

/* ---------- Listagens (categoria, pesquisa, agenda) ---------- */
.cms-refresh article.list { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 22px; row-gap: 6px; align-items: start; background: #fff; border: 1px solid var(--cms-line); border-radius: var(--cms-radius); padding: 18px; margin-bottom: 18px; transition: box-shadow .2s, border-color .2s; }
.cms-refresh article.list:hover { box-shadow: var(--cms-shadow-hover); border-color: #d6dcdf; }
.cms-refresh article.list > .clear { display: none; }
.cms-refresh article.list > figure { grid-row: 1 / span 3; margin: 0; overflow: hidden; border-radius: 4px; float: none; }
.cms-refresh article.list figure img { width: 100%; height: 150px; object-fit: cover; }
.cms-refresh article.list:hover img { transform: scale(1.04); }
.cms-refresh article.list .entry-header { display: block; margin: 0; min-width: 0; }
.cms-refresh article.list:not(:has(figure)) { grid-template-columns: 1fr; }
.cms-refresh article.list .entry-header a { font-size: 19px; line-height: 1.35; color: #1f2a2e; }
.cms-refresh article.list .short-description { margin: 0; color: var(--cms-muted); font-size: 15px; line-height: 1.6; }
.cms-refresh article.list .short-description p { margin: 0; }
.cms-refresh article.list .entry-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.cms-refresh article.list .entry-meta .read-more-button { border-radius: 4px; background: var(--cms-primary) !important; border-color: var(--cms-primary) !important; color: #fff !important; font-size: 12px; letter-spacing: .04em; padding: 6px 14px; margin: 0; }
.cms-refresh article.list:hover .entry-meta .read-more-button { background: var(--cms-dark) !important; animation: none; }
.cms-refresh article.list .entry-time, .cms-refresh article.list .entry-time a { color: var(--cms-muted) !important; font-size: 13px; text-decoration: none; }

/* Paginação */
.cms-refresh .pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--cms-line); padding-top: 20px; margin-top: 10px; }
.cms-refresh .pagination .section { float: none; display: flex; gap: 8px; }
.cms-refresh .pagination .pager { color: var(--cms-muted); }
.cms-refresh .pagination .button { border-radius: 4px; border: 1px solid var(--cms-line); background: #fff; color: var(--cms-text) !important; padding: 8px 14px; text-decoration: none; transition: all .2s; }
.cms-refresh .pagination .button:hover { background: var(--cms-primary); border-color: var(--cms-primary); color: #fff !important; }
.cms-refresh .pagination .button.next, .cms-refresh .pagination .button.previous { background: var(--cms-primary); color: #fff !important; border-color: var(--cms-primary); }

/* Agenda: seletor de meses */
.cms-refresh .events-selection { margin-bottom: 24px; }
.cms-refresh .month-selection { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cms-refresh .month-selection .button { border-radius: 20px; padding: 6px 16px; }
.cms-refresh .month-selection select { border-radius: 20px; padding: 6px 12px; border: 1px solid var(--cms-line); }

/* ---------- Página inicial ---------- */
.cms-refresh article.item { border-radius: var(--cms-radius); overflow: hidden; box-shadow: var(--cms-shadow); transition: transform .2s, box-shadow .2s; border: 0; }
.cms-refresh article.item:hover { transform: translateY(-3px); box-shadow: var(--cms-shadow-hover); }
.cms-refresh article.item img { object-fit: cover; }
.cms-refresh article.item .box-conten-margins h1 a { line-height: 1.35; }
.cms-refresh article.item a.read-more-button { border-radius: 4px; }
.cms-refresh .widget-title span a { border-radius: 3px; }

/* Separadores de documentos */
.cms-refresh .cms-doc-tabs .wpsm_nav-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.cms-refresh .cms-doc-tabs .wpsm_nav-tabs > li { flex: 0 0 auto; }
.cms-refresh .cms-doc-tabs .wpsm_nav-tabs > li > a { background-image: none !important; border-radius: 6px 6px 0 0 !important; }
.cms-refresh .cms-doc-tabs .tab-content { border-radius: 0 var(--cms-radius) var(--cms-radius) var(--cms-radius); }

/* ---------- Barras laterais ---------- */
.cms-refresh #secondary .widget, .cms-refresh .second-home-widget-area .widget { margin-bottom: 32px; }
.cms-refresh .widget-title h3 { font-size: 15px; letter-spacing: .05em; }
.cms-refresh #secondary .widget-title, .cms-refresh .second-home-widget-area .widget-title { background: none; border-bottom: 2px solid var(--cms-line); position: relative; padding-bottom: 8px; margin-bottom: 16px; }
.cms-refresh #secondary .widget-title::after, .cms-refresh .second-home-widget-area .widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 48px; height: 2px; background: var(--cms-primary); }
.cms-refresh #secondary .widget-title h3, .cms-refresh .second-home-widget-area .widget-title h3 { color: var(--cms-primary) !important; background: none; }

/* Menus laterais: lista limpa com indicador, em vez de blocos verdes */
.cms-refresh #secondary .widget_nav_menu ul, .cms-refresh .second-home-widget-area .widget_nav_menu ul { margin: 0; padding: 0; border: 1px solid var(--cms-line); border-radius: var(--cms-radius); overflow: hidden; background: #fff; }
.cms-refresh #secondary .widget_nav_menu ul li, .cms-refresh .second-home-widget-area .widget_nav_menu ul li { background: #fff !important; padding: 0 !important; border-bottom: 1px solid var(--cms-line); animation: none; }
.cms-refresh #secondary .widget_nav_menu ul li:last-child, .cms-refresh .second-home-widget-area .widget_nav_menu ul li:last-child { border-bottom: 0; }
.cms-refresh #secondary .widget_nav_menu ul li a, .cms-refresh .second-home-widget-area .widget_nav_menu ul li a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 12px 16px; color: var(--cms-text) !important;
	font-weight: 600; font-size: 14px; border-left: 3px solid transparent; transition: background .2s, border-color .2s, color .2s, padding .2s;
}
.cms-refresh #secondary .widget_nav_menu ul li a::after, .cms-refresh .second-home-widget-area .widget_nav_menu ul li a::after { content: "\f105"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: #b6bcc0; transition: transform .2s, color .2s; }
.cms-refresh #secondary .widget_nav_menu ul li a:hover, .cms-refresh .second-home-widget-area .widget_nav_menu ul li a:hover,
.cms-refresh #secondary .widget_nav_menu ul li.current-menu-item > a {
	background: var(--cms-soft); border-left-color: var(--cms-primary); color: var(--cms-primary) !important; padding-left: 20px;
}
.cms-refresh #secondary .widget_nav_menu ul li a:hover::after, .cms-refresh .second-home-widget-area .widget_nav_menu ul li a:hover::after { color: var(--cms-primary); transform: translateX(3px); }
.cms-refresh #secondary .widget_nav_menu ul li.current-menu-item > a { background: #e8f4ef; }
.cms-refresh .second-home-widget-area .widget_nav_menu { margin-top: 0; }

/* Pesquisa */
.cms-refresh .widget_search form > div { display: flex; border: 1px solid #cfd5d8; border-radius: var(--cms-radius); overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s; }
.cms-refresh .widget_search form > div:focus-within { border-color: var(--cms-primary); box-shadow: 0 0 0 3px rgba(0, 140, 100, .15); }
.cms-refresh .widget_search input[type=text] { flex: 1; min-width: 0; border: 0 !important; height: 42px; padding: 0 12px !important; font-size: 14px; background: transparent; width: auto !important; margin: 0; box-shadow: none; outline: 0; }
.cms-refresh .widget_search input[type=submit] { display: block !important; flex: 0 0 46px; position: static !important; width: 46px !important; height: 42px; border: 0; margin: 0; background: var(--cms-primary) url("../../benevolence-wpl/assets/svg/search-solid.svg") center / 16px no-repeat !important; filter: none; color: transparent !important; text-indent: -999px; overflow: hidden; cursor: pointer; }
.cms-refresh .widget_search input[type=submit]:hover { background-color: var(--cms-dark) !important; }

/* Imagens */
.cms-refresh .widget_media_image img { border-radius: var(--cms-radius); box-shadow: var(--cms-shadow); transition: transform .2s, box-shadow .2s; display: block; }
.cms-refresh .widget_media_image a:hover img { transform: translateY(-2px); box-shadow: var(--cms-shadow-hover); }

/* Notícias recentes */
.cms-recent-list { list-style: none; margin: 0; padding: 0; }
.cms-refresh .widget .cms-recent-list li { background: none !important; padding: 0 !important; border-bottom: 1px solid var(--cms-line); animation: none; }
.cms-refresh .widget .cms-recent-list li:last-child { border-bottom: 0; }
.cms-refresh .widget .cms-recent-list a { display: flex; gap: 12px; padding: 12px 0; color: var(--cms-text) !important; font-weight: 400 !important; text-decoration: none; }
.cms-recent-list img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.cms-recent-list strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.35; font-weight: 600; }
.cms-recent-list time { display: block; font-size: 12px; color: var(--cms-muted); margin-top: 4px; }
.cms-refresh .widget .cms-recent-list a:hover strong { color: var(--cms-primary); }

/* Eventos */
.cms-refresh .widget_wplook_events_widget > p { background: var(--cms-soft); border-radius: var(--cms-radius); padding: 14px; color: var(--cms-muted); font-size: 14px; margin: 0; }
.cms-refresh .widget-event-body .event-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--cms-line); }
.cms-refresh .widget-event-body .event-day-month { border-radius: 6px; overflow: hidden; text-align: center; min-width: 52px; }

/* Caixa de partilha das páginas */
.cms-refresh .info-box { border-radius: var(--cms-radius); border: 1px solid var(--cms-line); background: #fff; }

/* ---------- Formulários (contacto, comentários) ---------- */
.cms-refresh .wpcf7 input[type=text], .cms-refresh .wpcf7 input[type=email], .cms-refresh .wpcf7 textarea,
.cms-refresh #commentform input[type=text], .cms-refresh #commentform input[type=email], .cms-refresh #commentform textarea {
	width: 100%; max-width: 640px; border: 1px solid #cfd5d8; border-radius: var(--cms-radius); padding: 10px 12px; font-size: 15px; transition: border-color .2s, box-shadow .2s; background: #fff;
}
.cms-refresh .wpcf7 input:focus, .cms-refresh .wpcf7 textarea:focus, .cms-refresh #commentform input:focus, .cms-refresh #commentform textarea:focus { border-color: var(--cms-primary); box-shadow: 0 0 0 3px rgba(0, 140, 100, .15); outline: 0; }
.cms-refresh .wpcf7 label { font-weight: 600; font-size: 14px; color: var(--cms-text); }
.cms-refresh .wpcf7-submit, .cms-refresh #commentform .buttonsx { background: var(--cms-primary) !important; color: #fff !important; border: 0 !important; border-radius: var(--cms-radius); padding: 12px 28px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s; }
.cms-refresh .wpcf7-submit:hover, .cms-refresh #commentform .buttonsx:hover { background: var(--cms-dark) !important; }
.cms-refresh .wpcf7-response-output { border-radius: var(--cms-radius); padding: 12px 14px !important; margin: 16px 0 0 !important; }
.cms-refresh .wpcf7 form.sent .wpcf7-response-output { background: #e7f6ee; }
.cms-refresh .wpcf7 form.invalid .wpcf7-response-output { background: #fff8e1; }
.cms-refresh .comments .page-header { background: none; }

/* ---------- Rodapé ---------- */
.cms-refresh #colophon { background: var(--cms-dark) !important; color: #d7e6e0; border-top: 4px solid var(--cms-yellow); position: relative; }
.cms-refresh #colophon::before { content: ""; position: absolute; top: -4px; left: 0; height: 4px; width: 33.333%; background: var(--cms-hover); }
.cms-refresh #colophon::after { content: ""; position: absolute; top: -4px; right: 0; height: 4px; width: 33.333%; background: #111; }
.cms-footer-top { padding: 48px 0 28px; }
.cms-footer-cols { display: grid !important; grid-template-columns: minmax(280px, 1.5fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 32px 48px; float: none !important; }
.cms-refresh #colophon .cms-footer-cols aside { max-width: none; margin: 0; }
.cms-refresh #colophon h3 { color: #fff !important; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .15); position: relative; }
.cms-refresh #colophon h3::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--cms-yellow); }
.cms-refresh #colophon p, .cms-refresh #colophon aside { color: #c9dbd4 !important; }
.cms-refresh #colophon ul { margin: 0; padding: 0; }
.cms-refresh #colophon ul li { background: none !important; padding: 6px 0 !important; border: 0; animation: none; }
.cms-refresh #colophon ul li a { color: #d7e6e0 !important; font-weight: 400 !important; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .2s; }
.cms-refresh #colophon ul li a::before { content: "\f105"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--cms-yellow); font-size: 12px; }
.cms-refresh #colophon ul li a:hover { color: #fff !important; transform: translateX(3px); }
.cms-footer-brand { display: flex; align-items: center; gap: 14px; text-decoration: none !important; margin-bottom: 14px; }
.cms-footer-brand img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.cms-footer-brand span { color: #fff !important; font-size: 18px; font-weight: 700; line-height: 1.25; }
.cms-footer-about p { font-size: 14px; line-height: 1.65; margin: 0 0 14px; }
.cms-footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cms-refresh #colophon .cms-footer-actions a { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 20px; padding: 7px 14px; font-size: 13px; text-decoration: none; transition: background .2s; }
.cms-refresh #colophon .cms-footer-actions a:hover { background: var(--cms-primary); border-color: var(--cms-primary); }
.cms-refresh #colophon .site-info { background: rgba(0, 0, 0, .25) !important; border: 0; }
.cms-footer-bottom { display: flex !important; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 0; }
.cms-refresh #colophon .cms-footer-bottom p { margin: 0; font-size: 13px; color: #a9c3b9 !important; }
.cms-refresh #colophon .cms-to-top-link { color: #d7e6e0 !important; font-size: 13px; text-decoration: none; }
.cms-refresh #colophon .cms-to-top-link:hover { color: #fff !important; }

.cms-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--cms-primary); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); cursor: pointer; font-size: 16px; transition: background .2s, transform .2s; }
.cms-to-top:hover { background: var(--cms-dark); transform: translateY(-2px); }

/* ---------- Impressão ---------- */
@media print {
	#toolbar, #site-navigation, #secondary, #colophon, .cms-share-bar, .cms-post-nav, .cms-related, .comments, .cms-to-top, #cms-adminbar, .cms-breadcrumbs { display: none !important; }
	.cms-refresh #primary { width: 100% !important; }
	.cms-page-header { background: none; border: 0; }
}

/* ---------- Responsividade ---------- */
@media (max-width: 1240px) {
	/* o CSS adicional do site original fixava 1240px, o que fazia o banner transbordar */
	.cms-refresh .container_12 .grid_12 { width: auto !important; margin-left: 10px; margin-right: 10px; }
	.cms-refresh .logo-online-giving .container_12 .grid_12 { margin-left: 0; margin-right: 0; }
}
@media (max-width: 962px) {
	.cms-related-grid { grid-template-columns: repeat(2, 1fr); }
	.cms-related-grid > :nth-child(3) { display: none; }
	.cms-footer-cols { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
	.cms-footer-about { grid-column: 1 / -1; }
	.cms-refresh article.list { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.cms-page-header .grid_12 { padding: 18px 0 16px 14px !important; }
	.cms-page-title { font-size: 23px; }
	.cms-page-meta { font-size: 13px; }
	.cms-refresh #main { padding-top: 24px; padding-bottom: 30px; border: 0; }
	.cms-refresh #secondary { margin-top: 20px; }
	.cms-refresh article.list { grid-template-columns: 1fr; padding: 14px; }
	.cms-refresh article.list > figure { grid-row: auto; }
	.cms-refresh article.list figure img { height: 190px; }
	.cms-refresh .entry-content { font-size: 16px; }
	.cms-refresh .entry-content .alignright, .cms-refresh .entry-content .alignleft { float: none !important; margin: 0 auto 1em !important; text-align: center; }
	.cms-refresh .entry-content .alignright img, .cms-refresh .entry-content .alignleft img { width: auto !important; max-width: 100%; }
	.cms-post-nav { grid-template-columns: 1fr; }
	.cms-post-nav a.next { grid-column: auto; text-align: left; }
	.cms-related-grid { grid-template-columns: 1fr; }
	.cms-related-grid > :nth-child(3) { display: flex; }
	.cms-related-card { flex-direction: row; }
	.cms-related-card .img img { width: 110px; height: 100%; min-height: 90px; }
	.cms-footer-cols { grid-template-columns: 1fr; gap: 26px; }
	.cms-footer-bottom { justify-content: center; text-align: center; }
	.cms-refresh .pagination { justify-content: center; }
	.cms-refresh .pagination .button { padding: 8px 10px; font-size: 13px; }
	.cms-fbdl-toolbar { justify-content: space-between; }
	.cms-fbdl-row { align-items: flex-start; }
	.cms-fbdl-name { gap: 10px; font-size: 13px; }
	.cms-fbdl-table { padding: 4px 6px 8px; }
	.cms-fbdl-footer { justify-content: center; text-align: center; }
	.cms-to-top { right: 12px; bottom: 12px; }
}

/* Coluna principal vazia (ex.: evento sem descrição) não deixa a barra lateral saltar para a esquerda */
.cms-refresh #primary { min-height: 1px; }


/* ---------- Redes sociais ---------- */
.cms-footer-social { display: flex; gap: 8px; margin-top: 14px !important; }
.cms-refresh #colophon .cms-footer-social a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); color: #fff !important; text-decoration: none; transition: background .2s, transform .2s; }
.cms-refresh #colophon .cms-footer-social a:hover { background: var(--cms-yellow); color: var(--cms-dark) !important; transform: translateY(-2px); }

/* ---------- Galeria (categorias Fotos / Vídeos) ---------- */
.cms-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.cms-album { display: flex; flex-direction: column; background: #fff; border-radius: var(--cms-radius); overflow: hidden; box-shadow: var(--cms-shadow); text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.cms-album:hover { transform: translateY(-4px); box-shadow: var(--cms-shadow-hover); }
.cms-album-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cms-soft); }
.cms-album-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.cms-album:hover .cms-album-img img { transform: scale(1.06); }
.cms-album-empty { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 34px; color: #b6bcc0; }
.cms-album-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; padding: 4px 9px; border-radius: 14px; }
.cms-album-play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; padding-left: 4px; transition: background .2s; }
.cms-album:hover .cms-album-play { background: var(--cms-hover); }
.cms-album-body { padding: 12px 14px 16px; }
.cms-album-body time { display: block; font-size: 12px; color: var(--cms-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.cms-album-body strong { color: var(--cms-text); font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cms-album:hover strong { color: var(--cms-primary); }
@media (max-width: 1240px) { .cms-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .cms-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .cms-album-body strong { font-size: 14px; } }
@media (max-width: 420px) { .cms-gallery-grid { grid-template-columns: 1fr; } }

/* Galerias dentro dos artigos: grelha uniforme */
.cms-refresh .entry-content .wp-block-gallery { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cms-refresh .entry-content .wp-block-gallery > figure { width: auto !important; margin: 0 !important; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; }
.cms-refresh .entry-content .wp-block-gallery > figure img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0; transition: transform .3s; }
.cms-refresh .entry-content .wp-block-gallery > figure:hover img { transform: scale(1.05); }
@media (max-width: 767px) { .cms-refresh .entry-content .wp-block-gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Galeria em ecrã inteiro ---------- */
.cms-zoomable { cursor: zoom-in; }
.cms-lb-open { overflow: hidden; }
.cms-lightbox { position: fixed; inset: 0; z-index: 200000; background: rgba(8, 14, 12, .94); display: flex; align-items: center; justify-content: center; padding: 50px 70px; }
.cms-lightbox[hidden] { display: none; }
.cms-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.cms-lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); border-radius: 2px; }
.cms-lightbox figcaption { color: #e6ece9; margin-top: 12px; font-size: 14px; text-align: center; max-width: 800px; }
.cms-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 18px; transition: background .2s; }
.cms-lightbox button:hover { background: rgba(255, 255, 255, .25); }
.cms-lightbox .lb-close { top: 14px; right: 14px; }
.cms-lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.cms-lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.cms-lightbox .lb-count { position: absolute; top: 24px; left: 24px; color: #c9d4cf; font-size: 13px; letter-spacing: .05em; }
@media (max-width: 767px) {
	.cms-lightbox { padding: 60px 8px; }
	.cms-lightbox .lb-prev, .cms-lightbox .lb-next { top: auto; bottom: 14px; transform: none; }
	.cms-lightbox .lb-prev { left: calc(50% - 60px); }
	.cms-lightbox .lb-next { right: calc(50% - 60px); }
}

@media (min-width: 768px) {
}

/* Cabeçalho: banner da Presidência com o emblema oficial por cima */
.cms-refresh .branding .pr-banner { display: block; position: relative; line-height: 0; }
.cms-refresh .branding .pr-banner-img { display: block; width: 100%; height: auto; }
.cms-refresh .branding .pr-banner-emblem { position: absolute; left: 1.9%; top: 2.5%; width: 11.2%; height: auto; max-width: none; }


/* ==========================================================================
   WordPress — conteúdos e widgets nativos
   ========================================================================== */
.cms-refresh .entry-meta-news { display: none; }
.cms-refresh .widget_recent_entries ul li, .cms-refresh .widget_cms_recent ul li { background: none !important; }
.cms-refresh .cms-recent-list img { flex: 0 0 64px; width: 64px !important; height: 64px !important; object-fit: cover; border-radius: 4px; }
.cms-refresh .comments .page-header, .cms-refresh #respond .page-header { background: none; padding: 0; }
.cms-refresh #respond { background: var(--cms-soft); border-radius: var(--cms-radius); padding: 22px; margin-top: 30px; }
.cms-refresh .comment-notes, .cms-refresh .comment-form-cookies-consent { font-size: 13px; color: var(--cms-muted); }
.cms-refresh .page-header .page-_comment-title { font-size: 20px; }

/* Imagens e blocos do editor */
.cms-refresh .entry-content .wp-block-image img, .cms-refresh .entry-content img.alignright, .cms-refresh .entry-content img.alignleft { border-radius: var(--cms-radius); }
.cms-refresh .entry-content .wp-block-gallery { margin-bottom: 1.5em; }
.cms-refresh .entry-content .wp-block-embed iframe { width: 100%; }

/* Página de erro 404 */
.cms-refresh .error404 #primary { text-align: center; padding: 30px 0 50px; float: none; }
.cms-refresh .error-text { display: inline-block; border-radius: var(--cms-radius); padding: 20px 40px; }
.cms-refresh .go-home-button { display: inline-block; background: var(--cms-primary); color: #fff !important; border-radius: var(--cms-radius); padding: 10px 24px; text-decoration: none; }


/* Galeria ocupa a largura toda (sem barra lateral) */
.pr-gallery-page #primary.grid_12 { width: auto !important; float: none; }

/* ==========================================================================
   Responsividade — qualquer dispositivo
   O "CSS adicional" do site fixa .container_12 .grid_12 a 1240px; aqui é neutralizado.
   ========================================================================== */
.cms-refresh img, .cms-refresh video, .cms-refresh iframe, .cms-refresh embed { max-width: 100%; }
.cms-refresh .entry-content img { height: auto; }
html, body { overflow-x: hidden; }

/* Ecrãs largos (≥ 1440): conteúdo continua centrado em 1240px */
@media (min-width: 1440px) {
}

/* Portáteis pequenos e tablets na horizontal */
@media (max-width: 1260px) {
	.cms-refresh .container_12 { width: auto !important; max-width: 1240px; margin-left: 16px; margin-right: 16px; }
	.cms-refresh .container_12 .grid_12 { width: auto !important; margin-left: 0 !important; margin-right: 0 !important; float: none; }
	.cms-refresh .container_12 .grid_9 { width: calc(75% - 20px) !important; margin-left: 0; margin-right: 20px; }
	.cms-refresh .container_12 .grid_3 { width: 25% !important; margin-left: 0; margin-right: 0; }
	.cms-refresh .container_12 .grid_8 { width: calc(66.66% - 20px) !important; }
	.cms-refresh .container_12 .grid_6 { width: calc(50% - 10px) !important; }
}

/* Tablets */
@media (max-width: 1024px) {
	.cms-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets na vertical e telemóveis grandes: uma coluna, barra lateral por baixo */
@media (max-width: 860px) {
	.cms-refresh .container_12 .grid_9, .cms-refresh .container_12 .grid_3, .cms-refresh .container_12 .grid_8,
	.cms-refresh .container_12 .grid_6, .cms-refresh .container_12 .grid_4 { width: auto !important; float: none !important; margin: 0 !important; }
	.cms-refresh #secondary, .cms-refresh .second-home-widget-area { margin-top: 30px !important; }
	.cms-refresh .second-home-widget-area { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
	.cms-refresh .second-home-widget-area .widget_nav_menu { grid-column: 1 / -1; }
	.cms-related-grid { grid-template-columns: repeat(2, 1fr); }
	.cms-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Telemóveis */
@media (max-width: 600px) {
	.cms-refresh .container_12 { margin-left: 12px; margin-right: 12px; }
	.cms-refresh .box-conten-margins { height: auto !important; }
	.cms-refresh .box-conten-margins .entry-header { height: auto !important; margin-bottom: 12px; }
	.cms-refresh .second-home-widget-area { grid-template-columns: 1fr; }
	.cms-page-title { font-size: 22px; }
	.cms-related-grid, .cms-gallery-grid { grid-template-columns: 1fr; }
	.cms-refresh .info-box .info-row { font-size: 14px; }
	.cms-refresh #main { padding-top: 20px; padding-bottom: 24px; }
}

/* Telemóveis muito pequenos */
@media (max-width: 360px) {
}

/* Caixa de pesquisa: uma só lupa (a do botão) */
.cms-refresh .widget_search input[type=text] { background-image: none !important; }

/* ==========================================================================
   Página inicial — cabeçalho de secção e bloco "Últimas notícias"
   ========================================================================== */
.pr-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--cms-line); position: relative; }
.pr-section-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--cms-primary); }
.pr-section-head h2 { margin: 0; padding: 0; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: 0; text-transform: none; color: #1f2a2e; }
.pr-section-head a { flex: 0 0 auto; color: var(--cms-primary) !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.pr-section-head a i { font-size: 12px; margin-left: 4px; transition: transform .15s; }
.pr-section-head a:hover i { transform: translateX(3px); }
.pr-section-head a:hover { text-decoration: underline; }

.widget_pr_news, .widget_pr_doc_tabs { margin-bottom: 36px; }
.pr-news { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.pr-news h3 { margin: 0; font-weight: 700; letter-spacing: 0; text-transform: none; }
.pr-news h3 a { color: #1f2a2e !important; text-decoration: none; }
.pr-news h3 a:hover { color: var(--cms-primary) !important; }
.pr-news time { display: block; color: var(--cms-muted); font-size: 13px; margin-bottom: 5px; }

/* Destaque */
.pr-news-lead { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cms-line); border-radius: 8px; overflow: hidden; }
.pr-news-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cms-soft); }
.pr-news-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.pr-news-lead:hover .pr-news-img img { transform: scale(1.03); }
.pr-news-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.pr-news-lead h3 { font-size: 21px; line-height: 1.28; }
.pr-news-lead p { margin: 8px 0 12px; color: var(--cms-muted); font-size: 15px; line-height: 1.55; }
.pr-news-more { margin-top: auto; color: var(--cms-primary) !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.pr-news-more i { font-size: 12px; margin-left: 4px; transition: transform .15s; }
.pr-news-more:hover { text-decoration: underline; }
.pr-news-more:hover i { transform: translateX(3px); }

/* Lista */
.pr-news-list { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cms-line); border-radius: 8px; overflow: hidden; }
.pr-news-item { flex: 1; display: flex; align-items: center; gap: 14px; padding: 14px; border-bottom: 1px solid var(--cms-line); transition: background-color .15s; }
.pr-news-item:last-child { border-bottom: 0; }
.pr-news-item:hover { background: var(--cms-soft); }
.pr-news-thumb { flex: 0 0 104px; width: 104px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--cms-soft); display: block; }
.pr-news-thumb img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.pr-news-item > div { min-width: 0; }
.pr-news-item h3 { font-size: 15px; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1024px) {
	.pr-news { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.pr-section-head h2 { font-size: 18px; }
	.pr-news-lead h3 { font-size: 19px; }
	.pr-news-thumb { flex-basis: 88px; width: 88px; }
	.pr-news-item { padding: 12px; gap: 12px; }
}

/* ==========================================================================
   Página inicial — slider: todas as imagens do mesmo tamanho, sem espaços
   ========================================================================== */
.cms-refresh .teaser { margin-bottom: 32px; }
.cms-refresh .teaser .flexslider-teaser { aspect-ratio: 16 / 9; min-height: 0 !important; margin: 0 !important; background: #14251f; border: 0; border-radius: 8px; overflow: hidden; box-shadow: var(--cms-shadow); }
.cms-refresh .teaser .flexslider-teaser.loading:before { color: #fff; }
.cms-refresh .teaser .flexslider-teaser .slides, .cms-refresh .teaser .flexslider-teaser .slides > li, .cms-refresh .teaser .flexslider-teaser .slides > li > a { height: 100%; }
.cms-refresh .teaser .flexslider-teaser .slides > li > a { display: block; }
.cms-refresh .teaser .flexslider-teaser .slides img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* Legenda */
.cms-refresh .teaser .flex-caption { left: 0; right: 0; bottom: 0; width: auto; z-index: 3; }
.cms-refresh .teaser .flex-content.container_12 { width: auto !important; max-width: none; margin: 0 !important; padding: 16px 26px; background: rgba(0, 140, 100, .78) !important; }
.cms-refresh .teaser .flex-content > a { display: block; width: auto !important; float: none !important; margin: 0 !important; overflow: visible; color: #fff !important; }
.cms-refresh .teaser .flexslider-teaser .slider-title { margin: 0; color: #fff; font-size: 26px; line-height: 1.25; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cms-refresh .teaser .flex-content > a, .cms-refresh .teaser .flex-content > a:hover, .cms-refresh .teaser .flex-content > a:hover .slider-title { text-decoration: none; }
.cms-refresh .teaser .flexslider-teaser .slider-desc p { margin: 6px 0 0; font-size: 15px; color: #e6ece9; }


/* Setas */
.cms-refresh .teaser .flex-direction-nav { display: block !important; margin: 0; padding: 0; list-style: none; }
.cms-refresh .teaser .flex-direction-nav li { position: static; margin: 0; padding: 0; background: none; }
.cms-refresh .teaser .flex-direction-nav a { position: absolute; top: 42%; z-index: 6; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff !important; font-size: 0; text-indent: 0; text-decoration: none; opacity: 0; transition: opacity .2s, background-color .2s; }
.cms-refresh .teaser .flex-direction-nav a::before { font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 16px; line-height: 1; color: #fff; }
.cms-refresh .teaser .flex-direction-nav .flex-prev { left: 14px; right: auto; }
.cms-refresh .teaser .flex-direction-nav .flex-prev::before { content: "\f053"; }
.cms-refresh .teaser .flex-direction-nav .flex-next { right: 14px; left: auto; }
.cms-refresh .teaser .flex-direction-nav .flex-next::before { content: "\f054"; }
.cms-refresh .teaser .flexslider-teaser:hover .flex-direction-nav a, .cms-refresh .teaser .flex-direction-nav a:focus-visible { opacity: 1; }
.cms-refresh .teaser .flex-direction-nav a:hover { background: var(--cms-primary); }
@media (hover: none) { .cms-refresh .teaser .flex-direction-nav a { display: none; } }

@media (max-width: 860px) {
	.cms-refresh .teaser .flexslider-teaser .slider-title { font-size: 22px; }
}
@media (max-width: 600px) {
	.cms-refresh .teaser { margin-bottom: 24px; }
	.cms-refresh .teaser .flexslider-teaser { aspect-ratio: 4 / 3; }
	.cms-refresh .teaser .flex-content.container_12 { padding: 11px 14px; }
	.cms-refresh .teaser .flexslider-teaser .slider-title { font-size: 17px; line-height: 1.3; }
}

/* ==========================================================================
   Barra lateral — calendário de eventos
   ========================================================================== */
.pr-cal { background: #fff; border: 1px solid var(--cms-line); border-radius: 8px; padding: 12px; font-size: 14px; transition: opacity .15s; }
.pr-cal.is-loading { opacity: .5; pointer-events: none; }
.pr-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.pr-cal-head strong { font-size: 15px; color: #1f2a2e; outline: 0; text-align: center; }
.pr-cal button { font-family: inherit; cursor: pointer; }
.pr-cal-head button { flex: 0 0 30px; width: 30px; height: 30px; margin: 0; padding: 0; border: 1px solid var(--cms-line); border-radius: 6px; background: #fff; color: var(--cms-text); font-size: 12px; transition: background-color .15s, color .15s, border-color .15s; }
.pr-cal-head button:hover { background: var(--cms-primary); border-color: var(--cms-primary); color: #fff; }
.pr-cal .pr-cal-grid { width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 2px; table-layout: fixed; background: none; }
.pr-cal .pr-cal-grid th { padding: 4px 0; border: 0; background: none; color: var(--cms-muted); font-size: 11px; font-weight: 600; text-align: center; text-transform: none; }
.pr-cal .pr-cal-grid td { padding: 0; border: 0; background: none; text-align: center; }
.pr-cal-day { display: block; position: relative; height: 32px; line-height: 32px; border-radius: 6px; color: var(--cms-text); font-size: 13px; }
/* Dia com evento: ligação com ponto */
.pr-cal a.pr-cal-day { color: var(--cms-primary) !important; font-weight: 700; text-decoration: none; background: #e8f4ef; transition: background-color .15s, color .15s; }
.pr-cal a.pr-cal-day::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--cms-primary); }
.pr-cal a.pr-cal-day:hover { background: var(--cms-primary); color: #fff !important; }
.pr-cal a.pr-cal-day:hover::after { background: #fff; }
/* Hoje: fundo verde */
.pr-cal .pr-cal-day.is-today, .pr-cal a.pr-cal-day.is-today { background: var(--cms-primary); color: #fff !important; font-weight: 700; }
.pr-cal a.pr-cal-day.is-today::after { background: #fff; }
.pr-cal a.pr-cal-day.is-today:hover { background: var(--cms-dark); }

/* Lista dos eventos do mês */
.cms-refresh .widget .pr-cal-events { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--cms-line); }
.cms-refresh .widget .pr-cal-events li { margin: 0; padding: 0 !important; background: none !important; animation: none; font-size: 13px; }
.cms-refresh .widget .pr-cal-events li a { display: flex; gap: 8px; padding: 5px 2px; color: var(--cms-text) !important; font-weight: 400 !important; line-height: 1.3; text-decoration: none; }
.cms-refresh .widget .pr-cal-events li a:hover { color: var(--cms-primary) !important; text-decoration: underline; }
.pr-cal-date { flex: 0 0 auto; min-width: 44px; color: var(--cms-primary); font-weight: 700; }
.pr-cal-none { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--cms-line); color: var(--cms-muted); font-size: 13px; text-align: center; }
.pr-cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 13px; }
.pr-cal-foot button { margin: 0; padding: 0; border: 0; background: none; color: var(--cms-primary); font-size: 13px; font-weight: 600; text-decoration: underline; }
.pr-cal-foot a { color: var(--cms-primary) !important; font-weight: 600; text-decoration: none; }
.pr-cal-foot a:hover { text-decoration: underline; }
.pr-cal-foot a i { font-size: 11px; margin-left: 3px; }

/* Menu fixo ao rolar: o fundo verde do cabeçalho não aparece no espaço deixado pelo menu */
.cms-refresh #masthead:has(> .menu.isStuck) { background: transparent; }

/* Foto do Presidente: mesma altura do slider (a classe é aplicada por pr-visual.js em ecrãs com duas colunas) */
.cms-refresh .second-home-widget-area > .pr-match-slider { display: flex; flex-direction: column; height: var(--pr-slider-h); margin-bottom: 32px; }
.cms-refresh .second-home-widget-area > .pr-match-slider .widget-title { flex: 0 0 auto; }
.cms-refresh .second-home-widget-area > .pr-match-slider > a { flex: 1 1 auto; min-height: 0; display: block; }
.cms-refresh .second-home-widget-area > .pr-match-slider img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: center bottom; border-radius: 8px; }

/* Slider: sem a fila de pontos/números de paginação */
.cms-refresh .teaser .flex-control-nav { display: none !important; }

/* Página inicial: links por baixo de "Fale com o Presidente" — fundo verde, sem ícones */
.cms-refresh .second-home-widget-area .widget_nav_menu ul { border: 0; background: var(--cms-primary); }
.cms-refresh .second-home-widget-area .widget_nav_menu ul li { background: var(--cms-primary) !important; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.cms-refresh .second-home-widget-area .widget_nav_menu ul li a { display: block; padding: 16px 16px; color: #fff !important; font-size: 14px; line-height: 1.35; text-decoration: none; border-left: 0; }
.cms-refresh .second-home-widget-area .widget_nav_menu ul li a::after { content: none; }
.cms-refresh .second-home-widget-area .widget_nav_menu ul li a:hover, .cms-refresh .second-home-widget-area .widget_nav_menu ul li a:focus-visible { background: var(--cms-dark); color: #fff !important; text-decoration: none; padding-left: 16px; }

/* Barra superior: data e contactos à esquerda, redes sociais e pesquisa à direita */
.cms-refresh #toolbar { background: #0b4d3a; border: 0; color: #fff; }
.cms-refresh .pr-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; float: none; }
.cms-refresh .pr-toolbar > .clear { display: none; }
.pr-toolbar-info { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; min-width: 0; font-size: 13px; line-height: 1.3; }
.pr-toolbar-date { color: rgba(255, 255, 255, .85); white-space: nowrap; }
.pr-toolbar-date i, .pr-toolbar-contact i { margin-right: 5px; color: #ffcc29; }
.cms-refresh #toolbar a.pr-toolbar-contact { color: #fff; text-decoration: none; white-space: nowrap; }
.cms-refresh #toolbar a.pr-toolbar-contact:hover { color: #ffcc29; }
.cms-refresh #toolbar .language-menu { float: none; margin: 0; }
.cms-refresh #toolbar .language-menu li a { color: #fff; }
.cms-refresh .pr-toolbar-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 2px; float: none; margin: 0; padding: 0; }
.cms-refresh .pr-toolbar-actions > li { display: flex; align-items: center; float: none; margin: 0; padding: 0; border: 0; }
.cms-refresh .pr-toolbar-actions > li > a { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 14px; line-height: 1; text-decoration: none; transition: background-color .15s, color .15s; }
.cms-refresh .pr-toolbar-actions > li > a i { display: block; line-height: 1; }
.cms-refresh .pr-toolbar-actions > li > a:hover { background: #fff; color: #0b4d3a; animation: none; }
.cms-refresh .pr-toolbar-actions > li > a:focus-visible { outline: 2px solid #ffcc29; outline-offset: 1px; }
.cms-refresh .pr-toolbar-sep { position: relative; margin-left: 8px !important; padding-left: 9px !important; }
.cms-refresh .pr-toolbar-sep::before { content: ""; position: absolute; left: 0; top: 50%; height: 18px; margin-top: -9px; border-left: 1px solid rgba(255, 255, 255, .3); }
.cms-refresh .pr-toolbar-actions .search-items { z-index: 1000; }
@media (max-width: 600px) {
	.cms-refresh .pr-toolbar { padding: 4px 12px; flex-wrap: wrap; justify-content: center; gap: 2px 12px; box-sizing: border-box; }
	.pr-toolbar-date { display: none; }
	.pr-toolbar-info { justify-content: center; }
	.cms-refresh .pr-toolbar-actions { flex-wrap: wrap; justify-content: center; }
}
