:root {
  --cream: #f7f0e4;
  --paper: #fffdf8;
  --white: #ffffff;
  --forest: #30452e;
  --forest-soft: #e8efe3;
  --wood: #77563c;
  --wood-soft: #e6d8c8;
  --gold: #c8a45d;
  --ink: #241f18;
  --muted: #6f665b;
  --line: #ded0bb;
  --shadow: 0 22px 58px rgba(74, 53, 31, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0; }
h1 { margin: 14px 0 18px; font-size: clamp(54px, 8vw, 112px); line-height: .9; }
h2 { margin: 10px 0 18px; font-size: clamp(34px, 4.8vw, 62px); line-height: 1; color: var(--forest); }
h3 { margin: 0 0 10px; font-size: 27px; line-height: 1.13; }
p { line-height: 1.7; }

.header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: rgba(247, 240, 228, .94);
  border-bottom: 1px solid rgba(222, 208, 187, .82);
  backdrop-filter: blur(16px);
}
.nav {
  max-width: 1280px;
  margin: auto;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-mark, .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  font-weight: 900;
  text-transform: uppercase;
}
.logo-mark small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  text-transform: none;
}
.logo-symbol, .mini-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #2a2118;
  background: radial-gradient(circle at 30% 24%, #fff5cf, var(--gold));
  border: 1px solid rgba(119, 86, 60, .28);
  box-shadow: 0 10px 24px rgba(90, 63, 36, .14);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}
.mini-logo { width: 36px; height: 36px; font-size: 13px; }
.brand-logo {
  width: min(190px, 48vw) !important;
  max-width: min(190px, 48vw) !important;
  height: auto;
  display: block;
}
.menu {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 750;
}
.menu a {
  padding: 9px 10px;
  border-radius: 999px;
  color: #3a332a;
}
.menu a:hover, .menu a:focus { background: var(--forest-soft); color: var(--forest); }
.language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,253,248,.72);
}
.language-switcher a {
  min-width: 32px;
  padding: 7px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.language-switcher a:hover,
.language-switcher a:focus,
.language-switcher a.active {
  color: #241807;
  background: var(--gold);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 22px;
}

.hero-slideshow {
  min-height: 88vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}
.slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1000ms ease, transform 6000ms ease;
}
.slide.active { z-index: 1; opacity: 1; transform: scale(1); }
.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto 78px;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  color: #fff4d8;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}
.leitmotiv {
  max-width: 790px;
  margin: 0;
  color: #fff6df;
  font-size: clamp(19px, 2.1vw, 28px);
  line-height: 1.45;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.primary { background: var(--gold); color: #261b0d; box-shadow: 0 13px 28px rgba(58, 39, 16, .22); }
.glass { color: var(--white); border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12); }
.secondary { color: var(--forest); border: 1px solid var(--line); background: var(--paper); }
.slide-dots { position: absolute; right: 30px; bottom: 28px; z-index: 4; display: flex; gap: 9px; }
.slide-dots span { width: 42px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.36); }
.slide-dots .on { background: var(--gold); }

.section { padding: 84px 22px; }
.section.alt { background: #fbf7ef; }
.wrap { width: min(1180px, 100%); margin: auto; }
.eyebrow {
  margin: 0;
  color: var(--wood);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 950;
}
.lead { max-width: 860px; color: var(--muted); font-size: 19px; }
.intro-grid, .story-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 34px;
  align-items: center;
}
.signature-card, .mission-card, .guestbook-card, .payment-card, .weather-card, .rule-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.logo-watermark {
  display: block;
  color: rgba(48,69,46,.14);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 900;
  line-height: 1;
}
.signature-card p { margin-bottom: 0; color: var(--muted); font-size: 20px; }

