/* Casa del Gelsomino — componenti della home (assets/home.css).
   Si carica dopo site.css e footer.css. */

/* =========================================================
   MARIS TERRA B&B - HOME (assets/home.css)
   Carica dopo site.css e footer.css e ne usa i token.
========================================================= */

/* ---------- selettore lingua nella barra ---------- */
.nav-lang { position: relative; flex-shrink: 0; }
.nav-lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px;
  border: 1px solid var(--ink-20); border-radius: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-80); background: transparent;
  transition: border-color 0.3s, color 0.3s; }
.nav-lang-btn:hover { border-color: var(--oro); color: var(--oro-2); }
.nav-lang-btn .caret { width: 0; height: 0; border-left: 4px solid transparent;
  border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.nav-lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px;
  background: var(--bianco); border: 1px solid var(--ink-10); border-radius: 8px; padding: 6px;
  box-shadow: 0 18px 44px rgba(26,20,16,0.14); opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s; z-index: 120; }
.nav-lang.open .nav-lang-menu { opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 0.25s, transform 0.25s, visibility 0s 0s; }
.nav-lang-menu button { display: flex; width: 100%; justify-content: space-between; gap: 18px;
  padding: 10px 12px; border-radius: 5px; font-size: 12.5px; font-weight: 500; color: var(--ink-80);
  text-align: left; transition: background 0.2s, color 0.2s; }
.nav-lang-menu button:hover { background: var(--sabbia); color: var(--ink); }
.nav-lang-menu button b { font-size: 10.5px; letter-spacing: 0.12em; color: var(--ink-40); }
#google_translate_element { display: none; }
@media (max-width: 980px) { .nav-lang { display: none; } }
.drawer-lang { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 18px; border-bottom: 0; }
.drawer-lang button { padding: 8px 13px; border: 1px solid var(--ink-20); border-radius: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-80); }

/* ---------- HERO ---------- */
.hm-hero { position: relative; min-height: 100svh; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden; padding: 120px var(--gutter) 90px; }
.hm-hero-slides { position: absolute; inset: 0; }
.hm-hero-slides span { position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s var(--ease); }
.hm-hero-slides span.on { opacity: 1; }
.hm-hero::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,20,16,0.52) 0%, rgba(26,20,16,0.38) 45%, rgba(26,20,16,0.66) 100%); }
.hm-hero-in { position: relative; z-index: 2; max-width: 860px; }
.hm-hero .eyebrow { color: var(--oro); justify-content: center; }
/* nell'hero l'occhiello va senza il trattino davanti */
.hm-hero .eyebrow::before { display: none; }
.hm-hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.04em;
  color: var(--crema); text-wrap: balance; }
.hm-hero h1 i { font-family: var(--font-script); font-style: normal; font-weight: 500;
  color: var(--oro); font-size: 1.1em; letter-spacing: 0; }
/* il testo pieno, non trasparente: sopra una foto chiara il velo dell'hero non
   basta comunque (misurato 2,27:1). Per arrivare a 4,5 servirebbe portare la
   fascia centrale del gradiente da 0.38 a 0.62, ma le foto verrebbero piu' scure:
   e' una scelta di grafica, non tecnica. */
.hm-hero p { margin: 22px auto 0; max-width: 56ch; font-size: 16px; line-height: 1.75;
  color: var(--crema); text-shadow: 0 1px 14px rgba(26,20,16,0.45); }
.hm-hero-cta { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hm-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 1.5px solid rgba(251,247,238,0.5); border-radius: 14px; }
.hm-scroll::after { content: ''; position: absolute; left: 50%; top: 9px; width: 2px; height: 7px;
  margin-left: -1px; background: var(--crema); border-radius: 2px; animation: hmScroll 1.9s infinite; }
@keyframes hmScroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(13px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- BLOCCO A DUE COLONNE ---------- */
.hm-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 72px); align-items: center; }
.hm-split.rovescio .hm-split-txt { order: 2; }
.hm-split-txt p { margin-top: 16px; color: var(--ink-80); font-size: 14.5px; line-height: 1.85; }
.hm-split-txt p strong { color: var(--ink); font-weight: 600; }
.hm-split-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hm-figure { position: relative; }
.hm-figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
/* due foto sovrapposte: una grande e una piccola appoggiata sopra, in basso a
   sinistra, staccata da un bordo del colore del fondo */
.hm-duo { position: relative; padding-left: clamp(20px, 7%, 76px);
  padding-bottom: clamp(46px, 15%, 118px); }
