/* ==========================================================================
   RESKA IMMOBILIARE - DESIGN SYSTEM & STYLESHEET
   Brand Colors: Vibrant Orange (#FF6600) & Crisp White (#FFFFFF)
   Mobile-First Architecture & High-Conversion Real Estate Design
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary: #FF6600;
  --primary-hover: #E55B00;
  --primary-dark: #CC4E00;
  --primary-light: #FFF4EC;
  --primary-glow: rgba(255, 102, 0, 0.32);
  --primary-gradient: linear-gradient(135deg, #FF6600 0%, #FF8533 100%);
  --primary-gradient-subtle: linear-gradient(135deg, rgba(255, 102, 0, 0.12) 0%, rgba(255, 133, 51, 0.04) 100%);
  --secondary: #1E293B;
  --secondary-dark: #0F172A;
  --secondary-light: #334155;

  /* Neutral Spectrum */
  --white: #FFFFFF;
  --bg-page: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --border-light: #E2E8F0;
  --border-focus: #FF6600;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 32px -6px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
  --shadow-orange: 0 10px 25px -5px rgba(255, 102, 0, 0.4);
  --shadow-orange-lg: 0 16px 36px -6px rgba(255, 102, 0, 0.48);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

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

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: 76px; /* Space for sticky mobile CTA bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 68px 0;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }
}

.text-center { text-align: center; }
.text-orange { color: var(--primary); }
.fw-bold { font-weight: 700; }

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.badge-tag-orange {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(255, 102, 0, 0.2);
}

.badge-tag-white {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--secondary-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange-lg);
  color: var(--white);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: #FAFAFA;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-dark);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

.btn-call {
  background: #059669;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-call:hover {
  background: #047857;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.btn-icon-right svg {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon-right svg {
  transform: translateX(4px);
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-notice-bar {
  background: var(--secondary-dark);
  color: var(--white);
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-notice-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-notice-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #CBD5E1;
}

.top-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 102, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 102, 0, 0);
  }
}

.top-notice-right {
  display: none;
}

@media (min-width: 768px) {
  .top-notice-right {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #94A3B8;
  }
  
  .top-notice-item {
    display: flex;
    align-items: center;
    gap: 6px;
  }
}

/* Main Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

/* Brand Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-brand-img {
  height: 52px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.logo:hover .logo-brand-img {
  transform: scale(1.02);
}

@media (max-width: 576px) {
  .logo-brand-img {
    height: 44px;
    max-width: 150px;
  }
}

.logo-symbol {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 6px 16px rgba(255, 102, 0, 0.3);
  position: relative;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--secondary-dark);
  line-height: 1.1;
}

.logo-brand span {
  color: var(--primary);
}

.logo-sub {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Nav Menu Desktop */
.nav-menu {
  display: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
  }

  .nav-link {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--secondary-light);
    position: relative;
    padding: 6px 0;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast);
    border-radius: 2px;
  }

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

  .nav-link:hover::after {
    width: 100%;
  }
}

/* Direct Contact Header Group */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.call-tracking-pill {
  display: none;
}

@media (min-width: 640px) {
  .call-tracking-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
    text-align: right;
  }

  .call-tracking-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .call-tracking-number {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--secondary-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
  }

  .call-tracking-number:hover {
    color: var(--primary);
  }
}

.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--secondary-dark);
}

@media (min-width: 992px) {
  .mobile-nav-toggle {
    display: none;
  }
}

/* Mobile Dropdown Menu */
.mobile-menu-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-drawer.active {
  display: flex;
}

.mobile-menu-link {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--secondary-dark);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

/* ==========================================================================
   HERO BANNER & LEAD GENERATION FORM
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 48px 0 80px 0;
  background-color: var(--secondary-dark);
  color: var(--white);
  overflow: hidden;
}

@media (min-width: 992px) {
  .hero-section {
    padding: 72px 0 100px 0;
  }
}

/* Emotional Hero Image with Gradient Overlay */
.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.68) saturate(1.1);
  transform: scale(1.02);
  transition: transform 10s ease-out;
}

.hero-backdrop-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(15, 23, 42, 0.65) 45%,
    rgba(15, 23, 42, 0.95) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
  }
}

