/* =====================================================================
   MAZZINI64 APARTMENTS — style.css
   Identità: mediterraneo · editoriale · luminoso · premium
   Prefisso classi: .m64-
   Palette derivata dal logo. Font: Playfair Display (display) + Manrope (UI).
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --blu:        #254B73;
  --blu-2:      #3571AB;
  --azzurro:    #63A2C7;
  --arancio:    #F17734;
  --arancio-2:  #F7A24E;
  --crema:      #FBF3E6;
  --crema-2:    #F4E7CF;
  --white:      #FFFFFF;
  --ink:        #16324B;   /* testo scuro derivato dal blu */
  --ink-soft:   #4A6076;

  --font-display: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-ui:      "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shell:      min(1280px, 92vw);
  --shell-wide: min(1480px, 94vw);
  --gutter:     clamp(20px, 5vw, 64px);

  --radius:     18px;

  --shadow-s:   0 4px 18px rgba(22, 50, 75, .08);
  --shadow-m:   0 18px 44px rgba(22, 50, 75, .14);
  --shadow-l:   0 34px 80px rgba(22, 50, 75, .20);

  --ease:       cubic-bezier(.22, 1, .36, 1);
  --nav-h:      76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--crema);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, iframe, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--arancio); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--arancio-2); color: var(--blu); }

.m64-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blu); color: var(--crema); padding: 12px 18px; border-radius: 0 0 10px 0;
}
.m64-skip:focus { left: 0; }

/* ---------- Tipografia condivisa ---------- */
.m64-eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--arancio);
  margin-bottom: 22px;
}
.m64-eyebrow--light { color: var(--arancio-2); }

.m64-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--blu);
}
.m64-h2 em { font-style: italic; color: var(--arancio); }

.m64-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- Bottoni ---------- */
.m64-btn {
  --btn-bg: var(--arancio);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.m64-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(241, 119, 52, .32); }
.m64-btn:active { transform: translateY(-1px); }

.m64-btn--solid { --btn-bg: var(--arancio); --btn-fg: var(--white); }
.m64-btn--outline-light {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.55);
}
.m64-btn--outline-light:hover { background: var(--white); color: var(--blu); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
/* outline scuro per sfondi chiari (card camere) */
.m64-btn--outline {
  background: transparent; color: var(--blu); border-color: rgba(37,75,115,.35);
}
.m64-btn--outline:hover { background: var(--blu); color: var(--white); box-shadow: 0 14px 30px rgba(37,75,115,.22); }

.m64-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .92rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--blu);
}
.m64-link i {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative; transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.m64-link i::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
}
.m64-link:hover i { background: var(--arancio); border-color: var(--arancio); color: var(--white); transform: translateX(3px); }

/* ---------- Layout sezioni ---------- */
.m64-section {
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(72px, 12vw, 148px);
}
.m64-section__head { max-width: 640px; margin-bottom: clamp(38px, 6vw, 66px); }
.m64-section__head--center { margin-inline: auto; text-align: center; }
.m64-section__head--center .m64-lead { margin-inline: auto; }

/* ---------- Progress bar ---------- */
.m64-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: transparent; pointer-events: none;
}
.m64-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--arancio), var(--arancio-2));
  transform: scaleX(0); transform-origin: 0 50%;
}

/* =====================================================================
   NAVBAR
   ===================================================================== */
.m64-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.m64-nav__inner {
  width: var(--shell-wide); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
}
.m64-nav[data-state="scrolled"] {
  background: rgba(253, 253, 253, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(22,50,75,.08), 0 14px 34px rgba(22,50,75,.09);
}

.m64-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.m64-brand__mark { height: 54px; width: auto; flex: none; }
.m64-brand__text { display: flex; flex-direction: column; line-height: 1; }
.m64-brand__name {
  font-family: var(--font-display); font-size: 1.42rem; font-weight: 500;
  color: var(--blu); letter-spacing: .005em;
}
.m64-brand__sub {
  font-size: .62rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase;
  color: var(--arancio); margin-top: 4px;
}
.m64-nav[data-state="top"] .m64-brand__name { color: var(--white); }
.m64-nav[data-state="top"] .m64-brand__sub { color: var(--arancio-2); }

.m64-nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.m64-nav__links a {
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); position: relative; padding-block: 6px; white-space: nowrap;
  transition: color .25s var(--ease);
}
.m64-nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--arancio); transition: width .3s var(--ease);
}
.m64-nav__links a:hover { color: var(--arancio); }
.m64-nav__links a:hover::after { width: 100%; }
.m64-nav[data-state="top"] .m64-nav__links a { color: rgba(255,255,255,.9); }
.m64-nav[data-state="top"] .m64-nav__links a:hover { color: var(--white); }

.m64-nav__cta { padding: 11px 24px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }

.m64-burger {
  display: none; width: 44px; height: 44px; flex: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.m64-burger span {
  display: block; width: 24px; height: 2px; background: var(--blu);
  transition: transform .3s var(--ease), opacity .2s var(--ease), background-color .3s var(--ease);
}
.m64-nav[data-state="top"] .m64-burger span { background: var(--white); }
body.m64-menu-open .m64-burger span { background: var(--blu); }
body.m64-menu-open .m64-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.m64-menu-open .m64-burger span:nth-child(2) { opacity: 0; }
body.m64-menu-open .m64-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Menu mobile (fullscreen) ---------- */
.m64-mobile {
  position: fixed; inset: 0; z-index: 95;
  background: var(--crema);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  overflow: hidden;
}
.m64-mobile[hidden] { display: flex; }           /* mantiene la transizione */
body.m64-menu-open .m64-mobile { transform: translateY(0); }
.m64-mobile__arch {
  position: absolute; right: -18%; bottom: -30%;
  width: 78vw; aspect-ratio: 1; border-radius: 50%;
  border: 40px solid var(--crema-2); opacity: .6; pointer-events: none;
}
.m64-mobile__label {
  font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--arancio); margin-bottom: 26px;
}
.m64-mobile__links { display: flex; flex-direction: column; gap: 6px; }
.m64-mobile__links a {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 2.9rem); font-weight: 400;
  color: var(--blu); display: flex; align-items: baseline; gap: 16px;
  padding-block: 8px; border-bottom: 1px solid rgba(22,50,75,.12);
}
.m64-mobile__links a i {
  font-family: var(--font-ui); font-size: .8rem; font-weight: 700; font-style: normal;
  color: var(--arancio); letter-spacing: .1em;
}
.m64-mobile__cta { margin-top: 32px; align-self: flex-start; }
.m64-mobile__foot {
  margin-top: 30px; display: flex; gap: 22px; flex-wrap: wrap;
  font-size: .9rem; color: var(--ink-soft);
}
.m64-mobile__foot a:hover { color: var(--arancio); }

/* =====================================================================
   HERO
   ===================================================================== */
.m64-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* contenuto in basso — differenzia da Casa Clementina */
  padding: var(--nav-h) var(--gutter) clamp(60px, 12vh, 120px);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.m64-hero__media { position: absolute; inset: 0; z-index: -2; }
.m64-hero__img,
.m64-hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.m64-hero__video:not([hidden]) ~ picture { display: none; }
.m64-hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,50,75,.42) 0%, rgba(22,50,75,.08) 34%, rgba(22,50,75,.66) 100%),
    linear-gradient(90deg, rgba(22,50,75,.44) 0%, rgba(22,50,75,0) 60%);
}
/* arco decorativo grande, ispirato al logo */
.m64-hero__arch {
  position: absolute; right: -14vw; bottom: -30vh;
  width: 62vw; max-width: 900px; aspect-ratio: 1;
  border: clamp(28px, 4vw, 60px) solid rgba(251, 243, 230, .12);
  border-radius: 50%;
  pointer-events: none;
}

.m64-hero__content { position: relative; max-width: 780px; }
.m64-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(10, 28, 45, .35);
}
.m64-hero__title span { display: block; }
.m64-hero__title em { font-style: italic; color: var(--arancio-2); }
.m64-hero__lead {
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  max-width: 40ch;
  color: rgba(255,255,255,.92);
}
.m64-hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.m64-scrollcue {
  position: absolute; left: var(--gutter); bottom: 22px;
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.m64-scrollcue i {
  width: 1px; height: 40px; background: rgba(255,255,255,.5); position: relative; overflow: hidden;
}
.m64-scrollcue i::after {
  content: ""; position: absolute; inset: 0; background: var(--arancio-2);
  animation: m64-cue 2.2s var(--ease) infinite;
}
@keyframes m64-cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}
/* la scroll-cue in basso a sinistra si sovrappone al contenuto: la nascondo sotto una certa altezza */
@media (max-height: 640px), (max-width: 600px) { .m64-scrollcue { display: none; } }

/* =====================================================================
   INTRO
   ===================================================================== */
.m64-intro {
  display: grid;
  grid-template-columns: 40% 1fr;   /* testo 40 / foto 60 */
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
}
.m64-intro__facts {
  margin-top: 40px; display: flex; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap;
}
.m64-intro__facts li { display: flex; flex-direction: column; }
.m64-intro__facts strong {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; color: var(--arancio);
}
.m64-intro__facts span {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
}
.m64-intro__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-m);
  margin-block: clamp(0px, 3vw, 40px) clamp(-40px, -3vw, 0px);   /* leggera sovrapposizione editoriale */
}
.m64-intro__media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.m64-intro__media figcaption {
  position: absolute; left: 20px; bottom: 18px;
  background: rgba(251,243,230,.92); color: var(--blu);
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
}

/* =====================================================================
   APPARTAMENTI — layout editoriale alternato
   ===================================================================== */
.m64-apts { position: relative; }
.m64-apts__list { display: flex; flex-direction: column; gap: clamp(48px, 9vw, 120px); }

.m64-apt {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.m64-apt--flip { grid-template-columns: .85fr 1.15fr; }
.m64-apt--flip .m64-apt__photo { order: 2; }

.m64-apt__photo {
  position: relative; display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-m);
}
.m64-apt__photo img,
.m64-apt__photo video {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .8s var(--ease);
}
.m64-apt__photo:hover img,
.m64-apt__photo:hover video { transform: scale(1.06); }
.m64-apt__num {
  position: absolute; top: 18px; left: 18px;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--white);
  width: 46px; height: 46px; display: grid; place-items: center;
  background: rgba(37, 75, 115, .82); border-radius: 50%;
  backdrop-filter: blur(3px);
}
.m64-apt__name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2.25rem); color: var(--blu); line-height: 1.12;
}
.m64-apt__sub {
  margin-top: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--arancio);
}
.m64-apt__desc { margin-top: 16px; color: var(--ink-soft); max-width: 44ch; }
.m64-apt__specs {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 18px;
}
.m64-apt__specs li {
  display: flex; align-items: center; gap: 8px;
  font-size: .86rem; font-weight: 600; color: var(--blu);
  padding: 7px 14px 7px 12px;
  background: var(--white); border: 1px solid rgba(37,75,115,.12);
  border-radius: 999px;
}
.m64-apt__specs li::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: var(--blu); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.m64-apt__body .m64-link { margin-top: 26px; }

