/* ==========================================================================
   AUTOSCUOLA FALCO - DESIGN SYSTEM COOL PROFESSIONAL (MOBILE-FIRST ENHANCED)
   Sede: Via Roma, 36 - 09047 Selargius (CA) | Dal 1975
   Palette Fredda: Midnight Slate, Glacier Cyan, Ice Steel & Platinum
   ========================================================================== */

:root {
  /* Palette Colori Freddi & Istituzionali (Versione Matte & Professional) */
  --slate-950: #0F1722; /* Ardesia scuro profondo opaco */
  --slate-900: #162333; /* Blu ardesia scuro */
  --slate-850: #1D2D40;
  --slate-800: #25394E;
  --slate-700: #384C62;
  --slate-600: #4F647C;
  --slate-500: #6C819A;
  --slate-400: #93A5B8;
  --slate-300: #C2D0DD;
  --slate-200: #DFE7EE;
  --slate-100: #EEF3F7;
  --slate-50:  #F7FAFC;

  /* Accenti Matte Petrolio / Blu Ardesia Istituzionale (Ispirati al Logo Ufficiale Falco) */
  --cyan-700: #1C3B53; /* Blu petrolio scuro profondo */
  --cyan-600: #205B7A; /* Petrolio opaco istituzionale */
  --cyan-500: #2B6E94; /* Blu avio satinato professionale */
  --cyan-400: #4684A9; /* Avio opaco medio */
  --cyan-300: #74A4C2; /* Carta da zucchero polveroso */
  --cyan-100: #E3EDF3; /* Grigio-azzurro tenue opaco */
  --cyan-50:  #F1F6F9; /* Fondo tenue satinato opaco */

  /* Accento Rosso Istituzionale (dal falco e dalla data 1975 nel logo) */
  --falco-red: #B81B24;
  --falco-red-dark: #98151D;
  --falco-red-light: #FDF2F2;

  /* WhatsApp Business */
  --wa-green: #25D366;
  --wa-dark:  #1EBE5D;

  /* Testo e Sfondi */
  --text-dark: #162333;
  --text-body: #384C62;
  --text-muted: #6C819A;
  --text-light: #93A5B8;
  --bg-white: #FFFFFF;
  --bg-ice: #F7FAFC;

  --border-light: #DFE7EE;
  --border-subtle: #EEF3F7;
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Ombre Soffuse Opache (Natural Soft Shadows) */
  --shadow-xs: 0 1px 2px rgba(16, 25, 36, 0.04);
  --shadow-sm: 0 2px 4px rgba(16, 25, 36, 0.04), 0 1px 2px rgba(16, 25, 36, 0.05);
  --shadow-md: 0 4px 14px -2px rgba(16, 25, 36, 0.08), 0 2px 6px -1px rgba(16, 25, 36, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(16, 25, 36, 0.11), 0 4px 10px -2px rgba(16, 25, 36, 0.04);
  --shadow-xl: 0 20px 38px -6px rgba(15, 23, 34, 0.22);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Layout Header Height */
  --header-height: 70px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Setup Globale */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-body);
  line-height: 1.65;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll,
body.menu-open {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 85px 0;
}

.section-sm {
  padding: 55px 0;
}

.bg-light {
  background-color: var(--bg-ice);
}

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

.bg-navy,
.bg-blue {
  background-color: var(--slate-950);
  background-image: radial-gradient(circle at 85% 15%, rgba(32, 91, 122, 0.22) 0%, transparent 65%);
  color: #FFFFFF;
}

.bg-navy .section-title,
.bg-blue .section-title {
  color: #FFFFFF;
}

.bg-navy .section-title span,
.bg-blue .section-title span {
  color: var(--cyan-400);
}

.bg-navy .section-desc,
.bg-blue .section-desc {
  color: var(--slate-300);
}

.bg-navy .section-tag,
.bg-blue .section-tag {
  background: rgba(43, 110, 148, 0.22);
  color: var(--cyan-300);
  border-color: rgba(70, 132, 169, 0.4);
}

/* Servizi / Card dentro sezioni blu */
.bg-navy .service-card,
.bg-blue .service-card {
  background: rgba(22, 35, 51, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
}

.bg-navy .service-card:hover,
.bg-blue .service-card:hover {
  border-color: var(--cyan-400);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5);
}

.bg-navy .service-card-title,
.bg-blue .service-card-title {
  color: #FFFFFF;
}

.bg-navy .service-card-desc,
.bg-blue .service-card-desc {
  color: var(--slate-300);
}

.bg-navy .service-card-footer,
.bg-blue .service-card-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.bg-navy .service-link,
.bg-blue .service-link {
  color: var(--cyan-300);
}

.bg-navy .falco-icon-circle,
.bg-blue .falco-icon-circle {
  background: rgba(43, 110, 148, 0.28);
  color: var(--cyan-300);
  border: 1px solid rgba(70, 132, 169, 0.45);
}

/* Why-us dentro sezioni blu: le card sono bianche con testi in blu più scuro ad altissima leggibilità */
.bg-navy .why-feature-item,
.bg-blue .why-feature-item {
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.bg-navy .why-feature-title,
.bg-blue .why-feature-title {
  color: #0A2540 !important;
  font-weight: 700;
}

.bg-navy .why-feature-desc,
.bg-blue .why-feature-desc {
  color: #226B94 !important;
  font-weight: 500;
  line-height: 1.6;
}

.bg-navy .why-feature-item .falco-icon-circle,
.bg-blue .why-feature-item .falco-icon-circle {
  background: #EDF5FA !important;
  color: #1E6B94 !important;
  border: 1px solid #C2DCED !important;
}

.bg-navy .why-visual-box,
.bg-blue .why-visual-box {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  color: #0A2540;
}

.bg-navy .why-visual-year,
.bg-blue .why-visual-year {
  color: #134B73;
}

.bg-navy .why-visual-tagline,
.bg-blue .why-visual-tagline {
  color: #0A2540;
}

.bg-navy .why-visual-desc,
.bg-blue .why-visual-desc {
  color: #226B94;
}

.bg-navy .why-check-item,
.bg-blue .why-check-item {
  color: #0F3152;
}

.bg-navy .why-check-item svg,
.bg-blue .why-check-item svg {
  color: #134B73;
}

/* Course cards dentro sezioni blu */
.bg-navy .course-category-card,
.bg-blue .course-category-card {
  background: rgba(22, 35, 51, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.bg-navy .course-card-body > p,
.bg-blue .course-card-body > p {
  color: var(--slate-200) !important;
}

.bg-navy .course-detail-block,
.bg-blue .course-detail-block {
  background: rgba(15, 23, 34, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
}

.bg-navy .course-detail-title,
.bg-blue .course-detail-title {
  color: #FFFFFF !important;
}

.bg-navy .course-detail-desc,
.bg-blue .course-detail-desc {
  color: var(--slate-300) !important;
}

.bg-navy .course-detail-desc strong,
.bg-blue .course-detail-desc strong {
  color: #FFFFFF !important;
}

.bg-navy .course-detail-desc a,
.bg-blue .course-detail-desc a {
  color: var(--cyan-300) !important;
}

.bg-navy .course-doc-item,
.bg-blue .course-doc-item {
  color: var(--slate-200) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.bg-navy .course-pricing-list,
.bg-blue .course-pricing-list {
  border-color: rgba(255, 255, 255, 0.1);
}

.bg-navy .course-price-item,
.bg-blue .course-price-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.bg-navy .course-price-item .price-label,
.bg-blue .course-price-item .price-label {
  color: var(--slate-300) !important;
}

.bg-navy .course-price-item .price-val,
.bg-blue .course-price-item .price-val {
  color: #FFFFFF !important;
}

.bg-navy .course-card-actions,
.bg-blue .course-card-actions {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.bg-navy .course-card-actions span,
.bg-blue .course-card-actions span {
  color: var(--slate-300) !important;
}

.bg-navy .course-card-actions span strong,
.bg-blue .course-card-actions span strong {
  color: #FFFFFF !important;
}

/* Tabella Prezzi dentro sezioni blu */
.bg-navy .pricing-table-container,
.bg-blue .pricing-table-container {
  background: rgba(22, 35, 51, 0.95);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.bg-navy .pricing-table th,
.bg-blue .pricing-table th {
  background: var(--slate-950);
  color: var(--cyan-300);
  border-bottom: 2px solid var(--cyan-600);
}

.bg-navy .pricing-table td,
.bg-blue .pricing-table td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: var(--slate-200);
}

.bg-navy .pricing-table td strong,
.bg-blue .pricing-table td strong {
  color: #FFFFFF;
}

.bg-navy .pricing-table tr:nth-child(even) td,
.bg-blue .pricing-table tr:nth-child(even) td {
  background: rgba(15, 23, 34, 0.4);
}

.bg-navy .pricing-table .price-cell,
.bg-blue .pricing-table .price-cell {
  color: #93E26C;
}

/* Mappa e Info dentro sezioni blu */
.bg-navy .map-container,
.bg-blue .map-container {
  border: 1px solid rgba(70, 132, 169, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

/* Timeline e card metodo dentro sezioni blu */
.bg-navy .timeline-box,
.bg-blue .timeline-box {
  background: rgba(22, 35, 51, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

.bg-navy .timeline-title,
.bg-blue .timeline-title {
  color: #FFFFFF;
}

.bg-navy .timeline-desc,
.bg-blue .timeline-desc {
  color: var(--slate-300);
}

/* Typography Elements */
h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-50);
  color: var(--cyan-700);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-title span {
  color: var(--cyan-600);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.7;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
  background-color: var(--slate-950);
  color: var(--slate-400);
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--slate-300);
  transition: var(--transition);
}

.top-bar-item strong {
  color: #FFFFFF;
}

.top-bar-item:hover {
  color: var(--cyan-400);
}

.top-bar-item svg {
  color: var(--cyan-400);
  width: 15px;
  height: 15px;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-social-link {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-300);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.top-social-link:hover {
  background: var(--cyan-600);
  color: #FFFFFF;
  border-color: var(--cyan-600);
  transform: translateY(-1px);
}

.top-social-link svg {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img, .site-logo svg {
  height: 54px;
  width: auto;
  display: block;
}

.footer-logo-badge {
  display: inline-block;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.footer-logo-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.25);
}

.footer-logo-badge img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 8px 2px;
  position: relative;
  letter-spacing: -0.01em;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--cyan-500);
  border-radius: 2px;
  transition: width 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-600);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  color: var(--slate-900);
  cursor: pointer;
  padding: 8px 10px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Elementi del drawer mobile nascosti su desktop */
.nav-drawer-header,
.nav-drawer-footer,
.menu-backdrop {
  display: none;
}

.nav-drawer-links {
  display: contents;
}

/* ==========================================================================
   BUTTONS (Touch-friendly 48px height)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 22px;
  min-height: 46px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  letter-spacing: -0.01em;
}

.btn-sm {
  padding: 8px 15px;
  min-height: 40px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 14px 28px;
  min-height: 50px;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--slate-900);
  color: #FFFFFF;
  border-color: var(--slate-900);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
  background-color: var(--slate-800);
  border-color: var(--slate-800);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.btn-amber {
  background-color: var(--cyan-600);
  background-image: linear-gradient(140deg, #2B6E94 0%, #1E506D 100%);
  color: #FFFFFF;
  border-color: #205B7A;
  box-shadow: 0 3px 10px rgba(28, 59, 83, 0.22);
}

.btn-amber:hover {
  background-color: #246487;
  background-image: linear-gradient(140deg, #327AA2 0%, #235876 100%);
  border-color: #2B6E94;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(28, 59, 83, 0.32);
  color: #FFFFFF;
}

.btn-whatsapp {
  background-color: var(--wa-green);
  color: #FFFFFF;
  border-color: var(--wa-green);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: var(--wa-dark);
  border-color: var(--wa-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  color: #FFFFFF;
}

.btn-outline-navy {
  background: transparent;
  color: var(--slate-800);
  border-color: var(--slate-300);
}

.btn-outline-navy:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
  color: var(--slate-900);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline-white:hover {
  background: #FFFFFF;
  color: var(--slate-950);
  border-color: #FFFFFF;
}

/* ==========================================================================
   HERO SECTION (Foto Sfondo a Tutto Schermo con Velo Leggero)
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--slate-950);
  background-image:
    linear-gradient(90deg, rgba(15, 23, 34, 0.88) 0%, rgba(15, 23, 34, 0.74) 45%, rgba(15, 23, 34, 0.42) 80%, rgba(15, 23, 34, 0.25) 100%),
    url('../assets/hero-bg.jpg');
  background-image:
    linear-gradient(90deg, rgba(15, 23, 34, 0.88) 0%, rgba(15, 23, 34, 0.74) 45%, rgba(15, 23, 34, 0.42) 80%, rgba(15, 23, 34, 0.25) 100%),
    image-set(url('../assets/hero-bg.webp') type('image/webp'), url('../assets/hero-bg.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #FFFFFF;
  padding: 105px 0 95px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-pattern {
  display: none;
}

.hero-grid {
  display: block;
  max-width: 680px;
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  .hero-section {
    background-image:
      linear-gradient(180deg, rgba(15, 23, 34, 0.72) 0%, rgba(15, 23, 34, 0.35) 36%, rgba(15, 23, 34, 0.82) 100%),
      url('../assets/hero-bg.jpg');
    background-image:
      linear-gradient(180deg, rgba(15, 23, 34, 0.72) 0%, rgba(15, 23, 34, 0.35) 36%, rgba(15, 23, 34, 0.82) 100%),
      image-set(url('../assets/hero-bg.webp') type('image/webp'), url('../assets/hero-bg.jpg') type('image/jpeg'));
    background-position: 48% center;
    background-size: cover;
    background-repeat: no-repeat;
    height: calc(100svh - var(--header-height, 62px));
    height: calc(100dvh - var(--header-height, 62px));
    min-height: calc(100svh - var(--header-height, 62px)) !important;
    max-height: calc(100dvh - var(--header-height, 62px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0 20px;
    box-sizing: border-box;
    overflow: hidden;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 2;
  }
  .hero-grid {
    max-width: 100%;
    width: 100%;
  }
  .hero-title {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
  }
  .hero-subtitle {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  }
}

.hero-badge-wrap {
  margin-bottom: 22px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #F1F5F9;
}

.hero-pill-badge {
  background: var(--cyan-500);
  color: var(--slate-950);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.3rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.14;
  margin-bottom: 22px;
  letter-spacing: -0.035em;
}

.hero-title .text-gold {
  color: var(--cyan-400);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--slate-300);
  font-weight: 400;
  margin-bottom: 34px;
  max-width: 570px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.hero-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 9px 18px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.google-g-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.google-rating-score {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1;
}

.stars-row {
  display: flex;
  gap: 2.5px;
  color: #38BDF8;
  margin-top: 2px;
}

.stars-row svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.google-badge-meta {
  font-size: 0.77rem;
  color: var(--slate-300);
  font-weight: 500;
}

.hero-card {
  background: #FFFFFF;
  color: var(--text-dark);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid var(--slate-200);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--cyan-400);
  opacity: 0.12;
  filter: blur(25px);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-200);
}

.hero-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--slate-900);
}

.hero-card-tag {
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-stat-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}

.hero-stat-box:hover {
  background: var(--cyan-50);
  border-color: var(--cyan-300);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.stat-number.gold {
  color: var(--cyan-600);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-fast-contact {
  background: var(--slate-900);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--slate-800);
}

.hero-fast-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
  flex-shrink: 0;
}

.hero-fast-info p {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--slate-400);
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}

.hero-fast-info a {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.hero-fast-info a:hover {
  color: var(--cyan-300);
}

/* ==========================================================================
   CERCHIO / SQUIRCLE ICONA FREDDO
   ========================================================================== */
.falco-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  background: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
  transition: var(--transition);
}

.falco-icon-circle.sm {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
}

.falco-icon-circle.sm svg {
  width: 20px;
  height: 20px;
}

.falco-icon-circle.lg {
  width: 72px;
  height: 72px;
}

.falco-icon-circle.lg svg {
  width: 34px;
  height: 34px;
}

.falco-icon-circle svg {
  width: 28px;
  height: 28px;
  transition: transform 0.25s ease;
}

/* ==========================================================================
   SERVICES GRID & CARDS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.service-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  padding: 34px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan-400);
}

.service-card:hover .falco-icon-circle {
  background: var(--slate-800);
  border-color: var(--cyan-400);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.25);
}

.service-card .falco-icon-circle {
  margin-bottom: 22px;
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 0.94rem;
  color: #1E293B;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
  font-weight: 450;
}

.service-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-800);
}

.service-link:hover {
  color: var(--cyan-600);
  gap: 9px;
}

/* ==========================================================================
   MODERN SERVICES GRID & SHOWCASE CARDS (MOCKUP ACCURATE)
   ========================================================================== */
#servizi {
  position: relative;
  z-index: 1;
}

.services-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 52px auto;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.1);
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #10B981;
  animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.18); }
}

.services-intro-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 16px;
}

.text-gradient-emerald-sky {
  background: linear-gradient(135deg, #10B981 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-intro-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 400;
}

.services-modern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1023px) {
  .services-modern-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .services-modern-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.service-modern-card {
  background: #FFFFFF;
  border-radius: 26px;
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -8px rgba(16, 185, 129, 0.12), 0 10px 15px -3px rgba(15, 23, 42, 0.04);
  border-color: #6EE7B7;
}

.service-modern-card.card-highlight {
  border: 2px solid rgba(16, 185, 129, 0.35);
}

.service-modern-card.card-highlight:hover {
  border-color: #10B981;
}

.service-modern-card.card-dark {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #0F172A 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.4);
}

.service-modern-card.card-dark:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px -6px rgba(15, 23, 42, 0.5);
  border-color: rgba(16, 185, 129, 0.4);
}

.card-corner-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  z-index: 2;
}

