/* ==========================================================================
   Antica Via delle Aie — homepage
   Palette tratta dalla casa: pietra leccese, facciata ocra,
   portone verde bottiglia, ferro battuto.
   ========================================================================== */

:root {
	--paper: #f7f2e9;
	--stone: #ede3d1;
	--stone-deep: #dccbad;
	--ochre: #b98a45;
	--ochre-dark: #8f6630;
	--green: #1d3730;
	--green-soft: #2b4a41;
	--ink: #26221c;
	--ink-soft: #5d554a;
	--line: rgba(38, 34, 28, .14);
	--white: #fffdf8;

	--serif: "Cormorant Garamond", "Times New Roman", serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1180px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 4px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .75em;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--ochre-dark);
	margin: 0 0 1.2rem;
}
.eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
}

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.01em;
	margin: 0;
}
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 em, h1 em { font-style: italic; color: var(--ochre-dark); }

.lead {
	font-size: 1.12rem;
	color: var(--ink-soft);
	max-width: 38em;
}

.section { padding: clamp(72px, 11vw, 140px) 0; }

/* Buttons ---------------------------------------------------------------- */

.btn {
	background: transparent;
	display: inline-flex;
	align-items: center;
	gap: .6em;
	padding: 14px 26px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font: 600 .8rem/1 var(--sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--ochre); color: var(--white); }
.btn--solid:hover { background: var(--ochre-dark); }
.btn--ghost { border-color: rgba(255, 253, 248, .6); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 253, 248, .12); border-color: var(--white); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ochre-dark);
	border-bottom: 1px solid currentColor;
	padding-bottom: 4px;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* Header ----------------------------------------------------------------- */

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	color: var(--white);
	transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
}
/* Sfondo su uno pseudo-elemento: un backdrop-filter sull'header stesso
   diventerebbe il contenitore del menu mobile (position: fixed) e lo
   schiaccerebbe dentro i 76px dell'header. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(247, 242, 233, .96);
	box-shadow: 0 1px 0 var(--line);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity .35s var(--ease);
}
.site-header.is-solid { color: var(--ink); }
.site-header.is-solid::before { opacity: 1; }

.brand {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	line-height: 1;
}
.brand__name {
	font-family: var(--serif);
	font-size: 1.55rem;
	font-weight: 600;
}
.brand__place {
	font-size: .62rem;
	letter-spacing: .3em;
	text-transform: uppercase;
	opacity: .75;
	margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav__list a {
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	opacity: .88;
	position: relative;
	padding: 6px 0;
}
.nav__list a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--ease);
}
.nav__list a:hover { opacity: 1; }
.nav__list a:hover::after { transform: scaleX(1); }
.nav .btn { padding: 12px 20px; }

/* Selettore lingua (generato da tools/seo_head.py) */
.lang {
	display: flex;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .12em;
}
.lang a { text-decoration: none; opacity: .6; padding: 6px 0; }
.lang a:hover, .lang a[aria-current] { opacity: 1; }
.lang a[aria-current] { border-bottom: 1px solid currentColor; }

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	color: inherit;
	width: 44px;
	height: 44px;
	padding: 10px;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	height: 1.5px;
	background: currentColor;
	margin: 6px 0;
	transition: transform .3s var(--ease), opacity .3s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */

.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: var(--white);
	overflow: hidden;
	background: var(--green);
}
.hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 55% 45%;
	animation: heroZoom 18s var(--ease) both;
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(20, 30, 26, .55) 0%, rgba(20, 30, 26, 0) 28%),
		linear-gradient(90deg, rgba(20, 30, 26, .55) 0%, rgba(20, 30, 26, 0) 60%),
		linear-gradient(0deg, rgba(20, 30, 26, .88) 0%, rgba(20, 30, 26, .35) 45%, rgba(20, 30, 26, .1) 70%);
}
.hero__content {
	position: relative;
	z-index: 1;
	padding-top: 140px;
	padding-bottom: clamp(40px, 7vw, 80px);
}
.hero .eyebrow { color: #e6c98f; }
.hero h1 {
	font-size: clamp(3rem, 9vw, 7rem);
	font-weight: 400;
	max-width: 10ch;
	margin-bottom: 24px;
}
.hero h1 em { color: #e6c98f; }
.hero__text {
	font-size: clamp(1.02rem, 1.6vw, 1.2rem);
	max-width: 34em;
	opacity: .92;
	margin: 0 0 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__facts {
	position: relative;
	z-index: 1;
	border-top: 1px solid rgba(255, 253, 248, .22);
}
.hero__facts ul {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	list-style: none;
	margin: 0 auto;
	padding-top: 22px;
	padding-bottom: 26px;
}
.hero__facts li {
	font-size: .8rem;
	letter-spacing: .04em;
	opacity: .85;
	padding-right: 16px;
}
.hero__facts strong {
	display: block;
	font-family: var(--serif);
	font-size: 1.6rem;
	font-weight: 500;
	letter-spacing: 0;
	opacity: 1;
	line-height: 1.2;
}

@keyframes heroZoom {
	from { transform: scale(1.08); }
	to { transform: scale(1); }
}

/* Storia ----------------------------------------------------------------- */

.story {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(40px, 7vw, 100px);
	align-items: center;
}
.story__media { position: relative; padding: 0 0 70px 0; }
.story__media .main {
	width: 82%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--radius);
}
.story__media figure {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 50%;
	margin: 0;
	background: var(--paper);
	padding: 10px 10px 0;
	border-radius: var(--radius);
	box-shadow: 0 24px 50px -24px rgba(38, 34, 28, .45);
}
.story__media figure img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: 50% 30%;
}
.story__media figcaption {
	font-family: var(--serif);
	font-style: italic;
	font-size: .98rem;
	color: var(--ink-soft);
	padding: 8px 2px 12px;
	line-height: 1.35;
}
.story__text h2 { margin-bottom: 28px; }
.story__text p { color: var(--ink-soft); margin: 0 0 1.1em; }
.story__text .first::first-letter {
	font-family: var(--serif);
	float: left;
	font-size: 4.2em;
	line-height: .82;
	padding: 6px 10px 0 0;
	color: var(--ochre-dark);
}
.story__sign {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	display: flex;
	gap: 36px;
	flex-wrap: wrap;
}
.story__sign div { font-size: .82rem; color: var(--ink-soft); }
.story__sign strong {
	display: block;
	font-family: var(--serif);
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--ink);
}

/* Appartamenti ----------------------------------------------------------- */

.rooms { background: var(--stone); }
.section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 30px;
	flex-wrap: wrap;
	margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head .lead { margin: 18px 0 0; }

.rooms__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(20px, 3vw, 36px);
}
.room {
	position: relative;
	display: block;
	text-decoration: none;
	color: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--green);
}
.room img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}
.room::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(20, 30, 26, .85) 0%, rgba(20, 30, 26, .1) 55%);
}
.room:hover img { transform: scale(1.05); }
.room__body {
	position: absolute;
	z-index: 1;
	left: 0; right: 0; bottom: 0;
	padding: clamp(22px, 3vw, 36px);
}
.room__floor {
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #e6c98f;
}
.room h3 {
	font-size: clamp(2rem, 3.4vw, 2.8rem);
	margin: 8px 0 10px;
}
.room p { margin: 0 0 18px; max-width: 30em; opacity: .9; font-size: .98rem; }
.room .link-arrow { color: var(--white); }

/* Digital detox ---------------------------------------------------------- */

.detox {
	background: var(--green);
	color: var(--white);
	position: relative;
	overflow: hidden;
}
.detox__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: clamp(40px, 7vw, 90px);
	align-items: center;
}
.detox .eyebrow { color: #e6c98f; }
.detox blockquote {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(1.9rem, 3.6vw, 3rem);
	line-height: 1.15;
	font-weight: 400;
}
.detox blockquote em { color: #e6c98f; }
.detox p { opacity: .82; max-width: 34em; margin: 26px 0 0; }
.press {
	display: block;
	text-decoration: none;
	background: var(--paper);
	color: var(--ink);
	padding: 12px;
	border-radius: var(--radius);
	transform: rotate(1.5deg);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
	transition: transform .4s var(--ease);
}
.press:hover { transform: rotate(0deg) translateY(-4px); }
.press img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.press span {
	display: flex;
	justify-content: space-between;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 12px 4px 2px;
	color: var(--ink-soft);
}

/* Galleria --------------------------------------------------------------- */

.gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 220px;
	grid-template-areas:
		"a b c c"
		"a d d e"
		"f d d e";
	gap: 12px;
}
.gallery a:nth-child(1) { grid-area: a; }
.gallery a:nth-child(2) { grid-area: b; }
.gallery a:nth-child(3) { grid-area: c; }
.gallery a:nth-child(4) { grid-area: d; }
.gallery a:nth-child(5) { grid-area: e; }
.gallery a:nth-child(6) { grid-area: f; }
.gallery a {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--stone);
}
.gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease);
}
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: rgba(247, 242, 233, .92);
	color: var(--ink);
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 6px 10px;
	border-radius: 2px;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .3s, transform .3s var(--ease);
}
.gallery a:hover figcaption,
.gallery a:focus-visible figcaption { opacity: 1; transform: none; }

