/* ==========================================================================
   La Sabbiona · demo homepage (restyling 2026)
   ========================================================================== */

:root {
  --c1: #5d4a3e;            /* testo corrente, bordi bottoni */
  --c-ink: #2c2420;         /* titoli */
  --c-accent: #6b3427;      /* bruno-rosso della torre nel logo */
  --c-accent-2: #8a4a37;
  --c-sand: #e9e0d1;        /* fondo 1 */
  --c-sand2: #f3eee6;       /* fondo 3 */
  --c-paper: #fbf9f5;       /* fondo pagina */
  --c-olive: #5f6640;
  --c-gold: #c9ad78;
  --c-dark: #2b2421;        /* footer, sezione momenti */
  --c-line: rgba(93, 74, 62, .4);
  --font1: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font2: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 120px;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font2);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c1);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--c-accent); color: #fff; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--c-ink); }
h1 {
  font-family: var(--font1);
  font-weight: 300;
  font-size: clamp(46px, 4.7vw, 76px);
  line-height: 1.02;
  letter-spacing: .005em;
  margin-bottom: .3em;
}
h2 {
  font-family: var(--font1);
  font-weight: 400;
  font-size: clamp(34px, 3.15vw, 52px);
  line-height: 1.08;
  letter-spacing: .004em;
  margin-bottom: .55em;
}
h3 {
  font-family: var(--font1);
  font-weight: 400;
  font-size: clamp(27px, 2.2vw, 36px);
  line-height: 1.15;
}
h4 {
  font-family: var(--font2);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
p { margin: 0 0 1.1em; }
strong { font-weight: 500; color: var(--c-ink); }

.h-sub {
  font-family: var(--font2);
  font-weight: 400;
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 1.6em;
}
.eyebrow {
  font-family: var(--font2);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.4em;
}
.titolo-xl {
  font-family: var(--font1);
  font-weight: 300;
  font-size: clamp(58px, 7.6vw, 124px);
  line-height: .95;
  letter-spacing: -.005em;
  margin: 0;
}
.titolo-l {
  font-family: var(--font1);
  font-weight: 300;
  font-size: clamp(42px, 4.4vw, 68px);
  line-height: 1.02;
}

/* ---------- layout ---------- */
.wrapper { position: relative; margin: 0 5%; }
.wrapper2 { position: relative; margin: 0 10%; }
.sec-mt5 { margin-top: 5%; }
.sec-mt7 { margin-top: 7%; }
.sec-mt10 { margin-top: 10%; }
.sec-mb5 { margin-bottom: 5%; }
.sec-mb7 { margin-bottom: 7%; }
.sec-mb10 { margin-bottom: 10%; }
.sec-pt5 { padding-top: 5%; }
.sec-pt7 { padding-top: 7%; }
.sec-pt10 { padding-top: 10%; }
.sec-pb5 { padding-bottom: 5%; }
.sec-pb7 { padding-bottom: 7%; }
.sec-pb10 { padding-bottom: 10%; }
.bg1 { background: var(--c-sand); }
.bg3 { background: var(--c-sand2); }
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.narrow { max-width: 920px; margin: 0 auto; }
.testo p { max-width: 62ch; }
.text-center.testo p, .narrow p { max-width: 74ch; }
.btns { display: flex; flex-wrap: wrap; gap: 0 10px; margin-top: 1.4em; }
.text-center .btns { justify-content: center; }

/* ---------- bottoni (riempimento circolare + testo che risale) ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  color: var(--c1);
  background: transparent;
  font-family: var(--font2);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  padding: 15px 34px;
  margin: 0 0 10px;
  box-shadow: inset 0 0 0 1px var(--c1);
  cursor: pointer;
  transition: box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.testo > .btn { margin-top: .6em; }
.btn span {
  display: block;
  position: relative;
  z-index: 2;
  transition: color .3s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: -10%;
  top: -110%;
  width: 120%;
  height: 0;
  padding-bottom: 120%;
  border-radius: 50%;
  background: var(--c-accent);
  transform: translate3d(0, 68%, 0) scale3d(0, 0, 0);
  pointer-events: none;
}
.btn::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: var(--c-accent);
  transform: translate3d(0, -100%, 0);
  transition: transform .4s cubic-bezier(.1, 0, .3, 1);
  pointer-events: none;
}
.btn:hover { box-shadow: inset 0 0 0 1px var(--c-accent); }
.btn:hover span { animation: BtnMoveUp .3s forwards, BtnMoveDown .3s forwards .3s; color: #fff; }
.btn:hover::before { transform: translate3d(0, 0, 0) scale3d(1, 1, 1); transition: transform .4s cubic-bezier(.1, 0, .3, 1); }
.btn:hover::after { transform: translate3d(0, 0, 0); transition-duration: .05s; transition-delay: .4s; transition-timing-function: linear; }
.btn--light { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85); }
.btn--light::before, .btn--light::after { background: #fff; }
.btn--light:hover { box-shadow: inset 0 0 0 1px #fff; }
.btn--light:hover span { color: var(--c-ink); }
.btn-mini { font-size: 11px; letter-spacing: .14em; padding: 9px 18px; }
@keyframes BtnMoveUp { to { transform: translate3d(0, -105%, 0) scale3d(1, 2, 1); opacity: 0; } }
@keyframes BtnMoveDown {
  from { transform: translate3d(0, 100%, 0) scale3d(1, 2, 1); opacity: 0; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}

/* ---------- cursore personalizzato ---------- */
.cursor, .cursor2 { position: fixed; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor { width: 40px; height: 40px; z-index: 3000; }
.cursor2 { width: 5px; height: 5px; z-index: 3001; }
.cursor::after, .cursor2::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all .75s cubic-bezier(.4, 0, 0, 1);
}
.cursor::after { border: 1.5px solid var(--c-accent); }
.cursor2::after { background: var(--c-accent); }
.cursor.is-light::after { border-color: rgba(255, 255, 255, .95); }
.cursor2.is-light::after { background: #fff; }
.cursor.grow::after { transform: translate(-50%, -50%) scale(2); border-color: transparent; background: rgba(107, 52, 39, .18); }
.cursor.grow.is-light::after { background: rgba(255, 255, 255, .25); }
.cursor2.grow::after { transform: translate(-50%, -50%) scale(1.4); }
html.cursor-on .cursor, html.cursor-on .cursor2 { opacity: 1; }
html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor .leaflet-container { cursor: none; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor2 { display: none !important; } }

/* ---------- header ---------- */
.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 999;
  pointer-events: none;
}
.main-navbar-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(var(--nav-h) * 1.55);
  z-index: 998;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(40, 30, 25, .72) 0%, rgba(40, 30, 25, .46) 48%, rgba(40, 30, 25, 0) 100%);
  mix-blend-mode: multiply;
}
.hamburger {
  position: absolute;
  top: 25px;
  left: 10px;
  width: 100px;
  height: 60px;
  padding: 0;
  border: 0;
  background: none;
  pointer-events: auto;
  cursor: pointer;
}
.hamburger svg { display: block; width: 100px; height: 60px; overflow: visible; }
/* scritta MENÙ a destra delle linee: nel disegno le linee finiscono a 65 unità su 100, il margine negativo la avvicina */
.hamburger { display: flex; align-items: center; width: auto; }
.hamburger-label { margin-left: -25px; color: #fff; font-family: var(--font2); font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.hamburger line { stroke: #fff; stroke-width: 1.3; }
.logo-div {
  position: absolute;
  left: 50%;
  top: 2.2vh;
  transform: translateX(-50%);
  transform-origin: 50% 0;
  pointer-events: auto;
  text-decoration: none;
  color: #fff;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .18));
}
.logo-emblem { display: block; width: 58px; height: auto; aspect-ratio: 1660 / 1540; overflow: visible; }
.logo-emblem .u-s, .logo-emblem .u-t { fill: currentColor; }
.logo-word {
  font-family: var(--font1);
  font-weight: 500;
  font-size: 25px;
  line-height: 1;
  letter-spacing: .24em;
  padding-left: .24em;
  text-transform: uppercase;
  margin-top: 8px;
  white-space: nowrap;
}
.logo-sub {
  font-family: var(--font2);
  font-weight: 400;
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: .36em;
  padding-left: .36em;
  text-transform: uppercase;
  margin-top: 8px;
  white-space: nowrap;
}
.rif.right {
  position: absolute;
  top: 25px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}
.language { position: relative; }
.language-current {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.language-current svg { width: 14px; height: 14px; }
.language-options {
  position: absolute;
  top: 100%;
  left: 50%;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: rgba(43, 36, 33, .88);
  transform: translate(-50%, -6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, transform .3s, visibility 0s .3s;
}
.language:hover .language-options, .language.is-open .language-options {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .3s, transform .3s;
}
.language-options a {
  display: block;
  padding: 7px 18px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.language-options a:hover { color: var(--c-gold); }
.booknow .btn { margin: 0; padding: 16px 38px; }

/* ---------- menu a tutto schermo ---------- */
.menuOffCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 997;
  overflow: hidden;
  background: var(--c-dark);
  visibility: hidden;
  transition: height .6s cubic-bezier(.65, .05, .36, 1), visibility 0s linear .6s;
}
.menuOffCanvas.is-open {
  height: 100vh;
  height: 100dvh;
  visibility: visible;
  transition: height .6s cubic-bezier(.65, .05, .36, 1), visibility 0s;
}
.divBg { position: absolute; inset: 0; }
.divBg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity .6s var(--ease-out), transform .9s var(--ease-out);
}
.divBg img.active { opacity: 1; transform: scale(1); z-index: 1; }
.divBg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(36, 28, 24, .58);
}
.menuOffCanvas-cont {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 85%;
  max-height: calc(100% - 170px);
  overflow-y: auto;
  scrollbar-width: none;
  transform: translate(-50%, calc(-50% + 44px));
}
.menuOffCanvas-cont::-webkit-scrollbar { display: none; }
.menu { columns: 2; column-gap: 4vw; margin: 0; padding: 0; list-style: none; }
.menu li { text-align: center; padding: 1.1vh 0; overflow: hidden; break-inside: avoid; }
.menu a {
  position: relative;
  display: inline-block;
  color: transparent;
  font-family: var(--font1);
  font-weight: 300;
  font-size: clamp(26px, 2.5vw, 42px);
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  perspective: 800px;
  transform-style: preserve-3d;
}
.menu a span { display: none; }
.menu a::before, .menu a::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  color: #fff;
  transition: 1.2s cubic-bezier(.47, 1.64, .41, .8);
}
.menu a::before { opacity: 1; transform: translateZ(10px); }
.menu a::after { opacity: 0; transform: rotateX(90deg) translateZ(30px); color: var(--c-gold); }
.menu li:hover a::before, .menu a:focus-visible::before { opacity: 0; transform: translateY(24px) rotateX(-90deg); }
.menu li:hover a::after, .menu a:focus-visible::after { opacity: 1; transform: translateZ(10px); }
.menu li.active a::before { color: var(--c-gold); }
.menu-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
  margin-top: 5vh;
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  letter-spacing: .04em;
}
.menu-foot a, .menu-foot span { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.menu-foot a:hover { color: #fff; text-decoration: underline; }
.menu-foot svg { width: 18px; height: 18px; flex: none; }

/* ---------- barra fissa mobile ---------- */
.fixed_mobile { display: none; }

/* ---------- hero ---------- */
.top-slide {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--c-dark);
}
.big-carousel { position: relative; height: 100%; }
.bc-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}
.bc-slide.is-active { z-index: 2; opacity: 1; visibility: visible; transition: opacity 1.1s ease, visibility 0s; }
.bc-slide .img-container { position: absolute; left: 0; right: 0; top: 0; height: 105%; overflow: hidden; }
.bc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 1.6s cubic-bezier(.4, 0, .2, 1);
}
.bc-slide.is-active img { transform: scale(1); }
.bc-slide .img-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(28, 21, 18, .58) 0%, rgba(28, 21, 18, 0) 42%),
    rgba(93, 74, 62, .1);
}
.testo-container { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
/* video di sfondo: sta sotto le foto, che svaniscono quando il video scorre (la velatura e' la stessa) */
.hero-video { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 105%; overflow: hidden; visibility: hidden; }
.hero-video video, .bg-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(28, 21, 18, .58) 0%, rgba(28, 21, 18, 0) 42%),
    rgba(93, 74, 62, .1);
}
.top-slide.has-video-on .hero-video { visibility: visible; }
.bc-slide .img-container { transition: opacity 1.4s ease, visibility 0s; }
.top-slide.has-video-on .bc-slide .img-container { opacity: 0; visibility: hidden; transition: opacity 1.4s ease, visibility 0s linear 1.4s; }
/* pulsante che ferma e riavvia il video */
.bg-video-toggle {
  position: absolute;
  z-index: 10;
  left: 45px;
  bottom: 6%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  background: rgba(28, 21, 18, .28);
  color: #fff;
  cursor: pointer;
  transition: background .3s, border-color .3s;
}
.bg-video-toggle[hidden] { display: none; }
.bg-video-toggle:hover { background: rgba(28, 21, 18, .55); border-color: #fff; }
.bg-video-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bg-video-toggle span { position: relative; width: 10px; height: 12px; }
.bg-video-toggle span::before, .bg-video-toggle span::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; }
.bg-video-toggle span::before { left: 0; }
.bg-video-toggle span::after { right: 0; }
.bg-video-toggle.is-stopped span::before { left: 1px; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; background: none; }
.bg-video-toggle.is-stopped span::after { display: none; }
.big-carousel .testo {
  position: absolute;
  left: 50%;
  bottom: 6.5vh;
  width: 80%;
  transform: translateX(-50%);
  text-align: center;
}
.hero-title {
  margin: 0;
  color: #fff;
  font-family: var(--font2);
  font-weight: 300;
  font-size: clamp(17px, 1.9vw, 29px);
  line-height: 1.35;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 1px 24px rgba(0, 0, 0, .25);
}
.dots-wrapper {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 15vh;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transform: translateX(-50%);
}
.slick-dots { display: flex; margin: 0; padding: 0; list-style: none; }
.slick-dots li { width: 50px; height: 23px; margin: 0 5px; }
.slick-dots button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  opacity: .4;
  cursor: pointer;
  transition: opacity .3s;
}
.slick-dots button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: translateY(-50%);
}
.slick-dots li.is-active button, .slick-dots button:hover { opacity: 1; }
.slick-dots li:only-child { display: none; }