.m64-apt__price {
  margin-top: 24px;
  display: flex; align-items: baseline; gap: 8px;
}
.m64-apt__price strong {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.3rem); color: var(--arancio); line-height: 1;
}
.m64-apt__price span {
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.m64-apt__actions {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px;
}
.m64-apt__actions .m64-btn { padding: 13px 26px; font-size: .9rem; }

/* icone (inline SVG via mask, monocromatiche) */
[data-ico="guests"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3.5 19c0-3 2.5-5 5.5-5s5.5 2 5.5 5'/%3E%3Cpath d='M16 6a3 3 0 0 1 0 6M17 14c2.4.4 4 2.3 4 5'/%3E%3C/svg%3E"); }
[data-ico="bed"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M3 7v11M3 12h18v6M21 12v-1a3 3 0 0 0-3-3H8v4'/%3E%3C/svg%3E"); }
[data-ico="bath"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 12V6a2 2 0 0 1 4 0M3 12h18v3a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4zM6 19l-1 2M18 19l1 2'/%3E%3C/svg%3E"); }
[data-ico="size"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 20V4h16M4 20h16V4M9 20v-4M14 20v-8M4 9h4M4 14h8'/%3E%3C/svg%3E"); }
[data-ico="wifi"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M2 8.5a15 15 0 0 1 20 0M5 12a10 10 0 0 1 14 0M8 15.5a5 5 0 0 1 8 0'/%3E%3Ccircle cx='12' cy='19' r='1.3' fill='%23000'/%3E%3C/svg%3E"); }
[data-ico="ac"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='3' y='4' width='18' height='9' rx='2'/%3E%3Cpath d='M7 17c0 1.5-1 2-1 3M12 17c0 1.5-1 2-1 3M17 17c0 1.5-1 2-1 3M6 9h12'/%3E%3C/svg%3E"); }
[data-ico="kitchen"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M7 3v6M10 3v6a3 3 0 0 1-6 0M7 9v12M17 3c-2 0-3 2-3 5s1 4 3 4 3-1 3-4-1-5-3-5zM17 12v9'/%3E%3C/svg%3E"); }
[data-ico="tv"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='12' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"); }
[data-ico="linen"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 7c2-3 4-3 6 0s4 3 6 0 4-3 4 0v13H4z'/%3E%3Cpath d='M4 15c2-3 4-3 6 0s4 3 6 0 4-3 4 0'/%3E%3C/svg%3E"); }
[data-ico="key"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='8' cy='8' r='4.2'/%3E%3Cpath d='M11 11l9 9M17 17l2-2M15 15l2-2'/%3E%3C/svg%3E"); }
[data-ico="parking"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='4' y='4' width='16' height='16' rx='3'/%3E%3Cpath d='M9 17V8h4a3 3 0 0 1 0 6H9'/%3E%3C/svg%3E"); }
[data-ico="help"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9a2.5 2.5 0 0 1 4.5 1.5c0 1.7-2 2-2 3.5'/%3E%3Ccircle cx='12' cy='17' r='1.1' fill='%23000'/%3E%3C/svg%3E"); }
[data-ico="coffee"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 8h13v6a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4z'/%3E%3Cpath d='M17 9h2.5a2.5 2.5 0 0 1 0 5H17M7 3c-.6.8-.6 1.7 0 2.5M11 3c-.6.8-.6 1.7 0 2.5M6 21h12'/%3E%3C/svg%3E"); }
[data-ico="fridge"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M6 10h12M10 5.5v2M10 13v3'/%3E%3C/svg%3E"); }
[data-ico="quiet"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M18.5 6a9 9 0 0 1 0 12'/%3E%3C/svg%3E"); }

/* =====================================================================
   SERVIZI
   ===================================================================== */
.m64-services { background: var(--white); width: 100%; }
.m64-services > * { width: var(--shell); margin-inline: auto; }
.m64-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(37,75,115,.12);
  border: 1px solid rgba(37,75,115,.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.m64-service {
  background: var(--white);
  padding: clamp(26px, 4vw, 44px) clamp(20px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 18px;
  transition: background-color .3s var(--ease);
}
.m64-service::before {
  content: ""; width: 40px; height: 40px;
  background: var(--blu);
  -webkit-mask: var(--ico) center / 100% no-repeat; mask: var(--ico) center / 100% no-repeat;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.m64-service span { font-weight: 600; font-size: 1.02rem; color: var(--blu); }
.m64-service:hover { background: var(--crema); }
.m64-service:hover::before { background: var(--arancio); transform: translateY(-3px); }
.m64-services__note {
  margin-top: 20px; font-size: .82rem; color: var(--ink-soft);
}

/* =====================================================================
   EXPERIENCE
   ===================================================================== */
.m64-exp {
  position: relative;
  min-height: 84vh;
  display: flex; align-items: center;
  padding: clamp(60px, 12vw, 130px) var(--gutter);
  overflow: hidden;
  color: var(--white);
}
.m64-exp__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.m64-exp__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(22,50,75,.72) 0%, rgba(22,50,75,.28) 70%, rgba(22,50,75,.5) 100%);
}
.m64-exp__panel {
  max-width: 520px;
  background: var(--crema);
  color: var(--ink);
  padding: clamp(30px, 5vw, 56px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-l);
}
.m64-exp__panel p { color: var(--ink-soft); margin: 18px 0 28px; }
.m64-exp__panel .m64-h2 { margin-bottom: 4px; }

/* =====================================================================
   GALLERY (editorial / masonry)
   ===================================================================== */
.m64-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: clamp(10px, 1.6vw, 20px);
}
.m64-gallery__item {
  position: relative; overflow: hidden;
  border-radius: 10px;
  grid-row: span 1;
}
.m64-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.m64-gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(37,75,115,0) 55%, rgba(37,75,115,.35));
  opacity: 0; transition: opacity .35s var(--ease);
}
.m64-gallery__item:hover img { transform: scale(1.07); }
.m64-gallery__item:hover::after { opacity: 1; }
.m64-gallery__item--tall { grid-row: span 2; }
.m64-gallery__item--wide { grid-column: span 2; }
.m64-gallery__item:first-child { border-radius: 10px; }

.m64-gallery__more { margin-top: clamp(28px, 4vw, 44px); text-align: center; }

/* =====================================================================
   PRENOTAZIONE (CTA blu)
   ===================================================================== */
.m64-booking {
  position: relative;
  background: var(--blu);
  color: var(--white);
  text-align: center;
  padding: clamp(70px, 13vw, 150px) var(--gutter);
  overflow: hidden;
}
.m64-booking__arch {
  position: absolute; left: 50%; top: -40%;
  width: min(680px, 90vw); aspect-ratio: 1; translate: -50% 0;
  border: 60px solid rgba(99, 162, 199, .18);
  border-radius: 50%;
  pointer-events: none;
}
.m64-booking__inner { position: relative; max-width: 640px; margin-inline: auto; }
.m64-booking__inner .m64-h2 { color: var(--white); }
.m64-booking__inner .m64-h2 em { color: var(--arancio-2); }
.m64-booking__inner p { margin: 18px 0 32px; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.m64-booking__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   DOVE SIAMO
   ===================================================================== */
.m64-distance-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.6vw, 18px);
  margin-bottom: clamp(28px, 5vw, 52px);
}
.m64-distance-cards li {
  background: var(--white);
  border: 1px solid rgba(37,75,115,.12);
  border-radius: 12px 12px 12px 12px;
  padding: clamp(18px, 2.4vw, 28px);
  display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden;
}
.m64-distance-cards li::after {
  content: ""; position: absolute; right: -22px; top: -22px;
  width: 60px; height: 60px; border-radius: 50%;
  border: 8px solid var(--crema-2);
}
.m64-distance-cards strong {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--arancio); line-height: 1;
}
.m64-distance-cards span {
  font-size: .8rem; font-weight: 600; color: var(--blu);
}

.m64-location__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.m64-location__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-m);
  background: var(--crema-2);
}
.m64-location__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; }
.m64-location__info { display: flex; flex-direction: column; gap: 30px; }
.m64-infoblock h3 {
  font-family: var(--font-ui); font-size: .78rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--arancio); margin-bottom: 10px;
}
.m64-infoblock p { color: var(--ink-soft); }
.m64-infoblock .m64-link { margin-top: 12px; }
.m64-distances li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid rgba(37,75,115,.14);
}
.m64-distances li span { color: var(--ink-soft); }
.m64-distances li strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--blu); font-weight: 600; }

/* =====================================================================
   RECENSIONI (slider)
   ===================================================================== */
.m64-reviews { overflow: hidden; }
.m64-reviews__viewport { overflow: hidden; }
.m64-reviews__track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  transition: transform .7s var(--ease);
  will-change: transform;
}
.m64-review {
  flex: 0 0 calc((100% - 2 * clamp(16px, 2vw, 28px)) / 3);  /* 3 su desktop */
  background: var(--crema);
  border: 1px solid rgba(37,75,115,.12);
  border-radius: 6px 6px 6px 6px;
  padding: clamp(26px, 3vw, 38px);
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
}
.m64-review::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px;
  background: var(--arancio); border-radius: 0 4px 4px 0;
}
.m64-review__stars { color: var(--arancio); letter-spacing: 3px; font-size: 1rem; }
.m64-review__text {
  font-family: var(--font-display); font-size: 1.12rem; line-height: 1.6; font-style: italic;
  color: var(--ink);
}
.m64-review__name {
  margin-top: auto; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blu);
}
.m64-reviews__controls {
  margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 20px;
}
.m64-reviews__btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(37,75,115,.3);
  color: var(--blu); font-size: 1.4rem; line-height: 1; display: grid; place-items: center;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.m64-reviews__btn:hover { background: var(--arancio); border-color: var(--arancio); color: var(--white); }
.m64-reviews__dots { display: flex; gap: 8px; }
.m64-reviews__dots button {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(37,75,115,.25);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.m64-reviews__dots button[aria-current="true"] { background: var(--arancio); transform: scale(1.4); }

/* =====================================================================
   CONTATTI
   ===================================================================== */
.m64-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.m64-contact__list { border-top: 1px solid rgba(37,75,115,.16); }
.m64-contact__list li {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid rgba(37,75,115,.16);
  flex-wrap: wrap;
}
.m64-contact__k {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--arancio);
}
.m64-contact__list a { font-family: var(--font-display); font-size: 1.15rem; color: var(--blu); }
.m64-contact__list a:hover { color: var(--arancio); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.m64-footer { background: #142c42; color: rgba(255,255,255,.78); }
.m64-footer__inner {
  width: var(--shell); margin-inline: auto;
  padding: clamp(56px, 9vw, 96px) 0 44px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr .8fr;
  gap: clamp(28px, 4vw, 56px);
}
.m64-footer__brand img { height: 60px; width: auto; margin-bottom: 16px; }
.m64-footer__name {
  font-family: var(--font-display); font-size: 1.4rem; color: var(--white); font-weight: 500;
}
.m64-footer__name span {
  display: block; font-family: var(--font-ui); font-size: .62rem; font-weight: 700;
  letter-spacing: .34em; text-transform: uppercase; color: var(--arancio-2); margin-top: 4px;
}
.m64-footer__tag { margin-top: 16px; max-width: 34ch; font-size: .92rem; }
.m64-footer__col h3 {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--arancio); margin-bottom: 16px;
}
.m64-footer__col a, .m64-footer__col span { display: block; padding: 5px 0; font-size: .94rem; }
.m64-footer__col a:hover { color: var(--white); }
.m64-footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
}
.m64-footer__bar p {
  width: var(--shell); margin-inline: auto; padding: 22px 0;
  font-size: .8rem; color: rgba(255,255,255,.5);
}

/* =====================================================================
   WHATSAPP FLOAT
   ===================================================================== */
.m64-wa {
  position: fixed; z-index: 90;
  right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 26px rgba(4, 45, 25, .34);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.m64-wa svg { width: 32px; height: 32px; }
.m64-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
  animation: m64-wa-pulse 2.6s var(--ease) infinite;
}
.m64-wa:hover { transform: translateY(-4px) scale(1.05); }
@keyframes m64-wa-pulse { 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.m64-lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(15, 30, 45, .94);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 5vw, 60px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.m64-lightbox[hidden] { display: none; }
.m64-lightbox.is-open { opacity: 1; }
.m64-lightbox__stage { max-width: min(1100px, 92vw); max-height: 86vh; }
.m64-lightbox__stage img {
  max-width: 100%; max-height: 86vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.m64-lightbox__close {
  position: absolute; top: 20px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12);
  color: #fff; font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
}
.m64-lightbox__close:hover { background: var(--arancio); }
.m64-lightbox__nav {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.8rem; display: grid; place-items: center;
  margin: 0 clamp(4px, 2vw, 22px);
}
.m64-lightbox__nav:hover { background: var(--arancio); }

/* =====================================================================
   MODALE PRENOTAZIONE (calendario + invio WhatsApp)
   ===================================================================== */
.m64-book-overlay {
  position: fixed; inset: 0; z-index: 160;
  background: rgba(15, 30, 48, .58);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(14px, 4vw, 40px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.m64-book-overlay[hidden] { display: none; }
.m64-book-overlay.is-open { opacity: 1; }

.m64-book-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--crema);
  border-radius: 26px;
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-l);
  transform: translateY(16px) scale(.98);
  transition: transform .35s var(--ease);
}
.m64-book-overlay.is-open .m64-book-modal { transform: translateY(0) scale(1); }

.m64-book-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(37,75,115,.25);
  color: var(--blu); font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.m64-book-close:hover { background: var(--arancio); border-color: var(--arancio); color: var(--white); }

.m64-book-head { display: flex; gap: 16px; align-items: flex-start; padding-right: 40px; margin-bottom: 24px; }
.m64-book-head-icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(241,119,52,.35); color: var(--arancio);
  display: grid; place-items: center;
}
.m64-book-head-icon svg { width: 22px; height: 22px; }
.m64-book-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--arancio); margin-bottom: 6px;
}
.m64-book-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--blu); line-height: 1.18;
}
.m64-book-sub { margin-top: 8px; font-size: .86rem; color: var(--ink-soft); }