/* Hero Content */
.hero-content {
  max-width: 640px;
}

.hero-badge-partner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 102, 0, 0.18);
  border: 1px solid rgba(255, 102, 0, 0.45);
  color: #FFA366;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.85rem;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.4rem;
  }
}

.hero-title-highlight {
  background: linear-gradient(135deg, #FF7A1A 0%, #FFA94D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #E2E8F0;
  margin-bottom: 28px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hero-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: #F1F5F9;
  font-weight: 500;
}

.hero-benefit-icon {
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.4);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-avatars {
  display: flex;
  align-items: center;
}

.hero-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -8px;
  object-fit: cover;
  background-color: #CBD5E1;
}

.hero-avatar:first-child {
  margin-left: 0;
}

.hero-rating-text {
  font-size: 0.875rem;
  color: #CBD5E1;
}

.hero-rating-stars {
  color: #FBBF24;
  font-size: 0.9375rem;
  display: block;
}

/* ==========================================================================
   QUICK CONTACT FORM CARD (HIGH CONVERSION)
   ========================================================================== */
.hero-form-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.4);
  color: var(--secondary-dark);
  position: relative;
  z-index: 5;
}

@media (min-width: 640px) {
  .hero-form-card {
    padding: 36px 32px;
  }
}

.hero-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 0 0 6px 6px;
}

.hero-form-header {
  margin-bottom: 22px;
  text-align: left;
}

.hero-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.hero-form-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--secondary-dark);
  line-height: 1.25;
  margin-bottom: 6px;
}

.hero-form-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Form Groups & Inputs */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label-required {
  color: var(--primary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 10px 14px 10px 42px;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--secondary-dark);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--primary);
}

/* Select Control */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}

/* Radio Chip Selection for "Cosa cerchi?" */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.chip-item {
  position: relative;
}

.chip-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.chip-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--secondary-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.chip-input:checked + .chip-label {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.15);
}

/* Privacy Checkbox */
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.form-checkbox {
  margin-top: 2px;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

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

/* Form Trust Guarantee */
.form-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   METRICS & TRUST BAR (PARTNER SOCIAL PROOF)
   ========================================================================== */
.metrics-section {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 32px 0;
  position: relative;
  z-index: 10;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary-dark);
  line-height: 1.1;
}

@media (min-width: 992px) {
  .metric-value {
    font-size: 1.85rem;
  }
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* ==========================================================================
   FEATURED PROPERTIES SHOWCASE (VETRINA 3 IMMOBILI)
   ========================================================================== */
.properties-section {
  background-color: var(--bg-page);
}

.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1040px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.property-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 102, 0, 0.3);
}

.property-img-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
  background-color: var(--secondary-dark);
}

.property-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease;
}

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

.property-badge-status {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.property-badge-energy {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.property-price-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 10px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.property-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.property-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.property-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary-dark);
  line-height: 1.3;
  margin-bottom: 12px;
  min-height: 3.2em;
}

.property-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.spec-icon-row {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.spec-value {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--secondary-dark);
}

.property-footer {
  margin-top: auto;
}

/* ==========================================================================
   SELLER ACQUISITION: 'VALUTA IL TUO IMMOBILE'
   ========================================================================== */
.valuation-section {
  position: relative;
  background: var(--secondary-dark);
  color: var(--white);
  overflow: hidden;
}

.valuation-bg-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.12;
  background-image: url('../images/valuation-bg.jpg');
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.valuation-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.25) 0%, rgba(255, 102, 0, 0) 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.valuation-wrapper {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
}

.valuation-local-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.local-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.8125rem;
  color: #E2E8F0;
  backdrop-filter: blur(8px);
}

.local-badge-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.local-badge-item strong {
  color: #FFA366;
}

.valuation-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 32px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
  .valuation-box {
    padding: 48px;
  }
}

.valuation-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.step-indicator.active {
  opacity: 1;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
}

.step-indicator.active .step-number {
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.step-text {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--white);
  display: none;
}

@media (min-width: 640px) {
  .step-text {
    display: inline;
  }
}

.step-line {
  width: 48px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}

/* Valuation Step Content */
.valuation-step-pane {
  display: none;
}

.valuation-step-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.valuation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .valuation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dark-input {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: var(--white) !important;
}

