/* =========================================
   FONT LOCALI – nessuna connessione a Google
   ========================================= */
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* =========================================
   Appartamento Caorle – CSS ottimizzato
   PC & Mobile | Versione 2.0
   Palette: azzurro marino, arancio caldo,
            sabbia, bianco panna
   ========================================= */

/* ----- RESET & BASE ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', sans-serif;
  color: #2c3e50;
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}
a { text-decoration: none; color: inherit; }
button { font-family: 'Nunito', sans-serif; }

/* ----- CUSTOM PROPERTIES ----- */
:root {
  --blu:       #1a6b8a;
  --blu-dark:  #124e67;
  --blu-light: #e8f4f8;
  --arancio:   #e8861e;
  --arancio-l: #fff3e0;
  --sabbia:    #f7f2eb;
  --testo:     #2c3e50;
  --testo-l:   #5a7080;
  --bianco:    #ffffff;
  --radius:    12px;
  --shadow:    0 4px 20px rgba(26,107,138,.12);
  --transition: .28s ease;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.6rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-primary {
  background: var(--arancio);
  color: #fff;
  border-color: var(--arancio);
}
.btn-primary:hover {
  background: #d07418;
  border-color: #d07418;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232,134,30,.35);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}
.btn-outline-dark {
  background: transparent;
  color: var(--blu);
  border-color: var(--blu);
}
.btn-outline-dark:hover {
  background: var(--blu);
  color: #fff;
}
.btn-full { width: 100%; justify-content: center; }

/* ----- CONTAINER ----- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- SECTIONS ----- */
.section { padding: 5rem 0; }
.section-alt { background: var(--sabbia); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-tag {
  display: inline-block;
  background: var(--blu-light);
  color: var(--blu);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: .9rem;
}
.section-tag.light {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.section-header h2 {
  font-family: 'Lora', serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--testo);
  margin-bottom: .7rem;
  line-height: 1.3;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--testo-l);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
}
.navbar.scrolled .nav-logo,
.navbar.scrolled .nav-link { color: var(--testo); }
.navbar.scrolled .nav-cta { color: #fff !important; }
.navbar.scrolled .nav-toggle { color: var(--testo); }

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  line-height: 1.3;
}
.nav-logo i {
  color: var(--arancio);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: .2rem;
  align-items: center;
}
.nav-link {
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: .88rem;
  padding: .45rem .75rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-cta {
  background: var(--arancio) !important;
  color: #fff !important;
  padding: .5rem 1rem !important;
  border-radius: 50px !important;
}
.nav-cta:hover { background: #d07418 !important; }

/* Selettore lingua */
.nav-lang {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-left: .5rem;
  padding-left: .8rem;
  border-left: 1px solid rgba(255,255,255,.25);
}
.nav-lang a {
  font-size: 1.2rem;
  opacity: .6;
  transition: opacity .2s, transform .2s;
  text-decoration: none;
  line-height: 1;
}
.nav-lang a:hover { opacity: 1; transform: scale(1.15); }
.nav-lang a.active { opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: .4rem;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color var(--transition);
  flex-shrink: 0;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100svh; /* safe viewport height per mobile */
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(13,74,107,0.82) 0%, rgba(26,107,138,0.78) 40%, rgba(33,150,168,0.75) 70%, rgba(40,168,181,0.72) 100%),
              url('../images/caorle-aerea-4.jpg') center center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,200,50,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,120,30,.08) 0%, transparent 50%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 70px;
  background: #fff;
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,40,60,.15);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 6rem 1.5rem 5rem;
}
.hero-pre {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.95);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .38rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.hero-title em { color: #ffd77a; font-style: italic; }
.hero-subtitle {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.9);
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.55);
  font-size: 1.3rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =========================================
   STRIP NUMERI
   ========================================= */
.strip-numeri {
  background: var(--blu);
  padding: 1.4rem 1.5rem;
}
.strip-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
}
.strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  color: #fff;
  text-align: center;
  padding: .3rem .8rem;
  min-width: 80px;
}
.strip-item i { font-size: 1.35rem; color: #ffd77a; margin-bottom: .1rem; }
.strip-item strong { font-size: 1.15rem; font-weight: 800; }
.strip-item span { font-size: .76rem; opacity: .82; }

/* =========================================
   GALLERY HERO con autoplay
   ========================================= */
.gallery-hero {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: .55rem;
  margin-bottom: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---- Foto principale (slideshow) ---- */
.gallery-hero-main {
  position: relative;
  grid-row: 1;
  grid-column: 1;
  overflow: hidden;
  border-radius: var(--radius) 0 0 var(--radius);
  min-height: 420px;
}

/* Tutte le immagini sovrapposte in posizione assoluta */
.gallery-auto-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
  cursor: pointer;
}
.gallery-auto-img.active { opacity: 1; }

/* Frecce manuali sulla foto grande */
.gallery-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.35);
  border: none; color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: .95rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 6;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.gallery-arrow:hover { background: rgba(0,0,0,.6); }