.m64-book-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.m64-book-navbtn {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  border: 1.5px solid rgba(37,75,115,.25); color: var(--blu);
  font-size: 1.1rem; display: grid; place-items: center;
  transition: background-color .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease);
}
.m64-book-navbtn:hover:not(:disabled) { background: var(--blu); color: var(--white); border-color: var(--blu); }
.m64-book-navbtn:disabled { opacity: .3; }
.m64-book-nav-label {
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); text-align: center;
}

.m64-book-months {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 18px;
}
.m64-book-month {
  background: var(--white); border: 1px solid rgba(37,75,115,.1);
  border-radius: 16px; padding: 14px;
}
.m64-book-month h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  color: var(--blu); margin-bottom: 10px; text-align: center;
}
.m64-book-weekdays, .m64-book-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.m64-book-weekdays span {
  text-align: center; font-size: .64rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--arancio);
}
.m64-book-day, .m64-book-day-empty { aspect-ratio: 1; }
.m64-book-day {
  border-radius: 50%; font-size: .8rem; font-weight: 600; color: var(--ink);
  display: grid; place-items: center; width: 100%;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.m64-book-day:disabled { color: rgba(22,50,75,.25); text-decoration: line-through; }
.m64-book-day:not(:disabled):hover { background: rgba(241,119,52,.14); }
.m64-book-day.is-today { border: 1.5px solid var(--arancio); }
.m64-book-day.is-selected { background: var(--arancio); color: var(--white); }
.m64-book-day.is-in-range { background: rgba(241,119,52,.16); border-radius: 6px; }

.m64-book-summary {
  background: var(--crema-2); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.m64-book-summary-text { display: flex; gap: 20px; flex-wrap: wrap; }
.m64-book-summary-text p { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.m64-book-summary-text span { display: flex; flex-direction: column; font-size: .85rem; color: var(--blu); font-weight: 600; }
.m64-book-summary-text span b {
  font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--arancio);
}
.m64-book-summary-text .m64-book-warning { color: var(--arancio); font-weight: 700; }
.m64-book-clear {
  font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: underline; white-space: nowrap;
}
.m64-book-clear:disabled { opacity: .4; text-decoration: none; }

.m64-book-cta {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  background: #25D366; color: var(--white); border: none;
  transition: background-color .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease);
}
.m64-book-cta svg { width: 20px; height: 20px; }
.m64-book-cta:hover:not(:disabled) { transform: translateY(-2px); }
.m64-book-cta:disabled { opacity: .55; cursor: not-allowed; }
.m64-book-note { margin-top: 12px; text-align: center; font-size: .76rem; color: var(--ink-soft); }
.m64-book-mail-status {
  margin-top: 10px; text-align: center; font-size: .8rem; font-weight: 700;
  min-height: 0; opacity: 0; transition: opacity .2s ease;
}
.m64-book-mail-status:empty { margin-top: 0; }
.m64-book-mail-status.is-ok { opacity: 1; color: #2E7D46; }
.m64-book-mail-status.is-error { opacity: 1; color: #C0392B; }
.m64-book-mail-status.is-info { opacity: 1; color: var(--ink-soft); font-weight: 600; }

@media (max-width: 640px) {
  /* Modale compatta: il bottone d'invio deve vedersi senza scorrere. */
  .m64-book-modal { padding: 14px 16px 16px; }
  .m64-book-close { top: 10px; right: 10px; width: 32px; height: 32px; font-size: 1.15rem; }
  .m64-book-head { gap: 10px; margin-bottom: 8px; padding-right: 32px; }
  .m64-book-head-icon { width: 32px; height: 32px; }
  .m64-book-head-icon svg { width: 15px; height: 15px; }
  .m64-book-eyebrow { margin-bottom: 2px; }
  .m64-book-head h2 { font-size: 1.05rem; line-height: 1.15; }
  .m64-book-sub { display: none; }
  .m64-book-nav { margin-bottom: 6px; }
  .m64-book-months { grid-template-columns: 1fr; margin-bottom: 8px; }
  .m64-book-month { padding: 6px 8px 8px; }
  .m64-book-month h3 { display: none; }
  .m64-book-day, .m64-book-day-empty { aspect-ratio: auto; height: 32px; }
  .m64-book-summary { flex-direction: column; align-items: flex-start; padding: 8px 12px; margin-bottom: 10px; }
  .m64-book-clear { align-self: flex-end; }
  .m64-book-cta { padding: 14px; }
  .m64-book-note { margin-top: 6px; font-size: .68rem; }
}

/* =====================================================================
   ANIMAZIONI SCROLL (fallback: visibili anche senza JS)
   ===================================================================== */
.m64-reveal { opacity: 1; }
.js .m64-reveal { opacity: 0; }
.js .m64-reveal.is-in {
  animation: m64-reveal .8s var(--ease) forwards;
}
@keyframes m64-reveal {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: none; }
}

/* =====================================================================
   PAGINE SEMPLICI (404 / legali)
   ===================================================================== */
.m64-simplenav {
  width: var(--shell); margin-inline: auto; height: var(--nav-h);
  display: flex; align-items: center;
}
.m64-page {
  width: min(760px, 92vw); margin: clamp(40px, 10vw, 90px) auto clamp(60px, 12vw, 130px);
}
.m64-page h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.2rem); color: var(--blu); line-height: 1.1; margin-bottom: 20px;
}
.m64-page h2 {
  font-family: var(--font-display); font-weight: 500; color: var(--blu);
  font-size: 1.4rem; margin: 36px 0 12px;
}
.m64-page p, .m64-page li { color: var(--ink-soft); margin-bottom: 12px; }
.m64-page ul { list-style: disc; padding-left: 22px; }
.m64-page a:not(.m64-btn) { color: var(--arancio); text-decoration: underline; }
.m64-page .m64-btn { margin-top: 24px; }

