/* ═══════════════════════════════════════════════
   FERRARISHOME — Alpine Luxury Editorial
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Earth & Stone palette */
  --c-cream:      #f5f0e8;
  --c-warm-white: #faf8f4;
  --c-sand:       #e8e0d0;
  --c-stone:      #c4b89e;
  --c-bark:       #8b7355;
  --c-espresso:   #3d2e1e;
  --c-night:      #1a1510;
  --c-forest:     #2d4a3e;
  --c-moss:       #4a7c59;
  --c-sage:       #7fa48a;
  --c-amber:      #c8913a;
  --c-rust:       #b85c38;
  --c-clay:       #c17a5a;

  /* Functional */
  --c-free:    #4a7c59;
  --c-pending: #c8913a;
  --c-booked:  #b85c38;

  /* Typography */
  --f-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --f-body:    'Outfit', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* Shadows */
  --shadow-soft: 0 2px 20px rgba(26,21,16,.06);
  --shadow-card: 0 4px 30px rgba(26,21,16,.08);
  --shadow-elevated: 0 12px 50px rgba(26,21,16,.12);
  --shadow-glow: 0 0 60px rgba(200,145,58,.15);

  /* Motion */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --duration: .4s;
  --duration-fast: .2s;
}

/* ─── Skip to content (accessibility) ─── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--c-night);
  color: white;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 600;
  transition: top .15s;
}
.skip-link:focus {
  top: 8px;
  color: white;
}

/* ─── Base ─── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--c-cream);
  color: var(--c-espresso);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--c-forest); text-decoration: none; transition: color var(--duration-fast); }
a:hover { color: var(--c-amber); }
img { max-width: 100%; display: block; }

::selection { background: var(--c-amber); color: white; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  position: relative;
}

.section-label {
  font-family: var(--f-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-bark);
  margin-bottom: var(--space-md);
  display: block;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--c-night);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--c-bark);
  max-width: 540px;
  font-weight: 300;
  line-height: 1.7;
}

.loading {
  text-align: center;
  color: var(--c-bark);
  padding: 60px 0;
  font-weight: 300;
  letter-spacing: .05em;
}

.error { color: var(--c-rust); }
.empty-state { text-align: center; color: var(--c-bark); padding: 60px 0; }

/* ─── Reveal Animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border: none;
  border-radius: 100px;
  font-family: var(--f-body);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  text-align: center;
  letter-spacing: .02em;
  position: relative;
  overflow: hidden;
}
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

.btn-primary {
  background: var(--c-forest);
  color: white;
}
.btn-primary:hover:not(:disabled) {
  background: var(--c-espresso);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.btn-hero {
  background: white;
  color: var(--c-night);
  font-size: .95rem;
  padding: 16px 40px;
  border: 1px solid rgba(255,255,255,.3);
}
.btn-hero:hover {
  background: var(--c-amber);
  color: white;
  border-color: var(--c-amber);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--c-sand);
  color: var(--c-espresso);
}
.btn-outline:hover {
  border-color: var(--c-espresso);
  background: var(--c-espresso);
  color: white;
}

.btn-confirm { background: var(--c-moss); color: white; }
.btn-confirm:hover { background: var(--c-forest); }
.btn-cancel { background: var(--c-amber); color: white; }
.btn-cancel:hover { background: var(--c-clay); }
.btn-delete { background: var(--c-rust); color: white; }
.btn-delete:hover { opacity: .85; }

/* ─── Navbar ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--duration) var(--ease-out);
  padding: 0 clamp(20px, 4vw, 40px);
}

#navbar.scrolled {
  background: rgba(245,240,232,.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 30px rgba(26,21,16,.06);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--c-night);
  transition: color var(--duration-fast);
}
#navbar:not(.scrolled) .nav-logo { color: white; }
.nav-logo:hover { color: var(--c-amber); }

.nav-links {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  align-items: center;
}

.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--c-espresso);
  position: relative;
  letter-spacing: .02em;
  transition: color var(--duration-fast);
}
#navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,.8); }
#navbar:not(.scrolled) .nav-links a:hover { color: white; }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c-amber);
  transition: width var(--duration) var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }

.nav-admin {
  opacity: .35;
  font-size: .75rem !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 10001; /* sopra l'overlay */
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c-night);
  margin: 5px auto;
  transition: all var(--duration) var(--ease-out);
  border-radius: 2px;
}
#navbar:not(.scrolled) .nav-toggle span { background: white; }
/* Quando il menu è aperto, la X deve essere scura (overlay cream chiaro) */
.nav-toggle.active span,
#navbar:not(.scrolled) .nav-toggle.active span { background: var(--c-night); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Blocco scroll del body quando il menu mobile è aperto */
body.menu-open,
html:has(body.menu-open) {
  overflow: hidden;
  touch-action: none;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--c-night);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,21,16,.25) 0%, rgba(26,21,16,.1) 40%, rgba(26,21,16,.5) 100%),
    linear-gradient(135deg, #2d4a3e 0%, #1a3a2e 30%, #3d2e1e 60%, #1a1510 100%);
  background-size: cover;
}

