/* ========================================
   CARDIGNAN CONSTRUCTIONS - Design System
   Mobile-First, Apple-inspired
   ======================================== */

/* --- CSS Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors — Salvia / Sage palette */
  --salvia: #bbc7bb;          /* sfondo principale */
  --salvia-light: #c9d3c9;    /* inizio gradiente pagine interne */
  --salvia-light-2: #cfd9cf;  /* inizio gradiente copertine */
  --salvia-dark: #aab9ab;     /* fine gradiente pagine interne */
  --salvia-dark-2: #a7b6a8;   /* fine gradiente copertine */
  --salvia-deep: #465649;     /* salvia scuro: testo + accento */
  --ombra: rgba(70, 86, 73, .25);
  --scrim-photo: rgba(86, 104, 89, .5);
  --grad-interne: linear-gradient(162deg, #c9d3c9 0%, #bbc7bb 48%, #aab9ab 100%);
  --grad-copertine: linear-gradient(168deg, #cfd9cf 0%, #bbc7bb 50%, #a7b6a8 100%);

  /* Accento (mappato sui token storici "orange") */
  --orange-primary: #465649;  /* accento principale (pulsanti, link, CTA) */
  --orange-dark: #38463b;     /* accento hover (piu scuro) */
  --orange-deep: #2f3d32;     /* accento scuro */
  --orange-light: #7c8e7f;    /* accento tenue / testo secondario su chiaro */
  --orange-pale: #c9d3c9;     /* salvia pallido */
  --orange-warm: #aab9ab;     /* salvia caldo */
  --teal: #4f6453;            /* secondario (es. telefono) */
  --mint: #d6e0d6;            /* menta salvia */
  --white: #FFFFFF;
  --black: #2f3d32;           /* "nero" → salvia profondo */
  --gray-900: #465649;        /* testo principale / superfici scure */
  --gray-800: #56685a;
  --gray-700: #4e5e51;
  --gray-600: #687a6b;
  --gray-500: #859286;
  --gray-400: #a3afa4;
  --gray-300: #cdd6cd;
  --gray-200: #dde4dd;
  --gray-100: #eef2ee;
  --gray-50: #f6f8f6;

  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

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

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-medium: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(70,86,73,0.12);
  --shadow-md: 0 4px 12px rgba(70,86,73,0.16);
  --shadow-lg: 0 8px 30px rgba(70,86,73,0.20);
  --shadow-xl: 0 20px 60px rgba(70,86,73,0.25);

  /* Layout */
  --nav-height: 48px;
  --max-width: 1200px;
  --max-width-wide: 1440px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--gray-900);
  background: var(--grad-interne);
  background-attachment: fixed;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

button {
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
.heading-hero {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.heading-1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.heading-2 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.heading-3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
}

.body-large {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--gray-600);
}

.body-regular {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-700);
}

.body-small {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--gray-600);
}

.caption {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--gray-500);
  letter-spacing: 0.01em;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: background var(--transition-medium);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
}

.navbar__container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar__logos-separator {
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 300;
  opacity: 0.5;
  user-select: none;
}

.navbar__logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.navbar__logo--partner {
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

/* Map - Interactive */
.property-map__interactive {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  background: var(--gray-100);
  cursor: pointer;
  /* Static map preview as background */
  background-image: url('https://maps.googleapis.com/maps/api/staticmap?center=40.3516,18.1714&zoom=16&size=800x400&maptype=roadmap&markers=color:red%7C40.3516,18.1714&key=');
  background-size: cover;
  background-position: center;
}

.property-map__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  transition: opacity 0.5s ease;
  z-index: 5;
}

.property-map__overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.property-map__overlay-content svg {
  color: var(--orange-primary);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.property-map__wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.property-map__wrapper iframe {
  display: block;
  width: 100%;
  min-height: 300px;
}

.navbar__links {
  display: none;
  gap: var(--space-xl);
  align-items: center;
}

.navbar__link {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--gray-700);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.navbar__link:hover {
  color: var(--gray-900);
}

.navbar__link--active {
  color: var(--gray-900);
  font-weight: 500;
}

/* Hamburger */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gray-900);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile menu */
.navbar__mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-2xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-medium);
}

.navbar__mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__mobile-link {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--orange-primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--orange-dark);
  transform: scale(1.02);
}