.dark-input:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--primary) !important;
}

.dark-input option {
  background: var(--secondary-dark);
  color: var(--white);
}

/* Slider Component for MQ */
.mq-slider-container {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.04);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mq-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mq-slider-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.custom-range-slider {
  width: 100%;
  accent-color: var(--primary);
  height: 6px;
  border-radius: 4px;
  cursor: pointer;
}

.valuation-trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.val-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #CBD5E1;
}

/* ==========================================================================
   ADVANTAGES SECTION (PERCHÉ SCEGLIERE NOI)
   ========================================================================== */
.advantages-section {
  background-color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 30px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
  transition: all var(--transition-fast);
}

.feature-card:hover .feature-icon-box {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary-dark);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   TESTIMONIALS & SOCIAL PROOF
   ========================================================================== */
.testimonials-section {
  background-color: var(--bg-page);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  color: #FBBF24;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--secondary-light);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.author-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--secondary-dark);
}

.author-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.testimonial-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.google-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F1F5F9;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  border: 1px solid var(--border-light);
}

.google-rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-top: 18px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--secondary-dark);
}

.google-reviews-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.btn-google-reviews {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--secondary-dark);
  border: 1px solid var(--border-light);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-google-reviews:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--primary);
}

/* ==========================================================================
   PARTNER DISCLOSURE BANNER
   ========================================================================== */
.partner-callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin-top: 40px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.partner-callout-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.partner-callout-text {
  font-size: 0.875rem;
  color: var(--secondary-light);
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--secondary-dark);
  color: #94A3B8;
  padding: 64px 0 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr;
  }
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 16px 0 20px 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
}

.footer-contact-item svg {
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-legal-links {
  display: flex;
  gap: 16px;
}

.footer-legal-links a:hover {
  color: var(--white);
}

/* ==========================================================================
   STICKY MOBILE BOTTOM CTA BAR
   ========================================================================== */
.mobile-sticky-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-light);
  padding: 10px 14px;
  gap: 10px;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.mobile-sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  text-align: center;
}

.mobile-sticky-btn-call {
  background: #059669;
  color: var(--white);
}

.mobile-sticky-btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

/* ==========================================================================
   MODALS (PROPERTY DETAIL)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
  animation: modalFade 0.25s ease-out;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  border: 1px solid var(--border-light);
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary-dark);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-dark);
  font-size: 1.2rem;
}

.modal-close-btn:hover {
  background: var(--border-light);
}

.modal-body {
  padding: 24px;
}

.modal-prop-desc p {
  margin-bottom: 12px;
  line-height: 1.65;
}

.modal-prop-desc ul {
  margin: 10px 0 16px 18px;
  padding-left: 0;
}

.modal-prop-desc li {
  margin-bottom: 6px;
  line-height: 1.55;
  position: relative;
}

.modal-prop-desc strong {
  color: var(--secondary-dark);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: var(--secondary-dark);
  color: var(--white);
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3000;
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-bounce);
  max-width: 380px;
  border-left: 4px solid var(--primary);
}

@media (min-width: 992px) {
  .toast-notification {
    bottom: 24px;
  }
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.toast-title {
  font-weight: 800;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.8125rem;
  color: #CBD5E1;
  line-height: 1.35;
}

/* ==========================================================================
   LEGAL COMPLIANCE & COOKIE CONSENT STYLES (GDPR, GARANTE PRIVACY 2021)
   ========================================================================== */

/* APE Energy Badges (Color-coded Italian standard ex D.Lgs. 192/2005) */
.badge-ape-a4 {
  background: #059669 !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-ape-g {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ape-legal-spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

/* Legal Disclaimers & Omnibus Notices */
.legal-disclaimer-box {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--secondary-light);
  margin-bottom: 16px;
}

.legal-disclaimer-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--primary);
  color: #CBD5E1;
}

.form-checkbox-secondary {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Cookie Banner (Linee Guida Garante Privacy 10 giugno 2021) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  z-index: 2500;
  padding: 22px 0;
  color: #F8FAFC;
  animation: slideUpBanner 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 992px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}

.cookie-banner-content {
  flex: 1;
}

