@charset "UTF-8";
/* Homepage — capítulos ao estilo das páginas de produto da Apple: uma barra de
   capítulos fixa (vidro, como o menu) e uma ideia por capítulo, título ao centro,
   fundos a alternar branco/cinzento. Motion só de entrada (uma vez) e do capítulo
   atual na barra — sem carrosséis nem efeitos ao scroll (home.js). Capítulos,
   botões e entradas partilhados com a Empresa: capitulos.css / capitulos.js.
   Cores e tipografia vêm dos tokens de theme.css. */

#div_centro {
	padding-bottom: 0;
}

/* ── barra de capítulos: fixa por baixo do menu ── */
.hp-subnav {
	position: sticky;
	top: var(--header-h);
	z-index: 900;
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.hp-subnav-in {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: var(--col);
	height: 52px;
	margin: 0 auto;
	padding: 0 var(--gutter);
	box-sizing: border-box;
}
.hp-subnav-lista {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;   /* sem isto não encolhe, não desliza e fica por baixo do botão */
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.hp-subnav-lista::-webkit-scrollbar { display: none; }
.hp-subnav-lista a {
	display: flex;
	align-items: center;
	height: 44px;
	padding: 0 12px;
	color: var(--ink-soft);
	font-size: 0.875rem;
	white-space: nowrap;
	text-decoration: none;
	transition: color .2s var(--ease);
}
.hp-subnav-lista li:first-child a { padding-left: 0; }
/* a lista corta o que sai dela (overflow) — o contorno de foco vai para dentro */
.hp-subnav-lista a:focus-visible { outline-offset: -2px; }
.hp-subnav-lista a[aria-current="true"] { color: var(--ink); }
@media (hover: hover) { .hp-subnav-lista a:hover { color: var(--ink); } }
/* o sublinhado único que desliza para o capítulo ativo (posição dada pelo JS) */
.hp-subnav-marca {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 1px;
	height: 2px;
	background: var(--accent);
	opacity: 0;
	transform-origin: left;
	transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.hp-subnav-cta { flex: none; margin-left: auto; padding: 6px 16px; font-size: 0.875rem; }
/* o botão da barra só aparece quando o "Pedir cotação" do topo já saiu do ecrã
   (classe dada pelo home.js) — nunca dois iguais à vista. Sem JS fica sempre. */
.hp-js .hp-subnav-cta {
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.hp-js .hp-subnav--cta .hp-subnav-cta {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
}

/* saltos por âncora e foco por Tab não ficam escondidos por baixo de menu + barra */
html { scroll-padding-top: calc(var(--header-h) + 52px); }

/* ── abertura ── */
.hm-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 48px;
	max-width: var(--col);
	margin: 0 auto;
	padding: 56px var(--gutter) 0;
}

#div_centro .hm-kicker {
	margin: 0 0 12px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--accent);
}
/* link para o vídeo do fabrico (empresa.php#como-fazemos): alvo de 44px sem
   empurrar o título — o padding vertical é compensado pela margem negativa */
#div_centro .hm-kicker a {
	display: inline-block;
	padding: 13px 0;
	margin: -13px 0;
	color: inherit;
	text-decoration: none;
}
@media (hover: hover) { #div_centro .hm-kicker a:hover { text-decoration: underline; text-underline-offset: 3px; } }

.hm-hero h1 {
	margin: 0;
	font-size: 3rem;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--ink);
}

#div_centro .hm-lead {
	margin: 20px 0 32px;
	max-width: 34ch;
	font-size: 1.3125rem;
	line-height: 1.45;
	color: var(--ink-soft);
}

.hm-hero-foto {
	width: 100%;
	height: auto;                   /* senão o height="" do HTML manda na altura */
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 55%;
	border-radius: 18px;
	display: block;
}

/* entrada única da foto ao abrir a página — depois fica parada
   (sem scroll, sem loop; com "reduzir movimento" não acontece) */
@media (prefers-reduced-motion: no-preference) {
	.hm-hero-foto { animation: hm-foto-entra .6s var(--ease) both; }
	@keyframes hm-foto-entra { from { opacity: 0; scale: 1.02; } }
}

