/* Josas Immobili · scheda immobile (design Josas v3) */

#content.jsi{
  --jsi-paper: #F3F2EF;
  --jsi-surface: #FFFFFF;
  --jsi-primary: #1D3258;
  --jsi-primary-2: #27446F;
  --jsi-ink: #131A2C;
  --jsi-gold: #A8834C;
  --jsi-gold-dark: #7D5C2E;
  --jsi-stone: #C8C4BB;
  --jsi-slate: #5C6672;
  --jsi-mist: #B9C7DC;
  --jsi-sand: #EDE5D8;
  --jsi-font-body: "Montserrat", system-ui, sans-serif;
  --jsi-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  /* Stessa griglia di header e homepage (Elementor): contenuto fluido con il margine laterale del sito. */
  --jsi-wrap: 100vw;
  --jsi-gutter: var(--grid-margin, 24px);
  --jsi-r-sm: 8px;
  --jsi-r-field: 12px;
  --jsi-r-tile: 16px;
  --jsi-r-card: 20px;
  --jsi-r-block: 24px;
  --jsi-shadow: 0 24px 48px -24px rgba(19, 26, 44, .18), 0 2px 6px rgba(19, 26, 44, .04);

  font-family: var(--jsi-font-body);
  font-size: 16px;
  line-height: 26px;
  color: var(--jsi-primary);
  background: var(--jsi-surface);
  -webkit-font-smoothing: antialiased;
}
#content :where(*), #content *::before, #content *::after{ box-sizing: border-box; }
#content :where(img){ max-width: 100%; display: block; }
#content :where(svg[aria-hidden]){ width: 20px; height: 20px; flex: none; }
#content :where(a){ color: inherit; text-decoration: none; }
#content :where(button){ font: inherit; color: inherit; cursor: pointer; background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0; text-transform: none; letter-spacing: inherit; box-shadow: none; }
#content :where(button):hover, #content :where(button):focus { background-color: transparent; color: inherit; }
#content :where(h1, h2, h3) { font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; }
#content :where(ul), #content :where(ol){ list-style: none; margin: 0; padding: 0; }
#content :where(p), #content :where(h1), #content :where(h2), #content :where(h3), #content :where(dl), #content :where(dd), #content :where(figure){ margin: 0; }
#content :focus-visible{ outline: 2px solid var(--jsi-gold); outline-offset: 3px; }
#content [hidden]{ display: none !important; }

#content .jsi-wrap{ width: min(var(--jsi-wrap), 100% - 2 * var(--jsi-gutter)); margin-inline: auto; }
#content .jsi-section{ padding: 96px 0; }
#content .jsi-section--paper{ background: var(--jsi-paper); }
#content .jsi-only-mobile{ display: none !important; }

/* ---------- Tipografia ---------- */
#content .jsi-overline{ font-size: 12px; line-height: 1.3; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--jsi-gold-dark); margin-bottom: 16px; }
#content .jsi-overline--muted{ color: var(--jsi-slate); font-size: 11px; }
#content .jsi-h2, #content .jsi-h3, #content .jsi-hero__title, #content .jsi-price{
  font-family: var(--jsi-font-display); font-weight: 700; letter-spacing: 0; color: var(--jsi-primary); text-wrap: balance;
}
#content .jsi-h2{ font-size: 48px; line-height: 54px; }
#content .jsi-h2--xl{ font-size: 64px; line-height: 1; }
#content .jsi-h3{ font-size: 30px; line-height: 1.15; }
#content .jsi-lead{ font-size: 20px; line-height: 1.6; margin-top: 24px; }
#content .jsi-note{ font-size: 13px; line-height: 1.5; color: var(--jsi-slate); margin-top: 16px; }

/* ---------- Bottoni, tag, link ---------- */
#content .jsi-btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: .01em; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
#content .jsi-btn svg{ width: 18px; height: 18px; }
#content .jsi-btn--primary{ background: var(--jsi-primary); color: #fff !important; }
#content .jsi-btn--primary:hover{ background: var(--jsi-primary-2); }
#content .jsi-btn--secondary{ background: transparent; border-color: var(--jsi-primary); color: var(--jsi-primary); }
#content .jsi-btn--secondary:hover{ background: var(--jsi-primary); color: #fff; }
#content .jsi-btn--gold{ background: var(--jsi-gold); color: var(--jsi-ink) !important; }
#content .jsi-btn--block{ width: 100%; }

#content .jsi-round{
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--jsi-stone); background: transparent; color: var(--jsi-primary); transition: background .2s, border-color .2s;
}
#content .jsi-round:hover{ border-color: var(--jsi-primary); }
#content .jsi-round--white{ background: #fff; border-color: #fff; box-shadow: 0 6px 18px rgba(19, 26, 44, .12); }
#content .jsi-round--sm{ width: 40px; height: 40px; }
#content .jsi-fav[aria-pressed="true"] svg{ fill: currentColor; }

