/* ============================================================
   Appartamenti Lo Scoiattolo · Pré-Saint-Didier
   Stile: alpino naturale — legno, verde bosco, crema, pietra
   ============================================================ */

:root {
  --verde-scuro: #5d5751;
  --verde-bosco: #6a635e;
  --verde-muschio: #817871;
  --verde-chiaro: #a09992;
  --crema: #ffffff;
  --crema-soft: #f8f7f5;
  --pietra: #8b837d;
  --pietra-chiaro: #b8b1ab;
  --legno: #fa902e;
  --legno-scuro: #c96d21;
  --bacca: #f5ad69;
  --testo: #35312e;
  --testo-soft: #635e59;
  --bianco: #ffffff;
  --ombra: 0 18px 40px -18px rgba(93, 87, 81, 0.35);
  --raggio: 14px;
  --font-testo: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-titolo: "Fraunces", "Georgia", serif;
  --font-sezione: "Bebas Neue Local", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --font-sottotitolo: "Zen Loop", "Segoe Script", cursive;
  --font-hero: "Bebas Neue Local", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
}

@font-face {
  font-family: "Bebas Neue Local";
  src: url("../Font/Google/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zen Loop";
  src: url("../Font/Google/ZenLoop-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-testo);
  color: var(--testo);
  background: var(--crema);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--verde-bosco); text-decoration: none; }
a:hover { color: var(--verde-scuro); }

.container { width: min(1160px, 92%); margin-inline: auto; }

/* ---------- Tipografia ---------- */
h1, h2 {
  font-family: var(--font-sezione);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--verde-scuro);
}
h3, h4 {
  font-family: var(--font-titolo);
  font-weight: 600;
  line-height: 1.15;
  color: var(--verde-scuro);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--legno);
  margin-bottom: 0.9rem;
}

.lead { font-family: var(--font-sottotitolo); font-style: italic; font-size: clamp(1.18rem, 2.2vw, 1.45rem); color: var(--testo-soft); }

.section { padding: clamp(60px, 9vw, 100px) 0; }
.section--alt { background: var(--crema-soft); }
.section--dark { background: var(--verde-scuro); color: var(--crema); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--dark h2 { color: var(--crema); }
.section-head--dark .eyebrow { color: var(--legno); }
.section-head--dark .lead { color: #f3f0ed; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 43, 38, 0.08);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px -12px rgba(93, 87, 81, 0.35);
}

.navbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: 46px; object-fit: contain; }
.site-header .brand img { height: 70px; width: 70px; }
.brand-name { font-family: var(--font-sezione); font-weight: 400; font-size: 1.45rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--verde-scuro); line-height: 1.1; }
.brand-sub { display: block; font-family: var(--font-testo); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--legno); }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--testo);
  letter-spacing: 0.02em;
  padding: 8px 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 2px;
  background: var(--legno);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--verde-bosco); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--legno); color: var(--crema); box-shadow: 0 10px 24px -10px rgba(201, 109, 33, 0.45); }
.btn--primary:hover { background: var(--verde-scuro); color: var(--crema); }

.btn--light { background: var(--crema); color: var(--verde-scuro); }
.btn--light:hover { background: var(--bianco); }

.btn--outline { border-color: var(--verde-bosco); color: var(--verde-bosco); }
.btn--outline:hover { background: var(--verde-bosco); color: var(--crema); }

.btn--outline-light { border-color: rgba(246, 241, 230, 0.7); color: var(--crema); }
.btn--outline-light:hover { background: var(--crema); color: var(--verde-scuro); }

.nav-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--verde-scuro); transition: 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Selettore lingua ---------- */
.lang-switcher { position: relative; }
.lang-switcher__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(106, 99, 94, 0.25);
  border-radius: 50%;
  background: var(--crema-soft);
  color: var(--verde-scuro);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lang-switcher__btn:hover { background: var(--crema); border-color: var(--verde-bosco); color: var(--verde-bosco); }
