html {
	scroll-behavior: smooth;
}

/* Reset básico */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
	padding-top: 130px;
	/* altura do header fixo */
	background-color: #f9f9f9;
}

/* Header superior */
#headContact {
	background-color: #0066cc;
	color: white;
	padding: 5px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
}

.contatos p,
#headAgendar p {
	margin: 0 10px 0 0;
}

/* Header fixo */
.sticky-header {
	width: 100%;
	background-color: white;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	z-index: 999;
	transition: top 0.3s ease;
}

.header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

/* Logotipo */
.logo img {
	height: 100px;
	transition: height 0.3s ease;
}

/* Menu */
.main-nav ul {
	display: flex;
	list-style: none;
	gap: 20px;
	padding: 0;
	margin: 0;
}

.main-nav a {
	text-decoration: none;
	color: #333;
	font-weight: 600;
	transition: color 0.3s;
}

.main-nav a:hover {
	color: #0066cc;
}

.btn-agendar {
	background-color: #0066cc;
	color: white !important;
	padding: 6px 12px;
	border-radius: 5px;
}

/* Redes sociais */
.social-icons a {
	margin-left: 10px;
	color: #333;
	font-size: 18px;
	transition: color 0.3s;
}

.social-icons a:hover {
	color: #0066cc;
}

/* Secções */
section {
	padding: 100px 20px;
	border-bottom: 1px solid #ccc;
	background-color: white;
}

.sticky-header.scrolled {
	position: fixed;
	top: 0;
	left: 0;
}

.sticky-header.scrolled .logo img {
	height: 55px;
	/* logotipo menor */
}

.sticky-header.scrolled .main-nav a {
	font-size: 13px;
	/* letras do menu menores */
}

@media (max-width: 768px) {
	.header-container {
		flex-direction: column;
		align-items: center;
		gap: 10px;
		text-align: center;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 8px;
	}

	.sticky-header.scrolled .logo img {
		height: 45px;
	}

	.sticky-header.scrolled .main-nav a {
		font-size: 12px;
	}

	.social-icons {
		flex-direction: row;
		justify-content: center;
	}
}
/* Botão hambúrguer */
.menu-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
	gap: 4px;
}

.menu-toggle span {
	width: 25px;
	height: 3px;
	background: #333;
	border-radius: 2px;
}

/* Estilos para ecrãs pequenos */
@media (max-width: 768px) {
	.menu-toggle {
		display: flex;
	}

	.main-nav ul {
		display: none;
		flex-direction: column;
		width: 100%;
		background: white;
		position: absolute;
		top: 100%;
		left: 0;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
		padding: 20px;
	}

	.main-nav ul.show {
		display: flex;
	}

	.main-nav li {
		margin: 10px 0;
		text-align: center;
	}

	.social-icons {
		justify-content: center;
	}

		body {
			padding-top: 90px;
			/* altura reduzida no mobile */
		}
}

/* Carrossel */
main {
	margin: 0 !important;
	padding: 0 !important;
	height: auto;
	/* Garante que a altura se ajuste ao conteúdo */
}

#carouselPrincipal {
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
}

.carousel {
	margin: 0 !important;
	padding: 0 !important;
}

.carousel-inner {
	margin: 0;
	padding: 0;
}

.carousel-item {
	height: auto !important;
}

.carousel-item img {
	width: 100%;
	height: auto;
	/* Garante que a imagem ocupe toda a altura do item */
	object-fit: contain;
	/* Altera para cover para preencher sem barras, se preferir contain avise */
	display: block;
}

.carousel-caption {
	background-color: rgba(0, 0, 0, 0.2);
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 0;
	/* Remove margem inferior nos captions */
}

.carousel-control-prev,
.carousel-control-next {
	margin-bottom: 0;
	/* Remove margem nos botões de controle */
}

/* Media Queries */
@media (max-width: 768px) {
	#headContact {
		flex-direction: column;
		align-items: center;
	}

	#headAgendar {
		text-align: center;
	}

	.carousel-item {
		height: 400px !important;
	}

	.carousel-caption h5 {
		font-size: 1.2rem;
	}

	.carousel-caption p {
		font-size: 0.9rem;
	} }

/* Seção de Serviços */
#servicos {
	background-color: #f8f9fa;
	padding: 40px 0;
}

.service-card {
	position: relative;
	overflow: hidden;
}

.service-img {
	max-height: 300px;
	width: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.service-card:hover .service-img {
	transform: scale(1.1);
}

.collapse {
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 5px;
	margin-top: 10px;
}

.card-body {
	padding: 15px;
}

@media (max-width: 768px) {
	.service-img {
		max-height: 200px;
	}

	.collapse {
		margin-top: 5px;
	}
}

/* Seção Sobre Nós */
#sobre-nos {
	background-color: #f8f9fa;
	padding: 60px 0;
}

.image-stack {
	position: relative;
	width: 80%;
	max-width: 350px;
	margin-left: 0;
}