/* Subtle static grain texture */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

/* Mountain silhouette */
.hero-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35vh;
  opacity: .12;
}
.hero-mountains svg { width: 100%; height: 100%; }

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 24px;
  max-width: 800px;
  animation: heroFadeIn 1.2s var(--ease-out) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--f-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: var(--space-lg);
  animation: heroFadeIn 1.2s var(--ease-out) .2s both;
}

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  letter-spacing: -.02em;
  animation: heroFadeIn 1.2s var(--ease-out) .35s both;
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  opacity: .75;
  max-width: 480px;
  margin: 0 auto var(--space-xl);
  font-weight: 300;
  line-height: 1.8;
  animation: heroFadeIn 1.2s var(--ease-out) .5s both;
}

.hero-cta {
  animation: heroFadeIn 1.2s var(--ease-out) .65s both;
}


/* ─── Scroll indicator ─── */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.hero-scroll-line {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 12px;
}

.hero-scroll-dot {
  width: 3px;
  height: 8px;
  background: var(--c-amber);
  border-radius: 3px;
  margin: 6px auto 0;
  animation: scrollBounce 4s linear infinite;
}

@keyframes scrollBounce {
  0%   { opacity: 1; margin-top: 6px; }
  15%  { opacity: 1; margin-top: 6px; }
  40%  { opacity: .2; margin-top: 22px; }
  60%  { opacity: .2; margin-top: 22px; }
  85%  { opacity: 1; margin-top: 6px; }
  100% { opacity: 1; margin-top: 6px; }
}

/* ─── Location Badge ─── */
.location-strip {
  background: var(--c-warm-white);
  border-bottom: 1px solid var(--c-sand);
  padding: 20px 0;
  text-align: center;
}
.location-strip p {
  font-size: .85rem;
  color: var(--c-bark);
  letter-spacing: .08em;
  font-weight: 400;
}
.location-strip strong {
  color: var(--c-espresso);
  font-weight: 600;
}

/* ─── Apartment Cards ─── */
.apartments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.apartment-card {
  background: var(--c-warm-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .5s var(--ease-out);
  text-decoration: none;
  color: var(--c-espresso);
  position: relative;
  border: 1px solid rgba(196,184,158,.2);
}
.apartment-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elevated);
  color: var(--c-espresso);
  border-color: transparent;
}

.card-image {
  height: 280px;
  background-color: var(--c-sand);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(26,21,16,.35) 0%, transparent 50%);
  transition: opacity var(--duration);
}
.apartment-card:hover .card-image::after { opacity: .6; }

/* Foto reale sopra il placeholder (se l'immagine fallisce, onerror la rimuove e resta il placeholder) */
.card-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s var(--ease-out);
}
.apartment-card:hover .card-img { transform: scale(1.05); }

.card-image-placeholder {
  font-family: var(--f-display);
  font-size: 5rem;
  color: rgba(255,255,255,.2);
  background: linear-gradient(160deg, var(--c-forest), var(--c-espresso));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 6s var(--ease-out);
}
.apartment-card:hover .card-image-placeholder { transform: scale(1.05); }

.card-number {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  color: white;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.15);
}

.card-body {
  padding: 28px 24px;
}
.card-body h3 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--c-night);
}
.card-body p {
  font-size: .9rem;
  color: var(--c-bark);
  margin-bottom: 16px;
  line-height: 1.6;
  font-weight: 300;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-capacity {
  font-size: .78rem;
  color: var(--c-bark);
  background: var(--c-cream);
  padding: 5px 14px;
  border-radius: 100px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-cta {
  margin-left: auto;
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-forest);
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--duration) var(--ease-out);
}
.apartment-card:hover .card-cta { gap: 8px; color: var(--c-amber); }

/* ─── Why Borno section ─── */
.why-borno {
  background: var(--c-warm-white);
  border-top: 1px solid var(--c-sand);
  border-bottom: 1px solid var(--c-sand);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: var(--space-xl);
}
.why-item {
  text-align: center;
  padding: 24px 16px;
  border-top: 1px solid var(--c-sand);
  position: relative;
}
.why-item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--c-amber);
}
.why-item h3 {
  font-family: var(--f-display);
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
  color: var(--c-night);
}
.why-item p {
  font-size: .88rem;
  color: var(--c-bark);
  line-height: 1.7;
  font-weight: 300;
}