.btn--secondary {
  background: transparent;
  color: var(--gray-900);
  border: 1.5px solid var(--gray-300);
}

.btn--secondary:hover {
  border-color: var(--gray-900);
}

.btn--white {
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-900);
  backdrop-filter: blur(10px);
}

.btn--white:hover {
  background: var(--white);
  transform: scale(1.02);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn--whatsapp:hover {
  background: #20bd5a;
  transform: scale(1.02);
}

.btn--phone {
  background: var(--teal);
  color: var(--white);
}

.btn--phone:hover {
  background: #3f5144;
  transform: scale(1.02);
}

.btn--email {
  background: var(--gray-900);
  color: var(--white);
}

.btn--email:hover {
  background: var(--gray-800);
  transform: scale(1.02);
}

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

.btn--lg {
  font-size: 1rem;
  padding: 14px 30px;
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  max-width: var(--max-width-wide);
}

/* --- Sections --- */
.section {
  padding: var(--space-3xl) 0;
}

.section--gray {
  background: var(--gray-100);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__subtitle {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-primary);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
}

.section__description {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Hero Carousel --- */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-carousel__slides {
  display: flex;
  height: 100%;
  transition: transform var(--transition-slow);
}

.hero-carousel__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(70, 86, 73, 0.72) 0%,
    rgba(86, 104, 89, 0.28) 40%,
    rgba(86, 104, 89, 0) 100%
  );
}

.hero-carousel__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2xl) var(--space-md);
  color: var(--white);
  z-index: 2;
}

.hero-carousel__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, rgba(70, 86, 73, 0.88), rgba(47, 61, 50, 0.88));
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px rgba(70, 86, 73, 0.3);
}

.hero-carousel__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.hero-carousel__address {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: var(--space-lg);
}

.hero-carousel__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Carousel controls */
.hero-carousel__nav {
  position: absolute;
  bottom: var(--space-2xl);
  right: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  z-index: 3;
}

.hero-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.hero-carousel__dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}

.hero-carousel__arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-md);
  z-index: 3;
  pointer-events: none;
}

.hero-carousel__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  pointer-events: auto;
  color: var(--white);
}

.hero-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

.hero-carousel__arrow svg {
  width: 18px;
  height: 18px;
}

/* --- Collaboration Banner --- */
.collaboration {
  background: var(--grad-interne);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.collaboration::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange-primary), var(--orange-light));
}

.collaboration__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--orange-primary);
  margin-bottom: var(--space-lg);
}

.collaboration__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.collaboration__logo {
  height: 42px;
  width: auto;
  opacity: 0.95;
}

.collaboration__logo--partner {
  height: 64px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  object-fit: contain;
}

.collaboration__divider {
  width: 1px;
  height: 40px;
  background: var(--ombra);
}

.collaboration__text {
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-top: var(--space-md);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* --- Virtual Tour Section --- */
.virtual-tour {
  padding: var(--space-3xl) 0;
}

.virtual-tour__tabs {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-xl);
  background: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius-full);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.virtual-tour__tab {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-align: center;
  cursor: pointer;
  border: none;
  background: transparent;
}

.virtual-tour__tab.active {
  background: var(--orange-primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(70, 86, 73, 0.28);
}

.virtual-tour__tab:hover:not(.active) {
  color: var(--gray-800);
}

.virtual-tour__panel {
  display: none;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  min-height: 300px;
}

.virtual-tour__panel.active {
  display: block;
}

.virtual-tour__iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 110%;  /* ~9:10 on mobile — very tall for vertical screens */
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.virtual-tour__iframe-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.virtual-tour__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  color: var(--gray-500);
  min-height: 350px;
}

.virtual-tour__placeholder-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.virtual-tour__placeholder-text {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

/* 360 Viewer */
.viewer-360 {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-900);
}

.viewer-360__container {
  width: 100%;
  height: 500px;
  min-height: 400px;
}

.viewer-360__container .pnlm-render-container,
.viewer-360__container .pnlm-container {
  border-radius: var(--radius-lg);
}

.viewer-360__controls {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 10;
}

.viewer-360__nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  backdrop-filter: blur(4px);
}

.viewer-360__nav-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.viewer-360__nav-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* --- Property Info (Booking-style) --- */
.property-info {
  padding: var(--space-3xl) 0;
  background: var(--gray-100);
}

.property-info__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
  border-top: 3px solid var(--orange-primary);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
}