.corner-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.corner-pill-emerald {
  background: #10B981;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}

.corner-pill-sky {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  color: #0369A1;
}

.corner-pill-amber {
  background: #F59E0B;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}

.corner-pill-slate {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
}

.corner-pill-mint {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0F172A, #1E293B);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease;
}

.service-modern-card:hover .card-icon-box {
  transform: scale(1.08);
}

.card-icon-box svg {
  width: 28px;
  height: 28px;
}

.card-icon-emerald { color: #10B981; }
.card-icon-sky { color: #38BDF8; }
.card-icon-amber { color: #FBBF24; }
.card-icon-teal { color: #2DD4BF; }
.card-icon-white { color: #FFFFFF; }

.card-icon-box.medical-bg {
  background: linear-gradient(135deg, #059669, #0F172A);
}

.card-icon-box.glass-bg {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.card-category-pill {
  font-size: 0.75rem;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 8px;
  background: #F1F5F9;
  color: #475569;
  white-space: nowrap;
}

.card-category-pill.pill-emerald {
  background: #D1FAE5;
  color: #047857;
  font-weight: 700;
}

.card-category-pill.pill-dark-teal {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-main-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.service-modern-card:hover .card-main-title {
  color: #10B981;
}

.card-dark .card-main-title {
  color: #FFFFFF;
}

.card-dark:hover .card-main-title {
  color: #34D399;
}

.card-main-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.62;
  margin-bottom: 18px;
  font-weight: 450;
}

.card-dark .card-main-desc {
  color: #CBD5E1;
}

.card-features-list {
  list-style: none;
  padding: 16px 0 0 0;
  margin: 16px 0 0 0;
  border-top: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 550;
  color: #475569;
}

.card-feature-item {
  display: flex;
  align-items: center;
  gap: 9px;
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #10B981;
  flex-shrink: 0;
}

.card-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid #F1F5F9;
}

.micro-tag {
  font-size: 0.72rem;
  font-weight: 650;
  background: #F1F5F9;
  color: #334155;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-schedule-box {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.schedule-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  color: #334155;
}

.schedule-left svg {
  width: 16px;
  height: 16px;
  color: #10B981;
}

.schedule-time {
  font-weight: 800;
  color: #0F172A;
}

.card-dark-subbox {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: #CBD5E1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-bottom-actions {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-dark .card-bottom-actions {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 750;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
}

.action-link:hover {
  color: #0F172A;
  text-decoration: underline;
}

.action-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.action-link:hover svg {
  transform: translateX(3px);
}

.action-text-muted {
  font-size: 0.8rem;
  color: #CBD5E1;
  font-weight: 500;
}

.btn-card-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 750;
  color: #FFFFFF;
  background: #10B981;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-card-emerald:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -2px rgba(16, 185, 129, 0.35);
  color: #FFFFFF;
}

.btn-card-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 750;
  color: #0F172A;
  background: #FFFFFF;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.btn-card-white:hover {
  background: #F1F5F9;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  color: #0F172A;
}

/* ==========================================================================
   PERCHÉ SCEGLIERE FALCO
   ========================================================================== */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.why-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #FFFFFF;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.why-feature-item:hover {
  border-color: var(--cyan-400);
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

.why-feature-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0A2540;
  margin-bottom: 4px;
}

.why-feature-desc {
  font-size: 0.92rem;
  color: #226B94;
  line-height: 1.6;
  font-weight: 500;
}

.why-visual-box {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  color: var(--slate-900);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
}

.why-visual-box::after {
  display: none;
}

.why-visual-year {
  font-size: 4.6rem;
  font-weight: 900;
  color: var(--cyan-600);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 8px;
}

.why-visual-tagline {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.why-visual-desc {
  font-size: 0.98rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 28px;
}

.why-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate-700);
}

.why-check-item svg {
  color: var(--cyan-600);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   REVIEWS & TESTIMONIALS
   ========================================================================== */
.reviews-summary-bar {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 28px 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.reviews-summary-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.big-rating {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1;
  letter-spacing: -2px;
}

.rating-stars-lg {
  display: flex;
  gap: 4px;
  color: var(--cyan-500);
  margin-bottom: 5px;
}

.rating-stars-lg svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.reviews-count-text {
  font-size: 0.92rem;
  color: var(--slate-500);
  font-weight: 600;
}

/* ==========================================================================
   DYNAMIC REVIEWS MARQUEE TRACK (Continuous Smooth Motion 60fps)
   ========================================================================== */
.reviews-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 16px 0 28px;
  margin: 0 -12px;
  /* Maschera di sfumatura laterale soft */
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.reviews-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: reviewsMarqueeScroll 38s linear infinite;
  will-change: transform;
}

@keyframes reviewsMarqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.reviews-marquee-track .review-card {
  width: 380px;
  min-width: 380px;
  max-width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 275px;
  background: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.25s ease;
  user-select: none;
}

.reviews-marquee-track .review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan-400);
}

@media (max-width: 640px) {
  .reviews-marquee-wrapper {
    margin: 0 -6px;
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  }
  
  .reviews-marquee-track {
    gap: 16px;
    animation-duration: 35s;
  }

  .reviews-marquee-track .review-card {
    width: 310px;
    min-width: 310px;
    max-width: 310px;
    padding: 22px 18px;
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-marquee-track {
    animation: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
}

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

.review-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan-300);
}

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

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--slate-900);
  color: var(--cyan-400);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.reviewer-name {
  font-weight: 700;
  color: var(--slate-900);
  font-size: 0.95rem;
}

.reviewer-course {
  font-size: 0.78rem;
  color: var(--slate-500);
}

.review-badge-google {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-600);
}

.review-quote {
  font-size: 0.92rem;
  color: var(--slate-700);
  line-height: 1.65;
  margin-bottom: 16px;
  flex-grow: 1;
}

.review-date {
  font-size: 0.76rem;
  color: var(--slate-400);
  margin-top: auto;
}

.google-review-banner {
  margin-top: 45px;
  background: linear-gradient(145deg, var(--slate-950) 0%, var(--slate-900) 100%);
  border-radius: var(--radius-xl);
  padding: 38px;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-800);
}

