@charset "UTF-8";
/* Página de contactos — abertura de capitulos.css; à esquerda canais + mapa,
   à direita o formulário (as duas colunas acabam à mesma altura, mais ou menos) */

#div_centro {
	background-color: #ffffff;
	padding-bottom: 0;
}

#contactos {
	max-width: var(--col);
	margin: 0 auto;
	padding: 0 var(--gutter) 120px;
	box-sizing: border-box;
	font-family: inherit;
}

/* atalhos à direita do título: ligar / enviar e-mail */
.ct-atalhos { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.ct-atalhos .hm-btn { text-align: center; }
@media (max-width: 860px) { .ct-atalhos { flex-direction: row; flex-wrap: wrap; } }

/*** GRELHA DE 2 CARDS ***/
.ct-grelha {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 20px;
	align-items: start;
}

.ct-card {
	background-color: var(--bg-alt);
	border-radius: 18px;
	padding: 28px 28px;
}

.ct-coluna { display: flex; flex-direction: column; gap: 20px; }

/* título de cada cartão: a etiqueta do sistema (azul, só a 1.ª letra maiúscula) */
.ct-card-titulo {
	margin: 0 0 20px;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--accent);
}

#contactos .ct-form-intro {
	margin: -8px 0 24px;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--ink-soft);
}
#contactos .ct-form-intro a { color: var(--accent); }

/*** CANAIS DIRETOS ***/
.ct-canais {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ct-canais li {
	display: flex;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid #e2e2e5;
	font-size: 1.0625rem;
	line-height: 1.5;
	color: var(--ink);
}

.ct-canais li:first-child {
	border-top: 0;
	padding-top: 0;
}

.ct-ico {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	fill: var(--accent);
}

.ct-canal-rot {
	display: block;
	margin-bottom: 2px;
	font-weight: 600;
}

.ct-canais a {
	color: var(--accent);
	text-decoration: none;
}

.ct-canais a:hover {
	text-decoration: underline;
}

.ct-nota {
	color: var(--ink-soft);
	font-size: 0.875rem;
}

/*** FORMULÁRIO ***/
.ct-form-linha {
	display: flex;
	gap: 16px;
}

.ct-campo {
	flex: 1;
	min-width: 0;
	margin-bottom: 16px;
}

.ct-campo label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--ink-soft);
	font-family: inherit;
	text-transform: none;
}

.ct-req {
	color: var(--accent);
}

.ct-opc {
	color: var(--ink-soft);
	font-weight: 400;
}

.ct-form input,
.ct-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background-color: #ffffff;
	font-family: inherit;
	font-size: 1.0625rem;
	color: var(--ink);
	letter-spacing: 0;
	text-indent: 0;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}

.ct-form textarea {
	resize: vertical;
	min-height: 130px;
}

.ct-form input:focus,
.ct-form textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(10, 119, 189, 0.22);
}

/* validação no próprio campo: só depois de o utilizador mexer nele
   (:user-invalid), nunca a vermelho num formulário ainda por preencher */
.ct-form input:user-invalid,
.ct-form textarea:user-invalid {
	border-color: #c0362f;
}
.ct-form input:user-invalid:focus,
.ct-form textarea:user-invalid:focus {
	box-shadow: 0 0 0 3px rgba(192, 54, 47, 0.2);
}

/* honeypot fora do ecrã */
.ct-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

/* nota: theme.css (carregado depois) estiliza #submeter com !important —
   largura auto e padding pequeno; subimos a especificidade para o botão
   ocupar a largura do formulário */
.ct-form #submeter {
	-webkit-appearance: none;
	appearance: none;
	width: 100% !important;
	margin-top: 4px;
	padding: 16px 24px !important;
	border: 0 !important;
	border-radius: 980px !important;
	background-color: var(--accent) !important;
	color: #ffffff !important;
	font-family: inherit;
	font-size: 1.0625rem !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	line-height: 1.2 !important;
	cursor: pointer;
	transition: background-color .2s var(--ease);
}

.ct-form #submeter:disabled {
	opacity: .6;
	cursor: progress;
}

.ct-form #submeter:hover {
	background-color: var(--accent-dark) !important;
}

/* nota de privacidade por baixo do botão (informa; não é uma caixa a aceitar) */
#contactos .ct-privacidade {
	margin: 12px 0 0;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--ink-soft);
	text-align: center;
}
#contactos .ct-privacidade a { color: var(--accent); }

/*** FEEDBACK ***/
.ct-feedback {
	margin-top: 16px;
	font-size: 0.875rem;
	line-height: 1.5;
}

#avisos {
	display: none;
}

#avisos_ok,
#avisos_nok {
	display: block;
	padding: 12px 16px;
	border-radius: 12px;
}

#avisos_ok {
	background-color: #e7f6ec;
	color: #1c7a3e;
}

#avisos_nok {
	background-color: #fdeceb;
	color: #c0362f;
}

/*** MAPA (dentro do cartão "Onde estamos") ***/
.ct-mapa-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: 8px;
	font-size: 0.875rem;
	text-decoration: none;
}
@media (hover: hover) { .ct-mapa-link:hover { text-decoration: underline; text-underline-offset: 3px; } }

#mapa_embed {
	position: relative;
	width: 100%;
	height: 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	border-radius: 12px;
	overflow: hidden;
	background-color: var(--bg);
}

#mapa_embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

#mapa_embed .mapa_pin {
	width: 40px;
	height: 40px;
	fill: #9aa0a6;
}

#mapa_embed .mapa_botoes {
	display: flex;
	gap: 12px;
}

#mapa_embed .mapa_carregar { padding: 8px 20px; font-family: inherit; font-size: 0.875rem; cursor: pointer; }

#mapa_embed .mapa_toggle {
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	border-radius: 980px;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

#mapa_embed .mapa_toggle button {
	border: 0;
	background-color: #ffffff;
	color: #464646;
	font-family: inherit;
	font-size: 0.75rem;
	min-height: 44px;   /* alvo de toque */
	padding: 0 16px;
	cursor: pointer;
}

#mapa_embed .mapa_toggle button.ativo {
	background-color: var(--accent);
	color: #ffffff;
}

#mapa_embed .mapa_nota {
	max-width: 340px;
	margin: 0;
	font-size: 0.75rem;
	color: var(--ink-soft);
	text-align: center;
}

#mapa_embed .mapa_nota a {
	color: var(--accent);
}

/*** RESPONSIVO ***/
@media (max-width: 820px) {
	.ct-grelha {
		grid-template-columns: 1fr;
	}
	/* numa coluna só: canais, formulário e só depois o mapa */
	.ct-coluna { display: contents; }
	.ct-mapa { order: 3; }
}

@media (max-width: 560px) {

	#contactos {
		padding: 0 var(--gutter) 72px;
	}

	.ct-form-linha {
		flex-direction: column;
		gap: 0;
	}

	#mapa_embed {
		height: 240px;
	}
}