/* zoom da referência para a ficha (View Transition entre páginas).
   Só homepage e ficha de produto ligam isto — o resto do site navega
   como sempre. O nome "produto-foto" é dado no clique (home.js). */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
}

/* atraso das notícias em cascata (o resto das entradas está em capitulos.css) */
@media (prefers-reduced-motion: no-preference) {
	.hp-js .hp-novas .hp-revela:nth-child(2) { transition-delay: 60ms; }
	.hp-js .hp-novas .hp-revela:nth-child(3) { transition-delay: 120ms; }
}

.hm-sub {
	margin: 48px 0 16px;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--ink);
	text-align: center;
}


/* ── acabamentos: foto da asa + bolinhas maiores, agrupadas ── */
.hp-acab-foto {
	display: block;
	width: 100%;
	max-width: 760px;
	height: auto;
	margin: 0 auto 48px;
	filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.18));
}
.hp-acab {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px 64px;
}
#div_centro .hp-acab-titulo {
	margin: 0 0 16px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ink);
	text-align: center !important;
}
/* "Anodizado · 4 cores": o acabamento manda, a contagem fica em segundo plano */
.hp-acab-titulo span { font-weight: 400; color: var(--ink-soft); }
.hp-acab ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hp-acab li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 56px;
	font-size: 0.875rem;
	color: var(--ink-soft);
}
.hp-acab .ai-dot { width: 40px; height: 40px; }
/* "+9 Outras cores": mesma bolinha, sem cor — as lacadas que não têm 3D */
.hp-acab-mais {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-sizing: border-box;
	box-shadow: inset 0 0 0 1px var(--line);
	background: var(--bg);
	color: var(--ink-soft);
	font-size: 0.875rem;
	font-weight: 600;
}
/* nota do lacado, por baixo das bolinhas dele (não do anodizado) */
#div_centro .hp-acab-nota {
	max-width: 36ch;
	margin: 16px auto 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--ink-soft);
	text-align: center !important;
}

/* ── 3D + realidade aumentada: dois painéis escuros lado a lado (o painel
   inteiro é o link). O Three.js nunca carrega aqui — o render é estático. ── */