/* =====================================================================
   PAGINA DETTAGLIO CAMERA
   ===================================================================== */

/* ---- Hero video della camera a tutto schermo (stessa logica della hero home) ---- */
.m64-room-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--nav-h) var(--gutter) clamp(60px, 12vh, 120px);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.m64-room-hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.m64-room-hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(22,50,75,.42) 0%, rgba(22,50,75,.08) 34%, rgba(22,50,75,.66) 100%),
    linear-gradient(90deg, rgba(22,50,75,.44) 0%, rgba(22,50,75,0) 60%);
}
.m64-room-hero__content {
  position: relative;
  max-width: 780px;
}
.m64-room-hero__name {
  margin-top: 12px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.05;
  text-shadow: 0 2px 26px rgba(10, 28, 45, .4);
}
.m64-room-hero__sub {
  margin-top: 12px; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .85);
}

.m64-room__wrap { width: var(--shell); margin-inline: auto; }
.m64-room__crumbs {
  padding: clamp(22px, 4vw, 40px) 0 clamp(18px, 3vw, 30px);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
}
.m64-room__crumbs a { color: var(--ink-soft); }
.m64-room__crumbs a:hover { color: var(--arancio); }
.m64-room__crumbs span { color: var(--arancio); }

.m64-room__panel { position: relative; max-width: 680px; padding-bottom: clamp(40px, 7vw, 80px); }
.m64-room__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--arancio); margin-bottom: 16px;
}
.m64-room__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--blu); line-height: 1.1;
}
.m64-room__sub {
  margin-top: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.m64-room__price {
  margin-top: 22px; display: flex; align-items: baseline; gap: 8px;
  padding-bottom: 22px; border-bottom: 1px solid rgba(37,75,115,.16);
}
.m64-room__price strong {
  font-family: var(--font-display); font-weight: 600; font-size: 2.4rem;
  color: var(--arancio); line-height: 1;
}
.m64-room__price span {
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
.m64-room__specs {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px;
}
.m64-room__specs li {
  display: flex; align-items: center; gap: 8px;
  font-size: .86rem; font-weight: 600; color: var(--blu);
  padding: 8px 15px 8px 13px;
  background: var(--white); border: 1px solid rgba(37,75,115,.12); border-radius: 999px;
}
.m64-room__specs li::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: var(--blu);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.m64-room__cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

.m64-room__section { padding-block: clamp(36px, 6vw, 72px); border-top: 1px solid rgba(37,75,115,.12); }
.m64-room__section h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--blu); margin-bottom: 20px;
}
.m64-room__section p { color: var(--ink-soft); max-width: 68ch; margin-bottom: 14px; }

