/* =====================================================================
   The House of Nonni Ventura - Tema chiaro marino
   Palette: bianco caldo · blu ardesia · blu atlantico · sabbia
   Font: Lora (serif display) + Karla (sans body)
   ===================================================================== */

:root {
  /* ---- Tema chiaro marino (palette canonica) ---- */
  --bg:          #fdfcf9;   /* bianco caldo */
  --ink:         #12303f;   /* blu ardesia - testi e sezione scura */
  --ocean:       #2e7fa8;   /* accento primario CTA/link */
  --ocean-dark:  #23617f;
  --sand:        #e4d5b8;   /* dettagli caldi */

  /* ---- Alias legacy → nuova palette ---- */
  --lava:            var(--ink);
  --cream:           var(--bg);
  --terracotta:      var(--ocean);
  --terracotta-dark: var(--ocean-dark);
  --cactus:          #4a5d3a;

  --fg:          var(--ink);
  --fg-muted:    rgba(18, 48, 63, 0.72);
  --fg-subtle:   rgba(18, 48, 63, 0.52);
  --border:      rgba(18, 48, 63, 0.14);
  --border-soft: rgba(18, 48, 63, 0.10);

  --serif: "Instrument Serif", Georgia, serif;
  --sans:  "Figtree", -apple-system, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", "SF Mono", ui-monospace, monospace;

  --container: 1400px;
  --radius: 999px;
  --radius-card: 14px;

  /* Altezza header (usata per compensare position:fixed) */
  --header-h: 64px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* main non deve avere margin/gap che espongono il background cream */
main {
  margin: 0;
  padding: 0;
}

/* Header redesign 1C è position:sticky (in-flow): nessun offset necessario. */

/* --- Typography helpers --- */
.font-display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.font-mono    { font-family: var(--mono); }
.italic       { font-style: italic; }
.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--fg-subtle);
}
.kicker-light { color: rgba(250, 247, 242, 0.55); }

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

.section {
  padding: 96px 0;
}
@media (min-width: 768px) {
  .section { padding: 144px 0; }
}

/* --- Lightbox --- */
[data-lightbox] { cursor: pointer; }
[data-lightbox]:focus-visible { outline: 2px solid var(--ocean); outline-offset: 2px; }
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}
#lightbox.open {
  visibility: visible;
  pointer-events: auto;
}
#lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.95);
  opacity: 0;
  transition: opacity 0.35s ease;
  cursor: default;
}
#lightbox.open #lb-backdrop { opacity: 1; }

#lb-figure {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 90vw;
  max-height: 85vh;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
#lightbox.open #lb-figure {
  opacity: 1;
  transform: scale(1);
}
#lb-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 2px;
  display: block;
}
#lb-caption {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(250, 247, 242, 0.55);
  text-align: center;
  min-height: 1em;
}
#lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(250, 247, 242, 0.4);
  letter-spacing: 0.2em;
  z-index: 2;
  pointer-events: none;
}

/* Nav & close buttons */
#lb-close,
#lb-prev,
#lb-next {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: rgba(250, 247, 242, 0.7);
  border: 1px solid rgba(250, 247, 242, 0.15);
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
}
#lb-close:hover, #lb-prev:hover, #lb-next:hover {
  color: var(--cream);
  border-color: rgba(250, 247, 242, 0.4);
  background: rgba(46, 127, 168, 0.25);
}
@media (pointer: coarse) {
  #lb-close, #lb-prev, #lb-next { cursor: pointer; }
}
#lb-close { top: 24px; right: 24px; }
#lb-prev  { left: 16px;  top: 50%; transform: translateY(-50%); }
#lb-next  { right: 16px; top: 50%; transform: translateY(-50%); }
#lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
#lb-next:hover { transform: translateY(-50%) translateX(2px); }

/* Nascondi prev/next se singola immagine */
#lightbox[data-count="1"] #lb-prev,
#lightbox[data-count="1"] #lb-next { display: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #lb-figure, #lb-backdrop { transition: none; }
  #lb-figure { transform: none !important; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--cream);
  color: var(--lava);
}
.btn-primary:hover { background: var(--terracotta); color: var(--cream); }