.info-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.info-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--orange-dark);
}

.info-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-900);
}

.info-card__content {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700);
}

/* Gallery carousel (fallback for virtual tour) */
.gallery-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 9 / 10;  /* very tall on mobile */
  background: var(--gray-900);
}

.gallery-carousel__slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-carousel__slide {
  min-width: 100%;
  height: 100%;
}

.gallery-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.gallery-carousel__arrow:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.gallery-carousel__arrow svg {
  width: 20px;
  height: 20px;
}

.gallery-carousel__arrow--prev { left: 12px; }
.gallery-carousel__arrow--next { right: 12px; }

.gallery-carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.gallery-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.gallery-carousel__dot.active {
  background: var(--white);
  width: 20px;
  border-radius: 4px;
}

.gallery-carousel__counter {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 12px;
  z-index: 3;
  backdrop-filter: blur(4px);
}

/* Amenities grid (booking-style) */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  transition: background var(--transition-fast);
}

.amenity-item:hover {
  background: var(--gray-100);
}

.amenity-item__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.amenity-item__icon svg {
  width: 18px;
  height: 18px;
  color: var(--orange-primary);
}

.amenity-item__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-800);
}

/* Highlights strip */
.highlights {
  display: flex;
  overflow-x: auto;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.highlights::-webkit-scrollbar {
  display: none;
}

.highlight-chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--orange-pale), #eef2ee);
  border: 1px solid var(--orange-light);
  border-radius: var(--radius-full);
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-800);
}

.highlight-chip__icon {
  width: 18px;
  height: 18px;
  color: var(--orange-primary);
  flex-shrink: 0;
}

/* --- Planimetrie Section (Protected) --- */
.planimetrie {
  padding: var(--space-2xl) 0;
  background: var(--white);
  position: relative;
}

.planimetrie__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.planimetrie__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
}

.planimetrie__image {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: center top;
  background: var(--white);
}

.planimetrie__label {
  padding: var(--space-md);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

/* Blur overlay */
.planimetrie__protected {
  position: relative;
  max-height: 400px;
  overflow: hidden;
}

.planimetrie__blur-wrapper {
  filter: blur(8px);
  -webkit-filter: blur(8px);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.planimetrie__lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.planimetrie__lock-overlay:hover {
  background: rgba(255, 255, 255, 0.35);
}

.planimetrie__lock-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  box-shadow: 0 8px 32px rgba(70, 86, 73, 0.32);
}

.planimetrie__lock-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.planimetrie__lock-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
  text-shadow: 0 1px 8px rgba(255,255,255,0.8);
}

.planimetrie__lock-subtext {
  font-size: 0.875rem;
  color: var(--gray-700);
  text-shadow: 0 1px 8px rgba(255,255,255,0.8);
}

.planimetrie__lock-btn {
  margin-top: var(--space-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--orange-primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(70, 86, 73, 0.28);
  transition: all var(--transition-fast);
}

.planimetrie__lock-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(70, 86, 73, 0.38);
}

/* Unlocked state (lock toggle OFF) */
.planimetrie__protected--unlocked { max-height: none; }
.planimetrie__protected--unlocked .planimetrie__blur-wrapper {
  filter: none; -webkit-filter: none;
  pointer-events: auto; user-select: auto; -webkit-user-select: auto;
}
.planimetrie__protected--unlocked .planimetrie__lock-overlay { display: none; }

/* Download buttons (materiale tecnico) */
.planimetrie__downloads {
  display: flex; flex-wrap: wrap; gap: var(--space-md);
  margin-top: var(--space-xl); justify-content: center;
}
.planimetrie__download-btn {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  background: var(--orange-primary); color: var(--white);
  padding: 12px 24px; border-radius: var(--radius-full);
  font-size: 0.9375rem; font-weight: 600;
  box-shadow: 0 4px 16px rgba(70, 86, 73, 0.22);
  transition: all var(--transition-fast);
}
.planimetrie__download-btn:hover {
  background: var(--orange-dark); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(70, 86, 73, 0.30);
}
.planimetrie__download-btn svg { width: 18px; height: 18px; }

/* --- Contact Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ===== Gallery Layout (aggiornamenti) ===== */
.gallery-layout { width: 100%; --gl-gap: 4px; }

.gl-item {
  overflow: hidden;
  border-radius: 4px;
  background: var(--gray-100);
  aspect-ratio: 1;
}
.gl-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.gl-item:hover img { transform: scale(1.03); }