.m64-room__gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.5vw, 16px);
}
.m64-room__gallery .m64-gallery__item { border-radius: 10px; aspect-ratio: 4 / 3; }
.m64-room__gallery .m64-gallery__item:first-child { border-radius: 10px; }
.m64-room__gallery .m64-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.m64-room__amenities {
  columns: 3; column-gap: 40px;
}
.m64-room__amenities li {
  break-inside: avoid; padding: 8px 0 8px 24px; position: relative;
  color: var(--ink-soft); font-size: .95rem;
}
.m64-room__amenities li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--arancio-2);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .m64-nav__links { gap: 16px; }
  .m64-nav__links a { font-size: .76rem; letter-spacing: .08em; }
}

@media (max-width: 1024px) {
  .m64-nav__links, .m64-nav__cta { display: none; }
  .m64-burger { display: flex; }

  .m64-intro { grid-template-columns: 1fr; }
  .m64-intro__media { transform: none; order: -1; }
  .m64-intro__media img { aspect-ratio: 16 / 11; }

  .m64-apt, .m64-apt--flip { grid-template-columns: 1fr; gap: 22px; }
  .m64-apt--flip .m64-apt__photo { order: -1; }
  .m64-apt__photo { order: -1; }

  .m64-services__grid { grid-template-columns: repeat(2, 1fr); }

  .m64-distance-cards { grid-template-columns: repeat(2, 1fr); }

  .m64-location__grid { grid-template-columns: 1fr; }
  .m64-location__map iframe { min-height: 340px; }

  .m64-contact { grid-template-columns: 1fr; }

  .m64-gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .m64-gallery__item--wide { grid-column: span 2; }

  .m64-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .m64-hero { justify-content: flex-end; }
  .m64-hero__title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .m64-hero__actions .m64-btn { flex: 1 1 auto; justify-content: center; }
  .m64-room-hero { justify-content: flex-end; }
  .m64-room-hero__name { font-size: clamp(2.1rem, 9vw, 3rem); }

  .m64-reviews__track { transition: transform .6s var(--ease); }

  /* Experience: titolo in alto, video come blocco a sé nel mezzo, testo+CTA in
     basso — testi FUORI dal video (non più sovrapposti), su sfondo crema piatto. */
  .m64-exp {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    color: var(--ink);
    background: var(--crema);
    padding: calc(var(--nav-h) + 24px) var(--gutter) clamp(30px, 8vw, 48px);
    gap: 22px;
  }
  .m64-exp__bg {
    position: static;
    order: 2;
    width: calc(100% + 2 * var(--gutter));
    margin-inline: calc(-1 * var(--gutter));
    height: 42vh;
    min-height: 260px;
    object-fit: cover;
    z-index: auto;
  }
  .m64-exp__overlay { display: none; }
  .m64-exp__panel { display: contents; }
  .m64-exp__box--head { order: 1; }
  .m64-exp__box--foot { order: 3; }
  .m64-exp__box--head,
  .m64-exp__box--foot {
    max-width: none;
    background: var(--white);
    color: var(--ink);
    padding: clamp(22px, 6vw, 32px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-m);
  }
  .m64-exp__box--head .m64-h2 { margin-bottom: 0; }
  .m64-exp__box--foot p { color: var(--ink-soft); margin: 0 0 20px; }

  .m64-apt__actions { width: 100%; }
  .m64-apt__actions .m64-btn { flex: 1 1 44%; justify-content: center; }

  .m64-services__grid { grid-template-columns: 1fr; }

  .m64-gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .m64-gallery__item--tall, .m64-gallery__item--wide { grid-row: span 1; grid-column: span 1; }
  /* Solo le prime 3 foto su mobile: il resto si vede nella pagina galleria completa */
  .m64-gallery__grid .m64-gallery__item:nth-child(n+4) { display: none; }

  .m64-room__gallery { grid-template-columns: repeat(2, 1fr); }
  .m64-room__amenities { columns: 2; column-gap: 26px; }

  .m64-footer__inner { grid-template-columns: 1fr; }

  .m64-contact__list a { font-size: 1.05rem; }
}

