.values-section .section-title {
  margin-bottom: var(--spacing-2xl);
}
/* ============================================
   RF Global Property & Investments
   Design System - Premium Real Estate Theme
   Palette: Bianco / Grigio Chiaro / Oro
   Ispirato a Belisla - Elegante e Raffinato
   ============================================ */

@font-face {
  font-family: 'Dune Rise';
  src: url('font/Dune_Rise.otf') format('opentype'),
       url('font/Dune_Rise.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette Colori - Design Elegante e Leggero */
  --color-black: #1a1a1a;              /* Testi principali (non nero puro) */
  --color-dark-gray: #2d2d2d;          /* Testi secondari */
  --color-gray: #6b6b6b;                /* Testi terziari */
  --color-light-gray: #e5e5e5;          /* Bordi e separatori */
  --color-bg-light: #fafafa;            /* Background chiaro */
  --color-bg-white: #ffffff;            /* Bianco puro */
  --color-bg-gray: #f5f5f5;             /* Background grigio chiaro */
  --color-gold: #d4af37;                /* Oro principale */
  --color-gold-light: #e8d08a;          /* Oro chiaro */
  --color-gold-dark: #b8941f;           /* Oro scuro */
  --color-white: #ffffff;
  --color-off-white: #fafafa;

  /* Tipografia */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  /* Font The Seasons */
  --font-hero: 'Seasons', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 3.75rem;   /* 60px */

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spaziatura */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4rem;     /* 64px */
  --spacing-4xl: 6rem;     /* 96px */

  /* Breakpoints */
  --breakpoint-sm: 480px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  /* Transizioni */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Ombre */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Z-index */
  --z-cookie-banner: 1000;
  --z-header: 100;
  --z-modal: 900;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-black);
  background-color: #0b0b0b !important;
  background-image: none !important;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.bg-panna {
  background-color: #faf2e4 !important;
  background-image: none !important;
}

body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Nascondi contenuto hero quando menu mobile è aperto */
body.mobile-menu-open .hero-container,
body.mobile-menu-open .hero-title,
body.mobile-menu-open .hero-subtitle {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-black);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
  font-family: 'Times New Roman', Times, serif;
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-dark-gray);
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover,
a:focus {
  color: var(--color-gold-light);
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ============================================
   Skip Link (Accessibilità)
   ============================================ */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-gold);
  color: var(--color-black);
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--color-bg-white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.header-over-video {
  background: transparent;
  box-shadow: none;
  position: absolute;
  transform: none;
  z-index: 150;
}

.header-over-video .header-container {
  position: relative;
  z-index: 2;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-lg);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--spacing-xl);
  position: relative;
}

/* Logo Centrale - Doppio bordo dorato sempre visibile */
.logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  z-index: 10;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  transition: none;
}

.logo-center:hover {
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* Logo con bordo dorato fisso quando sopra video */
.header-over-video .logo-center {
  background-color: transparent;
  backdrop-filter: none;
  border: 2px solid var(--color-gold);
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  padding: var(--spacing-sm) var(--spacing-md);
  min-width: fit-content;
  min-height: fit-content;
  box-sizing: border-box;
}

.header-over-video .logo-center:hover {
  border: 2px solid var(--color-gold);
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.logo-image {
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header-over-video .logo-image {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 1)) 
          drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
  opacity: 1;
  max-height: 78px;
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-gold);
  text-decoration: none;
}

/* Navigazione Sinistra */
.nav-left {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.nav-left .mobile-menu-toggle {
  display: none;
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

/* Navigazione Destra */
.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: nowrap;
}

.nav-right .nav-list {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.nav-right .language-switcher {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-left: var(--spacing-lg);
  flex-wrap: nowrap;
}

.nav {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
  flex-wrap: wrap;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--color-black);
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  text-transform: uppercase;
  font-size: var(--font-size-sm);
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

/* Desktop nav compatto: evita il ritorno a capo */
@media (min-width: 992px) {
  .nav-left,
  .nav-right,
  .nav,
  .nav-list {
    flex-wrap: nowrap;
  }

  .nav-left .nav-list,
  .nav-right .nav-list {
    gap: var(--spacing-sm);
  }

  .nav-link {
    white-space: nowrap;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    padding: var(--spacing-xs) var(--spacing-sm);
  }
}

.nav-link.nav-link-disabled,
.nav-link.nav-link-disabled:visited {
  pointer-events: none;
  cursor: default;
  color: rgba(26, 26, 26, 0.4);
  background-color: transparent !important;
  text-shadow: none !important;
}

.header-over-video .nav-link.nav-link-disabled,
.header-over-video .nav-link.nav-link-disabled:visited {
  color: rgba(255, 255, 255, 0.55);
}

.nav-link.nav-link-disabled::before {
  display: none !important;
}

.nav-link[aria-current="page"] {
  color: var(--color-gold);
  font-weight: 600;
}

.header-over-video .nav-link[aria-current="page"] {
  color: var(--color-gold);
}

.nav-link.nav-link-disabled:hover,
.nav-link.nav-link-disabled:focus {
  background-color: transparent;
  color: rgba(26, 26, 26, 0.4);
}

.header-over-video .nav-link.nav-link-disabled:hover,
.header-over-video .nav-link.nav-link-disabled:focus {
  color: rgba(255, 255, 255, 0.55);
}

.disabled-link {
  display: inline-block;
  color: rgba(26, 26, 26, 0.6);
  text-decoration: underline;
  cursor: default;
  pointer-events: none;
}

/* Link nav quando header è sopra video */
.header-over-video .nav-link {
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
  background-color: var(--color-bg-gray);
  color: var(--color-gold);
}

.header-over-video .nav-link:hover,
.header-over-video .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-gold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.language-switcher {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  margin-left: var(--spacing-md);
}

.lang-link {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
}

.lang-link.active {
  background-color: var(--color-gold);
  color: var(--color-black);
}

.header-over-video .lang-link {
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 600;
}

.header-over-video .lang-link.active {
  background-color: var(--color-gold);
  color: var(--color-black);
  text-shadow: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  width: 44px;
  margin-top: var(--spacing-lg);
  height: 44px;
  position: relative;
  align-self: flex-start;
}

.hamburger-box {
  width: 32px;
  height: 20px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -1.5px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  height: 2.5px;
  background-color: var(--color-black);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.hamburger-inner {
  width: 32px;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  width: 26px;
  top: -8px;
  right: 0;
}

.hamburger-inner::after {
  width: 20px;
  bottom: -8px;
  right: 0;
}

.header-over-video .hamburger-inner,
.header-over-video .hamburger-inner::before,
.header-over-video .hamburger-inner::after {
  background-color: var(--color-white);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* Hamburger menu aperto - linee oro su sfondo bianco */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-inner,
.mobile-menu-toggle[aria-expanded="true"] .hamburger-inner::before,
.mobile-menu-toggle[aria-expanded="true"] .hamburger-inner::after {
  background-color: var(--color-gold);
  box-shadow: none;
}

/* Animazione quando menu è aperto */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-inner {
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

/* ============================================
   Featured Properties Section
   ============================================ */

.featured-properties {
  padding: var(--spacing-5xl) 0;
  background-color: transparent;
}

.container-fluid {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.property-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.property-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 400px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.property-item:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.property-large {
  grid-row: span 2;
  min-height: 600px;
  border-radius: 20px;
}

.property-large:hover {
  transform: none;
}

.property-medium {
  min-height: 290px;
  border-radius: 20px;
}

.property-medium:nth-of-type(2) {
  animation-delay: 0.1s;
}

.property-medium:nth-of-type(3) {
  animation-delay: 0.2s;
}

.property-medium .property-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 30%, transparent 60%);
}

.property-medium:hover .property-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.45) 30%, rgba(0, 0, 0, 0.1) 60%);
}

.property-medium .property-title {
  text-shadow: none;
}

.property-medium .property-description {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.property-medium .property-label {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.8);
}

.property-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Immagini delle card dell'index - occupano tutta la card */
.property-showcase .property-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.property-item:hover .property-image {
  transform: none;
}

.property-large:hover .property-image {
  transform: none;
}

.property-medium:hover .property-image {
  transform: none;
}

.property-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 30%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
  padding-left: var(--spacing-md);
  transition: background 0.3s ease;
}

.property-item:hover .property-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.45) 30%, rgba(0, 0, 0, 0.1) 60%);
}

.property-content {
  color: #FFFFFF !important;
  transform: translateY(1rem);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

.property-item:hover .property-content {
  transform: translateY(1rem);
}

.property-large:hover .property-content {
  transform: translateY(1rem);
}

.property-label {
  display: inline-block;
  width: fit-content;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #D4AF37 !important;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  background-color: rgba(0, 0, 0, 0.75);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  transform: translateX(0);
}

.property-item:hover .property-label {
  transform: translateX(0);
  background-color: rgba(0, 0, 0, 0.85);
}

.property-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--font-size-4xl);
  font-weight: 400;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
  color: #FFFFFF !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.property-description {
  font-size: var(--font-size-md);
  opacity: 0.95;
  margin: 0;
  margin-bottom: var(--spacing-sm);
  color: #FFFFFF !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.property-link {
  display: inline-block;
  width: fit-content;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-md);
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 4px;
  margin: 0;
  transition: all 0.3s ease;
  position: relative;
  transform: translateX(0);
}

.property-link:not(.disabled):hover {
  color: var(--color-gold);
  border-color: var(--color-white);
  transform: translateX(0);
}

.property-link.disabled {
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
  cursor: default;
  pointer-events: none;
}

@media (max-width: 768px) {
  .property-showcase {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-xs);
  }
  
  .property-large {
    grid-row: span 1;
    min-height: 400px;
  }
  
  .property-medium {
    min-height: 350px;
  }
  
  .property-overlay {
    padding: var(--spacing-xl);
  }
  
  .property-title {
    font-size: var(--font-size-2xl);
  }
}

/* ============================================
   Hero Section
   ============================================ */

/* Hero Full-Screen con video */
.hero-fullscreen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-fullscreen.hero-image {
  background: #000;
}

.hero-image-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('immagini/caselusso.webp') center/cover no-repeat;
  z-index: 0;
}

.hero-fullscreen.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: min(55vh, 300px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.55) 55%,
    rgba(0, 0, 0, 0.25) 85%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-fullscreen.hero-image .header-over-video,
.hero-fullscreen.hero-image .hero-container {
  position: relative;
  z-index: 2;
}

.hero-fullscreen.hero-image .header-over-video {
  padding-top: 0;
  padding-bottom: 0;
}

.hero-fullscreen.hero-image .hero-container {
  padding-top: 180px;
  padding-bottom: var(--spacing-3xl);
}

.hero {
  background: linear-gradient(135deg, var(--color-bg-white) 0%, var(--color-bg-light) 100%);
  padding: var(--spacing-4xl) var(--spacing-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Se il video non si carica, mostra uno sfondo di fallback */
.hero:has(.hero-video[networkState="3"]) {
  background: linear-gradient(135deg, var(--color-bg-gray) 0%, var(--color-light-gray) 100%);
}

.hero-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  display: block !important;
}

/* Immagine hero alternativa */
.hero-fullscreen .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  z-index: 0;
}

/* Per hero-fullscreen, il video è assoluto invece di fixed */
.hero-fullscreen .hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Slideshow fallback quando video non disponibile */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: none !important;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Overlay più leggero nella parte superiore per l'header */
.hero-fullscreen .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.05) 10%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-5xl) var(--spacing-lg);
  padding-top: 150px; /* Maggiore spazio per l'header */
  box-sizing: border-box;
  word-wrap: break-word;
  transition: opacity 0.3s ease;
}

.hero-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: calc(var(--spacing-xl) + 8px);
  color: var(--color-white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.3);
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: center;
  text-align: center;
}

.hero-title .hero-title-line {
  white-space: nowrap;
}

.hero-subtitle {
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--font-size-2xl);
  color: var(--color-white);
  margin-bottom: 1.5rem;
  max-width: 100% !important;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  white-space: normal !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  box-sizing: border-box !important;
}

.gold-section-divider {
  width: 100%;
  margin: 0;
  border-top: 1px solid rgba(212, 175, 55, 0.55);
}

/* Rimuove spazio dopo la riga dorata in chisiamo */
.gold-section-divider + #main-content {
  margin-top: 0;
  padding-top: 0;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-xl);
  background-color: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(18px);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 225, 173, 0.95);
  border-radius: 50px;
  font-size: var(--font-size-md);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 26px rgba(212, 175, 55, 0.45);
  max-width: 100% !important;
  word-wrap: break-word !important;
  white-space: normal !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.btn-hero-text,
.btn-hero-arrow {
  color: var(--color-white);
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-hero:hover::before {
  left: 100%;
}

.btn-hero:hover {
  background-color: var(--color-gold);
  color: #141414;
  border-color: var(--color-gold);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.55), 0 13px 34px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.btn-hero:hover .btn-hero-text,
.btn-hero:hover .btn-hero-arrow {
  color: #141414;
}

@media (max-width: 1024px) {
  .hero-subtitle {
    margin-bottom: 2rem;
  }
}

.btn-hero-text {
  position: relative;
  z-index: 1;
}

.btn-hero-arrow {
  font-size: var(--font-size-xl);
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.btn-hero:hover .btn-hero-arrow {
  transform: translateX(5px);
}

/* ============================================
   CTA Contact Section
   ============================================ */

.cta-contact-section {
  background: rgba(8, 12, 20, 0.92);
  padding: 0 var(--spacing-lg) var(--spacing-3xl);
  text-align: center;
  position: relative;
  border-top: 1.5px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(224, 195, 122, 0.5);
  box-shadow: 0 -40px 80px rgba(0, 0, 0, 0.35), 0 25px 80px rgba(0, 0, 0, 0.45);
}

.cta-contact-section .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  width: 100%;
}

.cta-contact-section .grid-4 > .card {
  height: 200px;
  min-height: 200px;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg);
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-contact-section .grid-4 > .cta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.cta-contact-section .grid-4 > .card h3 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem) !important;
  margin: 0 0 var(--spacing-md) 0 !important;
  padding: 0;
  height: 3.5rem;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold) !important;
  font-weight: 700 !important;
  line-height: 1.2;
  text-align: center;
}