/* ─── Contact ─── */
.contact-section {
  text-align: center;
}
.contact-intro {
  color: var(--c-bark);
  margin-bottom: var(--space-xl);
  font-weight: 300;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--c-warm-white);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--c-sand);
  color: var(--c-espresso);
  text-decoration: none;
  transition: all var(--duration) var(--ease-out);
}
.contact-card:hover {
  border-color: var(--c-amber);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-cream);
  color: var(--c-forest);
  margin-bottom: 10px;
}
.contact-card h3 {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-bark);
  margin-bottom: 2px;
}
.contact-card a,
.contact-card-value {
  font-size: .95rem;
  color: var(--c-espresso);
  font-weight: 500;
}
.contact-card-email { word-break: break-all; }
.contact-card-hint {
  font-size: .8rem;
  color: var(--c-bark);
  font-weight: 300;
}
.contact-card-whatsapp .contact-card-icon {
  background: #25d366;
  color: white;
}
.contact-card-whatsapp:hover {
  border-color: #25d366;
  box-shadow: 0 0 60px rgba(37,211,102,.18);
}

/* ─── WhatsApp floating button ─── */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #25d366;
  color: white;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(26,21,16,.25);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration);
}
.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37,211,102,.4);
  color: white;
}
.whatsapp-fab svg { flex-shrink: 0; }
body.admin-page .whatsapp-fab,
body.menu-open .whatsapp-fab,
body.lightbox-open .whatsapp-fab { display: none; }

/* ─── Apartment Detail Hero ─── */
.apartment-hero {
  height: 55vh;
  min-height: 350px;
  background-color: var(--c-espresso);
  /* mobile: foto verticale (nessun upscale); desktop: hero.webp 1920x1080 con fallback alla copertina */
  background-image: var(--hero-mobile);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
@media (min-width: 769px) {
  .apartment-hero { background-image: var(--hero-desktop, var(--hero-mobile)); }
}
.apartment-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,21,16,.7) 0%, rgba(26,21,16,.1) 60%, transparent 100%);
}
.apartment-hero-overlay {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px) 48px;
  color: white;
  position: relative;
  z-index: 1;
  animation: heroFadeIn .8s var(--ease-out) both;
}
.apartment-hero-overlay .section-label { color: var(--c-amber); }
.apartment-hero-overlay h1 {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  margin-bottom: 8px;
}
.apartment-hero-overlay p {
  opacity: .7;
  font-size: 1.1rem;
  font-weight: 300;
}

/* ─── Photo Gallery ─── */
.gallery-section {
  padding-bottom: var(--space-xl);
}

.gallery {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: var(--space-lg);
}
.gallery::-webkit-scrollbar { display: none; }

.gallery-track {
  display: flex;
  gap: 16px;
  padding-left: calc(max((100vw - 1180px) / 2, 0px) + clamp(20px, 4vw, 40px));
  padding-right: calc(max((100vw - 1180px) / 2, 0px) + clamp(20px, 4vw, 40px));
  width: max-content;
}

.gallery-item {
  flex-shrink: 0;
  width: 320px;
  height: 240px;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  position: relative;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-elevated);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,21,16,0);
  transition: background var(--duration);
  border-radius: var(--r-lg);
  pointer-events: none;
}
.gallery-item:hover::after {
  background: rgba(26,21,16,.15);
}

.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: var(--c-sand);
}

.gallery-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 3rem;
  color: rgba(255,255,255,.15);
  background: linear-gradient(160deg, var(--c-forest), var(--c-espresso));
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(26,21,16,.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-out);
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 2rem;
  cursor: pointer;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast);
}
.lightbox-close:hover { color: white; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,.15);
  color: white;
}

.lightbox-img-wrap {
  max-width: 85vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--r-md);
  transition: opacity var(--duration-fast);
}

.lightbox-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 5rem;
  color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: var(--r-md);
  min-width: 300px;
  min-height: 200px;
}

.lightbox-caption {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  font-weight: 300;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,.3);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
}

/* ─── Apartment Detail Info ─── */
.apartment-detail { max-width: 720px; }
.apartment-info h2 {
  font-family: var(--f-display);
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
  color: var(--c-night);
}
.apartment-info > p {
  color: var(--c-bark);
  font-weight: 300;
  line-height: 1.8;
  font-size: 1.02rem;
  margin-bottom: var(--space-lg);
}

.amenities { margin: var(--space-lg) 0; }
.amenities h3 {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-bark);
  margin-bottom: var(--space-md);
}
.amenities-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.amenities-list li {
  background: var(--c-warm-white);
  border: 1px solid var(--c-sand);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: .85rem;
  color: var(--c-espresso);
  font-weight: 400;
  transition: all var(--duration-fast);
}
.amenities-list li:hover {
  border-color: var(--c-amber);
  background: rgba(200,145,58,.06);
}

