/* Rodapé — medidas a 1440 / 834 / 390 px (o reset do tema continua a valer para o input e o
   botão). Seletores começados por #mt-rodape para ganharem às regras gerais. */

#mt-rodape .mt-rod__dentro {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 2rem;
	width: 100%;
	max-width: 94%;
	margin: 0 auto;
	padding: 1rem 0 0.5rem;
}
#mt-rodape .mt-rod__dentro > *,
#mt-rodape .mt-rod__caixa > * {
	position: relative;
	min-width: 0;
}

/* ── Avaliações Google (inc/avaliacoes-google.php) ────────────────────────── */
#mt-rodape .mt-rod__selos { padding-top: 1rem; min-width: 0; }
#mt-rodape .mt-gav { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
#mt-rodape .mt-gav__cab {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem;
	color: #0f0f0f; font-size: 0.875rem; line-height: 1.3;
}
#mt-rodape .mt-gav__g { width: 22px; height: 22px; flex: none; }
#mt-rodape .mt-gav__titulo { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: #0f0f0f; }
#mt-rodape .mt-gav__nota { font-weight: 700; }
#mt-rodape .mt-gav__estrelas { display: inline-flex; gap: 1px; }
#mt-rodape .mt-gav__estrela { width: 15px; height: 15px; fill: #ffd71e; flex: none; }
#mt-rodape .mt-gav__estrela.is-vazia { fill: #ebebeb; }
#mt-rodape .mt-gav__estrelas--pequenas .mt-gav__estrela { width: 13px; height: 13px; }
#mt-rodape .mt-gav__total { color: #6b6b68; }
#mt-rodape .mt-gav__ver {
	margin-left: auto; font-weight: 600; color: #0f0f0f;
	text-decoration: underline; text-underline-offset: 3px;
}
#mt-rodape .mt-gav__ver:hover { color: #4a7259; }

/* Faixa de cartões: desliza na horizontal, sem JavaScript */
#mt-rodape .mt-gav__lista {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 1fr);
	gap: 0.75rem; margin: 0; padding: 0 0 0.5rem; list-style: none;
	overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
	scrollbar-width: thin; scrollbar-color: #ebebeb transparent;
}
#mt-rodape .mt-gav__cartao {
	display: flex; flex-direction: column; gap: 0.6rem; margin: 0; min-width: 0;
	padding: 1rem; background: #fff; border: 1px solid #ebebeb; border-radius: 12px;
	scroll-snap-align: start;
}
#mt-rodape .mt-gav__autor { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
#mt-rodape .mt-gav__autor > div { display: flex; flex-direction: column; min-width: 0; }
#mt-rodape .mt-gav__foto {
	width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; background: #f9f9f9;
}
#mt-rodape .mt-gav__foto--letra {
	display: grid; place-items: center; background: #eef3ef; color: #3a5a47; font-weight: 600; font-size: 0.95rem;
}
#mt-rodape .mt-gav__nome { font-size: 0.875rem; font-weight: 600; color: #0f0f0f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mt-rodape .mt-gav__nome a { color: inherit; text-decoration: none; }
#mt-rodape .mt-gav__nome a:hover { text-decoration: underline; }
#mt-rodape .mt-gav__quando { font-size: 0.75rem; color: #6b6b68; }
#mt-rodape .mt-gav__texto {
	margin: 0; font-size: 0.8125rem; line-height: 1.5; color: #252525;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden;
}
@media (min-width: 1025px) {
	#mt-rodape .mt-gav__lista { grid-auto-columns: calc((100% - 2.25rem) / 4); }
}

/* ── Caixa escura ────────────────────────────────────────────────────────── */
#mt-rodape .mt-rod__caixa {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: stretch;
	gap: 1rem 2rem;
	overflow: hidden;
	padding: 2rem;
	border-radius: 12px;
	background-color: var(--mx-global-color-primary);
}