.cta-contact-section .grid-4 > .card p {
  font-size: var(--font-size-base) !important;
  font-weight: 600 !important;
  color: #333333 !important;
  margin: 0 !important;
  line-height: 1.4;
  text-align: center;
  width: 100%;
}

.awards-section {
  background-color: #FFFFFF;
  padding: var(--spacing-4xl) 0;
}

.awards-divider {
  display: block;
  width: min(60%, 420px);
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

.awards-divider-top {
  margin-bottom: var(--spacing-2xl);
}

.awards-divider-bottom {
  margin-top: var(--spacing-2xl);
}

.awards-placeholder {
  max-width: 640px;
  margin: var(--spacing-lg) auto 0;
  color: var(--color-dark-gray);
  font-size: var(--font-size-base);
}

.awards-section .section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--color-gold);
  letter-spacing: 0.08em;
  font-size: var(--font-size-5xl);
}

.awards-heading {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  line-height: 1.1;
}

.awards-line {
  display: block;
}

.partners-wrapper {
  margin-top: var(--spacing-2xl);
  text-align: center;
}

.partners-title {
  font-size: var(--font-size-lg);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: var(--spacing-lg);
  font-weight: 600;
}

.partners-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-2xl);
  justify-items: center;
  align-items: start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--spacing-sm);
  width: 100%;
}

.dubai-section {
  background-color: #050910;
  padding: 4rem 3rem 12px 3rem;
  margin: var(--spacing-2xl) auto 0.5rem auto;
  max-width: 1200px;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

/* Rimuove margin-bottom dall'ultimo elemento dentro la card */
.dubai-card > *:last-child,
.dubai-content > *:last-child {
  margin-bottom: 0;
}

.dubai-stack {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
}

.dubai-image {
  flex: 1;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.dubai-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dubai-card {
  flex: 1;
  background: #f7f1e5;
  border-radius: 32px;
  padding: 2.5rem 2.75rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  display: flex;
}

.dubai-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.dubai-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.8);
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-align: left;
}

.dubai-title {
  font-size: 1.8rem;
  line-height: 1.2;
  color: #cfa64b;
  margin: 0 0 0.5rem;
}

.dubai-subtitle {
  color: #333333;
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
}

.dubai-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dubai-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: #161616;
  font-weight: 600;
}

.dubai-check {
  color: #d6aa32;
  margin-top: 3px;
  flex-shrink: 0;
  font-weight: 700;
}

.dubai-card .btn-primary {
  background: #cfa64b;
  color: #000;
  border-radius: 999px;
  padding: 0.9rem 2.4rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  align-self: center;
}

@media (max-width: 1024px) {
  .dubai-section {
    padding: 3rem 1.5rem;
  }

  .dubai-stack {
    gap: 2rem;
  }
}

/* Sezione Dubai – versione mobile compatta */
@media (max-width: 768px) {
  .dubai-section {
    padding: 40px 0 8px 0;
    max-width: 100%;
    margin: 0 auto 0 auto;
  }

  /* Wrapper unico immagine + contenuto */
  .dubai-stack {
    display: block;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    background: transparent;
  }

  /* Immagine in alto - nessun border-radius */
  .dubai-image {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
  }

  

  /* Card beige - nessun border-radius */
  .dubai-card {
    width: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  /* Contenuto beige */
  .dubai-content {
    background: #f7ebd6;
    padding: 22px 22px 26px;
    gap: 0.7rem;
  }

  .dubai-title {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .dubai-label {
    margin-bottom: 1rem;
  }

  .dubai-subtitle {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .dubai-benefits {
    gap: 6px;
    margin: 0.65rem 0 0.9rem;
  }

  .dubai-benefits li {
    margin-bottom: 6px;
    font-size: 0.85rem;
    line-height: 1.35;
    gap: 6px;
  }

  .dubai-card .btn-primary {
    margin-top: 16px;
    margin-inline: auto;
    width: 100%;
    max-width: 260px;
    display: block;
  }
}


.partner-logo-wrapper {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 220px;
  padding: 0 var(--spacing-sm);
}

.partners-panel img,
.partners-logos img,
.partner-item img {
  flex-shrink: 0;
  max-height: 50px;
  max-width: 100%;
  width: auto;
  filter: grayscale(1) invert(1) brightness(1.5) contrast(1.15);
  opacity: 0.97;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo-dark {
  filter: grayscale(1) brightness(1.3) contrast(1.1) !important;
  opacity: 0.95;
}

.partner-location {
  margin: 0;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.partner-location svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}


@media (max-width: 768px) {
  .partners-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 100%;
  }

  .partner-logo-wrapper {
    height: 90px;
  }

  .partner-logo {
    max-height: 60px;
  }
  
  .awards-section {
    padding: var(--spacing-2xl) 0;
  }
  
  .awards-placeholder {
    margin-top: var(--spacing-md);
  }
  
  .awards-section .section-title {
    letter-spacing: 0.05em;
    font-size: var(--font-size-3xl);
    gap: var(--spacing-xs);
  }
  
  .awards-line {
    display: block;
  }
  
  .awards-certificates {
    margin-top: var(--spacing-xl);
  }

  .certificate-frame {
    width: 50%;
    border-radius: 16px;
    padding: var(--spacing-xs);
  }

  .certificate-image {
    width: 100%;
  }

  .hero-fullscreen.hero-image .hero-container {
    padding-top: 180px;
    padding-bottom: var(--spacing-3xl);
  }
}

@media (min-width: 992px) {
  .awards-heading {
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: var(--spacing-sm);
  }
  
  .awards-line {
    display: inline;
  }
}

.cta-final-section {
  position: relative;
  background-color: rgba(6, 9, 14, 0.95);
  padding: 80px 0;
  box-shadow: 0 -30px 70px rgba(0, 0, 0, 0.45);
  margin-top: 12px;
}

.cta-final-section .section-title,
#cta-title {
  color: var(--color-gold);
  margin-bottom: var(--spacing-md);
  margin-top: var(--spacing-sm) !important;
}

@media (min-width: 769px) {
  .cta-final-section .section-title,
  #cta-title {
    margin-top: 1rem !important;
  }
}

.cta-final-section .btn-group {
  margin-top: var(--spacing-xl);
}

.cta-final-intro {
  text-align: center;
  color: #d2d7e2;
  margin-top: 0;
  margin-bottom: 16px;
}

/* Contact Card */
.contact-card {
  max-width: 990px;
  margin: 0 auto;
  background: #f7f1e5;
  border-radius: 32px;
  padding: 48px 56px 40px 56px;
  box-shadow: none;
  border: 2px solid rgba(212, 168, 76, 0.45);
}

.contact-subtitle {
  font-size: var(--font-size-base);
  color: #7a6a4a;
  text-align: center;
  margin: 0 auto var(--spacing-xl);
}

.contact-section-grid {
  gap: var(--spacing-2xl);
  align-items: flex-start;
}

.contact-card .custom-select,
.contact-card .custom-select-toggle {
  width: 100%;
}

.contact-required-note {
  font-size: var(--font-size-sm);
  color: #7a6a4a;
  margin: var(--spacing-sm) 0 0;
}

.contact-info-panel {
  border-radius: 24px;
  border: 2px solid rgba(212, 175, 55, 0.45) !important;
  padding: var(--spacing-3xl) !important;
  box-shadow: none;
}

.contact-map-card {
  border: 2px solid rgba(212, 175, 55, 0.4) !important;
  box-shadow: none !important;
  background-color: #f7f1e5 !important;
}

.contact-info-title {
  margin-bottom: var(--spacing-lg);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-info-row strong {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--font-size-sm);
}

.contact-info-row a,
.contact-info-row p,
.contact-info-row address {
  color: #5a5a5a;
}

.cta-final-form {
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
}

/* Contact Form Grid */
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  margin-top: 32px;
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a4a4a;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group label .required {
  color: #d4a84c;
}

/* Input, Select, Textarea */
.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(212, 168, 76, 0.6);
  padding: 12px 18px;
  color: #1a1a1a;
  font-size: 14px;
  font-family: var(--font-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: 44px;
  box-sizing: border-box;
}

.contact-card textarea {
  height: auto;
  min-height: 140px;
}

.contact-card textarea {
  border-radius: 20px;
  min-height: 140px;
  resize: vertical;
}

.contact-card input::placeholder,
.contact-card textarea::placeholder {
  color: #999999;
}

.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: #d4a84c;
  box-shadow: 0 0 0 2px rgba(212, 168, 76, 0.3);
}

.contact-card input:hover,
.contact-card select:hover,
.contact-card textarea:hover {
  border-color: rgba(212, 168, 76, 0.8);
}

/* Contact Privacy */
.contact-privacy {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 13px;
  color: #4a4a4a;
  margin: 32px 0 24px;
}

.contact-privacy input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: #d4a84c;
  flex-shrink: 0;
}

.contact-privacy label {
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
  color: #4a4a4a;
  margin: 0;
  font-weight: normal;
}

.contact-privacy a {
  color: #d4a84c;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.contact-privacy a:hover {
  color: #d4a84c;
  text-decoration: underline;
}

.contact-privacy .required {
  color: #d4a84c;
}

/* Contact Submit Wrapper */
.contact-submit-wrapper {
  display: flex;
  justify-content: center;
}

.contact-submit-wrapper button {
  width: auto;
  min-width: auto;
}

.cta-final-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-lg);
}

.cta-final-form .form-field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.cta-final-form .form-field-full {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.custom-select-field {
  position: relative;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-gold);
  background-color: var(--color-bg-white);
  color: var(--color-dark-gray);
  font-size: var(--font-size-base);
  font-family: var(--font-primary);
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
  box-shadow: 0 6px 12px rgba(212, 175, 55, 0.08);
}

.custom-select-icon {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--color-gold);
  transition: transform var(--transition-base);
}

.custom-select.open .custom-select-icon {
  transform: rotate(180deg);
}

.custom-select-toggle:focus {
  outline: none;
  border-color: var(--color-gold-dark);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background-color: var(--color-bg-white);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 24px rgba(26, 26, 26, 0.12);
  padding: var(--spacing-xs);
  display: none;
  z-index: 50;
  max-height: 240px;
  overflow-y: auto;
}

.custom-select.open .custom-select-options {
  display: block;
  animation: fadeInSelect var(--transition-base);
}

.contact-custom-option {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-dark-gray);
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.contact-custom-option:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.contact-custom-option[aria-selected="true"],
.contact-custom-option:hover,
.contact-custom-option:focus {
  background-color: rgba(212, 175, 55, 0.12);
  color: var(--color-gold);
}

.custom-select.disabled .custom-select-toggle {
  opacity: 0.6;
  cursor: not-allowed;
}

.custom-select.disabled .custom-select-options {
  display: none !important;
}

.custom-select.open .custom-select-toggle {
  transform: translateY(-1px);
}

@keyframes fadeInSelect {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-final-form .consent-field {
  align-items: flex-start;
}

.cta-final-form .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-dark-gray);
  line-height: var(--line-height-relaxed);
  text-transform: none;
}

.cta-final-form .checkbox-label input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-gold);
}

.cta-final-form .checkbox-label a {
  color: var(--color-gold);
  text-decoration: underline;
}

.cta-final-form .checkbox-label a:hover,
.cta-final-form .checkbox-label a:focus {
  color: var(--color-gold-dark);
}

.form-success-message {
  display: none;
  text-align: center;
  font-size: var(--font-size-base);
  color: var(--color-dark-gray);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin: 0 auto;
  max-width: 480px;
  transition: opacity var(--transition-base), transform var(--transition-base);
  opacity: 0;
  transform: translateY(10px);
}

.form-success-message.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cta-final-form label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-dark-gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cta-final-form input,
.cta-final-form select,
.cta-final-form textarea {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-white);
  color: var(--color-black);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) inset;
}

.cta-final-form input::placeholder,
.cta-final-form textarea::placeholder {
  color: var(--color-gray);
}

.cta-final-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-gold) 50%), linear-gradient(135deg, var(--color-gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 4px), calc(100% - 16px) calc(50% - 4px);
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.cta-final-form input:focus,
.cta-final-form select:focus,
.cta-final-form textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
  outline: none;
}

.cta-final-form textarea {
  min-height: 140px;
  resize: vertical;
}

.cta-final-form .form-submit {
  width: auto;
  max-width: none;
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-base);
}