#content .jsi-link{ display: inline-flex; align-items: center; gap: 10px; padding: 8px; margin-left: -8px; background: none; border: 0; font-weight: 600; font-size: 15px; color: var(--jsi-primary); }
#content .jsi-link svg{ width: 18px; height: 18px; transition: transform .2s; }
#content .jsi-link:hover svg{ transform: translateX(3px); }

#content .jsi-tag{
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
#content .jsi-tag--blue{ background: var(--jsi-primary); color: #fff; }
#content .jsi-tag--light{ background: #fff; color: var(--jsi-primary); }
#content .jsi-tag--sand{ background: var(--jsi-sand); color: var(--jsi-primary); }
#content .jsi-tag--gold{ background: var(--jsi-gold); color: var(--jsi-ink); }

/* Controlli su foto: vetro bianco 14% + bordo 32%, pieno al passaggio */
#content .jsi-glass{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .32); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, color .2s;
}
#content .jsi-glass:hover{ background: #fff; color: var(--jsi-primary); }
#content .jsi-glass--round{ width: 44px; height: 44px; border-radius: 50%; }
#content .jsi-chip{
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 0;
  background: #fff; color: var(--jsi-primary); font-size: 15px; font-weight: 500;
}
#content .jsi-chip svg{ width: 18px; height: 18px; }

#content .jsi-pills{ display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 28px; }
#content .jsi-pill{
  display: inline-flex; align-items: center; height: 40px; padding: 0 17px; border-radius: 999px;
  border: 1px solid var(--jsi-stone); background: #fff; font-size: 15px; color: var(--jsi-primary); cursor: pointer;
}
#content .jsi-pill.is-active, #content .jsi-pill:has(input:checked){ background: var(--jsi-primary); border-color: var(--jsi-primary); color: #fff; }
#content .jsi-pill input{ position: absolute; opacity: 0; pointer-events: none; }
#content .jsi-pill:has(input:focus-visible){ outline: 2px solid var(--jsi-gold); outline-offset: 2px; }

/* ---------- Hero · Split ---------- */
#content .jsi-hero{ display: grid; grid-template-columns: minmax(0, 600fr) minmax(0, 840fr); min-height: 720px; background: var(--jsi-paper); }
#content .jsi-hero__info{
  display: flex; flex-direction: column; padding: 48px 48px 56px max(var(--jsi-gutter), (100vw - var(--jsi-wrap)) / 2);
}
#content .jsi-hero__nav{ display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; margin-bottom: 22px; }
#content .jsi-back{ display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
#content .jsi-back svg{ width: 18px; height: 18px; }
#content .jsi-crumbs{ display: flex; flex-wrap: wrap; color: var(--jsi-slate); }
#content .jsi-crumbs li + li::before{ content: "/"; margin: 0 6px; color: var(--jsi-stone); }
#content .jsi-crumbs a:hover{ color: var(--jsi-primary); }
#content .jsi-hero__tags{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
#content .jsi-hero__title{ font-size: 48px; line-height: 46px; margin-top: -4px; max-width: 460px; }
#content .jsi-hero__loc{ display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--jsi-slate); }
#content .jsi-hero__loc svg{ color: var(--jsi-gold); }
#content .jsi-hero__bottom{ position: relative; z-index: 1; padding-top: 40px; }
/* Segno Josas in chiaro nello spazio libero sotto il prezzo (solo desktop). */
#content .jsi-hero__info{ position: relative; overflow: hidden; }
#content .jsi-hero__info > *{ position: relative; z-index: 1; }
#content .jsi-hero__info::after{
  content: ""; position: absolute; z-index: 0; right: -40px; bottom: -70px; width: min(78%, 430px); aspect-ratio: 580 / 482;
  background: #fff; opacity: .75; pointer-events: none;
  -webkit-mask: url("../img/josas-vela.svg") center / contain no-repeat; mask: url("../img/josas-vela.svg") center / contain no-repeat;
}
#content .jsi-hero__price{ display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; }
#content .jsi-hero__price .jsi-price{ font-size: 56px; line-height: 1; }
#content .jsi-price-m2{ font-size: 13px; color: var(--jsi-slate); }
#content .jsi-facts{ display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 24px 0 26px; font-size: 15px; max-width: 420px; }
#content .jsi-facts li{ display: inline-flex; align-items: center; gap: 8px; }
#content .jsi-facts svg{ width: 18px; height: 18px; }
#content .jsi-actions{ display: flex; align-items: center; gap: 12px; }

