/* ============================================================
   SICILIAN HOMES — Stylesheet
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --terracotta:       #C8553D;
  --terracotta-light: #F0C4BA;
  --terracotta-dark:  #9E3F2B;
  --olive:            #7A8C4E;
  --olive-light:      #D4DCB8;
  --sea-blue:         #2B6CB0;
  --sea-light:        #BEE3F8;
  --warm-white:       #FDFAF6;
  --cream:            #F5EFE0;
  --stone:            #E8DFC8;
  --text:             #2D2416;
  --text-muted:       #7A6E5F;
  --border:           #E0D5C0;
  --shadow-sm:        0 2px 8px rgba(0,0,0,.08);
  --shadow-md:        0 8px 24px rgba(0,0,0,.12);
  --shadow-lg:        0 20px 60px rgba(0,0,0,.15);
  --radius:           16px;
  --radius-sm:        8px;
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'Inter', system-ui, sans-serif;
  --transition:       .25s ease;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---------- Utilities ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .5rem;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--text); margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.section-header.light h2 { color: #fff; }
.section-header.light p { color: rgba(255,255,255,.75); }
.section-header.light .eyebrow { color: var(--terracotta-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 50px;
  font-size: .9rem; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--warm-white);
}
.btn-secondary:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn-outline {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #25D366; color: #fff;
  padding: .75rem 1.5rem; border-radius: 50px;
  font-weight: 600; margin-top: 1rem;
  width: 100%; justify-content: center;
  transition: all var(--transition);
}
.btn-whatsapp svg { width: 20px; height: 20px; }
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 2rem; height: 72px;
  background: rgba(253,250,246,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  color: var(--text); white-space: nowrap;
  text-decoration: none;
}
.logo-img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--stone);
  background: var(--cream);
  flex-shrink: 0;
  transition: border-color var(--transition);
}
.logo:hover .logo-img { border-color: var(--terracotta); }
.logo-icon { font-size: 1.4rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--text-muted); transition: color var(--transition); }
.nav-links a:hover { color: var(--terracotta); }
.nav-right { display: flex; align-items: center; gap: 1rem; margin-left: auto; }

/* ---- Prenota ora dropdown ---- */
.book-dropdown { position: relative; display: inline-block; }
.book-dropdown-toggle { cursor: pointer; }
.book-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-md);
  min-width: 210px; padding: .4rem; display: none; z-index: 1200;
}
.book-dropdown.open .book-dropdown-menu { display: block; }
.book-dropdown-menu a {
  display: block; padding: .7rem .9rem; border-radius: 8px;
  color: var(--text-dark); font-weight: 600; font-size: .95rem;
  text-decoration: none; transition: background .15s, color .15s;
}
.book-dropdown-menu a:hover { background: var(--cream); color: var(--terracotta); }
.lang-wrap { position: relative; }
.lang-toggle {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 50px; padding: .3rem .9rem;
  font-size: .82rem; font-weight: 600; color: var(--text);
  transition: all var(--transition); cursor: pointer;
  white-space: nowrap;
}
.lang-toggle:hover { background: var(--stone); }
.lang-menu {
  display: none; position: absolute; top: calc(100% + .5rem); right: 0;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  overflow-y: auto; max-height: 320px; min-width: 160px; z-index: 200;
}
.lang-menu.open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: .5rem;
  width: 100%; padding: .45rem .9rem;
  font-size: .82rem; text-align: left;
  color: var(--text); background: none; border: none; cursor: pointer;
  transition: background var(--transition); white-space: nowrap;
}
.lang-option:hover { background: var(--cream); color: var(--terracotta); }
.lo-code { font-weight: 700; min-width: 1.8rem; }
.lo-name { color: var(--text-muted); font-size: .78rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: #2a1a0a;
}
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .75;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 8, 2, .35) 0%,
    rgba(15, 8, 2, .25) 40%,
    rgba(15, 8, 2, .65) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px; margin: 0 auto; padding: 0 2rem 6rem;
  text-align: center; color: #fff;
}
.hero-eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--terracotta-light);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.15; margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,.85);
  max-width: 500px; margin: 0 auto 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-ctas .btn { min-width: 160px; text-align: center; justify-content: center; padding: .7rem 1.4rem; font-size: .85rem; }
