#primary {
	background: #cbcbcb;
}

#content {
	font-family: Poppins,Sans-serif;
}

#model-box {
	grid-area: box;
	position: relative;
	top: 0;
	height: calc(100vh - 93px);
	flex: 1;
	display: flex;
	justify-content: center;
	border: none;
	box-sizing: border-box;
}

@media (max-width: 767.98px) {
	#model-box {
		position: relative;
		height: 70vh;
		min-height: 500px;
		max-height: 700px;
	}
}

model-viewer {
	width: 100%;
	height: 100%;
	touch-action: pan-y pinch-zoom;
}

@media (max-width: 767.98px) {
	model-viewer {
		touch-action: manipulation;
	}
}

.hotspot {
	display: block;
	width: 20px;
	height: 20px;
	border-radius: 10px;
	border: 3px solid #003434;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	transition: all 0.3s ease;
}

@media (max-width: 767.98px) {
	.hotspot {
		width: 28px;
		height: 28px;
		border-radius: 14px;
		border: 4px solid #003434;
	}
}

.hotspot:not([data-visible]) {
	background-color: transparent;
	border: 1px solid #003434;
	pointer-events: none;
}

.hotspot:hover,
.hotspot:focus {
	background-color: #00AD8E !important;
	border: 3px solid #00AD8E;
}

.annotation {
	position: absolute;
	top: 0;
	left: 0;
	background-color: #003434;
	font-size: 1rem;
	color: #fff;
	transform: translate(10px,10px);
	border-radius: 10px;
	padding: 5px 15px;
	z-index: 9;
}

.change_model {
	position: absolute;
	right: 10px;
	top: 10px;
	border: 2px solid #00AD8E;
	cursor: pointer;
}

.change_model img {
	width: 100px;
}

.modal {
	z-index: 999999;
}

.modal-backdrop {
	z-index: 10000;
}

button.custom-close {
	font-size: 1.5rem;
	color: #004c55;
	background-color: #ffffff;
	padding: 1rem;
	margin: -1rem -1rem -1rem auto;
	border: none;
}

button.custom-close:hover,
button.custom-close:focus {
	color: #00AD8E;
	background-color: #ffffff;
	padding: 1rem;
	margin: -1rem -1rem -1rem auto;
	border: none;
}

.img-fluid.img-icon {
	width: 100px;
	max-width: 100px;
}

.card-img-container {
	text-align: center;
	margin: 0 auto;
	cursor: pointer;
}

.card-img-top
{
	width: auto;
	max-height: 140px;
	text-align: center;
	margin: 0 auto;
}

.card-body {
	padding: 0;
}

.card-title {
	cursor: pointer;
}

.btn.backmain {
	position: absolute;
	top: 10px;
	right: 10px;
	color: #fff;
	font-size: 2rem;
	background: none;
	border: 0;
}

.btn.backmain:hover,
.btn.backmain:focus {
	background: none !important;
	border: 0 !important;
}

.zoomContainer,
.zoomPoint {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	margin: 0;
	background-color: #004c55;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
	.zoomContainer,
	.zoomPoint {
		overflow-y: scroll;
	}
}

.zoomPoint {
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	box-shadow: inset 0 0 0 2000px rgba(0, 76, 85, 0.65);
	padding-bottom: 80px;
}

@media (max-width: 767.98px) {
	.zoomPoint {
		background-position: center top;
		background-attachment: scroll;
		padding-bottom: 100px;
	}
}

.zoomPoint h2 {
	font-size: 3em;
	color: #fff;
	width: 100%;
	text-align: center;
	margin-top:30px;
}

.hbgreen {
	color: #004c55;
	display: block;
	width: 100%;
	padding-top:15px;
}

:root {
	--animate-duration: 1s;
	--animate-delay: 1s;
	--animate-repeat: 1;
}

.animate__animated {
	-webkit-animation-duration: 1s;
	animation-duration: 1s;
	-webkit-animation-duration: var(--animate-duration);
	animation-duration: var(--animate-duration);
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
}

