/**
 * about.css - Stili per la pagina Chi Siamo
 */

body[data-about-page] header {
	padding-top: env(safe-area-inset-top, 0px);
}

html:has(body[data-about-page]) {
	scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-nav-height, 72px));
}

.about-hero {
	position: relative;
	min-height: 65vh;
	min-height: 65dvh;
	height: auto;
	display: grid;
	place-items: center;
	background: var(--primary-blue);
	background-image: url('/assets/images/about_overlay.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: var(--text-light);
	overflow-x: hidden;
	overflow-y: visible;
	padding: 40px 0;
}

.about-hero .hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	background:
		radial-gradient(
			ellipse 92% 68% at 50% 50%,
			rgba(0, 0, 0, 0.62) 0%,
			rgba(0, 0, 0, 0) 72%
		),
		rgba(0, 0, 0, 0.48);
}

.about-hero .hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 900px;
	padding-left: max(var(--page-gutter, 1.35rem), env(safe-area-inset-left, 0px));
	padding-right: max(var(--page-gutter, 1.35rem), env(safe-area-inset-right, 0px));
}

.about-hero .hero-content h1 {
	font-size: clamp(2.2rem, 7vw, 3.5rem);
	margin-top: 0;
	margin-bottom: 16px;
	line-height: 1.2;
	color: #fff;
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.92),
		0 2px 24px rgba(0, 0, 0, 0.58);
}

.about-hero .hero-content p {
	font-size: clamp(1rem, 4vw, 1.2rem);
	line-height: 1.6;
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.98);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.88);
}

.about-section {
	padding-top: 70px;
	padding-bottom: 70px;
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.about-image {
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	height: 400px;
	width: 100%;
}

.about-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-content h2 {
	font-size: clamp(2rem, 5vw, 2.5rem);
	margin-bottom: 24px;
	position: relative;
	display: inline-block;
}

.about-content h2::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 0;
	width: 60px;
	height: 4px;
	background: var(--accent-orange);
}

.about-content.about-content--no-underline h2::after {
	content: none;
}

.about-content p {
	font-size: clamp(1rem, 2.5vw, 1.1rem);
	line-height: 1.8;
	color: var(--text-muted);
	margin-bottom: 20px;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 30px;
	margin-top: 40px;
	text-align: center;
}

.stat-item h3 {
	font-size: clamp(2rem, 6vw, 2.5rem);
	color: var(--accent-orange);
	margin-bottom: 8px;
}

.stat-item p {
	font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* —— Significato del nome (inTabiConTe) —— */
/* Non usare <header> per il titolo: in main.css `header` è position:fixed per la nav. */
.about-name-section {
	background: var(--surface, #f9fafb);
	border-radius: 30px;
}

.about-name-section > header.about-name-section-head {
	position: static;
	inset: auto;
	width: auto;
	z-index: auto;
	background: transparent;
	border-bottom: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	box-shadow: none;
	will-change: auto;
}

.about-name-section-head {
	text-align: center;
	margin-bottom: clamp(28px, 4vw, 40px);
}

.about-name-section-head h2 {
	font-size: clamp(2rem, 5vw, 2.5rem);
	margin-bottom: 0;
	padding-bottom: 16px;
	position: relative;
	display: inline-block;
}

.about-name-section-head h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: var(--accent-orange);
}

.about-name-panels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 28px);
	align-items: stretch;
	justify-items: stretch;
}

.about-name-tile {
	background: var(--surface-raised);
	border-radius: 20px;
	padding: clamp(22px, 3.5vw, 32px);
	box-shadow: var(--shadow-md);
	min-width: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.about-name-tile--meaning {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	min-height: 0;
}

.about-name-tile--meaning .about-name-lead {
	font-size: clamp(1rem, 2.5vw, 1.1rem);
	line-height: 1.8;
	color: var(--text-muted);
	margin-bottom: 18px;
	margin-top: 0;
	flex-shrink: 0;
}

.about-name-tile--logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.about-name-logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	padding: 8px;
}

.about-name-logo {
	width: clamp(100px, 28vw, 150px);
	height: auto;
	display: block;
	will-change: transform;
	animation: none;
	filter: drop-shadow(0 8px 20px rgba(0, 51, 102, 0.12));
}

@keyframes about-name-logo-float {
	0%, 100% {
		transform: translateY(0) scale(1);
	}
	45% {
		transform: translateY(-7px) scale(1.04);
	}
	55% {
		transform: translateY(-5px) scale(1.035);
	}
}