.main-image {
	width: 80%;
	height: auto;
	z-index: 1;
}

.mid-image {
	position: absolute;
	top: 50px;
	right: -130px;
	width: 70%;
	height: auto;
	z-index: 2;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.small-image {
	position: absolute;
	top: 150px;
	right: -200px;
	width: 60%;
	height: auto;
	z-index: 3;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.text-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-left: 30px;
}

.title {
	font-size: 2rem;
	margin-bottom: 10px;
	color: #333;
}

.subtitle {
	font-size: 1.5rem;
	font-weight: normal;
	margin-bottom: 20px;
	color: #555;
}

.text-content {
	font-size: 1.1rem;
	line-height: 1.6;
	color: #333;
}

@media (max-width: 768px) {
	.image-stack {
		position: static;
		max-width: 100%;
	}

	.main-image,
	.mid-image,
	.small-image {
		position: relative;
		top: 0;
		left: 0;
		width: 100%;
		margin-bottom: 20px;
		box-shadow: none;
	}

	.text-container {
		align-items: center;
		padding-left: 0;
		margin-top: 20px;
	}

	.title {
		font-size: 1.5rem;
	}

	.subtitle {
		font-size: 1.2rem;
	}
}

/* Seção Acordos */
#acordos {
	background-color: #ffffff;
	padding: 60px 0;
	overflow-x: hidden;
}

.acordos-banner {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
}

.acordos-banner img {
	width: 100%;
	max-height: 500px;
	object-fit: contain;
	aspect-ratio: 16 / 9;
	display: block;
}

@media (max-width: 768px) {
	.acordos-banner img {
		max-height: 300px;
	} }


/* Estilos Carrossel Mais Vendidos */
.carousel-maisvendidos-wrapper {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.carousel-maisvendidos {
	overflow: hidden;
}

.carousel-track {
	display: flex;
	transition: transform 0.5s ease-in-out;
	will-change: transform;
}

.carousel-track img {
	max-height: 180px;
	margin: 0 10px;
	flex: 0 0 auto;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
}

.carousel-track img:hover {
	transform: scale(1.1);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Botões */
.btn-prev,
.btn-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(0, 0, 0, 0.5);
	border: none;
	color: white;
	font-size: 2rem;
	padding: 0 12px;
	z-index: 2;
	cursor: pointer;
	display: none;
}

.btn-prev {
	left: 0;
}

.btn-next {
	right: 0;
}

.carousel-maisvendidos-wrapper:hover .btn-prev,
.carousel-maisvendidos-wrapper:hover .btn-next {
	display: block;
}

/* Responsivo */
@media (max-width: 768px) {
	.carousel-track img {
		max-height: 130px;
		margin: 0 5px;
	}

	.btn-prev,
	.btn-next {
		font-size: 1.5rem;
	}
}

#video-apresentacao .video-wrapper {
	max-width: 800px;
	margin: 0 auto;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
	aspect-ratio: 16 / 9;
}

#video-apresentacao .video-wrapper video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.img-testemunho {
	width: 100%;
	max-width: 350px;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.img-testemunho:hover {
	transform: scale(1.03);
}
#video-fundo {
	display: flex;
	height: 100vh;
	width: 100%;
	overflow: hidden;
	background-color: #000;
}

.video-container {
	flex: 1.5;
	/* 60% do espaço */
	position: relative;
}

.video-container video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.5);
}

.form-overlay {
	flex: 1;
	/* 40% do espaço */
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px;
	background-color: rgba(255, 255, 255, 0.85);
	color: #333;
}

.form-overlay h2 {
	font-size: 28px;
	margin-bottom: 20px;
}

.form-overlay form .form-group {
	margin-bottom: 15px;
}

.form-overlay form input,
.form-overlay form select {
	width: 100%;
	padding: 10px;
	font-size: 16px;
	border-radius: 4px;
	border: 1px solid #ccc;
}

.form-overlay form button {
	margin-top: 15px;
	padding: 12px;
	font-size: 16px;
	background-color: #007bff;
	border: none;
	color: white;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.form-overlay form button:hover {
	background-color: #0056b3;
}

/* Responsivo */
@media (max-width: 768px) {
	#video-fundo {
		flex-direction: column;
		height: auto;
	}

	.video-container,
	.form-overlay {
		flex: unset;
		width: 100%;
		height: auto;
	}

	.video-container video {
		height: 250px;
	}
}


footer {
	position: relative;
	z-index: 0;
	padding: 20px; }

.footer {
	background-color: azure;
	color: #1e1c1cdb;
	padding: 40px 20px 20px;
	font-family: Arial, sans-serif;
}

.footer-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 30px;
	max-width: 1200px;
	margin: auto;
}

.footer-section {
	flex: 1 1 200px;
	min-width: 220px;
}

.footer-section h4 {
	font-size: 18px;
	margin-bottom: 12px;
	color: #1e1c1cdb;
}

.footer-section p,
.footer-section li {
	font-size: 14px;
	line-height: 1.6;
	margin: 5px 0;
}