/* Dintorni --------------------------------------------------------------- */

.around { background: var(--stone); }
.around__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(20px, 3vw, 36px);
	margin-bottom: clamp(48px, 7vw, 80px);
}
.card {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	background: var(--paper);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(38, 34, 28, .45); }
.card img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.card__body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; }
.card h3 { font-size: 2rem; margin: 6px 0 12px; }
.card p { font-size: .95rem; color: var(--ink-soft); margin: 0 0 20px; flex: 1; }
.card .room__floor { color: var(--ochre-dark); }
.card .link-arrow { align-self: flex-start; }

.distances {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--line);
}
.distances > div {
	padding: 28px 24px 0 0;
}
.distances h4 {
	margin: 0 0 14px;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ochre-dark);
}
.distances ul { list-style: none; margin: 0; padding: 0; }
.distances li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px dashed var(--line);
	font-size: .92rem;
}
.distances li span:last-child {
	font-family: var(--serif);
	font-size: 1.12rem;
	white-space: nowrap;
	color: var(--ink);
}

/* Dove siamo & contatti -------------------------------------------------- */

.visit__grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: clamp(40px, 6vw, 80px);
	align-items: start;
}
.info { margin: 32px 0 0; }
.info div {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid var(--line);
}
.info dt {
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ochre-dark);
	padding-top: 4px;
}
.info dd { margin: 0; }
.info a { text-decoration: none; border-bottom: 1px solid var(--line); }
.info a:hover { border-color: var(--ochre); }
.badge {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	margin-top: 26px;
	padding: 12px 16px;
	background: var(--stone);
	border-radius: var(--radius);
	font-size: .88rem;
	color: var(--ink-soft);
}
.badge svg { flex: none; color: var(--ochre-dark); }

.map {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--stone);
}
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.7) sepia(.15); }
.map-link { margin-top: 16px; display: inline-flex; }