.google-review-banner-text h3 {
  color: #FFF;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.google-review-banner-text p {
  color: var(--slate-300);
  font-size: 0.95rem;
  max-width: 580px;
}

/* ==========================================================================
   PAGE HERO
   ========================================================================== */
.page-hero {
  background: linear-gradient(145deg, var(--slate-950) 0%, var(--slate-900) 100%);
  color: #FFFFFF;
  padding: 60px 0 50px;
  border-bottom: 2px solid var(--cyan-600);
}

.page-hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #FFF;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.page-hero-title span {
  color: var(--cyan-400);
}

.page-hero-desc {
  font-size: 1.1rem;
  color: var(--slate-300);
  max-width: 680px;
  line-height: 1.65;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--slate-400);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--cyan-400);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   CORSI E PATENTI (MODERN REDESIGN & WHATSAPP CLEARANCE)
   ========================================================================== */
.course-category-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 4px 25px -3px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  margin-bottom: 40px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  scroll-margin-top: 110px;
}

.course-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -8px rgba(16, 185, 129, 0.12), 0 10px 15px -3px rgba(15, 23, 42, 0.04);
  border-color: #6EE7B7;
}

.course-card-header {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.course-card-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.course-category-badge {
  color: #FFFFFF;
  font-weight: 850;
  font-size: 1.25rem;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.02em;
}

.badge-auto {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.badge-moto {
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.badge-med {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.badge-cqc {
  background: linear-gradient(135deg, #475569 0%, #64748B 100%);
  box-shadow: 0 4px 14px rgba(100, 116, 139, 0.35);
}

.badge-plus {
  background: linear-gradient(135deg, #0D9488 0%, #2DD4BF 100%);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.badge-pratiche {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #10B981;
}

.course-category-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.course-category-subtitle {
  font-size: 0.88rem;
  color: #94A3B8;
  margin-top: 3px;
  font-weight: 400;
}

.course-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.course-card-body {
  padding: 32px;
}

.course-intro-text {
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.68;
  margin-bottom: 28px;
  font-weight: 450;
}

.course-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 26px;
}

.course-detail-block {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.course-detail-block:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.course-detail-title {
  font-size: 0.84rem;
  text-transform: uppercase;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.05em;
}

.course-detail-title svg {
  width: 17px;
  height: 17px;
  color: #10B981;
  flex-shrink: 0;
}

.course-detail-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.62;
}

/* Document Checklist */
.course-docs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-doc-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.45;
}

.course-doc-item svg {
  width: 16px;
  height: 16px;
  color: #10B981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Prospetto Costi Card */
.course-pricing-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.course-price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.course-price-item:hover {
  border-color: #6EE7B7;
  background: #ECFDF5;
}

.course-price-item .price-label {
  color: #334155;
  font-weight: 600;
}

.course-price-item .price-val {
  font-weight: 850;
  color: #0F172A;
  font-feature-settings: "tnum";
  font-size: 0.95rem;
}

/* Box Nota Informativa Saldo Teoria / Avvertenze */
.course-note-box {
  margin-top: 22px;
  padding: 16px 20px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-left: 4px solid #10B981;
  border-radius: 14px;
  font-size: 0.88rem;
  color: #065F46;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.55;
}

.course-note-box svg {
  width: 20px;
  height: 20px;
  color: #10B981;
  flex-shrink: 0;
}

/* Footer Barra Azioni & Risoluzione Collisione WhatsApp Flottante */
.course-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #F1F5F9;
}

.course-action-hint {
  font-size: 0.9rem;
  color: #64748B;
  font-weight: 500;
  max-width: 580px;
}

.course-action-hint strong {
  color: #0F172A;
  font-weight: 700;
}

.btn-course-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 750;
  color: #FFFFFF;
  background: #10B981;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  flex-shrink: 0;
}

.btn-course-cta:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  color: #FFFFFF;
}

.btn-course-cta svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Clearance di sicurezza contro la sovrapposizione del pulsante WhatsApp flottante */
@media (min-width: 768px) {
  .course-card-actions {
    padding-right: 120px;
  }
}

/* ==========================================================================
   CHI SIAMO
   ========================================================================== */
.history-timeline {
  position: relative;
  max-width: 860px;
  margin: 35px auto 0;
  padding: 20px 0;
}

.history-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--slate-200);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 45px;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  width: 20px;
  height: 20px;
  background: var(--cyan-500);
  border: 3px solid var(--slate-900);
  border-radius: 50%;
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-box {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  display: inline-block;
  background: var(--slate-900);
  color: var(--cyan-300);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--slate-500);
}

