:root {
  --vv-ink: #283d32;
  --vv-paper: #fcfaf4;
  --vv-line: #e1ded3;
  --vv-gold-tint: #f4e8cc;
}

.vv-navigation-bar,
.vv-navigation-sheet:not([open]) {
  display: none;
}

html.vv-menu-open {
  overflow: hidden;
}

.vv-navigation-sheet {
  color: var(--vv-ink);
  background: var(--vv-paper);
  border: 1px solid var(--vv-line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -14px 50px rgba(30, 45, 36, 0.18);
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: min(100%, 550px);
  max-width: 100%;
  max-height: calc(100vh - 12px);
  max-height: min(90dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 12px));
  overscroll-behavior: contain;
  padding: 14px 16px calc(20px + env(safe-area-inset-bottom, 0px));
}

.vv-navigation-sheet::backdrop {
  background: rgba(26, 39, 32, 0.58);
}

.vv-navigation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
}

.vv-navigation-heading h2 {
  font-size: 1.85rem;
  line-height: 1;
  margin: 0;
}

.vv-navigation-close {
  display: grid;
  place-items: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  border: 1px solid var(--vv-line);
  border-radius: 12px;
  background: #fff;
  color: var(--vv-ink);
}

.vv-navigation-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vv-navigation-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--vv-line);
  border-radius: 12px;
  background: #fff;
  color: var(--vv-ink);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.vv-navigation-links i {
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  border-radius: 9px;
  background: #eaf0e8;
  color: var(--vv-ink);
}

.vv-navigation-links a:hover,
.vv-navigation-links a[aria-current="page"] {
  background: #eaf0e8;
  border-color: #b6c7b4;
}

.vv-navigation-links a[href*="/prenotazioni.html"] i {
  background: var(--vv-gold-tint);
}

.vv-navigation-sheet :focus-visible,
.vv-navigation-bar :focus-visible,
.vv-itinerary :focus-visible {
  outline: 2px solid #79561d;
  outline-offset: 2px;
}

.vv-cookie-banner {
  max-block-size: 75vh;
  overflow-y: auto;
}

.vv-cookie-banner #vvYes {
  background: #f0d494 !important;
  color: #272b21 !important;
}

.projects .portfolio-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(14px, 2vw, 26px);
  margin: 0;
}

.projects .portfolio-container > .portfolio-item {
  min-width: 0;
  width: 100%;
  padding: 0;
  margin: 0;
}

.projects .portfolio-container > [hidden] {
  display: none;
}

.projects .vv-photo-tile {
  border-radius: 14px;
}

.vv-photo-zoom {
  position: absolute;
  inset: auto 10px 10px auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(31, 48, 37, .83);
  color: #fff;
  border-radius: 50%;
}

.scroll-top {
  background-color: var(--vv-ink);
}

@media (max-width: 991px) {
  .projects .portfolio-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  #header {
    background: rgba(252, 250, 244, 0.97);
    border-bottom-color: var(--vv-line);
    box-shadow: 0 3px 14px rgba(30, 45, 36, 0.07);
  }

  #header .logo :is(.logo-text, h1) {
    color: var(--vv-ink);
    text-shadow: none;
  }

  #header .logo-img {
    filter: none;
  }

  #header .lang-btn {
    color: var(--vv-ink);
    background: transparent;
    border-color: transparent;
  }

  #header .lang-btn.active {
    color: var(--vv-ink);
    background: var(--vv-gold-tint);
  }

  #header .navbar > ul > li {
    padding-inline-start: clamp(12px, 1.35vw, 24px);
  }

  #header .navbar > ul > li > a {
    color: var(--vv-ink);
    min-height: 44px;
    font-family: var(--font-default);
    font-weight: 650;
    font-size: .91rem;
    text-transform: none;
  }

  #header .navbar > ul > li > a[href$="prenotazioni.html"] {
    padding: 0 12px;
    border-radius: 999px;
    background: var(--vv-gold-tint);
  }

  #header .navbar > ul > li > a[href$="prenotazioni.html"]::before {
    display: none;
  }

  #header .navbar > ul > li > a[href$="prenotazioni.html"][aria-current="page"] {
    box-shadow: inset 0 0 0 2px #a07939;
  }
}

