/* ═══════════════════════════════════════════════════════════════
   ECLOGA ITALIA — PAGINA CHI SIAMO
   Caricato solo sulla pagina che usa il template Chi Siamo.
   Tutte le regole sono scoped sotto .ecloga-chi per evitare conflitti.
   ═══════════════════════════════════════════════════════════════ */

.ecloga-chi {
	--eh-blue: #1666C0;
	--eh-blue-dark: #124E94;
	--eh-blue-deeper: #0A2E5C;
	--eh-blue-light: #d8e6f7;
	--eh-blue-mid: #D4E4F5;
	--eh-green: #089F29;
	--eh-navy: #0B1A32;
	--eh-white: #FFFFFF;
	--eh-offwhite: #eef2ff;
	--eh-gray-100: #EEF1F5;
	--eh-gray-200: #DDE2EA;
	--eh-gray-300: #C5CCD8;
	--eh-gray-500: #6B7A90;
	--eh-gray-700: #3A4560;
	--eh-text: #1A1D26;

	font-family: 'Outfit', sans-serif;
	color: var(--eh-text);
	line-height: 1.6;
	background: var(--eh-white);
}

.ecloga-chi * {
	box-sizing: border-box;
}

.ecloga-chi .ecloga-wrap {
	max-width: 1440px;
	margin: auto;
	padding: 0 2rem;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.ecloga-chi .chi-hero {
	position: relative;
	padding: 5rem 2rem 5rem;
	background: var(--eh-white);
	overflow: hidden;
	border-bottom: 1px solid var(--eh-gray-100);
}

.ecloga-chi .chi-hero::before {
	content: '';
	position: absolute;
	top: -200px;
	right: -200px;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(22,102,192,.07) 0%, transparent 65%);
}

.ecloga-chi .chi-hero .ecloga-wrap {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.ecloga-chi .chi-hero-text {
	max-width: 640px;
}

.ecloga-chi .chi-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: var(--eh-blue-light);
	color: var(--eh-blue-dark);
	padding: .3rem .75rem;
	border-radius: 5px;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
}

.ecloga-chi .chi-hero h1 {
	font-weight: 800;
	font-size: 3.2rem;
	line-height: 1.1;
	letter-spacing: -.03em;
	color: var(--eh-navy);
	margin: 0 0 1.2rem 0;
}

.ecloga-chi .chi-hero h1 .accent {
	color: var(--eh-blue);
}

.ecloga-chi .chi-hero p {
	font-size: 1.1rem;
	color: var(--eh-gray-500);
	margin: 0 0 1rem 0;
	line-height: 1.7;
}

.ecloga-chi .chi-hero p strong {
	color: var(--eh-navy);
	font-weight: 700;
}

.ecloga-chi .chi-hero-highlight {
	font-size: 1.05rem;
	color: var(--eh-gray-700);
	margin-top: 1.5rem;
	padding: 1rem 1.2rem;
	background: var(--eh-offwhite);
	border-left: 3px solid var(--eh-blue);
	border-radius: 4px;
	font-style: italic;
}

.ecloga-chi .chi-hero-visual-placeholder {
	/* vuoto per ora, spazio riservato per futuri contenuti */
	min-height: 300px;
}

/* ═══════════════════════════════════════════
   PERCHÉ ECLOGA
   ═══════════════════════════════════════════ */
.ecloga-chi .chi-why {
	padding: 5rem 2rem;
	background: var(--eh-offwhite);
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--eh-gray-100);
}

.ecloga-chi .chi-why::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v60M0 30h60' stroke='%231666C0' stroke-width='.24' fill='none' opacity='.11'/%3E%3Ccircle cx='30' cy='30' r='2.5' fill='%231666C0' opacity='.19'/%3E%3C/svg%3E");
	background-size: 60px 60px;
	transform: rotate(45deg);
	pointer-events: none;
}

.ecloga-chi .chi-why::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, var(--eh-offwhite) 0%, transparent 15%, transparent 85%, var(--eh-offwhite) 100%);
	pointer-events: none;
}

.ecloga-chi .chi-why .ecloga-wrap {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 4rem;
	align-items: center;
}

.ecloga-chi .chi-why-text h2 {
	font-size: 2.4rem;
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.15;
	color: var(--eh-navy);
	margin: 0 0 1.5rem 0;
}

.ecloga-chi .chi-why-text h2 .accent { color: var(--eh-blue); }

.ecloga-chi .chi-why-text p {
	font-size: 1.05rem;
	color: var(--eh-gray-500);
	line-height: 1.7;
	text-align: justify;
	margin: 0 0 1rem 0;
}

