:root {
	--bg: #f8f9fa; /* Sfondo grigio chiaro */
	--paper: #ffffff;
	--ink: #212529; /* Testo scuro */
	--muted: #6c757d; /* Testo grigio */
	--sage: #45b58a; /* Verde principale */
	--sage-strong: #238664; /* Verde più scuro per hover */
	--sage-soft: #e0f6ee; /* Verde molto chiaro per sfondi */
	--border-color: #dee2e6; /* Colore bordi */
	--maxw: 1100px;
	--radius: 16px;
	--shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

/* --- RESET E BASE --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
a { color: var(--sage-strong); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sage-strong); text-decoration: underline; }

/* --- LAYOUT E COMPONENTI RIUTILIZZABILI --- */
.wrap { max-width: var(--maxw); margin: auto; padding: 0 20px; }
section { padding: 60px 0; }
.section-title { font-family: "Source Serif Pro", serif; font-size: 32px; margin: 0 0 24px; }
.grid { display: grid; gap: 24px; }
.card { 
	background: var(--paper); 
	border-radius: var(--radius); 
	padding: 24px; 
	box-shadow: var(--shadow);
	transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0,0,0,.08);
}

.cta {
	display: inline-block;
	background: var(--sage);
	color: #fff;
	padding: 12px 20px;
	border-radius: 999px;
	border: 0;
	font-weight: 700;
	box-shadow: var(--shadow);
	font-size: 15px;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s;
}
.cta:hover { 
	background: var(--sage-strong); 
	text-decoration: none; 
	transform: translateY(-2px);
}
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* --- HEADER --- */
.header {
	position: sticky; top: 0; z-index: 10;
	background: rgba(248, 249, 250, .85);
	backdrop-filter: saturate(1.2) blur(8px);
	border-bottom: 1px solid var(--border-color);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--sage), var(--sand)); }
.brand h1 { font-size: 18px; margin: 0; font-weight: 700; line-height: 1.2; }
.brand .subtitle { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.main-nav { display: flex; gap: 20px; align-items: center; }
.main-nav a { font-weight: 600; color: var(--ink); font-size: 14px; text-decoration: none; }
.main-nav a:hover { color: var(--sage-strong); }

/* --- HERO --- */
.hero { padding-top: 60px; }
.hero .grid { grid-template-columns: 1fr 1fr; align-items: center; }
.hero .badge { display: inline-block; background: var(--sage-soft); color: var(--sage-strong); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.hero h2 { font-family: "Source Serif Pro", serif; font-weight: 600; line-height: 1.15; font-size: clamp(34px, 5.5vw, 52px); margin: 16px 0; }
.hero p { font-size: 18px; color: var(--muted); max-width: 50ch; }
.hero .panel {
	aspect-ratio: 4 / 3.5;
	background: var(--sage-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.hero-image-grid { display: grid; grid-template-columns: 1fr; gap: 8px; width: 100%; height: 100%; }
.hero-image-container { overflow: hidden; border-radius: var(--radius); }
.zoom-image {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform 0.3s ease;
	cursor: pointer;
}
.zoom-image:hover { transform: scale(1.05); }

/* --- Lightbox --- */
#image-lightbox {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	-webkit-backdrop-filter: blur(8px);
  	backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}
#image-lightbox.visible {
	display: block;
	opacity: 1;
}
.lightbox-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.95);
	max-width: 90%;
	max-height: 90vh;
	transition: transform 0.3s ease-in-out;
}
#image-lightbox.visible .lightbox-content {
	transform: translate(-50%, -50%) scale(1);
}
.lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 40px;
	color: white;
	cursor: pointer;
	line-height: 1;
}

/* --- SEZIONI SPECIFICHE --- */
#trattamenti .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
#trattamenti .card { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 120px; font-weight: 600; }

