:root { --site-green: #00633d; --site-cream: #fff7e5; }
[hidden] { display: none !important; }
.ba-item-image .ba-image-wrapper img { display: block; height: auto; }
.ba-item-image .ba-image-wrapper[style*="--editorial-image-width"] {
  width: min(100%, var(--editorial-image-width));
  box-sizing: border-box;
}
.ba-item-icon-list .list-item-without-link > span {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}
:focus-visible { outline: 3px solid #a8453d; outline-offset: 4px; }
.site-visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 100; inset: .5rem auto auto .5rem; padding: .75rem; background: white; }
.site-header { position: sticky; top: 0; z-index: 30; background: white; }
.site-header-inner { position: relative; max-width: 1170px; padding: .4rem 1rem; margin: auto; box-sizing: content-box; }
.site-top, .site-quick, .site-primary { display: flex; align-items: center; }
.site-top { justify-content: space-between; gap: 1rem; }
.site-brand { display: block; flex: 0 1 272px; }
.site-brand img { display: block; width: 100%; max-height: 78px; height: auto; object-fit: contain; }
.site-quick { justify-content: center; gap: clamp(.5rem, 2vw, 1.5rem); }
.site-header a, .site-header summary { color: var(--site-green); text-decoration: none; font-weight: 700; }
.site-quick a, .site-quick summary, .site-primary a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .75rem;
  box-sizing: border-box;
  font-size: .95rem;
  line-height: 1.25;
}
.site-header a:hover, .site-header a[aria-current="page"] { text-decoration: underline; text-underline-offset: .18em; }
.site-header .site-booking, .site-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: .65rem 1.05rem;
  border: 0;
  border-radius: 4rem;
  background: var(--site-green);
  color: white;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.site-action:hover, .site-header .site-booking:hover { background: #03492f; color: white; }
.site-quick .site-booking, .site-quick .site-contact { text-transform: uppercase; letter-spacing: .1em; font-size: .875rem; padding-inline: clamp(.9rem, 2vw, 2rem); }
.site-quick .site-contact { color: white; background: #a8453d; border-radius: 4rem; min-width: 9rem; justify-content: center; }
.site-primary { justify-content: center; flex-wrap: wrap; gap: 0 clamp(.3rem, 1.25vw, 1.5rem); margin: .3rem 0 0; border-radius: 3rem .65rem 3rem .65rem; background: var(--site-cream); box-shadow: 0 8px 22px #211b1522; }
.site-primary a { color: #1b1b1d; font-weight: 500; font-size: .875rem; text-transform: uppercase; letter-spacing: .09em; }
.site-flags { display: flex; gap: .15rem; }
.site-flags a { display: grid; place-items: center; min-height: 44px; min-width: 40px; }
.site-flags img { border-radius: 50%; object-fit: cover; }
.site-language { display: none; position: relative; }
.site-header summary { cursor: pointer; list-style: none; }
.site-header summary::-webkit-details-marker { display: none; }
.site-language div {
  position: absolute;
  z-index: 2;
  min-width: 9rem;
  padding: .4rem;
  border-radius: .8rem;
  background: white;
  box-shadow: 0 8px 28px #211b1529;
}
.site-language div { inset-inline-end: 0; top: 100%; }
.site-language a { display: flex; align-items: center; min-height: 44px; padding-inline: .75rem; }
.site-menu-toggle, .site-drawer, .site-mobile-contact { display: none; }
#contenuto { scroll-margin-top: 10rem; }
#contenuto .home-video-section { margin-top: 1rem !important; padding-top: .4rem !important; }
@media (min-width: 851px) {
  #contenuto .site-leading-section {
    margin-top: 0 !important;
    padding-top: clamp(.85rem, 2.5vw, 2rem) !important;
  }
  #contenuto .site-leading-row { margin-top: 0 !important; }
}

.site-gallery { position: relative; min-width: 0; margin-block: .75rem; }
.site-gallery > ul {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  padding: 0;
  margin: 0;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.site-gallery > ul > li {
  min-width: 0;
  flex: 0 0 calc((100% - (.75rem * (var(--photos-visible) - 1))) / var(--photos-visible));
  scroll-snap-align: start;
}
.site-gallery img {
  display: block;
  width: 100%;
  height: var(--photo-height, 480px);
  object-fit: var(--photo-fit, cover);
  border-radius: .75rem;
}
.gallery-controls {
  position: absolute;
  inset: calc(var(--photo-height, 480px) - 3.4rem) 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  pointer-events: none;
}
.gallery-controls button {
  min-width: 44px;
  min-height: 44px;
  color: var(--site-green);
  background: white;
  border: 1px solid #00633d44;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
}
.gallery-controls button:disabled { opacity: .5; cursor: default; }
.gallery-controls output {
  min-width: 4rem;
  padding: .25rem .4rem;
  border-radius: 2rem;
  background: white;
  color: #1b1b1d;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.site-accordion { margin: .55rem 0; border-bottom: 1px solid #00633d35; }
.site-accordion summary { padding: .75rem; color: var(--site-green); font-weight: 700; cursor: pointer; }

.site-video { position: relative; display: block; flex: none; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 1rem; background: #231f1b; }
.site-video > a, .site-video img, .site-video iframe { display: block; width: 100%; height: 100%; }
.site-video > a { position: absolute; inset: 0; }
.site-video img { object-fit: cover; }
.site-video iframe { position: absolute; inset: 0; border: 0; opacity: 0; pointer-events: none; }
.site-video iframe.is-ready { opacity: 1; pointer-events: auto; }
.site-video > a > span {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: .65rem 1rem;
  border-radius: 2rem;
  color: white;
  background: #181616ed;
  font-weight: 700;
}
#contenuto .site-map-section { padding-block: clamp(.75rem, 2vw, 1.5rem) !important; }
#contenuto .site-map-section .ba-row { margin-block: 0 !important; }
.map-link { display: grid; gap: .85rem; justify-items: center; }
.map-link iframe { display: block; width: 100%; height: clamp(300px, 45vw, 520px); border: 0; border-radius: .8rem; }
.site-widget { text-align: center; padding: 1rem; }
#contenuto .booking-row { display: block !important; }
.booking-fallback a { color: var(--site-green); text-decoration: underline; }
.site-widget [role="status"]:empty { display: none; }
.site-inquiry { max-width: 48rem; margin: 1.25rem auto; }
.inquiry-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.inquiry-challenge:not(:empty) { margin-block: .75rem; max-width: 100%; }
.inquiry-status { margin-top: .75rem; }
.inquiry-status[data-kind="success"] { color: #00633d; font-weight: 700; }
.inquiry-status[data-kind="error"] { color: #8b2822; font-weight: 700; }
.inquiry-fields { display: grid; gap: .8rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inquiry-fields p { margin: 0; }
.inquiry-fields .wide { grid-column: 1 / -1; }
:is(.inquiry-fields, .inquiry-test-key) label { display: block; font-weight: 700; margin-bottom: .25rem; }
.inquiry-fields :is(input, textarea), .inquiry-test-key input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: .65rem .7rem;
  margin: 0;
  border: 1px solid #a4aaa0;
  border-radius: .45rem;
  background: white;
  color: #1b1b1d;
  font: inherit;
  font-size: max(16px, 1em);
}
.inquiry-fields textarea { resize: vertical; }
.inquiry-fields [aria-invalid="true"] { border: 2px solid #8b2822; }
.inquiry-privacy a { color: var(--site-green); text-decoration: underline; }

@media (max-width: 850px) {
  :root { --site-mobile-header-height: calc(44px + .9rem); }
  .site-header { position: fixed; inset: 0 0 auto; background: #f8fbef; box-shadow: 0 3px 12px #211b150b; }
  .site-header-inner { padding: .45rem .45rem .45rem .25rem; }
  .site-brand { flex-basis: 192px; min-width: 0; }
  .site-brand img { max-height: 50px; }
  .site-top { gap: clamp(.15rem, 3vw, 1rem); }
  .site-quick, .site-primary, .site-flags { display: none; }
  .site-language { display: block; margin-inline-end: clamp(0px, 2vw, .65rem); }
  .site-language summary { display: flex; align-items: center; min-height: 44px; }
  .site-language-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    box-sizing: border-box;
    min-width: 90px;
    padding: .2rem .65rem;
    border-radius: 2rem;
    color: #fff;
    background: #00a9a9;
    font: 700 1rem/1.3 system-ui, sans-serif;
    letter-spacing: .06em;
    box-shadow: 0 5px 12px #24484420;
  }
  .site-globe {
    position: relative;
    width: 23px;
    height: 23px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
  }
  .site-globe::before, .site-globe::after { content: ""; position: absolute; }
  .site-globe::before { inset: -1px 5px; border: 1px solid; border-radius: 50%; }
  .site-globe::after { inset: 5px 0; border-top: 1px solid; border-bottom: 1px solid; border-radius: 20%; }
  .site-menu-toggle, .site-drawer-close {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #202020;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .site-menu-toggle span { display: grid; gap: 3px; }
  .site-menu-toggle span::before, .site-menu-toggle span::after {
    content: "";
    display: block;
    box-sizing: border-box;
    width: 26px;
    height: 7px;
    border: 1px solid currentColor;
    border-radius: 9px;
  }
  html:has(.site-drawer[open]) { overflow: hidden; }
  .site-drawer[open] {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    box-sizing: border-box;
    width: min(33rem, calc(100% - 2rem));
    height: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) 0;
    border: 0;
    color: #141414;
    background: #fff;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .site-drawer::backdrop { background: #131a1520; }
  .site-drawer .site-drawer-close { margin: .35rem .2rem 0 auto; font-size: 1.4rem; }
  .site-drawer-content { display: grid; gap: 1rem; padding: 1.35rem clamp(1rem, 7.5vw, 2rem) 2rem; }
  .site-drawer-pages, .site-drawer-actions { display: grid; }
  .site-header .site-drawer-pages a {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 40px;
    padding: .2rem clamp(.5rem, 4vw, 1.25rem);
    color: #151515;
    font: 450 .9rem/1.3 system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: .1em;
  }
  .site-header .site-drawer-pages a[aria-current="page"] { color: var(--site-green); }
  .site-drawer-actions { gap: .75rem; margin-top: .1rem; }
  .site-header .site-drawer-actions :is(.site-booking, .site-contact) {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: .3rem .8rem;
    border: solid transparent;
    border-width: 6px 0;
    border-radius: 4rem;
    background-clip: padding-box;
    color: #fff;
    font: 750 .875rem/1.25 system-ui, sans-serif;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .1em;
  }
  .site-header .site-drawer-actions .site-contact { background-color: #a8453d; }
  .site-drawer-phones, .site-drawer-languages { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; }
  .site-header .site-drawer-phones a {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    padding: 0 .45rem;
    color: #a8453d;
    font: 750 1rem/1 system-ui, sans-serif;
    letter-spacing: .1em;
  }
  .site-drawer-phones .zmdi { color: var(--site-green); font-size: 1.35rem; }
  .site-drawer-languages a { display: grid; place-items: center; width: 44px; height: 44px; }
  .site-drawer-languages img { display: block; width: 29px; height: 29px; border-radius: 50%; object-fit: cover; }
  #contenuto { scroll-margin-top: calc(var(--site-mobile-header-height) + .4rem); }
  #contenuto:has(.home-video-section) { padding-top: var(--site-mobile-header-height); }

  .site-inquiry { box-sizing: border-box; padding: .35rem clamp(1rem, 5vw, 1.35rem) 1.5rem; }
  .site-inquiry > form { display: grid; gap: 1.25rem; }
  .inquiry-fields { gap: clamp(1.4rem, 9vw, 2.3rem) 1rem; }
  .site-inquiry :is(.inquiry-test-key, .inquiry-test-note, .inquiry-privacy, .inquiry-status) { margin: 0; line-height: 1.6; }
  .inquiry-test-note { padding: .7rem .85rem; border-radius: .65rem; background: #f1f5ea; }
  .site-inquiry :is(.inquiry-fields, .inquiry-test-key) label { margin-bottom: .45rem; color: #202020; font-size: 1rem; font-weight: 500; line-height: 1.35; }
  .site-inquiry .inquiry-fields :is(input, textarea), .site-inquiry .inquiry-test-key input {
    min-height: 3.5rem;
    padding: .8rem 1rem;
    border: 1px solid transparent;
    border-radius: 2rem;
    background: #f1f5f6;
  }
  .site-inquiry .inquiry-fields textarea { height: auto; min-height: 9rem; border-radius: 2.4rem; line-height: 1.5; }
  .site-inquiry .inquiry-fields [aria-invalid="true"] { border-color: #8b2822; }
  .site-inquiry .inquiry-challenge:empty { display: none; }
  .site-inquiry .inquiry-challenge { margin: 0; }
  .site-inquiry .site-action {
    justify-self: center;
    width: min(100%, 19rem);
    min-height: 3.5rem;
    text-transform: uppercase;
  }
}
@media (max-width: 850px), (max-width: 1000px) and (orientation: landscape) and (pointer: coarse) {
  :root {
    --site-mobile-contact-height: calc(50px + env(safe-area-inset-bottom));
    scroll-padding-bottom: var(--site-mobile-contact-height);
  }
  body { padding-bottom: var(--site-mobile-contact-height); }
  .site-mobile-contact {
    position: fixed;
    z-index: 25;
    inset: auto 0 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    min-height: var(--site-mobile-contact-height);
    padding: 3px max(10px, env(safe-area-inset-right)) calc(3px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    background: rgb(79 99 122 / .25);
  }
  .site-mobile-contact a {
    display: grid;
    place-items: center;
    justify-self: center;
    width: min(100%, 84px);
    min-height: 44px;
    color: #fff;
    text-decoration: none;
  }
  .site-mobile-contact a > span {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 32px;
    border: 1px solid #fff;
    border-radius: 2rem;
    background: #00a508;
    box-shadow: 0 3px 4px #0006;
    font-size: 1.5rem;
    line-height: 1;
  }
}
@media (max-width: 580px) {
  .site-gallery > ul > li { flex-basis: 100%; }
  .inquiry-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