.animate__backInDown {
	-webkit-animation-name: backInDown;
	animation-name: backInDown;
}

.animate__backOutLeft {
	-webkit-animation-name: backOutLeft;
	animation-name: backOutLeft;
}

@-webkit-keyframes backInDown {
	0% {
		-webkit-transform: translateY(-1200px) scale(0.7);
		transform: translateY(-1200px) scale(0.7);
		opacity: 1;
	}
	80% {
		-webkit-transform: translateY(0) scale(0.7);
		transform: translateY(0) scale(0.7);
		opacity: 1;
	}
	to {
		-webkit-transform: scale(1);
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes backInDown {
	0% {
		-webkit-transform: translateY(-1200px) scale(0.7);
		transform: translateY(-1200px) scale(0.7);
		opacity: 1;
	}
	80% {
		-webkit-transform: translateY(0) scale(0.7);
		transform: translateY(0) scale(0.7);
		opacity: 1;
	}
	to {
		-webkit-transform: scale(1);
		transform: scale(1);
		opacity: 1;
	}
}

@-webkit-keyframes backOutLeft {
	0% {
		-webkit-transform: scale(1);
		transform: scale(1);
		opacity: 1;
	}
	20% {
		-webkit-transform: translateX(0) scale(0.7);
		transform: translateX(0) scale(0.7);
		opacity: 1;
	}
	to {
		-webkit-transform: translateX(-2000px) scale(0.7);
		transform: translateX(-2000px) scale(0.7);
		opacity: 1;
	}
}

@keyframes backOutLeft {
	0% {
		-webkit-transform: scale(1);
		transform: scale(1);
		opacity: 1;
	}
	20% {
		-webkit-transform: translateX(0) scale(0.7);
		transform: translateX(0) scale(0.7);
		opacity: 1;
	}
	to {
		-webkit-transform: translateX(-2000px) scale(0.7);
		transform: translateX(-2000px) scale(0.7);
		opacity: 1;
	}
}

@media print, (prefers-reduced-motion: reduce) {
	.animate__animated {
		-webkit-animation-duration: 1ms !important;
		animation-duration: 1ms !important;
		-webkit-transition-duration: 1ms !important;
		transition-duration: 1ms !important;
		-webkit-animation-iteration-count: 1 !important;
		animation-iteration-count: 1 !important;
	}
	.animate__animated[class*="Out"] {
		opacity: 0;
	}
}

@media (max-width: 1199.98px) {}

@media (max-width: 991.98px) {
	.annotation {
		top: -15px;
		left: calc(50% - 165px);
		font-size: .9rem;
		padding: 5px 7px;
		line-height: 1.2;
	}

	h3.card-title {
		font-size: 1.5rem;
	}

	.change_model {
		top: 40px;
		right: 0;
	}
	.change_model img {
		width: 75px;
	}
}

@media (max-width: 767.98px) {
	.zoomPoint h2 {
		font-size: 2.25em;
		margin-top: 20px;
		padding: 0 15px;
	}

	h3.card-title {
		font-size: 1.3rem;
	}

	.zoomPoint .container-fluid {
		padding-bottom: 60px;
	}
}

@media (max-width: 575.98px) {
	.annotation {
		font-size: 0.75rem;
		padding: 3px 5px;
		left: calc(50% - 140px);
	}

	.zoomPoint h2 {
		font-size: 1.75em;
		margin-top: 15px;
	}

	.btn.backmain {
		font-size: 1.75rem;
		padding: 5px 10px;
	}
}

/* Reset view button */
.reset-view-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: #00AD8E;
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 56px;
	height: 56px;
	font-size: 24px;
	cursor: pointer;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.reset-view-btn:hover,
.reset-view-btn:focus {
	background-color: #003434;
	transform: scale(1.1);
}

.reset-view-btn.hidden {
	display: none;
}

@media (max-width: 767.98px) {
	.reset-view-btn {
		bottom: 15px;
		right: 15px;
		width: 48px;
		height: 48px;
		font-size: 20px;
	}
}

/* Smooth scrolling per tutto */
html {
	scroll-behavior: smooth;
}