#content .jsi-hero__media{ position: relative; overflow: hidden; background: var(--jsi-ink); min-height: 520px; }
#content .jsi-slider, #content .jsi-slider__img{ position: absolute; inset: 0; width: 100%; height: 100%; }
#content .jsi-slider__img{ object-fit: cover; opacity: 0; transition: opacity .45s ease; }
#content .jsi-slider__img.is-active{ opacity: 1; }
#content .jsi-hero__media::before, #content .jsi-hero__media::after{ content: ""; position: absolute; inset-inline: 0; z-index: 1; pointer-events: none; }
#content .jsi-hero__media::after{ bottom: 0; height: 160px; background: linear-gradient(to top, rgba(19, 26, 44, .42), transparent); }
#content .jsi-slider__arrow{ position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--jsi-primary); border: 0; box-shadow: 0 6px 20px rgba(19, 26, 44, .2); }
#content .jsi-slider__arrow:hover{ background: var(--jsi-paper); }
#content .jsi-slider__arrow--prev{ left: 28px; }
#content .jsi-slider__arrow--next{ right: 28px; }
#content .jsi-hero__strip{ position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 2; display: flex; align-items: center; gap: 10px; }
#content .jsi-thumbs{ display: flex; gap: 10px; }
#content .jsi-thumb{ width: 96px; height: 68px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .85); background: none; }
#content .jsi-thumb.is-active{ border-color: var(--jsi-gold); }
#content .jsi-thumb img{ width: 100%; height: 100%; object-fit: cover; }
#content .jsi-hero__mobile-top{ display: none; }
#content .jsi-hero__empty{ position: absolute; inset: 0; display: grid; place-items: center; color: var(--jsi-mist); }

/* ---------- Barra dati · sticky ---------- */
#content .jsi-bar--sticky{
  position: fixed; top: 0; left: 0; right: 0; z-index: 90; background: #fff; box-shadow: 0 8px 24px rgba(19, 26, 44, .1);
  transform: translateY(-110%); transition: transform .3s ease; visibility: hidden;
}
.admin-bar #content .jsi-bar--sticky{ top: 32px; }
#content .jsi-bar--sticky.is-visible{ transform: none; visibility: visible; }
#content .jsi-bar__inner{ display: flex; align-items: center; gap: 32px; min-height: 96px; }
#content .jsi-bar__price{ display: flex; flex-direction: column; }
#content .jsi-bar__price .jsi-price{ font-size: 40px; line-height: 1; }
#content .jsi-bar__price small{ font-size: 13px; color: var(--jsi-slate); margin-top: 4px; }
#content .jsi-bar__facts{ display: flex; flex: 1; }
#content .jsi-bar__facts li{ display: flex; align-items: center; gap: 12px; padding: 0 16px; border-left: 1px solid var(--jsi-stone); }
#content .jsi-bar__facts li:first-child{ border-left: 0; }
#content .jsi-bar__facts svg{ color: var(--jsi-gold); }
#content .jsi-bar__facts span{ display: flex; flex-direction: column; line-height: 1.3; }
#content .jsi-bar__facts strong{ font-size: 16px; }
#content .jsi-bar__facts small{ font-size: 13px; color: var(--jsi-slate); }

/* ---------- Testate sezioni ---------- */
#content .jsi-head{ display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
#content .jsi-head .jsi-overline{ margin-bottom: 14px; }
#content .jsi-head__actions{ display: flex; gap: 12px; }

/* ---------- Esplora per ambienti ---------- */
#content .jsi-rooms{ padding: 72px 0 64px; }
#content .jsi-rooms .jsi-head{ margin-bottom: 32px; }
#content .jsi-rooms .jsi-h2{ font-size: 40px; line-height: 1.1; }
#content .jsi-rooms__track{
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--jsi-gutter) 8px max(var(--jsi-gutter), (100vw - var(--jsi-wrap)) / 2);
  scroll-padding-inline: max(var(--jsi-gutter), (100vw - var(--jsi-wrap)) / 2);
}
#content .jsi-rooms__track::-webkit-scrollbar{ display: none; }
#content .jsi-room{ flex: 0 0 220px; scroll-snap-align: start; padding: 0; border: 0; background: none; text-align: left; }
#content .jsi-room__img{ display: block; height: 160px; border-radius: var(--jsi-r-tile); overflow: hidden; border: 2px solid transparent; transition: border-color .2s; }
#content .jsi-room__img img{ width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
#content .jsi-room:hover .jsi-room__img{ border-color: var(--jsi-gold); }
#content .jsi-room:hover img{ transform: scale(1.04); }
#content .jsi-room__img{ position: relative; }
#content .jsi-room__more{ position: absolute; inset: 0; display: grid; place-items: center; background: rgba(19, 26, 44, .55); color: #fff; font-weight: 600; font-size: 16px; }
#content .jsi-room__label{ display: block; margin-top: 14px; font-weight: 600; font-size: 16px; }
#content .jsi-room__label small{ font-weight: 400; font-size: 12px; color: var(--jsi-slate); margin-left: 4px; }

/* ---------- Contenuto e contatto ---------- */
#content .jsi-main{ padding-top: 96px; }
#content .jsi-main__grid{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 376px); gap: 64px clamp(64px, 6vw, 120px); align-items: start; }
#content .jsi-block{ padding: 56px 0; border-top: 1px solid var(--jsi-stone); }
#content .jsi-block:first-child{ border-top: 0; padding-top: 0; }