/* Campo telefono con prefisso e numero */
.contact-card .phone-field {
  display: flex;
  gap: 0;
  align-items: stretch;
  border: 1px solid rgba(212, 168, 76, 0.6);
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.contact-card .phone-field:focus-within {
  border-color: #d4a84c;
  box-shadow: 0 0 0 1px rgba(212, 168, 76, 0.6);
}

.contact-card .phone-field select {
  max-width: 150px;
  min-width: 130px;
  flex-shrink: 0;
  padding: 12px 18px;
  padding-right: calc(18px + 20px);
  border: none;
  border-right: 1px solid rgba(212, 168, 76, 0.3);
  border-radius: 0;
  background-color: #ffffff;
  color: #1a1a1a;
  font-size: 14px;
  height: 44px;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23d4a84c' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-position: calc(100% - 12px) center;
  background-size: 12px 8px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.contact-card .phone-field select:focus {
  outline: none;
  border-right-color: rgba(212, 168, 76, 0.3);
}

.contact-card .phone-field input {
  flex: 1;
  border: none;
  border-radius: 0;
  padding: 12px 18px;
  background-color: #ffffff;
  color: #1a1a1a;
  font-size: 14px;
  height: 44px;
  box-sizing: border-box;
}

.contact-card .phone-field input:focus {
  outline: none;
}

.contact-card .phone-field input::placeholder {
  color: #999999;
}

/* Custom Select dentro Contact Card */
.contact-card .custom-select-toggle {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(212, 168, 76, 0.6);
  border-radius: 8px;
  padding: 12px 18px;
  color: #1a1a1a;
  font-size: 14px;
  height: 44px;
  box-sizing: border-box;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-card .custom-select-toggle:hover {
  border-color: rgba(212, 168, 76, 0.8);
}

.contact-card .custom-select-toggle:focus {
  border-color: #d4a84c;
  box-shadow: 0 0 0 2px rgba(212, 168, 76, 0.3);
}

.contact-card .custom-select-options {
  background-color: #f7f1e5;
  border: 1px solid rgba(212, 168, 76, 0.6);
  border-radius: 8px;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.12);
}

.contact-card .contact-custom-option {
  color: #111111;
  background-color: transparent;
}

.contact-card .contact-custom-option[aria-selected="true"],
.contact-card .contact-custom-option:hover,
.contact-card .contact-custom-option:focus {
  background-color: #e8dfcd;
  color: #111111;
}

@media (max-width: 768px) {
  /* Sezione intera - ridurre padding verticali */
  .cta-final-section {
    margin-top: 8px;
    padding: 40px 0;
  }

  /* Card del form - stringere padding e aumentare larghezza */
  .contact-card {
    max-width: 94vw;
    margin-inline: auto;
    padding: 24px 20px 28px;
    border-radius: 24px;
  }

  .contact-section-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
  
  .contact-side-wrapper {
    order: 2;
  }

  .contact-info-panel {
    padding: var(--spacing-xl) !important;
  }

  .contact-info-title {
    font-size: var(--font-size-lg);
    text-align: center;
  }

  .contact-info-list {
    gap: var(--spacing-sm);
  }

  .contact-section-grid {
    margin-top: var(--spacing-lg);
  }

  .contact-side-wrapper .card:last-child > div {
    height: 220px !important;
  }

  /* Titolo più compatto */
  .cta-final-section .section-title {
    font-size: var(--font-size-2xl);
    line-height: 1.2;
    max-height: calc(1.2em * 3);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-top: 1rem !important;
  }

  /* Sottotitolo più piccolo */
  .cta-final-intro {
    text-align: justify;
    text-align-last: center;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.3;
  }

  /* Spaziatura tra i campi ridotta */
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
  }

  /* Label più piccole */
  .form-group label {
    font-size: 14px;
    margin-bottom: 4px;
  }

  /* Margin-bottom delle form-group */
  .form-group {
    margin-bottom: 16px;
  }

  /* Textarea NOTE */
  .contact-card textarea {
    min-height: 150px;
  }

  /* Checkbox privacy + bottone più vicini */
  .contact-privacy {
    margin: 20px 0 16px;
  }

  .contact-submit-wrapper {
    margin-top: -4px;
  }

  .cta-final-form .form-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .cta-final-form {
    gap: var(--spacing-md);
  }

  .cta-final-form .form-submit {
    width: auto;
    max-width: none;
  }
}

@media (max-width: 480px) {
  /* Sezione intera - ancora più compatta */
  .cta-final-section {
    padding: 32px 0;
  }

  /* Card del form - padding ancora più stringato */
  .contact-card {
    max-width: 94vw;
    padding: 24px 20px 24px;
  }

  /* Spaziatura tra i campi ancora più ridotta */
  .contact-form-grid {
    gap: 12px;
    margin-top: 16px;
  }

  /* Titolo più piccolo */
  .cta-final-section .section-title {
    font-size: var(--font-size-xl);
    line-height: 1.2;
    margin-top: 0.75rem !important;
    max-height: calc(1.2em * 3);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  /* Sottotitolo ancora più piccolo */
  .cta-final-intro {
    font-size: 14px !important;
    margin-bottom: 12px !important;
    line-height: 1.4;
  }

  /* Label ancora più piccole */
  .form-group label {
    font-size: 13px;
  }

  /* Textarea ancora più bassa */
  .contact-card textarea {
    min-height: 90px;
  }

  /* Privacy e bottone ancora più vicini */
  .contact-privacy {
    margin: 16px 0 12px;
  }

  .cta-final-form label {
    letter-spacing: 0.03em;
  }

  .cta-final-form .form-submit {
    width: auto;
    max-width: none;
  }

  .cta-final-form .checkbox-label {
    flex-direction: row;
    font-size: var(--font-size-sm);
  }

  .contact-card .phone-field {
    flex-wrap: nowrap;
  }

  .contact-card .phone-field select {
    max-width: 120px;
    min-width: 100px;
    font-size: 13px;
    padding: 10px 14px;
    padding-right: calc(14px + 18px);
  }

  .contact-card .phone-field input {
    font-size: 13px;
    padding: 10px 14px;
  }
}

/* Layout modulo contatti: form centrato in alto, informazioni centrate sotto */
section[aria-labelledby="form-title"] .contact-section-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3xl);
}

section[aria-labelledby="form-title"] .contact-card {
  order: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

section[aria-labelledby="form-title"] .contact-side-wrapper {
  order: 2;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

section[aria-labelledby="form-title"] .contact-card form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

section[aria-labelledby="form-title"] .contact-card .contact-form-grid {
  flex: 1;
}

section[aria-labelledby="form-title"] .card {
  box-shadow: none !important;
  border: 2px solid rgba(212, 175, 55, 0.4);
  background-color: #f7f1e5;
}

section[aria-labelledby="form-title"] .card:hover {
  transform: none;
  box-shadow: none;
}

.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;
}


.partner-logo-static {
  filter: none !important;
}

.partner-logo-static:hover,
.partner-logo-static:focus {
  filter: none !important;
  transform: translateY(-4px);
}

.cta-contact-section .card {
  height: 200px;
  min-height: 200px;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg);
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .cta-contact-section .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: 0 auto;
  }
  
  .cta-contact-section .grid-4 > .card {
    height: 180px;
    min-height: 180px;
    width: 100%;
    max-width: 100%;
    padding: var(--spacing-md);
    box-sizing: border-box;
    overflow: visible;
  }
  
  .cta-contact-section .grid-4 > .card > * {
    overflow: visible;
  }
  
  .cta-contact-section .grid-4 > .card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem) !important;
    margin: 0 0 var(--spacing-sm) 0 !important;
    padding: 0;
    height: 3rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.1;
  }
  
  .cta-contact-section .grid-4 > .card p {
    font-size: var(--font-size-sm) !important;
    font-weight: 600 !important;
    color: #333333 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  .awards-section {
    padding: var(--spacing-3xl) 0;
  }

  .awards-divider-top {
    margin-bottom: var(--spacing-xl);
  }

  .awards-divider-bottom {
    margin-top: var(--spacing-xl);
  }
  
  .cta-contact-section .card h3 {
    font-size: var(--font-size-3xl) !important;
  }
  
  .cta-contact-section .card p {
    font-size: var(--font-size-sm) !important;
  }
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: 2;
  display: block;
  pointer-events: none;
}

.cta-contact-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-contact-question {
  font-size: var(--font-size-lg);
  color: var(--color-black);
  margin-bottom: var(--spacing-md);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cta-contact-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--font-size-5xl);
  color: var(--color-black);
  margin-bottom: var(--spacing-xl);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.cta-contact-phone {
  display: inline-block;
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--font-size-4xl);
  color: var(--color-black);
  text-decoration: none;
  font-weight: 300;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.cta-contact-phone:hover {
  color: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .cta-contact-section {
    padding: 0 var(--spacing-md) var(--spacing-3xl);
    text-align: center;
  }
  
  .cta-contact-section .section-title {
    text-align: center !important;
    white-space: normal !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-contact-section .container {
    text-align: center;
  }
  
  .hero-wave {
    height: 100px;
  }
  
  .cta-contact-question {
    font-size: var(--font-size-md);
  }
  
  .cta-contact-title {
    font-size: var(--font-size-4xl);
  }
  
  .cta-contact-phone {
    font-size: var(--font-size-2xl);
  }
}

/* ============================================
   Buttons & CTAs
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-primary);
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-black);
  border-color: var(--color-gold);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold-light);
  box-shadow: var(--shadow-gold), 0 4px 12px rgba(212, 168, 76, 0.3);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-gold), 0 2px 6px rgba(212, 168, 76, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-gold);
  color: var(--color-black);
  box-shadow: var(--shadow-gold);
}

.btn-group {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   Container & Grid
   ============================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-4xl) var(--spacing-lg);
}

.section.bg-dark {
  background-color: #0b0b0b;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-sm);
  color: var(--color-gold);
  font-size: 2rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

@media (min-width: 769px) {
  .properties-section .section-title {
    margin-top: calc(var(--spacing-2xl) * -0.75);
  }
}

.section-subtitle {
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--color-dark-gray);
  margin-bottom: var(--spacing-xl);
}

/* ===== PROPRIETÀ ===== */
.properties-section {
  background: #f7f1e5;
  padding: var(--spacing-4xl) var(--spacing-lg);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
  gap: 2rem;
}

/* Paginazione */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-4xl);
  padding: var(--spacing-lg) 0;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-gold);
  color: var(--color-black);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--color-gold);
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: rgba(212, 175, 55, 0.5);
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-number {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-sm);
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.pagination-number:hover {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.pagination-number.active {
  background-color: var(--color-gold);
  color: var(--color-black);
  border-color: var(--color-gold);
  font-weight: 600;
}

.pagination-ellipsis {
  padding: 0 var(--spacing-sm);
  color: var(--color-secondary);
  user-select: none;
}

@media (max-width: 768px) {
  .pagination-container {
    gap: var(--spacing-sm);
    margin-top: var(--spacing-2xl);
  }

  .pagination-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
  }

  .pagination-number {
    min-width: 36px;
    height: 36px;
    font-size: var(--font-size-sm);
  }
}

@supports not (grid-template-columns: subgrid) {
  .properties-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
  
  .property-card {
    flex: 1 1 380px;
    max-width: 480px;
  }
}

.property-card {
  background: #faf8f3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.property-image {
  height: 250px;
  position: relative;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.property-badge.vendita {
  background: linear-gradient(180deg, #8A3544 0%, #6A2733 100%);
  color: #C9A961;
  border: 2px solid #E0C482;
  box-shadow: none;
}

.property-badge.affitto {
  background: linear-gradient(135deg, #0E7490 0%, #0B5E73 100%);
  color: #FFFFFF;
  border: 2px solid #C9A961;
  box-shadow: none;
}

.property-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-content .btn-full {
  margin-top: auto;
  margin-bottom: var(--spacing-md);
}

.property-card .btn-primary {
  background-color: #1A1A1A; /* Very dark grey/black */
  color: #C9A961; /* Golden yellow */
  border: 1px solid #C9A961; /* Thin golden yellow border */
}

.property-card .btn-primary:hover,
.property-card .btn-primary:focus {
  background-color: #2A2A2A; /* Slightly lighter on hover */
  color: #C9A961;
  border-color: #C9A961;
  transform: none;
  box-shadow: none;
}

.property-card .btn-primary i {
  color: #C9A961; /* Golden yellow icon */
}

.property-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #C9A961;
}

.property-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #000000 !important; /* Black */
  text-shadow: none !important;
}

.property-card .property-title {
  color: #000000 !important; /* Black */
  text-shadow: none !important;
}

.property-location {
  color: #64748B; /* Blue-grey */
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.property-location i {
  color: #64748B; /* Blue-grey */
}

.property-detail-header .property-location {
  margin-bottom: 0.25rem;
}

.property-features {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-light-gray);
  border-bottom: 1px solid var(--color-light-gray);
  margin-bottom: 1rem;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.property-detail-info .property-features {
  justify-content: flex-start;
  gap: 1rem;
  margin-left: 0;
  margin-right: auto;
  margin-top: 0.5rem;
  width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  border-bottom: none;
}

.property-detail-info .property-features span {
  white-space: nowrap;
}

.property-features span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #1E293B; /* Dark blue-grey */
  font-size: 0.85rem;
  white-space: nowrap;
}

.property-features i {
  color: #C9A961; /* Golden yellow */
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-dark-gray);
}

.no-results i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* Dispositivi con larghezza 540px, 768px, 820px, 853px - card più strette */
@media (min-width: 540px) and (max-width: 853px) {
  .properties-section .properties-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)) !important;
    max-width: 1000px !important;
    margin: 0 auto;
    justify-items: center;
  }
  
  .properties-section .property-card {
    max-width: 360px !important;
    width: 100%;
    margin: 0 auto;
  }
  
  @supports not (grid-template-columns: subgrid) {
    .properties-section .properties-grid {
      display: flex !important;
      flex-wrap: wrap;
      gap: 1.5rem;
      justify-content: center !important;
      max-width: 1000px !important;
      margin: 0 auto;
    }
    
    .properties-section .property-card {
      flex: 0 1 320px !important;
      max-width: 360px !important;
      width: auto;
      margin: 0 auto;
    }
  }
}

/* Dispositivi larghi esattamente 540px - card centrate */
@media (min-width: 540px) and (max-width: 540px) {
  .properties-section .properties-grid {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    max-width: 100% !important;
  }
  
  .properties-section .property-card {
    max-width: 360px !important;
    width: 100% !important;
    margin: 0 auto 1.5rem auto !important;
  }
}

/* Dispositivi 853x1280 - 2 card per riga */
@media (min-width: 853px) and (max-width: 1280px) {
  .properties-section .properties-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 900px !important;
    margin: 0 auto;
    gap: 2rem;
  }
  
  .properties-section .property-card {
    max-width: 100% !important;
    width: 100%;
  }
  
  @supports not (grid-template-columns: subgrid) {
    .properties-section .properties-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 2rem;
      max-width: 900px !important;
      margin: 0 auto;
    }
    
    .properties-section .property-card {
      max-width: 100% !important;
      width: 100%;
    }
  }
}