.footer-section ul {
	list-style: none;
	padding: 0;
}

.footer-section a {
	color: #444;
	text-decoration: none;
}

.footer-section a:hover {
	color: #444;
	text-decoration: underline;
}

.social-icons {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.social-icons a {
	color: #ccc;
	font-size: 18px;
	transition: 0.3s;
}

.social-icons a:hover {
	color: #00aaff;
}

.footer-bottom {
	text-align: center;
	margin-top: 30px;
	border-top: 1px solid #444;
	padding-top: 15px;
	font-size: 13px;
}

.footer-bottom a {
	color: #999;
	text-decoration: none;
	margin: 0 5px;
}

.footer-bottom a:hover {
	color: #fff;
}

.newsletter-section {
	margin-top: 20px;
	padding: 10px 0;
}

.newsletter-section p {
	font-weight: bold;
	color: #1a1a1a;
	margin-bottom: 10px;
}

.whatsapp-button {
	display: inline-block;
	background-color: #055e26;
	color: white;
	padding: 10px 18px;
	border-radius: 6px;
	font-weight: bold;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
	background-color: #055e26;
}
@media (max-width: 576px) {
	.whatsapp-button {
		display: block;
		width: 100%;
		margin: 8px auto;
		max-width: 300px;
	}

	.newsletter-section p {
		font-size: 16px;
	}
}
.whatsapp-links {
	margin-top: 15px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
}

.whatsapp-button {
	display: inline-block;
	background-color: #25d366;
	color: white;
	padding: 10px 18px;
	border-radius: 6px;
	font-weight: bold;
	text-decoration: none;
	transition: background-color 0.3s ease;
	font-size: 14px;
}

.whatsapp-button i {
	margin-right: 8px;
	font-size: 16px;
}

.whatsapp-button:hover {
	background-color: #1ebd5a;
}

.floating-icons-middle {
	position: fixed;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 15px;
	z-index: 999;
}

.floating-icons-middle a {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	margin-right: 10px;
	text-decoration: none;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
	transition: transform 0.3s ease, background 0.3s ease;
	color: white;
}

/* Email - azul gradiente */
.floating-icons-middle .email-icon {
	background: linear-gradient(135deg, #0077ff, #00c6ff);
}

.floating-icons-middle .email-icon:hover {
	transform: scale(1.15);
	background: linear-gradient(135deg, #005bb5, #0099cc);
}

/* WhatsApp - verde oficial */
.floating-icons-middle .whatsapp-icon {
	background-color: #25D366;
}

.floating-icons-middle .whatsapp-icon:hover {
	transform: scale(1.15);
	background-color: #128C7E;
}

/* Popup WhatsApp */
.popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.popup-content {
	background: white;
	padding: 30px;
	border-radius: 12px;
	max-width: 800px;
	width: 95%;
	position: relative;
	animation: popupAnim 0.4s ease-out;
	text-align: center;
}

@keyframes popupAnim {
	from {
		transform: scale(0.8);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

.close-popup {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 24px;
	cursor: pointer;
	color: #999;
}

.close-popup:hover {
	color: #333;
}

.qr-section {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 30px;
	margin-top: 20px;
}

.qr-box {
	flex: 1 1 250px;
	max-width: 300px;
}

.qr-box h3 {
	margin-bottom: 10px;
	color: #0066cc;
}

.qr-code {
	width: 100%;
	max-width: 250px;
	border-radius: 10px;
	margin-bottom: 10px;
}

.btn-whatsapp {
	display: inline-block;
	background-color: #25D366;
	color: white;
	padding: 10px 18px;
	border-radius: 30px;
	text-decoration: none;
	font-weight: bold;
	font-size: 14px;
	transition: background 0.3s;
}

.btn-whatsapp:hover {
	background-color: #1ebe5c;
}

@media (max-width: 768px) {
	.popup {
			position: fixed;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background: rgba(0, 0, 0, 0.6);
			z-index: 9999;
			display: flex;
			align-items: center;
			justify-content: center;
			padding: 10px;
			/* margem extra para ecrãs pequenos */
			overflow-y: auto;
			/* permite scroll interno */
		}

		.popup-content {
			background: white;
			padding: 30px 20px;
			border-radius: 12px;
			width: 100%;
			max-width: 800px;
			max-height: 95vh;
			/* nunca ultrapassa a altura do ecrã */
			overflow-y: auto;
			/* scroll apenas no conteúdo se necessário */
			position: relative;
			animation: popupAnim 0.4s ease-out;
			text-align: center;
			box-sizing: border-box;
		}
}

/* Garantir layout consistente */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Evitar conflitos no corpo da página */
body {
	margin: 0;
	padding: 0;
}

/* Ajuste extra para telas pequenas */
@media (max-width: 768px) {
	.popup-content {
		margin-top: 80px;
		/* mais margem para evitar a barra superior */
	}

	.close-popup {
		top: 20px;
		right: 20px;
		z-index: 10001;
	}
}
