:root {
  --ink: #1c2928;
  --muted: #66716f;
  --paper: #ffffff;
  --soft: #f4f7f5;
  --line: #dfe7e3;
  --green: #0d7f79;
  --green-dark: #075e5a;
  --sun: #f0c700;
  --magenta: #d90073;
  --shadow: 0 18px 45px rgba(22, 49, 45, .10);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(223,231,227,.9);
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 78px; height: 78px; object-fit: contain; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 650;
}
.main-nav a { text-decoration: none; }
.main-nav a:not(.nav-book):hover { color: var(--green); }
.nav-book {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}
.nav-book:hover { background: var(--green-dark); }
.nav-toggle, .nav-button { display: none; }

.hero {
  min-height: 720px;
  position: relative;
  display: grid;
  align-items: end;
  background: url('assets/images/hero-piscina.jpg') center 58% / cover no-repeat;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,36,34,.78) 0%, rgba(10,36,34,.46) 48%, rgba(10,36,34,.08) 78%),
              linear-gradient(0deg, rgba(10,36,34,.56) 0%, transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 82px;
}
.eyebrow {
  margin: 0 0 13px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow.light { color: #fff4a8; }
.hero h1 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 6.2vw, 82px);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: 19px;
  color: rgba(255,255,255,.92);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 750;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sun); color: #1d2b29; }
.btn-primary:hover { background: #ffd900; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-white { background: #fff; color: var(--green-dark); }
.btn-outline { border-color: var(--green); color: var(--green-dark); background: #fff; }
.btn-outline:hover { background: #edf7f5; }

.quick-info {
  background: var(--ink);
  color: #fff;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.quick-grid > div {
  padding: 25px 26px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.quick-grid > div:first-child { padding-left: 0; }
.quick-grid > div:last-child { border-right: 0; }
.quick-grid strong, .quick-grid span { display: block; }
.quick-grid strong { font-size: 15px; }
.quick-grid span { margin-top: 3px; color: rgba(255,255,255,.65); font-size: 13px; }

.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-heading h2,
.split-copy h2,
.pool-copy h2,
.contact-section h2,
.booking-inner h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4.3vw, 56px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -.025em;
}
.section-heading > p:last-child { margin: 16px auto 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 80px;
}
.split.reverse { grid-template-columns: 1fr 1.08fr; }
.split-copy p:not(.eyebrow) { margin: 19px 0 0; color: var(--muted); font-size: 17px; }
.text-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.image-stack {
  min-height: 560px;
  position: relative;
}
.image-main {
  width: 83%;
  height: 510px;
  margin-left: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.image-small {
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 45%;
  height: 230px;
  object-fit: cover;
  border: 9px solid #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}
.room-card {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(22,49,45,.06);
  border: 1px solid #e7ece9;
}
.room-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.room-body { padding: 25px 26px 27px; }
.room-body h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 500; }
.room-body p { margin: 10px 0 17px; color: var(--muted); }
.room-body a { color: var(--green-dark); font-weight: 800; text-decoration: none; }
.room-body a:hover { text-decoration: underline; }

.pool-section { overflow: hidden; }
.pool-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 70px;
  align-items: center;
}
.pool-copy p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin: 20px 0 0; }
.mini-features {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 27px;
}
.mini-features span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.pool-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pool-photos img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 18px;
}
.pool-photo-large {
  grid-column: 1 / -1;
  height: 420px !important;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.service-card {
  min-height: 210px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e1e8e4;
  border-radius: 17px;
}
.service-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 25px;
  border-radius: 50%;
  background: #e9f4f2;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
}
.service-card h3 { margin: 0; font-size: 17px; }
.service-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.all-services {
  margin-top: 28px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.all-services summary { cursor: pointer; font-weight: 800; color: var(--green-dark); }
.all-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px 20px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}
.all-services-grid span::before { content: "•"; margin-right: 8px; color: var(--green); }

.kitchen-section { background: #fff; }
.simple-image img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-section { padding-top: 40px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}
.gallery-grid .wide { grid-column: span 2; }

.booking-banner {
  padding: 72px 0;
  color: #fff;
  background: var(--green-dark);
}
.booking-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
}
.booking-inner h2 { max-width: 720px; font-size: clamp(34px, 4vw, 54px); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 60px;
  align-items: stretch;
}
.contact-section p:not(.eyebrow) { max-width: 650px; color: var(--muted); }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.contact-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  text-decoration: none;
  background: #fff;
}
.contact-card:hover { border-color: #b9d7d3; }
.contact-card small, .contact-card strong { display: block; }
.contact-card small { color: var(--muted); }
.contact-card strong { margin-top: 4px; color: var(--green-dark); }
.location-card {
  padding: 38px;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid var(--line);
}
.location-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.2;
}
.location-card .btn { margin-top: 14px; }