.loft-grid, .weather-grid, .booking-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 30px;
}
.loft-card, .package-card, .product-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.loft-card img { width: 100%; height: 330px; object-fit: cover; }
.loft-body { padding: 28px; }
.loft-gallery { margin-top: 20px; }
.loft-gallery summary {
  cursor: pointer;
  list-style: none;
  width: 100%;
  justify-content: center;
}
.loft-gallery summary::-webkit-details-marker { display: none; }
.loft-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.loft-gallery-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7efe4;
}
.loft-gallery-grid img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
  transition: transform .25s ease;
}
.loft-gallery-grid a:hover img { transform: scale(1.04); }
.badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  margin-bottom: 10px;
  color: var(--forest);
  background: var(--forest-soft);
  border: 1px solid #d2dcc9;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
}
.price-table { width: 100%; margin: 14px 0 18px; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { padding: 13px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { color: var(--forest); background: #f2eadc; }

.package-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.package-card { grid-column: span 2; }
.package-card:nth-child(4), .package-card:nth-child(5) { grid-column: span 3; }
.package-card img { width: 100%; height: 230px; object-fit: cover; }
.package-card > div { padding: 24px; }
.price { margin: 8px 0 10px; color: var(--forest); font-size: 28px; line-height: 1.1; font-weight: 950; }
.aggi-tip {
  margin-top: 16px;
  padding: 13px 15px;
  color: #4f3d24;
  background: #fff5dc;
  border: 1px solid #ead8ad;
  border-radius: 18px;
  font-weight: 760;
}
.liability {
  margin-top: 16px;
  color: #514538;
  font-size: 14px;
  background: #f7efe2;
  border-left: 5px solid var(--gold);
  border-radius: 16px;
  padding: 14px 15px;
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.destination-grid a {
  min-height: 110px;
  display: flex;
  align-items: end;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(145deg, rgba(48,69,46,.92), rgba(119,86,60,.78)), url("../img/slide/slide-4.jpg");
  background-size: cover;
  border-radius: 22px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(64,48,31,.11);
}
.note {
  margin-top: 20px;
  padding: 16px 18px;
  color: #584731;
  background: #fff7e7;
  border: 1px solid #eadab9;
  border-radius: 18px;
}

.story { background: var(--forest); color: var(--white); }
.story h2 { color: var(--white); }
.story p { color: #fff1d3; }
.mission-card { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); box-shadow: none; }
.soon {
  display: inline-flex;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #241807;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.missions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}
.missions li {
  padding: 12px 14px;
  border: 1px dashed rgba(255,255,255,.35);
  border-radius: 15px;
  color: #fff5dc;
}
.stamp-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.stamp-row span { aspect-ratio: 1; border: 2px dashed rgba(255,255,255,.42); border-radius: 50%; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 30px;
}
.product-card { padding: 18px; }
.product-card h3 { padding: 18px 8px 0; }
.product-card .aggi-tip { margin: 14px 8px 8px; }
.product-content { padding: 18px 8px 8px; }
.product-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.product-title h3 { padding: 0; }
.variants {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 8px 4px;
}
.variants img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.product-photo {
  height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: radial-gradient(circle at 50% 42%, #fffaf0, #eadcc8 64%, #cbb28c);
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  filter: saturate(.98) contrast(1.03);
}

.weather-card h3, .payment-card h3 { color: var(--forest); }
#weather { color: var(--muted); font-weight: 800; }
.booking-manager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 30px;
}
.booking-unit {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.booking-unit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.calendar-status {
  max-width: 190px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}
.calendar-tools {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  align-items: center;
  margin: 18px 0 12px;
}
.calendar-tools strong {
  color: var(--forest);
  font-size: 18px;
  text-align: center;
}
.calendar-nav {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--forest);
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}
.booking-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.calendar-cell {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}
.calendar-cell.head {
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.calendar-cell.empty {
  border-color: transparent;
  background: transparent;
}
.calendar-cell.booked {
  color: #ffffff;
  background: var(--wood);
  border-color: var(--wood);
}
.calendar-cell.today {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.calendar-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.calendar-legend i {
  width: 13px;
  height: 13px;
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}
.calendar-legend .is-booked i {
  background: var(--wood);
  border-color: var(--wood);
}
.ical-note {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.booking-panel {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  align-items: start;
}
.booking-panel.payment-only {
  grid-template-columns: minmax(280px, 420px);
}
.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.booking-form label { display: grid; gap: 7px; color: var(--ink); font-weight: 850; }
.booking-form input, .booking-form select, .booking-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px 13px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.booking-form .wide { grid-column: 1 / -1; }
.consent { display: flex !important; align-items: center; gap: 10px; color: var(--muted) !important; font-weight: 700 !important; }
.consent input { width: auto; min-height: auto; }

.contact-grid { align-items: start; }
.rule-card + .rule-card { margin-top: 18px; }
.rule-card a { color: var(--forest); font-weight: 950; }
.guestbook-card { background: linear-gradient(145deg, #fffdf8, #f2eadc); }

.footer {
  padding: 54px 22px;
  color: #f5ead6;
  background: #1f1b14;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr .7fr;
  gap: 28px;
  align-items: start;
}
.footer-logo { color: #f5ead6; font-size: 28px; }
.footer nav, .socials { display: flex; gap: 14px; flex-wrap: wrap; }
.footer a { color: #f3d791; font-weight: 850; }

.cookie {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  width: min(620px, calc(100% - 36px));
  display: none;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,253,248,.98);
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}
.cookie.show { display: block; }
.cookie button {
  margin: 4px 6px 0 0;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #241807;
  background: var(--gold);
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .menu {
    position: absolute;
    inset: 74px 16px auto;
    display: none;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 14px; }
  .language-switcher { margin-left: auto; }
  .package-grid, .destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .package-card, .package-card:nth-child(4), .package-card:nth-child(5) { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 62px 18px; }
  .nav { padding: 11px 16px; }
  .logo-mark span:not(.logo-symbol) { font-size: 14px; }
  .logo-symbol { width: 42px; height: 42px; }
  .language-switcher {
    order: 3;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
  }
  .hero-slideshow { min-height: 82vh; }
  .hero-content { width: calc(100% - 32px); margin-bottom: 58px; }
  .hero-actions .btn { width: 100%; }
  .intro-grid, .story-grid, .contact-grid, .loft-grid, .weather-grid, .booking-panel, .product-grid, .booking-form { grid-template-columns: 1fr; }
  .booking-manager { grid-template-columns: 1fr; }
  .booking-unit-head { display: block; }
  .calendar-status { display: block; max-width: none; margin-top: 8px; text-align: left; }
  .loft-card img, .product-photo { height: 260px; }
  .loft-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loft-gallery-grid img { height: 110px; }
  .package-grid, .destination-grid, .missions { grid-template-columns: 1fr; }
  .destination-grid a { min-height: 86px; }
  .slide-dots { left: 16px; right: auto; }
}

.aggi-main-image {
  transition: opacity .18s ease, transform .18s ease;
}

.aggi-thumbs img {
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}

.aggi-thumbs img:hover,
.aggi-thumbs img:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,150,73,.25);
  opacity: .95;
  outline: none;
  transform: translateY(-1px);
}

.aggi-thumbs img.active-thumb {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(49,77,61,.18);
}