/* Aparece com um fadeIn (animated-fast = 0,75 s) ao entrar no ecrã. */
.mt-invisivel { visibility: hidden; }
.mt-aparece { animation: mt-aparecer 0.75s; }
@keyframes mt-aparecer { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mt-aparece { animation: none; } }

/* As quatro colunas crescem a partir de 30 % e 15 %. */
#mt-rodape .mt-rod__news,
#mt-rodape .mt-rod__coluna {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	flex: 1 0 auto;
}
#mt-rodape .mt-rod__news { width: 30%; }
#mt-rodape .mt-rod__coluna { width: 15%; }

/* ── Newsletter ──────────────────────────────────────────────────────────── */
#mt-rodape .mt-news,
#mt-rodape .mt-news__aviso {
	width: 70%;
	max-width: 70%;
}
#mt-rodape .mt-news__campos {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -5px -10px;
}
#mt-rodape .mt-news__campos > div {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	min-height: 1px;
	margin-bottom: 10px;
	padding: 0 5px;
}
#mt-rodape .mt-news__campos > .mt-news__texto {
	display: inline-block;
	padding-bottom: 0;
	color: var(--mx-global-color-secondary);
	font-family: var(--mx-global-typography-text-font-family), Sans-serif;
	font-size: var(--mx-global-typography-text-font-size);
	font-weight: var(--mx-global-typography-text-font-weight);
}
#mt-rodape .mt-news__campos > .mt-news__enviar { align-items: flex-end; }

#mt-rodape .mt-news__input {
	flex-grow: 1;
	width: 100%;
	max-width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 0.5rem 1rem;
	vertical-align: middle;
	border: 0 solid var(--mx-global-color-5db5e15, #888888);
	border-radius: 12px;
	background-color: var(--mx-global-color-secondary);
	color: var(--mx-global-color-primary);
	font-family: var(--mx-global-typography-text-font-family), Sans-serif;
	font-size: var(--mx-global-typography-text-font-size);
	font-weight: var(--mx-global-typography-text-font-weight);
	line-height: 1.4;
	transition: all 0.3s;
}
#mt-rodape .mt-news__input::placeholder { color: inherit; font-family: inherit; opacity: 0.6; }
#mt-rodape .mt-news__input:focus { box-shadow: inset 0 0 0 1px var(--mt-foco-campo, #4A7259); outline: 0; } /* o campo não tem borda: a sombra faz de borda verde, como nos outros campos (19/10) */

#mt-rodape .mt-news__botao {
	display: inline-block;
	flex-basis: 100%;
	width: auto;
	min-height: 40px;
	margin: 0;
	padding: 0 24px;
	border: none;
	border-radius: 12px;
	background-color: var(--mx-global-color-accent);
	color: #fff;
	fill: #fff;
	font-family: var(--mx-global-typography-accent-font-family), Sans-serif;
	font-size: var(--mx-global-typography-accent-font-size);
	font-weight: var(--mx-global-typography-accent-font-weight);
	line-height: var(--mx-global-typography-accent-line-height);
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
	transition: all 0.3s;
}
#mt-rodape .mt-news__botao:hover,
#mt-rodape .mt-news__botao:focus {
	background-color: #4A7259E8;
	color: var(--mx-global-color-secondary);
	text-decoration: none;
}
#mt-rodape .mt-news__botao:focus-visible { outline: 2px solid var(--mt-foco, #4A7259) !important; outline-offset: 2px !important; }
#mt-rodape .mt-news__botao-texto {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 5px;
	white-space: normal;
}
#mt-rodape .mt-news[aria-busy="true"] .mt-news__botao { opacity: 0.45; }

/* As mensagens depois de enviar. */
#mt-rodape .mt-news__mensagem {
	width: 100%;
	margin: 10px 0;
	font-size: 1em;
	line-height: 1;
}
#mt-rodape .mt-news__mensagem--ok { color: #5cb85c; }
#mt-rodape .mt-news__mensagem--erro { color: #d9534f; }

