/* 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;
}

/* ── Selos da Trustindex ─────────────────────────────────────────────────── */
#mt-rodape .mt-rod__selos {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	padding-top: 1rem;
}
#mt-rodape .mt-rod__selos > * { position: relative; min-width: 0; max-width: 100%; }
#mt-rodape .mt-rod__certificado { z-index: 1; }

/* ── 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 rgba(0, 0, 0, 0.1); outline: 0; }

#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: 3px solid #000 !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-rod__selos { flex-direction: column; }
	#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; }
}