.capacity-info {
  font-size: .95rem;
  color: var(--c-bark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.capacity-info strong { color: var(--c-espresso); }

/* ─── Booking Section ─── */
.booking-intro {
  color: var(--c-bark);
  margin-bottom: var(--space-xl);
  font-weight: 300;
  max-width: 600px;
  line-height: 1.8;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

/* ─── Calendar ─── */
.calendar {
  background: var(--c-warm-white);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--c-sand);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cal-month {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--c-night);
}
.cal-nav {
  background: transparent;
  border: 1.5px solid var(--c-sand);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  color: var(--c-espresso);
}
.cal-nav:hover {
  background: var(--c-espresso);
  border-color: var(--c-espresso);
  color: white;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day-label {
  text-align: center;
  font-size: .7rem;
  font-weight: 600;
  color: var(--c-bark);
  padding: 6px 0 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cal-cell {
  text-align: center;
  padding: 10px 4px;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 500;
  position: relative;
  transition: all var(--duration-fast);
}
.cal-cell.empty { background: transparent; }
.cal-cell.past { color: var(--c-sand); }
.cal-cell.free { cursor: pointer; color: var(--c-espresso); }
.cal-cell.free:hover {
  background: rgba(74,124,89,.12);
  color: var(--c-forest);
}
.cal-cell.pending {
  background: rgba(200,145,58,.15);
  color: var(--c-amber);
  cursor: default;
  font-weight: 600;
}
.cal-cell.booked {
  background: rgba(184,92,56,.12);
  color: var(--c-rust);
  cursor: default;
  font-weight: 600;
}

.cal-cell.selected-start,
.cal-cell.selected-end {
  background: var(--c-forest) !important;
  color: white !important;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(45,74,62,.3);
}
.cal-cell.selected-range {
  background: rgba(74,124,89,.12) !important;
  color: var(--c-forest) !important;
  border-radius: 2px;
}

.cal-legend {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-sand);
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--c-bark);
  font-weight: 500;
}
.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.cal-dot.free { background: var(--c-free); }
.cal-dot.pending { background: var(--c-pending); }
.cal-dot.booked { background: var(--c-booked); }

/* ─── Booking Form ─── */
.booking-form-wrapper {
  background: var(--c-warm-white);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--c-sand);
}
.booking-form-wrapper h3 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  margin-bottom: 4px;
  color: var(--c-night);
}
.form-hint {
  font-size: .85rem;
  color: var(--c-bark);
  margin-bottom: 24px;
  font-weight: 300;
}

.booking-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-bark);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
  border: 1.5px solid var(--c-sand);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: .9rem;
  font-family: var(--f-body);
  transition: all var(--duration-fast);
  background: white;
  color: var(--c-espresso);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--c-forest);
  box-shadow: 0 0 0 3px rgba(45,74,62,.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--c-stone);
  font-weight: 300;
}

.form-message {
  font-size: .88rem;
  padding: 12px 0;
  font-weight: 500;
}
.form-message.success { color: var(--c-moss); }
.form-message.error { color: var(--c-rust); }

/* ─── Admin ─── */
.admin-login {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}
.admin-login h1 {
  font-family: var(--f-display);
  font-size: 2.2rem;
  margin-bottom: var(--space-lg);
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  background: var(--c-warm-white);
  padding: 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-sand);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}
.admin-header h1 {
  font-family: var(--f-display);
  font-size: 2rem;
}

.admin-filters {
  display: flex;
  gap: 12px;
  margin-bottom: var(--space-lg);
}
.admin-filters select {
  border: 1.5px solid var(--c-sand);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: .85rem;
  background: var(--c-warm-white);
  font-family: var(--f-body);
  font-weight: 500;
  color: var(--c-espresso);
  cursor: pointer;
  transition: border-color var(--duration-fast);
}
.admin-filters select:focus {
  outline: none;
  border-color: var(--c-forest);
}

.bookings-list { display: flex; flex-direction: column; gap: 16px; }

.booking-card {
  background: var(--c-warm-white);
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--c-sand);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  transition: all var(--duration-fast);
}
.booking-card:hover {
  border-color: var(--c-stone);
  box-shadow: var(--shadow-soft);
}

.booking-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.booking-top strong {
  font-family: var(--f-display);
  font-size: 1.1rem;
}
.booking-dates { font-size: .9rem; margin-bottom: 8px; color: var(--c-espresso); }
.booking-nights { color: var(--c-bark); font-size: .8rem; font-weight: 300; }
.booking-guest {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--c-bark);
  margin-bottom: 6px;
}
.booking-notes {
  font-size: .85rem;
  color: var(--c-bark);
  font-style: italic;
  padding: 8px 0;
  font-weight: 300;
}
.booking-created {
  font-size: .72rem;
  color: var(--c-stone);
  letter-spacing: .03em;
}

.booking-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.booking-actions .btn {
  font-size: .78rem;
  padding: 8px 18px;
}

.badge {
  font-size: .65rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.badge-pending { background: rgba(200,145,58,.15); color: var(--c-amber); }
.badge-confirmed { background: rgba(74,124,89,.15); color: var(--c-forest); }
.badge-cancelled { background: var(--c-sand); color: var(--c-bark); }

/* ─── Footer ─── */
#footer {
  background: var(--c-night);
  color: rgba(255,255,255,.5);
  padding: 64px 0 0;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: white;
  display: block;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  font-weight: 300;
}