.btn-dark {
  background: var(--fg);
  color: var(--cream);
}
.btn-dark:hover { background: var(--terracotta); }

.btn-outline-light {
  border-color: rgba(250, 247, 242, 0.4);
  color: var(--cream);
}
.btn-outline-light:hover { border-color: var(--cream); background: var(--cream); color: var(--lava); }

.btn-outline-dark {
  border-color: rgba(18, 48, 63, 0.4);
  color: var(--fg);
}
.btn-outline-dark:hover { border-color: var(--fg); background: var(--fg); color: var(--cream); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(18, 48, 63, 0.4);
  padding-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  transition: color 0.25s;
}
.btn-link:hover { color: var(--terracotta); border-color: var(--terracotta); }

.btn .arrow { display: inline-block; transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* --- Header --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 0;
  /* Stato default: trasparente - evita qualsiasi flash durante il boot */
  background: transparent;
  border-bottom: 1px solid transparent;
  /* La transizione è soppressa finché JS non aggiunge .header-ready */
  transition: none;
}
/* JS aggiunge .header-ready dopo il primo updateHeader() al boot,
   da quel momento in poi le transizioni CSS sono attive */
.site-header.header-ready {
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.transparent {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.site-header.solid {
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.site-logo em { color: var(--terracotta); font-style: italic; }
.site-header.transparent .site-logo,
.site-header.transparent .nav-link,
.site-header.transparent .lang-switcher a { color: var(--cream); }
.site-header.transparent .nav-link:hover { color: var(--cream); opacity: 0.7; }
.site-header.transparent .lang-switcher a { border-color: rgba(250, 247, 242, 0.3); }

.site-nav {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 900px) {
  .site-nav { display: flex; }
}
.nav-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--terracotta); }
.nav-link.active { color: var(--terracotta); }

.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.lang-switcher a {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s;
}
.lang-switcher a.active {
  background: var(--fg);
  color: var(--cream);
  border-color: var(--fg);
}
.site-header.transparent .lang-switcher a.active {
  background: var(--cream);
  color: var(--lava);
  border-color: var(--cream);
}

/* Mobile menu button */
.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
@media (min-width: 900px) {
  .menu-btn { display: none; }
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 64px 0 auto 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 99;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border-bottom: 1px solid var(--border-soft);
}

/* --- Hero --- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  color: var(--cream);
  margin-top: 0;
}
.hero-bg {
  position: absolute;
  inset: -20% 0 -20% 0;
  z-index: -2;
  will-change: transform;
  transition: transform 0.05s linear;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(46, 127, 168, 0.30), transparent 55%),
    linear-gradient(160deg, #1c4b62 0%, #12303f 55%, #0e2836 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(18, 48, 63, 0.48) 0%,
      rgba(18, 48, 63, 0.12) 42%,
      rgba(18, 48, 63, 0.60) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: 144px 24px 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .hero-inner { padding: 160px 40px 96px; }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(250, 247, 242, 0.3);
  background: rgba(250, 247, 242, 0.05);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(250, 247, 242, 0.85);
}
.hero-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 13vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-top: 32px;
  color: var(--cream);
  white-space: pre-line;
}
.hero-title .italic-terracotta {
  font-style: italic;
  color: var(--terracotta);
  display: block;
}
.hero-sub {
  margin-top: 32px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(250, 247, 242, 0.85);
  text-wrap: balance;
}
.hero-ctas {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-scroll {
  display: none;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(250, 247, 242, 0.6);
}
@media (min-width: 768px) {
  .hero-scroll { display: flex; }
}
.hero-scroll::before {
  content: "";
  width: 40px;
  height: 1px;
  background: rgba(250, 247, 242, 0.4);
}

/* --- Fade-in + stagger --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.d1 { transition-delay: 0.10s; }
.fade-in.d2 { transition-delay: 0.22s; }
.fade-in.d3 { transition-delay: 0.36s; }
.fade-in.d4 { transition-delay: 0.52s; }
.fade-in.d5 { transition-delay: 0.70s; }

/* --- Placeholder image --- */
.ph-img {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 12px;
  color: rgba(18, 48, 63, 0.5);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  background: var(--sand);
}
.ph-img.aspect-portrait  { aspect-ratio: 3 / 4; }
.ph-img.aspect-landscape { aspect-ratio: 4 / 3; }
.ph-img.aspect-square    { aspect-ratio: 1 / 1; }
.ph-img.aspect-wide      { aspect-ratio: 16 / 9; }

.ph-img.v-sand       { background: linear-gradient(135deg, #e4d5b8 0%, #d4bf95 100%); color: rgba(18,48,63,0.55); }
.ph-img.v-terracotta { background: linear-gradient(135deg, #4a97bf 0%, #23617f 100%); color: rgba(255,255,255,0.85); }
.ph-img.v-cactus     { background: linear-gradient(135deg, #6b8556 0%, #3a4b2d 100%); color: rgba(255,255,255,0.75); }
.ph-img.v-lava       { background: linear-gradient(135deg, #1c4b62 0%, #0e2836 100%); color: rgba(228,213,184,0.7); }
.ph-img.v-mix {
  background:
    radial-gradient(circle at 30% 20%, #2e7fa8 0%, transparent 55%),
    radial-gradient(circle at 70% 70%, #23617f 0%, transparent 55%),
    linear-gradient(135deg, #e4d5b8 0%, #cbe1ec 100%);
  color: rgba(255,255,255,0.8);
}
.ph-img.has-image { background: none; padding: 0; }
.ph-img.has-image img { width: 100%; height: 100%; object-fit: cover; }
.ph-img.has-image::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 12px 12px 12px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

/* Hover zoom su lb-item */
.lb-item {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.lb-item:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(15, 15, 15, 0.25);
}
.lb-item:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}


/* --- Sections --- */
.section-dark {
  background: var(--lava);
  color: var(--cream);
}
.section-dark .kicker { color: rgba(250, 247, 242, 0.55); }
.section-dark .fg-muted { color: rgba(250, 247, 242, 0.75); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid { gap: 20px; }
  .grid-2 { grid-template-columns: 1fr 1.4fr; gap: 80px; }
  .grid-2-rev { grid-template-columns: 1.2fr 1fr; gap: 80px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.h-display {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h-lg {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.body-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 60ch;
  text-wrap: pretty;
}
.section-dark .body-text { color: rgba(250, 247, 242, 0.75); }

/* Amenity list */
.amenity-list {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
@media (min-width: 768px) { .amenity-list { grid-template-columns: repeat(4, 1fr); } }
.amenity-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
}
.amenity-list li .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--terracotta);
}

/* --- POI cards --- */
.poi-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.poi-tab {
  padding: 16px 24px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.poi-tab.active {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.poi-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .poi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .poi-grid { grid-template-columns: repeat(3, 1fr); } }

.poi-card {
  padding: 32px;
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.poi-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
}
.poi-card .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--terracotta);
}
.poi-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
}
.poi-card .desc {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.poi-card .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg-subtle);
}
.poi-card .meta .dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }

/* --- Form --- */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg-subtle);
  margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 2px;
  font-size: 16px;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--terracotta);
}
.form-textarea { min-height: 160px; resize: vertical; font-family: var(--sans); }
.form-hint {
  font-size: 12px;
  color: var(--fg-subtle);
  margin-top: 12px;
  line-height: 1.5;
}
.form-alert {
  padding: 16px 20px;
  border-radius: 2px;
  margin-bottom: 24px;
  font-size: 14px;
}
.form-alert.success { background: rgba(74, 93, 58, 0.08); color: var(--cactus); border: 1px solid rgba(74, 93, 58, 0.3); }
.form-alert.error   { background: rgba(178, 58, 43, 0.08); color: #a02c1f; border: 1px solid rgba(178, 58, 43, 0.30); }

/* --- Footer --- */
.site-footer {
  background: var(--lava);
  color: var(--cream);
  padding: 80px 0 40px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.1);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(250, 247, 242, 0.55);
  margin-bottom: 20px;
}
.site-footer .tagline {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  max-width: 380px;
}
.footer-list li { padding: 6px 0; }
.footer-list a { font-size: 14px; opacity: 0.85; transition: opacity 0.2s; }
.footer-list a:hover { opacity: 1; color: var(--terracotta); }
.footer-socials a { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 12px;
  color: rgba(250, 247, 242, 0.55);
}

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed;
  inset: auto 24px 24px 24px;
  z-index: 90;
  background: var(--lava);
  color: var(--cream);
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 520px;
  transform: translateY(120%);
  transition: transform 0.35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { font-size: 13px; line-height: 1.55; opacity: 0.85; margin-bottom: 16px; }
.cookie-banner .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner .btn { font-size: 10px; padding: 10px 18px; }

/* --- WhatsApp floating button ---
   NOTA: questa regola non è mai esistita nella storia del progetto (bug
   preesistente): il pulsante era privo di stile e veniva renderizzato in
   flusso, dopo il footer, creando una banda vuota in fondo alla pagina. */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(18, 48, 63, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(18, 48, 63, 0.28); }
.whatsapp-btn svg { flex-shrink: 0; }
.whatsapp-btn__label { font-size: 13px; font-weight: 700; white-space: nowrap; }
@media (max-width: 480px) {
  /* Su schermi molto stretti mostra solo l'icona per non rischiare overlap */
  .whatsapp-btn__label { display: none; }
  .whatsapp-btn { padding: 14px; }
}

/* --- Concierge --- */
.concierge-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  padding: 16px 20px;
  background: var(--ocean);
  color: #fff;
  border: 2px solid var(--cream);
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  display: flex;
  align-items: center;
  gap: 10px;
  /* Bordo chiaro + doppia ombra per restare visibile sia su sfondo chiaro
     sia sul footer scuro (prima usava --fg, identico allo sfondo footer,
     e ci si mimetizzava completamente in fondo pagina). */
  box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 0 0 1px rgba(18,48,63,0.15);
  transition: all 0.25s;
}
.concierge-btn:hover { background: var(--ocean-dark); transform: translateY(-2px); }
.concierge-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--sand);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--sand);
  animation: pulse 2s infinite;
}
.concierge-btn.open::before { background: #f0f0f0; box-shadow: none; animation: none; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.concierge-panel {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 79;
  width: min(400px, calc(100vw - 48px));
  height: min(560px, calc(100vh - 140px));
  background: var(--cream);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.concierge-panel.open { display: flex; }
.concierge-header {
  padding: 20px 24px;
  background: var(--lava);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.concierge-header .title { font-family: var(--serif); font-size: 20px; }
.concierge-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(250, 247, 242, 0.12);
  color: var(--cream);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.concierge-close:hover { background: rgba(250, 247, 242, 0.28); }
.concierge-close:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.concierge-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg {
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.msg.bot { background: var(--sand); align-self: flex-start; }
.msg.user { background: var(--fg); color: var(--cream); align-self: flex-end; }
.msg.loading { opacity: 0.6; font-style: italic; }
.concierge-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
}
.concierge-action {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.concierge-action--book {
  background: var(--ocean);
  color: #fff;
}
.concierge-action--book:hover { opacity: 0.9; }
.concierge-action--wa {
  background: #25d366;
  color: #fff;
}
.concierge-action--wa:hover { background: #1ebe5d; }
.concierge-form {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
}
.concierge-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
}
.concierge-form input:focus { outline: none; border-color: var(--terracotta); }
.concierge-form button {
  padding: 10px 20px;
  background: var(--fg);
  color: var(--cream);
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.concierge-form button:hover { background: var(--terracotta); }
.concierge-disclaimer {
  margin: 0;
  padding: 8px 16px 14px;
  font-size: 10.5px;
  line-height: 1.45;
  color: rgba(18, 48, 63, 0.5);
  text-align: center;
}

/* --- Utilities --- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-16 { margin-top: 64px; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 800px; }
.max-w-xl { max-width: 960px; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.hidden { display: none; }

/* ===================================================================
   REDESIGN 1C - componenti condivisi tra le pagine (house/book/morro/reviews)
   =================================================================== */
.r-wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px){ .r-wrap { padding: 0 40px; } }

.r-page { color: var(--ink); }
.r-page h1, .r-page h2, .r-page h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.r-accent { color: var(--ocean); font-style: italic; }

/* Kicker */
.r-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ocean); }
.r-kicker--light { color: #8fc4dc; }

/* Page hero (immagine + overlay + titolo) */
.r-phero { position: relative; }
.r-phero img { width: 100%; height: 340px; object-fit: cover; display: block; }
@media (min-width: 768px){ .r-phero img { height: 440px; } }
.r-phero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,48,63,0) 35%, rgba(18,48,63,0.55)); display: flex; align-items: flex-end; padding: 32px 24px; }
@media (min-width: 768px){ .r-phero-overlay { padding: 48px 40px; } }
.r-phero-overlay .inner { color: #fff; max-width: 720px; }
.r-phero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.05; margin: 12px 0 0; color: #fff; }

/* Sezioni */
.r-sec { max-width: var(--container); margin: 0 auto; padding: 56px 24px; }
@media (min-width: 768px){ .r-sec { padding: 88px 40px; } }
.r-sec h2 { font-size: clamp(28px, 5vw, 42px); line-height: 1.1; margin: 0; }
.r-band { background: #f2f8fa; }
.r-band-inner { max-width: var(--container); margin: 0 auto; padding: 56px 24px; }
@media (min-width: 768px){ .r-band-inner { padding: 88px 40px; } }

/* Griglia due colonne */
.r-two { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 860px){ .r-two { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.r-two img { width: 100%; border-radius: 14px; display: block; object-fit: cover; }

/* Timeline (storia) */
.r-timeline { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.r-timeline .num { font-family: var(--serif); font-size: 30px; color: var(--ocean); }
.r-timeline .lab { font-size: 13px; color: rgba(18,48,63,0.6); }

/* Card foto+testo */
.r-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px){ .r-cards { grid-template-columns: 1fr 1fr; } }
.r-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-soft); }
.r-card > img { width: 100%; height: 240px; object-fit: cover; display: block; }
.r-card-body { padding: 22px 26px; }
.r-card-body h3 { font-family: var(--sans); font-weight: 700; font-size: 17px; }
.r-card-body p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: rgba(18,48,63,0.65); }

/* Checklist servizi */
.r-check { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 32px; font-size: 14px; color: rgba(18,48,63,0.8); }
@media (min-width: 768px){ .r-check { grid-template-columns: repeat(4, 1fr); } }
.r-check span::before { content: "✓ "; color: var(--ocean); font-weight: 700; }

/* Tabella info label/valore */
.r-info { display: flex; flex-direction: column; }
.r-info-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); font-size: 15px; }
.r-info-row:last-child { border-bottom: 0; }
.r-info-row .v { font-weight: 700; text-align: right; }

/* Blocco CTA gradiente */
.r-cta { background: linear-gradient(135deg, var(--ocean), var(--ink)); border-radius: 18px; padding: 40px 28px; color: #fff; display: grid; gap: 24px; }
@media (min-width: 720px){ .r-cta { padding: 48px 52px; grid-template-columns: 1.3fr auto; align-items: center; } }
.r-cta h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 0; color: #fff; max-width: 22ch; }
.r-cta p { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,0.82); }
.r-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sezione scura */
.r-dark { background: var(--ink); color: #f5fafc; }
.r-dark h2 { color: #fff; }