.hero-scroll {
  position: absolute; bottom: 4rem; left: 50%; transform: translateX(-50%);
  z-index: 2; animation: bounce 2s infinite; cursor: pointer; text-decoration: none;
}
.hero-scroll span {
  display: block; width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,.6);
  border-bottom: 2px solid rgba(255,255,255,.6);
  transform: rotate(45deg);
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { background: var(--cream); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.trust-bar .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1rem; }
.trust-item { display: flex; align-items: center; gap: .75rem; }
.trust-icon { font-size: 1.5rem; }
.trust-item strong { display: block; font-size: .9rem; color: var(--text); }
.trust-item span { font-size: .8rem; color: var(--text-muted); }

/* ============================================================
   PROPERTIES
   ============================================================ */
.properties { padding: 6rem 0; }
.property-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }
.property-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.property-card.featured { border-color: var(--sea-blue); }

/* Gallery */
.card-gallery { position: relative; height: 260px; overflow: hidden; }
.card-img-wrap { height: 100%; background: var(--stone); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.property-card:hover .card-img-wrap img { transform: scale(1.04); }
.card-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  padding: .3rem .8rem; border-radius: 50px;
  font-size: .75rem; font-weight: 600; color: var(--text);
}
.badge-sea { background: var(--sea-blue) !important; color: #fff !important; }
.card-imgs-thumb {
  position: absolute; bottom: .75rem; right: .75rem;
  display: flex; gap: .3rem;
}
.thumb {
  width: 28px; height: 20px; border-radius: 4px;
  background: rgba(255,255,255,.5); cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
}
.thumb.active { background: rgba(255,255,255,.9); border-color: #fff; }

/* Card body */
.card-body { padding: 1.5rem; }
.card-body h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .25rem; }
.card-location { font-size: .82rem; color: var(--text-muted); margin-bottom: .75rem; }
.card-desc { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.6; }
.card-features { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.card-features span { font-size: .8rem; background: var(--cream); padding: .25rem .6rem; border-radius: 50px; }
.card-price-line { display: flex; align-items: baseline; gap: .25rem; padding: 0 1.5rem .75rem; }
.card-footer { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .85rem 1.5rem; border-top: 1px solid var(--border); }
.card-footer .btn { flex: 0 0 auto; text-align: center; padding-left: 2rem; padding-right: 2rem; }
.card-price { display: flex; align-items: baseline; gap: .25rem; }
.price-from { font-size: .8rem; color: var(--text-muted); }
.price-amount { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--terracotta); }
.price-per { font-size: .8rem; color: var(--text-muted); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--cream); padding: 6rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img-stack { position: relative; }
.about-img { border-radius: var(--radius); overflow: hidden; background: var(--stone); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img-main { height: 420px; }
.about-img-sm {
  position: absolute; bottom: -2rem; right: -2rem;
  width: 55%; height: 220px;
  border: 4px solid var(--cream);
  box-shadow: var(--shadow-lg);
}
.about-text h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1.5rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.about-stats { display: flex; gap: 1.25rem; margin-top: 2rem; }
.stat {
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 14px; padding: .9rem 1.4rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(60,40,20,0.06);
  flex: 1; text-align: center;
}
.stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--terracotta); }
.stat span { font-size: .82rem; color: var(--text-muted); }

/* ============================================================
   BOOK SECTION
   ============================================================ */