/* Grid valori */
.ecloga-chi .chi-values {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.ecloga-chi .chi-value {
	background: var(--eh-white);
	border: 1px solid var(--eh-gray-100);
	border-radius: 14px;
	padding: 1.5rem 1.3rem;
	display: flex;
	align-items: flex-start;
	gap: .9rem;
	transition: all .3s;
}

.ecloga-chi .chi-value:hover {
	border-color: var(--eh-blue-light);
	box-shadow: 0 12px 32px rgba(22,102,192,.08);
	transform: translateY(-2px);
}

.ecloga-chi .chi-value-icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--eh-blue-light);
	color: var(--eh-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ecloga-chi .chi-value-icon svg { width: 22px; height: 22px; }

.ecloga-chi .chi-value-title {
	font-size: .98rem;
	font-weight: 700;
	color: var(--eh-navy);
	margin: 0 0 .2rem 0;
	letter-spacing: -.01em;
	line-height: 1.3;
}

.ecloga-chi .chi-value-desc {
	font-size: .85rem;
	color: var(--eh-gray-500);
	line-height: 1.5;
	margin: 0;
}

/* ═══════════════════════════════════════════
   CERTIFICAZIONI
   ═══════════════════════════════════════════ */
.ecloga-chi .chi-certs {
	padding: 5rem 2rem;
	background: var(--eh-white);
	border-bottom: 1px solid var(--eh-gray-100);
}

.ecloga-chi .chi-certs-header {
	text-align: center;
	margin-bottom: 3rem;
}

.ecloga-chi .chi-certs-header h2 {
	font-size: 2.2rem;
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--eh-navy);
	margin: 0 0 1rem 0;
}

.ecloga-chi .chi-certs-header h2 .accent { color: var(--eh-blue); }

.ecloga-chi .chi-certs-header p {
	font-size: 1.05rem;
	color: var(--eh-gray-500);
	max-width: 760px;
	margin: 0 auto;
	line-height: 1.7;
}

.ecloga-chi .chi-certs-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	max-width: 900px;
	margin: 0 auto;
}

.ecloga-chi .chi-cert-card {
	background: var(--eh-offwhite);
	border: 1px solid var(--eh-gray-100);
	border-radius: 14px;
	padding: 2rem 1.5rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	transition: all .3s;
}

.ecloga-chi .chi-cert-card:hover {
	border-color: var(--eh-blue-light);
	box-shadow: 0 10px 32px rgba(22,102,192,.07);
	transform: translateY(-3px);
}

.ecloga-chi .chi-cert-logo {
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ecloga-chi .chi-cert-logo img {
	max-height: 70px;
	width: auto;
	max-width: 140px;
}

.ecloga-chi .chi-cert-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--eh-navy);
	margin: 0;
	letter-spacing: -.01em;
}

.ecloga-chi .chi-cert-desc {
	font-size: .85rem;
	color: var(--eh-gray-500);
	line-height: 1.5;
	margin: 0;
}

.ecloga-chi .chi-cert-link {
	margin-top: auto;
	font-size: .82rem;
	font-weight: 600;
	color: var(--eh-blue);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: .25rem;
}

.ecloga-chi .chi-cert-link:hover { color: var(--eh-blue-dark); }

.ecloga-chi .chi-cert-meta {
	margin-top: auto;
	font-size: .78rem;
	font-weight: 600;
	color: var(--eh-gray-300);
	letter-spacing: .02em;
}

/* ═══════════════════════════════════════════
   MISSION / VISION
   ═══════════════════════════════════════════ */
.ecloga-chi .chi-mv {
	padding: 5rem 2rem;
	background: var(--eh-offwhite);
	border-bottom: 1px solid var(--eh-gray-100);
	position: relative;
	overflow: hidden;
}

.ecloga-chi .chi-mv::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0v80M0 40h80' stroke='%231666C0' stroke-width='.2' fill='none' opacity='.08'/%3E%3Ccircle cx='40' cy='40' r='2' fill='%231666C0' opacity='.12'/%3E%3C/svg%3E");
	background-size: 80px 80px;
	transform: rotate(-45deg);
	pointer-events: none;
}

.ecloga-chi .chi-mv::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, var(--eh-offwhite) 0%, transparent 15%, transparent 85%, var(--eh-offwhite) 100%);
	pointer-events: none;
}

.ecloga-chi .chi-mv-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	max-width: 1100px;
	margin: 0 auto;
}

.ecloga-chi .chi-mv-card {
	background: var(--eh-white);
	border: 1px solid var(--eh-gray-100);
	border-radius: 16px;
	padding: 2.5rem 2.2rem;
	position: relative;
	overflow: hidden;
	min-height: 280px;
}