#mt-rodape .mt-news__aviso {
	text-align: start;
	color: var(--mx-global-color-secondary);
	font-family: var(--mx-global-typography-b0e9e5e-font-family), Sans-serif;
	font-size: var(--mx-global-typography-b0e9e5e-font-size);
	font-weight: var(--mx-global-typography-b0e9e5e-font-weight);
}
#mt-rodape .mt-news__aviso p { margin: 0; }
#mt-rodape .mt-news__aviso a { color: var(--mx-global-color-5db5e15); }

/* ── Colunas de links ────────────────────────────────────────────────────── */
#mt-rodape .mt-rod__titulo {
	margin: 0;
	padding: 0;
	text-align: start;
	color: var(--mx-global-color-secondary);
	font-family: var(--mx-global-typography-6bcba6a-font-family), Sans-serif;
	font-size: var(--mx-global-typography-6bcba6a-font-size);
	font-weight: var(--mx-global-typography-6bcba6a-font-weight);
	line-height: var(--mx-global-typography-6bcba6a-line-height);
}
#mt-rodape .mt-rod__links { list-style-type: none; margin: 0; padding: 0; }
#mt-rodape .mt-rod__links li {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: start;
	text-align: start;
	margin: 0;
	padding: 0;
	font-size: inherit;
}
#mt-rodape .mt-rod__links li:not(:last-child) { padding-block-end: 5px; }
#mt-rodape .mt-rod__links li:not(:first-child) { margin-block-start: 5px; }
#mt-rodape .mt-rod__links a {
	display: flex;
	align-items: center;
	justify-content: start;
	text-align: start;
	font-family: var(--mx-global-typography-text-font-family), Sans-serif;
	font-size: var(--mx-global-typography-text-font-size);
	font-weight: var(--mx-global-typography-text-font-weight);
}
#mt-rodape .mt-rod__links .mt-icon-list-text {
	color: var(--mx-global-color-secondary);
	transition: color 0.3s;
}

/* ── Logo e pagamentos ───────────────────────────────────────────────────── */
#mt-rodape .mt-rod__marca {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding-top: 2rem;
}
#mt-rodape .mt-rod__marca > * { position: relative; min-width: 0; max-width: 100%; }
#mt-rodape .mt-rod__logo { align-self: flex-start; text-align: center; }
#mt-rodape .mt-rod__logo a { display: inline-block; }
#mt-rodape .mt-rod__logo img {
	display: inline-block;
	vertical-align: middle;
	width: 9rem;
	height: auto;
	max-width: 100%;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

#mt-rodape .mt-rod__pagamentos { width: 24rem; max-width: 24rem; }
#mt-rodape .mt-rod__galeria .gallery { margin: 0 -6px -6px 0; }
#mt-rodape .mt-rod__galeria .gallery-item {
	display: inline-block;
	width: 100%;
	max-width: 12.5%;
	margin: 0 auto;
	padding: 0 6px 6px 0;
	text-align: center;
	vertical-align: top;
}
#mt-rodape .mt-rod__galeria .gallery-icon { padding: 0; }
#mt-rodape .mt-rod__galeria .gallery-item img {
	display: block;
	margin: 0 auto;
	height: auto;
	max-width: 100%;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