/* frecce circolari con tratto animato */
.slick-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--c-accent);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity .3s;
}
.slick-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(93, 74, 62, .3);
}
.slick-nav i { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; }
.slick-nav i::before, .slick-nav i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
  border-radius: 1px;
  background: var(--c1);
  transform-origin: 9px 50%;
}
.slick-nav i::before { transform: rotate(-40deg); }
.slick-nav i::after { transform: rotate(40deg); }
.slick-nav svg {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  stroke-width: 2px;
  stroke-dasharray: 126 126 0;
  stroke-dashoffset: 126;
}
.slick-nav.prev-arrow { left: 5%; transform: translateY(-50%) scaleX(-1); }
.slick-nav.next-arrow { right: 5%; }
.slick-nav[disabled] { opacity: .35; pointer-events: none; }
.dots-wrapper .slick-nav { position: relative; left: auto; right: auto; top: auto; transform: none; flex: none; }
.dots-wrapper .slick-nav.prev-arrow { transform: scaleX(-1); }
.slick-nav.animate svg { animation: stroke 1s ease forwards .3s; }
.slick-nav.animate i { animation: arrow 1.6s ease forwards; }
.slick-nav.animate i::before { animation: arrowUp 1.6s ease forwards; }
.slick-nav.animate i::after { animation: arrowDown 1.6s ease forwards; }
@keyframes stroke {
  52% { transform: rotate(-180deg); stroke-dashoffset: 0; }
  52.1% { transform: rotate(-360deg); stroke-dashoffset: 0; }
  100% { transform: rotate(-180deg); stroke-dashoffset: 126; }
}
@keyframes arrow {
  0%, 100% { transform: translateX(0); opacity: 1; }
  23% { transform: translateX(17px); opacity: 1; }
  24%, 80% { transform: translateX(-22px); opacity: 0; }
  81% { opacity: 1; transform: translateX(-22px); }
}
@keyframes arrowUp { 0%, 100% { transform: rotate(-40deg) scaleX(1); } 20%, 80% { transform: rotate(0) scaleX(.1); } }
@keyframes arrowDown { 0%, 100% { transform: rotate(40deg) scaleX(1); } 20%, 80% { transform: rotate(0) scaleX(.1); } }