#prima-visita { background: var(--sage-soft); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
#prima-visita .intro { max-width: 680px; }
.timeline { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 16.66%; right: 16.66%; top: 17px; height: 4px; background: var(--sage); opacity: 0.3; border-radius: 4px; }
.timeline-step { text-align: center; }
.timeline-step .dot { position: relative; z-index: 1; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--sage); color: #fff; font-weight: 700; box-shadow: 0 0 0 5px var(--sage-soft); }
.timeline-step h4 { margin: 12px 0 4px; font-size: 16px; }
.timeline-step p { margin: 0; font-size: 15px; }

#prenota { background: var(--paper); }
#prenota .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.pre-booking-form h4 { font-size: 18px; margin: 0 0 8px; }
.pre-booking-form .form-group { margin-bottom: 16px; }
.pre-booking-form label { font-weight: 600; display: block; margin-bottom: 6px; font-size: 15px; }
.pre-booking-form .checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 14px; }
.pre-booking-form input[type="checkbox"] { margin-right: 6px; }
.pre-booking-form select, .pre-booking-form textarea { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--border-color); font-size: 14px; background: #fff; font-family: inherit; }
#calendly-container { min-height: 700px; }

/* --- GALLERY --- */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}
.gallery-item {
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	aspect-ratio: 1 / 1;
}
.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	cursor: pointer;
}
.gallery-item img:hover {
	transform: scale(1.05);
}

/* --- FOOTER --- */
.footer { background: #1a1a1a; color: #ddd; padding: 40px 0; font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer a { color: #a0a0a0; }
.footer a:hover { color: #fff; }
.footer .credits { color: #888; margin-top: 8px; }

/* --- MEDIA QUERIES PER RESPONSIVE --- */
@media (max-width: 900px) {
	body { font-size: 16px; }
	section { padding: 48px 0; }
	.section-title { font-size: 28px; }

	.header .wrap { flex-wrap: wrap; }
	.header .main-nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 16px; overflow-x: auto; padding-top: 8px; }
	.header .cta { display: none; }

	.hero { padding-top: 24px; }
	.hero .grid, #prenota .grid { grid-template-columns: 1fr; }

	.timeline { grid-template-columns: 1fr; gap: 32px; }
	.timeline::before { display: none; }
	.timeline-step .dot { box-shadow: 0 0 0 5px var(--sage-soft); }

	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}
}
@media (max-width: 600px) {
	.gallery-grid {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
}

/* --- ANIMATIONS --- */
.reveal {
	opacity: 0;
	transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.reveal-up {
	transform: translateY(30px);
}
.reveal.reveal-left {
	transform: translateX(-30px);
}
.reveal.reveal-right {
	transform: translateX(30px);
}
.reveal.is-visible {
	opacity: 1;
	transform: translateX(0) translateY(0);
}
.reveal.is-visible:nth-child(2) { transition-delay: 0.1s; }
.reveal.is-visible:nth-child(3) { transition-delay: 0.2s; }
.reveal.is-visible:nth-child(4) { transition-delay: 0.3s; }


/* --- CHI SONO --- */
.chi-sono-grid {
	grid-template-columns: 1fr 1.2fr;
	align-items: flex-start;
}
.chi-sono-intro h2 {
	margin-bottom: 16px;
}
.chi-sono-image {
    width: 70%;
    border-radius: var(--radius);
    margin-top: 24px;
    aspect-ratio: 4/3.5;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.chi-sono-features {
	display: grid;
	gap: 20px;
}
.feature-item {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	gap: 0 16px;
	align-items: center;
    text-align: left;
}
.feature-item .feature-icon {
	grid-row: 1 / span 2;
	background: var(--sage-soft);
	color: var(--sage-strong);
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.feature-item .feature-icon svg {
	width: 24px;
	height: 24px;
}
.feature-item h4 {
	margin: 0;
	font-size: 17px;
}
.feature-item p {
	margin: 0;
	grid-column: 2;
}


@media (max-width: 900px) {
    .chi-sono-grid {
		grid-template-columns: 1fr;
        gap: 32px;
	}
}