#content .jsi-desc .jsi-h2{ max-width: 720px; }
#content .jsi-desc__body{ max-width: 760px; margin-top: 32px; font-size: 15px; line-height: 26px; color: var(--jsi-slate); position: relative; }
#content .jsi-desc__body p + p{ margin-top: 1em; }
#content .jsi-desc__body.is-clamped{ max-height: 160px; overflow: hidden; }
#content .jsi-desc__body.is-clamped::after{ content: ""; position: absolute; inset: auto 0 0; height: 64px; background: linear-gradient(transparent, #fff); }
#content .jsi-desc .jsi-link{ margin-top: 20px; }

#content .jsi-tiles{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
#content .jsi-tile{ display: flex; align-items: center; gap: 16px; padding: 16px; min-height: 80px; border-radius: var(--jsi-r-tile); background: var(--jsi-paper); }
#content .jsi-tile__icon{ display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; flex: none; }
#content .jsi-tile span:last-child{ display: flex; flex-direction: column; line-height: 1.4; }
#content .jsi-tile small{ font-size: 13px; color: var(--jsi-slate); }
#content .jsi-tile strong{ font-size: 16px; font-weight: 600; }

#content .jsi-details{ display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
#content .jsi-details div{ display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--jsi-stone); }
#content .jsi-details dt{ color: var(--jsi-slate); }
#content .jsi-details dd{ font-weight: 600; text-align: right; }
#content .jsi-extra{ display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font-size: 15px; }
#content .jsi-extra li{ display: inline-flex; align-items: center; gap: 8px; }
#content .jsi-extra svg{ width: 18px; height: 18px; color: var(--jsi-gold); }

#content .jsi-energy{ display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; align-items: center; }
#content .jsi-energy li{ display: grid; place-items: center; height: 44px; border-radius: var(--jsi-r-sm); background: var(--jsi-paper); font-weight: 600; color: var(--jsi-slate); }
#content .jsi-energy li.is-active{ height: 56px; background: var(--jsi-primary); color: #fff; }
#content .jsi-energy__text{ display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 24px; font-size: 15px; }
#content .jsi-energy__text span{ color: var(--jsi-slate); font-size: 14px; }

#content .jsi-video{ position: relative; aspect-ratio: 776 / 440; border-radius: var(--jsi-r-card); overflow: hidden; background: var(--jsi-ink); }
#content .jsi-video + .jsi-video{ margin-top: 16px; }
#content .jsi-video img, #content .jsi-video iframe, #content .jsi-video video{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
#content .jsi-video__play{ position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; border: 0; background: rgba(19, 26, 44, .5); color: #fff; transition: background .2s; }
#content .jsi-video__play:hover{ background: rgba(19, 26, 44, .4); }
#content .jsi-video__circle{ display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: #fff; color: var(--jsi-primary); transition: transform .2s; }
#content .jsi-video__play:hover .jsi-video__circle{ transform: scale(1.06); }
#content .jsi-video__circle svg{ fill: currentColor; width: 24px; height: 24px; margin-left: 3px; }
#content .jsi-video__label{ font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
#content .jsi-tour{ margin-top: 16px; }

#content .jsi-plan{ position: relative; display: grid; place-items: center; height: 480px; padding: 24px; border-radius: var(--jsi-r-card); background: var(--jsi-paper); overflow: hidden; }
#content .jsi-plan img{ max-height: 432px; max-width: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
#content .jsi-plan__zoom{ position: absolute; top: 20px; right: 20px; }

#content .jsi-docs{ display: grid; gap: 12px; }
#content .jsi-docs a{ display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--jsi-stone); border-radius: var(--jsi-r-tile); transition: border-color .2s; }
#content .jsi-docs a:hover{ border-color: var(--jsi-primary); }
#content .jsi-docs__icon{ color: var(--jsi-gold-dark); }
#content .jsi-docs__text{ flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
#content .jsi-docs__text small{ font-size: 13px; color: var(--jsi-slate); }

#content .jsi-map{ height: 400px; margin-top: 32px; border-radius: 4px; background: var(--jsi-paper); z-index: 0; }
#content .jsi-map .leaflet-control-attribution{ font-size: 10px; }
#content .jsi-map .leaflet-tile-pane{ filter: grayscale(1) contrast(.85) brightness(1.08); opacity: .85; }
#content .jsi-poi{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: 40px; }
#content .jsi-poi li{ display: flex; gap: 16px; }
#content .jsi-poi svg{ color: var(--jsi-gold-dark); margin-top: 3px; }
#content .jsi-poi span{ display: flex; flex-direction: column; line-height: 1.4; }
#content .jsi-poi strong{ font-weight: 600; }
#content .jsi-poi small{ font-size: 13px; color: var(--jsi-slate); }

