:root {
  --ink: #2e241c;
  --muted: #745f50;
  --brand: #7d4814;
  --brand-2: #bd803d;
  --brand-dark: #4a280b;
  --sand: #f5eee7;
  --sand-2: #eadbd0;
  --cream: #fffaf2;
  --ocean: #0a8790;
  --ocean-dark: #075f67;
  --white: #ffffff;
  --danger: #b64a33;
  --success: #2f806a;
  --warning: #d29234;
  --shadow: 0 24px 70px rgba(46, 36, 28, 0.18);
  --soft-shadow: 0 16px 45px rgba(46, 36, 28, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
  --header-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(10, 135, 144, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgba(189, 128, 61, 0.16), transparent 26rem),
    linear-gradient(180deg, var(--cream) 0%, #ffffff 48%, var(--cream) 100%);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

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

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

button, input, select, textarea { font: inherit; }

button { cursor: pointer; }

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

.section-pad { padding: 108px 0; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  transform: translateY(-150%);
  z-index: 1000;
  background: var(--brand-dark);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 999px;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: rgba(255, 250, 242, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(125, 72, 20, 0.12);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 230px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.brand small { color: var(--muted); margin-top: 5px; font-size: .78rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 650;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(125, 72, 20, 0.08);
  color: var(--brand-dark);
}

.main-nav .nav-cta {
  margin-left: 4px;
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 10px 20px rgba(125, 72, 20, 0.18);
}
.main-nav .nav-cta:hover { background: var(--brand-dark); color: var(--white); }


.language-switcher {
  display: inline-flex;
  align-items: center;
  margin-inline: 4px;
}
.language-switcher select {
  border: 1px solid rgba(125, 72, 20, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 9px 28px 9px 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(46, 36, 28, 0.08);
}
.translate-note {
  margin: 16px 0 0;
  font-size: .92rem;
  opacity: .9;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
#google_translate_element,
.goog-te-banner-frame,
.goog-te-gadget,
.goog-te-balloon-frame,
#goog-gt-tt {
  display: none !important;
}
body { top: 0 !important; }
body.translated-ltr, body.translated-rtl { top: 0 !important; }
.skiptranslate { display: none !important; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--sand);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 21px;
  height: 2px;
  background: var(--brand-dark);
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  background-image: url('../img/hero-pool.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(31, 20, 12, 0.78) 0%, rgba(31, 20, 12, 0.48) 44%, rgba(31, 20, 12, 0.16) 100%),
    linear-gradient(0deg, rgba(31, 20, 12, 0.72) 0%, transparent 38%);
}

.hero-content {
  padding: 120px 0 96px;
}

.hero-card {
  width: min(720px, 100%);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-2);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .2em;
}

.hero-card .eyebrow { color: #f6c784; }

h1, h2, h3, p { overflow-wrap: anywhere; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.06;
  color: inherit;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.3rem);
  letter-spacing: -.055em;
  max-width: 920px;
}

h2 {
  font-size: clamp(2.15rem, 4vw, 4.4rem);
  letter-spacing: -.045em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -.02em;
}

.hero-card p:not(.eyebrow) {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 700px;
  color: rgba(255,255,255,.9);
  margin: 24px 0 0;
}

.hero-actions,
.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 13px 21px;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid rgba(10, 135, 144, .3); outline-offset: 3px; }

.button-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 18px 35px rgba(125, 72, 20, .24);
}
.button-primary:hover { background: var(--brand-dark); }

.button-secondary {
  background: var(--sand);
  color: var(--brand-dark);
  border: 1px solid rgba(125, 72, 20, .16);
}
.button-secondary:hover { background: var(--sand-2); }

.button-ghost {
  color: var(--white);
  border: 1px solid rgba(255,255,255,.36);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}
.button-ghost:hover { background: rgba(255,255,255,.18); }

.button-full { width: 100%; }

.highlights {
  margin-top: -54px;
  position: relative;
  z-index: 5;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(125, 72, 20, .12);
}

.highlights-grid article {
  padding: 28px;
  border-right: 1px solid rgba(125, 72, 20, .12);
}
.highlights-grid article:last-child { border-right: 0; }
.highlights-grid span {
  display: block;
  color: var(--brand);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.04em;
}
.highlights-grid p { margin: 9px 0 0; color: var(--muted); font-weight: 650; }

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(42px, 7vw, 88px);
}
.align-center { align-items: center; }

.section-copy p:not(.eyebrow),
.section-heading p,
.commitment-card p,
.contact-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-copy p:not(.eyebrow) { margin: 22px 0 0; }

.section-heading {
  max-width: 850px;
  margin-bottom: 42px;
}
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading p { margin: 18px 0 0; max-width: 760px; }

.image-stack {
  position: relative;
  min-height: 530px;
}

.image-stack img {
  object-fit: cover;
  box-shadow: var(--shadow);
}
.stack-main {
  width: 86%;
  height: 480px;
  border-radius: var(--radius-xl);
}
.stack-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 255px;
  border: 10px solid var(--cream);
  border-radius: var(--radius-lg);
}

.muted {
  background: linear-gradient(180deg, rgba(234, 219, 208, .55), rgba(245, 238, 231, .85));
}

.commitment-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.commitment-card {
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 58px);
  box-shadow: var(--soft-shadow);
}
.commitment-card .eyebrow { color: #f5c383; }
.commitment-card p { color: rgba(255,255,255,.86); }

.mini-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mini-gallery img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}
.mini-gallery img:first-child { grid-row: span 2; }