@media (max-width: 400px) {
  :root { --gutter: 18px; }
  .m64-hero__title { font-size: 2.15rem; }
  .m64-room-hero__name { font-size: 1.9rem; }
  .m64-brand__name { font-size: 1.24rem; }
  .m64-brand__mark { height: 46px; width: auto; }
  .m64-room__amenities { columns: 1; }
  .m64-room__gallery { grid-template-columns: 1fr; }
}

/* =====================================================================
   AREA CLIENTI (login / registrazione / le tue richieste)
   ===================================================================== */
.m64-account { width: min(560px, 92vw); margin: clamp(40px, 8vw, 80px) auto clamp(60px, 10vw, 120px); }
.m64-account--wide { width: min(820px, 92vw); }
.m64-account__card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-m); padding: clamp(28px, 5vw, 44px);
}
.m64-account__field { margin-bottom: 18px; }
.m64-account__field label {
  display: block; font-family: var(--font-ui); font-weight: 700; font-size: .85rem;
  color: var(--ink); margin-bottom: 6px;
}
.m64-account__input {
  width: 100%; border: 1px solid rgba(22,50,75,.16); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: .96rem; color: var(--ink); background: #fff;
}
.m64-account__input:focus { outline: none; border-color: var(--blu-2); box-shadow: 0 0 0 3px rgba(53,113,171,.15); }
.m64-account__hint { font-size: .8rem; color: var(--ink-soft); margin-top: 16px; text-align: center; }
.m64-account__error {
  background: #FCEBEA; color: #A6392E; border-radius: 10px; padding: 12px 16px;
  font-size: .88rem; margin-bottom: 18px;
}
.m64-account__success {
  background: #EAF6EE; color: #2E7D46; border-radius: 10px; padding: 12px 16px;
  font-size: .88rem; margin-bottom: 18px;
}
.m64-account__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
@media (max-width: 640px) { .m64-account__choices { grid-template-columns: 1fr; } }
.m64-account__choice {
  display: block; text-decoration: none; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-s); padding: 28px 24px; text-align: center; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.m64-account__choice:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.m64-account__choice h2 { font-family: var(--font-display); color: var(--blu); font-size: 1.3rem; margin: 0 0 8px; }