/* Carosello sezione "Galleria" */
.section-carousel { position: relative; max-width: 100%; }
.section-carousel__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  border-radius: 12px; scrollbar-width: none;
}
.section-carousel__track::-webkit-scrollbar { display: none; }
.section-carousel__slide { flex: 0 0 100%; scroll-snap-align: center; }
.section-carousel__slide img { display: block; width: 100%; border-radius: 12px; }
.section-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.45); color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s; z-index: 2;
}
.section-carousel__arrow:hover { background: rgba(0,0,0,.7); }
.section-carousel__arrow--prev { left: 10px; }
.section-carousel__arrow--next { right: 10px; }
.section-carousel--single .section-carousel__arrow { display: none; }

/* 1. Singola */
.gallery-layout--single { display: grid; }
.gallery-layout--single .gl-item { aspect-ratio: 4/3; }
.gallery-layout--single .gl-item:nth-child(n+2) { display: none; }

/* 2. Due Colonne */
.gallery-layout--due-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gl-gap); }
.gallery-layout--due-col .gl-item:nth-child(n+3) { display: none; }

/* 3. Tre Colonne */
.gallery-layout--tre-col { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gl-gap); }

/* 4. Griglia 2×2 */
.gallery-layout--griglia-4 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gl-gap); }
.gallery-layout--griglia-4 .gl-item:nth-child(n+5) { display: none; }

/* 5. Griglia 2×3 */
.gallery-layout--griglia-6 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gl-gap); }
.gallery-layout--griglia-6 .gl-item:nth-child(n+7) { display: none; }

/* 6. Grande Sinistra */
.gallery-layout--grande-sinistra {
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr;
  gap: var(--gl-gap); aspect-ratio: 4/3;
}
.gallery-layout--grande-sinistra .gl-item { aspect-ratio: unset; }
.gallery-layout--grande-sinistra .gl-item:nth-child(1) { grid-column:1; grid-row:1/3; }
.gallery-layout--grande-sinistra .gl-item:nth-child(2) { grid-column:2; grid-row:1; }
.gallery-layout--grande-sinistra .gl-item:nth-child(3) { grid-column:2; grid-row:2; }
.gallery-layout--grande-sinistra .gl-item:nth-child(n+4) { display: none; }

/* 7. Grande Destra */
.gallery-layout--grande-destra {
  display: grid; grid-template-columns: 1fr 2fr; grid-template-rows: 1fr 1fr;
  gap: var(--gl-gap); aspect-ratio: 4/3;
}
.gallery-layout--grande-destra .gl-item { aspect-ratio: unset; }
.gallery-layout--grande-destra .gl-item:nth-child(1) { grid-column:1; grid-row:1; }
.gallery-layout--grande-destra .gl-item:nth-child(2) { grid-column:1; grid-row:2; }
.gallery-layout--grande-destra .gl-item:nth-child(3) { grid-column:2; grid-row:1/3; }
.gallery-layout--grande-destra .gl-item:nth-child(n+4) { display: none; }

/* 8. Mosaico 5 */
.gallery-layout--mosaico-5 {
  display: grid; grid-template-columns: 3fr 2fr 2fr; grid-template-rows: 1fr 1fr;
  gap: var(--gl-gap); aspect-ratio: 16/9;
}
.gallery-layout--mosaico-5 .gl-item { aspect-ratio: unset; }
.gallery-layout--mosaico-5 .gl-item:nth-child(1) { grid-column:1; grid-row:1/3; }
.gallery-layout--mosaico-5 .gl-item:nth-child(2) { grid-column:2; grid-row:1; }
.gallery-layout--mosaico-5 .gl-item:nth-child(3) { grid-column:3; grid-row:1; }
.gallery-layout--mosaico-5 .gl-item:nth-child(4) { grid-column:2; grid-row:2; }
.gallery-layout--mosaico-5 .gl-item:nth-child(5) { grid-column:3; grid-row:2; }
.gallery-layout--mosaico-5 .gl-item:nth-child(n+6) { display: none; }