.gallery-arrow-prev { left: .6rem; }
.gallery-arrow-next { right: .6rem; }

/* ---- Foto laterali (slideshow) ---- */
.gallery-hero-side {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.gallery-hero-side-img {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 170px;
}
.gallery-hero-side-img:first-child { border-radius: 0 var(--radius) 0 0; }
.gallery-hero-side-img:last-child  { border-radius: 0 0 var(--radius) 0; }

.gallery-side-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
  cursor: pointer;
}
.gallery-side-img.active { opacity: 1; }

.gallery-hero-label {
  position: absolute;
  bottom: 0; left: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.58));
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: 1.4rem .9rem .5rem;
  width: 100%;
  pointer-events: none;
  letter-spacing: .02em;
}
.gallery-hero-label i { margin-right: .35rem; color: #ffd77a; }

.gallery-all-btn {
  position: absolute;
  bottom: .85rem;
  right: .85rem;
  background: rgba(255,255,255,.93);
  color: var(--blu);
  border: none;
  border-radius: 50px;
  padding: .5rem 1.1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: background var(--transition), transform var(--transition);
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.gallery-all-btn:hover { background: #fff; transform: translateY(-1px); }
.gallery-all-btn i { color: var(--arancio); }

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,20,30,.94);
  cursor: pointer;
}
.lightbox-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  padding: 1rem 1rem .8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
}
.lightbox-img-wrap {
  position: relative;
  width: 100%;
  max-height: 66vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 66vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  transition: opacity .22s ease;
}
.lightbox-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  color: #fff;
  text-align: center;
  padding: 1.5rem .8rem .5rem;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 0 0 10px 10px;
}
.lightbox-counter {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  font-weight: 600;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.lightbox-prev { left: .8rem; }
.lightbox-next { right: .8rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.3); }

.lightbox-close {
  position: absolute;
  top: .4rem; right: .4rem;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.lightbox-close:hover { background: rgba(232,134,30,.8); }

.lightbox-strip {
  display: flex;
  gap: .42rem;
  overflow-x: auto;
  padding: .3rem .2rem;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.3) transparent;
  -webkit-overflow-scrolling: touch;
}
.lightbox-strip::-webkit-scrollbar { height: 4px; }
.lightbox-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 2px; }
.lightbox-thumb {
  width: 68px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  opacity: .5;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: opacity var(--transition), border-color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.lightbox-thumb:hover { opacity: .8; }
.lightbox-thumb.active { opacity: 1; border-color: var(--arancio); }

/* =========================================
   APPARTAMENTO - DESCRIZIONE
   ========================================= */
.feedback-badge-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 1.4rem 0 .6rem;
}
.feedback-badge {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  background: linear-gradient(135deg, #e8f4f8, #f0faf4);
  border: 1px solid rgba(26,107,138,.15);
  border-left: 4px solid var(--arancio);
  border-radius: 8px;
  padding: .75rem 1rem;
}
.feedback-badge > i {
  font-size: 1.2rem;
  color: var(--arancio);
  margin-top: .15rem;
  flex-shrink: 0;
}
.feedback-badge div {
  display: flex;
  flex-direction: column;
  gap: .18rem;
}
.feedback-badge strong {
  font-size: .92rem;
  font-weight: 700;
  color: var(--testo);
}
.feedback-badge span {
  font-size: .82rem;
  color: var(--testo-l);
}
.feedback-fonte {
  font-size: .78rem;
  color: var(--testo-l);
  font-style: italic;
  margin-top: .2rem !important;
}
.feedback-fonte i { color: var(--arancio); margin-right: .3rem; }

.appartamento-desc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.desc-text h3 {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  color: var(--testo);
  margin-bottom: 1rem;
  line-height: 1.35;
}
.desc-text p { color: var(--testo-l); margin-bottom: .9rem; line-height: 1.7; }
.desc-text p strong { color: var(--testo); }

.desc-rooms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.room-card {
  background: var(--sabbia);
  border-radius: var(--radius);
  padding: 1.2rem;
  border-left: 4px solid var(--arancio);
}
.room-card i { font-size: 1.4rem; color: var(--blu); margin-bottom: .5rem; }
.room-card h4 { font-weight: 700; margin-bottom: .3rem; font-size: .95rem; }
.room-card p { font-size: .86rem; color: var(--testo-l); }

/* =========================================
   SERVIZI
   ========================================= */
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.servizio-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.servizio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26,107,138,.18);
}
.servizio-icon {
  width: 52px; height: 52px;
  background: var(--blu-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .9rem;
}
.servizio-icon i { font-size: 1.3rem; color: var(--blu); }
.servizio-card h4 { font-weight: 700; margin-bottom: .35rem; font-size: .94rem; }
.servizio-card p { font-size: .84rem; color: var(--testo-l); }

/* =========================================
   CAORLE
   ========================================= */
.caorle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}
.caorle-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.caorle-img { width: 100%; height: 460px; object-fit: cover; }