/* scroll-down e badge rotante */
.scroll-down {
  position: absolute;
  right: 45px;
  bottom: 6%;
  z-index: 10;
  width: 30px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 50px;
}
.scroll-down::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 2px;
  height: 10px;
  background: #fff;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 22px); }
}
.circle-rotation-link {
  position: absolute;
  right: 4%;
  bottom: 14%;
  z-index: 10;
  display: block;
  width: 140px;
  height: 140px;
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(43, 33, 28, .55));
}
.circle-text { display: block; width: 100%; height: 100%; animation: circle-rotation 18s linear infinite; }
.circle-text text {
  font-family: var(--font2);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 7px;
  text-transform: uppercase;
  fill: #fff;
}
.circle-rotation-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.circle-emblem { width: 52px; height: auto; aspect-ratio: 1660 / 1540; transition: transform .6s var(--ease-out); }
.circle-emblem .u-s, .circle-emblem .u-t { fill: #fff; }
.circle-rotation-link:hover .circle-emblem { transform: scale(1.12); }
@keyframes circle-rotation { to { transform: rotate(-360deg); } }

/* ---------- reveal immagini ---------- */
.reveal { position: relative; overflow: hidden; }
.js .reveal { visibility: hidden; }
.reveal img { transform-origin: 50% 50%; }

/* ---------- intro (layout-1b) ---------- */
.l1b-grid { display: grid; grid-template-columns: 5fr 7fr; align-items: center; }
.l1b-images { order: 2; display: flex; flex-wrap: wrap; }
.l1b-images .img1, .l1b-images .img2 { width: 50%; padding: .5vw; }
.l1b-images .img3 { width: 100%; padding: .5vw; }
.l1b-images img { width: 100%; object-fit: cover; }
.l1b-images .img1 img, .l1b-images .img2 img { aspect-ratio: 4 / 5; }
.l1b-images .img3 img { aspect-ratio: 16 / 9; }
.l1b-grid .blocco-testo { order: 1; }
.layout-1b .left .testo { padding: 10vh 5vw 10vh 0; }

/* ---------- carosello schede (alloggi, territorio) ---------- */
.layout-3, .layout-12 { overflow: hidden; }
.blocco-sopra .testo { max-width: 1000px; margin: 0 auto 3%; }
.carousel-cards { position: relative; padding-top: 3%; }
.peek-slider { position: relative; width: 60%; margin: 0 auto; --nav-top: 30%; }
.peek-track {
  display: flex;
  touch-action: pan-y;
  transition: transform .8s var(--ease-out);
  will-change: transform;
}
.peek-track.is-dragging { transition: none; }
.peek-slide { flex: 0 0 100%; padding: 0 1vw; user-select: none; }
.peek-slide img { -webkit-user-drag: none; }
.peek-slide:not(.is-active) .top-content { cursor: pointer; }
.top-content { position: relative; overflow: hidden; }
.top-content img {
  width: 100%;
  aspect-ratio: 7 / 4;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.peek-slide:hover .top-content img { transform: scale(1.04); }
.nome-alloggio { margin-top: 2.2vh; }
.nome-alloggio h3 { font-weight: 300; font-size: clamp(30px, 2.6vw, 42px); margin-bottom: .15em; }
.icone { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 10px 0 14px; padding: 0; list-style: none; font-size: 14px; color: var(--c1); }
.icone li { display: flex; align-items: center; gap: 8px; }
.icone svg { width: 22px; height: 22px; color: var(--c-accent); }
.nome-alloggio .btns { margin-top: .4em; }
.peek-slider .slick-nav { top: var(--nav-top); }
.peek-slider .slick-nav.prev-arrow { left: -2.8vw; }
.peek-slider .slick-nav.next-arrow { right: -2.8vw; left: auto; }
.bottom-content { margin-top: 2.2vh; }
.bottom-content h3 { font-weight: 300; font-size: clamp(30px, 2.6vw, 42px); margin-bottom: .35em; }
.distanza {
  margin: 0 0 .5em;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* ---------- testo pieno ---------- */
.tutto-testo { padding: clamp(64px, 8vw, 140px) 0; }

/* ---------- immagine grande ---------- */
.layout-2 { position: relative; }
.big-image { position: relative; height: 100vh; min-height: 480px; overflow: hidden; }
.big-image .img-container { position: absolute; left: 0; right: 0; top: -18%; height: 136%; }
.big-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- ristorante (layout-5) ---------- */
.layout-5 { overflow: hidden; }
.layout5-content { position: relative; }
.bg1-rect { position: absolute; top: 0; bottom: 0; left: -100vw; right: 0; z-index: 0; background: var(--c-sand); }
.layout-5 .titolo { position: relative; z-index: 1; padding: 10vh 0 6vh; }
.l5-row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.img2-col { display: flex; flex-direction: column; }
.layout-5 .img2 { flex: 1; min-height: 40vh; }
.layout-5 .img2 .reveal { height: 100%; }
.layout-5 .img2 img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.l5-row .testo { padding: 6vh 5vw 8vh; }
.orari { font-size: 15px; }
.layout-5 .img1 { margin-top: 5vh; overflow: hidden; }
.layout-5 .img1 .reveal { aspect-ratio: 16 / 7; }
.layout-5 .img1 img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; }

/* ---------- cantina / bottega (layout-1c) ---------- */
.l1c-grid { display: grid; grid-template-columns: 1fr 1fr; }
.l1c-img { order: 2; position: relative; z-index: 1; }
.layout-1c .img1 { padding-top: 25vh; }
.layout-1c .img1 img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.layout-1c .blocco-testo { order: 1; position: relative; z-index: 2; }
.layout-1c .blocco-testo.left { padding: 3.5vw 3.5vw 3.5vw 13vw; margin-left: 5vw; margin-right: -5vw; }
.layout-1c--rev .l1c-img { order: 1; }
.layout-1c--rev .blocco-testo { order: 2; }
.layout-1c--rev .blocco-testo.left { padding: 3.5vw 13vw 3.5vw 3.5vw; margin-left: -5vw; margin-right: 5vw; }
.layout-1c .img2 { width: 72%; padding: 1vw; background: var(--c-sand2); }
.layout-1c .img2 img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.layout-1c .testo { padding: 5vh 0 0; }
.bg-anim { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: -1; background: var(--c-sand); }
.js-loading .bg-anim { height: 0; }
html:not(.js) .bg-anim { height: 100%; }

/* ---------- esperienze (layout-1a) ---------- */
.l1a-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.fade-carousel { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--c-sand); }
.fc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease-out, visibility 0s .6s;
}
.fc-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease-out, visibility 0s; z-index: 1; }
.fc-slide img { width: 100%; height: 100%; object-fit: cover; }
.fade-carousel .dots-wrapper { bottom: 4vh; }
.layout-1a .right .testo { padding: 10vh 0 10vh 7vw; }

/* ---------- eventi: testo + griglia 5 foto (layout-10) ---------- */
.l10-text { width: 58%; }
.griglia-foto { margin: 3% -.7vw 0; }
.griglia-5foto { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 20vw; }
.griglia-5foto .foto-item { overflow: hidden; }
.griglia-5foto .foto-item:nth-child(5n+3) { grid-row: span 2; }
.item-foto, .imageAnim, .mask_left, .t_container { display: block; height: 100%; }
.imageAnim { padding: .7vw; }
.mask_left, .t_container { overflow: hidden; }
.t_container { position: relative; }
.t_container img { width: 100%; height: 100%; object-fit: cover; }
.js .mask_left.full,
.js .mask_left.full .t_container,
.js .mask_left.full .t_container img {
  transition: transform 1.5s cubic-bezier(.575, .005, .285, 1.005) .1s;
}
.js .imageAnim:not(.show) .mask_left.full { transform: translateX(-100.1%); }
.js .imageAnim:not(.show) .mask_left.full .t_container { transform: translateX(100.1%); }
.js .imageAnim:not(.show) .t_container img { transform: scale(1.05); }
.item-foto:hover .t_container img { transform: scale(1.04); transition-duration: 1.2s; transition-delay: 0s; }
.plus-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 58px;
  height: 58px;
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -70%);
  transition: all .5s ease;
}
.plus-icon svg { width: 100%; height: 100%; }
.item-foto:hover .plus-icon, .item-foto:focus-visible .plus-icon { opacity: 1; transform: translate(-50%, -50%); }
.item-foto .t_container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(43, 36, 33, .28);
  opacity: 0;
  transition: opacity .5s;
}
.item-foto:hover .t_container::after { opacity: 1; }