/* ── Direitos e redes ────────────────────────────────────────────────────── */
#mt-rodape .mt-rod__fim {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
	width: 100%;
	padding-top: 2rem;
	border-top: 1px solid var(--mx-global-color-796a98c);
}
#mt-rodape .mt-rod__fim > * { position: relative; min-width: 0; max-width: 100%; }
#mt-rodape .mt-rod__direitos {
	margin: 0;
	padding: 0;
	line-height: 1;
	text-align: start;
	color: var(--mx-global-color-secondary);
	font-family: var(--mx-global-typography-b0e9e5e-font-family), Sans-serif;
	font-size: var(--mx-global-typography-b0e9e5e-font-size);
	font-weight: var(--mx-global-typography-b0e9e5e-font-weight);
}
#mt-rodape .mt-rod__redes {
	--mt-rede: 20px;
	--mt-rede-folga: 0px;
	display: flex;
	justify-content: flex-end;
	gap: 2rem;
	font-size: 0;
	line-height: 1;
}
#mt-rodape .mt-rod__rede { display: flex; }
#mt-rodape .mt-rod__rede-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(var(--mt-rede) + 2 * var(--mt-rede-folga));
	height: calc(var(--mt-rede) + 2 * var(--mt-rede-folga));
	border-radius: 10%;
	background-color: var(--mx-global-color-primary);
	font-size: var(--mt-rede);
	line-height: var(--mt-rede);
	text-align: center;
	color: var(--mx-global-color-5db5e15, #888888);
	cursor: pointer;
	transition: all 0.3s;
}
#mt-rodape .mt-rod__rede-link:hover { opacity: 0.9; color: #fff; }
#mt-rodape .mt-rod__rede-link svg {
	position: relative;
	display: block;
	width: 1em;
	height: 1em;
	fill: var(--mx-global-color-secondary);
}

/* ── Tablet ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	#mt-rodape .mt-rod__dentro { max-width: 96%; }
	#mt-rodape .mt-rod__caixa { gap: 2rem 3rem; }
	#mt-rodape .mt-rod__news { width: 100%; padding: 0 0 1rem; }
	#mt-rodape .mt-rod__coluna { width: 22%; }
	#mt-rodape .mt-news,
	#mt-rodape .mt-news__aviso { width: 100%; max-width: 100%; }
	#mt-rodape .mt-rod__pagamentos { width: 22rem; max-width: 22rem; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	#mt-rodape .mt-news__campos > .mt-news__email { width: 66.666%; }
	#mt-rodape .mt-news__campos > .mt-news__enviar { width: 33.333%; }
}

/* ── Telemóvel ───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
	#mt-rodape .mt-rod__dentro { gap: 0.4rem; padding: 0.4rem 0 0; }
	#mt-rodape .mt-gav__lista { grid-auto-columns: 82%; }
	#mt-rodape .mt-gav__ver { margin-left: 0; }
	#mt-rodape .mt-rod__caixa { padding: 1.2rem; }
	#mt-rodape .mt-rod__news,
	#mt-rodape .mt-rod__coluna { width: 100%; }
	#mt-rodape .mt-rod__marca,
	#mt-rodape .mt-rod__fim { flex-wrap: wrap; }
	#mt-rodape .mt-rod__pagamentos { width: 100%; max-width: 100%; }
	#mt-rodape .mt-rod__redes { --mt-rede-folga: 0.6rem; } /* o espaço fica 2rem */

	/* era o CSS personalizado do widget da galeria (.pagamentos) */
	#mt-rodape .pagamentos .gallery { display: flex !important; flex-wrap: nowrap !important; justify-content: space-between !important; }
	#mt-rodape .pagamentos .gallery-item { width: 15% !important; margin: 0 !important; }
	#mt-rodape .pagamentos .gallery-icon img { width: 100% !important; height: auto !important; object-fit: contain !important; }
}

/* ── Telemóvel, passagem de UI/UX (2026-10-17) ──
   O rodapé tinha 1 231 px: as três listas umas por baixo das outras. Recursos
   e Sobre passam a duas colunas, Políticas por baixo (nada escondido). Cada
   ligação ganha 32 px de altura para o dedo (antes ~20 px, com 10 px entre
   elas fora da área de toque). */
@media (max-width: 767px) {
	#mt-rodape .mt-rod__caixa { column-gap: 16px; }
	#mt-rodape .mt-rod__coluna { width: calc(50% - 8px); }
	#mt-rodape .mt-rod__links li:not(:last-child) { padding-block-end: 0; }
	#mt-rodape .mt-rod__links li:not(:first-child) { margin-block-start: 0; }
	#mt-rodape .mt-rod__links a { display: flex; align-items: center; min-height: 32px; }
}