/* Sidebar */
#content .jsi-main__aside{ position: sticky; top: 120px; display: grid; gap: 96px; }
.admin-bar #content .jsi-main__aside{ top: 152px; }
#content .jsi-contact{ padding: 32px; border-radius: var(--jsi-r-block); background: #fff; box-shadow: var(--jsi-shadow); scroll-margin-top: 120px; }
#content .jsi-contact__person{ display: flex; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--jsi-stone); margin-bottom: 32px; }
#content .jsi-contact__person img, #content .jsi-contact__avatar{ width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
#content .jsi-contact__avatar{ display: grid; place-items: center; background: var(--jsi-paper); }
#content .jsi-contact__person .jsi-overline{ margin-bottom: 4px; font-size: 11px; }
#content .jsi-contact__name{ font-size: 18px; font-weight: 600; line-height: 1.3; }
#content .jsi-contact__role{ font-size: 13px; color: var(--jsi-slate); }
#content .jsi-contact .jsi-h3{ margin-bottom: 24px; }
#content .jsi-form{ display: grid; gap: 16px; }
#content .jsi-form .jsi-pills{ margin: 0 0 8px; }
#content .jsi-input{ display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
#content .jsi-input input, #content .jsi-input textarea{
  width: 100%; padding: 13px 18px; border: 1px solid var(--jsi-stone); border-radius: var(--jsi-r-field);
  font: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--jsi-primary); background: #fff;
}
#content .jsi-input textarea{ resize: vertical; min-height: 112px; }
#content .jsi-input input::placeholder, #content .jsi-input textarea::placeholder{ color: var(--jsi-slate); opacity: .9; }
#content .jsi-input input:focus, #content .jsi-input textarea:focus{ outline: none; border-color: var(--jsi-gold); box-shadow: 0 0 0 3px rgba(168, 131, 76, .2); }
#content .jsi-consent{ display: flex; gap: 12px; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--jsi-slate); margin: 4px 0 12px; }
#content .jsi-consent input{ width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--jsi-primary); }
#content .jsi-consent a{ text-decoration: underline; }
#content .jsi-contact__direct{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
#content .jsi-contact__direct a:only-child{ grid-column: 1 / -1; }
#content .jsi-contact__note{ font-size: 13px; color: var(--jsi-slate); margin-top: 24px; }
#content .jsi-hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#content .jsi-alert{ padding: 14px 16px; border-radius: var(--jsi-r-field); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
#content .jsi-alert--ok{ background: #E7F1EA; color: #1E5A35; }
#content .jsi-alert--error{ background: #F8E7E5; color: #8A2B20; }

#content .jsi-owners{ padding: 32px 28px; border-radius: var(--jsi-r-block); background: var(--jsi-sand); }
#content .jsi-owners .jsi-overline{ margin-bottom: 12px; }
#content .jsi-owners p:not(.jsi-overline){ font-size: 14px; line-height: 1.6; color: var(--jsi-slate); margin: 12px 0 8px; }

/* ---------- Immobili simili / card ---------- */
#content .jsi-similar{ padding: 128px 0 120px; }
#content .jsi-cards{ scroll-padding-inline: 0; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 64px) / 3); gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
#content .jsi-cards::-webkit-scrollbar{ display: none; }
#content .jsi-card{ scroll-snap-align: start; display: flex; flex-direction: column; }
#content .jsi-card__media{ position: relative; aspect-ratio: 384 / 288; border-radius: var(--jsi-r-card); overflow: hidden; background: var(--jsi-stone); }
#content .jsi-card__img, #content .jsi-card__img img{ display: block; width: 100%; height: 100%; object-fit: cover; }
#content .jsi-card__img img{ transition: transform .5s; }
#content .jsi-card:hover .jsi-card__img img{ transform: scale(1.03); }
#content .jsi-card__media::before, #content .jsi-card__media::after{ content: ""; position: absolute; inset-inline: 0; height: 30%; pointer-events: none; z-index: 1; }
#content .jsi-card__media::before{ top: 0; background: linear-gradient(rgba(19, 26, 44, .42), transparent); }
#content .jsi-card__media::after{ bottom: 0; background: linear-gradient(transparent, rgba(19, 26, 44, .42)); }
#content .jsi-card__tags{ position: absolute; top: 22px; left: 16px; right: 64px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
#content .jsi-card__fav{ position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--jsi-primary); }
#content .jsi-card__fav svg{ width: 18px; height: 18px; }
#content .jsi-card__count{ position: absolute; right: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(19, 26, 44, .55); color: #fff; font-size: 13px; }
#content .jsi-card__count svg{ width: 14px; height: 14px; }
#content .jsi-card__price{ font-family: var(--jsi-font-display); font-weight: 700; font-size: 32px; line-height: 1; margin-top: 24px; }
#content .jsi-card__title{ font-family: var(--jsi-font-body); font-size: 18px; font-weight: 600; line-height: 1.4; margin-top: 10px; color: var(--jsi-primary); }
#content .jsi-card__title a:hover{ text-decoration: underline; text-underline-offset: 3px; }
#content .jsi-card__loc{ display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; color: var(--jsi-slate); }
#content .jsi-card__loc svg{ width: 16px; height: 16px; color: var(--jsi-primary); }
#content .jsi-card__facts{ display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--jsi-stone); font-size: 14px; color: var(--jsi-slate); }
#content .jsi-card__facts li{ display: inline-flex; align-items: center; gap: 6px; }
#content .jsi-card__facts svg{ width: 18px; height: 18px; color: var(--jsi-primary); }