@media (prefers-reduced-motion: reduce) {
	.about-name-logo {
		animation: none;
	}
}

.about-name-logo-heading {
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: clamp(1.25rem, 3vw, 1.5rem);
	font-weight: 600;
	color: var(--primary-blue, #1a2a4a);
	margin: 0 0 12px;
}

.about-name-logo-heading::after {
	display: none;
}

.about-name-logo-caption {
	font-size: clamp(1rem, 2.5vw, 1.1rem);
	line-height: 1.75;
	color: var(--text-muted);
	margin: 0;
	max-width: 28em;
}

.about-name-logo-caption strong {
	font-weight: 600;
	color: var(--primary-blue, #1a2a4a);
}

.name-display {
	display: grid;
	grid-template-columns: auto auto auto;
	grid-template-rows: auto auto;
	justify-content: center;
	column-gap: 0.042em;
	row-gap: 12px;
	align-items: baseline;
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-weight: 600;
	font-size: clamp(1.35rem, 5.5vw + 0.35rem, 3.75rem);
	line-height: 1.05;
	color: var(--primary-blue, #1a2a4a);
	margin: 4px auto 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	flex-shrink: 0;
}

.name-display__in {
	grid-column: 1;
	grid-row: 1;
	letter-spacing: 0;
}

.name-display__conte {
	grid-column: 3;
	grid-row: 1;
	letter-spacing: 0;
}

.name-display__tabi-stack {
	grid-column: 2;
	grid-row: 1;
	justify-self: center;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	width: fit-content;
	max-width: 100%;
}

.name-display__tabi {
	letter-spacing: 0;
}

.name-display__bracket {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	max-width: 5.75ch;
	margin-top: 0.06em;
	height: 0.48em;
}

.name-display__bracket-cap {
	width: 0.2em;
	flex-shrink: 0;
	border-color: currentColor;
	border-style: solid;
	border-width: 0 0 0.07em 0.07em;
	height: 0.38em;
	align-self: flex-end;
	box-sizing: border-box;
}

.name-display__bracket-cap--right {
	border-width: 0 0.07em 0.07em 0;
}

.name-display__bracket-bar {
	flex: 1;
	min-width: 0;
	height: 0;
	border-bottom: 0.07em solid currentColor;
	margin: 0 -0.01em;
	align-self: flex-end;
}

.name-display__gloss {
	grid-column: 2;
	grid-row: 2;
	justify-self: center;
	font-family: "DM Sans", system-ui, sans-serif;
	font-weight: 400;
	font-size: clamp(0.7rem, 2.4vw + 0.2rem, 1rem);
	line-height: 1.45;
	color: var(--text-muted);
	margin: 0;
	padding: 0 0.35rem;
	max-width: min(22em, calc(100vw - 2.5rem));
	text-align: center;
	box-sizing: border-box;
}

.name-display__gloss em {
	font-style: italic;
	font-weight: 500;
	color: var(--primary-blue, #1a2a4a);
}

@media (max-width: 992px) {
	.about-name-panels {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		justify-items: stretch;
	}

	.about-name-tile {
		height: auto;
		min-height: unset;
		aspect-ratio: auto;
		max-height: none;
		overflow-y: visible;
		-webkit-overflow-scrolling: auto;
	}

	.about-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	
	.about-grid.reverse {
		display: flex;
		flex-direction: column-reverse;
	}
	
	.about-section {
		padding-top: 60px;
		padding-bottom: 60px;
	}
}

@media (max-width: 768px) {
	.about-hero {
		min-height: 40vh;
		min-height: 40dvh;
		padding: 30px 0;
	}
	
	.about-section {
		padding-top: 50px;
		padding-bottom: 50px;
	}
	
	.about-image {
		height: 300px;
	}
	
	.about-content h2::after,
	.about-name-section-head h2::after {
		width: 50px;
		height: 3px;
	}
	
	.stats-grid {
		gap: 24px;
		margin-top: 30px;
	}
}

@media (max-width: 576px) {
	.about-hero {
		padding: 24px 0;
	}
	
	.about-section {
		padding-top: 48px;
		padding-bottom: 48px;
	}
	
	.about-image {
		height: 250px;
		border-radius: 16px;
	}
	
	.stats-grid {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}
}