/* Griglia Fotografica Professionale & Showcase */
.photo-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.photo-showcase-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.photo-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan-400);
}

.photo-showcase-img-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: var(--slate-900);
}

.photo-showcase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-showcase-card:hover .photo-showcase-img-wrap img {
  transform: scale(1.05);
}

.photo-showcase-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(16, 25, 36, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.photo-showcase-content {
  padding: 20px 22px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.photo-showcase-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.photo-showcase-desc {
  font-size: 0.86rem;
  color: var(--slate-600);
  line-height: 1.55;
}

.photo-showcase-placeholder {
  width: 100%;
  height: 210px;
  background: linear-gradient(135deg, var(--slate-100) 0%, var(--cyan-50) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid var(--slate-200);
}

.photo-showcase-placeholder svg {
  width: 44px;
  height: 44px;
  color: var(--cyan-600);
}

.photo-showcase-placeholder span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--slate-500);
}

/* Hero Media Showcase con Foto Reale */
.hero-media-showcase {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
  background: var(--slate-900);
  display: flex;
  flex-direction: column;
}

.hero-media-img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 34, 0.15) 0%, rgba(15, 23, 34, 0.3) 50%, rgba(15, 23, 34, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  pointer-events: none;
}

.hero-media-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-media-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 25, 36, 0.85);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-media-badge.red {
  background: rgba(184, 27, 36, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-media-bottom {
  background: rgba(22, 35, 51, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.hero-media-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-media-stat-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
}

.hero-media-stat-lbl {
  font-size: 0.76rem;
  color: var(--slate-300);
}

.hero-media-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--cyan-600);
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.hero-media-call-btn:hover {
  background: var(--cyan-500);
  transform: translateY(-1px);
}

/* Card Photo nelle Patenti */
.course-card-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
  border: 1px solid var(--slate-200);
}

/* Highlight Fotografico Recensioni */
.review-highlight-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 42px;
}

