/* =========================================================================
   Il Casale degli Amici — foglio di stile principale
   Tema landing-page per agriturismo / hotel di campagna.
   Indice:
     1. Variabili
     2. Reset & base
     3. Tipografia & utilità
     4. Bottoni
     5. Header & navigazione
     6. Hero & widget prenotazione
     7. Barra riconoscimenti
     8. Storia & numeri
     9. Camere
    10. Servizi
    11. Esperienze (sezione scura)
    12. Ristorante
    13. Galleria & lightbox
    14. Recensioni (slider)
    15. Posizione & mappa
    16. CTA finale
    17. Footer
    18. Back-to-top & toast
    19. Pagine interne (index.php)
    20. Lingua (it / en)
    21. Reveal & accessibilità motion
   ========================================================================= */

/* ----------------------------- 1. Variabili ----------------------------- */
:root {
	--cream: #faf6ee;
	--cream-2: #f2ead9;
	--paper: #ffffff;
	--ink: #2b2720;
	--ink-2: #5b544a;
	--ink-3: #877e6e;
	--olive: #5d6b4a;
	--olive-2: #4a5638;
	--olive-dark: #38422c;
	--terracotta: #b15a36;
	--terracotta-2: #9a4a2a;
	--gold: #c3a256;
	--sand: #e2d5ba;
	--line: #e8dec9;
	--dark: #262219;
	--dark-2: #312c20;
	--shadow-sm: 0 2px 12px rgba(40, 32, 20, .06);
	--shadow: 0 18px 44px -18px rgba(40, 32, 20, .26);
	--shadow-lg: 0 32px 72px -24px rgba(28, 22, 12, .38);
	--radius: 14px;
	--radius-lg: 22px;
	--header-h: 96px;
	--container: 1200px;
	--space: clamp(64px, 9vw, 116px);
	--ease: cubic-bezier(.22, .7, .25, 1);
	--font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-sans: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ----------------------------- 2. Reset & base -------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--terracotta); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; color: var(--ink); line-height: 1.18; margin: 0 0 .6rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
::selection { background: var(--terracotta); color: #fff; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }

/* ----------------------- 3. Tipografia & utilità ------------------------ */
.container {
	width: min(calc(100% - 2 * clamp(18px, 5vw, 40px)), var(--container));
	margin-inline: auto;
}

.section { padding-block: var(--space); }
.section--alt { background: var(--cream-2); }

.icon { display: inline-block; vertical-align: middle; flex: none; width: 24px; height: 24px; }

.eyebrow {
	display: flex;
	align-items: center;
	gap: .85em;
	margin: 0 0 1.1rem;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: .74rem;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--terracotta);
}
/* Solo il PRIMO span è la lineetta decorativa. Il testo dell'eyebrow, quando passa
   da bds_t(), è anch'esso uno <span>: con un selettore generico veniva ridotto a
   36x1.5px e finiva sotto al titolo. */
.eyebrow > span:first-child { display: block; width: 36px; height: 1.5px; background: currentColor; flex: 0 0 auto; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; display: block; width: 36px; height: 1.5px; background: currentColor; }
.eyebrow--light { color: rgba(243, 235, 219, .82); }

