/* ===========================================
   single-project.css
   Template: pagina di dettaglio CPT "project"
   =========================================== */

/* ---- Hero ---- */

.hsdd-single-project__hero {
	background: #442a19;
	color: #fff;
	padding: 100px 0 0;
	position: relative;
	overflow: hidden;
}

.hsdd-single-project__hero-inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

.hsdd-single-project__hero-text {
	flex: 1;
	padding-bottom: 60px;
}

.hsdd-single-project__hero-label {
	font-family: 'Sora', sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .12em;
	opacity: .65;
	margin: 0 0 8px;
}

.hsdd-single-project__hero-divider {
	border: none;
	border-top: 2px solid rgba(255, 255, 255, .25);
	margin: 0 0 22px;
	width: 48px;
}

.hsdd-single-project__hero-title {
	font-family: 'Sora', sans-serif;
	font-weight: 500;
	font-size: 44px;
	line-height: 1.2;
	color: #fff;
	margin: 0 0 20px;
}

.hsdd-single-project__hero-subtitle {
	font-size: 16px;
	font-weight: 400;
	color: rgba(255, 255, 255, .75);
	margin: -10px 0 16px;
	line-height: 1.4;
}

.hsdd-single-project__breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13px;
	opacity: .75;
}

.hsdd-single-project__breadcrumb a {
	color: #fff;
	text-decoration: none;
}

.hsdd-single-project__breadcrumb a:hover {
	text-decoration: underline;
}

/* Featured image tonda — a destra, leggermente a cavallo */

.hsdd-single-project__hero-image {
	flex-shrink: 0;
	align-self: flex-end;
}

.hsdd-single-project__hero-img-wrap {
	width: 220px;
	height: 220px;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid rgba(255, 255, 255, .2);
	margin-bottom: -60px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

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

/* Mountain SVG divider */

.hsdd-single-project__mountain {
	line-height: 0;
	margin-top: -2px;
}

.hsdd-single-project__mountain svg {
	width: 100%;
	display: block;
	height: 64px;
}

/* ---- Meta bar: status + date ---- */

.hsdd-single-project__meta-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 28px;
	padding: 32px 0 24px;
}

.hsdd-single-project__divider {
	border: none;
	border-top: 1px solid #e4ddd5;
	margin: 0 0 48px;
}

/* ---- Layout content + sidebar ---- */

.hsdd-single-project__layout {
	display: flex;
	gap: 56px;
	padding-bottom: 60px;
	align-items: flex-start;
}

.hsdd-single-project__content {
	flex: 2 1 0%;
	min-width: 0;
}

.hsdd-single-project__sidebar {
	flex: 1 1 0%;
	min-width: 0;
}

/* ---- Articolo (contenuto colonna main) ---- */

.hsdd-single-project__article {
	/* nessuno stile aggiuntivo necessario */
}

/* Status badge + pulse */

.hsdd-project__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #555;
}

.hsdd-project__status-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	position: relative;
	flex-shrink: 0;
	background: #aaa;
}

.hsdd-project__status--open .hsdd-project__status-dot {
	background: #2ecc71;
}

.hsdd-project__status--open .hsdd-project__status-label {
	color: #1e9450;
}

.hsdd-project__status--open .hsdd-project__status-dot::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #2ecc71;
	animation: hsdd-project-pulse 1.8s ease-out infinite;
}

@keyframes hsdd-project-pulse {
	0%   { opacity: .6; transform: scale(1); }
	100% { opacity: 0; transform: scale(2.6); }
}

/* Date */

.hsdd-project__dates {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	font-size: 14px;
	color: #666;
	margin: 0;
}

.hsdd-project__dates strong {
	color: #442a19;
}

.hsdd-project__dates-sep {
	color: #bbb;
}

/* Contenuto editor */

.hsdd-project__body {
	line-height: 1.7;
	color: #333;
}

.hsdd-project__body h2 {
	font-family: 'Sora', sans-serif;
	font-weight: 500;
	font-size: 36px;
	color: #442a19;
	margin-top: 32px;
}

.hsdd-project__body h3,
.hsdd-project__body h4 {
	font-family: 'Sora', sans-serif;
	font-weight: 500;
	color: #442a19;
	margin-top: 32px;
}

.hsdd-project__body .wp-block-heading:first-child {
	margin-top: 0;
}

.hsdd-project__body p {
	margin-bottom: 16px;
}

/* ---- Loghi partner ---- */

.hsdd-single-project__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px 32px;
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid #e4ddd5;
}

.hsdd-single-project__logos-title {
	width: 100%;
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #888;
}

.hsdd-single-project__logo-item {
	display: flex;
	align-items: center;
	justify-content: center;
}