@media (max-width: 768px) {
  .properties-section .section-title {
    font-size: 1.75rem;
  }
  
  .properties-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .properties-section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }
  
  .properties-section .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
  
  .property-card {
    max-width: 100%;
    width: 100%;
  }
  
  .property-image {
    height: 220px;
  }
  
  .property-content {
    padding: 1.25rem;
  }
  
  .property-price {
    font-size: 1.5rem;
  }
  
  .property-title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
  }
  
  .property-location {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
  
  .property-features {
    padding: 0.75rem 0;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
  }
  
  .property-features span {
    font-size: 0.8rem;
  }
  
  .property-card .btn-primary {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .properties-section {
    padding: var(--spacing-xl) var(--spacing-sm);
  }
  
  .properties-section .container {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }
  
  .property-image {
    height: 200px;
  }
  
  .property-content {
    padding: 1rem;
  }
  
  .property-price {
    font-size: 1.4rem;
  }
  
  .property-title {
    font-size: 1rem;
  }
  
  .property-location {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }
  
  .property-features {
    padding: 0.6rem 0;
    margin-bottom: 0.6rem;
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  
  .property-features span {
    font-size: 0.75rem;
  }
  
  .property-card .btn-primary {
    padding: 0.65rem 0.875rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .properties-section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .properties-section .container {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }
  
  .property-image {
    height: 180px;
  }
  
  .property-content {
    padding: 0.875rem;
  }
  
  .property-price {
    font-size: 1.3rem;
  }
  
  .property-title {
    font-size: 0.95rem;
  }
  
  .property-features {
    gap: 0.3rem;
  }
  
  .property-features span {
    font-size: 0.7rem;
  }
}

.grid {
  display: grid;
  gap: var(--spacing-xl);
}

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

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

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

/* ============================================
   Cards
   ============================================ */

.card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--color-gold);
}

.card-title {
  color: var(--color-gold);
  margin-bottom: var(--spacing-md);
}

.card-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ============================================
   Forms
   ============================================ */

.form-group {
  margin-bottom: var(--spacing-lg);
}

.filter-native-select {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.filters-custom-select .custom-select-toggle {
  background-color: var(--color-bg-white);
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: var(--color-dark-gray);
  box-shadow: none;
  min-height: 44px;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-sm);
}

.filters-custom-select .custom-select-toggle:hover,
.filters-custom-select .custom-select-toggle:focus {
  border-color: var(--color-gold);
  box-shadow: none;
}

.filters-custom-select .custom-select-options {
  background-color: var(--color-bg-white);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: none;
}

.filters-custom-select .contact-custom-option {
  color: var(--color-dark-gray);
}

.filters-custom-select .contact-custom-option[aria-selected="true"],
.filters-custom-select .contact-custom-option:hover,
.filters-custom-select .contact-custom-option:focus {
  background-color: rgba(212, 175, 55, 0.16);
  color: var(--color-gold);
}

.filters-custom-select .custom-select-icon {
  border-top-color: var(--color-gold);
}

.filters-section {
  padding: var(--spacing-2xl) var(--spacing-lg) !important;
  background-color: #f7f1e5 !important;
}

.filters-section h2 {
  font-size: var(--font-size-3xl) !important;
  margin-bottom: var(--spacing-lg) !important;
  color: var(--color-gold) !important;
}

.filters-section .form-group {
  position: relative;
  margin-bottom: var(--spacing-md);
}

.filters-section .form-group .custom-select,
.filters-section .form-group .form-input {
  width: 100%;
}

.filters-section .custom-number-input {
  width: 100%;
  position: relative;
}

.filters-section .custom-number-input .form-input {
  appearance: none;
  -moz-appearance: textfield;

  background-color: var(--color-bg-white);
  color: var(--color-dark-gray);
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 999px;
  box-shadow: none;
  padding: var(--spacing-xs) var(--spacing-md);
  min-height: 44px;
  font-size: var(--font-size-sm);
}

.filters-section .custom-number-input .form-input::-webkit-outer-spin-button,
.filters-section .custom-number-input .form-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  color: var(--color-black);
  font-weight: 500;
}

.section.bg-dark .form-label {
  color: rgba(140, 140, 140, 0.9);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-xs);
  line-height: 1.2;
}

.filters-section .form-label {
  font-size: var(--font-size-xs);
  margin-bottom: var(--spacing-xs);
}
.section.bg-dark .form-input {
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-white);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-md);
  min-height: 44px;
  box-shadow: none;
  font-size: var(--font-size-sm);
}

.filters-section .form-input {
  background-color: var(--color-bg-white);
  color: var(--color-dark-gray);
  border: 1px solid rgba(212, 175, 55, 0.6);
  box-shadow: none;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 999px;
  min-height: 44px;
  font-size: var(--font-size-sm);
}

.filters-section .form-input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.filters-section .form-input:focus {
  border-color: var(--color-gold);
  box-shadow: none;
}

.section.bg-dark .form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.section.bg-dark .form-input:focus {
  border-color: var(--color-gold);
}

/* Filtri compatti - gap ridotto */
.filters-section .grid {
  gap: var(--spacing-md);
}

.filters-section .grid-3 {
  gap: var(--spacing-md);
}

.filters-section [style*="margin-top"] {
  margin-top: var(--spacing-md) !important;
}

.filters-section [style*="gap"] {
  gap: var(--spacing-md) !important;
}

.filters-section #reset-filters {
  margin-top: var(--spacing-lg) !important;
  padding: var(--spacing-sm) var(--spacing-xl);
  font-size: var(--font-size-base);
}

/* Dispositivi larghi 820px - Tipo di Proprietà e Ospiti affiancati */
@media (min-width: 820px) and (max-width: 820px) {
  /* Prima riga: Località, Tipologia (2 colonne) */
  .filters-section .grid.grid-3:first-of-type {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Seconda riga: Periodo Prezzo, Prezzo, Tipo di Proprietà, Ospiti (4 colonne) */
  .filters-section .grid.grid-3:last-of-type {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--spacing-md);
  }
  
  /* Tipo di Proprietà e Ospiti affiancati (terza e quarta colonna) */
  .filters-section .grid.grid-3:last-of-type .form-group:has(#filter-property-type),
  .filters-section .grid.grid-3:last-of-type .form-group:has(#filter-guests) {
    grid-column: auto;
  }
}

/* Dispositivi larghi 882px - Tipo di Proprietà affianco a Ospiti */
@media (min-width: 882px) and (max-width: 882px) {
  /* Prima riga: Località, Tipologia (2 colonne) */
  .filters-section .grid.grid-3:first-of-type {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Seconda riga: Periodo Prezzo, Prezzo, Tipo di Proprietà, Ospiti (4 colonne) */
  .filters-section .grid.grid-3:last-of-type {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--spacing-md);
  }
  
  /* Tipo di Proprietà e Ospiti affiancati (terza e quarta colonna) */
  .filters-section .grid.grid-3:last-of-type .form-group:has(#filter-property-type),
  .filters-section .grid.grid-3:last-of-type .form-group:has(#filter-guests) {
    grid-column: auto;
  }
}

/* Dispositivi larghi 1366px - Ospiti affianco a Tipologia */
@media (min-width: 1366px) and (max-width: 1366px) {
  /* Prima riga: Località, Tipologia, Ospiti (3 colonne) */
  .filters-section .grid.grid-3:first-of-type {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  /* Seconda riga: Periodo Prezzo, Prezzo, Tipo di Proprietà (3 colonne) */
  .filters-section .grid.grid-3:last-of-type {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-md);
  }
}

/* Desktop - Layout con Tipo di Proprietà affianco a Tipologia e Ospiti affianco a Prezzo */
@media (min-width: 769px) {
  /* Prima riga: Località, Tipologia, Tipo di Proprietà (3 colonne) */
  .filters-section .grid.grid-3:first-of-type {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  /* Seconda riga: Periodo Prezzo, Prezzo, Ospiti (3 colonne) */
  .filters-section .grid.grid-3:last-of-type {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Filtri compatti su mobile */
@media (max-width: 768px) {
  .filters-section {
    padding: var(--spacing-lg) var(--spacing-md) !important;
  }
  
  .filters-section h2 {
    font-size: var(--font-size-2xl) !important;
    margin-bottom: var(--spacing-md) !important;
  }
  
  .filters-section .form-group {
    margin-bottom: var(--spacing-sm) !important;
  }
  
  .filters-section .form-label {
    font-size: var(--font-size-xs) !important;
    margin-bottom: var(--spacing-xs) !important;
    line-height: 1.2;
  }
  
  .filters-section .filters-custom-select .custom-select-toggle {
    min-height: 44px !important;
    padding: var(--spacing-xs) var(--spacing-md) !important;
    font-size: var(--font-size-sm) !important;
  }
  
  .filters-section .form-input {
    min-height: 44px !important;
    padding: var(--spacing-xs) var(--spacing-md) !important;
    font-size: var(--font-size-sm) !important;
  }
  
  .filters-section .grid {
    gap: var(--spacing-sm) !important;
  }
  
  .filters-section .grid-3 {
    gap: var(--spacing-sm) !important;
  }
  
  .filters-section [style*="margin-top"] {
    margin-top: var(--spacing-sm) !important;
  }
  
  .filters-section [style*="gap"] {
    gap: var(--spacing-sm) !important;
  }
  
  .filters-section #reset-filters {
    margin-top: var(--spacing-md) !important;
    padding: var(--spacing-sm) var(--spacing-xl) !important;
    font-size: var(--font-size-base) !important;
  }
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-md);
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-md);
  color: var(--color-black);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-gold);
}

.form-checkbox label {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   Cookie Banner
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg-white);
  border-top: 2px solid var(--color-gold);
  padding: var(--spacing-lg);
  z-index: var(--z-cookie-banner);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-banner-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 250px;
}

.cookie-banner-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.cookie-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg-white);
  border-top: 2px solid var(--color-gold);
  padding: var(--spacing-xl);
  z-index: var(--z-cookie-banner);
  max-height: 80vh;
  overflow-y: auto;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-panel.active {
  display: block;
}

.cookie-category {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background-color: var(--color-bg-gray);
  border-radius: var(--radius-md);
}

.cookie-category-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.cookie-category-title h3 {
  color: var(--color-black);
}

.cookie-category-title p {
  color: var(--color-gray);
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  background-color: var(--color-light-gray);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-base);
  border: 1px solid var(--color-light-gray);
}

.cookie-toggle.active {
  background-color: var(--color-gold);
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--color-white);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform var(--transition-base);
}

.cookie-toggle.active::after {
  transform: translateX(24px);
}

/* ============================================
   Contact Info Section
   ============================================ */

.contact-info-section {
  background-color: var(--color-white);
  padding: var(--spacing-xl) var(--spacing-lg);
  border-top: 1px solid var(--color-light-gray);
  margin-top: var(--spacing-4xl);
}

.contact-info-container {
  max-width: 1280px;
  margin: 0 auto;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: start;
}

.contact-info-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 var(--spacing-lg);
  border-right: 1px solid var(--color-light-gray);
}

.contact-info-item:last-child {
  border-right: none;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-gray);
  border-radius: var(--border-radius-sm);
  color: var(--color-gold);
  text-decoration: none;
  transition: all var(--transition-base);
}

.contact-info-icon:hover,
.contact-info-icon:focus {
  background-color: var(--color-gold);
  color: var(--color-white);
  transform: scale(1.1);
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}


@media (max-width: 768px) {
  .contact-info-section {
    padding: var(--spacing-lg) var(--spacing-md);
    margin-top: var(--spacing-2xl);
  }
  
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  
  .contact-info-item {
    justify-content: center;
    align-items: center;
    padding: 0 var(--spacing-xs);
    border-right: 1px solid var(--color-light-gray);
    border-bottom: none;
  }
  
  .contact-info-item:last-child {
    border-right: none;
  }
  
  .contact-info-icon {
    width: 36px;
    height: 36px;
  }
  
  .contact-info-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background-color: #050811;
  border-top: 1.5px solid #d4af37;
  padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
  margin-top: 0;
  box-shadow: 0 -40px 80px rgba(0, 0, 0, 0.5), 0 -1px 3px rgba(212, 175, 55, 0.25);
  color: var(--color-white);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  align-items: start;
}

.footer-brand-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  margin-top: calc(var(--spacing-sm) * -1);
}

.footer-logo {
  max-height: 46px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.footer-brand-title {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  color: var(--color-gold);
  font-size: var(--font-size-base);
}

.footer-brand-description {
  max-width: 280px;
  line-height: var(--line-height-relaxed);
  color: #d2d7e2 !important;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: var(--spacing-sm);
}

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-base);
}

.footer-link:hover,
.footer-link:focus {
  color: var(--color-gold);
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-social .footer-section-title {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-lg);
  color: var(--color-gold);
  text-align: left;
  width: 100%;
}

.footer-social-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: var(--spacing-md);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.footer-social-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: var(--font-size-base);
  transition: color var(--transition-base), transform var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.footer-social-link svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
}

.footer-social-link:hover,
.footer-social-link:focus {
  color: var(--color-gold);
}

.footer-social-link:hover svg,
.footer-social-link:focus svg {
  transform: scale(1.1);
}

.footer-social-legal {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--spacing-xl);
}

.footer-legal-separator {
  width: 1px;
  height: 100%;
  background-color: var(--color-light-gray);
  margin: var(--spacing-md) 0;
  min-height: 60px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-legal .footer-section-title {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-xl);
  color: var(--color-gold);
}

.footer-legal-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-lg);
  line-height: 1.6;
}

.footer-legal-link {
  color: #d2d7e2;
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-base);
}

.footer-legal-link:hover,
.footer-legal-link:focus {
  color: var(--color-gold);
}

.footer-legal-separator-inline {
  color: var(--color-light-gray);
  margin: 0 var(--spacing-xs);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(212, 175, 55, 0.4);
  color: #d2d7e2;
  font-size: var(--font-size-sm);
}

.footer-bottom p {
  color: #d2d7e2 !important;
}

