﻿body {
	background-color: #fffaf7;
}

/* Box dietro al logo per creare stacco */
.logo-background {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40%;
	height: 40%;
	background: rgba(255, 255, 255, 0.35);
	border-radius: 20px;
	filter: blur(4px);
	z-index: 2; /* dietro il logo */
}

/* Logo centrato */
.center-logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 28%;
	opacity: 1;
	pointer-events: none;
	filter: drop-shadow(0 0 15px rgba(0,0,0,0.7));
	user-select: none;
	z-index: 3;
}

.container {
	font-family: 'Lato', sans-serif;
	max-width: 850px;
	margin: 4rem auto;
	padding: 0 1.5rem;
	line-height: 1.8;
	font-size: 1.3rem;
	color: #443322;
	text-align: center;
	opacity: 0;
	transform: translateY(30px);
	animation: fadeIn 1.8s ease forwards 0.5s;
}

	.container h3 {
		font-family: 'Playfair Display', serif;
		font-size: 3rem;
		margin-bottom: 1.2rem;
		color: #2c1b12;
	}

	.container p {
		margin-bottom: 1rem;
	}

@keyframes fadeIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.cta-button {
	display: inline-block;
	margin-top: 2rem;
	padding: 0.8rem 2rem;
	background: #c78b50;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	border-radius: 30px;
	font-size: 1.2rem;
	transition: background 0.3s ease, transform 0.2s ease;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
	opacity: 0;
	transform: translateY(20px);
}

	.cta-button.visible {
		opacity: 1;
		transform: translateY(0);
		transition: opacity 0.8s ease, transform 0.8s ease;
	}

	.cta-button:hover {
		background: #a66e35;
		transform: scale(1.05);
	}

@media (max-width: 768px) {
	.center-logo {
		max-width:75%;
	}

	.logo-background {
		width: 80%;
		height: 50%;
	}

	.container {
		font-size: 1rem;
		margin: 2rem auto;
		padding: 0 1rem;
	}

		.container h3 {
			font-size: 1.8rem;
		}

}

.galleria-section {
	background: #f9f4ef;
	padding: 5rem 2rem;
	text-align: center;
}

	.galleria-section h2 {
		font-family: 'Playfair Display', serif;
		font-size: 2.7rem;
		color: #4a2d1b;
		margin-bottom: 2rem;
	}

.galleria-group {
	margin-bottom: 4rem;
}

	.galleria-group h3 {
		font-family: 'Playfair Display', serif;
		font-size: 2rem;
		color: #5a3d2b;
		margin-bottom: 0.5rem;
	}

	.galleria-group p {
		font-size: 1.1rem;
		color: #555;
		margin-bottom: 2rem;
		max-width: 700px;
		margin-left: auto;
		margin-right: auto;
		line-height: 1.6;
	}

/* Galleria già esistente – mantieni o migliora se vuoi */
.galleria-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	max-width: 1100px;
	margin: 0 auto;
}

	.galleria-grid img {
		width: 100%;
		height: 220px;
		object-fit: cover;
		border-radius: 12px;
		box-shadow: 0 8px 20px rgba(0,0,0,0.15);
		transition: transform 0.3s ease;
	}

		.galleria-grid img:hover {
			transform: scale(1.05);
		}

.intro-highlights.elegant {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2rem;
	padding: 4rem 0;
}

.highlight {
	flex: 1 1 30%;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	padding: 3rem;
	box-shadow: 0 6px 16px rgba(0,0,0,0.06);
	transition: all 0.3s ease;
}

	.highlight:hover {
		box-shadow: 0 10px 28px rgba(0,0,0,0.12);
		transform: translateY(-5px);
	}

	.highlight h4 {
		font-family: 'Playfair Display', serif;
		font-size: 2rem;
		margin-bottom: 0.75rem;
		color: #2e2e2e;
		text-align: center;
	}

	.highlight hr {
		width: 60px;
		height: 3px;
		background-color: #c0a16b;
		border: none;
		margin: 0.75rem auto 1.25rem;
	}

	.highlight p {
		font-size: 1.125rem;
		line-height: 1.8;
		color: #444;
		text-align: center;
	}

