/* =========================================================
   La Cabanestra — foglio di stile
   Modifica i colori e i font da qui (variabili :root)
   ========================================================= */
/* Caratteri ospitati in locale (niente Google Fonts: piu' veloce e conforme GDPR) */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/playfair-display-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }

:root {
  --c-bg: #faf7f2;
  --c-surface: #ffffff;
  --c-dark: #1f1b16;
  --c-text: #3a332b;
  --c-muted: #7a6f63;
  --c-accent: #a8743f;
  --c-accent-dark: #8a5c2e;
  --c-line: #e7dfd3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 27, 22, .08);
  --font-title: "Playfair Display", Georgia, serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-title); color: var(--c-dark); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h6 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--c-surface); }
.section--dark { background: var(--c-dark); color: #e9e1d6; }
.section--dark h2, .section--dark h3, .section--dark h6 { color: #fff; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-accent); font-weight: 700; margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--c-muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 30px; border-radius: 999px;
  background: var(--c-accent); color: #fff; text-decoration: none;
  font-weight: 700; letter-spacing: .03em; border: 2px solid var(--c-accent);
  transition: background .3s, transform .3s, box-shadow .3s;
  cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--ghost:hover { background: #fff; color: var(--c-dark); border-color: #fff; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s;
}
.header .container { display: flex; align-items: center; justify-content: space-between; }
.header.is-scrolled, .header--solid { background: rgba(250, 247, 242, .96); backdrop-filter: blur(8px); box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-title); font-size: 1.4rem; font-weight: 600; color: #fff; transition: color .35s; }
.logo img { height: 48px; width: auto; border-radius: 8px; }
.header.is-scrolled .logo, .header--solid .logo { color: var(--c-dark); }
.nav { display: flex; gap: 34px; }
.nav a { text-decoration: none; color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .05em; position: relative; padding: 6px 0; transition: color .35s; }
.header.is-scrolled .nav a, .header--solid .nav a { color: var(--c-dark); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--c-accent); transform: scaleX(0); transform-origin: right; transition: transform .35s; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: .3s; }
.header.is-scrolled .burger span, .header--solid .burger span { background: var(--c-dark); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.nav-open .burger span { background: var(--c-dark); }
.nav-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--c-bg); flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav a { color: var(--c-dark) !important; font-size: 1.5rem; font-family: var(--font-title); }
  .nav-open .nav { opacity: 1; pointer-events: auto; }
  .nav-open .logo { color: var(--c-dark); }
}