/* ---------- Barra azioni mobile ---------- */
#content .jsi-mbar{ display: none; }

/* ---------- Lightbox ---------- */
#content .jsi-lightbox{ width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--jsi-ink); color: #fff; overflow: hidden; }
#content .jsi-lightbox::backdrop{ background: var(--jsi-ink); }
#content .jsi-lightbox[open]{ display: grid; grid-template-rows: auto 1fr; }
#content .jsi-lightbox__top{ display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
#content .jsi-lightbox__filters{ display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: none; }
#content .jsi-lightbox__filters button{ height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .32); background: transparent; color: #fff; font-size: 14px; white-space: nowrap; }
#content .jsi-lightbox__filters button.is-active{ background: #fff; color: var(--jsi-primary); }
#content .jsi-lightbox__count{ font-size: 14px; color: var(--jsi-mist); white-space: nowrap; }
#content .jsi-lightbox__stage{ display: grid; place-items: center; min-height: 0; padding: 0 96px 32px; }
#content .jsi-lightbox__stage img{ max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 8px; }
#content .jsi-lightbox__stage figcaption{ margin-top: 12px; font-size: 14px; color: var(--jsi-mist); text-align: center; }
#content .jsi-lightbox.is-plans .jsi-lightbox__stage img{ background: #fff; padding: 16px; }
#content .jsi-lightbox__nav{ position: absolute; top: 50%; translate: 0 -50%; }
#content .jsi-lightbox__nav--prev{ left: 24px; }
#content .jsi-lightbox__nav--next{ right: 24px; }
#content .jsi-lightbox svg{ width: 20px; height: 20px; }

/* ---------- Tablet ---------- */
@media (max-width: 1200px) {
  #content .jsi-main__grid{ grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  #content .jsi-tiles{ grid-template-columns: repeat(2, 1fr); }
  #content .jsi-bar__facts li:nth-child(n+4){ display: none; }
  #content .jsi-cards{ grid-auto-columns: calc((100% - 32px) / 2); }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  #content .jsi-only-mobile{ display: inline-flex !important; }
  #content .jsi-only-desktop{ display: none !important; }
  #content .jsi-section{ padding: 64px 0; }
  #content .jsi-h2{ font-size: 36px; line-height: 1.15; }
  #content .jsi-h2--xl{ font-size: 40px; }
  #content .jsi-lead{ font-size: 17px; }
  #content .jsi-head{ flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  #content .jsi-head > .jsi-btn, #content .jsi-head__actions{ display: none; }

  #content .jsi-hero{ display: flex; flex-direction: column-reverse; min-height: 0; background: #fff; }
  #content .jsi-hero__media{ min-height: 0; aspect-ratio: 390 / 520; }
  #content .jsi-hero__media::before{ top: 0; height: 140px; background: linear-gradient(rgba(19, 26, 44, .5), transparent); }
  #content .jsi-slider__arrow{ display: none; }
  #content .jsi-hero__mobile-top{ display: flex; justify-content: space-between; position: absolute; top: 16px; left: 20px; right: 20px; z-index: 2; }
  #content .jsi-hero__mobile-top span{ display: flex; gap: 12px; }
  #content .jsi-hero__strip{ left: 20px; right: 20px; bottom: 20px; gap: 8px; }
  #content .jsi-thumbs{ display: none; }
  #content .jsi-hero__strip .jsi-tag{ margin-right: auto; height: 32px; }
  #content .jsi-chip{ height: 36px; padding: 0 14px; font-size: 14px; }
  #content .jsi-hero__info{ padding: 24px 20px 32px; }
  #content .jsi-hero__info::after{ display: none; }
  #content .jsi-back, #content .jsi-hero__tags, #content .jsi-hero__info > .jsi-overline{ display: none; }
  #content .jsi-hero__nav{ margin-bottom: 18px; }
  #content .jsi-hero__title{ font-size: 40px; line-height: 1.05; }
  #content .jsi-hero__loc{ margin-top: 14px; }
  #content .jsi-hero__bottom{ padding-top: 24px; }
  #content .jsi-hero__price .jsi-price{ font-size: 44px; }
  #content .jsi-facts{ gap: 8px; margin: 20px 0 0; }
  #content .jsi-facts li{ padding: 6px 14px; border-radius: 999px; background: var(--jsi-paper); font-size: 14px; }
  #content .jsi-hero__bottom .jsi-actions{ display: none; }

  #content .jsi-bar--sticky{ display: none; }
  #content .jsi-mbar{
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: #fff; box-shadow: 0 -8px 24px rgba(19, 26, 44, .12); transform: translateY(110%); transition: transform .3s;
  }
  #content .jsi-mbar.is-visible{ transform: none; }
  #content .jsi-mbar > div{ display: flex; flex-direction: column; }
  #content .jsi-mbar .jsi-price{ font-size: 30px; line-height: 1; }
  #content .jsi-mbar small{ font-size: 12px; color: var(--jsi-slate); margin-top: 2px; }
  #content .jsi-mbar .jsi-btn{ min-height: 48px; padding: 0 22px; }

  #content .jsi-rooms{ padding: 48px 0; }
  #content .jsi-rooms .jsi-overline{ display: none; }
  #content .jsi-rooms .jsi-h2{ font-size: 36px; }
  #content .jsi-rooms__track{ padding-inline: 20px; gap: 12px; }
  #content .jsi-room{ flex-basis: 140px; }
  #content .jsi-room__img{ height: 104px; }

  #content .jsi-main{ padding-top: 56px; }
  #content .jsi-main__grid{ grid-template-columns: minmax(0, 1fr); gap: 0; }
  #content .jsi-block{ padding: 40px 0; }
  #content .jsi-tiles{ gap: 10px; }
  #content .jsi-tile{ flex-direction: row; gap: 10px; padding: 12px; }
  #content .jsi-tile__icon{ width: auto; height: auto; background: none; }
  #content .jsi-details{ grid-template-columns: 1fr; }
  #content .jsi-details:not(.is-open) .jsi-details__more{ display: none; }
  #content .jsi-energy{ gap: 3px; }
  #content .jsi-energy li{ height: 36px; font-size: 13px; }
  #content .jsi-energy li.is-active{ height: 40px; }
  #content .jsi-plan{ height: 360px; }
  #content .jsi-map{ height: 240px; }
  #content .jsi-poi{ grid-template-columns: 1fr; gap: 20px; }

  #content .jsi-main__aside{ position: static; gap: 0; margin: 0 calc(-1 * var(--jsi-gutter)); padding: 48px var(--jsi-gutter) 64px; background: var(--jsi-paper); }
  #content .jsi-contact{ padding: 28px 24px; box-shadow: none; scroll-margin-top: 16px; }
  #content .jsi-owners{ display: none; }

  #content .jsi-similar{ padding: 56px 0 72px; }
  #content .jsi-cards{ grid-auto-columns: 82%; gap: 16px; margin-right: calc(-1 * var(--jsi-gutter)); padding-right: var(--jsi-gutter); }
  #content .jsi-card__price{ font-size: 30px; }

  #content .jsi-lightbox__stage{ padding: 0 0 72px; }
  #content .jsi-lightbox__nav{ top: auto; bottom: 16px; translate: none; }
  #content .jsi-lightbox__top{ padding: 14px 16px; }
}