.book-section {
  background: linear-gradient(135deg, #2D2416 0%, #4A3520 60%, #1a3a5e 100%);
  padding: 6rem 0;
}
.book-wrapper { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 2rem; margin-bottom: 3rem; }

/* Property selector */
.property-selector { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.prop-btn {
  padding: .6rem 1.25rem; border-radius: 50px;
  font-size: .88rem; font-weight: 600;
  border: 2px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.prop-btn:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.prop-btn.active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

/* Calendar */
.calendar-panel { background: #fff; border-radius: var(--radius); padding: 1.5rem; }
.calendar-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.calendar-nav button {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cream); font-size: 1.1rem; color: var(--text);
  transition: all var(--transition); display: flex; align-items: center; justify-content: center;
}
.calendar-nav button:hover { background: var(--terracotta); color: #fff; }
#calendarTitle { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  font-size: .82rem;
}
.cal-day-name { text-align: center; padding: .4rem 0; color: var(--text-muted); font-weight: 600; font-size: .75rem; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer; font-size: .85rem;
  transition: all var(--transition); position: relative;
}
.cal-day:hover:not(.booked):not(.past) { background: var(--terracotta-light); }
.cal-day.past { color: var(--border); cursor: not-allowed; }
.cal-day.booked { background: #fee2e2; color: #ef4444; cursor: not-allowed; text-decoration: line-through; }
.cal-day.selected { background: var(--terracotta); color: #fff; }
.cal-day.in-range { background: var(--terracotta-light); border-radius: 0; }
.cal-day.range-start { border-radius: 50% 0 0 50%; }
.cal-day.range-end { border-radius: 0 50% 50% 0; }
.cal-day.range-start.range-end { border-radius: 50%; }
.calendar-legend { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.leg-item { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--text-muted); }
.leg-dot { width: 10px; height: 10px; border-radius: 50%; }
.leg-dot.available { background: var(--olive-light); border: 1px solid var(--olive); }
.leg-dot.booked { background: #fee2e2; border: 1px solid #ef4444; }
.leg-dot.selected { background: var(--terracotta); }

/* Booking form */
.book-form-panel { background: #fff; border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.selected-dates-display {
  background: var(--cream); border-radius: var(--radius-sm);
  padding: 1rem; text-align: center;
  font-size: .9rem; color: var(--text-muted);
  border: 2px dashed var(--border);
}
.price-estimate { background: var(--cream); border-radius: var(--radius-sm); padding: 1rem; }
.est-row { display: flex; justify-content: space-between; font-size: .88rem; padding: .3rem 0; }
.est-row.total { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .75rem; font-size: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  padding: .65rem .85rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .9rem; font-family: inherit;
  background: var(--warm-white); color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--terracotta);
}
.form-group textarea { resize: vertical; }
.form-note { font-size: .78rem; color: var(--text-muted); text-align: center; margin-top: .5rem; }
.book-success { text-align: center; padding: 1rem; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.book-success h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .5rem; }

/* Price table */
.price-table-wrap { margin-top: 2rem; }
.price-table-wrap h3 { font-family: var(--font-display); color: #fff; font-size: 1.5rem; margin-bottom: 1rem; }
.price-table { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.pt-header, .pt-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem; padding: 1rem 1.5rem;
}
.pt-header {
  background: rgba(255,255,255,.08);
  font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
}
.pt-row { color: rgba(255,255,255,.85); border-top: 1px solid rgba(255,255,255,.06); font-size: .9rem; }
.pt-row.highlight { background: rgba(200,85,61,.15); color: #fff; font-weight: 600; }
.price-note { color: rgba(255,255,255,.5); font-size: .78rem; margin-top: 1rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 6rem 0; background: var(--warm-white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4rem; align-items: start; }
.contact-info h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1rem; }
.contact-method {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--warm-white);
  transition: all var(--transition);
}
.contact-method:hover { border-color: var(--terracotta); transform: translateX(4px); }
.contact-method.whatsapp:hover { border-color: #25D366; }
.cm-icon { font-size: 1.5rem; }
.contact-method.whatsapp .cm-icon svg { width: 28px; height: 28px; fill: #25D366; }
.contact-method strong { display: block; font-size: .9rem; }
.contact-method span { font-size: .85rem; color: var(--text-muted); }
.sync-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.sync-badge {
  background: var(--cream); border: 1px solid var(--border);
  padding: .3rem .75rem; border-radius: 50px;
  font-size: .8rem; font-weight: 600; color: var(--text);
}
.contact-map { border-radius: var(--radius); overflow: visible; box-shadow: var(--shadow-md); margin-top: 3rem; }
.contact-map iframe { box-shadow: var(--shadow-md); }
.contact-reviews h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: .25rem; }
.cr-sub { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.25rem; }
.cr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; }
.cr-card {
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px; padding: 1.4rem 1.5rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(60, 40, 20, 0.06);
  min-height: 200px;
}
.cr-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: .65rem; }
.cr-author { font-weight: 700; display: block; }
.cr-source { font-size: .75rem; color: var(--text-muted); display: block; }
.cr-stars { color: #f5a623; letter-spacing: 1px; font-size: .9rem; }
.cr-text { color: var(--text); font-style: italic; line-height: 1.55; font-size: .92rem; margin: 0; }
@media (max-width: 560px) { .cr-grid { grid-template-columns: 1fr; } .cr-card { aspect-ratio: auto; } }
.cr-loading { color: var(--text-muted); font-style: italic; padding: 1rem 0; }
.cr-more-btn {
  margin-top: 1.4rem; align-self: flex-start;
  background: rgba(255,255,255,0.5); color: var(--text);
  border: 1px solid var(--border); border-radius: 50px;
  padding: .75rem 1.6rem; font-size: .9rem; font-weight: 600;
  cursor: pointer; backdrop-filter: blur(6px);
  transition: all var(--transition);
}
.cr-more-btn:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }

/* Reviews modal */
.rv-modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  align-items: center; justify-content: center;
}
.rv-modal.open { display: flex; }
.rv-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.rv-modal-dialog {
  position: relative; z-index: 1; background: #fff;
  border-radius: 16px; width: min(680px, 95vw); max-height: 90vh;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 8px 48px rgba(0,0,0,.25);
}
.rv-modal-close {
  position: absolute; top: 1rem; left: 1rem;
  width: 2rem; height: 2rem; border: none; background: none;
  font-size: 1.4rem; line-height: 1; cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition); z-index: 2;
}
.rv-modal-close:hover { background: var(--cream); }
.rv-modal-body { overflow-y: auto; padding: 3rem 2rem 2rem; }
.rv-modal-title { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .25rem; }
.rv-modal-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.75rem; }
.rv-modal-grid { display: flex; flex-direction: column; gap: 1.1rem; }
.rv-mcard {
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.25rem 1.4rem;
}
.rv-mhead { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: .65rem; }
.rv-author-wrap { display: flex; align-items: center; gap: .7rem; }
.rv-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rv-avatar-ph {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--terracotta); color: #fff; font-weight: 700;
}
.rv-photos { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.rv-photos img {
  width: 84px; height: 84px; object-fit: cover; border-radius: 10px;
  cursor: pointer; border: 1px solid var(--border);
}

.map-property-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1rem;
}
.map-prop-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.map-prop-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.map-prop-icon { font-size: 1.4rem; flex-shrink: 0; }
.map-prop-card div { flex: 1; }
.map-prop-card strong { display: block; font-size: .9rem; font-weight: 700; }
.map-prop-card span { font-size: .75rem; color: var(--text-muted); }
.map-prop-arrow { font-size: 1.1rem; color: var(--gold); font-weight: 700; flex-shrink: 0; }

@media (max-width: 600px) {
  .map-property-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   DINTORNI HOME SECTION
   ============================================================ */
.dintorni-home {
  padding: 5rem 0;
  background: var(--cream);
}
.dintorni-home .section-title { margin-bottom: .5rem; }
.dintorni-home .section-sub { margin-bottom: 2rem; }

/* Tabs */
.dintorni-tabs {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.dtab {
  padding: .6rem 1.3rem;
  border: 2px solid var(--border, #e8e2d9);
  border-radius: 50px;
  background: #fff;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.dtab:hover { border-color: var(--olive); color: var(--olive); }
.dtab.active { background: var(--olive, #2c5f2e); border-color: var(--olive, #2c5f2e); color: #fff; }

/* Panels */
.dtab-panel { display: none; }
.dtab-panel.active { display: block; }

/* Grid */
.dintorni-home .dintorni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.dintorni-home .dintorni-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.dintorni-home .dintorni-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.d-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #f5ede0 0%, #d4b896 100%);
}
.d-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}
.dintorni-home .d-header { display: flex; align-items: center; gap: .5rem; }
.dintorni-home .d-icon { font-size: 1.2rem; }
.dintorni-home .d-name { font-weight: 700; font-size: .97rem; color: var(--text); }
.dintorni-home .d-dist { font-size: .8rem; font-weight: 600; color: var(--terracotta); }
.dintorni-home .d-desc { font-size: .84rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.d-maps { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
.d-map-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .75rem;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
  white-space: nowrap;
}
.d-map-btn:hover { opacity: .82; }
.d-map-btn.gmaps { background: #e8f0fe; color: #1a73e8; }
.d-map-btn.amaps { background: #f0f0f0; color: #333; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--text); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .88rem; margin-top: 1rem; max-width: 260px; }
.footer-links { display: flex; flex-direction: column; gap: .75rem; }
.footer-links strong { color: rgba(255,255,255,.4); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .25rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--terracotta-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding-left: 24px; padding-right: 24px;
}
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .78rem; }

/* ---- Twemoji emoji sizing ---- */
img.emoji {
  height: 1em; width: 1em;
  margin: 0 .05em 0 .1em;
  vertical-align: -0.1em;
  display: inline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .nav-right .hamburger { display: flex; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-sm { display: none; }
  .about-img-main { height: 320px; }
  .book-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pt-header, .pt-row { grid-template-columns: 1fr 1fr; font-size: .8rem; }
  .pt-header span:nth-child(3), .pt-row span:nth-child(3) { display: none; }

  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--warm-white); padding: 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); gap: 1.5rem; z-index: 99;
  }
}

@media (max-width: 600px) {
  .property-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .about-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .pt-header, .pt-row { grid-template-columns: 1fr 1fr; padding: .75rem 1rem; }
  .pt-header span:nth-child(n+3), .pt-row span:nth-child(n+3) { display: none; }
}

/* ---- Cookie Banner ---- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #2D2416;
  color: #f5ede0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
}
#cookie-banner.cookie-visible { transform: translateY(0); }
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-inner p {
  flex: 1;
  font-size: .88rem;
  line-height: 1.6;
  color: #e8d9c4;
  margin: 0;
}
.cookie-inner a { color: #e8a87c; text-decoration: underline; }
.cookie-btns { display: flex; gap: .75rem; flex-shrink: 0; }
.cookie-btn-primary {
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .5rem 1.4rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.cookie-btn-primary:hover { background: var(--terracotta-dark); }
.cookie-btn-secondary {
  background: transparent;
  color: #c5b9a8;
  border: 1.5px solid #5a4a36;
  border-radius: 50px;
  padding: .5rem 1.1rem;
  font-size: .88rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.cookie-btn-secondary:hover { border-color: #a08060; color: #e8d9c4; }
@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .cookie-btns { width: 100%; }
  .cookie-btn-primary, .cookie-btn-secondary { flex: 1; text-align: center; }
}


/* ── Floating WhatsApp button ───────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: .55rem;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  padding: .7rem 1.1rem .7rem .85rem;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  font-family: Inter, sans-serif;
  font-size: .88rem;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,211,102,.55);
}
.wa-float svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: #fff;
}
/* On desktop hide the text label (icon only) to keep it subtle */
@media (min-width: 768px) {
  .wa-float .wa-label { display: none; }
  .wa-float { padding: .85rem; border-radius: 50%; }
}
/* On mobile show full pill with text */
@media (max-width: 767px) {
  .wa-float { bottom: 1rem; right: 1rem; }
}
/* Hide on pages that already show a visible WhatsApp CTA in the sidebar */