.storia-section {
	background: url('texture-antica.jpg') center/cover no-repeat fixed;
	padding: 6rem 2rem;
	color: #2c1b12;
	position: relative;
}

.storia-content {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 1100px;
	margin: 0 auto;
	gap: 3rem;
	flex-wrap: wrap;
	opacity: 0;
	transform: translateY(50px);
	animation: fadeUp 2s ease forwards;
}

.storia-image img {
	border-radius: 50%;
	max-width: 250px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
	border: 4px solid rgba(255,255,255,0.7);
	object-fit: cover;
}

.storia-text {
	flex: 1 1 400px;
	font-family: 'Playfair Display', serif;
	line-height: 1.8;
}

	.storia-text h2 {
		font-size: 2rem;
		margin-bottom: 1rem;
		color: #5a3d2b;
	}

@keyframes fadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.storia-content {
		flex-direction: column;
		text-align: center;
	}

	.storia-image img {
		max-width: 180px;
		margin-bottom: 2rem;
	}
}


.vista-section {
	background-color: #f8f5f2;
	padding: 6rem 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: 'Playfair Display', serif;
}

.vista-content {
	max-width: 1200px;
	display: flex;
	gap: 3rem;
	align-items: center;
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 1.4s ease, transform 1.4s ease;
}

	.vista-content.visible {
		opacity: 1;
		transform: translateY(0);
	}

.vista-text {
	flex: 1;
	color: #3a2d23;
}

	.vista-text h3 {
		font-size: 2.2rem;
		margin-bottom: 1rem;
		color: #8b5c2c;
	}

	.vista-text p {
		font-size: 1.3rem;
		line-height: 1.7;
		margin-bottom: 1.2rem;
	}