.hp-3d-mosaico {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.hp-3d-painel {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 560px;
	overflow: hidden;
	padding: 40px 40px 32px;
	border-radius: 28px;
	box-sizing: border-box;
	background:
		radial-gradient(ellipse 70% 55% at 50% 62%, rgba(232, 194, 74, 0.14), transparent 70%),
		linear-gradient(180deg, #1b1b1e 0%, #0d0d0f 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	color: #fff;
	text-decoration: none;
	transition: transform .1s var(--ease);
}
.hp-3d-painel:hover { color: #fff; }
.hp-3d-painel:active { transform: scale(.99); }
.hp-3d-painel--ar {
	background:
		radial-gradient(ellipse 60% 50% at 50% 70%, rgba(10, 119, 189, 0.22), transparent 70%),
		linear-gradient(180deg, #1b1b1e 0%, #0d0d0f 100%);
}
.hp-3d-painel-texto { display: block; text-align: left; }
.hp-3d-painel-etiqueta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.6);
}
.hp-3d-painel-titulo {
	display: block;
	max-width: 14ch;
	margin-top: 8px;
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.hp-3d-painel-cta {
	margin-top: auto;
	padding-top: 24px;
	font-size: 1.0625rem;
	color: #fff;
}
@media (hover: hover) { .hp-3d-painel:hover .hp-3d-painel-cta { text-decoration: underline; text-underline-offset: 3px; } }

/* render da peça a flutuar no centro do painel, com sombra de chão */
.hp-3d-render {
	display: block;
	width: 112%;
	max-width: none;
	height: auto;
	margin: auto -6% 0;
	transform: rotate(-8deg);
	filter: drop-shadow(0 32px 28px rgba(0, 0, 0, 0.55));
	transition: transform .35s var(--ease);
}
@media (hover: hover) {
	.hp-3d-painel:hover .hp-3d-render { transform: rotate(-5deg) scale(1.03); }
}

.hp-ar-selo {
	padding: 2px 6px;
	border-radius: 6px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: #fff;
}

/* telemóvel em CSS: aro preto, ilha no topo, ecrã com a vista AR */
.hp-telemovel {
	position: relative;
	display: block;
	width: 220px;
	aspect-ratio: 9 / 19;
	margin: 32px auto 0;
	padding: 8px;
	border-radius: 40px;
	box-sizing: border-box;
	background: #050506;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.14),
		0 40px 60px -20px rgba(0, 0, 0, 0.8);
	transition: transform .35s var(--ease);
}
.hp-telemovel::before {          /* ilha */
	content: "";
	position: absolute;
	z-index: 2;
	top: 16px;
	left: 50%;
	width: 64px;
	height: 18px;
	margin-left: -32px;
	border-radius: 10px;
	background: #050506;
}
@media (hover: hover) { .hp-3d-painel:hover .hp-telemovel { transform: translateY(-6px); } }
.hp-telemovel-ecra {
	position: relative;
	display: block;
	height: 100%;
	overflow: hidden;
	border-radius: 32px;
}
.hp-telemovel-ecra img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 40% 50%;
}
/* cantos de enquadramento à volta da asa (a asa está a ~33–52% × 38–79% do
   ecrã — se a foto 962_l_porta.webp mudar, recalcular) */
.hp-ar-alvo {
	position: absolute;
	left: 26%;
	right: 44%;
	top: 37%;
	bottom: 19%;
	background:
		linear-gradient(#fff, #fff) top left / 14px 2px,
		linear-gradient(#fff, #fff) top left / 2px 14px,
		linear-gradient(#fff, #fff) top right / 14px 2px,
		linear-gradient(#fff, #fff) top right / 2px 14px,
		linear-gradient(#fff, #fff) bottom left / 14px 2px,
		linear-gradient(#fff, #fff) bottom left / 2px 14px,
		linear-gradient(#fff, #fff) bottom right / 14px 2px,
		linear-gradient(#fff, #fff) bottom right / 2px 14px;
	background-repeat: no-repeat;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
/* seletor Objeto | AR (como o do Quick Look) e etiqueta, em vidro */
.hp-ar-modo,
.hp-ar-etiqueta {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	border-radius: var(--pill);
	background: rgba(30, 30, 32, 0.55);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}
.hp-ar-modo { top: 46px; display: flex; padding: 2px; }
.hp-ar-modo span { padding: 4px 12px; border-radius: var(--pill); color: rgba(255, 255, 255, 0.7); }
.hp-ar-modo .hp-ar-modo-ativo { background: rgba(255, 255, 255, 0.92); color: var(--ink); }
.hp-ar-etiqueta { bottom: 24px; padding: 6px 12px; }

.hp-3d-notas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 32px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	color: var(--ink-soft);
}
.hp-3d-notas li::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--accent);
	vertical-align: 2px;
}

/* ── ecrãs pequenos ── */
@media (max-width: 860px) {
	.hm-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
	.hm-hero h1 { font-size: 2.5rem; }
	.hm-hero-foto { aspect-ratio: 4 / 3; }
	.hp-3d-mosaico { grid-template-columns: 1fr; }
	.hp-3d-painel { min-height: 0; padding: 32px 24px 24px; }
	.hp-3d-render { margin-top: 40px; }
	.hp-3d-painel-titulo { font-size: 1.75rem; }
}

@media (max-width: 560px) {
	.hm-hero h1 { font-size: 2rem; }
	#div_centro .hm-lead { font-size: 1.0625rem; }
	.hp-acab { gap: 24px; }
	.hp-acab ul { gap: 16px; }
	.hp-subnav-cta { padding: 6px 12px; }
	/* a lista desliza na horizontal — esbater a ponta para se perceber que há mais */
	.hp-subnav-lista {
		-webkit-mask-image: linear-gradient(to right, #000 80%, transparent);
		mask-image: linear-gradient(to right, #000 80%, transparent);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hp-3d-render, .hp-telemovel { transition: none; }
	.hp-3d-painel:active { transform: none; opacity: .85; }
	.hp-js .hp-subnav-cta { transform: none; }
}
