:root {
  --ink: #24313a;
  --muted: #66737d;
  --sea: #0f766e;
  --sea-dark: #0b4f49;
  --gold: #f59e0b;
  --sand: #f8f1e6;
  --line: rgba(36, 49, 58, .10);
  --shadow: 0 18px 45px rgba(36, 49, 58, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fdfdfd;
  text-rendering: optimizeLegibility;
}

body.modal-open { overflow: hidden; }

h1, h2, h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: .5rem 0;
  background: transparent;
  transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, .08);
  padding: .35rem 0;
}

.nav-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}

.brand img {
  height: 70px;
  width: auto;
  transform: scale(1.67);
  transform-origin: center;
  filter: brightness(0) invert(1);
}

.site-header.is-scrolled .brand img,
.site-header.menu-open .brand img {
  filter: none;
}

.social-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  font-size: 24px;
  color: #fff;
  transition: color .3s ease, transform .3s ease, filter .3s ease;
}

img.social-icon { filter: brightness(0) invert(1); }

.social-icon:hover { transform: scale(1.1); color: #facc15; }

.site-header.is-scrolled .social-icon,
.site-header.menu-open .social-icon {
  color: #4a4a4a;
}

.site-header.is-scrolled img.social-icon,
.site-header.menu-open img.social-icon {
  filter: invert(0) brightness(0) saturate(100%);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: .95rem;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.site-header.is-scrolled .main-nav a,
.site-header.menu-open .main-nav a {
  color: #4a4a4a;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: currentColor;
  opacity: .55;
  transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.lang-switch img,
.lang-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .3s ease;
}

.lang-switch img:hover,
.lang-switch a[aria-current="true"] img,
.lang-flag:hover,
.lang-flag.active {
  border-color: var(--gold);
  transform: scale(1.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .9rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.btn-primary {
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 8px 16px rgba(245, 158, 11, .18);
}

.btn-primary:hover { box-shadow: 0 12px 22px rgba(245, 158, 11, .28); }

.btn-dark {
  background: #24313a;
  color: #fff;
  box-shadow: 0 10px 28px rgba(36, 49, 58, .18);
}

.btn-whatsapp {
  background: #22c55e;
  color: #fff;
  box-shadow: 0 10px 24px rgba(34, 197, 94, .24);
}

.btn-whatsapp:hover {
  background: #16a34a;
  box-shadow: 0 14px 30px rgba(34, 197, 94, .32);
}

.btn-soft {
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  border-color: rgba(255, 255, 255, .55);
}

.mobile-book {
  display: none;
  flex: 1;
  padding: 0 .75rem;
}

.mobile-book span {
  display: inline-flex;
  width: 100%;
  min-width: 132px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #15803d, #10b981);
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 185, 129, .22);
  padding: .62rem 1rem;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.9rem;
  cursor: pointer;
}

.site-header.is-scrolled .menu-toggle,
.site-header.menu-open .menu-toggle {
  color: #4a4a4a;
}

.mobile-menu {
  display: none;
  background: #fff;
  text-align: center;
  padding: 1rem 1.25rem 1.25rem;
  box-shadow: 0 15px 30px rgba(15, 23, 42, .12);
}

.mobile-menu.is-open { display: block; }

.mobile-menu a {
  display: block;
  padding: .55rem 0;
  color: #4b5563;
  text-decoration: none;
  font-weight: 600;
}

.hero {
  min-height: 100vh;
  padding: 7.25rem 1.25rem 4rem;
  background:
    linear-gradient(rgba(0, 0, 0, .46), rgba(0, 0, 0, .34) 36%, rgba(253, 253, 253, .96) 78%, #fdfdfd 100%),
    url("images/Esterni/esterni_1.jpg") center/cover;
}

.hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-copy {
  max-width: 840px;
  margin: 0 auto 1.75rem;
  text-align: center;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero h1 {
  font-size: clamp(3.1rem, 7vw, 6.3rem);
  line-height: .95;
  color: #fff;
  text-shadow: 0 8px 26px rgba(0,0,0,.22);
}

.hero p {
  max-width: 760px;
  margin: 1.2rem auto 0;
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.4rem;
}

.map-stage {
  position: relative;
  width: min(940px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.7);
  isolation: isolate;
}

.structure-map {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.map-note {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(8,38,42,.12);
}

.hotspot {
  --x: 50%;
  --y: 50%;
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 5;
  width: clamp(34px, 4vw, 50px);
  height: clamp(34px, 4vw, 50px);
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 999px;
  background: #075f66;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(5, 68, 75, .3);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.hotspot span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  font-size: clamp(.82rem, 1.35vw, 1.08rem);
  line-height: 1;
}

.hotspot:hover,
.hotspot:focus-visible {
  transform: translate(-50%, -50%) scale(1.11);
  outline: none;
  background: #d39a19;
  box-shadow: 0 9px 24px rgba(211, 154, 25, .32);
}

.hotspot .tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .55rem);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 220px;
  padding: .5rem .7rem;
  border-radius: 8px;
  background: #102f32;
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.hotspot:hover .tip,
.hotspot:focus-visible .tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hotspot.tip-bottom .tip {
  top: calc(100% + .55rem);
  bottom: auto;
  transform: translateX(-50%) translateY(-4px);
}

.hotspot.tip-bottom:hover .tip,
.hotspot.tip-bottom:focus-visible .tip {
  transform: translateX(-50%) translateY(0);
}

.content-band {
  padding: 4.75rem 1.25rem;
  background: #fff;
}

.section-inner {
  width: min(980px, 100%);
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 1.6rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #102f32;
}

.section-head p {
  margin: .75rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-list {
  display: grid;
  gap: .85rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(36, 49, 58, .07);
  overflow: hidden;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  font-weight: 800;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: var(--sea-dark);
  font-weight: 800;
}

.faq-list details[open] summary::after { content: "-"; }

.faq-list p {
  margin: 0;
  padding: 0 1.2rem 1.15rem;
  color: var(--muted);
  line-height: 1.7;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.modal.is-open { display: block; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,25,28,.74);
  backdrop-filter: blur(14px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.38);
  animation: modalIn .24s ease both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(320px, .64fr);
  max-height: inherit;
}

.gallery {
  min-height: min(720px, calc(100vh - 2rem));
  background: #07191b;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.main-photo-wrap {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.main-photo-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(22px);
  opacity: .28;
  transform: scale(1.08);
}

.main-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 136px);
  object-fit: contain;
  cursor: pointer;
}

.gallery-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.gallery-btn.prev { left: .85rem; }
.gallery-btn.next { right: .85rem; }

.photo-counter {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: .9rem;
  transform: translateX(-50%);
  padding: .42rem .7rem;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}

.thumbs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .75rem;
  background: rgba(0,0,0,.2);
  scrollbar-width: thin;
}

.thumbs button {
  flex: 0 0 76px;
  height: 58px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  opacity: .72;
  cursor: pointer;
}

.thumbs button.is-active {
  border-color: var(--gold);
  opacity: 1;
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-copy {
  padding: clamp(1.35rem, 3.4vw, 2.35rem);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  right: .9rem;
  top: .9rem;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  cursor: pointer;
}

.modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .7rem;
  border-radius: 999px;
  background: rgba(15,118,110,.1);
  color: var(--sea-dark);
  font-weight: 800;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.modal-copy h2 {
  margin-top: 1.05rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.modal-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding: 0;
  margin: 1.25rem 0;
  list-style: none;
}

.feature-list li {
  padding: .5rem .7rem;
  border-radius: 999px;
  background: #f1f6f5;
  color: #24494d;
  font-size: .9rem;
  font-weight: 700;
}

.modal-actions {
  display: grid;
  gap: .65rem;
  margin-top: 1.4rem;
}

.page-footer {
  padding: 3rem 1.25rem;
  background: #102f32;
  color: rgba(255,255,255,.8);
  text-align: center;
}

.page-footer img {
  width: 160px;
  margin: 0 auto .9rem;
  filter: brightness(0) invert(1);
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(34, 197, 94, .35);
  transition: transform .2s ease, background .2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #16a34a;
}

.whatsapp-float i { font-size: 2rem; }

@media (max-width: 1180px) {
  .main-nav { gap: 1.1rem; font-size: .88rem; }
  .header-actions { gap: .7rem; }
  .btn { padding-left: 1.1rem; padding-right: 1.1rem; }
}

@media (max-width: 1020px) {
  .main-nav,
  .header-actions .btn-primary,
  .lang-switch.desktop,
  .social-strip {
    display: none;
  }

  .mobile-book { display: block; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-shell { gap: .5rem; padding: 0 1rem; }
  .brand-block { gap: .75rem; }
  .brand img { height: 54px; transform: scale(1.48); }
  .hero { padding-top: 6.3rem; }
  .modal-layout { grid-template-columns: 1fr; }
  .modal-panel {
    width: 100%;
    max-height: 92vh;
    margin: 8vh 0 0;
    border-radius: 18px 18px 0 0;
  }
  .gallery {
    min-height: 0;
    height: min(54vh, 460px);
  }
  .main-photo { max-height: calc(54vh - 82px); }
  .modal-copy { max-height: 38vh; }
}

@media (max-width: 640px) {
  .site-header { padding: .45rem 0; }
  .nav-shell { padding: 0 .8rem; }
  .brand img { height: 48px; transform: scale(1.38); }
  .mobile-book { padding: 0 .45rem; }
  .mobile-book span { min-width: 116px; padding: .58rem .8rem; font-size: .94rem; }
  .hero {
    min-height: auto;
    padding: 5.9rem .7rem 2.5rem;
  }
  .hero-copy { margin-bottom: 1rem; }
  .hero h1 { font-size: clamp(2.15rem, 12.5vw, 3.8rem); }
  .hero p { font-size: .96rem; line-height: 1.58; }
  .hero-cta { gap: .55rem; }
  .hero-cta .btn { width: 100%; padding: .78rem 1rem; }
  .map-stage {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(36, 49, 58, .16);
    margin-inline: auto;
  }
  .map-note {
    left: .55rem;
    top: .55rem;
    padding: .42rem .55rem;
    font-size: .68rem;
  }
  .hotspot {
    width: clamp(25px, 7.6vw, 32px);
    height: clamp(25px, 7.6vw, 32px);
    border-width: 1px;
    box-shadow: 0 4px 10px rgba(5, 68, 75, .3);
  }
  .hotspot span:first-child { font-size: clamp(.68rem, 3.5vw, .82rem); }
  .hotspot .tip { display: none; }
  .content-band { padding: 3rem .9rem; }
  .section-head { text-align: left; }
  .faq-list summary { padding: .95rem 1rem; }
  .faq-list p { padding: 0 1rem 1rem; }
  .gallery { height: 48vh; }
  .main-photo { max-height: calc(48vh - 78px); }
  .thumbs button { flex-basis: 62px; height: 48px; }
  .gallery-btn {
    width: 38px;
    height: 38px;
  }
  .modal-copy { max-height: 42vh; }
  .modal-copy h2 { font-size: 2rem; }
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 58px;
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