.site-footer {
  padding: 52px 0 24px;
  background: #14211f;
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand img { width: 90px; height: 90px; border-radius: 8px; background: #fff; }
.footer-brand p { color: rgba(255,255,255,.65); }
.footer-grid strong { display: block; margin-bottom: 12px; }
.footer-grid a { display: block; width: fit-content; margin-top: 8px; color: rgba(255,255,255,.72); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.48);
  font-size: 12px;
}
.mobile-actions { display: none; }

@media (max-width: 980px) {
  .header-inner { min-height: 76px; }
  .brand img { width: 68px; height: 68px; }
  .nav-button {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
  }
  .nav-button span { width: 18px; height: 2px; background: var(--ink); }
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 28px rgba(22,49,45,.09);
  }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid #edf0ee; }
  .main-nav .nav-book { margin-top: 12px; padding: 13px 18px; text-align: center; border-bottom: 0; }
  .nav-toggle:checked ~ .main-nav { display: flex; }

  .hero { min-height: 650px; }
  .hero-content { padding-bottom: 64px; }
  .hero h1 { max-width: 690px; }

  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid > div { padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .quick-grid > div:first-child { padding-left: 18px; }
  .quick-grid > div:nth-child(2) { border-right: 0; }
  .quick-grid > div:nth-child(n+3) { border-bottom: 0; }

  .section { padding: 82px 0; }
  .split, .split.reverse, .pool-grid, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .image-stack { min-height: 500px; }
  .image-main { height: 460px; }
  .pool-copy { max-width: 700px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .all-services-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-inner { align-items: flex-start; flex-direction: column; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  body { padding-bottom: 64px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero {
    min-height: 610px;
    background-position: 55% center;
  }
  .hero-overlay {
    background: linear-gradient(0deg, rgba(10,36,34,.78) 0%, rgba(10,36,34,.45) 65%, rgba(10,36,34,.18) 100%);
  }
  .hero-content { padding-bottom: 48px; }
  .hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-text { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-grid > div { padding: 18px 14px; }
  .quick-grid > div:first-child { padding-left: 14px; }

  .section { padding: 66px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2,
  .split-copy h2,
  .pool-copy h2,
  .contact-section h2,
  .booking-inner h2 { font-size: 38px; }

  .image-stack { min-height: 390px; }
  .image-main { width: 92%; height: 350px; }
  .image-small { width: 48%; height: 155px; border-width: 6px; }

  .room-grid { grid-template-columns: 1fr; }
  .room-body { padding: 21px; }
  .room-body h3 { font-size: 27px; }

  .pool-photos { gap: 9px; }
  .pool-photo-large { height: 300px !important; }
  .pool-photos img { height: 165px; border-radius: 12px; }

  .services-grid { grid-template-columns: 1fr; gap: 10px; }
  .service-card { min-height: auto; }
  .service-icon { margin-bottom: 15px; }
  .all-services-grid { grid-template-columns: 1fr; }
  .simple-image img { min-height: 330px; }

  .gallery-grid { grid-auto-rows: 170px; gap: 8px; }
  .gallery-grid .wide { grid-column: 1 / -1; }

  .booking-banner { padding: 56px 0; }
  .contact-cards { grid-template-columns: 1fr; }
  .location-card { padding: 26px; }
  .location-card h3 { font-size: 27px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }

  .mobile-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(22,49,45,.10);
  }
  .mobile-actions a {
    min-height: 58px;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
  }
  .mobile-actions .mobile-book { background: var(--green); color: #fff; }
}

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

/* Gallerie fotografiche con ingrandimento CSS */
.gallery-collections { padding-top: 46px; }
.gallery-collection-list { display: grid; gap: 30px; }
.gallery-block {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(22,49,45,.05);
}
.gallery-block-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.gallery-block-head .eyebrow { margin-bottom: 8px; }
.gallery-block-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 500;
}
.gallery-count {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf7f5;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.gallery-thumb {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e6ece8;
  background: #f8fbfa;
  cursor: zoom-in;
}
.gallery-thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .22s ease;
}
.gallery-thumb:hover img { transform: scale(1.03); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.lightbox:target { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,16,15,.88);
  cursor: zoom-out;
}
.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-panel > img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0,0,0,.4);
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #18211f;
  text-decoration: none;
  font-size: 34px;
  line-height: 1;
  font-weight: 300;
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 3;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #18211f;
  text-decoration: none;
  font-size: 42px;
  line-height: 1;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-caption {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .thumb-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .gallery-block { padding: 18px; border-radius: 18px; }
  .gallery-block-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .thumb-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .lightbox { padding: 12px; }
  .lightbox-panel { width: 96vw; }
  .lightbox-panel > img { max-height: 78vh; }
  .lightbox-close { top: 12px; right: 12px; width: 42px; height: 42px; font-size: 30px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 34px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-caption { bottom: 10px; }
}