.footer-credits {
  margin-top: var(--spacing-md);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.bewpot-logo {
  height: 16px;
  width: auto;
  vertical-align: middle;
}

.bewpot-text {
  font-family: 'Dune Rise', sans-serif;
  font-weight: 400;
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.bewpot-text:hover,
.bewpot-text:focus {
  opacity: 0.8;
}

.bewpot-blue {
  color: #1a4a6b;
}

.bewpot-gold {
  color: var(--color-gold);
}

/* ============================================
   Utility Classes
   ============================================ */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    text-align: left;
  }

  .footer-brand-header {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-top: calc(var(--spacing-xl) * -1);
  }

  .footer-logo {
    max-height: 36px;
  }

  .footer-brand-title {
    font-size: var(--font-size-base);
  }

  .footer-brand-description {
    max-width: 100%;
  }

  .footer-social-legal {
    margin-top: calc(var(--spacing-lg) * -1);
  }

  .footer-social {
    text-align: left;
    margin-left: 0;
  }

  .footer-social .footer-section-title {
    font-size: var(--font-size-xl);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
  }

  .footer-social-list {
    gap: var(--spacing-md);
    flex-direction: row;
  }

  .footer-social-link {
    width: 40px;
    height: 40px;
  }

  .footer-social-link svg {
    width: 28px;
    height: 28px;
  }

  .footer-social-legal {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .footer-legal-separator {
    width: 100%;
    height: 1px;
    min-height: 1px;
    margin: var(--spacing-sm) 0;
  }

  .footer-legal .footer-section-title {
    font-size: var(--font-size-xl);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
  }

  .footer-legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }

  .footer-legal-separator-inline {
    display: none;
  }
}

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--color-gold);
}

.bg-dark {
  background-color: var(--color-bg-gray);
}

.section.bg-dark {
  background-color: #0b0b0b !important;
}

#cta-title {
  color: var(--color-gold);
}

section[aria-labelledby="cta-title"],
.section.bg-dark[aria-labelledby="cta-title"] {
  border-top: 1px solid var(--color-gold) !important;
  box-shadow: 0 -1px 0 0 var(--color-gold) !important;
  margin-top: 0 !important;
  padding: 4rem 1rem 3.5rem !important;
  position: relative;
  text-align: center;
}

/* Assicura che il bordo sia visibile sopra la sezione CTA */
.properties-section + section[aria-labelledby="cta-title"],
.properties-section + .section.bg-dark[aria-labelledby="cta-title"] {
  border-top: 1px solid var(--color-gold) !important;
  box-shadow: 0 -1px 0 0 var(--color-gold) !important;
}

/* Max-width al paragrafo per evitare che diventi troppo lungo */
section[aria-labelledby="cta-title"] p,
.section.bg-dark[aria-labelledby="cta-title"] p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #e4e4e4 !important;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.hidden {
  display: none;
}

.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;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1366px) {
  .hero-title {
    font-size: var(--font-size-5xl);
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-xl) !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
  }
  
  .btn-hero {
    font-size: var(--font-size-base) !important;
    padding: var(--spacing-sm) var(--spacing-xl) !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }
  
  .btn-hero-arrow {
    font-size: var(--font-size-lg) !important;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Menu hamburger per tablet e mobile */
  .header-container {
    position: relative;
    padding-top: 0;
    padding-bottom: var(--spacing-md);
    min-height: 80px;
  }
  
  .nav-left .mobile-menu-toggle {
    display: flex;
    position: absolute;
    left: var(--spacing-md);
    top: var(--spacing-md);
    z-index: 200;
  }
  
  .logo-center {
    position: absolute;
    left: 50%;
    top: var(--spacing-md);
    transform: translateX(-50%);
    z-index: 100;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    min-width: fit-content;
    box-sizing: border-box;
  }
  
  .header-over-video .logo-center {
    padding: var(--spacing-sm) var(--spacing-md) !important;
  }
  
  .nav-left .mobile-menu-toggle {
    padding: var(--spacing-sm);
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
  }
  
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: block;
  }
  
  .nav-right {
    display: none !important;
  }
  
  .language-switcher {
    display: none !important;
  }
  
  .nav-left .nav-list {
    display: none;
  }
  
  .nav-left.active .nav-list {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 248, 243, 0.98) 100%);
    backdrop-filter: blur(20px);
    padding: 90px var(--spacing-xl) var(--spacing-2xl);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    animation: fadeIn 0.3s ease;
    list-style: none;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .nav-left.active .nav-list li {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* Il li delle lingue deve mantenere le lingue in riga */
  .nav-left.active .nav-list li.mobile-lang-switcher {
    flex-direction: row !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .nav-left .nav-list .nav-link {
    font-size: var(--font-size-lg);
    color: var(--color-gold);
    font-weight: 600;
    text-transform: none;
    font-style: normal;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.15);
    display: block;
    text-align: center;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .nav-left .nav-list .nav-link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
  }
  
  .nav-left .nav-list .nav-link:hover {
    color: var(--color-gold) !important;
    background-color: rgba(212, 175, 55, 0.08) !important;
    text-shadow: 0 2px 6px rgba(212, 175, 55, 0.25) !important;
    transform: translateY(-2px);
  }
  
  .nav-left .nav-list .nav-link:hover::before {
    width: 50%;
  }
  
  .mobile-lang-switcher {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-lg);
    width: auto;
    max-width: 200px;
    margin: 0 auto var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--color-gold);
    position: relative;
  }
  
  .mobile-lang-switcher::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.5;
  }
  
  .lang-link-mobile {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 500;
    text-shadow: none !important;
    transition: all 0.3s ease;
    padding: var(--spacing-xs);
    border-radius: 4px;
  }
  
  .lang-link-mobile.active {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.3) !important;
    background-color: rgba(212, 175, 55, 0.1);
  }
  
  .lang-link-mobile:hover {
    background-color: rgba(212, 175, 55, 0.08);
  }
  
  .lang-separator {
    color: var(--color-gold);
    opacity: 0.4;
    font-weight: 300;
    font-size: var(--font-size-base);
  }
  
  .mobile-menu-toggle[aria-expanded="true"] {
    position: fixed;
    z-index: 10000;
  }
}

@media (max-width: 768px) {
  .header-container {
    grid-template-columns: auto 1fr auto;
    gap: var(--spacing-md);
  }
  
  .mobile-menu-toggle {
    display: block;
    order: 1;
  }
  
  .logo-center {
    order: 2;
    justify-self: center;
  }
  
  .logo-image {
    max-height: 60px;
  }
  
  .header-over-video .logo-image {
    max-height: 70px;
  }
  
  .header-over-video .logo-center {
    padding: var(--spacing-sm) var(--spacing-md) !important;
    border: 2px solid var(--color-gold);
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    min-width: fit-content;
    box-sizing: border-box;
  }
  
  .logo-center {
    padding: var(--spacing-sm) var(--spacing-md) !important;
    min-width: fit-content;
    box-sizing: border-box;
  }
  
  .nav-left .mobile-menu-toggle {
    padding: var(--spacing-sm);
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
  }
  
  .language-switcher {
    order: 3;
    margin-left: 0;
  }
  
  .nav-left {
    display: flex !important;
    position: static;
  }
  
  .nav-left .nav-list {
    display: none;
  }
  
  .nav-left.active .nav-list {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 248, 243, 0.98) 100%);
    backdrop-filter: blur(10px);
    padding: 80px var(--spacing-md) var(--spacing-2xl);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    animation: fadeIn 0.3s ease;
    list-style: none;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  body.mobile-menu-open .hero-fullscreen .hero-container {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  body.mobile-menu-open .hero-fullscreen .hero-container * {
    pointer-events: none;
  }
  
  .nav-left.active .nav-list li {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* Il li delle lingue deve mantenere le lingue in riga */
  .nav-left.active .nav-list li.mobile-lang-switcher {
    flex-direction: row !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  .nav-left .nav-list .nav-link {
    font-size: var(--font-size-lg);
    color: var(--color-gold);
    font-weight: 600;
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    text-transform: none;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.15);
    display: block;
    border-radius: 8px;
    position: relative;
  }
  
  .nav-left .nav-list .nav-link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
  }
  
  .nav-left .nav-list .nav-link:hover {
    color: var(--color-gold) !important;
    background-color: rgba(212, 175, 55, 0.08) !important;
    border-bottom-color: transparent;
    text-shadow: 0 2px 6px rgba(212, 175, 55, 0.25) !important;
    transform: translateY(-2px);
  }
  
  .nav-left .nav-list .nav-link:hover::before {
    width: 50%;
  }
  
  .mobile-lang-switcher {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin: 0 auto var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--color-gold);
    width: auto;
    max-width: 200px;
    position: relative;
  }
  
  .mobile-lang-switcher::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.5;
  }
  
  .lang-link-mobile {
    font-size: var(--font-size-base) !important;
    padding: var(--spacing-xs) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    transition: all 0.3s ease;
    border-radius: 4px;
  }
  
  .lang-link-mobile.active {
    color: var(--color-gold) !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.3) !important;
    background-color: rgba(212, 175, 55, 0.1);
  }
  
  .lang-link-mobile:hover {
    background-color: rgba(212, 175, 55, 0.08) !important;
  }
  
  .lang-separator {
    color: var(--color-gold);
    font-size: var(--font-size-base);
    opacity: 0.4;
    font-weight: 300;
  }
  
  .nav-right {
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    position: static;
  }
  
  .nav-right .nav-list {
    display: none;
  }
  
  .nav-right.active .nav-list {
    display: none;
  }
  
  .hero-fullscreen {
    min-height: 90vh;
  }
  
  .hero-fullscreen .hero-container {
    padding-top: 100px;
  }
  
  .hero {
    min-height: 70vh;
    padding: var(--spacing-2xl) var(--spacing-md);
  }
  
  .hero-title {
    font-size: 3.5rem; /* Leggermente più piccolo per tablet */
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base) !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  
  .btn-hero {
    font-size: var(--font-size-sm) !important;
    padding: var(--spacing-xs) var(--spacing-md) !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }
  
  .hero-fullscreen .hero-container {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }
}

/* Orientamento orizzontale - menu in colonna senza scroll orizzontale */
@media (orientation: landscape) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }
  
  /* Assicura che titolo, sottotitolo e pulsante vadano sempre a capo */
  .hero-title {
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
  }
  
  .hero-subtitle {
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
  }
  
  .btn-hero {
    word-wrap: break-word !important;
    white-space: normal !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }
  
  .hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: var(--spacing-md) !important;
    padding-right: var(--spacing-md) !important;
  }
  
  .nav-left.active .nav-list {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md) !important;
    gap: var(--spacing-xs) !important;
    justify-content: flex-start !important;
  }
  
  .nav-left.active .nav-list li {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }
  
  /* Il li delle lingue deve mantenere le lingue in riga */
  .nav-left.active .nav-list li.mobile-lang-switcher {
    flex-direction: row !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: var(--spacing-sm) !important;
  }
  
  .nav-left .nav-list .nav-link {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    font-size: var(--font-size-base) !important;
    padding: var(--spacing-xs) var(--spacing-sm) !important;
  }
  
  .mobile-lang-switcher {
    flex-direction: row !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 200px !important;
    box-sizing: border-box !important;
    gap: var(--spacing-xs) !important;
    margin: 0 auto var(--spacing-sm) !important;
    padding-bottom: var(--spacing-sm) !important;
  }
  
  .lang-link-mobile {
    font-size: var(--font-size-sm) !important;
    padding: var(--spacing-xs) var(--spacing-xs) !important;
  }
  
  .lang-separator {
    font-size: var(--font-size-sm) !important;
    margin: 0 var(--spacing-xs) !important;
  }
  
  .hero-fullscreen {
    overflow-x: hidden !important;
  }
  
  .hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}

@media (orientation: landscape) and (min-width: 1024px) {
  .nav-left .mobile-lang-switcher {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero-fullscreen {
    min-height: 80vh;
  }
  
  .hero-fullscreen .hero-container {
    padding-top: 200px;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    padding-bottom: 120px;
  }
  
  .btn-hero {
    margin-bottom: var(--spacing-xl);
  }
  
  .cta-contact-section {
    padding-top: 0;
  }
  
  .cta-contact-section .section-title {
    text-align: center !important;
    white-space: normal !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-contact-section .container {
    text-align: center;
  }
  
  .hero {
    min-height: 60vh;
    padding: var(--spacing-2xl) var(--spacing-md);
  }
  
  .hero-title {
    font-size: 2rem !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base) !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  
  .btn-hero {
    word-wrap: break-word !important;
    white-space: normal !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }
  
  /* Logo più piccolo e centrato su mobile */
  .logo-image {
    max-height: 50px;
  }
  
  .header-over-video .logo-image {
    max-height: 50px;
  }
  
  .header {
    overflow: visible;
    padding-top: 0;
    padding-bottom: var(--spacing-md);
  }
  
  .header-over-video {
    overflow: visible;
  }
  
  .header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: var(--spacing-md);
    margin-top: 0;
    overflow: visible;
  }
  
  .logo-center {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--spacing-sm) var(--spacing-md) !important;
    min-width: fit-content;
    box-sizing: border-box;
  }
  
  .header-over-video .logo-center {
    padding: var(--spacing-sm) var(--spacing-md) !important;
  }
  
  .nav-left .mobile-menu-toggle {
    display: flex;
    padding: var(--spacing-sm);
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
  }
  
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    left: var(--spacing-md);
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }
  
  .mobile-menu-toggle[aria-expanded="true"] {
    position: fixed;
  }
  
  .language-switcher {
    display: none !important;
  }
  
  .section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }
  
  .btn {
    width: 100%;
    padding: var(--spacing-md);
  }
  
  .btn-group {
    flex-direction: column;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .header,
  .footer,
  .cookie-banner,
  .cookie-panel,
  .btn {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

.footer-mobile-break {
  display: inline;
}

@media (max-width: 768px) {
  .footer-mobile-break {
    display: block;
  }
}

.header.sticky-active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.header-over-video::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: clamp(140px, 24vh, 240px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.2) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}


.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-md);
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-md);
  color: var(--color-black);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-gold);
}

.form-checkbox label {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.filters-section .form-input {
  background-color: var(--color-bg-white) !important;
  color: var(--color-dark-gray) !important;
  border: 1px solid rgba(212, 175, 55, 0.6) !important;
  box-shadow: none !important;
  padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-md) !important;
  border-radius: var(--radius-md) !important;
}

.filters-section .form-input::placeholder {
  color: rgba(0, 0, 0, 0.45) !important;
}