.footer-socials {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  font-weight: 500;
  transition: all var(--duration) var(--ease-out);
}
.social-link:hover {
  border-color: var(--c-amber);
  color: var(--c-amber);
  transform: translateY(-2px);
}
.social-link svg {
  flex-shrink: 0;
}

.footer-col h4 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 16px;
}
.footer-col a,
.footer-col span {
  display: block;
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 10px;
  font-weight: 300;
  transition: color var(--duration-fast);
}
.footer-col a:hover { color: var(--c-amber); }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,.25);
  letter-spacing: .04em;
}
.footer-credit a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.15);
  transition: color var(--duration-fast), border-color var(--duration-fast);
}
.footer-credit a:hover {
  color: var(--c-amber);
  border-color: var(--c-amber);
}

/* ─── Offers Slider (home) ─── */
.offers-slider-section {
  background: var(--c-night);
  padding: 32px 0;
}

.offers-slider {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* Wrapper interno che fa il clipping (così le slide successive non sbirciano nel padding) */
.offers-track-clip {
  overflow: hidden;
}

.offers-track {
  display: flex;
  transition: transform .6s var(--ease-out);
}

.offer-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  min-height: 300px;
  padding: 24px 0;
}

.offer-slide-image {
  height: 300px;
  background-size: cover;
  background-position: center;
  background-color: #1a3a2e;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.offer-slide-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a3a2e, #0f1f18);
}
.offer-slide-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}

.offer-slide-content {
  color: white;
  padding: 0 8px;
}

.offer-slide-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(200,145,58,.15);
  border-radius: 100px;
}

.offer-slide-title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 8px;
  color: white;
}

.offer-slide-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  margin-bottom: 16px;
}

.offer-slide-desc {
  font-size: .95rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  font-weight: 300;
  max-width: 480px;
}

/* Nav arrows */
.offers-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  z-index: 2;
}
.offers-nav:hover {
  background: var(--c-amber);
  border-color: var(--c-amber);
}
.offers-prev { left: 8px; }
.offers-next { right: 8px; }

/* Dots */
.offers-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.offers-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.offers-dot:hover { background: rgba(255,255,255,.5); }
.offers-dot.active {
  background: var(--c-amber);
  width: 28px;
  border-radius: 4px;
}

/* ─── Offers Admin Tab ─── */
.offers-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.offer-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px;
  background: white;
  border: 1px solid var(--c-sand);
  border-radius: var(--r-md);
  transition: all var(--duration-fast);
}
.offer-row:hover {
  border-color: var(--c-stone);
  box-shadow: var(--shadow-soft);
}

.offer-thumb {
  width: 120px;
  height: 80px;
  border-radius: var(--r-sm);
  background-color: var(--c-cream);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-bark);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.offer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.offer-info strong {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--c-night);
}
.offer-subtitle {
  font-size: .85rem;
  color: var(--c-espresso);
  font-weight: 500;
}
.offer-desc {
  font-size: .82rem;
  color: var(--c-bark);
  font-weight: 300;
}
.offer-status {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}
.offer-order {
  font-size: .72rem;
  color: var(--c-bark);
}

.offer-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Photo upload (admin) */
.photo-upload {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.photo-preview {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  border-radius: var(--r-md);
  background-color: var(--c-cream);
  background-size: cover;
  background-position: center;
  border: 2px dashed var(--c-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-bark);
  font-size: .78rem;
  text-align: center;
  padding: 10px;
}
.photo-preview[style*="background-image"] { border-style: solid; }

.photo-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.upload-hint {
  font-size: .75rem;
  color: var(--c-bark);
  font-weight: 300;
}

/* Modal wide (per form offerte) */
.modal-content.modal-wide {
  max-width: 640px;
}

/* ─── About section (Chi siamo) ─── */
.about-section {
  background: var(--c-warm-white);
  border-top: 1px solid var(--c-sand);
  border-bottom: 1px solid var(--c-sand);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.about-text p {
  color: var(--c-bark);
  line-height: 1.8;
  font-weight: 300;
  font-size: 1.02rem;
  margin-top: var(--space-md);
}

.about-places {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-place {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 28px;
  background: white;
  border: 1px solid var(--c-sand);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--c-espresso);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.about-place::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--c-amber);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform var(--duration) var(--ease-out);
}
.about-place:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-elevated);
  color: var(--c-espresso);
}
.about-place:hover::before {
  transform: scaleY(1);
}

.about-place-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--c-bark);
}
.about-place-name {
  font-family: var(--f-display);
  font-size: 1.3rem;
  color: var(--c-night);
  line-height: 1.2;
  margin-top: 4px;
}
.about-place-cta {
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-forest);
  margin-top: 10px;
  transition: color var(--duration-fast);
}
.about-place:hover .about-place-cta {
  color: var(--c-amber);
}

/* ─── Map section ─── */
.map-section {
  background: var(--c-warm-white);
  border-top: 1px solid var(--c-sand);
  border-bottom: 1px solid var(--c-sand);
}

.map-section .section-subtitle {
  margin-bottom: var(--space-xl);
}