.hsdd-single-project__logo-link {
	display: block;
	transition: opacity .2s ease;
}

.hsdd-single-project__logo-link:hover {
	opacity: .75;
}

.hsdd-single-project__logo-item img {
	display: block;
	height: auto;
	max-height: 80px;
	filter: grayscale(20%);
	transition: filter .2s ease;
}

.hsdd-single-project__logo-item:hover img {
	filter: grayscale(0%);
}

@media (max-width: 600px) {
	.hsdd-single-project__logos {
		gap: 20px 24px;
	}
	.hsdd-single-project__logo-item img {
		max-height: 60px;
	}
}

/* ---- Sidebar ---- */

.hsdd-single-project__sidebar-block {
	background: #f9f7f4;
	border: 1px solid #e8e2da;
	border-radius: 8px;
	padding: 18px 20px;
	margin-bottom: 16px;
}

.hsdd-single-project__sidebar-block--anchor {
	background: #fff8f2;
	border-color: #c5a882;
}

.hsdd-single-project__sidebar-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #888;
	margin: 0 0 8px;
}

.hsdd-single-project__sidebar-value {
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	margin: 0;
}

.hsdd-single-project__anchor-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
	color: #442a19;
	text-decoration: none;
}

.hsdd-single-project__anchor-link:hover {
	text-decoration: underline;
}

.hsdd-single-project__sidebar-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hsdd-single-project__sidebar-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #442a19;
	text-decoration: none;
	word-break: break-word;
}

.hsdd-single-project__sidebar-link:hover {
	text-decoration: underline;
}

/* ---- Responsive ---- */

/* ---- Sidebar docs + children ---- */

.hsdd-single-project__docs-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hsdd-single-project__doc-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #442a19;
	text-decoration: none;
	word-break: break-word;
}

.hsdd-single-project__doc-link:hover {
	text-decoration: underline;
}

/* ---- Sotto-progetti list ---- */

.hsdd-single-project__children-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.hsdd-single-project__child-item {
	border-top: 1px solid #e8e2da;
}

.hsdd-single-project__child-item:last-child {
	border-bottom: 1px solid #e8e2da;
}

.hsdd-single-project__child-link {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
	text-decoration: none;
	color: inherit;
}

.hsdd-single-project__child-avatar {
	flex: 0 0 66px;
	width: 66px;
	height: 66px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid #e8e2da;
	background: #f0ece6;
}

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

.hsdd-single-project__child-avatar-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e8e2da, #d4ccc2);
}

.hsdd-single-project__child-body {
	flex: 1;
	min-width: 0;
}

.hsdd-single-project__child-link:hover .hsdd-single-project__child-title {
	text-decoration: underline;
	color: #442a19;
}

.hsdd-single-project__child-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.hsdd-project__status--sm {
	font-size: 11px;
	gap: 5px;
}

.hsdd-project__status--sm .hsdd-project__status-dot {
	width: 8px;
	height: 8px;
}

.hsdd-single-project__child-dates {
	font-size: 11px;
	color: #999;
}

.hsdd-single-project__child-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: #333;
	margin: 0 0 4px;
}

.hsdd-single-project__child-excerpt {
	font-size: 12px;
	line-height: 1.5;
	color: #777;
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

@media (max-width: 900px) {
	.hsdd-single-project__hero {
		padding-top: 70px;
	}

	.hsdd-single-project__hero-title {
		font-size: 32px;
	}

	.hsdd-project__body h2 {
		font-size: 28px;
	}

	.hsdd-single-project__hero-img-wrap {
		width: 150px;
		height: 150px;
		margin-bottom: -40px;
	}

	.hsdd-single-project__layout {
		flex-direction: column;
		gap: 32px;
	}

	.hsdd-single-project__sidebar {
		flex: none;
		width: 100%;
	}
}

@media (max-width: 600px) {
	.hsdd-single-project__hero-inner {
		flex-direction: column-reverse;
		align-items: flex-start;
	}

	.hsdd-single-project__hero-image {
		align-self: flex-end;
	}

	.hsdd-single-project__hero-img-wrap {
		width: 110px;
		height: 110px;
		margin-bottom: -30px;
	}

	.hsdd-single-project__hero-text {
		padding-bottom: 0;
	}

	.hsdd-single-project__hero-title {
		font-size: 26px;
	}

	.hsdd-project__body h2 {
		font-size: 24px;
	}

	.hsdd-single-project__child-avatar {
		flex: 0 0 48px;
		width: 48px;
		height: 48px;
	}

	.hsdd-single-project__mountain svg {
		height: 40px;
	}
}