.hm-duo img { display: block; border-radius: 12px; }
.hm-duo-grande { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hm-duo-piccola { position: absolute; left: 0; bottom: 0; width: 58%; aspect-ratio: 4 / 3;
  object-fit: cover; border: 8px solid var(--bianco);
  box-shadow: 0 26px 64px rgba(26,20,16,0.22); }
/* dove la sezione ha il fondo crema il bordo deve essere crema, se no si stacca */
.section[style*="crema"] .hm-duo-piccola, .hm-duo.su-crema .hm-duo-piccola { border-color: var(--crema); }
.hm-dati { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hm-dati span { padding: 8px 15px; border: 1px solid var(--ink-20); border-radius: 40px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-80); }
.hm-punti { list-style: none; margin-top: 24px; display: grid; gap: 13px; }
.hm-punti li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.75; color: var(--ink-80); }
.hm-punti li::before { content: ''; position: absolute; left: 0; top: 9px; width: 13px; height: 2px; background: var(--oro); }

/* ---------- SERVIZI ---------- */
.hm-serv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 60px;
  background: var(--ink-10); border: 1px solid var(--ink-10); border-radius: 10px; overflow: hidden; }
.hm-serv div { background: var(--bianco); padding: 30px 26px; }
.hm-serv h3 { font-size: 14px; letter-spacing: -0.01em; margin-bottom: 9px; }
.hm-serv p { font-size: 13px; line-height: 1.7; color: var(--ink-60); }

/* ---------- RECENSIONI ---------- */
.hm-rev { position: relative; background: var(--ink); color: var(--crema); overflow: hidden; }
.hm-rev-bg { position: absolute; inset: 0; opacity: 0.16; }
.hm-rev-bg img { width: 100%; height: 100%; object-fit: cover; }
.hm-rev-in { position: relative; z-index: 2; }
.hm-rev .eyebrow { color: var(--oro); }
.hm-rev .h-display { color: var(--crema); }
.hm-rev .h-display em { color: var(--oro); }
.hm-rev-slider { position: relative; margin-top: 52px; }
.hm-rev-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px; }
.hm-rev-grid::-webkit-scrollbar { display: none; }
.hm-rev-card { scroll-snap-align: start; }
.hm-rev-nav { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 30px; }
.hm-rev-nav button { width: 44px; height: 44px; border: 1px solid rgba(251,247,238,0.3);
  border-radius: 50%; color: var(--crema); display: inline-flex; align-items: center;
  justify-content: center; transition: all 0.3s var(--ease); }
.hm-rev-nav button:hover:not(:disabled) { background: var(--oro); border-color: var(--oro); color: var(--ink); }
.hm-rev-nav button:disabled { opacity: 0.3; cursor: not-allowed; }
.hm-rev-nav button svg { width: 15px; height: 15px; }
.hm-rev-punti { display: flex; gap: 7px; margin: 0 8px; }
.hm-rev-punti span { width: 7px; height: 7px; border-radius: 50%; background: rgba(251,247,238,0.28);
  transition: background 0.3s, width 0.3s; }
.hm-rev-punti span.on { background: var(--oro); width: 22px; border-radius: 4px; }
.hm-rev-card { background: rgba(251,247,238,0.055); border: 1px solid rgba(251,247,238,0.12);
  border-radius: 10px; padding: 28px 26px; display: flex; flex-direction: column; gap: 15px; }
.hm-rev-stars { display: flex; gap: 3px; color: var(--oro); font-size: 13px; letter-spacing: 2px; }
.hm-rev-card p { font-size: 13.5px; line-height: 1.85; color: rgba(251,247,238,0.84); flex: 1; }
.hm-rev-chi { display: flex; align-items: center; gap: 12px; padding-top: 15px;
  border-top: 1px solid rgba(251,247,238,0.12); }
.hm-rev-chi img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: rgba(251,247,238,0.1); }
.hm-rev-chi b { display: block; font-size: 13px; color: var(--crema); }
.hm-rev-chi small { font-size: 11px; color: rgba(251,247,238,0.55); letter-spacing: 0.05em; }

/* ---------- FASCIA A TUTTA LARGHEZZA ---------- */
.hm-band { position: relative; min-height: 420px; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 90px var(--gutter); overflow: hidden; }
.hm-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-band::after { content: ''; position: absolute; inset: 0; background: rgba(26,20,16,0.56); }
.hm-band-in { position: relative; z-index: 2; max-width: 720px; }
.hm-band .eyebrow { color: var(--oro); justify-content: center; }
.hm-band .eyebrow::before { background: var(--oro); }
.hm-band .h-display { color: var(--crema); }
.hm-band .h-display em { color: var(--oro); }