.caorle-slide { position: relative; width: 100%; }
.caorle-slide-img {
  display: none;
  width: 100%; height: 420px;
  object-fit: cover;
  transition: opacity .4s ease;
}
.caorle-slide-img.active { display: block; }

.caorle-slide-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.35);
  border: none;
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.caorle-slide-btn:hover { background: rgba(0,0,0,.6); }
.caorle-slide-prev { left: .7rem; }
.caorle-slide-next { right: .7rem; }

.caorle-slide-dots {
  position: absolute;
  bottom: .8rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem;
}
.caorle-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.caorle-dot.active { background: #fff; }

/* Didascalie carosello Caorle */
.caorle-captions {
  position: absolute;
  bottom: 2.8rem;
  left: 0; right: 0;
  text-align: center;
  pointer-events: none;
}
.caorle-caption {
  display: none;
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .35rem 1rem;
  border-radius: 50px;
}
.caorle-caption.active { display: inline-block; }

.caorle-text { display: flex; flex-direction: column; gap: 1.4rem; }
.caorle-point { display: flex; gap: 1rem; align-items: flex-start; }
.caorle-point > i {
  font-size: 1.4rem;
  color: var(--arancio);
  margin-top: .15rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.caorle-point h4 { font-weight: 700; margin-bottom: .25rem; font-size: 1rem; }
.caorle-point p { font-size: .9rem; color: var(--testo-l); line-height: 1.55; }

.mappa-wrap { text-align: center; }
.mappa-wrap h3 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--testo); }
.mappa-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  background: #e8f0f4;
}
.mappa-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}
.mappa-note { font-size: .88rem; color: var(--testo-l); line-height: 1.5; }

/* =========================================
   CALENDARIO PERSONALIZZATO
   ========================================= */
.cal-wrapper {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(4px);
}