.ecloga-chi .chi-mv-card::before {
	content: '';
	position: absolute;
	top: -40px;
	right: -40px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: rgba(22,102,192,.06);
}

/* Icona come elemento decorativo in alto a destra, grande e tenue */
.ecloga-chi .chi-mv-icon {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	width: auto;
	height: auto;
	background: transparent;
	color: var(--eh-blue);
	opacity: .18;
	box-shadow: none;
	margin: 0;
	z-index: 1;
}

.ecloga-chi .chi-mv-icon svg {
	width: 85px;
	height: 85px;
}

.ecloga-chi .chi-mv-card h3 {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--eh-navy);
	margin: 0 0 1rem 0;
	letter-spacing: -.02em;
	position: relative;
	z-index: 2;
	padding-right: 90px; /* spazio per non sovrapporsi all'icona */
}

.ecloga-chi .chi-mv-card p {
	font-size: 1rem;
	color: var(--eh-gray-500);
	line-height: 1.7;
	margin: 0;
	position: relative;
	z-index: 1;
	text-align: justify;
}

/* ═══════════════════════════════════════════
   QUIZ CTA (identico alla home)
   ═══════════════════════════════════════════ */
.ecloga-chi .chi-cta {
	padding: 4rem 2rem;
	background: var(--eh-white);
}

.ecloga-chi .quiz-cta-box {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 2.5rem;
	align-items: center;
	padding: 2.2rem 2.5rem;
	background: var(--eh-offwhite);
	border: 1px solid var(--eh-blue-light);
	border-radius: 16px;
	position: relative;
	overflow: hidden;
}

.ecloga-chi .quiz-cta-box::before {
	content: '';
	position: absolute;
	top: -60px;
	right: -60px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(22,102,192,.08) 0%, transparent 70%);
	pointer-events: none;
}

.ecloga-chi .quiz-cta-icon {
	width: 68px;
	height: 68px;
	border-radius: 14px;
	background: var(--eh-blue);
	color: var(--eh-white);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	box-shadow: 0 8px 24px rgba(22,102,192,.22);
}

.ecloga-chi .quiz-cta-icon svg { width: 34px; height: 34px; }

.ecloga-chi .quiz-cta-content {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	position: relative;
	z-index: 1;
}

.ecloga-chi .quiz-cta-badge {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	background: var(--eh-blue-light);
	color: var(--eh-blue-dark);
	padding: .28rem .7rem;
	border-radius: 5px;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	width: fit-content;
}

.ecloga-chi .quiz-cta-content h2 {
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.2;
	color: var(--eh-navy);
	margin: 0;
}

.ecloga-chi .quiz-cta-content h2 .accent { color: var(--eh-blue); }

.ecloga-chi .quiz-cta-content p {
	font-size: .95rem;
	color: var(--eh-gray-500);
	line-height: 1.6;
	margin: 0;
	max-width: 640px;
}

.ecloga-chi .quiz-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	background: var(--eh-blue);
	color: var(--eh-white);
	padding: .95rem 1.8rem;
	border-radius: 8px;
	font-weight: 700;
	font-size: .92rem;
	text-decoration: none;
	border: 2px solid var(--eh-blue);
	transition: all .25s cubic-bezier(.16,1,.3,1);
	white-space: nowrap;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}

.ecloga-chi .quiz-cta-btn:hover {
	background: var(--eh-blue-dark);
	border-color: var(--eh-blue-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(22,102,192,.28);
	color: var(--eh-white);
	gap: .8rem;
}

.ecloga-chi .quiz-cta-btn svg {
	width: 16px;
	height: 16px;
	transition: transform .2s;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
	.ecloga-chi .chi-hero .ecloga-wrap,
	.ecloga-chi .chi-why .ecloga-wrap {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	.ecloga-chi .chi-hero h1 { font-size: 2.4rem; }
	.ecloga-chi .chi-hero-visual-placeholder { display: none; }
	.ecloga-chi .chi-certs-grid { grid-template-columns: repeat(2, 1fr); }
	.ecloga-chi .chi-values { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.ecloga-chi .chi-hero h1 { font-size: 1.9rem; }
	.ecloga-chi .chi-certs-grid,
	.ecloga-chi .chi-mv-grid { grid-template-columns: 1fr; }
	.ecloga-chi .quiz-cta-box {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 2rem 1.5rem;
	}
	.ecloga-chi .quiz-cta-icon,
	.ecloga-chi .quiz-cta-badge,
	.ecloga-chi .quiz-cta-btn {
		margin-left: auto;
		margin-right: auto;
	}
}