.review-highlight-img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.review-highlight-content {
  padding: 30px 32px 30px 10px;
}

@media (max-width: 820px) {
  .review-highlight-card {
    grid-template-columns: 1fr;
  }
  .review-highlight-content {
    padding: 24px;
  }
  .review-highlight-img {
    max-height: 260px;
  }
}

/* ==========================================================================
   CONTATTI (Form, Mappa, Info)
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-item .falco-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
}

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

.contact-info-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-500);
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}

.contact-info-val {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--slate-900);
}

.contact-info-val a:hover {
  color: var(--cyan-600);
  text-decoration: underline;
}

.contact-info-sub {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-top: 2px;
}

/* Modern Form Controls */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  font-size: 1rem; /* 16px to prevent iOS auto zoom */
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: var(--slate-900);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-feedback-modal {
  display: none;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: var(--radius-md);
  padding: 16px;
  color: #166534;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.form-feedback-modal.visible {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* Embedded Map Container */
.map-container {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--slate-300);
  box-shadow: var(--shadow-sm);
  margin-top: 28px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-consent-placeholder[hidden] {
  display: none;
}

.map-consent-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 32px 24px;
  text-align: center;
  background: linear-gradient(160deg, var(--cyan-50) 0%, var(--slate-100) 100%);
}