@media (max-width: 900px) {
  #content.jsi{ --jsi-gutter: var(--grid-margin, 20px); }
  body.jsi-page { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  #content :where(*), #content *::before, #content *::after{ transition: none !important; }
}
/* =====================================================================
   Collezione Luxury
   ===================================================================== */
#content .jsi-only-mobile-block { display: none; }
#content .jsi-btn--gold:hover { background: #B8945D; }
#content .jsi-tag--glass { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .32); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Header Elementor sovrapposto alla foto */
body.jsi-page--luxury .elementor-location-header { position: absolute; top: 0; left: 0; right: 0; z-index: 60; }
body.admin-bar.jsi-page--luxury .elementor-location-header { top: 32px; }

#content .jsi-lhero {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 680px; height: min(780px, 100svh); padding-top: 104px; color: #fff; background: var(--jsi-ink); overflow: hidden;
}
#content .jsi-lhero__media { position: absolute; inset: 0; }
#content .jsi-lhero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(19, 26, 44, .6) 0%, rgba(19, 26, 44, .1) 22%, rgba(19, 26, 44, 0) 45%, rgba(19, 26, 44, .1) 60%, rgba(19, 26, 44, .85) 100%),
    linear-gradient(90deg, rgba(19, 26, 44, .45) 0%, rgba(19, 26, 44, 0) 55%);
}
#content .jsi-lhero__top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#content .jsi-lhero__top .jsi-back { color: #fff; }
#content .jsi-lhero__top .jsi-crumbs { color: rgba(255, 255, 255, .7); font-size: 13px; }
#content .jsi-lhero__top .jsi-crumbs li + li::before { color: rgba(255, 255, 255, .4); }
#content .jsi-lhero__top .jsi-crumbs a:hover { color: #fff; }
#content .jsi-lhero__bottom { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 56px; }
#content .jsi-lhero__text { max-width: 760px; }
#content .jsi-lhero__title { font-family: var(--jsi-font-display); font-weight: 700; font-size: 96px; line-height: .92; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
#content .jsi-lhero__loc { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 20px; }
#content .jsi-lhero__loc svg { color: var(--jsi-gold); }
#content .jsi-lhero__controls { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; flex: none; }
#content .jsi-lhero__arrows { display: flex; gap: 12px; }
#content .jsi-lhero__chips { display: flex; gap: 10px; }
#content .jsi-lhero__mobile-top { display: none; }

