/* =========================================================
   NELDEN - Single Product Frontend CSS
   ========================================================= */

.nld-single-wrap {
	width: 100%;
	background: #fff;
}

.nld-single-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 48px 24px 80px;
}

/* --- HERO --- */
.nld-single-hero {
	width:100%;
	background-color: #bbcdcd;
	display: flex;
	align-items: center;
	height: 40vh;
	min-height:200px;
	max-height:500px;
	overflow:hidden;
}

.nld-single-cover {
	width:100%;
	height:100%;
	overflow:hidden;
}

.nld-single-cover img {
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
}

.nld-single-hero-text {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 8px;
}

.nld-single-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nld-single-cat {
	display: inline-block;
	padding: 4px 12px;
	background: #f0f4f8;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #0f3460;
}

.nld-single-title {
	color: #1b5e5c;
	line-height: 1.2;
	margin: 0;
	margin-bottom: 22px;
}

.nld-btn-download,
.nld-btn-view-pdf{
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	background: #3d8383;
	margin-right:5px;
	color: #fff;
	border-radius: 0px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background .2s;
	align-self: flex-start;
	cursor:pointer;
}

.nld-btn-download:hover,
.nld-btn-view-pdf:hover{
	background: #25b7b7;
	color: #fff;
}

/* --- SEZIONI --- */
.nld-single-section {
	padding-bottom: 52px;
}

.nld-single-section:last-of-type {
	border-bottom: none;
}

.nld-single-section-title {
	font-size: 25px;
	font-weight: 800;
	text-transform: uppercase;
	font-weight:900 !important;
	letter-spacing: 1px;
	color: #166f6f;
	margin: 0 0 8px;
}

.nld-full-row{
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);

}

.nld-single-content {
	font-size: 16px;
	line-height: 1.8;
	color: #2d2d2d;
}

.nld-full-row .nld-single-section {
	width: 100%;
	max-width: 1048px;
	 margin:auto;
}

.nld-single-content p { margin-bottom: -27px;}
.nld-single-content h1,
.nld-single-content h2,
.nld-single-content h3 { color: #1a1a2e; margin: 28px 0 12px; }
.nld-single-content ul,
.nld-single-content ol { padding-left: 20px; margin-bottom: 16px; }
.nld-single-content li { margin-bottom: 6px; }
.nld-single-content table { border-collapse: collapse; width: 100%; margin-bottom: 20px; }
.nld-single-content table th,
.nld-single-content table td { border: 1px solid #e2e6ea; padding: 10px 14px; font-size: 14px; }
.nld-single-content table th { background: #f7f8fa; font-weight: 700; }

/* --- SCHEDA TECNICA --- */
.nld-single-sheet { background: #f7f8fa; padding: 36px; border-radius: 12px; border-bottom: none; margin-bottom: 36px;}
.nld-single-sheet .nld-single-section-title { color: #0f3460; }

/* --- VIDEO --- */
.nld-single-video-wrap {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nld-single-video-wrap iframe,
.nld-single-video-wrap video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.nld-video-server { padding-bottom: 0; height: auto; }
.nld-video-server video { position: static; height: auto; border-radius: 10px; }

/* --- GALLERIA --- */
.nld-single-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}

.nld-gallery-link {
	flex: 0 0 calc(25% - 11px);
	display: block;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 4/3;
	background: #f0f4f8;
	transition: transform .2s, box-shadow .2s;
}

.nld-gallery-link:hover {
	transform: scale(1.02);
	box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.nld-gallery-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* --- CONTENUTI COLLEGATI --- */
.nld-single-linked {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.nld-linked-pill {
	display: inline-flex;
	align-items: center;
	min-width: 150px;
	padding: 30px 20px;
	background: #3d8383;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s;
}

.nld-linked-pill:hover {
	background: #25b7b7;
	color: #fff;
}

/* --- BACK LINK --- */
.nld-single-back { margin-top: 48px; }

.nld-back-link {
	font-size: 14px;
	font-weight: 600;
	color: #6c757d;
	text-decoration: none;
	transition: color .2s;
}

.nld-back-link:hover { color: #0f3460; }

/* Lightbox immagini */
.nld-lightbox {
	position: fixed;
	inset: 0;
	background: rgb(0 0 0 / 88%);
	z-index: 999998;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
	animation: nld-lb-fadein 0.2s ease;
}
@keyframes nld-lb-fadein {
	from { opacity: 0; }
	to { opacity: 1; }
}
.nld-lightbox img {
	max-width: 92vw;
	max-height: 92vh;
	object-fit: contain;
	border-radius: 4px;
	cursor: default;
}
.nld-lightbox-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	background: rgba(255,255,255,0.15);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}
.nld-lightbox-prev,
.nld-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	background: rgba(255,255,255,0.15);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}
.nld-lightbox-prev { left: 12px; }
.nld-lightbox-next { right: 12px; }
/* --- RESPONSIVE --- */
@media (max-width: 768px) {
	.nld-single-hero { grid-template-columns: 1fr; gap: 28px; }
	.nld-single-title { font-size: 26px; }
	.nld-single-inner { padding: 28px 16px 48px; }
	.nld-gallery-link { flex: 0 0 calc(50% - 7px); }
	.nld-single-sheet { padding: 24px 20px; }
}

@media (max-width: 480px) {
	.nld-gallery-link { flex: 0 0 calc(50% - 7px); }
}