/* 9. Mosaico T */
.gallery-layout--mosaico-T {
  display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: 2fr 1fr;
  gap: var(--gl-gap); aspect-ratio: 4/3;
}
.gallery-layout--mosaico-T .gl-item { aspect-ratio: unset; }
.gallery-layout--mosaico-T .gl-item:nth-child(1) { grid-column:1/4; grid-row:1; }
.gallery-layout--mosaico-T .gl-item:nth-child(2) { grid-column:1; grid-row:2; }
.gallery-layout--mosaico-T .gl-item:nth-child(3) { grid-column:2; grid-row:2; }
.gallery-layout--mosaico-T .gl-item:nth-child(4) { grid-column:3; grid-row:2; }
.gallery-layout--mosaico-T .gl-item:nth-child(n+5) { display: none; }

/* 10. Banner Panoramico */
.gallery-layout--banner { display: grid; }
.gallery-layout--banner .gl-item { aspect-ratio: 21/9; }
.gallery-layout--banner .gl-item:nth-child(n+2) { display: none; }

/* 11. Story Verticale */
.gallery-layout--story { display: grid; grid-template-columns: repeat(auto-fit,minmax(100px,1fr)); gap: var(--gl-gap); }
.gallery-layout--story .gl-item { aspect-ratio: 9/16; }

/* 12. Masonry */
.gallery-layout--masonry { columns: 3; column-gap: var(--gl-gap); }
.gallery-layout--masonry .gl-item { break-inside:avoid; margin-bottom:var(--gl-gap); aspect-ratio:unset; }
.gallery-layout--masonry .gl-item img { width:100%; height:auto; }

@media (max-width: 767px) {
  .gallery-layout--tre-col { grid-template-columns: 1fr 1fr; }
  .gallery-layout--griglia-6 { grid-template-columns: 1fr 1fr; }
  .gallery-layout--masonry { columns: 2; }
  .gallery-layout--story { grid-template-columns: repeat(2,1fr); }
  .gallery-layout--grande-sinistra,
  .gallery-layout--grande-destra {
    grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: unset;
  }
  .gallery-layout--grande-sinistra .gl-item:nth-child(1),
  .gallery-layout--grande-sinistra .gl-item:nth-child(2),
  .gallery-layout--grande-sinistra .gl-item:nth-child(3),
  .gallery-layout--grande-destra .gl-item:nth-child(1),
  .gallery-layout--grande-destra .gl-item:nth-child(2),
  .gallery-layout--grande-destra .gl-item:nth-child(3) {
    grid-column: auto; grid-row: auto; aspect-ratio: 4/3;
  }
  .gallery-layout--mosaico-5 {
    grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: unset;
  }
  .gallery-layout--mosaico-5 .gl-item:nth-child(1) { grid-column:auto; grid-row:auto; aspect-ratio:1; }
  .gallery-layout--mosaico-T {
    grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: unset;
  }
  .gallery-layout--mosaico-T .gl-item:nth-child(1) { grid-column:auto; aspect-ratio:4/3; }
}

/* ========== COMBO IMAGE + TEXT (Extra Pagina) ========== */
.combo {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  margin: var(--space-lg) 0;
}
.combo__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.combo__media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; }
.combo__content { display: flex; flex-direction: column; gap: var(--space-md); }
.combo__title {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--gray-900); line-height: 1.15;
}
.combo__text { font-size: 1rem; line-height: 1.7; color: var(--gray-700); white-space: pre-line; }
.combo__cta { align-self: flex-start; }

/* Layout: image left / right (50-50) */
.combo--img-left  { grid-template-columns: 1fr 1fr; }
.combo--img-right { grid-template-columns: 1fr 1fr; }
.combo--img-right .combo__media   { order: 2; }
.combo--img-right .combo__content { order: 1; }

/* Layout: image top (stacked, centered text) */
.combo--img-top { grid-template-columns: 1fr; gap: var(--space-lg); }
.combo--img-top .combo__content { text-align: center; align-items: center; }
.combo--img-top .combo__cta { align-self: center; }
.combo--img-top .combo__media img { aspect-ratio: 21/9; }

/* Layout: text overlaid on image (hero card) */
.combo--overlay { grid-template-columns: 1fr; position: relative; }
.combo--overlay .combo__media img { aspect-ratio: 16/9; min-height: 320px; }
.combo--overlay .combo__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(70,86,73,.82) 0%, rgba(86,104,89,.25) 70%, rgba(86,104,89,0) 100%);
}
.combo--overlay .combo__media { position: relative; }
.combo--overlay .combo__content {
  position: absolute; inset: auto var(--space-xl) var(--space-xl) var(--space-xl);
  z-index: 2; max-width: 640px;
}
.combo--overlay .combo__title { color: var(--white); }
.combo--overlay .combo__text  { color: rgba(255,255,255,.92); }