/* ---------- GALLERIA ---------- */
.hm-gal { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hm-gal button { position: relative; padding: 0; border-radius: 8px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--sabbia); }
.hm-gal button:nth-child(1), .hm-gal button:nth-child(10) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }
.hm-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.hm-gal button:hover img { transform: scale(1.05); }
.hm-gal-piu { grid-column: span 1; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--crema); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; }
.hm-lb { position: fixed; inset: 0; z-index: 400; background: rgba(26,20,16,0.96);
  display: none; flex-direction: column; }
.hm-lb.open { display: flex; }
.hm-lb-top { display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter); color: rgba(251,247,238,0.75); font-size: 12px; letter-spacing: 0.1em; }
.hm-lb-top button { color: var(--crema); font-size: 26px; line-height: 1; }
.hm-lb-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 60px; }
.hm-lb-scroll div { max-width: 900px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 20px);
  display: flex; flex-direction: column; gap: 18px; }
.hm-lb-scroll img { width: 100%; border-radius: 8px; }

/* ---------- METE ---------- */
.hm-dest { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hm-dest article { border: 1px solid var(--ink-10); border-radius: 10px; overflow: hidden;
  background: var(--bianco); display: flex; flex-direction: column; }
.hm-dest img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hm-dest-txt { padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hm-dest-txt small { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--oro-2); font-weight: 700; }
.hm-dest-txt h3 { font-size: 17px; }
.hm-dest-txt p { font-size: 13px; line-height: 1.75; color: var(--ink-60); flex: 1; }

/* ---------- FAQ ---------- */
.hm-faq { margin-top: 46px; max-width: 860px; }
.hm-faq details { border-bottom: 1px solid var(--ink-10); }
.hm-faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: 15px; font-weight: 600; color: var(--ink); }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  margin-top: -7px; border-right: 2px solid var(--oro-2); border-bottom: 2px solid var(--oro-2);
  transform: rotate(45deg); transition: transform 0.3s var(--ease); }
.hm-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.hm-faq-r { padding: 0 44px 24px 0; font-size: 14px; line-height: 1.85; color: var(--ink-80); }

/* ---------- CONTATTI E MAPPA ---------- */
.hm-cont { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 4vw, 60px); align-items: start; }
.hm-cont-voce { padding: 20px 0; border-bottom: 1px solid var(--ink-10); }
.hm-cont-voce:first-of-type { padding-top: 0; }
.hm-cont-voce small { display: block; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--oro-2); font-weight: 700; margin-bottom: 8px; }
.hm-cont-voce a, .hm-cont-voce p { font-size: 15px; color: var(--ink); display: block; }
.hm-cont-voce a:hover { color: var(--oro-2); }
.hm-mappa { position: relative; border-radius: 10px; overflow: hidden; background: var(--sabbia);
  min-height: 420px; border: 1px solid var(--ink-10); }
.hm-mappa iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.hm-mappa-bloccata { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 40px;
  background: var(--sabbia); }
.hm-mappa-bloccata p { font-size: 13.5px; line-height: 1.75; color: var(--ink-60); max-width: 42ch; }

/* ---------- FORM DI PRENOTAZIONE ---------- */
.hm-book { background: var(--sabbia); }
.hm-book-card { max-width: 720px; margin: 42px auto 0; background: var(--bianco);
  border: 1px solid var(--ink-10); border-radius: 12px; padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 24px 60px rgba(26,20,16,0.07); }
.hm-book-riga { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.hm-campo { display: flex; flex-direction: column; gap: 7px; }
.hm-campo label { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-60); }
.hm-campo input, .hm-campo select { padding: 13px 15px; border: 1px solid var(--ink-20);
  border-radius: 7px; font-family: var(--font-sans); font-size: 14px; color: var(--ink);
  background: var(--bianco); transition: border-color 0.25s; width: 100%; }
.hm-campo input:focus, .hm-campo select:focus { border-color: var(--oro); }
.hm-conta { display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--ink-20); border-radius: 7px; padding: 7px 10px; }
.hm-conta button { width: 32px; height: 32px; border: 1px solid var(--ink-20); border-radius: 50%;
  font-size: 17px; line-height: 1; color: var(--ink-80); transition: all 0.25s; }