/* Barra dati scura */
#content .jsi-bar--dark { background: var(--jsi-ink); color: #fff; }
#content .jsi-bar--inline .jsi-bar__inner { min-height: 128px; }
#content .jsi-bar--dark .jsi-price { color: var(--jsi-gold); }
#content .jsi-bar--dark .jsi-bar__price small, #content .jsi-bar--dark .jsi-bar__facts small { color: var(--jsi-mist); }
#content .jsi-bar--dark .jsi-bar__facts li { border-color: rgba(255, 255, 255, .14); }
#content .jsi-bar--dark .jsi-round { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06); color: var(--jsi-gold); }
#content .jsi-bar--dark .jsi-round:hover { background: #fff; color: var(--jsi-primary); }

/* Sezioni su inchiostro */
#content .jsi-section--ink { background: var(--jsi-ink); color: #fff; }
#content .jsi-section--ink .jsi-overline { color: var(--jsi-gold); }
#content .jsi-section--ink .jsi-h2 { color: #fff; }
#content .jsi-section--ink .jsi-btn--secondary { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06); color: #fff; }
#content .jsi-section--ink .jsi-btn--secondary:hover { background: #fff; color: var(--jsi-primary); }
#content .jsi-section--ink .jsi-round { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06); color: #fff; }
#content .jsi-section--ink .jsi-round[data-scroll="-1"] { color: var(--jsi-gold); }
#content .jsi-section--ink .jsi-room__label { color: #fff; }
#content .jsi-section--ink .jsi-room__label small { color: var(--jsi-mist); }
#content .jsi-section--ink .jsi-card__price { color: var(--jsi-gold); }
#content .jsi-section--ink .jsi-card__title { color: #fff; }
#content .jsi-section--ink .jsi-card__loc, #content .jsi-section--ink .jsi-card__facts { color: var(--jsi-mist); }
#content .jsi-section--ink .jsi-card__loc svg, #content .jsi-section--ink .jsi-card__facts svg { color: var(--jsi-gold); }
#content .jsi-section--ink .jsi-card__facts { border-color: rgba(255, 255, 255, .14); }

#content .jsi-owners--dark { background: var(--jsi-ink); color: #fff; }
#content .jsi-owners--dark .jsi-overline { color: var(--jsi-gold); }
#content .jsi-owners--dark .jsi-h3 { color: #fff; }
#content .jsi-owners--dark p:not(.jsi-overline) { color: var(--jsi-mist); }
#content .jsi-owners--dark .jsi-link { color: #fff; }
#content .jsi--luxury .jsi-main__aside { gap: 16px; }

@media (max-width: 1200px) {
  #content .jsi-lhero__title { font-size: 72px; }
}

@media (max-width: 900px) {
  #content .jsi-only-mobile-block { display: block; }
  #content .jsi-lhero { height: auto; min-height: 0; aspect-ratio: 390 / 700; padding-top: 0; justify-content: flex-end; }
  #content .jsi-lhero__top, #content .jsi-lhero__arrows, #content .jsi-lhero__chips { display: none; }
  #content .jsi-lhero__mobile-top { display: flex; justify-content: space-between; position: absolute; top: 88px; left: 20px; right: 20px; z-index: 2; }
  #content .jsi-lhero__mobile-top span { display: flex; gap: 12px; }
  #content .jsi-lhero__bottom { padding-bottom: 24px; }
  #content .jsi-lhero__text { display: flex; flex-direction: column; }
  #content .jsi-lhero__text .jsi-hero__tags { order: 3; margin: 20px 0 0; display: flex; }
  #content .jsi-lhero__title { font-size: 44px; line-height: 1; }
  #content .jsi-lhero__loc { font-size: 16px; margin-top: 14px; }
  #content .jsi-lhero__loc svg { display: none; }
  #content .jsi-lcrumbs { background: var(--jsi-ink); color: var(--jsi-mist); font-size: 13px; padding: 14px 20px; }
  #content .jsi-lcrumbs a { color: var(--jsi-mist); }
  #content .jsi-bar--inline .jsi-bar__inner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 0 32px; }
  #content .jsi-bar--inline .jsi-actions { display: none; }
  #content .jsi-bar--inline .jsi-bar__facts { flex-wrap: wrap; gap: 16px 0; }
  #content .jsi-bar--inline .jsi-bar__facts li { flex: 0 0 50%; border: 0; padding: 0; }
  #content .jsi-bar--inline .jsi-bar__facts li:nth-child(n+4) { display: flex; }
  #content .jsi-bar--inline .jsi-price { font-size: 36px; }
  #content .jsi-section--ink.jsi-rooms .jsi-overline { display: none; }
}