/* Layout: offset text card overlapping image */
.combo--card { grid-template-columns: 1fr; }
.combo--card .combo__media img { aspect-ratio: 21/9; }
.combo--card .combo__content {
  background: var(--white);
  margin: -64px var(--space-xl) 0;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 2;
}

@media (max-width: 767px) {
  .combo--img-left, .combo--img-right { grid-template-columns: 1fr; gap: var(--space-lg); }
  .combo--img-right .combo__media   { order: 1; }
  .combo--img-right .combo__content { order: 2; }
  .combo--overlay .combo__content { position: static; inset: auto; }
  .combo--overlay .combo__media::after { display: none; }
  .combo--overlay .combo__title { color: var(--gray-900); }
  .combo--overlay .combo__text  { color: var(--gray-700); }
  .combo--card .combo__content { margin: -40px var(--space-md) 0; padding: var(--space-lg); }
}

/* Street View button — overlay on map */
.property-map__actions {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}
.property-map__sv-btn {
  display: inline-flex; align-items: center; gap: 6px;
  pointer-events: all;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 13px;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 440px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-medium);
  box-shadow: var(--shadow-xl);
}

.modal-backdrop.active .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast);
}

.modal__close:hover {
  background: var(--gray-200);
}

.modal__close svg {
  width: 16px;
  height: 16px;
  color: var(--gray-600);
}

.modal__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--orange-pale), var(--orange-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.modal__icon svg {
  width: 28px;
  height: 28px;
  color: var(--orange-deep);
}

.modal__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.modal__text {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: var(--space-xl);
}

.modal__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.modal__contact-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  width: 100%;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.modal__contact-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.modal__contact-btn--whatsapp {
  background: #25D366;
  color: var(--white);
}

.modal__contact-btn--whatsapp:hover {
  background: #20bd5a;
}

.modal__contact-btn--email {
  background: var(--gray-900);
  color: var(--white);
}

.modal__contact-btn--email:hover {
  background: var(--gray-800);
}

.modal__contact-btn--phone {
  background: var(--teal);
  color: var(--white);
}

.modal__contact-btn--phone:hover {
  background: #3f5144;
}

.modal__contact-btn-text {
  flex: 1;
  text-align: left;
}

.modal__contact-btn-label {
  font-size: 0.6875rem;
  opacity: 0.75;
  margin-bottom: 1px;
}

.modal__contact-btn-value {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* --- Contact Section --- */
.contact-section {
  padding: var(--space-3xl) 0;
  background: var(--grad-interne);
  color: var(--gray-900);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.contact-section .section__subtitle {
  color: var(--orange-primary);
}

.contact-section .section__title {
  color: var(--gray-900);
}

.contact-section .section__description {
  color: var(--gray-600);
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 400px;
  margin: 0 auto;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
}

.contact-btn__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-btn__info {
  flex: 1;
}

.contact-btn__label {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-bottom: 2px;
}

.contact-btn__value {
  font-size: 1rem;
  font-weight: 500;
}

.contact-btn__arrow {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

/* --- Footer --- */
.footer {
  background: var(--grad-interne);
  color: var(--gray-600);
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 3px solid var(--orange-primary);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;        /* logo centrato orizzontalmente nella colonna */
  justify-content: center;    /* centrato verticalmente: riempie l'altezza colonna */
  text-align: center;
}

.footer__logo {
  height: clamp(44px, 7vw, 64px); /* leggermente piu grande, con cap massimo */
  width: auto;                    /* proporzioni mantenute */
  max-width: 100%;
  align-self: center;             /* centrato (no stretch orizzontale) */
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.footer__column-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.footer__link {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-600);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--orange-primary);
}

.footer__divider {
  height: 1px;
  background: var(--ombra);
  margin-bottom: var(--space-lg);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

.footer__copyright {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__legal-link {
  font-size: 0.75rem;
  color: var(--gray-600);
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--gray-400);
}

/* --- Responsive --- */

/* Tablet (768px+) */
@media (min-width: 768px) {
  :root {
    --nav-height: 52px;
  }

  .heading-hero {
    font-size: 3rem;
  }

  .heading-1 {
    font-size: 2.5rem;
  }

  .heading-2 {
    font-size: 1.75rem;
  }

  .section {
    padding: var(--space-4xl) 0;
  }

  .section__title {
    font-size: 2.25rem;
  }

  .container {
    padding: 0 var(--space-xl);
  }

  .navbar__container {
    padding: 0 var(--space-xl);
  }

  .hero-carousel__content {
    padding: var(--space-3xl) var(--space-xl);
  }

  .hero-carousel__title {
    font-size: 3rem;
  }

  .property-info__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-buttons {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }

  .contact-btn {
    flex: 0 1 auto;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .navbar__logo--partner {
    height: 36px;
  }

  .virtual-tour__iframe-wrapper {
    padding-bottom: 56.25%;  /* 16:9 on tablet+ */
  }

  .viewer-360__container {
    height: 600px;
  }

  .gallery-carousel {
    aspect-ratio: 16 / 9;
  }

  .property-map__interactive {
    height: 420px;
  }

  .property-map__wrapper iframe {
    min-height: 400px;
  }

  .collaboration__logos {
    gap: var(--space-2xl);
  }

  .collaboration__logo {
    height: 44px;
  }

  .collaboration__logo--partner {
    height: 56px;
  }

  .planimetrie__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .navbar__links {
    display: flex;
  }

  .navbar__hamburger {
    display: none;
  }

  .hero-carousel {
    height: 90vh;
  }

  .hero-carousel__title {
    font-size: 3.5rem;
  }

  .hero-carousel__content {
    padding: var(--space-4xl) var(--space-3xl);
    max-width: 700px;
  }

  .property-info__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .amenities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .hero-carousel__content {
    padding: var(--space-4xl);
  }
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-orange { color: var(--orange-primary); }

/* --- Homepage Hero --- */
.hero-home {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-copertine);
  position: relative;
  overflow: hidden;
}

.hero-home::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.55) 0%, transparent 70%);
  pointer-events: none;
}

.hero-home__content {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-home__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--orange-primary);
  margin-bottom: var(--space-lg);
}

.hero-home__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
}