.contact { background: var(--stone); }
.contact__box {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: clamp(40px, 6vw, 80px);
}
.contact__box .lead { margin-top: 20px; }
.phones { margin-top: 28px; display: grid; gap: 10px; }
.phones a {
	font-family: var(--serif);
	font-size: 1.6rem;
	text-decoration: none;
	line-height: 1.2;
}
.phones a:hover { color: var(--ochre-dark); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ink-soft);
}
.field input, .field textarea {
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--stone-deep);
	border-radius: var(--radius);
	padding: 12px 14px;
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
	outline: none;
	border-color: var(--ochre);
	box-shadow: 0 0 0 3px rgba(185, 138, 69, .2);
}
.check { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; accent-color: var(--ochre); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__status { font-size: .92rem; min-height: 1.5em; margin: 0; }
.form__status.ok { color: var(--green-soft); }
.form__status.err { color: #9b3a24; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer ----------------------------------------------------------------- */

.site-footer {
	background: var(--green);
	color: rgba(255, 253, 248, .78);
	padding: clamp(60px, 8vw, 96px) 0 32px;
	font-size: .92rem;
}
.footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(255, 253, 248, .14);
}
.site-footer .brand { color: var(--white); margin-bottom: 18px; }
.site-footer h4 {
	color: #e6c98f;
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer__legal {
	padding-top: 24px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 30px;
	font-size: .78rem;
	opacity: .75;
}
.footer__legal span + span::before { content: "·"; margin: 0 10px; }

/* Reveal ----------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero__img { animation: none; }
	.reveal { opacity: 1; transform: none; transition: none; }
	* { transition-duration: 0s !important; }
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 980px) {
	.nav-toggle { display: block; position: relative; z-index: 2; }
	.nav {
		position: fixed;
		inset: 0;
		flex-direction: column;
		justify-content: center;
		gap: 36px;
		background: var(--green);
		color: var(--white);
		opacity: 0;
		visibility: hidden;
		transition: opacity .35s var(--ease), visibility .35s;
	}
	.nav-open .nav { opacity: 1; visibility: visible; }
	.nav-open .site-header { color: var(--white); }
	.nav-open .site-header::before { opacity: 0; }
	.nav__list { flex-direction: column; align-items: center; gap: 22px; }
	.nav__list a { font-family: var(--serif); font-size: 2rem; text-transform: none; letter-spacing: 0; font-weight: 400; }
	.lang { font-size: .9rem; gap: 22px; }

	.hero__facts ul { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
	.story, .detox__grid, .visit__grid, .contact__box { grid-template-columns: 1fr; }
	.story__media { max-width: 560px; }
	.around__grid { grid-template-columns: 1fr; }
	.distances { grid-template-columns: repeat(2, 1fr); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.press { max-width: 520px; }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	.rooms__grid { grid-template-columns: 1fr; }
	.room { aspect-ratio: 4 / 4.6; }
	.gallery {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 160px;
		grid-template-areas:
			"a b"
			"a c"
			"d d"
			"d d"
			"e f";
		gap: 8px;
	}
	.gallery figcaption { opacity: 1; transform: none; font-size: .62rem; left: 8px; bottom: 8px; }
	.card { grid-template-columns: 1fr; }
	.card img { min-height: 0; aspect-ratio: 16 / 10; }
	.distances { grid-template-columns: 1fr; }
	.distances > div { padding-right: 0; }
	.form { grid-template-columns: 1fr; }
	.info div { grid-template-columns: 1fr; gap: 4px; }
	.footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.hero__facts strong { font-size: 1.35rem; }
}

/* ==========================================================================
   Pagine interne — componenti condivisi
   ========================================================================== */

.nav__list a[aria-current="page"] { opacity: 1; }
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }

/* Intestazione di pagina (più bassa della hero della home) */
.page-hero {
	position: relative;
	min-height: clamp(380px, 62svh, 620px);
	display: flex;
	align-items: flex-end;
	color: var(--white);
	background: var(--green);
	overflow: hidden;
}
.page-hero > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(20, 30, 26, .55) 0%, rgba(20, 30, 26, 0) 35%),
		linear-gradient(0deg, rgba(20, 30, 26, .85) 0%, rgba(20, 30, 26, .2) 60%);
}
.page-hero .wrap {
	position: relative;
	z-index: 1;
	padding-top: 130px;
	padding-bottom: clamp(36px, 6vw, 64px);
}
.page-hero .eyebrow { color: #e6c98f; }
.page-hero h1 {
	font-size: clamp(2.6rem, 7vw, 5rem);
	font-weight: 400;
	max-width: 16ch;
}
.page-hero h1 em { color: #e6c98f; }
.page-hero p:not(.eyebrow) {
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	max-width: 36em;
	margin: 18px 0 0;
	opacity: .92;
}

/* Testo lungo */
.prose { max-width: 70ch; }
.prose--center { margin-left: auto; margin-right: auto; }
.prose h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 1.6em 0 .5em; }
.prose h3 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin: 1.5em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ochre-dark); }
.prose blockquote {
	margin: 1.6em 0;
	padding-left: 22px;
	border-left: 2px solid var(--ochre);
	font-family: var(--serif);
	font-size: 1.35rem;
	line-height: 1.4;
	color: var(--ink);
}
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption {
	font-family: var(--serif);
	font-style: italic;
	color: var(--ink-soft);
	margin-top: 8px;
}

/* Due colonne testo / immagine */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(36px, 6vw, 90px);
	align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; object-fit: cover; }

/* Sotto-navigazione interna alla pagina (sticky) */
.subnav {
	position: sticky;
	top: 76px;
	z-index: 20;
	background: rgba(247, 242, 233, .96);
	border-bottom: 1px solid var(--line);
}
.subnav ul {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0 auto;
	padding-top: 12px;
	padding-bottom: 12px;
	overflow-x: auto;
	scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
	display: block;
	white-space: nowrap;
	padding: 8px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-decoration: none;
	color: var(--ink-soft);
	transition: background .2s, color .2s, border-color .2s;
}
.subnav a:hover, .subnav a.is-active { background: var(--green); border-color: var(--green); color: var(--white); }

/* Griglia uniforme di foto (PhotoSwipe) */
.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}
.photo-grid a {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--stone);
	aspect-ratio: 4 / 3;
}
.photo-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease);
}
.photo-grid a:hover img { transform: scale(1.05); }
.photo-grid figcaption {
	position: absolute;
	left: 10px;
	bottom: 10px;
	background: rgba(247, 242, 233, .92);
	color: var(--ink);
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 5px 9px;
	border-radius: 2px;
}