/* ---------- Hero ---------- */
.hero { isolation: isolate; contain: paint;
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.12); animation: heroZoom 14s ease-out forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.35) 50%, rgba(0,0,0,.6)); }
.hero__content { position: relative; z-index: 1; padding: calc(var(--header-h) + 20px) 20px 60px; max-width: 900px; }
.hero h1 { color: #fff; }
.hero p { font-size: clamp(1.1rem, 2.2vw, 1.35rem); opacity: .95; }
.hero--small { min-height: 62vh; }
.stars { display: inline-flex; gap: 4px; align-items: center; margin: 10px 0 30px; color: #f3c25b; font-size: 1.3rem; }
.stars small { color: #fff; font-size: .95rem; margin-left: 8px; letter-spacing: .1em; text-transform: uppercase; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; z-index: 1; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.8); border-radius: 20px; transform: translateX(-50%); }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Layout a due colonne ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.media:hover img { transform: scale(1.05); }
.media-stack { display: grid; gap: 18px; }
.media-stack--two { grid-template-columns: 1.1fr .9fr; align-items: end; }
.media-stack--two .media:last-child { margin-bottom: -40px; }
@media (max-width: 560px) { .media-stack--two { grid-template-columns: 1fr; } .media-stack--two .media:last-child { margin-bottom: 0; } }

/* Banda immagine a tutta larghezza (parallax) */
.band { height: clamp(260px, 45vw, 520px); background-size: cover; background-position: center; background-attachment: fixed; }
@media (hover: none), (max-width: 860px) { .band { background-attachment: scroll; } }

/* ---------- Card servizi ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; margin-top: 46px; }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 34px 30px; transition: transform .4s, box-shadow .4s; }
.section--alt .card { background: var(--c-bg); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(168,116,63,.12); color: var(--c-accent); margin-bottom: 18px; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.4rem; }
.card p { margin: 0; color: var(--c-muted); }

/* ---------- Galleria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery, .gallery--2 { grid-template-columns: 1fr; } }
.gallery__item { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--c-line); border: 0; padding: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; }
.gallery__item::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: #fff; background: rgba(31,27,22,.35); opacity: 0; transition: opacity .4s; font-weight: 300; }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after { opacity: 1; }
.gallery__caption { margin-top: 46px; font-weight: 700; font-size: 1.1rem; color: var(--c-dark); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15,12,9,.94); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .35s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: scale(.94); transition: transform .35s; }
.lightbox.is-open img { transform: scale(1); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; transition: background .3s; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #ccc; font-size: .9rem; letter-spacing: .1em; }

/* ---------- Video player ---------- */
.player { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); aspect-ratio: 16 / 9; max-width: 980px; margin: 40px auto 0; }
.player video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.player__big {
  position: absolute; inset: 0; margin: auto; width: 86px; height: 86px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--c-dark); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.35); transition: transform .3s, opacity .3s;
}
.player__big svg { width: 30px; height: 30px; margin-left: 5px; }
.player__big:hover { transform: scale(1.08); }
.player.is-playing .player__big { opacity: 0; pointer-events: none; }
.player__bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; opacity: 0; transition: opacity .3s;
}
.player:hover .player__bar, .player.is-paused.is-started .player__bar, .player:focus-within .player__bar { opacity: 1; }
.player__bar button { background: none; border: 0; color: #fff; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; }
.player__bar svg { width: 22px; height: 22px; }
.player__progress { flex: 1; height: 5px; background: rgba(255,255,255,.3); border-radius: 3px; cursor: pointer; position: relative; }
.player__progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--c-accent); border-radius: 3px; }
.player__time { font-size: .8rem; font-variant-numeric: tabular-nums; min-width: 86px; text-align: right; }
.player__volume { width: 70px; accent-color: var(--c-accent); }
@media (max-width: 560px) { .player__volume { display: none; } .player__big { width: 64px; height: 64px; } }
.player__empty { position: absolute; inset: 0; display: none; place-items: center; text-align: center; color: #eee; padding: 20px; background: center / cover no-repeat; }
.player__empty div { background: rgba(0,0,0,.6); padding: 18px 24px; border-radius: 10px; font-size: .95rem; }
.player.is-missing .player__empty { display: grid; }
.player.is-missing .player__big, .player.is-missing .player__bar { display: none; }

/* ---------- Camere ---------- */
.room { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 40px; }
@media (max-width: 760px) { .room { grid-template-columns: 1fr; } }
.room__card { background: var(--c-surface); border-radius: var(--radius); padding: 36px; border: 1px solid var(--c-line); }
.room__card h3 { font-size: 1.6rem; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tags span { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--font-title); font-size: 1.2rem; color: var(--c-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--c-accent); transition: transform .3s; font-family: var(--font-body); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq__body { overflow: hidden; color: var(--c-muted); padding-bottom: 22px; animation: faqIn .4s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Info list ---------- */
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 36px; }
.info__item { padding: 26px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); }
.info__item h6 { color: var(--c-accent); font-family: var(--font-body); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.info__item p { margin: 0; font-size: 1.05rem; color: var(--c-dark); }
.info__item a { text-decoration: none; }
.map { margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 7; background: var(--c-line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 560px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(90px, 12vw, 160px) 0; text-align: center; color: #fff; background-size: cover; background-position: center; background-attachment: fixed; }
@media (hover: none), (max-width: 860px) { .cta { background-attachment: scroll; } }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(31,27,22,.6); }
.cta .container { position: relative; }
.cta h2 { color: #fff; }
.cta p { opacity: .9; max-width: 560px; margin: 0 auto 30px; }

/* ---------- Contatti / footer ---------- */
.contacts { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .contacts { grid-template-columns: 1fr; gap: 26px; } }
.contacts h5 { font-family: var(--font-title); color: #fff; font-size: 1.5rem; margin-bottom: .6em; }
.contacts p, .contacts a { color: #d9cfc2; text-decoration: none; }
.contacts a:hover { color: #fff; }
.contacts .phone { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.contacts .phone b { color: #fff; font-weight: 700; margin-right: 6px; }
.social { display: flex; gap: 12px; margin-top: 14px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s; }
.social a:hover { background: var(--c-accent); border-color: var(--c-accent); transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; fill: #fff; }
.footer { background: #15120e; color: #a99d8f; padding: 26px 0; font-size: .9rem; }
.footer .container { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: #d9cfc2; text-decoration: none; }
.footer a:hover { color: #fff; }

/* Testo legale */
.legal { max-width: 820px; margin: 0 auto; }
.legal h6 { margin-top: 1.6em; }

/* Pulsante torna su */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--c-accent); color: #fff; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); transition: .35s; display: grid; place-items: center; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Animazioni allo scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal--left { transform: translateX(-50px); }
.reveal--right { transform: translateX(50px); }
@media (max-width: 860px) { .reveal--left, .reveal--right { transform: translateY(40px); } }
.reveal--zoom { transform: scale(.92); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.2s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Apertura: arcobaleno che si apre + foto che scorrono
   ========================================================= */
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12); transition: opacity 1.6s ease;
}
.slide.is-active { opacity: 1; animation: kenburns 7s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(0, 0); } to { transform: scale(1.02) translate(-1.5%, -1%); } }
.hero--intro::after { background: radial-gradient(ellipse at center, rgba(0,0,0,.35), rgba(0,0,0,.65)); }

.rainbow { width: min(520px, 86vw); height: auto; display: block; margin: 0 auto -18px; overflow: visible; filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); }
.rainbow path {
  fill: none; stroke-width: 12; stroke-linecap: round; opacity: .92;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: rainbowOpen 1.6s cubic-bezier(.6,.05,.3,1) forwards;
}
.rainbow path:nth-child(1) { animation-delay: .2s; }
.rainbow path:nth-child(2) { animation-delay: .35s; }
.rainbow path:nth-child(3) { animation-delay: .5s; }
.rainbow path:nth-child(4) { animation-delay: .65s; }
.rainbow path:nth-child(5) { animation-delay: .8s; }
.rainbow path:nth-child(6) { animation-delay: .95s; }
.rainbow path:nth-child(7) { animation-delay: 1.1s; }
@keyframes rainbowOpen { to { stroke-dashoffset: 0; } }
.rainbow { animation: rainbowGlow 4s ease-in-out 3s infinite; }
@keyframes rainbowGlow { 50% { filter: drop-shadow(0 4px 28px rgba(255,255,255,.35)); } }

.intro-title { color: #fff; margin-bottom: .35em; }
.intro-title span { display: inline-block; opacity: 0; transform: translateY(30px) scale(.96); animation: introUp 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
.intro-title span:nth-child(1) { animation-delay: 1.7s; }
.intro-title span:nth-child(2) { animation-delay: 2s; }
.intro-fade { opacity: 0; animation: introUp 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 2.5s); }
@keyframes introUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.slide-dots { position: absolute; z-index: 2; bottom: 84px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.slide-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: background .3s, transform .3s; }
.slide-dots button.is-active { background: #fff; transform: scale(1.3); }
@media (max-width: 560px) { .rainbow path { stroke-width: 14; } .slide-dots { bottom: 78px; } }
@media (prefers-reduced-motion: reduce) {
  .rainbow path { stroke-dashoffset: 0; }
  .intro-title span, .intro-fade { opacity: 1; transform: none; }
}

/* =========================================================
   Pulsanti Booking / Airbnb
   ========================================================= */
.book-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.book-btns--center { justify-content: center; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--booking { background: #003580; border-color: #003580; }
.btn--booking:hover { background: #00245a; border-color: #00245a; }
.btn--airbnb { background: #ff385c; border-color: #ff385c; }
.btn--airbnb:hover { background: #e0204a; border-color: #e0204a; }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .7s ease; }
.btn:hover::after { left: 140%; }
@media (max-width: 480px) { .book-btns .btn { flex: 1 1 100%; justify-content: center; } }

/* Barra di avanzamento lettura */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #e84a4a, #f28c38, #f6d04d, #5dbb63, #3ea2e0, #5c6ad6, #9b5fd0); }

/* Striscia scorrevole sotto l'apertura */
.strip { background: var(--c-dark); color: #f3e9dc; overflow: hidden; padding: 16px 0; white-space: nowrap; }
.strip__track { display: inline-flex; animation: strip 38s linear infinite; }
.strip span { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; padding: 0 26px; position: relative; }
.strip span::after { content: "\2726"; position: absolute; right: -6px; color: var(--c-accent); }
@keyframes strip { to { transform: translateX(-50%); } }

/* Titoli che entrano parola per parola */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * 70ms + var(--d, 0s)); }
.split-words.is-visible .w > span, .is-visible .split-words .w > span { transform: none; }
.reveal.split-words { opacity: 1; transform: none; }

/* Immagini che si svelano come una tenda */
.media.reveal { opacity: 1; transform: none; box-shadow: none; transition: box-shadow 1s .6s; }
.media.reveal.is-visible { box-shadow: var(--shadow); }
.media.reveal img { clip-path: inset(0 0 100% 0); transform: scale(1.25); transition: clip-path 1.2s cubic-bezier(.7,0,.2,1), transform 1.6s cubic-bezier(.2,.7,.2,1); }
.media.reveal.is-visible img { clip-path: inset(0 0 0 0); transform: scale(1.1); }
.media.reveal.is-visible:hover img { transform: scale(1.15); }
.media-stack.reveal { opacity: 1; transform: none; }
.media-stack .media { clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1.2s cubic-bezier(.7,0,.2,1); }
.media-stack.is-visible .media { clip-path: inset(0 0 0 0 round var(--radius)); }
.media-stack.is-visible .media:last-child { transition-delay: .25s; }

/* Parallax leggero (gestito da JS, solo transform) */
[data-parallax] { will-change: transform; }

/* Card con inclinazione 3D al passaggio del mouse (solo desktop) */
@media (hover: hover) { .card, .review-card { transform-style: preserve-3d; } }

/* =========================================================
   Recensioni
   ========================================================= */
.reviews { background: linear-gradient(180deg, var(--c-bg), #f3ece2); }
.reviews__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 46px; }
@media (max-width: 860px) { .reviews__grid { grid-template-columns: 1fr; } }
.review-card { background: var(--c-surface); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 14px; transition: transform .4s, box-shadow .4s; }
.review-card:hover { box-shadow: 0 20px 50px rgba(31,27,22,.14); }
.review-card__head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--c-dark); flex-wrap: wrap; }
.review-card__head svg { width: 34px; height: 34px; border-radius: 9px; padding: 5px; }
.review-card--airbnb .review-card__head svg { background: #ff385c; }
.review-card--booking .review-card__head svg { background: #003580; padding: 0; }
.badge { margin-left: auto; background: #fff4e5; color: #8a5c2e; border-radius: 999px; padding: 5px 12px; font-size: .78rem; font-weight: 700; }
.score { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-title); }
.score strong { font-size: clamp(3rem, 8vw, 4.2rem); color: var(--c-dark); line-height: 1; font-variant-numeric: tabular-nums; }
.score span { color: var(--c-muted); font-size: 1.2rem; }
.score.is-empty strong { color: var(--c-line); }
.stars-row { color: #f3b33d; font-size: 1.4rem; letter-spacing: 3px; }
.muted { color: var(--c-muted); margin: 0; }
.bars { display: grid; gap: 10px; margin: 6px 0 10px; }
.bar { display: grid; grid-template-columns: 120px 1fr 34px; align-items: center; gap: 12px; font-size: .92rem; }
.bar i { height: 6px; background: var(--c-line); border-radius: 3px; overflow: hidden; }
.bar b { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #ff385c, #ff7a59); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.is-visible .bar b { transform: scaleX(1); }
.bar:nth-child(2) b { transition-delay: .1s; } .bar:nth-child(3) b { transition-delay: .2s; } .bar:nth-child(4) b { transition-delay: .3s; } .bar:nth-child(5) b { transition-delay: .4s; } .bar:nth-child(6) b { transition-delay: .5s; }
.bar em { font-style: normal; font-weight: 700; text-align: right; }
.ticks { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #e6eefb; color: #003580; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.review-card .btn { margin-top: auto; justify-content: center; }
.reviews__quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 30px; }
.reviews__quotes:empty { display: none; }
.quote { margin: 0; background: var(--c-surface); border-radius: 16px; padding: 26px; border: 1px solid var(--c-line); }
.quote p { font-family: var(--font-title); font-size: 1.1rem; color: var(--c-dark); }
.quote cite { color: var(--c-muted); font-style: normal; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  .split-words .w > span, .bar b { transform: none !important; }
  .media.reveal img, .media-stack .media { clip-path: none !important; }
  .strip__track { animation: none; }
}

/* Card servizi con foto */
.cards--photo .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__img img { transform: scale(1.07); }
.card__body { padding: 26px 26px 30px; position: relative; }
.cards--photo .card__icon { position: absolute; top: -27px; left: 26px; background: var(--c-surface); box-shadow: var(--shadow); }
.cards--photo .card__body h3 { margin-top: 18px; }

/* =========================================================
   Correzioni dopo il controllo + banner cookie
   ========================================================= */
.slide { display: block; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
picture { display: contents; }
.slide, .hero picture.slide { display: block; }
.contacts__title { font-family: var(--font-title); color: #fff; font-size: 1.5rem; margin-bottom: .6em; }
.info__title { color: var(--c-accent); font-family: var(--font-body); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #d9cfc2; cursor: pointer; }
.link-btn:hover { color: #fff; }
.btn--ghost-dark { background: transparent; color: var(--c-dark); border-color: var(--c-line); }
.btn--ghost-dark:hover { background: var(--c-bg); color: var(--c-dark); border-color: var(--c-dark); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.legal code { background: var(--c-line); padding: 1px 6px; border-radius: 4px; font-size: .9em; }

.map { position: relative; }
.map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 20px;
  background: linear-gradient(135deg, #efe6d8, #e3d6c3); color: var(--c-text); }
.map__consent p { margin: 0 0 6px; max-width: 420px; }
.map__consent .btn { margin-top: 8px; }
.map__link { margin-top: 10px; font-weight: 700; color: var(--c-accent-dark); }
.map.is-loaded .map__consent { display: none; }

.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 400; display: flex; justify-content: center; pointer-events: none; }
.cookie[hidden] { display: none; }
.cookie__box { pointer-events: auto; max-width: 560px; width: 100%; background: var(--c-surface); color: var(--c-text); border-radius: 18px; padding: 22px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); border: 1px solid var(--c-line); animation: cookieIn .5s cubic-bezier(.2,.7,.2,1); font-size: .95rem; }
.cookie__title { font-family: var(--font-title); font-size: 1.25rem; color: var(--c-dark); margin-bottom: .4em; }
.cookie__box a { color: var(--c-accent-dark); font-weight: 700; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 6px; }
.cookie__actions .btn { padding: 11px 22px; font-size: .95rem; }
@media (max-width: 480px) { .cookie__actions .btn { flex: 1 1 100%; justify-content: center; } }
@keyframes cookieIn { from { opacity: 0; transform: translateY(30px); } }

/* Riga sopra il titolo, blocco testo SEO, credito */
.intro-kicker { color: #fff; text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 700; margin: 0 0 .6em; opacity: .9; }
.seo-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 40px; }
@media (max-width: 860px) { .seo-cols { grid-template-columns: 1fr; gap: 22px; } }
.seo-cols h3 { font-size: 1.3rem; }
.seo-cols p { color: var(--c-muted); margin: 0; }
.seo-cols a { color: var(--c-accent-dark); font-weight: 700; }
.credit { background: #15120e; color: #8d8174; text-align: center; font-size: .82rem; letter-spacing: .08em; padding: 0 16px 22px; }
.credit strong { color: #d9cfc2; font-weight: 700; }