.map-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  position: relative;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  filter: grayscale(.2) contrast(1.05);
  transition: filter var(--duration) var(--ease-out);
}
.map-wrap:hover iframe {
  filter: grayscale(0) contrast(1);
}

.map-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--c-forest);
  letter-spacing: .02em;
  transition: gap var(--duration) var(--ease-out);
}
.map-cta:hover {
  color: var(--c-amber);
  gap: 10px;
}

/* ═══════════════════════════════════════════════
   PRICING — Admin & Public
   ═══════════════════════════════════════════════ */

/* Admin tabs */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--c-sand);
}
.admin-tab {
  background: transparent;
  border: none;
  padding: 12px 20px;
  font-family: var(--f-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-bark);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--duration-fast);
}
.admin-tab:hover { color: var(--c-espresso); }
.admin-tab.active {
  color: var(--c-espresso);
  border-bottom-color: var(--c-amber);
  font-weight: 600;
}

.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

/* Pricing admin blocks */
.pricing-admin {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.pricing-block {
  background: var(--c-warm-white);
  border: 1px solid var(--c-sand);
  border-radius: var(--r-lg);
  padding: 24px;
}

.pricing-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.pricing-block-header h2 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  color: var(--c-night);
  font-weight: 400;
}
.pricing-block-header select {
  border: 1.5px solid var(--c-sand);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: .85rem;
  background: white;
  font-family: var(--f-body);
  font-weight: 500;
  color: var(--c-espresso);
  cursor: pointer;
}
.pricing-block-header select:focus {
  outline: none;
  border-color: var(--c-forest);
}

.btn-sm { padding: 8px 16px; font-size: .8rem; }

/* Seasons list */
.seasons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.season-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--c-sand);
  border-radius: var(--r-md);
  transition: all var(--duration-fast);
}
.season-row:hover {
  border-color: var(--c-stone);
  box-shadow: var(--shadow-soft);
}

.season-priority {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.season-priority.priority-1 { background: rgba(184,92,56,.15); color: var(--c-rust); }
.season-priority.priority-2 { background: rgba(200,145,58,.15); color: var(--c-amber); }
.season-priority.priority-3 { background: rgba(74,124,89,.15); color: var(--c-forest); }

.season-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.season-info strong {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--c-night);
}
.season-dates {
  font-size: .82rem;
  color: var(--c-bark);
}

.season-actions {
  display: flex;
  gap: 6px;
}

.btn-text {
  background: transparent;
  border: 1px solid var(--c-sand);
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 500;
  color: var(--c-bark);
  transition: all var(--duration-fast);
}
.btn-text:hover {
  border-color: var(--c-espresso);
  color: var(--c-espresso);
  background: var(--c-cream);
}
.btn-text-danger:hover {
  border-color: var(--c-rust);
  color: var(--c-rust);
  background: rgba(184,92,56,.06);
}

/* Priority dot */
.priority-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.priority-dot.priority-1 { background: var(--c-rust); }
.priority-dot.priority-2 { background: var(--c-amber); }
.priority-dot.priority-3 { background: var(--c-forest); }

/* Price matrix */
.price-matrix {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.price-row label {
  font-size: .9rem;
  color: var(--c-espresso);
  font-weight: 500;
}
.season-dates-sm {
  display: block;
  font-size: .75rem;
  color: var(--c-bark);
  font-weight: 400;
  margin-top: 2px;
}

.price-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-input input {
  width: 100px;
  text-align: right;
  border: 1.5px solid var(--c-sand);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: .95rem;
  font-family: var(--f-body);
  background: white;
  color: var(--c-espresso);
}
.price-input input:focus {
  outline: none;
  border-color: var(--c-forest);
  box-shadow: 0 0 0 3px rgba(45,74,62,.1);
}
.price-suffix {
  font-size: .8rem;
  color: var(--c-bark);
  white-space: nowrap;
}

.price-divider {
  height: 1px;
  background: var(--c-sand);
  margin: 8px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .9rem;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-forest);
  cursor: pointer;
}

.price-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26,21,16,.6);
  backdrop-filter: blur(6px);
}
.modal-content {
  position: relative;
  background: var(--c-warm-white);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-elevated);
}
.modal-content h3 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--c-night);
}
.modal-content form { display: flex; flex-direction: column; gap: 16px; }
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Price summary (booking form) */
.price-summary {
  background: var(--c-cream);
  border-radius: var(--r-md);
  padding: 16px;
  margin-top: 8px;
  border: 1px solid var(--c-sand);
}
.price-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  color: var(--c-espresso);
  padding: 4px 0;
}
.price-summary-row strong { font-weight: 600; }

.price-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--c-sand);
  font-size: 1rem;
}
.price-summary-total span {
  font-weight: 600;
  color: var(--c-bark);
}
.price-summary-total strong {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--c-night);
}
.price-summary-note {
  font-size: .72rem;
  color: var(--c-bark);
  font-style: italic;
  margin-top: 10px;
  font-weight: 300;
}