/* Riquadro informativo */
.note {
	padding: 22px 26px;
	background: var(--stone);
	border-left: 3px solid var(--ochre);
	border-radius: var(--radius);
	color: var(--ink-soft);
}
.note strong { color: var(--ink); }

/* Lista di dettagli (servizi, dotazioni) */
.facts-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0 32px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.facts-list li {
	padding: 12px 0;
	border-bottom: 1px dashed var(--line);
	color: var(--ink-soft);
}

/* Sfondi di sezione */
.section--stone { background: var(--stone); }
.section--green { background: var(--green); color: var(--white); }
.section--green .eyebrow { color: #e6c98f; }
.section--green .prose p, .section--green .prose li { color: rgba(255, 253, 248, .85); }

/* Fascia finale "Prenota" */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { max-width: 34em; margin: 0 auto 30px; opacity: .85; }
.cta-band .hero__actions { justify-content: center; }

/* --------------------------------------------------------------------------
   Testo da rivedere (anteprima): evidenziato in giallo, tocco = testo originale
   -------------------------------------------------------------------------- */
mark.rev {
	background: linear-gradient(transparent 8%, #fbe58a 8%, #fbe58a 92%, transparent 92%);
	color: #26221c;
	padding: 0 2px;
	border-radius: 2px;
	cursor: help;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}
/* Variante a blocco: per evidenziare elementi che contengono blocchi (es. <strong> display:block) */
mark.rev.rev--block {
	display: block;
	background: #fbe58a;
	padding: 6px 10px;
}
mark.rev.rev--block * { color: #26221c !important; opacity: 1 !important; }
mark.rev[data-orig=""]::after,
mark.rev:not([data-orig])::after {
	content: "nuovo";
	font: 600 .58rem/1 var(--sans);
	letter-spacing: .1em;
	text-transform: uppercase;
	vertical-align: super;
	margin-left: 4px;
	color: #8f6630;
}
.rev-pop {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 200;
	max-width: 560px;
	margin: 0 auto;
	padding: 16px 44px 16px 18px;
	background: #26221c;
	color: #fffdf8;
	border-radius: 6px;
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	font-size: .92rem;
	line-height: 1.5;
}
.rev-pop b {
	display: block;
	font-size: .66rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #fbe58a;
	margin-bottom: 6px;
}
mark.rev.rev--commented,
mark.rev.rev--commented.rev--block {
	background: linear-gradient(transparent 8%, #cfe6b4 8%, #cfe6b4 92%, transparent 92%);
}
mark.rev.rev--commented.rev--block { background: #cfe6b4; }
.rev-pop b.rev-pop__lbl { margin: 14px 0 6px; }
.rev-pop textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 0;
	border-radius: 4px;
	background: #fffdf8;
	color: #26221c;
	font: 16px/1.4 var(--sans);
	resize: vertical;
}
.rev-pop .rev-pop__save {
	margin-top: 8px;
	padding: 9px 14px;
	border: 0;
	border-radius: 4px;
	background: #fbe58a;
	color: #26221c;
	font: 600 .78rem/1 var(--sans);
	cursor: pointer;
}
.rev-pop .rev-pop__save:disabled { opacity: .6; }
.rev-pop__st { margin-left: 10px; font-size: .8rem; color: #fbe58a; }
.rev-pop .rev-pop__x {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 1.2rem;
	cursor: pointer;
}
.rev-badge {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 150;
	padding: 8px 12px;
	background: #fbe58a;
	color: #26221c;
	border-radius: 999px;
	font: 600 .7rem/1 var(--sans);
	letter-spacing: .08em;
	text-transform: uppercase;
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4);
	border: 0;
	cursor: pointer;
}

@media (max-width: 980px) {
	.split { grid-template-columns: 1fr; }
	.split--reverse > :first-child { order: 0; }
	.subnav { top: 76px; }
}
@media (max-width: 680px) {
	.photo-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
	.photo-grid figcaption { font-size: .58rem; left: 6px; bottom: 6px; }
}

/* Accenti leggibili: sul giallo di revisione e sulle fasce verdi */
mark.rev em { color: var(--ochre-dark) !important; }
.section--green h2 em { color: #e6c98f; }
