:root {
  color-scheme: light;
  --paper: #f9f8f4;
  --white: #fff;
  --ink: #172f2a;
  --muted: #536761;
  --teal: #0e5146;
  --teal-dark: #093c34;
  --mint: #e7f0ea;
  --line: #dcded5;
  --copper: #a9422c;
  --copper-dark: #8d3422;
  --peach: #ffc4a5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, system-ui, sans-serif;
  --shadow: 0 10px 35px #152e2320;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 290px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem/1.5 var(--sans);
}
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.container { width: min(100% - 96px, 1248px); margin-inline: auto; }
.content-section, #ricerca { scroll-margin-top: 30px; }

.icon-library, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.icon {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 14px;
  transform: translateY(-150%);
  background: var(--white);
  border-radius: 8px;
}
.skip-link:focus { transform: none; }

.site-header { background: var(--paper); }
.header-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 86px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  color: var(--ink);
  font-size: 1.31rem;
  font-weight: 750;
  letter-spacing: -.055em;
  text-decoration: none;
  white-space: nowrap;
}
.brand > span:last-child > span { color: var(--teal); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: var(--teal);
  color: #fff9ed;
}
.brand-mark svg { width: 29px; height: 29px; }
.site-nav { display: flex; align-items: center; gap: 38px; }
.site-nav a {
  padding: 9px 0;
  position: relative;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav .nav-current { color: var(--teal); }
.nav-current::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}
.saved-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
}
.saved-link:hover, .saved-link[aria-pressed="true"] { background: var(--mint); border-color: var(--teal); }
.saved-link .icon { width: 18px; height: 18px; }
.saved-count { padding: 0 6px; border-radius: 8px; background: var(--teal); color: var(--white); font-size: .75rem; }