.parking-check {
  padding: 12px 14px;
  background: var(--c-cream);
  border-radius: var(--r-md);
  border: 1px solid var(--c-sand);
  transition: all var(--duration-fast);
}
.parking-check:hover {
  border-color: var(--c-amber);
  background: rgba(200,145,58,.05);
}
.parking-check input:checked ~ span { color: var(--c-espresso); }

/* Pricing info (public apartment page) */
.pricing-info-section {
  background: var(--c-warm-white);
  border-top: 1px solid var(--c-sand);
  border-bottom: 1px solid var(--c-sand);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: var(--space-lg);
}

.pricing-card {
  background: white;
  border: 1px solid var(--c-sand);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--duration-fast);
}
.pricing-card:hover {
  border-color: var(--c-stone);
  box-shadow: var(--shadow-soft);
}

.pricing-card-label {
  font-size: .82rem;
  color: var(--c-bark);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pricing-card-value {
  font-family: var(--f-display);
  font-size: 2rem;
  color: var(--c-night);
  font-weight: 400;
  line-height: 1.1;
  margin-top: 6px;
}
.pricing-card-unit {
  font-size: .78rem;
  color: var(--c-bark);
}
.pricing-card-dates {
  font-size: .78rem;
  color: var(--c-forest);
  margin-top: 8px;
  font-weight: 500;
}
.pricing-card-parking {
  background: var(--c-cream);
}

/* Booking admin price info */
.booking-price {
  font-size: .9rem;
  margin-bottom: 8px;
  color: var(--c-espresso);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.booking-price strong {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--c-forest);
}
.badge-parking {
  font-size: .7rem;
  background: rgba(74,124,89,.15);
  color: var(--c-forest);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile First Optimizations
   ═══════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  .apartments-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; max-width: 400px; margin: var(--space-xl) auto 0; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }

  .gallery-item { width: 280px; height: 210px; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Navbar mobile fullscreen overlay */
  .nav-toggle { display: block; }
  .nav-inner { height: 64px; }
  .nav-logo { font-size: 1.3rem; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245,240,232,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 9999;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1.4rem !important;
    color: var(--c-night) !important;
    font-weight: 400 !important;
  }
  .nav-links a::after { display: none; }

  /* Hero mobile */
  .hero { min-height: 100svh; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.5rem); }
  .hero-desc { font-size: 1rem; margin-bottom: var(--space-lg); }
  .hero-eyebrow { font-size: .7rem; letter-spacing: .25em; }
  .btn-hero { padding: 14px 32px; font-size: .9rem; }
  .hero-scroll { bottom: 20px; }
  .hero-mountains { height: 25vh; }

  /* Sections */
  .section { padding-top: 48px; padding-bottom: 48px; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  /* Location strip */
  .location-strip { padding: 14px 0; }
  .location-strip p { font-size: .78rem; }

  /* Cards */
  .apartments-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .card-image { height: 220px; }
  .card-body { padding: 20px; }
  .card-body h3 { font-size: 1.3rem; }

  /* Why Borno mobile */
  .why-item { padding: 20px 12px; }

  /* Map mobile */
  .map-wrap iframe { height: 320px; border-radius: var(--r-md); }

  /* About mobile */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-place { padding: 20px 22px; }
  .about-place-name { font-size: 1.15rem; }

  /* Offers slider mobile */
  .offer-slide { grid-template-columns: 1fr; gap: 20px; padding: 16px 0; }
  .offer-slide-image { height: 200px; order: 1; }
  .offer-slide-content { order: 2; padding: 0; }
  .offer-slide-title { font-size: 1.6rem; }
  .offer-slide-subtitle { font-size: .92rem; }
  .offer-slide-desc { font-size: .88rem; }
  .offers-nav { width: 36px; height: 36px; font-size: 1.1rem; }
  .offers-prev { left: 4px; }
  .offers-next { right: 4px; }

  /* Offers admin mobile */
  .offer-row { grid-template-columns: 1fr; gap: 12px; }
  .offer-thumb { width: 100%; height: 120px; }
  .offer-actions { flex-direction: row; flex-wrap: wrap; }
  .photo-upload { flex-direction: column; }
  .photo-preview { width: 100%; height: 160px; }

  /* Contact */
  .contact-cards { grid-template-columns: 1fr; max-width: 340px; }
  .contact-card { padding: 24px 20px; }

  /* WhatsApp fab: solo icona su mobile */
  .whatsapp-fab { right: 16px; bottom: 16px; padding: 14px; }
  .whatsapp-fab-label { display: none; }

  /* Apartment hero */
  .apartment-hero { height: 40vh; min-height: 280px; }
  .apartment-hero-overlay { padding-bottom: 32px; }
  .apartment-hero-overlay h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .apartment-hero-overlay p { font-size: .95rem; }

  /* Apartment info */
  .apartment-detail { max-width: 100%; }
  .apartment-info h2 { font-size: 1.5rem; }
  .amenities-list { gap: 8px; }
  .amenities-list li { padding: 6px 14px; font-size: .8rem; }

  /* Gallery mobile — full-bleed horizontal scroll */
  .gallery-track { gap: 12px; padding: 0 20px; }
  .gallery-item { width: 260px; height: 195px; border-radius: var(--r-md); }

  /* Lightbox mobile */
  .lightbox-img-wrap { max-width: 94vw; max-height: 70vh; }
  .lightbox-img { max-width: 94vw; max-height: 70vh; border-radius: var(--r-sm); }
  .lightbox-prev,
  .lightbox-next { width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-caption { bottom: 50px; font-size: .82rem; padding: 0 20px; }
  .lightbox-counter { bottom: 20px; }

  /* Booking */
  .booking-layout { grid-template-columns: 1fr; gap: 24px; }
  .booking-intro { margin-bottom: var(--space-lg); }
  .booking-form-wrapper { padding: 20px; }
  .booking-form-wrapper h3 { font-size: 1.15rem; }
  .form-row { grid-template-columns: 1fr; }
  /* font-size 16px previene zoom automatico iOS al focus */
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 14px 14px;
    font-size: 16px;
  }
  .admin-filters select { font-size: 16px; padding: 12px 18px; }
  .btn-primary { width: 100%; padding: 14px; }

  /* Calendar mobile */
  .calendar { padding: 16px; }
  .cal-cell { padding: 10px 2px; font-size: .82rem; }
  .cal-day-label { font-size: .65rem; padding: 4px 0 6px; }
  .cal-nav { width: 34px; height: 34px; }
  .cal-month { font-size: 1rem; }
  .cal-legend { gap: 12px; flex-wrap: wrap; }

  /* Admin mobile */
  .admin-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .admin-header h1 { font-size: 1.6rem; }
  .admin-filters { flex-direction: column; }
  .booking-card { flex-direction: column; padding: 16px; }
  .booking-actions { flex-direction: row; flex-wrap: wrap; }
  .booking-actions .btn { flex: 1; min-width: 0; text-align: center; }
  .booking-top strong { font-size: 1rem; }

  /* Footer mobile */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-brand { text-align: center; }
  .footer-col { text-align: center; }
  .footer-col h4 { margin-bottom: 10px; }
  .footer-bottom { text-align: center; }

  /* Admin login mobile */
  .admin-login { padding-top: 20px; }
  .login-form { padding: 24px; }

  /* Admin tabs mobile */
  .admin-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-tab { flex-shrink: 0; padding: 12px 16px; }
  .pricing-block { padding: 18px; }
  .pricing-block-header { flex-direction: column; align-items: stretch; }
  .pricing-block-header select { width: 100%; }

  /* Season rows mobile */
  .season-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .season-actions { align-self: flex-end; }

  /* Price rows mobile */
  .price-row { grid-template-columns: 1fr; gap: 8px; padding: 8px 0; }
  .price-input { justify-content: flex-start; }
  .price-input input { width: 120px; }

  /* Pricing cards mobile */
  .pricing-cards { grid-template-columns: 1fr 1fr; }
  .pricing-card-value { font-size: 1.6rem; }

  /* Modal mobile */
  .modal-content { padding: 24px 20px; max-height: 90vh; overflow-y: auto; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }

  /* Price summary mobile */
  .price-summary-total strong { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .pricing-cards { grid-template-columns: 1fr; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-desc { font-size: .92rem; }
  .card-image { height: 180px; }
  .gallery-item { width: 230px; height: 170px; }
  .cal-cell { padding: 8px 1px; font-size: .78rem; }
  .cal-grid { gap: 2px; }
  .section-title { font-size: 1.5rem; }
  .apartment-hero { height: 35vh; min-height: 240px; }
  .apartment-hero-overlay h1 { font-size: 1.8rem; }

  .lightbox-prev,
  .lightbox-next { width: 36px; height: 36px; font-size: 1rem; }
}

/* Touch device optimizations */
@media (hover: none) {
  .apartment-card:hover { transform: none; box-shadow: var(--shadow-card); }
  .gallery-item:hover { transform: none; }
  .contact-card:hover { transform: none; }
  .cal-cell.free:hover { background: transparent; }

  /* Bigger touch targets */
  .cal-cell { min-height: 40px; }
  .btn { min-height: 44px; }
  .cal-nav { min-width: 44px; min-height: 44px; }
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
  #footer .footer-bottom {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .lightbox-caption {
    bottom: calc(60px + env(safe-area-inset-bottom));
  }
  .lightbox-counter {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .whatsapp-fab {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100svh; }
  .hero h1 { font-size: 2.2rem; }
  .hero-desc { display: none; }
  .apartment-hero { height: 60vh; min-height: 200px; }
  .lightbox-img-wrap { max-height: 80vh; }
  .lightbox-img { max-height: 80vh; }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg::before { animation: none; }
}