.map-consent-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-white);
  color: var(--cyan-600);
  box-shadow: var(--shadow-md);
  margin-bottom: 4px;
}

.map-consent-icon svg {
  width: 26px;
  height: 26px;
}

.map-consent-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.map-consent-placeholder p {
  margin: 0;
  max-width: 380px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.map-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (DESKTOP / TABLET)
   ========================================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9997;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--wa-green);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid #FFFFFF;
}

.whatsapp-float-btn:hover {
  background-color: var(--wa-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  color: #FFFFFF;
}

.whatsapp-float-icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-full);
  border: 2px solid var(--wa-green);
  animation: waPulse 2.2s infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ==========================================================================
   MOBILE BOTTOM ACTION BAR (Touch-Friendly & App-Like)
   ========================================================================== */
.mobile-bottom-bar {
  display: none; /* Only visible on mobile */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  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.12);
  padding: 6px 12px;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
  justify-content: space-around;
  align-items: center;
}

.bottom-bar-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--slate-300);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  min-width: 64px;
  min-height: 48px;
  transition: var(--transition);
}

.bottom-bar-action:hover,
.bottom-bar-action:active {
  color: #FFFFFF;
}

.bottom-bar-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
}

.bottom-bar-action.primary-action {
  color: #FFFFFF;
}

.bottom-bar-action.primary-action .bottom-bar-icon {
  background: var(--wa-green);
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.5);
}

.bottom-bar-action.primary-action .bottom-bar-icon svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--slate-950);
  color: var(--slate-300);
  padding: 70px 0 35px;
  border-top: 2px solid var(--cyan-600);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
  gap: 36px;
  margin-bottom: 45px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--slate-400);
  line-height: 1.7;
  margin: 16px 0 20px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2.5px;
  background: var(--cyan-500);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--slate-400);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--cyan-400);
  transform: translateX(3px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--slate-300);
}

.footer-contact-item svg {
  color: var(--cyan-400);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a:hover {
  color: var(--cyan-400);
}

.footer-social-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-300);
  transition: var(--transition);
}

.footer-social-btn:hover {
  background: var(--cyan-600);
  color: #FFFFFF;
  border-color: var(--cyan-600);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--slate-500);
}

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

/* ==========================================================================
   COMPONENTI AGGIUNTIVI BROCHURE: LISTINI, DOCUMENTI, ORARI & GIFT CARD
   ========================================================================== */

/* /* ==========================================================================
   COMPONENTI AGGIUNTIVI BROCHURE: LISTINI, DOCUMENTI, ORARI & GIFT CARD (MODERN)
   ========================================================================== */

/* Liste Documenti e Requisiti */
.course-docs-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 6px;
}

.course-doc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.48;
}

.course-doc-item svg {
  width: 17px;
  height: 17px;
  color: #10B981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Prospetto Costi Card */
.course-pricing-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 8px;
}

.course-price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.course-price-item:hover {
  border-color: #6EE7B7;
  background: #ECFDF5;
}

.course-price-item .price-label {
  color: #334155;
  font-weight: 600;
}