.rooms-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.room-card,
.service-card,
.card-panel {
  background: var(--white);
  border: 1px solid rgba(125, 72, 20, .12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
}

.room-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.room-card div { padding: 30px; }
.room-card p { color: var(--muted); }

.feature-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 700;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ocean);
  box-shadow: 0 0 0 5px rgba(10, 135, 144, .12);
}

.dark {
  color: var(--white);
  background:
    linear-gradient(rgba(74, 40, 11, .93), rgba(74, 40, 11, .93)),
    url('../img/beach-wide.jpg') center / cover fixed;
}
.dark .section-heading p { color: rgba(255,255,255,.78); }
.dark .eyebrow { color: #f5c383; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.16);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.service-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.service-card div { padding: 23px; }
.service-card p { color: rgba(255,255,255,.78); margin-bottom: 0; }

.booking-section { background: var(--cream); }
.booking-grid {
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(0, 1.14fr);
  gap: 26px;
  align-items: start;
}

.card-panel {
  padding: clamp(24px, 3vw, 34px);
}

.form-header h3 { color: var(--brand-dark); }
.form-header p { color: var(--muted); margin: 8px 0 22px; }

.form-grid {
  display: grid;
  gap: 16px;
}
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

label {
  display: grid;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: .94rem;
}

input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(125, 72, 20, .22);
  border-radius: 14px;
  background: #fffdf9;
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
textarea { resize: vertical; min-height: 100px; }

input:focus, select:focus, textarea:focus {
  border-color: rgba(10, 135, 144, .65);
  box-shadow: 0 0 0 4px rgba(10, 135, 144, .11);
  background: var(--white);
}

.quote-box {
  margin: 20px 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--sand);
  color: var(--muted);
  border: 1px solid rgba(125, 72, 20, .13);
  font-weight: 700;
}
.quote-box.success {
  color: var(--ocean-dark);
  background: rgba(10, 135, 144, .1);
  border-color: rgba(10, 135, 144, .22);
}
.quote-box.error {
  color: #8c2d1b;
  background: rgba(182, 74, 51, .1);
  border-color: rgba(182, 74, 51, .2);
}

.tiny-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.calendar-panel { min-height: 680px; }
.calendar-toolbar,
.admin-panel-header,
.footer-inner,
.cta-inner,
.calendar-month-head,
.booking-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.calendar-toolbar { margin-bottom: 18px; }
.calendar-toolbar h3 { color: var(--brand-dark); }
.calendar-toolbar p { margin: 5px 0 0; color: var(--muted); }

.icon-button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--sand);
  color: var(--brand-dark);
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-button:hover { background: var(--sand-2); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 750;
}
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dot.available { background: var(--success); }
.dot.low { background: var(--warning); }
.dot.closed { background: var(--danger); }