.m64-account__choice p { color: var(--ink-soft); font-size: .9rem; margin: 0 0 18px; }

.m64-account__bookings { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.m64-account__booking {
  border: 1px solid rgba(22,50,75,.12); border-radius: 12px; padding: 16px 18px;
  display: flex; align-items: center; gap: 16px;
}
.m64-account__booking-info { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; }
.m64-account__booking-info strong { font-family: var(--font-display); color: var(--blu); font-size: 1.02rem; flex: 1 1 100%; }
.m64-account__booking-info span { font-size: .86rem; color: var(--ink-soft); }
.m64-account__booking-info span b { color: var(--ink); font-weight: 700; }
.m64-account__booking-actions { flex: none; display: flex; align-items: center; gap: 10px; }
.m64-account__booking-wa,
.m64-account__booking-mail {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.m64-account__booking-wa { background: #25D366; box-shadow: 0 4px 12px rgba(37,211,102,.35); }
.m64-account__booking-mail { background: var(--blu-2); box-shadow: 0 4px 12px rgba(53,113,171,.35); }
.m64-account__booking-wa:hover,
.m64-account__booking-mail:hover { transform: scale(1.08); }
.m64-account__booking-wa svg { width: 24px; height: 24px; }
.m64-account__booking-mail svg { width: 22px; height: 22px; }
.m64-account__booking-delete {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: #FCEBEA; color: #C0392B; display: flex; align-items: center; justify-content: center;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.m64-account__booking-delete:hover { background: #C0392B; color: #fff; transform: scale(1.08); }
.m64-account__booking-delete svg { width: 18px; height: 18px; }
.m64-account__empty { color: var(--ink-soft); font-size: .92rem; }

/* =====================================================================
   AREA CLIENTI — shell con menu (desktop laterale / mobile hamburger)
   ===================================================================== */
.m64-acct-shell { display: flex; min-height: 100vh; background: var(--crema); }
.m64-acct-topbar {
  display: none; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter); background: var(--white); border-bottom: 1px solid rgba(22,50,75,.1);
  position: sticky; top: 0; z-index: 40;
}
.m64-acct-topbar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.m64-acct-topbar__brand img { height: 32px; width: auto; }
.m64-acct-topbar__brand strong { font-family: var(--font-display); color: var(--blu); font-size: 1.05rem; }
.m64-acct-burger {
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(22,50,75,.15);
  background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer;
}
.m64-acct-burger span { display: block; width: 18px; height: 2px; background: var(--ink); }

.m64-acct-sidebar {
  order: 2; width: 250px; flex: none; background: var(--white);
  border-left: 1px solid rgba(22,50,75,.1); padding: 26px 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.m64-acct-sidebar__brand {
  display: flex; align-items: center; gap: 10px; padding: 0 22px 20px;
  border-bottom: 1px solid rgba(22,50,75,.1); margin-bottom: 14px; text-decoration: none;
}
.m64-acct-sidebar__brand img { height: 34px; width: auto; }
.m64-acct-sidebar__brand strong { font-family: var(--font-display); color: var(--blu); font-size: 1.05rem; display: block; }
.m64-acct-sidebar__brand span { font-size: .7rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }

.m64-acct-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 14px; flex: 1; }
.m64-acct-nav a {
  display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none;
  color: var(--ink-soft); font-weight: 600; font-size: .92rem; transition: background-color .15s ease, color .15s ease;
}
.m64-acct-nav a:hover { background: var(--crema); color: var(--blu); }
.m64-acct-nav a[aria-current="page"] { background: var(--blu); color: #fff; }
.m64-acct-nav__logout { margin: 14px 14px 0; padding-top: 14px; border-top: 1px solid rgba(22,50,75,.1); }

.m64-acct-main { order: 1; flex: 1; min-width: 0; padding: clamp(28px, 5vw, 56px) var(--gutter) 80px; }
.m64-acct-scrim { display: none; }

@media (max-width: 860px) {
  .m64-acct-shell { flex-direction: column; }
  .m64-acct-topbar { display: flex; }
  .m64-acct-sidebar {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 300px); height: 100vh;
    transform: translateX(100%); transition: transform .28s var(--ease); z-index: 60;
    box-shadow: -14px 0 34px rgba(22,50,75,.18);
  }
  .m64-acct-sidebar[data-open="true"] { transform: translateX(0); }
  .m64-acct-scrim {
    display: block; position: fixed; inset: 0; background: rgba(22,50,75,.45);
    opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 55;
  }
  .m64-acct-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }
  .m64-acct-main { padding: 24px var(--gutter) 60px; }
}

.m64-acct-hero {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-m);
  padding: clamp(28px, 5vw, 48px); text-align: center;
}
.m64-acct-hero p.m64-eyebrow { justify-content: center; }
.m64-acct-hero h1 { font-family: var(--font-display); color: var(--blu); font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 4px 0 10px; }
.m64-acct-hero__lead { color: var(--ink-soft); font-size: .95rem; max-width: 480px; margin: 0 auto 28px; }

/* Pulsante email nella modale di prenotazione (usato solo dove presente, es. area clienti) */
.m64-book-cta--mail { background: var(--blu-2); margin-top: 10px; }
.m64-book-cta--mail:disabled { opacity: .55; }

/* =====================================================================
   PREFERS-REDUCED-MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .m64-reveal { opacity: 1 !important; transform: none !important; }
  .m64-scrollcue i::after { display: none; }
  .m64-wa::before { animation: none; }
}