.section__head { margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--center { text-align: center; max-width: 760px; margin-inline: auto; }
.section__head:not(.section__head--center) { display: grid; gap: 1.2rem 3rem; align-items: end; }
@media (min-width: 840px) {
	.section__head:not(.section__head--center) { grid-template-columns: 1fr minmax(280px, 420px); }
}
.section__title {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: clamp(2rem, 3.5vw, 3.05rem);
	line-height: 1.12;
	color: var(--ink);
	margin: 0;
}
.section__title em { font-style: italic; color: var(--terracotta); }
.section__sub { margin: 1rem 0 0; color: var(--ink-2); font-size: 1.08rem; line-height: 1.7; }
.section__head--center .section__sub { margin-inline: auto; max-width: 620px; }
.section__sub--right { margin-top: 0; }
.section__head--light .section__title { color: #f6efe0; }

.skip-link {
	position: fixed; top: 8px; left: 8px; z-index: 300;
	background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 8px;
	transform: translateY(-160%); transition: transform .2s; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ----------------------------- 4. Bottoni ------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	padding: .95em 1.7em; border-radius: 999px; border: 1.5px solid transparent;
	background: var(--terracotta); color: #fff;
	font-family: var(--font-sans); font-weight: 700; font-size: .9rem;
	letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
	cursor: pointer; line-height: 1; text-align: center;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--terracotta); border-color: var(--terracotta); color: #fff; box-shadow: 0 12px 26px -12px rgba(155, 74, 42, .7); }
.btn--primary:hover { background: var(--terracotta-2); border-color: var(--terracotta-2); box-shadow: 0 18px 32px -12px rgba(155, 74, 42, .7); }
.btn--ghost { background: transparent; border-color: rgba(93, 107, 74, .45); color: var(--olive-2); }
.btn--ghost:hover { background: var(--olive-2); border-color: var(--olive-2); color: #fff; }
.btn--ghost-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .65); color: #fff; backdrop-filter: blur(2px); }
.btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--sm { padding: .7em 1.3em; font-size: .76rem; }
.btn--lg { padding: 1.05em 2.15em; font-size: .96rem; }
.btn--block { display: flex; width: 100%; }

.link-arrow {
	display: inline-flex; align-items: center; gap: .5rem;
	font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--terracotta); text-decoration: none; padding-top: .3rem;
	transition: color .2s;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--terracotta-2); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* -------------------------- 5. Header & nav ----------------------------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	height: var(--header-h); display: flex; align-items: center; color: #fff;
	transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s, height .35s var(--ease);
}
/* L'header può usare più larghezza del contenido (--container): con 9 voci di
   menu + lingua + carrello + telefono + CTA, a 1200px la barra sbordava e il
   bottone "Prenota" finiva tagliato fuori dallo schermo. */
.site-header__inner { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.5rem); width: min(calc(100% - 2 * clamp(18px, 5vw, 40px)), 1440px); margin-inline: auto; }
.site-header.is-scrolled,
body.nav-open .site-header,
body.bds-inner .site-header {
	background: var(--cream); color: var(--ink);
	box-shadow: 0 8px 30px -12px rgba(40, 32, 20, .22); height: 64px;
}

/* Il marchio non si comprime: con un nome lungo ("Il Casale degli Amici") il flex
   lo strizzerebbe su tre righe, sbordando dall'altezza fissa dell'header. */
.site-brand { flex: 0 0 auto; }
.site-brand__link { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.site-brand__official-logo { width: auto; height: 84px; object-fit: contain; transition: height .35s var(--ease), filter .35s var(--ease); }
.site-header.is-scrolled .site-brand__official-logo,
body.nav-open .site-brand__official-logo,
body.bds-inner .site-brand__official-logo { height: 54px; }
.custom-logo { max-height: 46px; width: auto; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.6rem); }
.nav__menu { display: flex; align-items: center; gap: clamp(.65rem, 1.1vw, 1.25rem); list-style: none; }
.nav__menu a {
	position: relative; color: inherit; text-decoration: none;
	font-weight: 700; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase;
	padding: .4rem 0; transition: color .2s; white-space: nowrap;
}
.nav__menu a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 1.5px;
	background: currentColor; transition: right .3s var(--ease);
}
.nav__menu a:hover { color: var(--terracotta); }
.nav__menu a:hover::after, .nav__menu .current-menu-item > a::after, .nav__menu .current_page_item > a::after { right: 0; }
.site-nav__cta { display: flex; align-items: center; gap: clamp(.6rem, 1.2vw, 1.1rem); }

/* Mini-carrello: sta nell'header di OGNI pagina, quindi vive qui e non in
   shop.css (che si carica solo nella bottega); altrimenti nella landing lo
   "0" del contatore usciva sotto all'icona invece di restare nascosto. */
.bds-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; color: inherit; text-decoration: none; transition: background-color .2s, color .2s; }
.bds-cart:hover { background: rgba(177, 90, 54, .12); color: var(--terracotta); }
.bds-cart .icon { width: 22px; height: 22px; }
.bds-cart__count {
	position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 999px; background: var(--terracotta); color: #fff;
	font-family: var(--font-sans); font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center;
}
.bds-cart__count.is-zero { display: none; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; font-weight: 700; font-size: .82rem; white-space: nowrap; transition: color .2s; }
.header-phone .icon { width: 16px; height: 16px; color: var(--terracotta); }
.header-phone:hover { color: var(--terracotta); }
/* Sotto i 1440px il numero di telefono esce dalla barra: resta comunque nel
   footer, nella sezione contatti e nel menu mobile. */
@media (min-width: 1181px) and (max-width: 1439px) { .site-nav__cta .header-phone { display: none; } }