.vista-image-container {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.vista-image {
	max-width: 100%;
	max-height: 500px;
	object-fit: contain;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
	.vista-content {
		flex-direction: column;
		text-align: center;
	}

	.vista-image {
		max-height: 400px;
	}
}


/* HERO full screen */
.hero-section {
	/*height: 53vh;*/
	background-image: url('/images/tivoli-hero.webp');
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.hero-overlay {
	background: rgba(255, 250, 247, 0.7);
	backdrop-filter: blur(6px);
	text-align: center;
	padding: 1rem;
	border-radius: 20px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

	.hero-overlay h1 {
		font-family: 'Playfair Display', serif;
		font-size: 2rem;
		color: #2f1c0f;
	}

		.hero-overlay h1 span {
			color: #a66e35;
		}

.tagline {
	font-style: italic;
	color: #7a5c47;
	font-size: 1rem;
	margin-top: 1rem;
}

/* Sezione split con immagine */
.split-section {
	display: flex;
	flex-wrap: wrap;
	background: #fffaf7;
}

.split-text {
	flex: 1 1 50%;
	padding: 4rem 3rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

	.split-text h2 {
		font-size: 2rem;
		color: #4a2d1b;
		margin-bottom: 1rem;
	}

	.split-text p {
		font-size: 1.2rem;
		color: #5f4433;
		line-height: 1.8;
	}

.split-image {
	flex: 1 1 50%;
	min-height: 400px;
	background-size: cover;
	background-position: center;
}

/* Blocco testo centrale */
.text-section {
	text-align: center;
	max-width: 900px;
	margin: 0 auto;
}

	.text-section h2 {
		font-family: 'Playfair Display', serif;
		font-size: 2rem;
		color: #4a2d1b;
		margin-bottom: 1rem;
	}

	.text-section p {
		font-size: 1.2rem;
		color: #3b2a20;
		line-height: 1.8;
	}

/* Citazione finale */
.quote-section {
	background: #fffaf7;
	text-align: center;
	font-style: italic;
	font-family: 'Playfair Display', serif;
	font-size: 1.5rem;
	color: #5a3d2b;
}

blockquote {
	border-left: 4px solid #c78b50;
	border-right: 4px solid #c78b50;
	padding-left: 1rem;
	max-width: 700px;
	margin: 0 auto;
	line-height: 1.8;
}

@media (max-width: 768px) {
	.hero-overlay h1 {
		font-size: 2.2rem;
	}

	.split-section {
		flex-direction: column;
	}

	.split-image {
		min-height: 250px;
	}
}

@media (max-width: 480px) {
	.galleria-grid img {
		height: 180px;
	}

	.drone-card-horizontal {
		flex-direction: column;
	}

	.drone-img-horizontal {
		width: 100%;
	}
}

.cta-final {
	background: linear-gradient(to right, #fffaf7, #f4ece2);
	padding: 4rem 2rem;
	text-align: center;
	color: #4a2d1b;
}

/* SVG decorativo */
.svg-decoration {
	position: absolute;
	left: -100px;
	top: -80px;
	width: 400px;
	height: 400px;
	opacity: 0.08;
	z-index: 0;
}
.pergamena-box {
	flex: 1 1 420px;
	background: linear-gradient(180deg, #fdf8ee 0%, #f9f1dc 100%);
	border: 1px solid rgba(90,60,30,0.25);
	border-radius: 12px;
	padding: 2rem;
	position: relative;
	box-shadow: 0 12px 28px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.6);
	transform: rotate(-0.4deg);
}

/* --- Header descrittivo --- */
.pergamena-header p {
	margin: 0 0 1.5rem 0;
	font-size: 1rem;
	line-height: 1.6;
	color: #3a2a18;
}

/* --- Citazione --- */
.pergamena-quote {
	font-size: 1.05rem;
	font-style: italic;
	color: #422d17;
	border-left: 4px solid rgba(80,50,20,0.4);
	border-right:none;
	padding-left: 1rem;
	margin: 0 0 1.5rem 0;
	quotes: "«" "»" "‹" "›";
	position: relative;
}

	.pergamena-quote::before {
		content: open-quote;
		color: #b68f4f;
		font-size: 2rem;
		vertical-align: -0.4em;
	}

	.pergamena-quote::after {
		content: close-quote;
		color: #b68f4f;
		font-size: 2rem;
		vertical-align: -0.4em;
	}

/* --- Footer autore --- */
.pergamena-footer {
	text-align: right;
	font-size: 0.92rem;
	color: #5d432a;
	border-top: 1px dashed rgba(90,60,30,0.3);
	padding-top: 0.7rem;
}

	.pergamena-footer cite {
		font-style: italic;
		color: #6c4d30;
	}

.timeline-wrapper {
	padding: 4rem 2rem;
	position: relative;
	overflow: hidden;
}

.timeline-title {
	text-align: center;
	font-size: 2.8rem;
	font-family: 'Playfair Display', serif;
	margin-bottom: 3rem;
}

.timeline-intro {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	max-width: 800px;
	margin: 0 auto 3rem;
}

	.timeline-intro img {
		width: 100px;
		height: 100px;
		object-fit: cover;
		border-radius: 50%;
		border: 3px solid #a67c52;
	}


.logo-background {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(255,255,255,0.4);
	border-radius: 50%;
	width: 30%;
	height: 80%;
	z-index: 2;
}

@media (max-width: 600px) {

	.timeline-intro {
		flex-direction: column;
		text-align: center;
	}

		.timeline-intro img {
			margin-bottom: 1rem;
		}
	.hero-section {
		height: 40vh; /* Riduci l’altezza sui device mobili */
	}

	.logo-background {
		border-radius: 50%;
		width: 70%;
		height: 40%;
	}
}