.hm-conta button:hover:not(:disabled) { border-color: var(--oro); color: var(--oro-2); }
.hm-conta button:disabled { opacity: 0.3; cursor: not-allowed; }
.hm-conta span { font-size: 15px; font-weight: 600; }
.hm-book .btn { width: 100%; justify-content: center; margin-top: 22px; }
.hm-book-nota { margin-top: 15px; text-align: center; font-size: 11.5px; line-height: 1.7; color: var(--ink-60); }

/* ---------- ADATTAMENTI ---------- */
@media (max-width: 1000px) {
  .hm-serv { grid-template-columns: repeat(2, 1fr); }
  .hm-rev-grid { grid-auto-columns: calc((100% - 20px) / 2); }
  .hm-dest { grid-template-columns: repeat(2, 1fr); }
  .hm-gal { grid-template-columns: repeat(3, 1fr); }
  .hm-cont { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hm-split { grid-template-columns: 1fr; }
  .hm-split.rovescio .hm-split-txt { order: 0; }
  .hm-duo { padding-left: 34px; padding-bottom: 72px; }
  .hm-duo-piccola { width: 62%; border-width: 6px; }
  .hm-rev-grid { grid-auto-columns: 100%; }
  .hm-dest { grid-template-columns: 1fr; }
  .hm-gal { grid-template-columns: repeat(2, 1fr); }
  .hm-gal button:nth-child(1), .hm-gal button:nth-child(10) { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .hm-book-riga { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hm-serv { grid-template-columns: 1fr; }
}

/* ---------- MAPPA GOOGLE (installa cookie: sta dietro il consenso) ---------- */
.hm-mappa { position: relative; border-radius: 12px; overflow: hidden; min-height: 400px;
  border: 1px solid var(--ink-10); background: var(--sabbia); }
.hm-mappa iframe { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; }
.hm-map-velo { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 30px 26px;
  background: var(--sabbia); }
.hm-map-velo p { max-width: 40ch; font-size: 13.5px; line-height: 1.7; color: var(--ink-80); }
.hm-map-velo .btn { padding: 13px 22px; font-size: 11px; }
.hm-map-velo a.min { font-size: 12px; font-weight: 600; color: var(--ink-60);
  border-bottom: 1px solid var(--ink-20); }
.hm-map-velo a.min:hover { color: var(--terra); border-color: var(--terra); }
.hm-map-nota { margin-top: 12px; font-size: 12px; color: var(--ink-60); }
/* La sezione recensioni ha il fondo scuro: qui .lead e le etichette prendono
   i colori dell'ink, che su scuro spariscono. Vanno riportati sul chiaro. */
.hm-rev .lead { color: rgba(251,247,238,0.82); }
.hm-rev .lead b { color: var(--oro); }
.hm-rev-card .lingua { display: block; margin-top: 8px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(251,247,238,0.55); }
/* «Tutte le N foto»: crema su crema non si leggeva */
.hm-gal-piu { background: var(--ink) !important; color: var(--crema) !important;
  border: 0 !important; font-weight: 700; letter-spacing: 0.1em; transition: background 0.3s; }
.hm-gal-piu:hover { background: var(--oro-2) !important; color: var(--crema) !important; }
/* Le mete sono QUATTRO: nella griglia a 3 del template la quarta restava sola
   in fondo. A due colonne si chiude, e le foto si vedono più grandi. */
.hm-dest { grid-template-columns: repeat(2, 1fr) !important; gap: 26px !important; }
@media (max-width: 780px) { .hm-dest { grid-template-columns: 1fr !important; } }
.hm-dest-txt h3 { font-size: 19px; }
.hm-dest-txt p { font-size: 13.5px; }
.hm-rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 44px; }
.hm-room { background: var(--bianco); border: 1px solid var(--ink-10); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; }
.hm-room img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hm-room-txt { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.hm-room-txt small { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--oro-2); font-weight: 700; }
.hm-room-txt h3 { margin-top: 8px; font-size: 1.42rem; }
.hm-room-txt p { margin-top: 14px; font-size: 14.5px; line-height: 1.75; color: var(--ink-80); }
.hm-room-meta { margin-top: 16px; font-size: 12.5px; font-weight: 600; color: var(--ink-60); }
.hm-room-meta b { color: var(--oro-2); }
.hm-room-cta { margin-top: auto; padding-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .hm-rooms { grid-template-columns: 1fr; } }

/* ================= PRENOTAZIONE (motore Kross incorniciato) ================= */
:root { --be-w: 345px; --be-h: 460px; --be-k: 1; }

.be { background: var(--sabbia); }
.be-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(36px, 5vw, 80px);
  align-items: start; }

/* ---------- colonna di sinistra ---------- */
.be-testo { max-width: 46ch; }
.be-punti { list-style: none; margin: 34px 0 0; display: grid; gap: 18px; }
.be-punti li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px;
  line-height: 1.7; color: var(--ink-80); }