.filters-section .form-input:focus {
  border-color: var(--color-gold) !important;
  box-shadow: none !important;
}

.filters-section .custom-number-input .form-input {
  background-color: var(--color-bg-white) !important;
  color: var(--color-dark-gray) !important;
  border: 1px solid rgba(212, 175, 55, 0.6) !important;
  border-radius: var(--radius-md) !important;
}

.btn-hero.btn-disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.65;
}

.btn-hero-text,
.btn-hero-arrow {
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.btn-hero:hover .btn-hero-arrow {
  transform: translateX(5px);
}

.btn-hero.btn-disabled:hover::before,
.btn-hero.btn-disabled:hover {
  left: -100%;
  transform: none;
  background-color: rgba(26, 26, 26, 0.85);
  border-color: rgba(212, 175, 55, 0.6);
}

/* Top Bar Wrapper */
.top-bar-wrapper {
  position: relative;
  z-index: 100;
  background-color: #ffffff;
}

.top-bar-wrapper.top-bar-dark {
  background-color: #000000;
}

.top-bar-wrapper.top-bar-dark .top-bar {
  background-color: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.top-bar-wrapper.top-bar-dark .top-bar .top-bar-label,
.top-bar-wrapper.top-bar-dark .top-bar .top-bar-link,
.top-bar-wrapper.top-bar-dark .top-bar .top-bar-separator,
.top-bar-wrapper.top-bar-dark .top-bar .top-bar-contact {
  color: #ffffff;
}

.top-bar-wrapper.top-bar-dark .top-bar .top-bar-link:hover,
.top-bar-wrapper.top-bar-dark .top-bar .top-bar-link:focus {
  color: #ffffff;
}

.top-bar-wrapper.top-bar-dark .top-bar .top-bar-link-active {
  color: #ffffff;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 2px;
}

/* Top Bar */
.top-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: var(--spacing-xs) 0;
  position: relative;
}

/* Top Bar nera su desktop */
@media (min-width: 769px) {
  .top-bar-wrapper {
    background-color: #000000;
  }
  
  .top-bar {
    background-color: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .top-bar-label,
  .top-bar-link,
  .top-bar-separator,
  .top-bar-contact {
    color: #ffffff;
  }
  
  .top-bar-link:hover {
    color: #ffffff;
  }
  
  .top-bar-link-active {
    color: var(--color-gold);
  }
  
  .top-bar-contact:hover {
    color: #ffffff;
  }
}

/* Top Bar su hero fullscreen - quando il wrapper è prima del hero */
.top-bar-wrapper:has(+ .hero-fullscreen),
.top-bar-wrapper:has(+ section.hero-fullscreen) {
  background-color: rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 200;
}

.top-bar-wrapper:has(+ .hero-fullscreen) .top-bar,
.top-bar-wrapper:has(+ section.hero-fullscreen) .top-bar {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.top-bar-wrapper:has(+ .hero-fullscreen) .top-bar .top-bar-link,
.top-bar-wrapper:has(+ .hero-fullscreen) .top-bar .top-bar-label,
.top-bar-wrapper:has(+ .hero-fullscreen) .top-bar .top-bar-separator,
.top-bar-wrapper:has(+ .hero-fullscreen) .top-bar .top-bar-contact,
.top-bar-wrapper:has(+ section.hero-fullscreen) .top-bar .top-bar-link,
.top-bar-wrapper:has(+ section.hero-fullscreen) .top-bar .top-bar-label,
.top-bar-wrapper:has(+ section.hero-fullscreen) .top-bar .top-bar-separator,
.top-bar-wrapper:has(+ section.hero-fullscreen) .top-bar .top-bar-contact {
  color: #ffffff;
}

.top-bar-wrapper:has(+ .hero-fullscreen) .top-bar .top-bar-link-active,
.top-bar-wrapper:has(+ section.hero-fullscreen) .top-bar .top-bar-link-active {
  color: #ffffff;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 2px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.top-bar-label {
  font-size: var(--font-size-sm);
  color: var(--color-dark-gray);
  font-weight: 500;
}

.top-bar-languages {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.top-bar-link {
  font-size: var(--font-size-sm);
  color: var(--color-dark-gray);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 400;
}

.top-bar-link:hover {
  color: var(--color-primary);
}

.top-bar-link-active {
  font-weight: 600;
  color: var(--color-primary);
}

.top-bar-separator {
  color: var(--color-dark-gray);
  opacity: 0.3;
  font-size: var(--font-size-sm);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--color-dark-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-bar-contact:hover {
  color: var(--color-primary);
}

.top-bar-contact svg {
  flex-shrink: 0;
  color: currentColor;
}

.top-bar-contact span {
  white-space: nowrap;
}

/* Responsive Top Bar */
@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: row;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-md);
    justify-content: space-between;
  }
  
  .top-bar-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
  }
  
  .top-bar-label {
    display: none;
  }
  
  .top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
  }
  
  .top-bar-contact span {
    display: none;
  }
  
  .top-bar-contact svg {
    width: 18px;
    height: 18px;
  }
}

/* Header positioning quando c'è la top bar */
.header {
  position: relative;
}

.header-over-video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
}

.hero-fullscreen .header-over-video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
}

/* Centra gli elementi li del menu mobile su schermi con altezza 600px */
@media (max-height: 600px) {
  .nav-left.active .nav-list {
    justify-content: center !important;
    align-items: center !important;
  }

  .btn-hero {
    display: none;
  }
}

/* Centra gli elementi li del menu mobile su schermi con altezza 800px */
@media (max-height: 800px) {
  .nav-left.active .nav-list {
    justify-content: center !important;
    align-items: center !important;
  }
}

/* ============================================
   Property Modal
   ============================================ */

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.modal-content {
  background-color: #faf8f3;
  margin: auto;
  border-radius: 16px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
}

#modalBody {
  overflow-y: auto;
  flex: 1;
}

#investimentoModalBody {
  overflow-y: auto;
  max-height: 90vh;
  padding: 0;
}

#modalBody::-webkit-scrollbar,
#investimentoModalBody::-webkit-scrollbar {
  width: 10px;
}

#modalBody::-webkit-scrollbar-track,
#investimentoModalBody::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 5px;
  margin: var(--spacing-xs) 0;
}

#modalBody::-webkit-scrollbar-thumb,
#investimentoModalBody::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 5px;
  border: 2px solid #f0f0f0;
}

#modalBody::-webkit-scrollbar-thumb:hover,
#investimentoModalBody::-webkit-scrollbar-thumb:hover {
  background: #b8941f;
}

.modal-close {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
  background: var(--color-white);
  transform: scale(1.1);
}

.property-detail .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
}

/* Property Detail Modal Content */
.property-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  position: relative;
}

.property-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: var(--spacing-xl);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.main-image .property-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  width: fit-content;
}

.carousel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.carousel-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  flex: 1;
  scrollbar-width: auto;
  scrollbar-color: var(--color-gold) var(--color-light-gray);
  padding-bottom: 12px;
  width: 100%;
  max-width: 100%;
  min-height: 88px;
}

.carousel-track::-webkit-scrollbar {
  height: 8px;
  -webkit-appearance: none;
}

.carousel-track::-webkit-scrollbar-track {
  background: var(--color-light-gray);
  border-radius: 4px;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.1);
}

.carousel-track::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

.carousel-track::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-dark);
}

/* Forza la scrollbar ad essere sempre visibile su mobile */
@media (max-width: 768px) {
  .carousel-track {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
  }
  
  .carousel-track::-webkit-scrollbar {
    height: 8px;
    display: block;
  }
}

.carousel-slide {
  min-width: 80px;
  width: 80px;
  max-width: 80px;
  height: 80px;
  flex-shrink: 0;
  flex-grow: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  border: 2px solid transparent;
}

.carousel-slide:hover {
  opacity: 1;
}

.carousel-slide.active {
  opacity: 1;
  border-color: var(--color-gold);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-black);
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.property-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.property-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.property-detail-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 0.5rem;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

.property-detail-header .modal-close {
  display: none;
}

.property-code {
  font-size: 0.875rem;
  color: var(--color-gray);
}

.property-code code {
  background: var(--color-bg-gray);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  color: var(--color-gold);
  font-weight: 600;
}

.property-detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  margin: 4rem 0 0 0;
  padding-top: 0.5rem;
}

.map-plan-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  position: relative;
  flex-shrink: 0;
}

.services-dropdown-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.icon-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.5rem;
  background: var(--color-bg-white);
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-gold);
  font-size: 0.7rem;
  flex: 1;
  min-width: 0;
}

.icon-button:hover {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.icon-button i {
  color: var(--color-gold);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.icon-button:hover i {
  color: var(--color-white);
}

.icon-button span {
  color: var(--color-gold);
  transition: color 0.3s ease;
}

.icon-button:hover span {
  color: var(--color-white);
}

.services-dropdown {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: var(--color-bg-white);
  border: 1px solid var(--color-light-gray);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  width: 100%;
  min-width: 0;
}

.services-dropdown-content {
  padding: 1rem;
}

.amenity-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--color-black);
}

.amenity-dropdown-item i {
  color: var(--color-gold);
}

.property-detail-section {
  margin-top: 1.5rem;
}

.property-full-width {
  grid-column: 1 / -1;
}

.property-description-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.property-description-section h3 i {
  color: var(--color-gold);
}

.property-description-section {
  padding: var(--spacing-md);
  background-color: #fafafa;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.property-description-section p {
  color: #2a2a2a;
  line-height: 1.8;
  text-align: justify;
  font-size: var(--font-size-base);
  margin: 0;
  padding-right: var(--spacing-xs);
}

.property-contact-cta {
  background: #faf8f3;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.contact-cta-content {
  text-align: center;
}

.contact-cta-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-cta-content h3 i {
  color: var(--color-gold);
}

.contact-cta-content p {
  color: var(--color-gray);
  margin-bottom: 1.5rem;
}

.contact-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-cta-buttons .btn-primary {
  background-color: #D4AF37;
  color: var(--color-white);
  border: none;
}

.contact-cta-buttons .btn-primary:hover {
  background-color: #C9A961;
  color: var(--color-white);
}

.btn-whatsapp {
  background: #4A5568;
  color: var(--color-white);
  border: none;
}

.btn-whatsapp:hover {
  background: #2D3748;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal {
    padding: var(--spacing-md);
  }

  .modal-content {
    max-height: calc(100vh - 2rem);
    border-radius: 16px;
  }

  .property-detail {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.5rem;
  }

  .main-image {
    height: 250px;
  }

  .property-detail .modal-close {
    right: 0.1rem;
    top: 0.55rem;
  }

  .property-detail-header h2 {
    font-size: 1.5rem;
  }

  .property-detail-price {
    font-size: 1.5rem;
  }

  .contact-cta-buttons {
    flex-direction: column;
  }

  .contact-cta-buttons .btn {
    width: 100%;
  }
}

/* ========================= CHI SIAMO PAGE ========================= */

/* Hero per Chi Siamo */
.chisiamo-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
}

.chisiamo-hero .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.chisiamo-hero.hero-image .header-over-video,
.chisiamo-hero.hero-image .hero-container {
  position: relative;
  z-index: 2;
}

.chisiamo-hero.hero-image .header-over-video {
  padding-top: 0;
  padding-bottom: 0;
}

.chisiamo-hero .hero-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding-top: 150px;
  padding-bottom: var(--spacing-xl);
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.chisiamo-hero .gold-section-divider {
  width: 100%;
  margin: 0;
  border-top: 1px solid rgba(212, 175, 55, 0.55);
  position: relative;
  z-index: 2;
}

.hero-fullscreen .hero-title {
  color: var(--color-white);
}

#proprietari-title {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#proposta-title {
  white-space: normal;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  text-align: center;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 768px) {
  #proposta-title {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
    line-height: 1.3;
  }
}

@media (min-width: 769px) {
  #proposta-title {
    white-space: normal;
    font-size: clamp(1.8rem, 2.8vw, 2.2rem);
    margin-top: calc(var(--spacing-xl) * -1) !important;
  }
}

/* Bordo dorato fisso per le card nella sezione "Perché Affidarti a Noi" */
section[aria-labelledby="proposta-title"] .card {
  border: 2px solid var(--color-gold) !important;
  background-color: #faf8f3 !important; /* Panna più chiaro */
}

/* Miglioramenti sezione "Perché Affidarti a Noi" */
section[aria-labelledby="proposta-title"] #proposta-title {
  margin-bottom: var(--spacing-2xl) !important;
}

section[aria-labelledby="proposta-title"] .grid.grid-2 {
  margin-top: var(--spacing-lg);
  gap: var(--spacing-xl);
}

/* Allineamento a sinistra per titoli e testi delle card */
section[aria-labelledby="proposta-title"] .card-title {
  text-align: left !important;
  margin-bottom: var(--spacing-md);
}

section[aria-labelledby="proposta-title"] .card p {
  text-align: left !important;
  color: #2a2a2a !important; /* Grigio scuro per buon contrasto con panna */
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  section[aria-labelledby="proposta-title"] .card {
    padding: var(--spacing-md) !important;
  }
  
  section[aria-labelledby="proposta-title"] .card-title {
    font-size: var(--font-size-lg) !important;
    margin-bottom: var(--spacing-sm);
  }
  
  section[aria-labelledby="proposta-title"] .card p {
    font-size: var(--font-size-sm) !important;
    line-height: 1.5;
  }
  
  section[aria-labelledby="proposta-title"] .grid.grid-2 {
    gap: var(--spacing-md);
  }
}

.chisiamo-hero .hero-title {
  letter-spacing: 0.015em;
}

.chisiamo-hero .hero-title .hero-title-line {
  display: block;
  white-space: normal;
}

/* Desktop: mostra RF Global Property & Investments su una riga */
@media (min-width: 769px) {
  .chisiamo-hero .hero-title .hero-title-line:nth-child(2)::after {
    content: " ";
  }
  
  .chisiamo-hero .hero-title-amp {
    display: inline;
    margin: 0 0.2em;
  }
  
  .chisiamo-hero .hero-title .hero-title-line:nth-child(4)::before {
    content: " ";
  }
}