@media (max-width: 1279px) {
  :root {
    --vv-app-top: calc(64px + env(safe-area-inset-top, 0px));
    --vv-app-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  html:has(.vv-app-navigation) {
    scroll-padding-block-start: calc(var(--vv-app-top) + 12px);
    scroll-padding-block-end: calc(var(--vv-app-bottom) + 12px);
  }

  body.vv-app-navigation {
    padding-block-end: var(--vv-app-bottom);
  }

  .vv-app-navigation #header {
    min-block-size: var(--vv-app-top);
    padding: calc(8px + env(safe-area-inset-top, 0px)) 0 8px;
    background: rgba(252, 250, 244, 0.97);
    border-bottom-color: var(--vv-line);
    box-shadow: 0 3px 14px rgba(30, 45, 36, 0.08);
  }

  .vv-app-navigation #header > div {
    gap: 8px;
    padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
  }

  .vv-app-navigation #header .logo-text,
  .vv-app-navigation #header .logo h1 {
    color: var(--vv-ink);
    text-shadow: none;
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .vv-app-navigation #header .logo-img {
    filter: none;
    max-width: 108px;
  }

  .vv-app-navigation #header .lang-switcher {
    gap: 0;
  }

  .vv-app-navigation #header .lang-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0 4px;
    background: transparent;
    border-color: transparent;
    color: var(--vv-ink);
  }

  .vv-app-navigation #header .lang-btn.active {
    background: var(--vv-gold-tint);
    color: var(--vv-ink);
  }

  .vv-app-navigation #header #navbar,
  .vv-app-navigation #header .mobile-nav-toggle,
  .vv-app-navigation #header .mobile-nav-toggle-btn {
    display: none;
  }

  .vv-navigation-bar {
    display: block;
    position: fixed;
    z-index: 995;
    inset: auto 0 0;
    background: var(--vv-paper);
    border-top: 1px solid var(--vv-line);
    box-shadow: 0 -6px 24px rgba(30, 45, 36, 0.12);
    padding: 5px max(8px, env(safe-area-inset-right, 0px))
      calc(7px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  }

  .vv-navigation-shortcuts {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 4px;
    max-width: 526px;
    margin-inline: auto;
  }

  .vv-navigation-shortcuts > :is(a, button) {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    min-height: 54px;
    padding: 4px 2px;
    border: 0;
    border-radius: 12px;
    color: var(--vv-ink);
    background: transparent;
    text-align: center;
    font-family: inherit;
    font-size: 0.73rem;
    line-height: 1.2;
    font-weight: 700;
  }

  .vv-navigation-shortcuts i {
    font-size: 1.17rem;
    line-height: 1;
  }

  .vv-navigation-shortcuts > :is(a, button):hover,
  .vv-navigation-shortcuts > a[aria-current="page"] {
    background: #e7eee4;
  }

  .vv-navigation-shortcuts > a[href*="/prenotazioni.html"] {
    background: var(--vv-gold-tint);
  }

  .vv-navigation-shortcuts > a[href*="/prenotazioni.html"][aria-current="page"] {
    box-shadow: inset 0 0 0 2px #a07939;
  }

  .vv-app-navigation .scroll-top {
    bottom: calc(var(--vv-app-bottom) + 12px);
  }

  .vv-app-navigation .scroll-top:not(.active) {
    bottom: var(--vv-app-bottom);
  }

  .vv-app-navigation .vv-cookie-banner {
    bottom: calc(var(--vv-app-bottom) + 10px) !important;
  }

  .vv-app-navigation .booking-wrap {
    padding-top: calc(var(--vv-app-top) + 30px);
  }
}

@media (max-width: 767px) {
  .projects .portfolio-container {
    grid-template-columns: 1fr;
  }

  .section-header h2::before,
  .section-header h2::after {
    display: none;
  }

  .section-header p {
    max-width: min(100%, 38rem);
  }

  .page-intro,
  .projects,
  .services,
  .testimonials,
  .contact {
    padding-block: clamp(2.25rem, 8vw, 3.5rem);
  }

  .vv-app-navigation .breadcrumbs {
    padding-block: calc(var(--vv-app-top) + 32px) 34px;
    min-height: 0;
  }

  .breadcrumbs h1 {
    text-wrap: balance;
  }

  .foto-struttura .portfolio-filters-wrap {
    margin: 0 0 1.25rem;
    overflow: visible;
    padding: 0;
  }

  .foto-struttura .portfolio-flters {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .foto-struttura .portfolio-flters li {
    justify-content: center;
    min-height: 44px;
    padding-inline: 0.7rem;
  }

  .vv-app-navigation .hero {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column-reverse;
    padding-top: var(--vv-app-top);
    background: var(--vv-paper);
  }

  .vv-app-navigation .hero .carousel {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
    padding: 0;
    background: #23372b;
  }

  .vv-app-navigation .hero .carousel-item {
    height: 100%;
    min-height: 0;
  }

  .vv-app-navigation .hero .carousel-item::before {
    content: none;
  }

  .vv-app-navigation .hero .info {
    position: relative;
    inset: auto;
    padding: 26px 14px 32px;
  }

  .vv-app-navigation .hero .info :is(h1, .hero-title, .hero-title span) {
    color: var(--vv-ink) !important;
    text-shadow: none;
    margin-bottom: 0;
  }

  .vv-app-navigation .hero .info p {
    color: #495f50;
    margin: 10px 0 18px;
  }

  .vv-app-navigation .hero .info .btn-get-started {
    margin: 0;
    border-color: var(--vv-ink);
    background: var(--vv-ink);
    color: #fff;
  }

  .vv-app-navigation .hero .carousel-control-next,
  .vv-app-navigation .hero .carousel-control-prev {
    display: flex;
    width: 52px;
    opacity: 1;
  }

  .vv-app-navigation .hero .carousel-control-next-icon,
  .vv-app-navigation .hero .carousel-control-prev-icon {
    width: 44px;
    height: 44px;
    line-height: 44px;
    background-color: rgba(31, 45, 36, 0.77);
    background-image: none;
    font-size: 18px;
  }

  .contact .php-email-form :is(input, select, textarea),
  .booking-wrap :is(input, select, textarea) {
    min-width: 0;
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .foto-struttura .portfolio-flters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vv-fr-home {
  position: relative;
  margin-bottom: 1.35rem;
  overflow: hidden;
  border-radius: 20px;
  background: #253a2e;
}

.vv-fr-home img {
  display: block;
  width: 100%;
  height: clamp(340px, 52vw, 565px);
  object-fit: cover;
}

.vv-fr-home-copy {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(transparent, rgba(22, 38, 30, .93) 70%);
  color: #fff;
}

.vv-fr-home-copy h1 {
  margin: 0 0 .75rem;
  font-size: clamp(2.1rem, 5.4vw, 4.2rem);
  line-height: 1;
  text-wrap: balance;
}

.vv-fr-home-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 620px) {
  .vv-fr-home img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .vv-fr-home-copy {
    position: static;
    background: #253a2e;
  }
}