.lang-switcher__menu {
  position: absolute;
  top: 46px;
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 4px 0;
  background: var(--crema);
  border: 1px solid rgba(106, 99, 94, 0.2);
  border-radius: 12px;
  box-shadow: var(--ombra);
  list-style: none;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-switcher__menu button {
  text-align: left;
  padding: 8px 14px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--verde-scuro);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switcher__menu button:hover { background: var(--verde-bosco); color: var(--crema); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--crema);
}
.hero__slides, .hero__overlay { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay { z-index: 1; background: linear-gradient(180deg, rgba(93, 87, 81, 0.55) 0%, rgba(93, 87, 81, 0.35) 50%, rgba(93, 87, 81, 0.72) 100%); }
.hero__content { position: relative; z-index: 3; width: min(94vw, 1080px); padding: 0 clamp(10px, 3vw, 28px); }
.hero__brand { font-size: 0.85rem; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 400; color: #ffd0a2; margin: 0 auto 20px; text-wrap: balance; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 2px 12px rgba(0, 0, 0, 0.6); }
.hero h1 {
  color: var(--crema);
  font-family: var(--font-hero);
  font-size: clamp(1rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0 auto 16px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 4px 22px rgba(0, 0, 0, 0.65), 0 0 46px rgba(0, 0, 0, 0.55);
}
.hero h1 span { display: inline; }
.hero__tagline {
  font-family: var(--font-sottotitolo);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: #efece0;
  max-width: min(92vw, 760px);
  margin: 0 auto 24px;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 2px 14px rgba(0, 0, 0, 0.6);
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--crema);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0.85;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 32px;
  background: linear-gradient(var(--crema), transparent);
}

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.intro__media { position: relative; border-radius: var(--raggio); overflow: hidden; box-shadow: var(--ombra); }
.intro__media img { height: 100%; min-height: clamp(240px, 44vh, 460px); object-fit: cover; }
.intro__badge {
  position: absolute;
  bottom: 22px; left: 22px;
  background: rgba(246, 241, 230, 0.95);
  color: var(--verde-scuro);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.intro__features { list-style: none; display: grid; gap: 12px; margin: 26px 0 32px; }
.intro__features li { display: flex; gap: 12px; align-items: flex-start; }
.intro__features svg { flex: 0 0 auto; margin-top: 3px; }

/* ---------- Cards appartamenti ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  position: relative;
  background: var(--bianco);
  border-radius: var(--raggio);
  overflow: hidden;
  box-shadow: var(--ombra);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -22px rgba(93, 87, 81, 0.45); }
.card__stretch { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card__stretch:focus-visible { outline: 3px solid var(--verde-bosco); outline-offset: -3px; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 24px 20px;
  background: linear-gradient(180deg, rgba(20, 30, 24, 0) 0%, rgba(20, 30, 24, 0.85) 100%);
  text-align: left;
}
.card__tag {
  display: block;
  font-family: var(--font-sezione);
  font-size: 2.1rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.card__sub {
  display: block;
  font-family: var(--font-sottotitolo);
  font-style: italic;
  font-size: 1.2rem;
  color: #ffd0a2;
  margin-top: 4px;
}
.card__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__meta { font-size: 0.85rem; color: var(--testo-soft); }
.card__meta b { color: var(--verde-bosco); }
.card__text { font-size: 0.95rem; color: var(--testo-soft); flex: 1; }
.card__link { font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
.card__link svg { transition: transform 0.25s ease; }
.card:hover .card__link svg { transform: translateX(5px); }

/* ---------- Recensioni ---------- */
.reviews { scroll-margin-top: 80px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review-card {
  background: var(--crema);
  border-radius: var(--raggio);
  border: 1px solid rgba(43, 43, 38, 0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--ombra);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.review-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgba(93, 87, 81, 0.4); }
.review-card__apt {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verde-bosco);
  background: rgba(250, 144, 46, 0.1);
  border: 1px solid rgba(250, 144, 46, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
}
.review-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-card__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.review-card__avatar {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  background: var(--verde-bosco);
  color: var(--crema);
  display: grid; place-items: center;
  font-family: var(--font-titolo);
  font-size: 1.05rem;
}
.review-card__name { font-size: 1rem; font-weight: 700; color: var(--testo); }
.review-card__date { font-size: 0.8rem; color: var(--testo-soft); }
.review-card__score {
  flex: none;
  background: var(--legno);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 5px 10px;
  border-radius: 8px;
}
.review-card__stars { color: var(--legno); font-size: 0.95rem; letter-spacing: 2px; }
.review-card__text { font-size: 0.95rem; color: var(--testo-soft); line-height: 1.6; font-style: italic; }
.review-card__lang {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--verde-bosco);
  background: transparent;
  border: 1px solid rgba(106, 99, 94, 0.25);
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.review-card__lang:hover { background: var(--verde-bosco); color: var(--crema); }
.review-card__source { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pietra); }

/* ---------- Bande / bandiere ---------- */
.banner {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--crema);
}
.banner__bg { position: absolute; inset: 0; z-index: 0; }
.banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.banner__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(93, 87, 81, 0.82) 0%, rgba(93, 87, 81, 0.45) 60%, rgba(93, 87, 81, 0.2) 100%);
}
.banner__content { position: relative; z-index: 2; max-width: 620px; padding: 80px 0; }
.banner .eyebrow { color: var(--legno); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.banner h2 { color: var(--crema); margin-bottom: 18px; }
.banner p { color: #f3f0ed; margin-bottom: 28px; }
.banner__stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 34px; }
.stat__num { font-family: var(--font-titolo); font-size: 2rem; font-weight: 700; color: #ffd0a2; }
.stat__label { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: #f3f0ed; }

/* ---------- Caratteristiche / bandiere località ---------- */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.place {
  border: 1px solid rgba(43, 43, 38, 0.1);
  background: var(--bianco);
  border-radius: var(--raggio);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.place:hover { transform: translateY(-6px); box-shadow: var(--ombra); }
.place::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--place-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  z-index: 0;
  transition: opacity 0.3s ease;
}
.place:hover::before { opacity: 0.5; }
.place__content { position: relative; z-index: 1; }
.place__icon { display: none; }
.place h3 { font-size: 1.25rem; }
.place p { font-size: 0.93rem; color: var(--testo-soft); }
.place .km {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--legno);
  text-transform: uppercase;
}

/* Full background variant for Monte Bianco */
.place--full-bg {
  background: linear-gradient(180deg, rgba(93, 87, 81, 0.12) 0%, rgba(93, 87, 81, 0.5) 100%), url("../img/Foto/MonteBianco.png") center / cover no-repeat;
  border: none;
  color: var(--crema);
}
.place--full-bg::before {
  display: none;
}
.place--full-bg .place__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.place--full-bg .place__icon { background: rgba(246, 241, 230, 0.2); backdrop-filter: blur(4px); }
.place--full-bg h3 { color: var(--crema); }
.place--full-bg p { color: rgba(246, 241, 230, 0.9); }
.place--full-bg .km { color: var(--legno); }

.place--lathuile-bg {
  background: linear-gradient(180deg, rgba(93, 87, 81, 0.12) 0%, rgba(93, 87, 81, 0.5) 100%), url("../img/Foto/Piste-LTH.png") center / cover no-repeat;
  border: none;
  color: var(--crema);
}
.place--lathuile-bg::before { display: none; }
.place--lathuile-bg .place__icon { background: rgba(246, 241, 230, 0.2); backdrop-filter: blur(4px); }
.place--lathuile-bg h3 { color: var(--crema); }
.place--lathuile-bg p { color: rgba(246, 241, 230, 0.9); }
.place--lathuile-bg .km { color: var(--legno); }

.place--courmayeur-bg {
  background: linear-gradient(180deg, rgba(93, 87, 81, 0.12) 0%, rgba(93, 87, 81, 0.5) 100%), url("../img/Foto/courmayeur.jpg") center / cover no-repeat;
  border: none;
  color: var(--crema);
}
.place--courmayeur-bg::before { display: none; }
.place--courmayeur-bg .place__icon { background: rgba(246, 241, 230, 0.2); backdrop-filter: blur(4px); }
.place--courmayeur-bg h3 { color: var(--crema); }
.place--courmayeur-bg p { color: rgba(246, 241, 230, 0.9); }
.place--courmayeur-bg .km { color: var(--legno); }

.place--piscine-terme-bg {
  background: linear-gradient(180deg, rgba(93, 87, 81, 0.12) 0%, rgba(93, 87, 81, 0.5) 100%), url("../img/Foto/PiscineEsterne.png") center / cover no-repeat;
  border: none;
  color: var(--crema);
}
.place--piscine-terme-bg::before { display: none; }
.place--piscine-terme-bg .place__icon { background: rgba(246, 241, 230, 0.2); backdrop-filter: blur(4px); }
.place--piscine-terme-bg h3 { color: var(--crema); }
.place--piscine-terme-bg p { color: rgba(246, 241, 230, 0.9); }

.place--acque-termali-bg {
  background: linear-gradient(180deg, rgba(93, 87, 81, 0.12) 0%, rgba(93, 87, 81, 0.5) 100%), url("../img/Foto/PiscineTermeDentro.png") center / cover no-repeat;
  border: none;
  color: var(--crema);
}
.place--acque-termali-bg::before { display: none; }
.place--acque-termali-bg .place__icon { background: rgba(246, 241, 230, 0.2); backdrop-filter: blur(4px); }
.place--acque-termali-bg h3 { color: var(--crema); }
.place--acque-termali-bg p { color: rgba(246, 241, 230, 0.9); }

.place--spa-terme-bg {
  background: linear-gradient(180deg, rgba(93, 87, 81, 0.12) 0%, rgba(93, 87, 81, 0.5) 100%), url("../img/Foto/SpaTerme.png") center / cover no-repeat;
  border: none;
  color: var(--crema);
}
.place--spa-terme-bg::before { display: none; }
.place--spa-terme-bg .place__icon { background: rgba(246, 241, 230, 0.2); backdrop-filter: blur(4px); }
.place--spa-terme-bg h3 { color: var(--crema); }
.place--spa-terme-bg p { color: rgba(246, 241, 230, 0.9); }

/* ---------- Attività ---------- */
.activities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.activity {
  background: var(--crema-soft);
  border: 1px solid rgba(43, 43, 38, 0.08);
  border-radius: var(--raggio);
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.activity:hover { transform: translateY(-4px); border-color: var(--verde-chiaro); }
.activity__icon { display: none; }
.activity h3 { font-size: 1.16rem; margin-bottom: 4px; }
.activity p { font-size: 0.9rem; color: var(--testo-soft); }

.activity--sci,
.activity--escursionismo,
.activity--mountain-bike,
.activity--rafting,
.activity--parapendio,
.activity--skyway,
.activity--arrampicata,
.activity--borghi {
  border: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.activity--sci h3,
.activity--escursionismo h3,
.activity--mountain-bike h3,
.activity--rafting h3,
.activity--parapendio h3,
.activity--skyway h3,
.activity--arrampicata h3,
.activity--borghi h3 { color: var(--crema); }
.activity--sci p,
.activity--escursionismo p,
.activity--mountain-bike p,
.activity--rafting p,
.activity--parapendio p,
.activity--skyway p,
.activity--arrampicata p,
.activity--borghi p { color: rgba(246, 241, 230, 0.92); }
.activity--sci .activity__icon,
.activity--escursionismo .activity__icon,
.activity--mountain-bike .activity__icon,
.activity--rafting .activity__icon,
.activity--parapendio .activity__icon,
.activity--skyway .activity__icon,
.activity--arrampicata .activity__icon,
.activity--borghi .activity__icon { background: rgba(93, 87, 81, 0.45); backdrop-filter: blur(4px); }
.activity--sci { background-image: linear-gradient(rgba(93, 87, 81, 0.25), rgba(93, 87, 81, 0.68)), url("../img/Foto/SciESnowboard.png"); }
.activity--escursionismo { background-image: linear-gradient(rgba(93, 87, 81, 0.25), rgba(93, 87, 81, 0.68)), url("../img/Foto/escursionismo.jpg"); }
.activity--mountain-bike {
  background-image: linear-gradient(rgba(93, 87, 81, 0.25), rgba(93, 87, 81, 0.68)), url("../img/Foto/MountainBike.jpg");
  background-position: center 30%;
}
.activity--rafting { background-image: linear-gradient(rgba(93, 87, 81, 0.25), rgba(93, 87, 81, 0.68)), url("../img/Foto/Rafting.jpg"); }
.activity--parapendio { background-image: linear-gradient(rgba(93, 87, 81, 0.25), rgba(93, 87, 81, 0.68)), url("../img/Foto/Parapendio.jpg"); }
.activity--skyway { background-image: linear-gradient(rgba(93, 87, 81, 0.25), rgba(93, 87, 81, 0.68)), url("../img/Foto/SkyWay.jpg"); }
.activity--arrampicata { background-image: linear-gradient(rgba(93, 87, 81, 0.25), rgba(93, 87, 81, 0.68)), url("../img/Foto/Arrampicata.jpg"); }
.activity--borghi { background-image: linear-gradient(rgba(93, 87, 81, 0.25), rgba(93, 87, 81, 0.68)), url("../img/Foto/CastelliEBorghi.jpg"); }

/* ---------- Stagioni ---------- */
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.season { text-align: center; padding: 26px 18px; border-radius: var(--raggio); background: var(--crema-soft); border: 1px solid rgba(43, 43, 38, 0.08); }
.season__icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; }
.season h3 { font-size: 1.05rem; margin-bottom: 6px; }
.season p { font-size: 0.88rem; color: var(--testo-soft); }

/* ---------- Dettagli appartamento ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; padding: 44px 0 72px; }
.detail-head { text-align: center; margin-bottom: 4px; }
.detail-head .eyebrow { margin-bottom: 12px; }
.detail-head h2 { margin: 0 0 20px; text-shadow: 0 3px 10px rgba(31, 51, 40, 0.3); }
.detail-head .note { margin-bottom: 8px; }
.detail:nth-child(even) .detail__media { order: 2; }
.detail__media { border-radius: var(--raggio); overflow: hidden; box-shadow: var(--ombra); }
.detail__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.detail__specs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 22px 0 30px; }
.detail__specs li {
  display: flex; gap: 10px; align-items: center;
  font-size: 0.92rem; color: var(--testo);
  background: var(--crema-soft);
  border: 1px solid rgba(43, 43, 38, 0.07);
  padding: 10px 14px;
  border-radius: 10px;
}
.detail__specs li b { color: var(--verde-bosco); font-weight: 700; }
.detail__desc { margin: 0 0 14px; color: var(--testo); }
.detail__desc--rating {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--crema-soft);
  border: 1px dashed var(--pietra-chiaro);
  color: var(--verde-bosco);
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 10px;
  margin: 0 0 24px;
}
.note {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--crema-soft);
  border: 1px dashed var(--pietra-chiaro);
  color: var(--testo-soft);
  font-size: 0.86rem;
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
}

/* ---------- Servizi appartamento ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.service {
  background: var(--crema-soft);
  border: 1px solid rgba(43, 43, 38, 0.08);
  border-radius: var(--raggio);
  padding: 26px;
}
.service h3 { font-size: 1.15rem; margin-bottom: 14px; color: var(--verde-bosco); }
.service ul { list-style: none; display: grid; gap: 8px; }
.service li { font-size: 0.92rem; color: var(--testo-soft); padding-left: 22px; position: relative; }
.service li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--verde-chiaro);
}

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; align-items: start; }
.contact-info li { list-style: none; display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--verde-bosco); color: var(--crema); display: grid; place-items: center; }
.contact-info h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-info p, .contact-info a { font-size: 0.94rem; color: var(--testo-soft); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .field--full { grid-column: 1 / -1; }
.form label { font-size: 0.85rem; font-weight: 700; color: var(--verde-scuro); display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(43, 43, 38, 0.18);
  border-radius: 10px;
  background: var(--bianco);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--testo);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--verde-bosco);
  box-shadow: 0 0 0 3px rgba(46, 74, 58, 0.15);
}
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; }
.form-status { grid-column: 1 / -1; font-size: 0.92rem; font-weight: 600; }
.form-status.ok { color: var(--verde-bosco); }
.form-status.err { color: #9a3b3b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--verde-scuro); color: #f3f0ed; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 44px; }
.site-footer h3 { color: var(--crema); font-size: 1.05rem; margin-bottom: 16px; }
.site-footer .brand-name { color: var(--crema); }
.site-footer .brand img {
  width: 70px;
  height: 70px;
  padding: 4px;
  border: 1px solid rgba(250, 144, 46, 0.45);
  border-radius: 10px;
  background: var(--crema);
}
.site-footer p { font-size: 0.92rem; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: #f3f0ed; font-size: 0.92rem; }
.footer-links a:hover { color: var(--crema); }
.footer-payoff {
  border-top: 1px solid rgba(246, 241, 230, 0.12);
  padding: 22px 0;
  text-align: center;
  font-family: var(--font-titolo);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--legno);
}
.footer-bottom { text-align: center; font-size: 0.8rem; color: #d5d0cb; padding: 0 0 28px; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Page hero (sottopagine) ---------- */
.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 190px 0 90px;
  color: var(--crema);
  text-align: center;
  overflow: hidden;
}
.page-hero--grande { min-height: 68vh; padding: 210px 0 110px; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(93, 87, 81, 0.62); }
.page-hero__content { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; padding: 0 20px; }
.page-hero h1 { color: var(--crema); margin-bottom: 16px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 4px 22px rgba(0, 0, 0, 0.55); }
.page-hero .lead { color: #efece0; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 12px rgba(0, 0, 0, 0.5); }
.crumbs { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--legno); margin-bottom: 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.crumbs a { color: var(--legno); }
.crumbs a:hover { color: var(--crema); }
.divider { width: 64px; height: 3px; background: var(--legno); border-radius: 2px; margin: 22px auto 0; }
.section-head--center .divider { margin-inline: auto; }

/* ---------- Terme / quote ---------- */
.quote {
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
  font-family: var(--font-titolo);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--verde-scuro);
  line-height: 1.4;
}
.quote cite { display: block; margin-top: 18px; font-family: var(--font-testo); font-style: normal; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--legno); }

/* ---------- Mappa ---------- */
.map-frame { border-radius: var(--raggio); overflow: hidden; box-shadow: var(--ombra); border: 0; width: 100%; height: clamp(300px, 52vh, 500px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .places, .activities, .seasons { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .intro, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .detail { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
  .detail:nth-child(even) .detail__media { order: 0; }
  .apartment-summary { grid-template-columns: 1fr; gap: 20px; }
  .apartment-summary .detail-head,
  .apartment-summary .detail__loc { text-align: center; }
  .apartment-summary .detail__loc .loc-list { justify-content: center; }
  .apartment-summary .apartment-carousel { grid-column: auto; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--crema);
    border-bottom: 1px solid rgba(43, 43, 38, 0.1);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(43, 43, 38, 0.07); }
  .nav-links a::after { display: none; }
  .nav-cta { display: inline-flex; margin-top: 14px; width: 100%; justify-content: center; }
  .cards, .places, .activities, .seasons { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero { padding: 160px 0 70px; }
  .banner__stats { gap: 24px; }
  .gallery { grid-template-columns: 1fr 1fr !important; }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
  .hero__brand { font-size: 0.76rem; letter-spacing: 0.18em; }
  .hero h1 { letter-spacing: 0.025em; }
  .hero__tagline { font-size: clamp(1.15rem, 4.6vw, 1.35rem); }
}

/* ---------- Immagine Terme ---------- */
.terme-media {
  border-radius: var(--raggio);
  overflow: hidden;
  box-shadow: var(--ombra);
  margin: 8px 0 44px;
}
.terme-media img {
  width: 100%;
  height: auto;
  display: block;
}
.terme-services-title {
  margin: 0 0 24px;
  text-align: center;
  font-family: var(--font-sezione);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--verde-scuro);
}
.terme-services-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: var(--legno);
}
.terme-services-link {
  margin: -8px 0 28px;
  text-align: center;
}
.terme-services-link a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(46, 74, 58, 0.35);
  text-underline-offset: 4px;
}

/* ---------- Carosello appartamenti ---------- */
.apartment-carousel { position: relative; margin-top: 32px; }
.apartment-carousel__viewport {
  position: relative;
  aspect-ratio: 16 / 8.5;
  border-radius: var(--raggio);
  overflow: hidden;
  box-shadow: var(--ombra);
  background: var(--crema-soft);
}
.apartment-carousel__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.apartment-carousel__item.is-active {
  opacity: 1;
  pointer-events: auto;
}
.apartment-carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.apartment-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(31, 51, 40, 0.55);
  color: var(--crema);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.apartment-carousel__btn:hover { background: var(--verde-bosco); }
.apartment-carousel__btn--prev { left: 14px; }
.apartment-carousel__btn--next { right: 14px; }
.apartment-carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.apartment-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.apartment-carousel__dot:hover { background: var(--crema); }
.apartment-carousel__dot.is-active {
  background: var(--crema);
  transform: scale(1.3);
}

@media (max-width: 640px) {
  .apartment-carousel__viewport { aspect-ratio: 4 / 3; }
  .apartment-carousel__btn { width: 38px; height: 38px; font-size: 1.1rem; }
}

/* ---------- Dettaglio con foto panoramica ---------- */
.detail--full { gap: 32px 52px; }
.detail--full .detail__media { grid-column: 1 / -1; }
.detail--full .detail__media img {
  aspect-ratio: auto;
  width: 100%;
  max-height: 62vh;
  object-fit: cover;
}
.detail--full .detail__body {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 900px);
  text-align: center;
}
.detail--full .detail__body { display: flex; flex-direction: column; }
.detail--full .detail__specs {
  order: -1;
  margin: 0 0 30px;
}
.detail__body .lead {
  font-family: var(--font-sottotitolo);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: #000;
  text-align: center;
  border: 1px solid rgba(46, 74, 58, 0.25);
  border-radius: 14px;
  background: var(--crema-soft);
  padding: 22px 26px;
  margin-bottom: 26px;
}