.course-price-item .price-val {
  font-weight: 850;
  color: #0F172A;
  font-feature-settings: "tnum";
  font-size: 0.96rem;
}

/* Box Nota Informativa Saldo Teoria */
.course-note-box {
  margin-top: 22px;
  padding: 16px 20px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-left: 4px solid #10B981;
  border-radius: 14px;
  font-size: 0.88rem;
  color: #065F46;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.55;
}

.course-note-box svg {
  width: 20px;
  height: 20px;
  color: #10B981;
  flex-shrink: 0;
}

/* Badge & Box Orari Lezioni e Visite Mediche */
.schedule-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.schedule-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #047857;
}

.schedule-badge svg {
  width: 14px;
  height: 14px;
  color: #10B981;
}

/* Banner / Sezione Gift Card */
.giftcard-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #0F172A 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 28px;
  padding: 40px 36px;
  color: #FFFFFF;
  margin-top: 48px;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.giftcard-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.giftcard-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.giftcard-content {
  max-width: 680px;
}

.giftcard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.giftcard-badge svg {
  width: 14px;
  height: 14px;
  color: #10B981;
}

.giftcard-title {
  color: #FFFFFF;
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.giftcard-desc {
  color: #CBD5E1;
  font-size: 0.96rem;
  line-height: 1.65;
}

/* Tabella Comparativa Prezzi (Listino Completo) */
.pricing-table-section {
  margin-top: 60px;
}

.pricing-table-container {
  overflow-x: auto;
  margin-top: 24px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  min-width: 640px;
}

.pricing-table th {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 18px 22px;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-table td {
  padding: 16px 22px;
  border-bottom: 1px solid #F1F5F9;
  color: #334155;
  vertical-align: middle;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table tr:hover td {
  background: #F8FAFC;
}

.pricing-table .price-cell {
  font-weight: 850;
  color: #0F172A;
  white-space: nowrap;
  font-size: 1rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE-FIRST OPTIMIZATIONS)
   ========================================================================== */
@media (max-width: 991px) {
  body {
    padding-bottom: 74px; /* Safety padding for bottom bar */
  }

  .mobile-bottom-bar {
    display: flex;
  }

  .whatsapp-float-btn {
    bottom: 82px; /* Position above bottom bar */
    right: 16px;
    padding: 10px 14px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  /* Risoluzione stacking context header su mobile */
  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: #FFFFFF !important;
  }

  .site-header.scrolled {
    background-color: #FFFFFF !important;
  }

  /* Quando il menu mobile è aperto: nasconde barra inferiore e pulsante fluttuante */
  body.menu-open .site-header {
    z-index: 10005 !important;
  }

  body.menu-open .mobile-bottom-bar {
    transform: translateY(100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.menu-open .whatsapp-float-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 10010;
    background: #FFFFFF;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
  }

  .menu-toggle:active {
    background: var(--slate-100);
    transform: scale(0.96);
  }

  .hamburger-bar {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--slate-900);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease;
    transform-origin: center;
  }

  /* Animazione fluida: da Hamburger a X perfetta */
  .menu-toggle.active {
    background-color: #FEF2F2;
    border-color: rgba(184, 27, 36, 0.3);
  }

  .menu-toggle.active .bar-1 {
    transform: translateY(7.5px) rotate(45deg);
    background-color: var(--falco-red);
  }

  .menu-toggle.active .bar-2 {
    opacity: 0;
    transform: scaleX(0);
  }

  .menu-toggle.active .bar-3 {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: var(--falco-red);
  }

  .nav-actions {
    display: none;
  }

  /* Backdrop oscurante a schermo intero con sfocatura soft */
  .menu-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Dropdown Navigation Menu posizionato fluido sotto l'header sticky */
  .nav-menu {
    position: fixed;
    top: var(--header-height, 70px);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - var(--header-height, 70px));
    height: calc(100dvh - var(--header-height, 70px));
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    border-top: 1px solid var(--slate-100);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease, visibility 0.3s ease;
    z-index: 10002;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  @media (min-width: 641px) and (max-width: 991px) {
    .nav-menu {
      left: auto;
      right: 0;
      width: 380px;
      border-left: 1px solid var(--slate-200);
      box-shadow: -10px 20px 35px rgba(0, 0, 0, 0.18);
    }
  }

  /* Nascondi header interno duplicato perché l'header principale sticky rimane visibile con la X */
  .nav-drawer-header {
    display: none !important;
  }

  /* Lista link di navigazione con animazione a cascata (staggered) */
  .nav-drawer-links {
    display: flex;
    flex-direction: column;
    padding: 18px 20px 10px;
    gap: 8px;
    flex: 1 0 auto;
  }

  .nav-drawer-links .nav-link {
    width: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-900);
    padding: 13px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 1px solid #EEF3F7;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-menu.open .nav-drawer-links .nav-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
  .nav-menu.open .nav-drawer-links .nav-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.09s; }
  .nav-menu.open .nav-drawer-links .nav-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.13s; }
  .nav-menu.open .nav-drawer-links .nav-link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.17s; }
  .nav-menu.open .nav-drawer-links .nav-link:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.21s; }

  .nav-drawer-links .nav-link:hover,
  .nav-drawer-links .nav-link:active {
    background: #F1F5F9;
    color: var(--cyan-700);
    border-color: var(--slate-300);
  }

  .nav-drawer-links .nav-link.active {
    background: #F1F6F9;
    color: var(--cyan-700);
    font-weight: 800;
    border: 1px solid var(--cyan-300);
  }

  .nav-drawer-links .nav-link::after {
    display: none;
  }

  .nav-drawer-links .nav-link::before {
    content: '›';
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--slate-400);
    order: 2;
    line-height: 1;
  }

  .nav-drawer-links .nav-link.active::before {
    color: var(--cyan-600);
    font-weight: 800;
  }

  /* Footer del drawer con CTA veloci e info */
  .nav-drawer-footer {
    display: flex;
    flex-direction: column;
    padding: 16px 20px max(24px, env(safe-area-inset-bottom)) 20px;
    gap: 10px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    margin-top: auto;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-menu.open .nav-drawer-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
  }

  .nav-drawer-footer .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    min-height: 48px;
    border-radius: 12px;
  }

  .nav-drawer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 0.8rem;
    color: #64748B;
    margin-top: 4px;
    line-height: 1.45;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .history-timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 10px;
    right: auto;
  }
}