.hero-fullscreen .hero-subtitle {
  color: #d2d7e2;
  font-size: var(--font-size-lg);
  line-height: 1.6;
}

/* Rimuove la fascia nera dopo la riga dorata in chisiamo */
.gold-section-divider {
  background-color: #f7f1e5;
}

.gold-section-divider + #main-content,
.gold-section-divider + main {
  background-color: #f7f1e5;
  padding-top: 0;
  margin-top: 0;
}

#main-content {
  background-color: #f7f1e5;
  padding-top: 0;
  margin-top: 0;
}

/* Background nero per main in investimenti.html */
.invest-why-section ~ *,
.invest-why-section,
.invest-opportunities-section,
.invest-process-section,
.invest-cta-section {
  background-color: #0b0b0b !important;
}

/* Assicura che il main-content in investimenti.html sia nero */
body:has(.invest-why-section) #main-content {
  background-color: #0b0b0b;
}

/* Sezione L'ideatore */
.founder-section {
  background-color: #f7f1e5;
  padding-top: 3rem;
  padding-bottom: 4rem;
  margin-top: 0;
}

.founder-label {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--spacing-3xl);
  color: #e5d8b8;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-3xl);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.founder-image-wrapper {
  position: relative;
}

.founder-image {
  width: 100%;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.founder-content {
  color: #1a1a1a;
}

.founder-name {
  font-size: 40px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 12px;
}

.founder-role {
  font-size: 18px;
  color: #b58c3a;
  font-weight: 500;
  margin-bottom: 24px;
}

.founder-bio p {
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: var(--spacing-md);
}

@media (max-width: 768px) {
  .founder-bio p {
    line-height: 1.7;
  }
}

.founder-signature {
  font-style: italic;
  font-size: 0.95rem;
  color: #6b6b6b;
  margin-top: 1.5rem;
  margin-bottom: 0 !important;
  text-align: right;
}

/* Sezione Certificazione */
.certification-section {
  background-color: rgba(6, 9, 14, 0.95);
  padding: var(--spacing-3xl) 0 var(--spacing-4xl);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.certification-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--spacing-3xl);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  margin-top: var(--spacing-2xl);
}

.certification-content {
  color: #d2d7e2;
  padding-right: var(--spacing-md);
}

.certification-intro {
  color: #d2d7e2;
}

.certification-content p {
  font-size: var(--font-size-base);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.certification-list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-lg) 0;
}

.certification-list li {
  padding-left: var(--spacing-lg);
  position: relative;
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-base);
  line-height: 1.7;
}

.certification-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: 1.5em;
  line-height: 1;
}

.certification-details {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  font-size: var(--font-size-sm);
}

.certification-details p {
  margin-bottom: var(--spacing-xs);
  color: #d2d7e2;
}

.certification-card {
  background-color: #f7f1e5;
  border-radius: 32px;
  padding: var(--spacing-xl);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 168, 76, 0.25);
  text-align: center;
  max-width: 420px;
  margin-left: auto;
}

.certificate-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: var(--spacing-md);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.certificate-image:hover {
  transform: scale(1.05);
}

.certificate-link {
  color: #e8d08a;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-base);
  display: inline-block;
  transition: color 0.2s ease;
  margin-top: var(--spacing-sm);
}

.certificate-link:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

/* Sezione Valori (usa stili esistenti cta-card) */

/* Sezione Come Lavoriamo */
.values-section {
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-3xl);
}

.values-section .section-title {
  margin-bottom: var(--spacing-2xl);
}

.values-section .cta-card {
  background-color: #f7f1e5 !important;
  border: 1px solid rgba(212, 168, 76, 0.3);
  transition: all var(--transition-base);
}

.values-section .cta-card h3 {
  margin-bottom: 1rem;
}

.values-section .cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.workflow-section {
  background-color: rgba(6, 9, 14, 0.95);
  padding: calc(var(--spacing-4xl) - var(--spacing-2xl)) 0 var(--spacing-4xl);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.workflow-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: var(--spacing-3xl) auto 0;
  position: relative;
}

/* Linea che connette i cerchi (solo desktop) */
@media (min-width: 769px) {
  .workflow-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.6), rgba(212, 175, 55, 0.4));
    z-index: 0;
  }
}

.workflow-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.workflow-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #f7f1e5;
  color: #b58c3a;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  position: relative;
  z-index: 2;
}

.workflow-step-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-gold);
  margin-top: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.workflow-step p {
  color: #d2d7e2;
  font-size: var(--font-size-base);
  line-height: 1.6;
}

/* Sezione CTA Chi Siamo */
.cta-chisiamo-section {
  background-color: rgba(6, 9, 14, 0.95);
  padding: var(--spacing-4xl) 0;
}

.cta-chisiamo-intro {
  color: #d2d7e2;
  font-size: var(--font-size-lg);
  max-width: 700px;
  margin: var(--spacing-md) auto var(--spacing-2xl);
  line-height: 1.6;
}

/* Responsive Chi Siamo */
@media (max-width: 768px) {
  .hero-fullscreen .hero-container {
    padding: 120px var(--spacing-md) var(--spacing-2xl);
  }

  .chisiamo-hero .hero-container {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }

  /* Titolo hero su mobile - permette wrapping per titoli lunghi */
  .hero-title .hero-title-line {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
  }

  .chisiamo-hero .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    max-width: 100%;
  }

  .chisiamo-hero .hero-title .hero-title-line {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
  }

  .chisiamo-hero .hero-title-amp {
    display: block;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .founder-section {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }

  .founder-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .founder-content {
    text-align: left;
    margin-top: var(--spacing-2xl);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .founder-bio {
    padding-left: 0;
    padding-right: 0;
  }
  
  .founder-name {
    font-size: 2rem;
    line-height: 1.1;
  }

  .founder-label {
    font-size: 13px;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
  }

  .founder-name {
    font-size: 32px;
  }

  .founder-role {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .certification-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .certification-content {
    order: 1;
    padding-right: 0;
    margin-bottom: var(--spacing-xl);
  }
  
  .certification-card {
    order: 2;
    text-align: center;
    margin: 0 auto;
    margin-top: 2rem;
    max-width: 100%;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }
  
  .certificate-image {
    margin-bottom: var(--spacing-md);
  }
  
  .certificate-link {
    display: block;
    margin-top: var(--spacing-md);
    text-align: center;
  }
  
  .values-section .grid-4 {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }
  
  #workflow-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .workflow-section {
    padding-bottom: 40px;
  }
  
  .workflow-timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .workflow-timeline::before {
    display: none;
  }

  .workflow-step {
    text-align: center;
    padding-left: 0;
    padding-top: 0;
    margin-bottom: 2rem;
  }

  .workflow-number {
    position: relative;
    left: auto;
    top: auto;
    width: 60px;
    height: 60px;
    font-size: var(--font-size-2xl);
    margin: 0 auto 0.75rem;
  }

  .workflow-step-title {
    margin-top: 0;
  }
  
  .cta-chisiamo-section {
    padding-top: 40px;
    margin-top: 0;
  }
  
  #cta-chisiamo-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .cta-chisiamo-section .btn-primary {
    margin-top: 1.75rem;
  }
}

/* ========================= PAGINA INVESTIMENTI ========================= */

/* Sezione: Perché investire con noi */
.invest-why-section {
  background-color: #0b0b0b;
  padding: var(--spacing-5xl) 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  margin-bottom: 0;
}

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

#invest-why-title {
  position: relative;
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  margin-top: var(--spacing-3xl);
}

#invest-why-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background-color: var(--color-gold);
  opacity: 0.6;
}

.invest-why-grid {
  margin-top: var(--spacing-lg);
  gap: 3rem;
  align-items: start;
}

@media (min-width: 769px) {
  .invest-why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.invest-why-card {
  background-color: transparent;
  border: none;
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-xl);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.invest-why-card:nth-child(1) {
  animation-delay: 0.1s;
}

.invest-why-card:nth-child(2) {
  animation-delay: 0.2s;
}

.invest-why-card:nth-child(3) {
  animation-delay: 0.3s;
}

.invest-icon-wrapper {
  margin-bottom: var(--spacing-xl);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.invest-icon {
  color: #f7f1e5;
  stroke: #f7f1e5;
  width: 58px;
  height: 58px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.invest-why-card:hover .invest-icon-wrapper {
  transform: translateY(-4px);
}

.invest-why-card:hover .invest-icon {
  opacity: 1;
  color: #f4d03f;
  stroke: #f4d03f;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.4));
}

.invest-why-card-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

.invest-why-card-text {
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--font-size-base);
  color: #d2d7e2;
  line-height: 1.7;
  max-width: 100%;
  margin: 0 auto;
  margin-top: 0.875rem;
  flex: 1;
}

@media (min-width: 769px) {
  .invest-why-card-text {
    max-width: 270px;
  }
}

@media (max-width: 768px) {
  .invest-why-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    justify-items: center;
  }

  .invest-why-card {
    max-width: 100%;
    text-align: center;
  }

  .invest-why-card-text {
    max-width: 100%;
  }
}

/* Sezione: Le nostre opportunità */
.invest-opportunities-section {
  background-color: #0b0b0b;
  padding: var(--spacing-5xl) 0;
  padding-top: calc(var(--spacing-5xl) + var(--spacing-3xl));
  margin-top: 0;
  margin-bottom: 0;
}

#section-invest-opportunities {
  background-color: #f7f1e5 !important;
  margin-top: var(--spacing-4xl);
  padding-top: calc(var(--spacing-5xl) + var(--spacing-4xl));
  padding-bottom: calc(var(--spacing-5xl) + var(--spacing-2xl));
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

#invest-opportunities-title {
  margin-top: var(--spacing-3xl);
}

/* Rimuovi qualsiasi gap tra le sezioni invest */
.invest-why-section + .invest-opportunities-section {
  margin-top: 0;
  padding-top: calc(var(--spacing-5xl) + var(--spacing-3xl));
}

.invest-opportunities-grid {
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-3xl);
  gap: var(--spacing-xl);
}

.invest-opportunity-card {
  background-color: #f5f0e8;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.invest-opportunity-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.invest-opportunity-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: rgba(212, 175, 55, 0.1);
}

@media (min-width: 769px) {
  .invest-opportunity-image {
    height: 160px;
  }
}

.invest-opportunity-content {
  padding: var(--spacing-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.invest-opportunity-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.02em;
}

.invest-opportunity-text {
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--font-size-base);
  color: #4a4a4a;
  line-height: 1.6;
  flex: 1;
}

/* Sezione: Come funziona l'investimento */
.invest-process-section {
  background-color: #0b0b0b;
  padding: var(--spacing-5xl) 0;
  margin-top: 0;
  margin-bottom: 0;
}

#invest-process-title {
  margin-top: var(--spacing-2xl);
}

.invest-process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-3xl);
  margin-top: var(--spacing-4xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.invest-process-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  z-index: 0;
}

.invest-process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.invest-process-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(212, 175, 55, 0.1);
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: #f7f1e5;
}

.invest-process-step-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.02em;
}

.invest-process-step-text {
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--font-size-base);
  color: #d2d7e2;
  line-height: 1.7;
}

/* Sezione: Performance & Track Record */
.invest-performance-section {
  background-color: rgba(6, 9, 14, 0.98);
  padding: var(--spacing-5xl) 0;
}

.invest-performance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-3xl);
  margin-top: var(--spacing-4xl);
  margin-bottom: var(--spacing-4xl);
}

.invest-performance-metric {
  text-align: center;
  padding: var(--spacing-xl);
}

.invest-performance-value {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.invest-performance-label {
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--font-size-base);
  color: #d2d7e2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.invest-performance-chart {
  margin-top: var(--spacing-4xl);
  padding: var(--spacing-2xl);
  background-color: rgba(18, 18, 18, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
}

.invest-chart-placeholder {
  width: 100%;
  height: 200px;
}

/* Sezione: CTA Finale */
.invest-cta-section {
  background-color: #f7f1e5; /* Oro molto tenue / beige sabbia */
  padding: var(--spacing-5xl) 0;
  margin-top: var(--spacing-4xl);
}

#section-invest-cta {
  background-color: #f7f1e5 !important;
  box-shadow: none !important;
  filter: none !important;
  border-top: 3px solid rgba(212, 175, 55, 0.5);
}

#section-invest-cta .container {
  box-shadow: none !important;
  filter: none !important;
}

#section-invest-cta * {
  box-shadow: none !important;
  text-shadow: none !important;
}

.invest-cta-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--color-gold);
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-lg);
  line-height: 1.3;
  letter-spacing: 0.02em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.invest-cta-subtitle {
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--font-size-xl);
  color: #2a2a2a; /* Nero leggermente più chiaro */
  margin-bottom: var(--spacing-3xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.btn-invest-cta {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-2xl);
  background-color: var(--color-gold);
  color: var(--color-black);
  border: 2px solid var(--color-gold);
  border-radius: 8px;
  font-size: var(--font-size-base);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Times New Roman', Times, serif;
  margin-bottom: var(--spacing-xl);
  box-shadow: none !important;
}

.btn-invest-cta:hover {
  background-color: var(--color-gold);
  color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: none !important;
  opacity: 0.9;
}

/* Responsive Investimenti */
@media (max-width: 768px) {
  #invest-why-title {
    white-space: nowrap;
    font-size: clamp(1.4rem, 5.5vw, 1.8rem);
  }

  #invest-why-title::after {
    width: 80px;
  }

  .invest-why-section {
    animation-duration: 0.6s;
  }

  .invest-why-card {
    animation-duration: 0.6s;
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .invest-icon {
    width: 52px;
    height: 52px;
  }

  .invest-why-grid,
  .invest-opportunities-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    justify-items: center;
  }

  .invest-why-card {
    max-width: 100%;
    text-align: center;
  }

  .invest-why-card-text {
    max-width: 100%;
  }

  .invest-process-steps {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .invest-process-steps::before {
    display: none;
  }

  .invest-performance-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .invest-cta-section {
    padding: var(--spacing-2xl) var(--spacing-md) !important;
    margin-top: var(--spacing-2xl) !important;
  }

  #section-invest-cta {
    padding: var(--spacing-2xl) var(--spacing-md) !important;
  }

  .invest-cta-title {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    margin-top: var(--spacing-lg) !important;
    margin-bottom: var(--spacing-sm);
  }

  .invest-cta-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
  }

  .btn-invest-cta {
    padding: var(--spacing-xs) var(--spacing-xl);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
  }