.detail__loc {
  margin: 0 0 14px;
  text-align: center;
}
.detail__loc h3 { display: none; }
.detail__loc .loc-address { margin-bottom: 6px; color: var(--verde-scuro); font-weight: 500; font-size: 0.95rem; }
.detail__loc .loc-address a { color: var(--verde-scuro); text-decoration: underline; text-decoration-color: rgba(46, 74, 58, 0.3); }
.detail__loc .loc-address a:hover { color: var(--verde-bosco); }
.detail__loc .loc-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.detail__loc .loc-list li {
  font-size: 0.85rem;
  color: var(--verde-scuro);
}
.detail__loc .loc-list li + li::before { content: "·"; margin-right: 6px; }
.detail__loc .loc-list a { color: var(--verde-bosco); text-decoration: underline; text-decoration-color: rgba(46, 74, 58, 0.3); }
.detail__loc .loc-list a:hover { color: var(--verde-scuro); }

.apartment-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px 52px;
  align-items: center;
  margin-bottom: 44px;
}
.apartment-summary .detail-head {
  align-self: end;
  margin: 0;
  text-align: center;
}
.apartment-summary .detail-head .note {
  display: flex;
  width: fit-content;
  margin-inline: auto;
  justify-content: center;
  text-align: center;
}
.apartment-summary .detail-head h2 { text-align: center; }
.apartment-summary .detail__loc {
  grid-column: 1;
  margin: 0;
  text-align: center;
}
.apartment-summary .detail__loc .loc-list { justify-content: center; }
.apartment-ids {
  margin-top: 16px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--testo-soft);
}
.apartment-ids strong { color: var(--verde-scuro); }
.apartment-summary .apartment-carousel {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}
.apartments-page { display: flex; flex-direction: column; }
.apartments-page #nocciola { order: 1; }
.apartments-page #noce { order: 2; }
.apartments-page #mirtillo { order: 3; }
.apartments-page__cta { order: 4; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 25, 20, 0.94);
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__btn {
  position: absolute;
  background: rgba(246, 241, 230, 0.16);
  color: var(--crema);
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: background 0.2s ease;
}
.lightbox__btn:hover { background: rgba(246, 241, 230, 0.35); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__caption {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--crema);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-align: center;
  max-width: 80%;
}