/* ---------- momenti: slider verticale 9:16 (layout-11) ---------- */
.layout-11 { background: var(--c-dark); color: rgba(255, 255, 255, .86); overflow: hidden; }
.layout-11 h2, .layout-11 strong { color: #fff; }
.slider-9_16 { position: relative; margin-top: 5%; --rw: 25vw; }
.reel-stage { position: relative; height: calc(var(--rw) * 16 / 9); }
.reel {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--rw);
  aspect-ratio: 9 / 16;
  margin: 0;
  overflow: hidden;
  background: #1d1816;
  opacity: 0;
  transform: translateX(-50%) scale(.3);
  transition: left .6s ease-in-out, top .6s ease-in-out, transform .6s ease-in-out, opacity .6s ease-in-out;
  z-index: 1;
}
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel[data-pos="0"] { opacity: 1; transform: translateX(-50%) scale(1); z-index: 3; }
.reel[data-pos="-1"] { opacity: 1; left: calc(10% + var(--rw) / 2); top: 2vh; transform: translateX(-50%) scale(.8); z-index: 2; cursor: pointer; }
.reel[data-pos="1"] { opacity: 1; left: calc(90% - var(--rw) / 2); top: 2vh; transform: translateX(-50%) scale(.8); z-index: 2; cursor: pointer; }
.reel[data-pos="-2"] { opacity: 1; left: calc(-10% + var(--rw) / 2); top: 8vh; transform: translateX(-50%) scale(.5); }
.reel[data-pos="2"] { opacity: 1; left: calc(110% - var(--rw) / 2); top: 8vh; transform: translateX(-50%) scale(.5); }
.reel[data-pos="-3"] { left: calc(-30% + var(--rw) / 2); }
.reel[data-pos="3"] { left: calc(130% - var(--rw) / 2); }
.reel:not([data-pos="0"]) img { filter: brightness(.72); transition: filter .6s; }
.reel figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 20px 22px;
  color: #fff;
  font-family: var(--font1);
  font-size: 22px;
  font-style: italic;
  line-height: 1.2;
  text-align: center;
  background: linear-gradient(to top, rgba(20, 15, 13, .7), rgba(20, 15, 13, 0));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s .2s, transform .5s .2s;
}
.reel[data-pos="0"] figcaption { opacity: 1; transform: none; }
.slider-9_16 .slick-nav { top: calc(var(--rw) * 8 / 9); }
.slider-9_16 .slick-nav.prev-arrow { left: calc(50% - var(--rw) / 2 - 22px); }
.slider-9_16 .slick-nav.next-arrow { right: calc(50% - var(--rw) / 2 - 22px); }
.slider-9_16-dots { display: flex; justify-content: center; width: var(--rw); margin: 26px auto 0; }
.slider-9_16-dots button {
  position: relative;
  width: 40px;
  height: 20px;
  margin: 0 3px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.slider-9_16-dots button::before, .slider-9_16-dots .dot-progress {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, .35);
}
.slider-9_16-dots .dot-progress { background: #fff; transform: scaleX(0); transform-origin: left center; }

/* ---------- mappa ---------- */
.map-wrap { position: relative; padding-top: 6%; }
.map-title { position: absolute; top: 0; right: 8%; z-index: 600; text-align: right; pointer-events: none; }
#map { height: 72vh; min-height: 440px; background: #e8e4dc; z-index: 1; }
#map .leaflet-tile-pane { filter: grayscale(1) sepia(.22) contrast(.92) brightness(1.04); }
.leaflet-container { font-family: var(--font2); }
.leaflet-control-attribution { font-size: 10px; }
.map-pin { position: relative; width: 64px; height: 78px; }
.map-pin svg { width: 64px; height: 78px; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.map-card {
  position: absolute;
  left: 5%;
  bottom: 8%;
  z-index: 600;
  max-width: 380px;
  padding: 30px 34px 22px;
  background: var(--c-paper);
  box-shadow: 0 20px 50px rgba(43, 36, 33, .16);
}
.map-card h3 { font-size: 30px; margin-bottom: .3em; }
.map-card p { font-size: 15px; }
.map-note { font-size: 13.5px !important; color: var(--c1); }

/* ---------- moduli ---------- */
.form-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 5vw; align-items: start; }
.form-col .testo { margin-bottom: 4.5vh; }
.form-col .testo a { color: var(--c-accent); }
.fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 26px; }
.f { display: block; min-width: 0; }
.f-3 { grid-column: span 3; }
.f-2 { grid-column: span 4; }
.f-half { grid-column: span 6; }
.f-full { grid-column: span 12; }
.f > span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c1);
}
.f input, .f select, .f textarea {
  display: block;
  width: 100%;
  padding: 8px 0 9px;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  border-radius: 0;
  background: transparent;
  color: var(--c-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s, box-shadow .3s;
}
.f select {
  padding-right: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%235d4a3e' stroke-width='1.5' d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 18px;
}
.f textarea { resize: vertical; min-height: 84px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-bottom-color: var(--c-accent); box-shadow: 0 1px 0 var(--c-accent); }
.f.is-invalid input, .f.is-invalid select { border-bottom-color: #a5322a; }
.check { display: flex; align-items: flex-start; gap: 12px; margin: 28px 0 22px; font-size: 13.5px; line-height: 1.5; }
.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1px solid var(--c1);
  border-radius: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.check input:checked {
  background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--c-accent);
}
.check.is-invalid input { border-color: #a5322a; box-shadow: 0 0 0 1px #a5322a; }
.check a { color: inherit; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.form-actions .btn { margin: 0; }
.form-msg { margin: 0; font-size: 14px; line-height: 1.5; color: var(--c-olive); max-width: 46ch; }
.form-msg.is-error { color: #a5322a; }
.form-img .reveal img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- footer ---------- */
.site-footer { background: var(--c-dark); color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.7; }
.footer-top { padding-top: 9vh; }
.footer-logo { display: flex; justify-content: center; margin-bottom: 7vh; }
.logo--footer { filter: none; }
.logo--footer .logo-emblem { width: 84px; }
.logo--footer .logo-emblem .u-s { fill: rgba(255, 255, 255, .72); }
.logo--footer .logo-emblem .u-t { fill: #b8684d; }
.logo--footer .logo-word { font-size: 30px; }
.footer-cols { display: grid; grid-template-columns: 1.05fr 1fr 1.35fr; gap: 5vw; padding-bottom: 8vh; }
.site-footer h4 { color: #fff; margin-bottom: 18px; }
.site-footer p { margin-bottom: .9em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.lbl { font-weight: 500; color: #fff; }
.footer-social-links { display: flex; gap: 10px; margin-top: 18px; }
.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  transition: background .3s, color .3s, border-color .3s;
}
.footer-social-links a:hover { background: #fff; color: var(--c-dark); border-color: #fff; text-decoration: none; }
.footer-social-links svg { width: 21px; height: 21px; }
.site-footer .f > span { color: rgba(255, 255, 255, .7); }
.site-footer .f input { color: #fff; border-bottom-color: rgba(255, 255, 255, .45); }
.site-footer .f input:focus { border-bottom-color: #fff; box-shadow: 0 1px 0 #fff; }
.site-footer .check input { border-color: rgba(255, 255, 255, .7); }
.site-footer .check input:checked { background-color: #fff; border-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232b2421' stroke-width='2.4' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.site-footer .form-msg { color: var(--c-gold); }
.site-footer .check { margin: 22px 0 18px; }
.line-container { display: flex; justify-content: center; }
.line { width: 0; height: 1px; background: rgba(255, 255, 255, .45); }
.footer-copyright { padding: 4.5vh 0 6vh; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .62); }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 22px; }
.legal-links .btn { margin: 0; }
.copyright { margin-bottom: 1em; }
.ocm { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; }
.ocm img { display: inline-block; padding: 3px; background: #fff; }

/* ---------- modale prenotazione ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(28, 22, 19, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-dialog {
  position: relative;
  width: min(1020px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  background: var(--c-paper);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-side { position: relative; min-height: 480px; color: #fff; overflow: hidden; }
.modal-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(43, 33, 28, .92) 0%, rgba(43, 33, 28, .62) 55%, rgba(43, 33, 28, .15) 100%); }
.modal-side-text { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 46px 42px; }
.modal-side h2 { color: #fff; font-size: clamp(32px, 2.8vw, 44px); }
.modal-side ul { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.modal-side li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.modal-side li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--c-gold); }
.modal-form { padding: 50px 46px 40px; }
.modal-form h3 { font-size: clamp(30px, 2.4vw, 38px); margin-bottom: .8em; }
.modal-form .form-actions { margin-top: 30px; }
.modal-phone { margin: 24px 0 0; font-size: 14px; }
.modal-phone a { color: var(--c-accent); }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 46px; height: 46px; padding: 11px; border: 0; background: none; color: var(--c-ink); cursor: pointer; }
.modal-close svg { width: 100%; height: 100%; transition: transform .4s var(--ease-out); }
.modal-close:hover svg { transform: rotate(90deg); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; background: rgba(24, 19, 16, .95); }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; text-align: center; }
.lb-figure img { max-width: 84vw; max-height: 82vh; width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.lb-figure figcaption { margin-top: 14px; color: rgba(255, 255, 255, .8); font-family: var(--font1); font-size: 20px; font-style: italic; }
.lb-close { position: absolute; top: 18px; right: 18px; width: 50px; height: 50px; padding: 12px; border: 0; background: none; color: #fff; cursor: pointer; }
.lb-close svg { width: 100%; height: 100%; }
.lightbox .prev-arrow { left: 3%; }
.lightbox .next-arrow { right: 3%; }

/* ---------- responsive ---------- */
@media (max-width: 1440px) {
  .menu a { font-size: clamp(24px, 2.4vw, 36px); }
}
@media (max-width: 1199px) {
  .f-3 { grid-column: span 6; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols #newsletter { grid-column: span 2; }
  .circle-rotation-link { bottom: 18%; }
}
@media (max-width: 991px) {
  :root { --nav-h: 80px; }
  body { font-size: 15.5px; }
  .wrapper2 { margin: 0 7%; }
  .sec-mt5, .sec-mt7 { margin-top: 12%; }
  .sec-mt10 { margin-top: 16%; }
  .sec-mb5, .sec-mb7 { margin-bottom: 12%; }
  .sec-mb10 { margin-bottom: 16%; }
  .sec-pt5, .sec-pt7, .sec-pt10 { padding-top: 14%; }
  .sec-pb5, .sec-pb7, .sec-pb10 { padding-bottom: 14%; }

  .hamburger { top: 10px; left: -15px; }
  .hamburger-label { margin-left: -27px; font-size: 11.5px; letter-spacing: .1em; }
  .logo-div { top: 10px; }
  .logo-emblem { width: 40px; }
  .logo-word { font-size: 19px; margin-top: 5px; }
  .logo-sub { display: none; }
  .rif.right { top: 13px; right: 12px; }
  .booknow { display: none; }

  .menu { columns: 1; }
  .menu li { padding: .7vh 0; }
  .menu a { font-size: 24px; letter-spacing: .1em; }
  .menuOffCanvas-cont { left: 0; top: 0; width: 100%; height: 100%; max-height: none; padding: 16vh 7vw 10vh; transform: none; }
  .menu-foot { flex-direction: column; align-items: center; gap: 10px; margin-top: 4vh; }

  .fixed_mobile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--c-accent);
  }
  .fixed_mobile a, .fixed_mobile button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .22);
    background: none;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .fixed_mobile > :first-child { border-left: 0; }
  .fixed_mobile button:last-child { background: var(--c-dark); }

  .top-slide { height: 78vh; height: 78svh; min-height: 480px; }
  .big-carousel .testo { bottom: 8vh; width: 88%; }
  .dots-wrapper { bottom: 17vh; }
  .big-carousel--hero .slick-dots { display: none; }
  .scroll-down { display: none; }
  .circle-rotation-link { width: 104px; height: 104px; right: 3%; bottom: auto; top: calc(var(--nav-h) + 12px); }
  .circle-emblem { width: 38px; }

  .l1b-grid, .l1c-grid, .l1a-grid, .l5-row, .form-grid { grid-template-columns: 1fr; }
  .l1b-images { order: 1; }
  .l1b-grid .blocco-testo { order: 2; }
  .layout-1b .left .testo { padding: 5vh 0 2vh; }
  .layout-1a .right .testo { padding: 5vh 0 0; }

  .peek-slider { width: 86%; }
  .peek-slide { padding: 0 2vw; }
  .peek-slider .slick-nav { width: 38px; height: 38px; }
  .peek-slider .slick-nav svg { width: 38px; height: 38px; }
  .peek-slider .slick-nav.prev-arrow { left: -4.5vw; }
  .peek-slider .slick-nav.next-arrow { right: -4.5vw; }

  .big-image { height: 62vh; min-height: 340px; }

  .bg1-rect { display: none; }
  .layout-5 .titolo { padding: 0 0 4vh; }
  .layout-5 .img2 { min-height: 0; width: 82%; }
  .l5-row .testo { padding: 5vh 0 0; }
  .layout-5 .img1 { margin-top: 4vh; }
  .layout-5 .img1 .reveal { aspect-ratio: 4 / 3; }

  .layout-1c .img1 { padding-top: 0; }
  .l1c-img { order: 1; padding: 0 7%; }
  .layout-1c .blocco-testo, .layout-1c .blocco-testo.left,
  .layout-1c--rev .blocco-testo.left { order: 2; margin: -10vw 0 0 7%; padding: 14vw 7% 8vw 7%; }
  .layout-1c .img2 { width: 64%; padding: 2vw; }

  .l10-text { width: 100%; }
  .griglia-5foto { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; margin-top: 5vh; }
  .griglia-5foto .foto-item { aspect-ratio: 4 / 3; }
  .griglia-5foto .foto-item:nth-child(5n+3) { grid-row: auto; }
  .griglia-5foto .foto-item:nth-child(5n) { grid-column: span 2; }
  .imageAnim { padding: 1.2vw; }

  .slider-9_16 { --rw: 68vw; margin-top: 10%; }
  .reel[data-pos="-1"], .reel[data-pos="1"], .reel[data-pos="-2"], .reel[data-pos="2"] { opacity: 0; pointer-events: none; }
  .slider-9_16 .slick-nav.prev-arrow { left: 3%; }
  .slider-9_16 .slick-nav.next-arrow { right: 3%; }
  .slider-9_16-dots { width: 90%; }
  .slider-9_16-dots button { width: 30px; }

  .map-wrap { padding-top: 0; }
  .map-title { position: relative; right: auto; text-align: left; padding: 0 7% 3vh; }
  #map { height: 56vh; min-height: 340px; }
  .map-card { position: relative; left: auto; bottom: auto; max-width: none; margin: -40px 7% 0; }

  .form-img { order: 2; }
  .form-col { order: 1; }
  .form-img .reveal img { aspect-ratio: 16 / 10; }

  .footer-cols { grid-template-columns: 1fr; text-align: center; gap: 6vh; }
  .footer-cols #newsletter { grid-column: auto; }
  .footer-social-links { justify-content: center; }
  .site-footer .form-actions { justify-content: center; }
  .site-footer .check { justify-content: center; text-align: left; }
  .footer-copyright { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }

  .modal { padding: 0; align-items: flex-end; }
  .modal-dialog { max-height: 94dvh; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-side { min-height: 210px; }
  .modal-side-text { padding: 28px 26px; }
  .modal-side ul { display: none; }
  .modal-form { padding: 30px 26px 30px; }
}
@media (max-width: 575px) {
  .f-3, .f-2 { grid-column: span 6; }
  .f-half { grid-column: span 12; }
  .modal-form .f-half { grid-column: span 6; }
  .fields { gap: 20px 18px; }
  .btn { padding: 15px 26px; }
  .btns .btn { margin-right: 0; }
  .icone { gap: 4px 18px; }
  .lb-figure img { max-width: 94vw; }
  .lightbox .slick-nav { top: auto; bottom: 30px; transform: none; }
  .lightbox .prev-arrow { transform: scaleX(-1); }
}

/* ---------- movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { visibility: visible; }
}

/* ---------- stati gestiti da JS ---------- */
html.js-loading .anim-testo,
html.js-loading .anim-child,
html.js-loading .hero-title,
html.js-loading .circle-rotation-link { visibility: hidden; }
.sw { display: inline-block; white-space: nowrap; }
.sc { display: inline-block; }
.peek-slide .nome-alloggio, .peek-slide .bottom-content { transition: opacity .6s ease; }
.peek-slide:not(.is-active) .nome-alloggio, .peek-slide:not(.is-active) .bottom-content { opacity: .28; }
.peek-slide:not(.is-active) .btn { pointer-events: none; }
.peek-track.is-jumping, .peek-track.is-jumping * { transition: none !important; }
.modal-dialog:focus { outline: none; }

/* ==========================================================================
   Revisione 07/11/2026 sera (richieste di Simone)
   preloader come demo2 · hamburger corto · hero senza frecce · ristorante in evidenza
   bottoni Prenota pieni e larghi uguali · shop in evidenza · modulo preventivo a scheda
   barra di prenotazione Beddy su desktop
   ========================================================================== */

/* ---------- preloader: tenda scura con logo, poi apertura ad arco ---------- */
.intro-curtain { position: fixed; inset: 0; z-index: 2500; pointer-events: none; color: #fff; animation: curtain-fallback .8s 6s forwards; }
.intro-mask { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.intro-mask path { fill: var(--c-dark); fill-rule: evenodd; }
.intro-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.intro-script {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -56%) rotate(-6deg);
  font-family: var(--font1);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(170px, 30vw, 500px);
  line-height: 1;
  color: rgba(255, 255, 255, .06);
  white-space: nowrap;
}
.intro-logo { position: relative; filter: none; }
.intro-logo .logo-emblem { width: clamp(70px, 7vw, 104px); }
.intro-logo .logo-emblem .u-s { fill: rgba(255, 255, 255, .9); }
.intro-logo .logo-emblem .u-t { fill: #b8684d; }
.intro-logo .logo-word { font-size: clamp(26px, 2.6vw, 40px); margin-top: 16px; }
.intro-logo .logo-sub { display: block; font-size: 9.5px; margin-top: 13px; }
.intro-side { position: absolute; top: 50%; font-size: 11px; font-weight: 400; letter-spacing: .9em; transform: translateY(-50%); }
.intro-left { right: calc(50% + clamp(200px, 19vw, 310px)); }
.intro-right { left: calc(50% + clamp(200px, 19vw, 310px)); }
.intro-line {
  position: absolute;
  left: 50%;
  top: calc(50% + clamp(120px, 12vh, 150px));
  width: 1px;
  height: clamp(60px, 12vh, 120px);
  background: rgba(255, 255, 255, .55);
  transform-origin: top;
}
.intro-foot { position: absolute; left: 0; right: 0; bottom: 6vh; text-align: center; font-size: 10px; letter-spacing: .32em; line-height: 2.1; opacity: .75; }
@keyframes curtain-fallback { to { visibility: hidden; opacity: 0; } }

/* ---------- header: link allo shop ---------- */
.header-shop {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.header-shop svg { width: 21px; height: 21px; flex: none; }
.header-shop span { position: relative; }
.header-shop span::after { content: ""; position: absolute; left: 0; right: .14em; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.header-shop:hover span::after { transform: scaleX(1); transform-origin: left; }

/* ---------- bottoni: pieno (Prenota) e bianco (su fondo colorato) ---------- */
.btn--fill { color: #fff; background: var(--c-accent); box-shadow: inset 0 0 0 1px var(--c-accent); }
.btn--fill::before, .btn--fill::after { background: var(--c-dark); }
.btn--fill:hover { box-shadow: inset 0 0 0 1px var(--c-dark); }
.btn--fill:hover span { color: #fff; }
.btn--white { color: var(--c-accent); background: #fff; box-shadow: inset 0 0 0 1px #fff; }
.btn--white::before, .btn--white::after { background: var(--c-dark); }
.btn--white:hover { box-shadow: inset 0 0 0 1px var(--c-dark); }
.btn--white:hover span { color: #fff; }
.btn--lg { font-size: 15px; padding: 20px 42px; }
.btn-ico { display: inline-block; width: 21px; height: 21px; margin: -4px 12px 0 0; vertical-align: middle; }

/* coppie di bottoni con la stessa larghezza (quella del testo più lungo); se non c'è posto, uno sotto l'altro */
.btns--pair { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btns--pair .btn { margin: 0; text-align: center; }
.layout-1b .testo, .l5-row .testo { container: pairbox / inline-size; }
.nome-alloggio { container: pairbox-s / inline-size; }
@container pairbox (max-width: 619px) { .btns--pair { grid-template-columns: 1fr; } }
@container pairbox-s (max-width: 399px) { .btns--pair { display: grid; grid-template-columns: 1fr; } }


/* ---------- modulo "Richiedi un preventivo": scheda bianca su fondo sabbia, campi in riquadro ---------- */
.richiesta { background: var(--c-sand); padding: clamp(70px, 8vw, 130px) 0; }
.richiesta .form-col .testo { margin-bottom: 34px; }
#form-preventivo {
  position: relative;
  padding: clamp(26px, 3.2vw, 48px);
  background: #fff;
  border-top: 3px solid var(--c-accent);
  box-shadow: 0 26px 60px rgba(43, 36, 33, .1);
}
#form-preventivo .fields { gap: 22px 20px; }
#form-preventivo .f-3 { grid-column: span 6; }
#form-preventivo .f-2 { grid-column: span 4; }
/* scritta circolare della hero: testo nuovo (con Ristorante) un po' più corto, spaziatura per chiudere il giro */
.circle-text text { letter-spacing: 10.5px; }
#form-preventivo .f > span, #form-booking .f > span { margin-bottom: 8px; color: var(--c-ink); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; }
#form-preventivo .f input, #form-preventivo .f select, #form-preventivo .f textarea, #form-booking .f input, #form-booking .f select, #form-booking .f textarea {
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #c9b9a5;
  background-color: var(--c-paper);
  color: var(--c-ink);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
#form-preventivo .f select, #form-booking .f select { padding-right: 42px; background-position: right 13px center; }
#form-preventivo .f textarea { min-height: 120px; }
#form-preventivo .f input:hover, #form-preventivo .f select:hover, #form-preventivo .f textarea:hover, #form-booking .f input:hover, #form-booking .f select:hover, #form-booking .f textarea:hover { border-color: #9c8570; }
#form-preventivo .f input:focus, #form-preventivo .f select:focus, #form-preventivo .f textarea:focus, #form-booking .f input:focus, #form-booking .f select:focus, #form-booking .f textarea:focus {
  border-color: var(--c-accent);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(107, 52, 39, .16);
}
#form-preventivo .f.is-invalid input, #form-preventivo .f.is-invalid select, #form-booking .f.is-invalid input, #form-booking .f.is-invalid select { border-color: #a5322a; box-shadow: 0 0 0 3px rgba(165, 50, 42, .14); }
#form-preventivo .check { margin: 26px 0 24px; }
#form-preventivo .check input { width: 20px; height: 20px; border-color: #9c8570; }
#form-preventivo .form-actions .btn { padding: 17px 40px; }
.richiesta .form-img .reveal img { box-shadow: 0 26px 60px rgba(43, 36, 33, .12); }

/* ---------- finestra Prenota collegata a Beddy ---------- */
.modal-form .f-age { grid-column: span 6; }
#form-booking { background: #fff; border-top: 3px solid var(--c-accent); }
#form-booking .fields { gap: 20px 18px; }
@media (max-width: 575px) { #form-booking .fields { gap: 16px 12px; } }
/* newsletter (footer scuro): stessi campi in riquadro dei moduli preventivo e prenota */
.form-news .fields { gap: 18px 16px; }
.site-footer .form-news .f > span { margin-bottom: 8px; color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; }
.site-footer .form-news .f input {
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #c9b9a5;
  background-color: var(--c-paper);
  color: var(--c-ink);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.site-footer .form-news .f input:hover { border-color: #fff; }
.site-footer .form-news .f input:focus { border-color: var(--c-gold); background-color: #fff; box-shadow: 0 0 0 3px rgba(201, 173, 120, .45); }
.site-footer .form-news .f.is-invalid input { border-color: #e07a6e; box-shadow: 0 0 0 3px rgba(224, 122, 110, .4); }
.site-footer .form-news .check input { width: 20px; height: 20px; }
.site-footer .form-news .check.is-invalid input { border-color: #e07a6e; box-shadow: 0 0 0 1px #e07a6e; }
.site-footer .form-news .form-msg.is-error { color: #f0a39a; }
@media (max-width: 991px) { .site-footer .form-news .f { text-align: left; } .form-news { max-width: 560px; margin: 0 auto; } }
.modal-note { margin: 22px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--c1); }
.modal-note a { color: var(--c-accent); white-space: nowrap; }
.modal-note + .modal-phone { margin-top: 10px; }

/* ---------- barra di prenotazione Beddy (desktop, dopo i primi pixel di scroll) ---------- */
beddy-bar {
  position: relative;
  z-index: 999;
  display: block;
  height: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease-out), visibility 0s linear .7s;
}
beddy-bar.is-shown { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-out), visibility 0s; }
html.menu-open beddy-bar { opacity: 0; visibility: hidden; }
@media (min-width: 992px) {
  .footer-copyright { padding-bottom: calc(6vh + 126px); } /* barra Beddy con il titoletto: circa 120px */
}

/* ---------- responsive della revisione ---------- */
@media (max-width: 1050px) {
  .intro-side { display: none; }
}
@media (max-width: 991px) {
  beddy-bar { display: none; }
  .header-shop { display: none; }

  /* la hero arriva fino alla barra dei pulsanti in fondo */
  .top-slide { height: calc(100vh - 52px); height: calc(100svh - 52px - env(safe-area-inset-bottom, 0px)); min-height: 460px; }

  .fixed_mobile a, .fixed_mobile button { gap: 8px; }
  .fixed_mobile svg { width: 17px; height: 17px; flex: none; }

  .richiesta { padding: 16% 0; }
}
@media (max-width: 760px) {
  .intro-script { font-size: 44vw; transform: translate(-50%, -62%) rotate(-8deg); }
  .intro-logo .logo-word { font-size: 24px; }
  .intro-logo .logo-sub { font-size: 7.5px; letter-spacing: .3em; }
  .intro-line { top: calc(50% + 105px); }
}
@media (max-width: 575px) {
  .btn--lg { padding: 18px 26px; font-size: 14px; }
  #form-preventivo { padding: 24px 18px; }
  #form-preventivo .fields { gap: 18px 12px; }
  #form-preventivo .f-2 { grid-column: span 6; }
  #form-preventivo .f-2:nth-child(9) { grid-column: span 12; }
  #form-preventivo .f input[type="date"], #form-booking .f input[type="date"] { padding-left: 10px; padding-right: 6px; }
  #form-preventivo .form-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-curtain { display: none; }
}

/* sottotitolo del logo nell'header con tre voci (08/11): piu' piccolo e stretto, per non allargarsi troppo oltre la scritta */
.logo-div .logo-sub { font-size: 8.5px; letter-spacing: .26em; padding-left: .26em; }
/* sottotitolo del logo nel footer con quattro voci (08/11): piu' piccolo e stretto */
.logo--footer .logo-sub { font-size: 8.5px; letter-spacing: .24em; padding-left: .24em; }

/* ---------- foto del ristorante in dissolvenza (sezione Ristorante, classi messe dal JS) ----------
   la foto che entra parte appena ingrandita; sotto la foto didascalia, lineette con il tempo e pausa */
.layout-5 .xfade > img { opacity: 0; scale: 1.06; transition: opacity 1.6s var(--ease-out), scale 7s cubic-bezier(.25, .46, .45, .94); }
.layout-5 .xfade > img.is-prev { z-index: 1; opacity: 1; scale: 1; }
.layout-5 .xfade > img.is-on { z-index: 2; opacity: 1; scale: 1; }
.xfade-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 16px; }
.xfade-cap { font-family: var(--font2); font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: .24em; text-transform: uppercase; color: var(--c1); }
.xfade-ctrl { display: flex; align-items: center; gap: 6px; }
.xfade-dot { position: relative; width: 44px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.xfade-dot::before, .xfade-dot i { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; background: var(--c-line); }
.xfade-dot i { width: 0; background: var(--c-accent); }
.xfade-dot.is-on i { width: 100%; }
[data-xfade].is-running .xfade-dot.is-on i { width: 0; animation: xfFill var(--xf-delay, 5s) linear forwards; }
[data-xfade].is-paused .xfade-dot.is-on i { animation-play-state: paused; }
@keyframes xfFill { to { width: 100%; } }
.xfade-pause { position: relative; display: grid; place-items: center; width: 34px; height: 34px; margin-left: 10px; padding: 0; border: 1px solid var(--c-line); border-radius: 50%; background: none; color: var(--c-accent); cursor: pointer; transition: background .3s, border-color .3s; }
.xfade-pause:hover { border-color: var(--c-accent); }
.xfade-pause span { position: relative; width: 8px; height: 10px; }
.xfade-pause span::before, .xfade-pause span::after { content: ""; position: absolute; top: 0; width: 2px; height: 10px; background: currentColor; }
.xfade-pause span::before { left: 0; }
.xfade-pause span::after { right: 0; }
.xfade-pause.is-stopped span::before { left: 1px; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; background: none; }
.xfade-pause.is-stopped span::after { display: none; }
.xfade-dot:focus-visible, .xfade-pause:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
@media (max-width: 599px) {
  .xfade-dot { width: 28px; }
  .xfade-cap { font-size: 10px; letter-spacing: .18em; }
}
/* quadrato dei piatti: la prima foto resta nel flusso e da' l'altezza (quadrato), le altre ci si sovrappongono;
   la barra sta dentro .img2, cosi' si muove con la parallasse */
.layout-5 .img2[data-xfade] { display: flex; flex-direction: column; }
.layout-5 .img2[data-xfade] .reveal { height: auto; }
.layout-5 .img2 .xfade > img:first-child { position: relative; }
.layout-5 .img2 .xfade > img:not(:first-child) { position: absolute; inset: 0; }

/* logo (09/11): scritta sopra, grafica sotto, come su etichette e materiali; il sottotitolo resta in fondo */
.logo .logo-word { order: -1; margin-top: 0; }
.logo .logo-emblem { margin-top: 9px; }
.intro-logo .logo-emblem { margin-top: 18px; }
.logo--footer .logo-emblem { margin-top: 13px; }
@media (max-width: 991px) {
  .logo .logo-emblem { margin-top: 5px; }
  .intro-logo .logo-emblem { margin-top: 14px; }
  .logo--footer .logo-emblem { margin-top: 11px; }
}

/* ==========================================================================
   Sette ragioni (18/11/2026): mentre si scorre, la hero resta ferma e un grande arco
   sale e si allarga sopra la foto. Dentro l'arco: il titolo sulla curva e le schede,
   che corrono su una curva (ai lati piu' basse e inclinate) e sono ritagliate dalla
   sagoma dell'arco (mask messa dal JS). Altezza dell'arco: --arch-h.
   ========================================================================== */
:root { --c-wine: #4b202d; --arch-h: 34vw; --arch-bg: var(--c-paper); }
.arch-sec { position: relative; z-index: 2; display: flow-root; background: var(--arch-bg); }
.arch-top { position: absolute; z-index: 1; left: 0; top: calc(1px - var(--arch-h)); width: 100%; height: var(--arch-h); pointer-events: none; }
.arch-top svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; }
.arch-shape { fill: var(--arch-bg); }
.arch-text { font-family: var(--font2); font-size: 14px; font-weight: 400; letter-spacing: .5em; fill: var(--c1); }
.arch-text.arch-sub { font-family: var(--font1); font-size: 36px; font-style: italic; font-weight: 400; letter-spacing: 0; fill: var(--c-accent); }
.arch-mark text { font-family: var(--font2); font-size: 10.5px; letter-spacing: .5em; fill: var(--c1); }
.arch-mark .u-s { fill: #8d8b88; }
.arch-mark .u-t { fill: #6e3a2c; }

.arch-hl {
  --cw: 22vw;
  --gap: clamp(16px, 1.9vw, 32px);
  --lift: 15.5vw; /* quanto le schede salgono dentro l'arco */
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--lift) - 14px);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
/* binario: scroll orizzontale nativo con aggancio al centro; tre schede intere su desktop */
.arch-hl .hl-track {
  position: relative;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 14px calc((100% - 3 * var(--cw) - 2 * var(--gap)) / 2) 118px;
}
.arch-hl .hl-track::-webkit-scrollbar { display: none; }
.arch-hl .hl-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.arch-hl .hl-track.is-gliding { scroll-snap-type: none; }

.hl-card { position: relative; flex: 0 0 var(--cw); min-width: 0; scroll-snap-align: center; transform-origin: 50% 100%; }
/* la scheda e' la foto con la cima ad arco; testo in basso su una sfumatura scura.
   isolation + z-index negativi: foto e sfumature stanno sotto il testo senza posizionarlo,
   cosi' il ::after della CTA copre tutta la scheda (link esteso) */
.hl-media { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 50% 50% 0 0 / 27% 27% 0 0; background: #3a302b; color: #fff; }
.hl-img { position: absolute; inset: 0; z-index: -2; transition: transform 1.6s var(--ease-out), filter .9s var(--ease-out); }
/* foto piu' larga della scheda per la parallasse durante lo scorrimento */
.hl-img img { position: absolute; top: 0; left: -8%; width: 116%; max-width: none; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
/* scheda Ristorante: piatti in dissolvenza (classi messe dal JS); la foto che entra parte appena ingrandita */
.hl-fade img { opacity: 0; scale: 1.07; transition: opacity 1.5s var(--ease-out), scale 6s cubic-bezier(.25, .46, .45, .94); }
.hl-fade img.is-prev { z-index: 1; opacity: 1; scale: 1; }
.hl-fade img.is-on { z-index: 2; opacity: 1; scale: 1; }
.hl-media::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(24, 17, 14, .55) 0%, rgba(24, 17, 14, .22) 18%, rgba(24, 17, 14, 0) 32%, rgba(24, 17, 14, 0) 42%, rgba(24, 17, 14, .5) 68%, rgba(24, 17, 14, .86) 100%); }
.hl-media::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(24, 17, 14, .24); opacity: 0; transition: opacity .8s var(--ease-out); }
.hl-tag { position: absolute; z-index: 1; top: 12%; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-size: 9.5px; font-weight: 500; line-height: 1; letter-spacing: .26em; text-transform: uppercase; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.hl-tag b { font-family: var(--font1); font-size: 25px; font-style: italic; font-weight: 400; letter-spacing: 0; }

.hl-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8% 10%; }
.hl-badge { margin-bottom: 14px; padding: 8px 12px 7px; background: var(--c-paper); color: var(--c-wine); font-size: 9.5px; font-weight: 600; line-height: 1; letter-spacing: .2em; text-transform: uppercase; }
.hl-body h3 { margin: 0 0 .36em; color: #fff; font-family: var(--font1); font-weight: 400; font-size: clamp(25px, 2.3vw, 40px); line-height: 1.04; letter-spacing: 0; text-wrap: balance; text-shadow: 0 1px 18px rgba(0, 0, 0, .22); }
.hl-body h3 em { font-style: italic; }
.hl-body .hl-meta { margin: 0 0 16px; color: rgba(255, 255, 255, .86); font-size: 9px; font-weight: 500; line-height: 1.55; letter-spacing: .15em; text-transform: uppercase; }
/* CTA: filo sotto che si allunga in hover, freccia in diagonale.
   Niente position/transform sulla CTA: il suo ::after deve riferirsi a .hl-media */
.hl-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 0 9px;
  background: linear-gradient(#fff, #fff) 0 100% / 0 1px no-repeat, linear-gradient(rgba(255, 255, 255, .38), rgba(255, 255, 255, .38)) 0 100% / 100% 1px no-repeat;
  color: #fff; font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  transition: background-size .9s var(--ease-out);
}
.hl-cta::after { content: ""; position: absolute; inset: 0; z-index: 3; } /* tutta la scheda e' cliccabile */
.hl-cta svg { width: 17px; height: 17px; flex: none; rotate: -45deg; transition: translate .4s var(--ease-out); }
.hl-cta:focus-visible { outline: none; }
.hl-cta:focus-visible span { outline: 1px solid currentColor; outline-offset: 6px; }

/* testi che salgono quando la scheda e' intera nell'arco (classe is-in messa dal JS) */
.hl-anim .hl-badge, .hl-anim .hl-body h3, .hl-anim .hl-meta { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .6s var(--ease-out), transform 1.1s var(--ease-out); }
.hl-anim .hl-cta { opacity: 0; transition: opacity .6s var(--ease-out), background-size .9s var(--ease-out); }
.hl-anim .is-in .hl-badge, .hl-anim .is-in .hl-body h3, .hl-anim .is-in .hl-meta { opacity: 1; transform: none; }
.hl-anim .is-in .hl-cta { opacity: 1; }
.hl-anim .is-in .hl-body h3 { transition-delay: .08s; }
.hl-anim .is-in .hl-meta { transition-delay: .18s; }
.hl-anim .is-in .hl-cta { transition-delay: .28s, 0s; }

/* hover (e focus da tastiera): zoom lento, velo, filo e freccia della CTA, le altre schede si spengono */
.hl-card:focus-within .hl-cta { background-size: 100% 1px, 100% 1px; }
@media (hover: hover) {
  .hl-card:hover .hl-img { transform: scale(1.06); }
  .hl-card:hover .hl-media::after { opacity: 1; }
  .hl-card:hover .hl-cta { background-size: 100% 1px, 100% 1px; }
  .hl-card:hover .hl-cta svg { translate: 3px -3px; }
  .hl-track:has(.hl-card:hover) .hl-card:not(:hover) .hl-img { filter: saturate(.55) brightness(.92); }
  .hl-track.is-dragging .hl-card .hl-img { filter: none; transform: none; }
  .hl-track.is-dragging .hl-media::after { opacity: 0; }
}

/* comandi centrati sotto le schede: precedente, pausa/play (l'anello e' il timer), successiva */
.hl-ctrl { position: absolute; z-index: 3; left: 50%; bottom: 34px; display: flex; align-items: center; gap: 12px; transform: translateX(-50%); }
.hl-ctrl .slick-nav { position: relative; top: auto; left: auto; right: auto; transform: none; }
.hl-ctrl .slick-nav.prev-arrow { transform: scaleX(-1); }
.hl-play { position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--c-accent); cursor: pointer; }
.hl-play::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(93, 74, 62, .3); }
.hl-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); pointer-events: none; }
.hl-ring circle { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-dasharray: 100; stroke-dashoffset: 100; }
.hl-ring.is-run circle { animation: hlTimer var(--hl-delay, 5.5s) linear forwards; }
.arch-hl.is-paused .hl-ring circle { animation-play-state: paused; }
@keyframes hlTimer { to { stroke-dashoffset: 0; } }
.hl-play-ico { position: absolute; left: 50%; top: 50%; width: 10px; height: 12px; margin: -6px 0 0 -5px; }
.hl-play-ico::before, .hl-play-ico::after { content: ""; position: absolute; top: 0; width: 2px; height: 12px; border-radius: 1px; background: var(--c1); }
.hl-play-ico::before { left: 1px; }
.hl-play-ico::after { right: 1px; }
.arch-hl.is-stopped .hl-play-ico::before { left: 1px; width: 0; height: 0; border-radius: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--c1); background: none; }
.arch-hl.is-stopped .hl-play-ico::after { display: none; }
.hl-play:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

@media (max-width: 991px) {
  .arch-hl { --cw: 40vw; }
  .arch-hl .hl-track { padding-left: calc((100% - var(--cw)) / 2); padding-right: calc((100% - var(--cw)) / 2); padding-bottom: 104px; }
  .hl-ctrl { bottom: 26px; }
}
@media (max-width: 760px) {
  :root { --arch-h: 44vw; }
  .arch-text { font-size: 25px; letter-spacing: .2em; }
  .arch-text.arch-sub { font-size: 52px; }
  .arch-mark { display: none; }
  .arch-hl { --cw: 68vw; --lift: 20vw; --gap: 14px; }
  .arch-hl .hl-track { padding-bottom: 92px; }
  .hl-ctrl { bottom: 22px; gap: 10px; }
  .hl-body h3 { font-size: clamp(27px, 7.6vw, 33px); }
  .hl-tag b { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-img, .hl-media::after, .hl-cta, .hl-fade img { transition: none; }
  /* senza animazioni l'arco e' gia' aperto: la hero si allunga sotto l'arco e i suoi testi salgono */
  .top-slide { height: calc(100vh + var(--arch-h)); height: calc(100svh + var(--arch-h)); }
  .big-carousel .testo { bottom: calc(6.5vh + var(--arch-h)); }
  .scroll-down { bottom: calc(6vh + var(--arch-h)); }
  .circle-rotation-link { bottom: calc(14vh + var(--arch-h)); }
}
@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
  .top-slide { height: calc(100svh - 52px + var(--arch-h)); }
  .big-carousel .testo { bottom: calc(8vh + var(--arch-h)); }
}

/* apertura (tenda iniziale), barra di prenotazione su mobile: bordeaux */
.intro-mask path { fill: var(--c-wine); }
.intro-logo .logo-emblem .u-t { fill: #c48a6f; }
@media (max-width: 991px) {
  .fixed_mobile { background: var(--c-wine); }
  .fixed_mobile button:last-child { background: var(--c-paper); color: var(--c-wine); }
}

/* telefoni stretti: linee del menu più corte, per lasciare aria al marchio */
@media (max-width: 380px) {
  .hamburger svg { width: 84px; height: 50px; }
  .hamburger-label { margin-left: -23px; }
}

/* video di sfondo su tablet e telefoni: il pulsante sale sotto la barra, in basso ci sono le frasi */
@media (max-width: 991px) {
  .bg-video-toggle { left: 4%; bottom: auto; top: calc(var(--nav-h) + 14px); width: 38px; height: 38px; }
}