/* Carousel Investimenti Attivi */
.investimenti-pagination-status {
  font-weight: 500;
  color: var(--color-gray);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  align-items: center;
  justify-content: center;
  margin-top: var(--spacing-lg);
  text-align: center;
}

.investimenti-page-status-text {
  font-size: 0.85rem;
  color: #B8C5D1;
}

.investimenti-page-buttons {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.investimenti-page-btn {
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  font-size: 0.9rem;
}

.investimenti-page-btn:hover:not(.is-disabled):not(:disabled) {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.1);
}

.investimenti-page-btn.is-disabled,
.investimenti-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Stili per card investimenti uniformi */
.investimenti-attivi-grid {
  align-items: stretch;
}

.investimento-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  width: 100%;
  max-width: 100%;
}

.investimento-image {
  flex-shrink: 0;
  height: 250px;
  min-height: 250px;
}

.investimento-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.investimento-content .view-investimento-btn {
  margin-top: auto;
}

@media (max-width: 992px) {
  .investimenti-attivi-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Sezione Investimenti Attivi - Mobile: 1 card alla volta */
@media (max-width: 768px) {
  .investimenti-attivi-grid {
    grid-template-columns: 1fr !important;
    justify-items: center;
  }
  
  .investimento-card {
    max-width: 100%;
    width: 100%;
  }
}

/* Sezione Investimenti Attivi - Mobile più compatta */
@media (max-width: 640px) {
  .investimenti-attivi-section {
    padding-top: var(--spacing-xl) !important;
    padding-bottom: var(--spacing-xl) !important;
  }

  #investimenti-attivi-title {
    margin-bottom: var(--spacing-md) !important;
  }

  .investimenti-attivi-section .section-subtitle {
    margin-bottom: var(--spacing-lg) !important;
    font-size: var(--font-size-sm) !important;
  }

  .investimenti-attivi-grid {
    gap: var(--spacing-md) !important;
  }

  .investimento-card {
    margin-bottom: 0 !important;
  }

  .investimento-image {
    height: 180px !important;
    min-height: 180px !important;
  }

  .investimento-content {
    padding: var(--spacing-md) !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
  }
  
  .investimento-content .view-investimento-btn {
    margin-top: auto !important;
  }

  .investimento-name {
    font-size: var(--font-size-lg) !important;
    margin-bottom: var(--spacing-xs) !important;
  }

  .investimento-badge {
    top: var(--spacing-sm) !important;
    right: var(--spacing-sm) !important;
    padding: 4px var(--spacing-xs) !important;
    font-size: 0.65rem !important;
  }
}

/* Guide Rapide Section */
.guide-rapide-section {
  background-color: #0b0b0b;
  padding: var(--spacing-5xl) 0;
  margin: calc(var(--spacing-6xl) + var(--spacing-lg)) 0 var(--spacing-4xl);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.guide-rapide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-2xl);
  max-width: 1400px;
  margin: var(--spacing-2xl) auto var(--spacing-2xl);
}

.guide-card {
  background-color: #f7f1e5;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: var(--spacing-2xl);
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12);
}

.guide-card:hover {
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
  transform: translateY(-4px);
}

.guide-card-icon {
  color: var(--color-gold);
  margin-bottom: var(--spacing-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.guide-card:hover .guide-card-icon {
  color: #f4d03f;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.4));
}

.guide-card-title {
  font-family: 'Times New Roman', Times, serif;
  color: var(--color-gold);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.guide-card-preview {
  color: #4a4a4a;
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.guide-card-explanation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(247, 241, 229, 0.97);
  border: 1px solid rgba(212, 175, 55, 0.7);
  border-radius: 12px;
  padding: var(--spacing-2xl);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  overflow-y: auto;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.guide-card:hover .guide-card-explanation {
  opacity: 1;
  visibility: visible;
}

.guide-card-explanation p {
  color: #1f1f1f;
  font-size: var(--font-size-base);
  line-height: 1.7;
  margin: 0;
}

.guide-card-explanation strong {
  color: var(--color-gold);
  font-weight: 600;
}

@media (max-width: 768px) {
  .guide-rapide-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) auto var(--spacing-xl);
  }
  
  .guide-card {
    min-height: 240px;
    padding: var(--spacing-lg);
  }
  
  .guide-card-title {
    font-size: var(--font-size-lg);
  }

  .guide-card-preview {
    font-size: var(--font-size-sm);
  }

  .guide-card-explanation p {
    font-size: var(--font-size-sm);
    line-height: 1.6;
  }
}

#process-title {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-top: calc(var(--spacing-3xl) * -1) !important;
}

/* Sfondo panna più chiaro per la sezione "Il Nostro Processo" */
section[aria-labelledby="process-title"] {
  background-color: #faf8f3 !important;
}

#process-title .process-title-line-1,
#process-title .process-title-line-2 {
  display: block;
  line-height: 1.2;
}

#process-title .process-title-line-1 {
  margin-top: var(--spacing-lg);
  margin-bottom: 0.2em;
  border-bottom: none !important;
}

@media (min-width: 769px) {
  #process-title {
    white-space: nowrap;
  }
  
  #process-title .process-title-line-1,
  #process-title .process-title-line-2 {
    display: inline;
  }
  
  #process-title .process-title-line-1::after {
    content: " ";
  }
}

@media (max-width: 768px) {
  #process-title {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem);
    line-height: 1.3;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  #process-title .process-title-line-1,
  #process-title .process-title-line-2 {
    display: block;
  }
  
  /* Step più compatti su mobile */
  section[aria-labelledby="process-title"] ol li {
    margin-bottom: var(--spacing-lg) !important;
    gap: var(--spacing-md) !important;
  }
  
  section[aria-labelledby="process-title"] ol li > div:first-child {
    width: 50px !important;
    height: 50px !important;
    font-size: var(--font-size-xl) !important;
  }
  
  section[aria-labelledby="process-title"] ol li h3 {
    font-size: var(--font-size-lg) !important;
    margin-bottom: var(--spacing-xs) !important;
  }
  
  section[aria-labelledby="process-title"] ol li p {
    font-size: var(--font-size-sm) !important;
    line-height: 1.5;
  }
}

/* ============================================
   ROI Calculator Section
   ============================================ */

/* Card visive per form e risultati */
.roi-form-card,
.roi-results-card {
  background: #fffaf0 !important;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
  padding: 24px !important;
}

.roi-form-card .card-title,
.roi-results-card .card-title {
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-lg);
  color: var(--color-gold);
}

/* Etichette del form - stile uniforme */
.roi-form-label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #8a6b2b;
  margin-bottom: 6px;
  font-weight: 500;
}

/* Campi input */
.roi-form-input {
  width: 100%;
  border: 1px solid #e2d4b8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  background-color: #ffffff;
  color: #2a2a2a;
  transition: all 0.3s ease;
}

.roi-form-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
  outline: none;
}

.roi-form-input:hover {
  border-color: #d4af37;
}

/* Bottone Calcola ROI */
.roi-calculate-btn {
  width: 100%;
  margin-top: var(--spacing-md);
}

/* Testo placeholder risultati */
.roi-results-content {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.roi-placeholder-text {
  text-align: center;
  color: #6a6a6a;
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

#servizi-principali-title {
  margin-top: calc(var(--spacing-xl) * -1.5);
  margin-bottom: var(--spacing-2xl);
}

#servizi-why-title {
  margin-top: calc(var(--spacing-lg) * -1.2);
}

#testimonials-title {
  margin-top: calc(var(--spacing-xl) * -1.1);
  margin-bottom: var(--spacing-xl);
}

@media (min-width: 769px) {
  #form-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
  }
}

/* Layout mobile */
@media (max-width: 768px) {
  .roi-calculator-grid {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-lg) !important;
  }
  
  .roi-form-card,
  .roi-results-card {
    padding: 24px !important;
  }
  
  .roi-form-label {
    font-size: 13px;
  }
  
  .roi-form-input {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .roi-results-content {
    min-height: 150px;
  }
  
  .roi-placeholder-text {
    font-size: var(--font-size-sm);
  }

  #servizi-principali-title {
    margin-top: calc(var(--spacing-2xl) * -1) !important;
    margin-bottom: var(--spacing-xl) !important;
  }

  #servizi-why-title {
    margin-top: calc(var(--spacing-xl) * -1) !important;
  }

  #testimonials-title {
    margin-top: calc(var(--spacing-xl) * -1.1) !important;
    margin-bottom: var(--spacing-xl) !important;
  }
}

/* ============================================
   CTA Section - Proprietari
   ============================================ */

/* CTA finale proprietari - miglioramenti */
section[aria-labelledby="cta-title"].bg-dark {
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  padding-top: var(--spacing-4xl) !important;
  padding-bottom: var(--spacing-4xl) !important;
}

section[aria-labelledby="cta-title"] .container {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

section[aria-labelledby="cta-title"] #cta-title {
  margin-bottom: var(--spacing-2xl) !important;
}

section[aria-labelledby="cta-title"] p {
  margin-bottom: var(--spacing-2xl) !important;
  font-size: var(--font-size-lg) !important;
  line-height: 1.6;
}

section[aria-labelledby="cta-title"] .btn {
  margin-top: var(--spacing-md);
}

/* Mobile - leggibilità testo bianco */
@media (max-width: 768px) {
  section[aria-labelledby="cta-title"].bg-dark {
    padding-top: var(--spacing-3xl) !important;
    padding-bottom: var(--spacing-3xl) !important;
  }
  
  section[aria-labelledby="cta-title"] #cta-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
    margin-bottom: var(--spacing-xl) !important;
  }
  
  section[aria-labelledby="cta-title"] p {
    font-size: var(--font-size-base) !important;
    margin-bottom: var(--spacing-xl) !important;
    line-height: 1.7;
  }
  
  section[aria-labelledby="cta-title"] .btn {
    font-size: var(--font-size-base) !important;
    padding: var(--spacing-md) var(--spacing-xl) !important;
  }
}

/* ============================================
   SERVIZI PAGE STYLES
   ============================================ */

/* Sezione Servizi Principali */
.servizi-section {
  padding: var(--spacing-4xl) 0 var(--spacing-3xl);
  background-color: #0b0b0b;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.servizio-card {
  background-color: #f7f1e5;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: var(--spacing-xl);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.servizio-card:hover {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
  transform: translateY(-5px);
}

.servizio-icon {
  color: var(--color-gold);
  margin-bottom: var(--spacing-md);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.servizio-card:hover .servizio-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.servizio-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.servizio-description {
  color: #4a4a4a;
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: 0;
}

/* Sezione Testimonianze */
.testimonials-section {
  padding: var(--spacing-3xl) 0 var(--spacing-2xl);
  background-color: #f7f1e5;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin: var(--spacing-md) auto 0;
  width: 95%;
  max-width: 1100px;
}

.testimonial-card {
  background-color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  padding: var(--spacing-lg);
  padding-top: calc(var(--spacing-lg) + var(--spacing-md));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  min-height: 200px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: testimonialsFadeUp 0.8s ease forwards;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-md);
  font-size: 3rem;
  font-family: 'Times New Roman', Times, serif;
  color: rgba(212, 175, 55, 0.25);
  pointer-events: none;
}

.testimonial-quote {
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: #2a2a2a;
  margin: 0;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.author-role {
  font-size: var(--font-size-sm);
  color: #5a5a5a;
}

.testimonial-card:nth-child(2) {
  animation-delay: 0.15s;
}

.testimonial-card:nth-child(3) {
  animation-delay: 0.3s;
}

.testimonials-section .container {
  padding: 0 var(--spacing-xl);
}

/* Sezione CTA Finale */
.servizi-cta-section {
  padding: var(--spacing-5xl) 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(11, 11, 11, 0.95) 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

@media (min-width: 769px) {
  #servizi-cta-title {
    margin-top: var(--spacing-2xl);
  }
  
  .servizi-cta-btn {
    margin-bottom: var(--spacing-2xl);
  }
}

.servizi-cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-2xl);
}

.servizi-cta-btn {
  background-color: #1a1a1a;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  padding: var(--spacing-md) var(--spacing-3xl);
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-family: 'Times New Roman', Times, serif;
  text-transform: none;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

.servizi-cta-btn:hover {
  background-color: var(--color-gold);
  color: #1a1a1a;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

/* Responsive Servizi */
@media (max-width: 768px) {
  .servizi-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
  }
  
  .servizi-section {
    padding-bottom: var(--spacing-2xl);
  }
  
  .testimonials-section {
    padding: var(--spacing-3xl) 0;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
  }
  
  .testimonial-card {
    padding: var(--spacing-lg);
    min-height: 0;
    padding-top: calc(var(--spacing-lg) + var(--spacing-sm));
  }
  
  .testimonial-quote {
    font-size: var(--font-size-lg);
    line-height: 1.7;
  }
  
  .testimonial-card::before {
    font-size: 2.5rem;
    left: var(--spacing-sm);
  }
  
  .testimonials-section .container {
    padding: 0 var(--spacing-lg);
  }
  
  .servizio-card {
    padding: var(--spacing-lg);
  }
  
  .servizio-icon {
    width: 50px;
    height: 50px;
  }
  
  .servizio-title {
    font-size: var(--font-size-lg);
  }
  
  .servizi-why-icon {
    width: 56px;
    height: 56px;
  }
  
  .servizi-why-title {
    font-size: var(--font-size-xl);
  }
  
  .servizi-cta-section {
    padding: var(--spacing-3xl) var(--spacing-md);
  }
  
  .servizi-cta-btn {
    padding: var(--spacing-sm) var(--spacing-2xl);
    font-size: var(--font-size-base);
  }
}

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