.be-punti .ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bianco); border: 1px solid var(--ink-10); display: grid; place-items: center;
  color: var(--oro-2); }
.be-punti .ico svg { width: 17px; height: 17px; }
.be-punti b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.be-alt-row { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--ink-20);
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.be-alt-row .eti { width: 100%; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-60); margin-bottom: 4px; }
.btn-wa { display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: 8px;
  background: #25D366; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; transition: background 0.3s; }
.btn-wa:hover { background: #1da851; color: #fff; }
.btn-wa svg { width: 16px; height: 16px; }

/* ---------- colonna di destra: il riquadro ---------- */
.be-lato { width: calc(var(--be-w) * var(--be-k)); }
.be-tabs { display: flex; gap: 6px; }
.be-tab { flex: 1; padding: 12px 10px; border-radius: 10px 10px 0 0; background: rgba(255,255,255,0.5);
  border: 1px solid var(--ink-10); border-bottom: 0; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-60); white-space: nowrap;
  transition: background 0.25s, color 0.25s; }
.be-tab:hover { color: var(--ink); }
.be-tab[aria-selected="true"] { background: #fff; color: var(--ink);
  box-shadow: 0 -2px 0 var(--oro) inset; }

.be-card { background: #fff; border: 1px solid var(--ink-10); border-radius: 0 12px 12px 12px;
  box-shadow: 0 22px 60px rgba(26,20,16,0.10); overflow: hidden; }
.be-testa { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 16px 20px 14px; border-bottom: 1px solid var(--ink-10); }
.be-testa .nome { font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em; }
.be-testa .voto { font-size: 11.5px; font-weight: 600; color: var(--ink-60); white-space: nowrap; }
.be-testa .voto b { color: var(--oro-2); }

/* la finestra che ritaglia la pagina di Kross */
.be-scala { position: relative; width: calc(var(--be-w) * var(--be-k));
  height: calc(var(--be-h) * var(--be-k));
  transition: height 0.45s var(--ease); }
/* Da chiusa la finestra e' alta quanto la scheda; si allarga quando l'ospite
   comincia a usarla, perche' il calendario si apre piu' in basso. */
.be-scala.be-aperta { height: calc(630px * var(--be-k)); }
.be-crop { position: absolute; top: 0; left: 0; width: var(--be-w); height: 100%;
  overflow: hidden; background: #fff; transform: scale(var(--be-k)); transform-origin: top left; }
.be-scala.be-aperta .be-crop { height: 630px; }
.be-crop { height: 460px; }
/* Il calendario si apre 47px piu' a sinistra della scheda: la finestra deve
   partire da li', e cosi' a scheda chiusa entra in quadro la coda della colonna di
   testo di Kross. Finche' nessuno tocca il riquadro, quella striscia si copre. */
.be-maschera { position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none;
  width: calc(59px * var(--be-k)); height: 100%;
  background: linear-gradient(to right, #fff 0, #fff 39px, rgba(255,255,255,0) 59px);
  transition: opacity 0.35s var(--ease); }
.be-scala.be-aperta .be-maschera { opacity: 0; }
.be-crop iframe { position: absolute; border: 0; width: 1100px; height: 1400px;
  left: -678px; top: -660px; }

.be-velo { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; text-align: center;
  padding: 34px 26px; background: #fff; }
.be-velo p { font-size: 13.5px; line-height: 1.7; color: var(--ink-80); }
.be-velo .btn { padding: 14px 22px; font-size: 11px; }
.be-velo .be-min { font-size: 12px; font-weight: 600; color: var(--ink-60);
  border-bottom: 1px solid var(--ink-20); }
.be-velo .be-min:hover { color: var(--terra); border-color: var(--terra); }
.be-velo[data-be-attesa] p { color: var(--ink-60); font-style: italic; }

.be-piede { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 20px; border-top: 1px solid var(--ink-10); background: var(--crema); }
.be-piede span { font-size: 11.5px; color: var(--ink-60); }
.be-piede a { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--oro-2); white-space: nowrap; border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.be-piede a:hover { border-color: var(--oro-2); }

@media (max-width: 980px) {
  .be-grid { grid-template-columns: 1fr; gap: 44px; }
  .be-lato { justify-self: center; }
  .be-testo { max-width: none; }
}
