/* =========================================================
   CASE HISTORY LAYOUT (single-project.php quando ch_enable = true)
   v2: nessuna sidebar, box affiancati in alto, tipografia del tema.
   Tutte le classi sono prefissate "ch-" per non entrare in
   conflitto con le classi del tema Axtra.
   ========================================================= */

.ch-case-history {
	--ch-navy: #011833;
	--ch-orange: #e67e22;
	--ch-text-muted: #718096;
	--ch-card-bg: #ffffff;
	--ch-green: #27ae60;
	--ch-blue: #2980b9;

	padding: 40px 0;
}

.ch-case-history * {
	box-sizing: border-box;
}

.ch-container {
	max-width: 1100px;
	margin: 0 auto;
}

.ch-back-link {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--ch-navy);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 25px;
}

.ch-back-link:hover {
	color: var(--ch-orange);
}

/* Hero: struttura invariata, tipografia lasciata al tema (h1) */
.ch-hero-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
	margin-bottom: 50px;
}

.ch-hero-title {
	margin: 0;
	color: var(--ch-navy);
}

.ch-hero-kpis {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 25px 30px;
}

.ch-kpi-item .ch-kpi-label {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--ch-text-muted);
	margin-bottom: 4px;
}

.ch-kpi-item span:not(.ch-kpi-label) {
	color: var(--ch-navy);
}

.ch-kpi-item span.ch-highlight {
	color: var(--ch-orange);
}

/* Hero media box (infografica) */
.ch-hero-media-box {
	background: #ffffff;
	border: 2px solid #e0e0e0;
	border-radius: 16px;
	padding: 20px;
	margin-bottom: 40px;
	text-align: center;
	overflow: hidden;
}

.ch-hero-media-box img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
	margin: 0 auto;
}

/* Box quote + deliverables: affiancati, in cima, niente sidebar */
.ch-top-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin: 0 0 50px;
}

.ch-quote-card {
	background-color: var(--ch-card-bg);
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.ch-quote-text {
	font-style: italic;
	color: #4a5568;
	margin-bottom: 25px;
}

.ch-quote-author {
	display: flex;
	align-items: center;
	gap: 15px;
}

.ch-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background-color: var(--ch-orange);
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ch-avatar-photo {
	object-fit: cover;
	background-color: transparent;
}

.ch-author-info h4 {
	margin: 0;
	color: var(--ch-navy);
}

.ch-author-info p {
	margin: 0;
	color: var(--ch-text-muted);
}

.ch-deliverables-card {
	background-color: var(--ch-navy);
	color: #ffffff;
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.ch-deliverables-title {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--ch-orange);
	margin: 0 0 20px 0;
}

.ch-deliverables-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ch-deliverables-list li {
	position: relative;
	padding-left: 18px;
	margin-bottom: 12px;
	color: #ffffff;
}

.ch-deliverables-list li::before {
	content: "\2022";
	position: absolute;
	left: 0;
	color: var(--ch-orange);
	font-size: 1.2rem;
	line-height: 1;
}

/* Steps: singola colonna, larghezza piena */
.ch-steps-wrapper {
	max-width: 780px;
}

.ch-step-block {
	margin-bottom: 45px;
}

.ch-step-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 15px;
}

/* "Palle" grandi e rotonde con numero grande */
.ch-step-number {
	background-color: var(--ch-navy);
	color: #ffffff;
	width: 60px;
	height: 60px;
	min-width: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
}

.ch-step-number.ch-orange {
	background-color: var(--ch-orange);
}

.ch-step-number.ch-green {
	background-color: var(--ch-green);
}

.ch-step-number.ch-blue {
	background-color: var(--ch-blue);
}

.ch-step-title {
	margin: 0;
	color: var(--ch-navy);
}

.ch-step-text {
	margin-bottom: 15px;
}

.ch-step-list {
	list-style: none;
	padding: 0;
	margin-top: 15px;
}

.ch-step-list li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 12px;
}

.ch-step-list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--ch-orange);
	font-weight: 700;
}

/* Box scientifico */
.ch-scientific-box {
	background-color: #ffffff;
	border: 1px solid #cbd5e1;
	border-left: 4px solid var(--ch-blue);
	border-radius: 12px;
	padding: 25px;
}

.ch-paper-item {
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 14px 18px;
	margin-top: 12px;
}

.ch-paper-item strong {
	color: var(--ch-navy);
	display: block;
	margin-bottom: 3px;
}

.ch-paper-item p {
	font-style: italic;
	color: #475569;
	margin-bottom: 6px;
}

.ch-paper-item a {
	color: var(--ch-blue);
	font-weight: 700;
	text-decoration: none;
	font-size: 0.85rem;
}

.ch-paper-item a:hover {
	text-decoration: underline;
}

/* CTA */
.ch-cta-section {
	text-align: center;
	margin-top: 80px;
	padding-top: 50px;
	border-top: 1px solid #e2e8f0;
}

.ch-cta-subtitle {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--ch-orange);
	margin-bottom: 10px;
}

.ch-cta-title {
	color: var(--ch-navy);
	margin-bottom: 15px;
}

.ch-cta-description {
	color: var(--ch-text-muted);
	max-width: 600px;
	margin: 0 auto 30px auto;
}

.ch-cta-button {
	display: inline-block;
	background-color: var(--ch-orange);
	color: #ffffff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 14px 28px;
	border-radius: 6px;
	text-decoration: none;
	transition: transform 0.2s, background-color 0.2s;
}

.ch-cta-button:hover {
	background-color: #d35400;
	transform: translateY(-2px);
	color: #ffffff;
}

/* Prev/Next nav */
.ch-nav-btns {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px solid #e2e8f0;
	flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 850px) {
	.ch-hero-section {
		grid-template-columns: 1fr;
	}

	.ch-top-cards {
		grid-template-columns: 1fr;
	}

	.ch-steps-wrapper {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.ch-hero-kpis {
		grid-template-columns: 1fr;
	}

	.ch-step-number {
		width: 48px;
		height: 48px;
		min-width: 48px;
		font-size: 1.2rem;
	}
}