/* Switch lingua IT / EN */
.lang-switch { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.lang-switch__btn {
	appearance: none; -webkit-appearance: none; border: 1.5px solid transparent; background: transparent;
	color: inherit; opacity: .62; font-family: var(--font-sans); font-weight: 800; font-size: .68rem;
	letter-spacing: .1em; padding: .34rem .5rem; border-radius: 999px; cursor: pointer; line-height: 1;
	transition: opacity .2s, background-color .2s, color .2s, border-color .2s;
}
.lang-switch__btn:hover { opacity: 1; }
.lang-switch__btn.is-active { opacity: 1; background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.lang-switch--footer { margin-top: 1.4rem; }
.lang-switch--footer .lang-switch__btn { font-size: .66rem; padding: .4rem .8rem; }

.site-header__cta { display: none; }

.nav-toggle {
	display: none; position: relative; width: 44px; height: 44px;
	border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 50%; flex: 0 0 auto;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
	position: absolute; left: 50%; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
	transition: transform .3s var(--ease), opacity .2s, background-color .2s;
}
.nav-toggle__bar { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle__bar::before { content: ""; top: 0; transform: translate(-50%, -7px); }
.nav-toggle__bar::after { content: ""; top: 0; transform: translate(-50%, 7px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translate(-50%, 0) rotate(-45deg); }

.nav-backdrop { position: fixed; inset: 0; background: rgba(25, 20, 12, .5); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; z-index: 98; }
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

@media (max-width: 1180px) {
	.site-brand__official-logo { height: 72px; }
	.site-header__inner { gap: .75rem; }
	.site-nav {
		position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 86vw);
		margin: 0; background: var(--cream); color: var(--ink);
		flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
		padding: calc(var(--header-h) + 24px) 28px 32px;
		box-shadow: -24px 0 60px -20px rgba(0, 0, 0, .4);
		transform: translateX(105%); transition: transform .4s var(--ease);
		overflow-y: auto; z-index: 99;
	}
	body.nav-open .site-nav { transform: translateX(0); }
	.nav__menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__menu li { border-bottom: 1px solid var(--line); }
	.nav__menu a { display: block; padding: .95rem .2rem; font-size: 1.05rem; font-family: var(--font-serif); text-transform: none; letter-spacing: .01em; font-weight: 500; color: var(--ink); }
	.nav__menu a::after { display: none; }
	.site-nav__cta { flex-direction: column; align-items: stretch; gap: .9rem; margin-top: 1.6rem; }
	.site-nav__cta .header-phone { justify-content: center; padding: .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
	.site-nav__cta .btn { width: 100%; }
	.site-nav__cta .lang-switch { display: flex; gap: .5rem; order: -1; }
	.site-nav__cta .lang-switch__btn { flex: 1; border: 1.5px solid var(--line); padding: .65rem; font-size: .76rem; }
	.site-nav__cta .lang-switch__btn.is-active { border-color: var(--terracotta); }
	.site-header__cta { display: inline-flex; margin-left: auto; }
	.nav-toggle { display: inline-flex; }
}

/* ---------------------- 6. Hero & widget prenotazione ------------------- */
.hero {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: flex; flex-direction: column; justify-content: flex-end;
	color: #fff; background-color: #2a2519;
	background-image:
		linear-gradient(180deg, rgba(24, 19, 11, .32) 0%, rgba(24, 19, 11, .08) 45%, rgba(24, 19, 11, .38) 100%),
		url("../images/hero/hero-casale-tramonto.jpg");
	background-size: cover; background-position: center 70%;
	padding: calc(var(--header-h) + 28px) 0 0;
}
.hero__inner { margin-top: auto; margin-bottom: clamp(26px, 5vh, 50px); max-width: 760px; }
.hero__kicker { font-family: var(--font-sans); font-weight: 700; font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .85); margin: 0 0 1.2rem; }
.hero__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.04; margin: 0 0 1.3rem; letter-spacing: .005em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); color: #fff; }
.hero__title em { font-style: italic; color: #efd29a; }
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.65; color: rgba(255, 255, 255, .92); max-width: 560px; margin: 0 0 1.9rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.booking {
	position: relative; z-index: 3;
	display: grid; grid-template-columns: 1fr; gap: .9rem 1rem;
	background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px);
	border-radius: 18px; padding: 1.4rem 1.5rem 1.3rem;
	box-shadow: var(--shadow-lg); color: var(--ink);
	margin: 0 auto clamp(48px, 8vh, 92px);
}
.booking__field { display: flex; flex-direction: column; gap: .35rem; }
.booking__field label { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.booking__field input, .booking__field select {
	font-family: var(--font-sans); font-size: .98rem; font-weight: 600; color: var(--ink);
	border: 1px solid var(--line); border-radius: 10px; padding: .65rem .7rem; background: #fff; width: 100%;
}
.booking__field input:focus, .booking__field select:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; border-color: var(--terracotta); }
.booking__submit { padding-block: .95em; }
.booking__note { grid-column: 1 / -1; margin: .2rem 0 0; font-size: .78rem; color: var(--ink-3); text-align: center; }
@media (min-width: 640px) { .booking { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
	.booking { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
	.booking__submit { align-self: end; }
}
@media (max-width: 639px) {
	.hero {
		background-position: center 68%;
		padding-top: calc(var(--header-h) + 18px);
	}
	.booking {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .8rem .65rem;
		padding: 1rem;
		border-radius: 16px;
		margin-bottom: 24px;
	}
	.booking__field { min-width: 0; gap: .28rem; }
	.booking__field label { font-size: .6rem; letter-spacing: .11em; }
	.booking__field input,
	.booking__field select {
		min-width: 0;
		font-size: .88rem;
		padding: .65rem .55rem;
	}
	.booking__submit {
		grid-column: 1 / -1;
		padding-block: .8em;
	}
	.booking__note {
		grid-column: 1 / -1;
		font-size: .68rem;
		line-height: 1.45;
	}
}

/* ----------------------- 7. Barra riconoscimenti ----------------------- */
.trustbar { background: var(--olive-dark); color: #e7e3d2; padding: clamp(74px, 8vw, 96px) 0 clamp(28px, 3.5vw, 40px); }
.trustbar__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; text-align: center; }
.trustbar__item { display: flex; flex-direction: column; gap: .25rem; position: relative; }
.trustbar__item strong { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: #f3edda; letter-spacing: .01em; }
.trustbar__item span { font-size: .8rem; letter-spacing: .04em; color: rgba(231, 227, 210, .68); }
@media (min-width: 760px) {
	.trustbar__inner { grid-template-columns: repeat(4, 1fr); }
	.trustbar__item + .trustbar__item::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: rgba(255, 255, 255, .14); }
}

/* -------------------------- 8. Storia & numeri -------------------------- */
.intro__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .intro__grid { grid-template-columns: .95fr 1fr; } }
.intro__media { position: relative; }
.intro__img { border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; }
.intro__img--1 { width: 100%; aspect-ratio: 4 / 3; max-height: 600px; }
.intro__img--2 { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1 / 1; border: 6px solid var(--cream); }
.section--alt .intro__img--2 { border-color: var(--cream-2); }
.intro__badge { position: absolute; left: -10px; top: 22px; background: var(--terracotta); color: #fff; border-radius: 14px; padding: .8rem 1rem; display: flex; flex-direction: column; line-height: 1.12; box-shadow: var(--shadow); }
.intro__badge strong { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; }
.intro__badge span { font-size: .62rem; text-transform: uppercase; letter-spacing: .16em; opacity: .94; margin-top: 3px; }
.intro__text > p { color: var(--ink-2); font-size: 1.06rem; line-height: 1.78; margin: 1.05rem 0; }
.intro__text > p:first-of-type { margin-top: 1.4rem; }
.intro__list { list-style: none; margin: 1.6rem 0; display: grid; gap: .7rem; }
.intro__list li { display: flex; align-items: center; gap: .75rem; font-weight: 600; color: var(--ink); font-size: .98rem; }
.intro__list .icon { width: 26px; height: 26px; color: var(--olive); background: rgba(93, 107, 74, .12); border-radius: 50%; padding: 5px; }
.intro__signature { display: flex; flex-direction: column; margin-top: 1.8rem; gap: 1px; }
.intro__sign-name { font-family: var(--font-serif); font-style: italic; font-size: 1.75rem; color: var(--terracotta); font-weight: 500; }
.intro__signature span:last-child { font-size: .76rem; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-3); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: clamp(3rem, 5vw, 4.5rem); padding-top: clamp(2rem, 3vw, 3rem); border-top: 1px solid var(--line); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat__num { display: block; font-family: var(--font-serif); font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 600; color: var(--terracotta); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: .5rem; font-size: .8rem; letter-spacing: .06em; color: var(--ink-2); text-transform: uppercase; }

/* ----------------------------- 9. Camere ------------------------------- */
.rooms__grid { display: grid; gap: clamp(1.5rem, 2.5vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 600px) { .rooms__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .rooms__grid { grid-template-columns: repeat(2, 1fr); } }
.room-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.room-card__media { position: relative; aspect-ratio: 2 / 1; overflow: hidden; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
.room-card__media img { width: 100%; height: 100%; min-width: 0; object-fit: cover; transition: transform .6s var(--ease); }
.room-card:hover .room-card__media img { transform: scale(1.06); }
.room-card__tag { position: absolute; top: .9rem; left: .9rem; background: var(--terracotta); color: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .4rem .7rem; border-radius: 999px; }
.room-card__body { display: flex; flex-direction: column; gap: .65rem; padding: 1.4rem 1.4rem 1.5rem; flex: 1; }
.room-card__name { font-family: var(--font-serif); font-size: 1.32rem; font-weight: 600; line-height: 1.2; margin: 0; color: var(--ink); }
.room-card__meta { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .76rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.room-card__meta li { position: relative; padding-right: .85rem; }
.room-card__meta li:not(:last-child)::after { content: "·"; position: absolute; right: .15rem; color: var(--sand); }
.room-card__desc { font-size: .92rem; line-height: 1.6; color: var(--ink-2); margin: 0; }
.room-card__feat { list-style: none; margin: .15rem 0 0; display: grid; gap: .4rem; }
.room-card__feat li { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--ink-2); }
.room-card__feat .icon { width: 15px; height: 15px; color: var(--olive); }
.room-card__foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--line); }
.room-card__price { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1; display: inline-flex; align-items: baseline; gap: .25rem; }
.room-card__from { font-family: var(--font-sans); font-size: .6rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); font-weight: 700; }
.room-card__per { font-family: var(--font-sans); font-size: .7rem; color: var(--ink-3); font-weight: 600; }
.rooms__note { text-align: center; margin: clamp(2rem, 3vw, 2.8rem) 0 0; font-size: .88rem; color: var(--ink-3); }

/* ----------------------------- 10. Servizi ----------------------------- */
.services__grid { list-style: none; display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 520px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1120px) { .services__grid { grid-template-columns: repeat(4, 1fr); } }
.service { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--sand); }
.service__icon { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, rgba(93, 107, 74, .15), rgba(195, 162, 86, .18)); color: var(--olive-2); }
.service__icon .icon { width: 23px; height: 23px; }
.service__text { display: flex; flex-direction: column; gap: .25rem; }
.service__text strong { font-family: var(--font-serif); font-size: 1.16rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.service__text span { font-size: .86rem; line-height: 1.55; color: var(--ink-2); }
.services .service { background: var(--dark-2); border-color: rgba(255, 255, 255, .1); }
.services .service:hover { border-color: rgba(231, 196, 120, .42); box-shadow: 0 26px 54px -28px rgba(0, 0, 0, .8); }
.services .service__icon { background: rgba(231, 196, 120, .12); color: #e7c478; }
.services .service__text strong { color: #f4ecda; }
.services .service__text span { color: rgba(236, 228, 211, .72); }

/* --------------------- 11. Esperienze (sezione scura) ------------------ */
.section--dark { background: var(--dark); color: #ece4d3; }
.section--dark .section__title { color: #f4ecda; }
.section--dark .section__sub { color: rgba(236, 228, 211, .72); }
.section--dark .eyebrow--light { color: rgba(231, 196, 120, .85); }
.exp__grid { display: grid; gap: clamp(1.6rem, 2.5vw, 2.2rem); grid-template-columns: 1fr; }
@media (min-width: 680px) { .exp__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .exp__grid { grid-template-columns: repeat(3, 1fr); } }
.exp-card { background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.exp-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
.exp-card__media { aspect-ratio: 5 / 4; overflow: hidden; }
.exp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.exp-card:hover .exp-card__media img { transform: scale(1.07); }
.exp-card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.exp-card__tag { align-self: flex-start; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #e7c478; background: rgba(231, 196, 120, .13); padding: .35rem .7rem; border-radius: 999px; }
.exp-card__title { font-family: var(--font-serif); font-size: 1.42rem; font-weight: 600; color: #f4ecda; margin: 0; line-height: 1.2; }
.exp-card__body p { font-size: .92rem; line-height: 1.6; color: rgba(236, 228, 211, .78); margin: 0; flex: 1; }
.exp-card .link-arrow { color: #e7a86b; margin-top: .3rem; }
.exp-card .link-arrow:hover { color: #f1c089; }

/* ---------------------------- 12. Ristorante --------------------------- */
.restaurant__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .restaurant__grid { grid-template-columns: 1fr 1fr; } }
.restaurant__media { position: relative; }
.restaurant__img { width: 100%; aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.restaurant__chip { position: absolute; right: -10px; bottom: 26px; display: flex; align-items: center; gap: .7rem; background: var(--olive-dark); color: #eee7d4; padding: .9rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow); max-width: 230px; line-height: 1.25; }
.restaurant__chip .icon { width: 24px; height: 24px; color: #cdbd84; }
.restaurant__chip span { font-size: .78rem; letter-spacing: .02em; }
.restaurant__text > p { color: var(--ink-2); font-size: 1.06rem; line-height: 1.78; margin: 1.05rem 0; }
.restaurant__text > p:first-of-type { margin-top: 1.4rem; }
.menu-list { list-style: none; margin: 1.8rem 0; display: grid; gap: .8rem; }
.menu-list li { display: flex; align-items: baseline; gap: .5rem; font-size: 1rem; }
.menu-list__name { color: var(--ink); font-weight: 600; }
.menu-list__dots { flex: 1; border-bottom: 1.5px dotted var(--sand); transform: translateY(-3px); min-width: 1.5rem; }
.menu-list__price { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--terracotta); white-space: nowrap; }
.restaurant__note { font-size: .86rem; color: var(--ink-3); margin: 0 0 1.6rem; }

/* ------------------------ 13. Galleria & lightbox ----------------------- */
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.8rem, 1.5vw, 1.2rem); }
@media (min-width: 1080px) { .gallery__grid { grid-template-columns: repeat(5, 1fr); } }
.gallery__item { margin: 0; min-width: 0; }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; position: relative; border-radius: var(--radius); overflow: hidden; line-height: 0; }
.gallery__btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.gallery__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(18, 13, 7, .62)); opacity: 0; transition: opacity .35s; pointer-events: none; }
.gallery__btn:hover img, .gallery__btn:focus-visible img { transform: scale(1.05); }
.gallery__btn:hover::after, .gallery__btn:focus-visible::after { opacity: 1; }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem 1rem; color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .02em; text-align: left; line-height: 1.3; transform: translateY(8px); opacity: 0; transition: transform .35s var(--ease), opacity .35s; }
.gallery__btn:hover .gallery__cap, .gallery__btn:focus-visible .gallery__cap { transform: translateY(0); opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 320; display: none; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); background: rgba(15, 11, 6, .93); backdrop-filter: blur(4px); }
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: min(1100px, 92vw); display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lightbox__img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); object-fit: contain; }
.lightbox__cap { color: rgba(255, 255, 255, .85); font-size: .9rem; letter-spacing: .02em; text-align: center; }
.lightbox__close { position: absolute; top: 1rem; right: 1.2rem; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color .2s; }
.lightbox__close:hover { background: rgba(255, 255, 255, .25); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transition: background-color .2s; }
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__nav--prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(.5rem, 2vw, 1.5rem); }
body.no-scroll { overflow: hidden; }
@media (max-width: 600px) {
	.lightbox__nav { top: auto; bottom: 1rem; transform: none; width: 46px; height: 46px; }
	.lightbox__nav--prev { left: 1rem; } .lightbox__nav--next { right: 1rem; }
}

/* ------------------------ 14. Recensioni (slider) ----------------------- */
.testimonials .section__head { margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.rating-summary { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 1.2rem 0 0; }
.rating-summary > span:last-child { color: var(--ink-2); font-size: .95rem; }
.stars { color: var(--gold); letter-spacing: .15em; font-size: 1rem; line-height: 1; }
.stars--lg { font-size: 1.4rem; }
.slider { position: relative; }
.slider__viewport { overflow: hidden; padding: .4rem .2rem 1rem; }
.slider__track { display: flex; gap: clamp(1.5rem, 3vw, 2.5rem); transition: transform .55s var(--ease); will-change: transform; }
.slider__slide { flex: 0 0 100%; min-width: 0; display: flex; }
.review-card { position: relative; width: 100%; max-width: 800px; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem 2rem 1.9rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .9rem; }
.review-card__quote { position: absolute; top: -.2rem; left: 1.3rem; font-family: var(--font-serif); font-size: 5rem; line-height: 1; color: rgba(177, 90, 54, .16); pointer-events: none; }
.review-card .stars { position: relative; z-index: 1; }
.review-card__text { position: relative; z-index: 1; font-family: var(--font-serif); font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.5; color: var(--ink); margin: 0; font-style: italic; }
.review-card__foot { display: flex; flex-direction: column; gap: .15rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.review-card__name { font-weight: 700; color: var(--ink); font-size: .95rem; font-family: var(--font-sans); font-style: normal; }
.review-card__from { font-size: .78rem; color: var(--ink-3); letter-spacing: .02em; }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.slider__arrow { width: 46px; height: 46px; border: 1.5px solid var(--sand); border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.slider__arrow:hover:not(:disabled) { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.slider__arrow:disabled { opacity: .35; cursor: default; }
.slider__arrow .icon { width: 20px; height: 20px; }
.slider__dots { display: flex; gap: .5rem; align-items: center; }
.slider__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--sand); cursor: pointer; padding: 0; transition: transform .2s, background-color .2s; }
.slider__dot.is-active { background: var(--terracotta); transform: scale(1.4); }

/* ------------------------- 15. Posizione & mappa ----------------------- */
.location__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .location__grid { grid-template-columns: 1fr 1.05fr; } }
.location__info > p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.78; margin: 1.4rem 0 0; }
.location__contact { list-style: none; margin: 1.8rem 0; display: grid; gap: .9rem; }
.location__contact li { display: flex; align-items: center; gap: .85rem; font-size: .98rem; color: var(--ink); }
.location__contact a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.location__contact a:hover { color: var(--terracotta); border-color: currentColor; }
.location__contact .icon { width: 38px; height: 38px; color: var(--olive-2); background: rgba(93, 107, 74, .12); border-radius: 50%; padding: 9px; }
.location__distances { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.location__distances h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); margin: 0 0 .8rem; }
.location__distances ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .2rem 1.6rem; }
.location__distances li { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.location__distances strong { color: var(--ink); font-weight: 600; }
.location__distances span { color: var(--terracotta); font-weight: 700; font-variant-numeric: tabular-nums; }
.location__social { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.location__social a { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); padding: .5rem .9rem; border-radius: 999px; transition: border-color .2s, color .2s; }
.location__social a:hover { border-color: var(--terracotta); color: var(--terracotta); }
.location__map { position: relative; min-height: clamp(340px, 50vh, 560px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--cream-2); }
.location__map iframe { width: 100%; height: 100%; min-height: clamp(340px, 50vh, 560px); border: 0; display: block; filter: grayscale(.25) sepia(.08); }
.location__map-link { position: absolute; bottom: 1rem; right: 1rem; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .6rem .9rem; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow-sm); transition: background-color .2s, color .2s; }
.location__map-link:hover { background: #fff; color: var(--terracotta); }

/* ---------------------------- 16. CTA finale --------------------------- */
.final-cta {
	position: relative; color: #fff; text-align: center; background-color: #231f15;
	background-image:
		linear-gradient(rgba(20, 15, 8, .66), rgba(20, 15, 8, .8)),
		url("../images/esterni/casale-fronte-campo.jpg");
	background-size: cover; background-position: center; padding: clamp(74px, 11vw, 140px) 0;
}
.final-cta__inner { max-width: 720px; margin-inline: auto; }
.final-cta__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.3rem, 4.5vw, 3.6rem); line-height: 1.12; margin: .4rem 0 1rem; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); color: #fff; }
.final-cta__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.7; color: rgba(255, 255, 255, .88); margin: 0 auto 2rem; max-width: 560px; }
.final-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-bottom: 2.4rem; }
.final-cta__news { display: flex; gap: .6rem; max-width: 480px; margin: 0 auto .8rem; flex-wrap: wrap; }
.final-cta__news input { flex: 1; min-width: 200px; border: 1.5px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); color: #fff; border-radius: 999px; padding: .85rem 1.3rem; font-family: var(--font-sans); font-size: .95rem; }
.final-cta__news input::placeholder { color: rgba(255, 255, 255, .65); }
.final-cta__news input:focus { outline: 2px solid var(--gold); background: rgba(255, 255, 255, .16); }
.final-cta__fineprint { font-size: .78rem; color: rgba(255, 255, 255, .55); margin: 0; }

