/* Stile comune ai siti Borgo Mandoleto.
   Le dimensioni tipografiche ricalcano quelle del Website Builder originale. */

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/lora-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/lora-latin-italic.woff2') format('woff2');
}

:root {
  --font: 'Lora', Georgia, serif;
  --verde: rgb(90, 125, 92);
  --verde-scuro: #2A3B2E;
  --testo: rgb(26, 26, 26);
  --bianco: #fff;
  --larghezza: 1224px;
  --header-h: 105px;
  /* due soli raggi: pillola per ciò che si tocca, --raggio-box per i contenitori di controlli; foto e sezioni restano a spigolo vivo */
  --raggio-box: 20px;
  --brand: var(--verde);
  --brand-dark: var(--verde-scuro);
  --brand-ink: var(--brand);
  --brand-deep: var(--brand-dark);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bianco);
  color: var(--testo);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(90, 125, 92, .28); }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, footer :focus-visible, .legal-bar :focus-visible, .book-bar :focus-visible { outline-color: #fff; }
a { text-underline-offset: 3px; }

/* ---------- Tipografia (testi provenienti dal builder) ---------- */
.t h1, .t h2, .t h3, .t h4, .t h5, .t h6 { margin: 0; font-weight: 600; line-height: var(--lineHeightDesktop, 1.3); }
.t p, .t ul, .t ol { margin: 0; }
.t h1 { font-size: var(--fontSizeDesktop, 64px); }
.t h2 { font-size: var(--fontSizeDesktop, 56px); }
.t h3 { font-size: var(--fontSizeDesktop, 48px); }
.t h4 { font-size: var(--fontSizeDesktop, 40px); }
.t h5 { font-size: var(--fontSizeDesktop, 26px); }
.t h6 { font-size: var(--fontSizeDesktop, 18px); }
.t p, .t li { font-size: var(--fontSizeDesktop, 16px); line-height: var(--lineHeightDesktop, 1.5); }
.t .body-large { font-size: var(--fontSizeDesktop, 18px); }
.t .body-small { font-size: var(--fontSizeDesktop, 14px); font-weight: 500; text-transform: uppercase; }
.t a { text-decoration: none; }
.t u a, .t a u { text-decoration: underline; }

/* ---------- Header ---------- */
.topbar {
  text-align: center;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}
.topbar a { color: var(--brand-ink); display: inline-block; padding: 4px 2px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg, var(--verde));
  color: var(--header-fg, #fff);
}
.site-header.over-hero {
  background: transparent;
  margin-bottom: calc(-1 * var(--header-h));
  transition: background .25s;
}
.site-header.over-hero.scrolled { background: var(--header-bg, var(--verde)); }
.site-header .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 21px 16px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}
.logo img { width: var(--logo-w, 350px); height: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 16px; display: inline-block; padding: 12px 2px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.lang { display: flex; align-items: center; gap: 2px; font-size: 14px; }
.lang a { opacity: .75; display: inline-block; padding: 12px 8px; }
.lang a[aria-current="true"] { opacity: 1; font-weight: 600; }
/* Prenotazione sempre a portata di mano: pulsante nel menu, barra fissa su telefono */
.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav .nav-cta:hover { background: var(--brand-deep); color: #fff; text-decoration: none; }
.book-bar { display: none; }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.nav-extra { display: none; }

/* Pulsante del menu: tre linee che diventano una X */
.menu-toggle { position: relative; z-index: 2; }
.menu-toggle .bar {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .2s;
}
.menu-toggle .bar:nth-child(1) { top: 15px; }
.menu-toggle .bar:nth-child(2) { top: 21px; width: 16px; }
.menu-toggle .bar:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Blocchi a griglia (ricostruiti dalle posizioni del builder) ---------- */
.blk { position: relative; overflow: hidden; background: var(--bg, transparent); }
.blk-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.blk-bg.fixed { background-attachment: fixed; background-size: cover; background-position: center; }
.blk-overlay { position: absolute; inset: 0; background: #000; opacity: var(--overlay, 0); z-index: 0; }
.blk-grid {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: calc(var(--larghezza) + 32px);
  min-height: var(--minh, auto);
  margin: 0 auto;
  padding: var(--pad, 16px 16px);
  grid-template-columns: var(--cols);
  grid-template-rows: var(--rows);
}
.el { grid-column: var(--gc); grid-row: var(--gr); z-index: var(--z, 1); min-width: 0; }
.el.t { display: flex; flex-direction: column; justify-content: var(--valign, flex-start); text-align: var(--talign, left); }
.el.img { position: relative; overflow: hidden; }
/* L'immagine riempie l'area senza allungare la riga della griglia */
.el.img > img, .el.img > a { position: absolute; inset: 0; width: 100%; height: 100%; }
.el.img img { width: 100%; height: 100%; object-fit: cover; }
.el.img a::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--img-overlay, 0); transition: opacity .2s; }
.el.img a:hover::after { opacity: calc(var(--img-overlay, 0) + .1); }
/* Foto con testo sopra: sfumatura scura in basso, dove sta il testo */
.el.img.scrim::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(20, 28, 22, .78) 0%, rgba(20, 28, 22, .45) 45%, rgba(20, 28, 22, 0) 75%);
}
.el.shape { background: var(--shape-bg); }
.el.shape.rhombus { background: none; display: flex; }
.el.shape svg { width: 100%; height: 100%; fill: var(--shape-bg); }
.el.btn-wrap { display: flex; align-items: center; justify-content: var(--bjustify, center); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 24px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: var(--fw, 500);
  text-decoration: none;
  white-space: nowrap;
  color: var(--fg, #fff);
  background: var(--bgc, #000);
  border: var(--bw, 0) solid var(--bc, transparent);
  border-radius: var(--br, 999px);
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { color: var(--fgh, var(--fg)); background: var(--bgch, var(--bgc)); border-color: var(--bch, var(--bc)); }

.gallery { display: grid; grid-template-columns: repeat(var(--gcols, 4), 1fr); gap: var(--ggap, 16px); }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: var(--gratio, 1); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery.masonry { display: block; columns: var(--gcols, 4); column-gap: var(--ggap, 16px); }
.gallery.masonry button { aspect-ratio: auto; display: block; width: 100%; margin-bottom: var(--ggap, 16px); }

.social { display: flex; gap: var(--sgap, 32px); justify-content: var(--sjustify, center); align-items: center; }
.social a { color: var(--scolor, #fff); display: inline-flex; }
.social svg { width: var(--ssize, 32px); height: var(--ssize, 32px); }

/* Contenuti esterni caricati solo con consenso (video, mappe) */
.ext {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: #e9ece6 center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ext iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ext .ext-msg {
  position: relative;
  max-width: 380px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .92);
  border-radius: var(--raggio-box);
  font-size: 14px;
}
.ext .ext-msg button { margin-top: 10px; min-height: 44px; }
.ext .ext-msg a { display: inline-block; padding: 10px 4px; }
.ext.video .play {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .65);
  cursor: pointer;
}
.ext.video .play::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 22px;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent #fff;
}
.ext.video .ext-note { position: absolute; bottom: 10px; left: 0; right: 0; font-size: 14px; color: #fff; text-shadow: 0 1px 3px #000; }
.small-btn {
  font: inherit;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--brand-ink);
  background: var(--brand-ink);
  color: #fff;
  cursor: pointer;
}
.small-btn.ghost { background: transparent; color: var(--brand-ink); }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.form label { font-size: 15px; display: block; margin-bottom: 4px; }
.form input[type=text], .form input[type=email], .form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--brand-deep) 30%, transparent);
  background: #fff;
  border-radius: 999px;
  padding: 12px 20px;
}
/* campi a una riga come i pulsanti (pillola), il testo lungo in un riquadro con lo stesso raggio dei contenitori */
.form textarea { min-height: 140px; resize: vertical; border-radius: var(--raggio-box); padding: 14px 20px; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.form .check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--verde); }
.form .btn { width: auto; height: auto; padding: 14px 36px; align-self: flex-start; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { font-size: 14px; min-height: 1em; }
.newsletter .row { display: flex; gap: 8px; }
.newsletter input[type=email] { flex: 1; border-radius: 999px; padding: 10px 16px; border: 0; }
.newsletter .btn { width: auto; height: auto; padding: 10px 22px; }
.newsletter input[type=email]::placeholder { color: #6b6f68; }
/* Il modulo newsletter sta nel footer scuro: testo chiaro e leggibile */
.newsletter .check { color: rgba(255, 255, 255, .92); font-size: 14px; }
.newsletter .check a { color: #fff; text-decoration: underline; }
.newsletter .check input { accent-color: #fff; }
.newsletter .form-msg { color: #fff; }

/* ---------- Footer extra ---------- */
.legal-bar {
  background: var(--footer-bg, var(--verde-scuro));
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .92);
  text-align: center;
  font-size: 14px;
  padding: 4px 16px 10px;
}
.legal-bar a, .legal-bar button { display: inline-block; color: inherit; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: underline; padding: 12px 8px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  color: var(--testo);
  border-radius: var(--raggio-box);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  padding: 20px 22px;
  font-size: 14px;
}
.cookie-banner h2 { font-size: 18px; margin: 0 0 6px; }
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-banner fieldset[hidden] { display: none; }
.cookie-banner fieldset { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.cookie-banner fieldset label { display: flex; gap: 8px; align-items: flex-start; }
.cookie-banner fieldset small { display: block; color: #555; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: fixed;
  border: 0;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }

/* ---------- Pagine testuali (cookie policy) ---------- */
.prose { max-width: 820px; margin: 0 auto; padding: 64px 16px; }
.prose h1 { font-size: 40px; line-height: 1.2; margin: 0 0 24px; }
.prose h2 { font-size: 24px; margin: 32px 0 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { border: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: top; }

/* ---------- Widget di prenotazione (home): una barra sola, filetti sottili ---------- */
.prenota-widget {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr .7fr auto;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--brand-deep) 24%, transparent);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(16, 25, 18, .12), 0 2px 6px rgba(16, 25, 18, .08);
}
.pw-campo { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 28px; cursor: pointer; color: var(--brand-deep); }
.pw-campo + .pw-campo::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: color-mix(in srgb, var(--brand-deep) 22%, transparent); }
.pw-campo span { font-size: 13px; letter-spacing: .04em; font-style: italic; color: color-mix(in srgb, var(--brand-deep) 78%, #fff); }
.pw-campo input, .pw-campo select {
  width: 100%; min-height: 28px; padding: 0; border: 0; background: transparent; border-radius: 0;
  font: 500 17px/1.3 Lora, Georgia, serif; color: var(--brand-deep); cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.pw-campo input::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.pw-campo:hover span { color: var(--brand-deep); }
.pw-campo:focus-within { background: color-mix(in srgb, var(--brand) 9%, #fff); }
.pw-campo:first-child:focus-within { border-radius: 999px 0 0 999px; }
.pw-campo input:focus-visible, .pw-campo select:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 4px; border-radius: 2px; }
.pw-bottone {
  margin: 8px; padding: 0 34px; min-height: 52px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand-ink); color: #fff; font: 600 16px Lora, Georgia, serif; letter-spacing: .01em;
  transition: background .3s, transform .35s cubic-bezier(.16, 1, .3, 1);
}
.pw-bottone:hover { background: var(--brand-deep); transform: translateY(-1px); }
.pw-bottone:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; }
.prenota-widget { position: relative; }
@media (max-width: 920px) {
  .prenota-widget { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--raggio-box); }
  .pw-campo { min-width: 0; }
  .pw-campo input { min-width: 0; font-size: 16px; }
  .pw-campo { padding: 12px 18px; }
  .pw-campo:first-child:focus-within { border-radius: var(--raggio-box) 0 0 0; }
  .pw-campo + .pw-campo::before { top: 18%; bottom: 18%; }
  .pw-ospiti { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--brand-deep) 18%, transparent); }
  .pw-ospiti::before { display: none; }
  .pw-bottone { grid-column: 1 / -1; margin: 0 8px 8px; }
}
@media (prefers-reduced-motion: reduce) { .pw-bottone { transition: none; } }

/* ---------- Visibilità e responsive ---------- */
@media (min-width: 921px) {
  .hide-d { display: none !important; }
}
@media (max-width: 1256px) {
  .blk-grid { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 920px) {
  :root { --header-h: 80px; }
  .hide-m { display: none !important; }
  .topbar { display: none; }
  .site-header .inner { padding: 16px; min-height: var(--header-h); }
  .logo img { width: var(--logo-wm, 205px); }
  .menu-toggle { display: block; }
  /* Menu a tutto schermo: verde bosco, carta da lettere, tipografia ampia */
  .logo { position: relative; z-index: 2; }
  .site-header.menu-open,
  .site-header.over-hero.menu-open { background: var(--brand-deep); transition: background .3s; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 32px calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
    color: #fff;
    background:
      radial-gradient(110% 45% at 100% 25%, rgba(255, 240, 214, .09), rgba(255, 240, 214, 0) 60%),
      radial-gradient(90% 50% at 0% 100%, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0) 65%),
      var(--brand-deep);
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s ease, visibility 0s linear .35s;
  }
  .nav.open { visibility: visible; opacity: 1; transition: opacity .35s ease; }
  /* cornice sottile, come un biglietto */
  .nav::before {
    content: "";
    position: fixed;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 2px;
    pointer-events: none;
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .nav > ul > li:first-child { border-top: 1px solid rgba(255, 255, 255, .14); }
  .nav > ul a {
    display: block;
    padding: 15px 0 13px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-decoration: none;
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .2s;
  }
  .nav > ul a:hover { transform: translateX(6px); text-decoration: none; }
  .nav > ul a[aria-current="page"] { font-style: italic; text-decoration: none; opacity: .72; }
  .nav .nav-cta { display: none; }
  .nav-extra { display: flex; flex-direction: column; flex: 1 0 auto; }
  .nav .nav-more { margin-bottom: 28px; }
  .nav .nav-more { flex-direction: row; flex-wrap: wrap; gap: 4px 26px; margin-top: 14px; }
  .nav .nav-more a { display: inline-block; padding: 10px 0; font-size: 18px; font-style: italic; opacity: .85; }
  .nav .nav-book {
    margin-top: auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-deep);
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
  }
  .nav-contact {
    display: flex;
    flex-direction: column;
    margin-top: 18px;
    font-style: normal;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .82);
  }
  .nav .nav-contact a { display: inline-block; padding: 4px 0; text-decoration: none; }
  .nav-contact span { padding-top: 4px; }
  .nav .lang { order: 3; flex: none; margin-top: 12px; gap: 12px; }
  .nav .lang a { padding: 10px 0; font-size: 15px; }
  /* entrata delle voci: una sola, morbida e scalata */
  .nav.open > ul > li, .nav.open .nav-extra > *, .nav.open .lang { animation: menu-in .7s cubic-bezier(.16, 1, .3, 1) both; }
  .nav.open > ul > li:nth-child(1) { animation-delay: .06s; }
  .nav.open > ul > li:nth-child(2) { animation-delay: .11s; }
  .nav.open > ul > li:nth-child(3) { animation-delay: .16s; }
  .nav.open > ul > li:nth-child(4) { animation-delay: .21s; }
  .nav.open > ul > li:nth-child(5) { animation-delay: .26s; }
  .nav.open .nav-more { animation-delay: .3s; }
  .nav.open .nav-book { animation-delay: .34s; }
  .nav.open .nav-contact, .nav.open .lang { animation-delay: .38s; }
  /* barra fissa in basso con chiamata e prenotazione */
  body { padding-bottom: 72px; }
  /* barra flottante: una capsula sospesa sopra il bordo dello schermo */
  .book-bar {
    display: flex;
    gap: 6px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 60;
    padding: 6px;
    border-radius: 999px;
    background: var(--brand-deep);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 12px 32px rgba(16, 25, 18, .28), 0 2px 6px rgba(16, 25, 18, .16);
  }
  .book-bar a, .book-bar button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    transition: background .2s, transform .2s;
  }
  .book-bar a:active, .book-bar button:active { transform: scale(.97); }
  .book-bar button { flex: 0 0 auto; padding: 0 16px 0 14px; border: 0; background: none; color: #fff; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .02em; cursor: pointer; }
  .book-bar button[hidden] { display: none; }
  .book-bar button:active, .book-bar .chat[aria-expanded="true"] { background: rgba(255, 255, 255, .12); }
  .book-bar svg { flex: none; }
  .book-bar .call { flex: 0 0 auto; padding: 0 16px 0 14px; color: #fff; }
  .book-bar .call:active { background: rgba(255, 255, 255, .1); }
  .book-bar .book { flex: 1; background: #fff; color: var(--brand-deep); }
  .menu-aperto .book-bar { display: none; }
  /* chat (chatbotx): su mobile si apre dalla barra, il pulsante tondo del widget non serve */
  .ahc-btn { display: none !important; }
  .ahc-iframe-container {
    right: 12px !important;
    left: 12px;
    width: auto !important;
    max-width: none !important;
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    height: min(560px, calc(100svh - 170px)) !important;
    max-height: none !important;
  }
  .menu-aperto .ahc-iframe-container { display: none; }
  /* schermi molto stretti: Chiama e Chat solo con l'icona */
  @media (max-width: 359px) { .book-bar .call span, .book-bar .chat span { display: none; } }
  .cookie-banner { bottom: 84px; max-height: calc(100vh - 110px); overflow: auto; }
  .blk-grid {
    min-height: var(--mminh, auto);
    padding: var(--mpad, 16px);
    grid-template-columns: var(--mcols);
    grid-template-rows: var(--mrows);
  }
  .el { grid-column: var(--mgc); grid-row: var(--mgr); }
  .t h1 { font-size: var(--fontSizeMobile, 40px); line-height: var(--lineHeightMobile, 1.3); }
  .t h2 { font-size: var(--fontSizeMobile, 36px); line-height: var(--lineHeightMobile, 1.3); }
  .t h3 { font-size: var(--fontSizeMobile, 32px); line-height: var(--lineHeightMobile, 1.3); }
  .t h4 { font-size: var(--fontSizeMobile, 24px); line-height: var(--lineHeightMobile, 1.3); }
  .t h5 { font-size: var(--fontSizeMobile, 20px); line-height: var(--lineHeightMobile, 1.3); }
  .t h6 { font-size: var(--fontSizeMobile, 18px); line-height: var(--lineHeightMobile, 1.3); }
  .t p, .t li { font-size: var(--fontSizeMobile, 16px); line-height: var(--lineHeightMobile, 1.5); }
  .t .body-small { font-size: var(--fontSizeMobile, 14px); }
  .t .body-large { font-size: var(--fontSizeMobile, 18px); }
  .gallery { grid-template-columns: repeat(var(--gmcols, 2), 1fr); gap: var(--gmgap, 16px); }
  .gallery button { aspect-ratio: var(--gmratio, 1); }
  .gallery.masonry { columns: var(--gmcols, 2); }
  .blk-bg.fixed { background-attachment: scroll; }
  .newsletter .row { flex-direction: column; }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav.open > ul > li, .nav.open .nav-extra > *, .nav.open .lang { animation: none; }
  .nav, .menu-toggle .bar { transition: none; }
  .blk-bg[autoplay] { display: none; }
}

/* ---------- Elenco articoli (camere / appartamenti / offerte) ---------- */
.blog-list .posts {
  max-width: calc(var(--larghezza) + 32px);
  margin: 0 auto;
  padding: 40px 16px 60px;
  display: grid;
  grid-template-columns: repeat(var(--pcols, 4), 1fr);
  gap: 32px;
}
.post-card a { text-decoration: none; display: block; }
.post-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.post-card h3 { font-size: 20px; margin: 14px 0 4px; }
.post-card p { margin: 0; font-size: 15px; color: #555; }
.post-card a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 920px) {
  .blog-list .posts { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ---------- Continua la visita: collegamenti interni in fondo alle pagine ---------- */
.continua {
  padding: clamp(56px, 7vw, 104px) max(20px, calc((100% - 1224px) / 2));
  background: color-mix(in srgb, var(--brand) 9%, #fff);
  color: var(--brand-deep);
}
.continua h2 { margin: 0 0 clamp(24px, 3vw, 40px); font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.continua ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--brand-deep) 22%, transparent); }
.continua li {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) 5fr;
  gap: 8px 32px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-deep) 22%, transparent);
}
.continua-voce { font-size: 21px; font-style: italic; color: inherit; }
a.continua-voce { text-decoration: none; }
a.continua-voce::after { content: ""; display: inline-block; width: 18px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; transition: width .3s; }
a.continua-voce:hover::after, a.continua-voce:focus-visible::after { width: 30px; }
.continua-link, .continua-testo { font-size: 17px; line-height: 1.6; color: color-mix(in srgb, var(--brand-deep) 85%, #000); }
.continua-link a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.continua-link a:hover { text-decoration-thickness: 2px; }
.continua-sep { opacity: .5; }
@media (max-width: 920px) {
  .continua li { grid-template-columns: 1fr; padding: 16px 0; }
  .continua-voce { font-size: 20px; }
  .continua-link, .continua-testo { font-size: 16px; }
}

/* Testo solo per i lettori di schermo */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Offerte lette da WordPress: elenco (pagina /offerte e vetrina della home) ---------- */
.offerte-home, .offerte-vetrina {
  --of-fondo: color-mix(in srgb, var(--brand) 12%, #fff);
  --of-inchiostro: color-mix(in srgb, var(--brand-deep) 80%, #000);
  --of-filo: color-mix(in srgb, var(--brand-deep) 20%, transparent);
  padding: clamp(72px, 9vw, 128px) max(20px, calc((100% - 1224px) / 2));
  background: var(--of-fondo);
  color: var(--brand-deep);
}
.offerte-testa { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.offerte-tutte { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; color: var(--brand-deep); text-decoration: none; }
.offerte-tutte::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .4s cubic-bezier(.16, 1, .3, 1); }
.offerte-tutte:hover::after, .offerte-tutte:focus-visible::after { width: 34px; }
.offerte-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--brand-deep); }
.offerta { position: relative; display: flex; flex-direction: column; padding: 28px 32px 32px 0; border-bottom: 1px solid var(--of-filo); }
.offerta + .offerta { padding-left: 32px; border-left: 1px solid var(--of-filo); }
.offerta :is(h2, h3) { margin: 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; font-style: italic; line-height: 1.15; color: var(--brand-deep); }
.offerta :is(h2, h3) a { color: inherit; text-decoration: none; outline: none; }
/* tutta la voce porta all'offerta */
.offerta :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.offerta:has(a:focus-visible) { outline: 2px solid var(--brand-ink); outline-offset: -2px; }
.offerta p { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: var(--of-inchiostro); }
.offerta-vai { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; font-size: 15px; }
.offerta-vai::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .4s cubic-bezier(.16, 1, .3, 1); }
.offerta:hover .offerta-vai::after { width: 34px; }

/* Vetrina della home: la prima offerta in grande sulla foto del borgo di sera, le altre accanto */
.offerte-vetrina {
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "primo testa" "primo altre";
  gap: 28px clamp(32px, 5vw, 80px);
}
.ov-testa { grid-area: testa; align-self: end; }
.ov-testa h2 { margin: 0; font-size: clamp(38px, 4.2vw, 62px); font-weight: 500; line-height: 1.02; letter-spacing: -.015em; color: var(--brand-deep); }
.ov-testa h2 em { display: block; font-weight: 400; }
.ov-primo { grid-area: primo; position: relative; display: flex; align-items: flex-end; min-height: clamp(460px, 48vw, 640px); overflow: hidden; color: #fff; background: var(--brand-deep); }
.ov-foto { position: absolute; inset: 0; }
.ov-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
.ov-primo:hover .ov-foto img { transform: scale(1.04); }
.ov-primo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, color-mix(in srgb, var(--brand-deep) 55%, #000) 88%, transparent) 100%);
}
.ov-primo-testo { position: relative; z-index: 1; max-width: 560px; padding: clamp(28px, 3.6vw, 52px); }
.ov-primo h3 { margin: 0; font-size: clamp(34px, 3.6vw, 54px); font-weight: 400; font-style: italic; line-height: 1.05; color: #fff; }
.ov-primo h3 a { color: inherit; text-decoration: none; outline: none; }
.ov-primo h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.ov-primo:has(a:focus-visible) { outline: 3px solid var(--brand-ink); outline-offset: 4px; }
.ov-primo p { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.ov-pill {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  margin-top: 26px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-deep);
  font-size: 16px;
  font-weight: 600;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .3s;
}
.ov-primo:hover .ov-pill { transform: translateY(-2px); background: var(--of-fondo); }
.ov-altre { grid-area: altre; display: flex; flex-direction: column; }
.ov-altre .offerte-lista { display: block; }
.ov-altre .offerte-lista:empty { display: none; }
.ov-altre .offerta, .ov-altre .offerta + .offerta { padding: 24px 0; border-left: 0; }
.ov-altre .offerte-tutte { margin-top: 20px; align-self: flex-start; }
@media (max-width: 920px) {
  .offerte-lista { grid-template-columns: 1fr; }
  .offerta, .offerta + .offerta { padding: 24px 0; border-left: 0; }
  .offerte-vetrina { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "testa" "primo" "altre"; gap: 24px; padding: 72px 20px; }
  .ov-primo { min-height: 460px; margin: 0 -20px; }
  .ov-primo-testo { padding: 28px 20px; }
  .ov-primo p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .offerte-tutte::after, .offerta-vai::after, .ov-foto img, .ov-pill { transition: none; }
}

/* Barra sopra l'header con le offerte attuali (al posto della scritta del builder) */
.offerte-barra { padding: 0 16px; background: color-mix(in srgb, var(--brand) 10%, #fff); text-transform: none; font-weight: 400; }
.offerte-barra a { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 11px 2px; color: var(--brand-deep); text-decoration: none; }
.offerte-barra-etichetta { font-style: italic; }
.offerte-barra-titoli { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.offerte-barra a:hover .offerte-barra-titoli { text-decoration-thickness: 2px; }

/* Pagina /offerte: stessa fascia chiara, a tutta pagina */
.offerte-pagina { min-height: 62svh; }
.offerte-pagina h1 { margin: 0; font-size: clamp(38px, 4.6vw, 68px); font-weight: 500; line-height: 1.05; letter-spacing: -.015em; color: var(--brand-deep); }
.offerte-lead { max-width: 52ch; margin: -16px 0 clamp(32px, 4vw, 52px); font-size: 18px; line-height: 1.6; color: var(--of-inchiostro); }
.offerte-vuoto { max-width: 46ch; padding-top: 24px; border-top: 1px solid var(--brand-deep); font-size: 19px; font-style: italic; color: var(--brand-deep); }
/* dalla quarta offerta in poi si va a capo: il filo verticale riparte da sinistra */
.offerte-lista > .offerta:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
@media (max-width: 920px) {
  .offerte-lead { margin-top: -8px; font-size: 16px; }
}
.offerte-home[hidden], .offerte-vetrina[hidden], .offerte-barra[hidden], .offerte-lista[hidden], .offerte-vuoto[hidden] { display: none; }

/* Freccia che invita a scorrere, in fondo alla prima schermata della home */
.hero-scorri { position: absolute; left: 50%; bottom: 28px; z-index: 5; transform: translateX(-50%); display: grid; place-items: center; width: 52px; height: 64px; color: #fff; text-decoration: none; }
.hero-scorri::before { content: ""; position: absolute; top: 0; width: 1px; height: 26px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .85)); }
.hero-scorri svg { width: 26px; height: 26px; margin-top: 30px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); animation: hero-scorri 2.4s cubic-bezier(.45, 0, .55, 1) infinite; }
.hero-scorri:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 8px; }
@keyframes hero-scorri { 0%, 100% { transform: translateY(-3px); opacity: .7; } 50% { transform: translateY(5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-scorri svg { animation: none; } }