.cal-legend {
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  color: rgba(255,255,255,.88);
  font-weight: 600;
}
.cal-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.cal-dot-occ   { background: #e84040; }
.cal-dot-lib   { background: #2ecc71; }
.cal-dot-oggi  { background: #ffd77a; border: 2px solid #fff; }
.cal-dot-corto { background: #e8861e; }

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: .5rem;
}
.cal-month-title {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  color: #fff;
  text-align: center;
  text-transform: capitalize;
  flex: 1;
}
.cal-nav-btn {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.cal-nav-btn:hover    { background: rgba(255,255,255,.3); }
.cal-nav-btn:disabled { opacity: .35; cursor: not-allowed; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.cal-header-day {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.55);
  padding: .35rem 0 .5rem;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: default;
  transition: transform .15s ease;
  position: relative;
  min-height: 40px;
  -webkit-tap-highlight-color: transparent;
}
.cal-day.cal-empty { background: transparent; }

.cal-day.cal-libre {
  background: rgba(46,204,113,.2);
  color: #b8f5d0;
  border: 1px solid rgba(46,204,113,.38);
}
.cal-day.cal-libre:hover {
  background: rgba(46,204,113,.35);
  transform: scale(1.08);
}
.cal-day.cal-occupato {
  background: rgba(232,64,64,.22);
  color: rgba(255,130,130,.9);
  border: 1px solid rgba(232,64,64,.3);
  text-decoration: line-through;
  text-decoration-color: rgba(232,64,64,.5);
}

/* Giorno di USCITA: metà rosso (sx) + metà verde (dx) */
.cal-day.cal-checkout {
  background: linear-gradient(90deg,
    rgba(232,64,64,.28) 50%,
    rgba(46,204,113,.2) 50%
  );
  color: rgba(255,200,200,.9);
  border: 1px solid rgba(150,100,100,.3);
  text-decoration: none;
}

/* Giorno di ENTRATA: metà verde (sx) + metà rosso (dx) */
.cal-day.cal-checkin {
  background: linear-gradient(90deg,
    rgba(46,204,113,.2) 50%,
    rgba(232,64,64,.28) 50%
  );
  color: #b8f5d0;
  border: 1px solid rgba(100,150,100,.3);
}

/* Giorni liberi ma troppo pochi (< 3) per essere prenotabili */
.cal-day.cal-corto {
  background: rgba(232,134,30,.22);
  color: rgba(255,200,100,.9);
  border: 1px solid rgba(232,134,30,.35);
}

.cal-day.cal-passato {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.22);
}
.cal-day.cal-oggi {
  background: rgba(255,215,122,.28);
  color: #ffd77a;
  border: 1.5px solid rgba(255,215,122,.6);
  font-weight: 800;
}

.cal-loading {
  text-align: center;
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  padding: 1rem 0;
  display: none;
}
.cal-loading.visible { display: block; }

.cal-nota {
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.62);
  margin-top: 1.2rem;
  line-height: 1.55;
}
.cal-nota i { color: #ffd77a; margin-right: .3rem; }
.cal-nota strong { color: rgba(255,255,255,.88); }

/* =========================================
   SEZIONE PRENOTAZIONE
   ========================================= */
.prenota-section {
  background: linear-gradient(135deg, #124e67, #1a6b8a);
  color: #fff;
}
.prenota-section .section-header h2 { color: #fff; }
.prenota-section .section-header p { color: rgba(255,255,255,.82); max-width: 700px; }

.prenota-contatta {
  text-align: center;
  padding: 1.5rem 0 .5rem;
}
.prenota-contatta-intro {
  font-size: 1.08rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}
.prenota-contatta-intro strong { color: #fff; }
.prenota-contatta-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn-wa {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
  font-size: 1rem;
  padding: .9rem 2rem;
}
.btn-wa:hover { background: #1ebe5a; border-color: #1ebe5a; transform: translateY(-2px); }
.btn-tel {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.5);
  font-size: 1rem;
  padding: .9rem 2rem;
}
.btn-tel:hover { background: rgba(255,255,255,.25); border-color: #fff; transform: translateY(-2px); }
.btn-mail {
  background: var(--arancio);
  color: #fff;
  border-color: var(--arancio);
  font-size: 1rem;
  padding: .9rem 2rem;
}
.btn-mail:hover { background: #d07418; border-color: #d07418; transform: translateY(-2px); }

/* =========================================
   CONTATTI
   ========================================= */
.contatti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.contatto-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.contatto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,107,138,.15);
}
.contatto-card > i {
  font-size: 2.2rem;
  color: var(--blu);
  margin-bottom: .8rem;
  display: block;
}
.contatto-card > i.fa-whatsapp { color: #25d366; }
.contatto-card h4 { font-weight: 700; margin-bottom: .4rem; font-size: 1.05rem; }
.contatto-card p { font-size: .9rem; color: var(--testo-l); margin-bottom: 1.2rem; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: #0d3347;
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.footer-brand i { color: var(--arancio); }
.footer-desc { font-size: .88rem; margin-bottom: 1rem; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.4); }
.footer-copy a { color: rgba(255,255,255,.55); }
.footer-copy a:hover { color: #fff; }

/* =========================================
   WHATSAPP FLOAT
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 999;
  background: #25d366;
  color: #fff;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37,211,102,.5);
}

/* =========================================
   RESPONSIVE – TABLET (≤1100px)
   ========================================= */
@media (max-width: 1100px) {
  .servizi-grid { grid-template-columns: repeat(4, 1fr); }
  .appartamento-desc { gap: 2rem; }
  .caorle-grid { gap: 2rem; }
}

/* =========================================
   RESPONSIVE – TABLET STRETTO (≤900px)
   ========================================= */
@media (max-width: 900px) {
  .servizi-grid { grid-template-columns: repeat(2, 1fr); }
  .appartamento-desc { grid-template-columns: 1fr; }
  .caorle-grid { grid-template-columns: 1fr; gap: 2rem; }
  .caorle-slide-img { height: 300px; }
  .caorle-img { height: 300px; }
  .contatti-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  /* Gallery stacking */
  .gallery-hero { grid-template-columns: 1fr; }
  .gallery-hero-main { border-radius: var(--radius) var(--radius) 0 0; min-height: 300px; }
  .gallery-hero-side { flex-direction: row; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
  .gallery-hero-side-img:first-child { border-radius: 0; }
  .gallery-hero-side-img:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
  .gallery-hero-side-img { min-height: 160px; }

  /* Calendario */
  .cal-wrapper { padding: 1.4rem 1rem; }
  .cal-day { font-size: .84rem; min-height: 38px; }

  .lightbox-prev { left: .4rem; }
  .lightbox-next { right: .4rem; }
}

/* =========================================
   RESPONSIVE – MOBILE (≤680px)
   ========================================= */
@media (max-width: 680px) {

  /* Navbar mobile */
  .nav-logo span { font-size: .85rem; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: .8rem 1rem 1rem;
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
    gap: .25rem;
    border-top: 2px solid var(--blu-light);
    z-index: 999;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-link {
    color: var(--testo) !important;
    padding: .85rem 1rem;
    border-radius: 8px;
    font-size: .95rem;
  }
  .nav-link:hover { background: var(--blu-light); }
  .nav-cta {
    background: var(--arancio) !important;
    color: #fff !important;
    text-align: center;
    margin-top: .3rem;
    padding: .85rem 1rem !important;
  }

  /* Hero */
  .hero-content { padding: 5rem 1.2rem 4rem; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .hero-subtitle { font-size: .95rem; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .hero-actions .btn {
    justify-content: center;
    padding: .9rem 1.5rem;
  }
  .hero-scroll-hint { bottom: 80px; }

  /* Strip */
  .strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    justify-items: center;
  }
  .strip-item {
    min-width: auto;
    padding: .4rem .5rem;
  }
  .strip-item:last-child {
    grid-column: 1 / -1;
  }
  .strip-item strong { font-size: 1rem; }
  .strip-item span { font-size: .72rem; }

  /* Galleria mobile */
  .gallery-hero-main { min-height: 250px; }
  .gallery-hero-side-img { min-height: 130px; }
  .gallery-all-btn { font-size: .82rem; padding: .45rem .9rem; bottom: .6rem; right: .6rem; }
  .gallery-arrow { width: 34px; height: 34px; font-size: .85rem; }

  /* Lightbox mobile */
  .lightbox-img-wrap { max-height: 55vh; }
  .lightbox-img { max-height: 55vh; }
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; }
  .lightbox-close { width: 42px; height: 42px; }
  .lightbox-thumb { width: 58px; height: 44px; }

  /* Appartamento */
  .desc-rooms { grid-template-columns: 1fr; }
  .desc-text h3 { font-size: 1.3rem; }

  /* Servizi */
  .servizi-grid { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .servizio-card { padding: 1.2rem 1rem; }

  /* Caorle */
  .caorle-slide-img { height: 240px; }
  .section-header p { font-size: .95rem; }

  /* Calendario mobile */
  .cal-wrapper { padding: 1rem .75rem; }
  .cal-day { font-size: .78rem; min-height: 36px; border-radius: 6px; }
  .cal-header-day { font-size: .65rem; }
  .cal-month-title { font-size: 1.1rem; }
  .cal-nav-btn { width: 38px; height: 38px; }
  .cal-legend { gap: .8rem; }
  .cal-legend-item { font-size: .78rem; }
  .cal-nota { font-size: .78rem; }

  /* Prenota contatta */
  .prenota-contatta-btns { flex-direction: column; align-items: stretch; gap: .75rem; }
  .prenota-contatta-btns .btn { justify-content: center; padding: .9rem 1.5rem; }

  /* Sezioni */
  .section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2rem; }

  /* Footer */
  .footer-brand { font-size: .95rem; }
  .footer-links { gap: 1rem; }

  /* WhatsApp float più piccolo su mobile */
  .whatsapp-float { width: 52px; height: 52px; font-size: 1.45rem; bottom: 1.2rem; right: 1.2rem; }
}

/* =========================================
   RESPONSIVE – MOBILE PICCOLO (≤400px)
   ========================================= */
@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .servizi-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-item:last-child { grid-column: auto; }
  .hero-title { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .cal-day { font-size: .72rem; min-height: 32px; }
  .cal-grid { gap: 3px; }
}

/* =========================================
   UTILITY
   ========================================= */
/* Assicura che le immagini non si "rompano" su iOS */
.gallery-hero-img,
.caorle-slide-img,
.lightbox-img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Focus visibile per accessibilità */
:focus-visible {
  outline: 3px solid var(--arancio);
  outline-offset: 2px;
}
