:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #66736c;
  --paper: #f7f3ec;
  --cream: #fffaf1;
  --terracotta: #b85c38;
  --terracotta-dark: #873d27;
  --olive: #566b4f;
  --sage: #dfe7d9;
  --sea: #1d6a73;
  --line: rgba(23, 32, 28, 0.14);
  --shadow: 0 24px 70px rgba(28, 27, 24, 0.16);
  --radius: 8px;
  --max: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 32, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 28, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
  z-index: -1;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 28px), var(--max));
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(18, 22, 19, 0.42);
  color: white;
  backdrop-filter: blur(18px);
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 241, 0.94);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(27, 25, 20, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--terracotta);
  color: white;
  font-size: 0.74rem;
}

.nav {
  justify-self: center;
  display: flex;
  gap: 24px;
  color: inherit;
  font-size: 0.92rem;
}

.nav a,
.header-cta {
  opacity: 0.9;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover,
.header-cta:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.header-cta {
  border-radius: 8px;
  background: var(--terracotta);
  color: white;
  padding: 13px 18px;
  font-weight: 800;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #161a17;
  color: white;
  padding: 150px max(22px, calc((100vw - var(--max)) / 2)) 70px;
}

.hero picture,
.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  animation: slowScale 16s ease-out both;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 13, 12, 0.8), rgba(12, 13, 12, 0.42) 48%, rgba(12, 13, 12, 0.18)),
    linear-gradient(0deg, rgba(12, 13, 12, 0.8), transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f5cf9a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(4.3rem, 13vw, 9.8rem);
  line-height: 0.86;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.95;
}

h3 {
  font-size: 1.05rem;
}

.hero-address {
  margin-bottom: 16px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
}

.hero-copy {
  width: min(620px, 100%);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions,
.direct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 15px 22px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

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

.btn-primary {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.btn-whatsapp {
  background: #21a366;
  color: white;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.btn-dark {
  background: var(--ink);
  color: white;
}

.hero-facts {
  position: absolute;
  z-index: 2;
  right: max(22px, calc((100vw - var(--max)) / 2));
  bottom: 70px;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 1px;
  width: min(360px, 38vw);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-facts span {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
}

.hero-facts strong {
  color: white;
  font-size: 1.7rem;
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 110px 0;
}

.intro-grid,
.location {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: 70px;
  align-items: start;
}

.intro-text,
.location-copy p,
.section-heading p,
.direct-card p,
.faq p,
.footer p,
.room-list p,
.amenity p {
  color: var(--muted);
  line-height: 1.75;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p {
  width: min(360px, 100%);
  margin-bottom: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 205px;
  gap: 12px;
}

.photo {
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
  padding: 0;
}

.photo-large {
  grid-column: span 2;
  grid-row: span 2;
}

.photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.photo:hover img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.62);
}

.amenity {
  min-height: 230px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.amenity:nth-child(4n) {
  border-right: 0;
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--sage);
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 900;
}

.room-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.room-list article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.room-list span {
  display: block;
  margin-bottom: 14px;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.room-list strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.location {
  width: 100%;
  max-width: none;
  padding: 110px max(20px, calc((100vw - var(--max)) / 2));
  background: #20322b;
  color: white;
}

.location p {
  color: rgba(255, 255, 255, 0.78);
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  border-bottom: 2px solid #f5cf9a;
  color: #f5cf9a;
  font-weight: 900;
}

.location-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.location-panel div {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.location-panel strong {
  color: #f5cf9a;
  font-size: 1.65rem;
}

.location-panel span {
  color: rgba(255, 255, 255, 0.78);
}

.direct-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: center;
  padding: clamp(30px, 6vw, 64px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(184, 92, 56, 0.94), rgba(29, 106, 115, 0.88)),
    url("https://imgservice.casai.com/640x417/la-casa-geniale-it-naples-bc-14513496-2.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  color: white;
  box-shadow: var(--shadow);
}

.direct-card .section-kicker,
.direct-card p {
  color: rgba(255, 255, 255, 0.8);
}

.direct-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.6vw, 4.3rem);
}

.direct-actions {
  justify-content: flex-end;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

summary {
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 24px 24px;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding: 58px max(20px, calc((100vw - var(--max)) / 2)) 110px;
  background: var(--ink);
  color: white;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.72);
}

.source {
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 24px;
  font-weight: 800;
}

.sticky-cta {
  position: fixed;
  z-index: 30;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.sticky-cta a {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.sticky-cta a:last-child {
  background: #21a366;
}

.lightbox {
  width: min(1000px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: white;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.lightbox img {
  max-height: 82vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.lightbox-close {
  top: 12px;
  right: 12px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}

.lightbox-nav.prev {
  left: 12px;
}

.lightbox-nav.next {
  right: 12px;
}

@keyframes slowScale {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .header-cta {
    justify-self: end;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-facts {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(520px, 100%);
    margin-top: 34px;
  }

  .intro-grid,
  .location,
  .direct-card,
  .footer {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .amenities-grid,
  .room-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .amenity:nth-child(2n) {
    border-right: 0;
  }

  .direct-actions,
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
  }

  .brand span:last-child {
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .header-cta {
    padding: 11px 13px;
  }

  .hero {
    padding: 128px 20px 42px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(12, 13, 12, 0.75), rgba(12, 13, 12, 0.5)),
      linear-gradient(0deg, rgba(12, 13, 12, 0.9), transparent 52%);
  }

  h1 {
    font-size: clamp(4rem, 18vw, 6.2rem);
  }

  h2 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .btn,
  .hero-actions {
    width: 100%;
  }

  .hero-facts,
  .location-panel,
  .gallery-grid,
  .amenities-grid,
  .room-list {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    display: none;
  }

  .section {
    width: min(calc(100% - 28px), var(--max));
    padding: 72px 0;
  }

  .section-heading {
    display: block;
  }

  .gallery-grid {
    grid-auto-rows: 250px;
  }

  .photo-large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .amenity {
    min-height: 0;
    border-right: 0;
  }

  .location {
    padding: 76px 20px;
  }

  .direct-card {
    gap: 28px;
  }

  .footer {
    padding-bottom: 96px;
  }

  .sticky-cta {
    display: grid;
  }
}