/* ----------------------------- 17. Footer ------------------------------ */
.site-footer { background: var(--olive-dark); color: #d8d6c4; }
.site-footer__grid { display: grid; gap: 2.5rem 2rem; padding-block: clamp(3.5rem, 6vw, 5rem); grid-template-columns: 1fr; }
@media (min-width: 600px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer-col__title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: #f1edda; margin: 0 0 1rem; }
.footer-brand { text-decoration: none; display: inline-block; }
.footer-brand__name { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; color: #f3efdc; }
.footer-tagline { margin: .8rem 0 0; color: rgba(216, 214, 196, .78); font-size: .95rem; line-height: 1.6; max-width: 34ch; }
.footer-fam { margin: .8rem 0 0; font-style: italic; font-family: var(--font-serif); font-size: 1.05rem; color: #cdbd84; }
.footer-social { display: flex; gap: .7rem; margin-top: 1.2rem; flex-wrap: wrap; }
.footer-social a { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(216, 214, 196, .85); text-decoration: none; border: 1px solid rgba(255, 255, 255, .18); padding: .45rem .8rem; border-radius: 999px; transition: border-color .2s, color .2s; }
.footer-social a:hover { border-color: var(--gold); color: #f0e3b6; }
.footer-links, .footer-contact { list-style: none; display: grid; gap: .65rem; }
.footer-links a { color: rgba(216, 214, 196, .82); text-decoration: none; font-size: .92rem; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; line-height: 1.45; color: rgba(216, 214, 196, .82); }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact .icon { width: 18px; height: 18px; color: #cdbd84; margin-top: 2px; }
.footer-col--news p { font-size: .92rem; line-height: 1.6; color: rgba(216, 214, 196, .78); margin: 0 0 1rem; }
.footer-newsletter { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-newsletter input { flex: 1; min-width: 160px; border: 1.5px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 999px; padding: .7rem 1.1rem; font-family: var(--font-sans); font-size: .9rem; }
.footer-newsletter input::placeholder { color: rgba(255, 255, 255, .5); }
.footer-newsletter input:focus { outline: 2px solid var(--gold); }
.footer-links--secondary { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; padding-block: 1.4rem; font-size: .78rem; color: rgba(216, 214, 196, .62); }
.footer-copy { margin: 0; }
.legal-links { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; }
.legal-links a { color: rgba(216, 214, 196, .7); text-decoration: none; }
.legal-links a:hover { color: #fff; }
.footer-credit { margin: 0; letter-spacing: .04em; }

/* ----------------------- 18. Back-to-top & toast ----------------------- */
.back-to-top {
	position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
	width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--terracotta); color: #fff;
	display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .3s, visibility .3s, transform .3s, background-color .2s; z-index: 80;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--terracotta-2); }
.back-to-top .icon { width: 22px; height: 22px; }

.bds-toast {
	position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 150%); opacity: 0;
	background: var(--ink); color: #fff; padding: .85rem 1.4rem; border-radius: 999px;
	font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 400; max-width: 90vw; text-align: center;
	transition: transform .4s var(--ease), opacity .3s;
}
.bds-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ----------------------- 19. Pagine interne (index) -------------------- */
.site-main--inner { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)); padding-bottom: clamp(3rem, 7vw, 6rem); min-height: 60vh; }
.inner-page { max-width: 820px; }
.inner-page__head { margin-bottom: 2.5rem; }
.inner-page__intro { margin-top: 1rem; color: var(--ink-2); }
.post-list { display: grid; gap: 2.5rem; }
.post-card { display: grid; gap: 1.2rem; }
.post-card__media { display: block; border-radius: var(--radius); overflow: hidden; }
.post-card__media img { width: 100%; height: auto; }
.post-card__meta { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 0 0 .4rem; }
.post-card__title { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 600; line-height: 1.2; margin: 0 0 .6rem; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--terracotta); }
.post-card__content { color: var(--ink-2); line-height: 1.75; }
.inner-page__empty { text-align: center; max-width: 560px; margin-inline: auto; }
.inner-page__empty .section__title { margin-top: .4rem; }
.inner-page__empty p { color: var(--ink-2); margin: 1rem 0; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; transition: border-color .2s, color .2s, background-color .2s; }
.page-numbers.current { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.page-numbers:hover:not(.current) { border-color: var(--terracotta); color: var(--terracotta); }
.comment-list { list-style: none; }

/* --------------------- 20. Lingua (it / en) ---------------------------- */
/* L'italiano e' il testo predefinito (visibile anche senza JavaScript).
   La maggior parte dei testi cambia via JS (scambio del contenuto data-en);
   le poche coppie esplicite it/en — es. il titolo dell'hero — si alternano qui. */
html[data-lang="en"] [lang="it"] { display: none; }
html[data-lang="it"] [lang="en"] { display: none; }

/* --------------------- 21. Reveal & accessibilità motion --------------- */
.has-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.has-js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	html { scroll-behavior: auto; }
	.has-js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