/* SMARTPHONE DISPLAY SPECIFICS (375px - 640px) */
@media (max-width: 640px) {
  .section {
    padding: 55px 0;
  }

  .section-sm {
    padding: 40px 0;
  }

  .container {
    padding: 0 18px;
  }

  /* Compact Top Bar on Smartphone */
  .top-bar {
    padding: 6px 0;
    font-size: 0.78rem;
  }

  .top-bar-info {
    gap: 12px;
    justify-content: space-between;
    width: 100%;
  }

  .top-bar-social {
    display: none; /* Hidden on tiny screens to preserve space */
  }

  .site-logo img, .site-logo svg {
    height: 42px;
  }

  /* Hero Mobile Typography & Fullscreen Viewport Fitting */
  .hero-section {
    height: calc(100svh - var(--header-height, 62px));
    height: calc(100dvh - var(--header-height, 62px));
    min-height: calc(100svh - var(--header-height, 62px)) !important;
    max-height: calc(100dvh - var(--header-height, 62px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0 14px;
    box-sizing: border-box;
    overflow: hidden;
    background-image:
      linear-gradient(180deg, rgba(15, 23, 34, 0.70) 0%, rgba(15, 23, 34, 0.32) 35%, rgba(15, 23, 34, 0.82) 100%),
      url('../assets/hero-bg.jpg');
    background-image:
      linear-gradient(180deg, rgba(15, 23, 34, 0.70) 0%, rgba(15, 23, 34, 0.32) 35%, rgba(15, 23, 34, 0.82) 100%),
      image-set(url('../assets/hero-bg.webp') type('image/webp'), url('../assets/hero-bg.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: 48% center;
    background-repeat: no-repeat;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 2;
  }

  .hero-grid {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.35rem);
    line-height: 1.16;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 14px;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 11px 18px;
    font-size: 0.95rem;
  }

  .hero-social-proof {
    padding-top: 12px;
    gap: 8px;
  }

  .hero-google-badge {
    padding: 7px 14px;
    gap: 10px;
  }

  .hero-pill {
    font-size: 0.76rem;
    padding: 5px 12px;
  }

  .hero-pill-badge {
    font-size: 0.68rem;
  }

  /* 2x2 Clean Stats Grid on Mobile */
  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-stat-box {
    padding: 12px 8px;
  }

  .stat-number {
    font-size: 1.55rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .hero-card {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }

  .service-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  .course-card-header {
    padding: 18px 20px;
  }

  .course-card-body {
    padding: 22px 18px;
  }

  .course-card-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .course-card-actions .btn {
    width: 100%;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  .reviews-summary-bar {
    padding: 20px 16px;
    flex-direction: column;
    text-align: center;
  }

  .reviews-summary-left {
    flex-direction: column;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    padding: 22px 18px;
  }

  .contact-card {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .giftcard-banner {
    padding: 26px 20px;
  }

  /* Hide floating button on mobile in favor of bottom bar action */
  .whatsapp-float-btn {
    display: none;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER (GDPR / GARANTE PRIVACY CONFORME)
   ========================================================================== */
.cookie-banner-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 34, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-banner-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: calc(100% - 48px);
  max-width: 500px;
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 34, 0.32), 0 0 0 1px rgba(43, 110, 148, 0.18);
  z-index: 99999;
  padding: 22px 24px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.35s;
  font-family: inherit;
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

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

.cookie-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-900);
}

.cookie-icon {
  width: 20px;
  height: 20px;
  color: var(--cyan-600);
  flex-shrink: 0;
}

.cookie-banner-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}

.cookie-btn-close {
  background: transparent;
  border: none;
  color: var(--slate-400);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-btn-close:hover {
  color: var(--slate-800);
  background: var(--slate-100);
}

.cookie-banner-text {
  font-size: 0.86rem;
  line-height: 1.58;
  color: var(--slate-600);
  margin-bottom: 16px;
}

.cookie-policy-link {
  color: var(--cyan-600);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-policy-link:hover {
  color: var(--cyan-700);
}

/* Modale Preferenze Espandibile */
.cookie-preferences {
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  padding: 12px 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-pref-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

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

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

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

.cookie-switch input:checked + .cookie-slider {
  background-color: var(--cyan-600);
}

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

.cookie-slider.disabled {
  background-color: var(--slate-400);
  cursor: not-allowed;
  opacity: 0.8;
}

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

.cookie-pref-info strong {
  font-size: 0.84rem;
  color: var(--slate-900);
}

.cookie-pref-info span {
  font-size: 0.76rem;
  color: var(--slate-500);
  line-height: 1.4;
}

/* Pulsanti Azione */
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-btn-accept {
  flex: 1 1 auto;
  min-height: 40px;
  font-size: 0.86rem;
  padding: 8px 16px;
}

.cookie-btn-reject {
  flex: 1 1 auto;
  min-height: 40px;
  font-size: 0.86rem;
  padding: 8px 16px;
}

.btn-cookie-manage {
  background: transparent;
  border: none;
  color: var(--slate-600);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.btn-cookie-manage:hover {
  color: var(--cyan-600);
}

@media (max-width: 991px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-bottom: none;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 -10px 35px rgba(15, 23, 34, 0.4);
    z-index: 100020;
  }

  .cookie-banner-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .cookie-btn-accept,
  .cookie-btn-reject {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .btn-cookie-manage {
    width: 100%;
    text-align: center;
    padding: 8px;
  }
}