.calendar-grid-wrap {
  display: grid;
  gap: 22px;
}
.calendar-month {
  border: 1px solid rgba(125, 72, 20, .12);
  border-radius: 22px;
  overflow: hidden;
  background: #fffdf9;
}
.calendar-month-head {
  padding: 16px 18px;
  background: var(--sand);
}
.calendar-month-head h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--brand-dark);
}
.month-total {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 750;
}
.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar-weekdays {
  padding: 9px 10px;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.calendar-weekdays span { text-align: center; }
.calendar-days { padding: 0 10px 12px; gap: 6px; }
.day-cell {
  min-height: 76px;
  border: 1px solid rgba(125, 72, 20, .1);
  background: var(--white);
  border-radius: 14px;
  padding: 7px;
  display: grid;
  align-content: space-between;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.day-cell:not(.empty):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(46, 36, 28, .08);
}
.day-cell.empty {
  background: transparent;
  border-color: transparent;
}
.day-cell .num { font-weight: 850; color: var(--brand-dark); line-height: 1; }
.day-cell .meta {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.25;
  display: grid;
  gap: 2px;
}
.day-cell.available { border-color: rgba(47, 128, 106, .22); background: rgba(47, 128, 106, .05); }
.day-cell.low { border-color: rgba(210, 146, 52, .3); background: rgba(210, 146, 52, .08); }
.day-cell.closed,
.day-cell.past { border-color: rgba(182, 74, 51, .16); background: rgba(182, 74, 51, .07); }
.day-cell.closed .meta,
.day-cell.past .meta { color: #8c6e64; }
.day-cell.selected {
  outline: 3px solid rgba(10, 135, 144, .25);
  border-color: rgba(10, 135, 144, .5);
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: 34px;
  align-items: start;
}
.admin-login {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 14px;
}
.admin-panel { margin-top: 20px; }
.admin-panel-header { margin-bottom: 18px; }
.admin-panel-header h3 { color: var(--brand-dark); }
.admin-panel-header p { color: var(--muted); margin: 5px 0 0; }
.admin-panel-header.compact { margin-top: 28px; }
.text-button {
  border: 0;
  background: transparent;
  color: var(--ocean-dark);
  font-weight: 850;
  padding: 8px;
}
.text-button:hover { text-decoration: underline; }
.availability-form {
  background: #fffdf9;
  border: 1px solid rgba(125, 72, 20, .1);
  border-radius: 22px;
  padding: 20px;
}
.check-row {
  margin: 16px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
}
.check-row input { width: auto; min-height: auto; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.bookings-list {
  display: grid;
  gap: 12px;
}
.booking-item {
  border: 1px solid rgba(125, 72, 20, .12);
  border-radius: 18px;
  background: #fffdf9;
  padding: 16px;
}
.booking-item p { margin: 6px 0 0; color: var(--muted); }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 850;
  font-size: .78rem;
  background: var(--sand);
  color: var(--brand-dark);
}
.badge.pending { background: rgba(210, 146, 52, .16); color: #855300; }
.badge.confirmed { background: rgba(47, 128, 106, .15); color: #1c604f; }
.badge.cancelled { background: rgba(182, 74, 51, .14); color: #8c2d1b; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.booking-actions button {
  border: 1px solid rgba(125, 72, 20, .18);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-dark);
  padding: 8px 12px;
  font-weight: 800;
}
.booking-actions button:hover { background: var(--sand); }

.gallery-section { background: #fffdf9; }
.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  grid-auto-rows: 245px;
  gap: 16px;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}
.photo-grid img:first-child { grid-row: span 2; }
.photo-grid img:nth-child(4) { grid-column: span 2; }

.cta-band {
  background: var(--brand);
  color: var(--white);
  padding: 70px 0;
}
.cta-band .eyebrow { color: #f5c383; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
.cta-band p { color: rgba(255,255,255,.78); margin: 14px 0 0; }
.cta-inner { align-items: center; }
.cta-inner > div { max-width: 780px; }
.cta-band .button-primary { background: var(--white); color: var(--brand-dark); }

.contact-section {
  background: linear-gradient(180deg, var(--brand-dark), #2f1907);
  color: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: stretch;
}
.contact-card {
  padding: clamp(32px, 5vw, 58px);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-xl);
}
.contact-logo { width: 180px; margin-bottom: 30px; }
.contact-card p { color: rgba(255,255,255,.8); }
.contact-photo img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.site-footer {
  background: #1d1006;
  color: rgba(255,255,255,.7);
  padding: 24px 0;
}
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--white); font-weight: 750; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 140%);
  z-index: 200;
  max-width: min(520px, calc(100% - 30px));
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--brand-dark);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  font-weight: 800;
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: #8c2d1b; }
.toast.success { background: #1c604f; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .09s; }
.delay-2 { transition-delay: .18s; }
.delay-3 { transition-delay: .27s; }

@media (max-width: 1060px) {
  .main-nav { gap: 0; font-size: .9rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-grid, .admin-shell, .commitment-grid, .split-grid, .contact-grid { grid-template-columns: 1fr; }
  .image-stack { min-height: 470px; }
  .stack-main { height: 420px; }
  .calendar-panel { min-height: auto; }
}

@media (max-width: 850px) {
  :root { --header-h: 76px; }
  .container { width: min(100% - 28px, var(--container)); }
  .section-pad { padding: 74px 0; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 14px auto 14px;
    display: grid;
    background: rgba(255, 250, 242, .98);
    border: 1px solid rgba(125, 72, 20, .12);
    border-radius: 22px;
    padding: 12px;
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  body.nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav a { width: 100%; padding: 13px 14px; }
  .hero { min-height: 720px; }
  .hero-content { padding: 90px 0 74px; }
  .hero-overlay { background: linear-gradient(0deg, rgba(31, 20, 12, .82), rgba(31, 20, 12, .34)); }
  .highlights { margin-top: 0; padding: 18px 0 0; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); border-radius: 24px; }
  .highlights-grid article { border-bottom: 1px solid rgba(125,72,20,.12); }
  .highlights-grid article:nth-child(2n) { border-right: 0; }
  .highlights-grid article:nth-last-child(-n+2) { border-bottom: 0; }
  .rooms-layout { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; }
  .photo-grid img:first-child { grid-row: span 1; }
  .photo-grid img:nth-child(4) { grid-column: span 1; }
  .cta-inner { display: grid; justify-items: start; }
}

@media (max-width: 640px) {
  .brand { min-width: 0; }
  .brand img { width: 46px; height: 46px; }
  .brand small { display: none; }
  h1 { font-size: clamp(2.55rem, 16vw, 4rem); }
  h2 { font-size: clamp(2rem, 11vw, 3rem); }
  .hero-actions, .admin-tools { display: grid; }
  .button { width: 100%; }
  .highlights-grid { grid-template-columns: 1fr; }
  .highlights-grid article { border-right: 0; }
  .highlights-grid article:nth-last-child(-n+2) { border-bottom: 1px solid rgba(125,72,20,.12); }
  .highlights-grid article:last-child { border-bottom: 0; }
  .image-stack { min-height: auto; display: grid; gap: 14px; }
  .stack-main, .stack-small { position: static; width: 100%; height: auto; border: 0; }
  .mini-gallery, .services-grid, .form-grid.two, .admin-login, .photo-grid { grid-template-columns: 1fr; }
  .mini-gallery img:first-child { grid-row: span 1; }
  .calendar-weekdays { font-size: .66rem; padding-inline: 6px; }
  .calendar-days { padding-inline: 6px; gap: 4px; }
  .day-cell { min-height: 68px; padding: 5px; border-radius: 12px; }
  .day-cell .meta { font-size: .62rem; }
  .contact-photo img { min-height: 280px; }
  .footer-inner { display: grid; justify-content: start; }
}


/* Contatti, social e statistiche visualizzazioni */
.contact-card a {
  color: var(--white);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-links,
.cta-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social-links a,
.cta-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 850;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: var(--white);
  text-decoration: none;
}

.cta-social-links a {
  background: rgba(255,255,255,.16);
}

.social-links a:hover,
.cta-social-links a:hover {
  background: rgba(255,255,255,.24);
}

.visitor-counter {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  color: var(--white);
  padding: 28px 0;
}

.visitor-counter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.visitor-counter span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.visitor-counter strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  margin-top: 6px;
}

.visitor-counter p {
  margin: 0;
  max-width: 560px;
  color: rgba(255,255,255,.82);
  text-align: right;
}

.analytics-admin {
  margin-top: 26px;
  border: 1px solid rgba(125, 72, 20, .12);
  border-radius: 22px;
  background: #fffdf9;
  padding: 18px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}

.analytics-stat,
.analytics-locations,
.analytics-recent {
  border: 1px solid rgba(125, 72, 20, .12);
  border-radius: 16px;
  background: var(--white);
  padding: 14px;
}

.analytics-stat span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.analytics-stat strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.7rem;
  line-height: 1.1;
  margin-top: 6px;
}

.analytics-locations h4,
.analytics-recent h4 {
  margin: 0 0 10px;
  color: var(--brand-dark);
}

.analytics-locations ol,
.analytics-recent ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.analytics-locations li,
.analytics-recent li {
  margin: 6px 0;
}

@media (max-width: 760px) {
  .visitor-counter-inner {
    display: grid;
    justify-items: start;
  }
  .visitor-counter p { text-align: left; }
  .analytics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav .language-switcher { width: 100%; padding: 8px 18px; }
  .language-switcher select { width: 100%; }
}