.hero { position: relative; }
.hero-image {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 472px;
  padding: 56px clamp(28px, 5.6vw, 85px) 80px;
  border-radius: 28px;
  isolation: isolate;
  background: #194845;
  color: #fffaf0;
}
.hero-image > img, .hero-image::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  height: 100%;
}
.hero-image > img { object-position: center 55%; }
.hero-image::after {
  content: "";
  background: linear-gradient(90deg, #102e2ce8 0%, #102e2cad 32%, #102e2c58 58%, #102e2c08 86%),
    linear-gradient(0deg, #0c252478 0%, transparent 38%);
}
.hero-copy { max-width: 640px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #fff0e3;
  font-size: .81rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow > span { width: 17px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.hero h1 {
  margin: 15px 0 21px;
  font-size: clamp(3.55rem, 6.2vw, 6.1rem);
  line-height: .99;
  letter-spacing: -.072em;
}
.hero h1 em { color: var(--peach); }
.hero-description { margin: 0; max-width: 390px; font-size: 1.03rem; line-height: 1.6; }
.hero-location {
  position: absolute;
  right: 26px;
  bottom: 25px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid #ffffff7a;
  border-radius: 100px;
  background: #143330c4;
  color: var(--white);
  font-size: .79rem;
  font-weight: 650;
}
.hero-location:hover { background: var(--teal-dark); }
.hero-location:focus-visible { outline-color: var(--white); }
.hero-location .icon { width: 15px; height: 15px; }

.search-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1.08fr 1fr auto;
  align-items: stretch;
  gap: 8px;
  width: min(calc(100% - 120px), 1048px);
  min-height: 85px;
  margin: -27px auto 0;
  padding: 10px;
  border: 1px solid #e6e4db;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.search-segment {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.search-segment + .search-segment::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -4px;
  width: 1px;
  background: var(--line);
}
.destination-segment { align-items: center; gap: 11px; padding: 8px 13px; }
.search-symbol { width: 23px; height: 23px; color: var(--teal); }
.field-text { display: grid; flex: 1; align-content: center; min-width: 0; line-height: 1.35; }
.field-text label, .field-text strong { color: var(--ink); font-size: .9rem; font-weight: 700; }
.field-text input, .field-text > span {
  width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: .89rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.field-text input { margin: 3px 0 0; padding: 0; border: 0; background: transparent; }
.field-text input::placeholder { color: var(--muted); opacity: 1; }
.field-text input:focus { outline: none; }
.destination-segment:focus-within { background: #f3f7f3; border-radius: 11px; }
.field-text > span { margin-top: 3px; }
.field-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 8px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
}
.field-button:hover, .field-button[aria-expanded="true"] { background: #f3f7f3; }
.field-chevron { width: 16px; height: 16px; margin-left: auto; color: var(--muted); }
.button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .93rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
}
.button .icon { width: 18px; height: 18px; }
.button-search { min-width: 126px; background: var(--copper); color: var(--white); font-size: 1rem; }
.button-search:hover { background: var(--copper-dark); }
.button-search .icon { width: 21px; height: 21px; }
.button-teal { background: var(--teal); color: var(--white); }
.button-teal:hover { background: var(--teal-dark); }
.button-teal:disabled { background: #e3e9e3; color: #52645b; }
.button-outline { border-color: var(--line); background: transparent; color: var(--teal-dark); }
.button-outline:hover { border-color: var(--teal); background: var(--mint); }
.search-error { width: min(calc(100% - 32px), 1048px); margin: 10px auto 0; color: var(--copper-dark); font-size: .92rem; }

.popover {
  position: absolute;
  z-index: 4;
  top: calc(100% + 12px);
  left: 0;
  width: max(100%, 282px);
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.popover-heading { margin: 4px 5px 9px; color: var(--teal); font-size: .85rem; font-weight: 750; }
.destination-popover ul { padding: 0; margin: 0; list-style: none; }
.destination-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 7px;
  border-radius: 8px;
  cursor: pointer;
}
.destination-option[aria-selected="true"], .destination-option:hover { background: var(--mint); }
.destination-option .icon { width: 17px; height: 17px; color: var(--teal); }
.destination-option strong, .destination-option small { display: block; }
.destination-option small, .choice-empty { color: var(--muted); font-size: .82rem; }
.choice-empty { margin: 4px 5px; }
.date-popover { width: 320px; }
.calendar-navigation, .popover-footer, .guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#calendar-month::first-letter { text-transform: uppercase; }
.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--teal);
}
.icon-button:hover:not(:disabled) { border-color: var(--teal); background: var(--mint); }
.icon-button:disabled { color: #747d75; opacity: .5; }
.icon-button .icon { width: 17px; height: 17px; }
.calendar-prev .icon { transform: rotate(90deg); }
.calendar-next .icon { transform: rotate(-90deg); }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  margin: 10px 0 12px;
  text-align: center;
}
.calendar-grid .weekday { padding-block: 3px; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.calendar-day {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: .86rem;
}
.calendar-day:disabled { color: #747d75; text-decoration: line-through; opacity: .65; }
.calendar-day.in-range, .calendar-day:hover:not(:disabled) { background: var(--mint); }
.calendar-day.selected, .calendar-day.selected:hover { background: var(--teal); color: var(--white); }
.popover-footer { margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--line); }
.text-button { padding: 6px; border: 0; border-radius: 5px; background: transparent; color: var(--teal); font-weight: 700; }
.text-button:hover { background: var(--mint); }
.align-right { justify-content: flex-end; }
.guest-popover { right: 0; left: auto; }
.guest-row { min-height: 51px; }
.guest-row + .guest-row { border-top: 1px solid #eceee8; }
.guest-row strong { font-size: .92rem; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper output { width: 19px; text-align: center; font-variant-numeric: tabular-nums; }

.content-section { margin-top: 66px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin: 7px 0 4px;
  font-size: clamp(2.2rem, 3.8vw, 3.45rem);
  line-height: 1.07;
  letter-spacing: -.061em;
}
#stay-heading:focus { outline: none; }
.section-kicker { color: var(--copper-dark); }
.section-heading p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); }
.section-heading .button { flex: none; margin-bottom: 2px; }
#show-destinations[aria-expanded="true"] .icon { transform: rotate(180deg); }
.destination-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.destination-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  aspect-ratio: 1.12;
  min-width: 0;
  width: 100%;
  min-height: 183px;
  padding: 17px 20px;
  border: 0;
  border-radius: 17px;
  background: var(--teal-dark);
  color: var(--white);
  text-align: left;
}
.destination-card img, .destination-card::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.destination-card img { z-index: -2; transition: transform .35s ease; }
.destination-card::before { content: ""; z-index: -1; background: linear-gradient(0deg, #0b211fee 0%, #0b211f6b 34%, #0b211f0a 72%); }
.destination-card:hover img { transform: scale(1.06); }
.destination-name { font: 400 clamp(1.7rem, 2.4vw, 2.3rem)/1.08 var(--serif); letter-spacing: -.045em; }
.destination-region { margin-top: 4px; color: #fff2e8; font-size: .85rem; font-weight: 650; }

.stays { margin-bottom: 74px; }
.stay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stay-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid #e5e5da;
  border-radius: 17px;
  background: var(--white);
  transition: box-shadow .2s ease;
}
.stay-card:hover { box-shadow: 0 9px 22px #162c2213; }
.stay-card img { height: auto; aspect-ratio: 1.78; }
.favorite-button {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-color: transparent;
  color: var(--ink);
  box-shadow: 0 3px 12px #162c222a;
}
.favorite-button .icon { width: 20px; height: 20px; }
[aria-pressed="true"] > .icon:has(use[href="#heart"]) { color: var(--copper); fill: var(--copper); }
.stay-body { display: grid; align-content: start; padding: 15px 17px 17px; }
.stay-category { margin: 0; color: var(--muted); font-size: .83rem; }
.stay-body h3 { margin: 4px 0 9px; font-size: 1.52rem; line-height: 1.12; letter-spacing: -.038em; }
.stay-open { text-decoration: none; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.stay-open:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.stay-open::after { content: ""; position: absolute; inset: 0; }
.stay-price { margin: 0; color: var(--muted); font-size: .86rem; }
.stay-price strong { color: var(--ink); font-size: 1.02rem; font-weight: 800; }
.empty-state { padding: 34px 20px; border: 1px dashed var(--line); border-radius: 15px; text-align: center; }
.empty-state .icon { margin: auto; color: var(--teal); }
.empty-state h3 { margin: 10px 0 4px; font-size: 1.55rem; }
.empty-state p { margin: 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); }
.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 98px;
  padding-block: 16px;
}
.footer-layout > span, .footer-layout > a:last-child { color: var(--muted); font-size: .85rem; }
.footer-layout > a:last-child:hover { color: var(--teal); }
.no-script { width: min(90%, 700px); margin: 16px auto; text-align: center; }

@media (max-width: 1050px) {
  .container { width: calc(100% - 64px); }
  .search-bar { width: calc(100% - 68px); }
  .button-search { min-width: 105px; }
}

@media (max-width: 815px) {
  .container { width: calc(100% - 36px); }
  .hero-image { min-height: 435px; }
  .search-bar { width: calc(100% - 34px); }
  .destination-segment, .field-button { gap: 7px; padding-inline: 8px; }
  .field-chevron { display: none; }
  .destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .destination-card { aspect-ratio: 1.38; }
}

@media (min-width: 671px) and (max-width: 815px) {
  .search-bar { grid-template-columns: 1.08fr 1.06fr 1fr auto; width: calc(100% - 20px); }
  .button-search { min-width: 85px; padding-inline: 8px; }
  .field-text label, .field-text strong, .field-text > span, .field-text input { font-size: .83rem; }
}

@media (max-width: 670px) {
  .container { width: calc(100% - 28px); }
  .header-layout { grid-template-columns: 1fr auto; min-height: 69px; gap: 10px; }
  .site-nav { display: none; }
  .hero-image { min-height: 357px; padding: 32px 22px 74px; border-radius: 20px; }
  .hero-image > img { object-position: 58% 56%; }
  .hero-image::after { background: linear-gradient(90deg, #102e2ce8, #102e2c6b 73%, #102e2c22); }
  .hero h1 { margin: 13px 0 16px; font-size: clamp(2.7rem, 10.5vw, 4.2rem); }
  .hero-description { max-width: 290px; font-size: .94rem; }
  .hero-location { right: 13px; bottom: 32px; }
  .search-bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    width: calc(100% - 18px);
    margin-top: -23px;
    padding: 8px;
  }
  .search-segment + .search-segment::before { inset: 0 8px auto; width: auto; height: 1px; }
  .destination-segment, .field-button { gap: 11px; min-height: 53px; padding-inline: 10px; }
  .field-chevron { display: block; }
  .button-search { min-height: 48px; margin-top: 4px; }
  .popover { top: calc(100% + 3px); width: min(100%, 320px); }
  .guest-popover { right: auto; left: 0; }
  .content-section { margin-top: 49px; }
  .section-heading { flex-wrap: wrap; margin-bottom: 18px; }
  .section-heading .button { min-height: 38px; padding-inline: 11px; font-size: .85rem; }
  .destination-grid { gap: 10px; }
  .destination-card { min-height: 146px; padding: 12px; border-radius: 13px; }
  .destination-name { font-size: clamp(1.3rem, 5vw, 1.9rem); }
  .stay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stay-body { padding: 11px; }
  .stay-body h3 { font-size: 1.2rem; }
  .favorite-button { top: 7px; right: 7px; width: 35px; height: 35px; }
  .favorite-button .icon { width: 17px; height: 17px; }
  .stays { margin-bottom: 48px; }
  .footer-layout { align-items: start; flex-direction: column; gap: 9px; padding-block: 19px; }
}

@media (max-width: 365px) {
  .hero-image { padding-inline: 16px; }
  .stay-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.header-tools { display: flex; align-items: center; justify-self: end; gap: 7px; }
.account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--teal);
  border-radius: 100px;
  background: var(--teal);
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.account-link:hover { background: var(--teal-dark); }
.user-menu { position: relative; z-index: 8; }
.user-menu summary { cursor: pointer; list-style: none; white-space: nowrap; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary .icon { width: 17px; height: 17px; }
.user-menu summary .icon:last-child { width: 15px; height: 15px; }
.user-menu[open] summary .icon:last-child { transform: rotate(180deg); }
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(210px, calc(100vw - 28px));
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.user-dropdown-items { display: grid; gap: 2px; }
.user-dropdown a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}
.user-dropdown a:hover, .user-dropdown a:focus-visible { background: var(--mint); }
.user-dropdown a:focus-visible { outline-offset: -2px; }
.user-dropdown [data-sign-out] { border-top: 1px solid var(--line); color: var(--copper-dark); }
.user-dropdown-status, .user-dropdown-error { margin: 5px 8px; color: var(--muted); font-size: .84rem; }
.user-dropdown-error { color: var(--copper-dark); }
.favorite-notice {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 6;
  max-width: calc(100% - 30px);
  margin: 0;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--copper-dark);
  box-shadow: var(--shadow);
  font-size: .9rem;
}
@media (max-width: 740px) {
  .header-tools .saved-link, .account-link { min-height: 37px; padding-inline: 9px; }
  .header-tools .saved-link { gap: 4px; }
  .user-menu summary .icon:first-child { display: none; }
}
@media (max-width: 370px) {
  .header-tools .saved-link > span:not(.saved-count) {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
}