.cookie-banner-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cookie-banner-heading-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-banner-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 102, 0, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-banner-heading {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.cookie-banner-close-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.cookie-banner-close-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.cookie-banner-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #CBD5E1;
  margin-bottom: 6px;
}

.cookie-banner-subtext {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #94A3B8;
  margin: 0;
}

.cookie-banner-subtext a {
  color: #FFA366;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

@media (min-width: 576px) {
  .cookie-banner-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.cookie-btn {
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Floating Cookie Consent Badge (Linee Guida Garante: sempre accessibile per revoca) */
.cookie-consent-badge {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 1500;
  background: var(--secondary-dark);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.cookie-consent-badge:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

@media (max-width: 768px) {
  .cookie-consent-badge {
    bottom: 74px; /* Non sovrapporsi alla barra mobile sticky */
    padding: 8px 10px;
  }
  .cookie-badge-label {
    display: none;
  }
}

/* Legal Modals Styling */
.modal-card-legal {
  max-width: 780px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.legal-modal-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.legal-modal-body {
  overflow-y: auto;
  padding: 24px 28px;
  font-size: 0.905rem;
  line-height: 1.68;
  color: var(--secondary-light);
}

.legal-modal-body h4 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--secondary-dark);
  margin: 22px 0 8px 0;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 4px;
}

.legal-modal-body h4:first-child {
  margin-top: 0;
}

.legal-modal-body p {
  margin-bottom: 12px;
}

.legal-modal-body ul, .legal-modal-body ol {
  margin: 8px 0 16px 20px;
  padding: 0;
}

.legal-modal-body li {
  margin-bottom: 6px;
}

.legal-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* Cookie Preferences Panel Categories */
.cookie-pref-item {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.cookie-pref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 14px;
}

.cookie-pref-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cookie-pref-name {
  font-weight: 800;
  color: var(--secondary-dark);
  font-size: 0.9375rem;
}

.cookie-pref-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-always-active {
  color: #059669;
  font-weight: 700;
}

.cookie-pref-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Switch Toggle UI */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: 0.25s;
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch-toggle input:checked + .switch-slider {
  background-color: var(--primary);
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(22px);
}

.switch-slider.disabled {
  background-color: #059669;
  cursor: not-allowed;
  opacity: 0.8;
}

/* Table styles in legal modal */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px 0;
  font-size: 0.8125rem;
}

.legal-table th, .legal-table td {
  border: 1px solid var(--border-light);
  padding: 8px 10px;
  text-align: left;
}

.legal-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--secondary-dark);
}

/* Footer corporate layout enhancements */
.footer-corporate-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #94A3B8;
  max-width: 700px;
}

.footer-corporate-info strong {
  color: #FFFFFF;
}

/* ==========================================================================
   SOCIAL MEDIA COMMUNITY SECTION
   ========================================================================== */
.social-section {
  background: var(--bg-page);
  padding: 80px 0;
  position: relative;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.social-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.social-card-instagram::before {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-card-facebook::before {
  background: #1877F2;
}

.social-card-tiktok::before {
  background: linear-gradient(90deg, #00F2FE, #FE0979);
}

.social-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 102, 0, 0.25);
}

.social-card:hover::before {
  opacity: 1;
}

.social-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--transition-bounce);
  color: var(--white);
}

.social-card:hover .social-icon-wrapper {
  transform: scale(1.1) rotate(4deg);
}

.social-icon-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 8px 20px rgba(214, 36, 159, 0.3);
}

.social-icon-facebook {
  background: #1877F2;
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

.social-icon-tiktok {
  background: #000000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.social-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.social-badge-ig { background: rgba(225, 48, 108, 0.1); color: #E1306C; }
.social-badge-fb { background: rgba(24, 119, 242, 0.1); color: #1877F2; }
.social-badge-tt { background: rgba(0, 0, 0, 0.08); color: #0F172A; }

.social-card-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--secondary-dark);
  margin-bottom: 6px;
}

.social-handle {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.social-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.social-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.social-btn-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.25);
}
.social-btn-ig:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
  color: #FFFFFF;
}

.social-btn-fb {
  background: #1877F2;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.25);
}
.social-btn-fb:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
  color: #FFFFFF;
}

.social-btn-tt {
  background: #000000;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.social-btn-tt:hover {
  background: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
}