.hero-home__subtitle {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--gray-700);
  margin-bottom: var(--space-xl);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-home__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-fast);
}

.service-card:hover {
  border-color: var(--orange-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--orange-dark);
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.service-card__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--gray-600);
}

/* --- Properties Grid --- */
.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.property-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.property-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.property-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.property-card:hover .property-card__image img {
  transform: scale(1.03);
}

.property-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--orange-primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.property-card__body {
  padding: var(--space-xl);
}

.property-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.property-card__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--gray-600);
  margin-bottom: var(--space-md);
}

.property-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--orange-primary);
  transition: gap var(--transition-fast);
}

.property-card:hover .property-card__cta {
  gap: 8px;
}

/* Responsive - Homepage additions */
@media (min-width: 768px) {
  .hero-home__title {
    font-size: 3.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-home__title {
    font-size: 4.5rem;
  }

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

/* --- Pagine legali (privacy / cookie / termini) --- */
.legal-page__container {
  max-width: 760px;
}

.legal-page__body {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.legal-page__body h2 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: var(--space-xl) 0 var(--space-sm);
}

.legal-page__body h2:first-child {
  margin-top: 0;
}

.legal-page__body p,
.legal-page__body li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.legal-page__body ul {
  list-style: disc;
  padding-left: var(--space-lg);
  margin: var(--space-sm) 0;
}

.legal-page__body a {
  color: var(--orange-primary);
  text-decoration: underline;
}

.legal-page__updated {
  margin-top: var(--space-xl);
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* --- Chi Siamo (immagine opzionale dall'admin) --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Con immagine: testo a sinistra (allineato a sinistra), foto a destra */
@media (min-width: 768px) {
  .section--about-with-image .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .section--about-with-image .about-grid .section__header {
    text-align: left;
    margin-bottom: 0;
  }

  .section--about-with-image .about-grid .section__description {
    margin: 0;
  }
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* No images placeholder */
.no-images-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  color: var(--gray-500);
  text-align: center;
  gap: var(--space-md);
}

.no-images-placeholder p {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-carousel__slide--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
}

.hero-carousel__slide--placeholder .no-images-placeholder {
  background: transparent;
  color: rgba(255,255,255,0.5);
  min-height: auto;
}

/* --- Updates Banner Carousel --- */
.updates-banner {
  padding: var(--space-xl) 0;
  background: var(--gray-50);
  overflow: hidden;
}

.updates-banner__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.updates-banner__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.updates-banner__arrows {
  display: flex;
  gap: 8px;
}

.updates-banner__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.updates-banner__arrow:hover {
  border-color: var(--orange-primary);
  color: var(--orange-primary);
}

.updates-banner__arrow svg {
  width: 16px;
  height: 16px;
}

.updates-banner__viewport {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.updates-banner__viewport::-webkit-scrollbar { display: none; }

.updates-banner__track {
  display: flex;
  gap: var(--space-md);
}

.update-card {
  flex: 0 0 calc(33.333% - 11px);
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.update-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.update-card__image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: var(--gray-200);
}

.update-card__body {
  padding: var(--space-sm) var(--space-md);
}

.update-card__date {
  font-size: 0.6875rem;
  color: var(--orange-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.update-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-top: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 767px) {
  .update-card {
    flex: 0 0 calc(80% - 8px);
    scroll-snap-align: start;
  }
  .updates-banner__viewport {
    scroll-snap-type: x mandatory;
  }
  .updates-banner__arrows { display: none; }
}

/* ========== IMAGE LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  transform: scale(0.92);
  transition: transform .3s ease;
  pointer-events: none;
}
.lightbox.active .lightbox__img {
  transform: scale(1);
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }

/* ========== UPDATE PAGE ========== */
.update-page { padding: var(--space-2xl) 0; }
.update-page__back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gray-500); text-decoration: none; font-size: 14px; font-weight: 500;
  margin-bottom: var(--space-lg); transition: color .2s;
}
.update-page__back:hover { color: var(--orange-primary); }

.update-page__hero {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: var(--space-xl); aspect-ratio: 21/7;
}
.update-page__hero img { width: 100%; height: 100%; object-fit: cover; }
.update-page__hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(70,86,73,.78) 0%, rgba(86,104,89,0) 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-lg);
}
.update-page__hero-title { color: white; font-size: 14px; font-weight: 600; opacity: .85; }
.update-page__hero-address { color: white; font-size: 12px; opacity: .65; margin-top: 2px; }

.update-page__header { margin-bottom: var(--space-xl); }
.update-page__date {
  font-size: 14px; color: var(--gray-500); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.update-page__title {
  font-size: 32px; font-weight: 800; color: var(--gray-900); line-height: 1.2; margin: 0 0 12px;
}
.update-page__property {
  display: inline-block; font-size: 13px; background: var(--orange-primary); color: white;
  padding: 4px 12px; border-radius: 20px; font-weight: 500;
}

.update-page__section { margin-top: var(--space-xl); }
.update-page__section-label {
  font-size: 13px; font-weight: 600; color: var(--gray-400); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 12px;
}
.update-page__resoconto {
  font-size: 16px; line-height: 1.8; color: var(--gray-700);
  background: var(--gray-50); padding: var(--space-lg); border-radius: var(--radius-lg);
  white-space: pre-line;
}
.update-page__note {
  font-size: 14px; color: var(--gray-500);
  font-style: italic; padding: var(--space-md); border-left: 3px solid var(--orange-primary);
}
.update-page__gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px;
}
.update-page__gallery img {
  width: 100%; border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 16/10; cursor: pointer;
}
.update-page__tour-frame {
  width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius-lg);
}
.update-page__tour-placeholder {
  /* Compatto: un contenuto "in arrivo" non deve occupare un riquadro 16:9 intero */
  width: 100%; min-height: 140px; padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--gray-100); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: var(--gray-400); font-size: 14px;
}
.update-page__tour-placeholder svg { opacity: .4; }

.update-page__files { display: flex; flex-wrap: wrap; gap: 8px; }
.update-page__file {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--gray-100); border-radius: var(--radius-md); text-decoration: none; color: var(--gray-700);
  font-size: 13px; font-weight: 500; transition: background .2s;
}
.update-page__file:hover { background: var(--gray-200); }

.update-page__empty {
  text-align: center; padding: 80px 20px; color: var(--gray-400);
}
.update-page__empty svg { margin-bottom: 16px; }

@media (max-width: 767px) {
  .update-page__title { font-size: 24px; }
  .update-page__gallery { grid-template-columns: 1fr; }
  .update-page__hero { aspect-ratio: 16/7; }
}

