/* ==========================================================================
   VS DIGITAL CREATIONS & COPY - Dark Tech Modern Stylesheet
   ========================================================================== */

:root {
  /* Brand Palette */
  --color-primary: #f97316;        /* Arancione vivace del brand */
  --color-primary-hover: #ea580c;  /* Arancione scuro hover */
  --color-primary-light: rgba(249, 115, 22, 0.12);
  --color-primary-glow: rgba(249, 115, 22, 0.35);

  --color-secondary: #3b82f6;      /* Blu brillante per accenti */
  --color-secondary-dark: #1e3a8a; /* Blu profondo istituzionale */

  /* Dark Theme Surfaces */
  --bg-main: #070b14;             /* Nero-blu profondo di sfondo principale */
  --bg-surface: #0f172a;          /* Superficie card primaria */
  --bg-surface-elevated: #1e293b; /* Superficie card sollevata / hover */
  --bg-header: rgba(7, 11, 20, 0.88);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(249, 115, 22, 0.5);

  /* Typography Colors */
  --text-main: #f8fafc;           /* Testo chiaro ad alto contrasto */
  --text-muted: #94a3b8;          /* Testo secondario */
  --text-dim: #64748b;
  --color-white: #ffffff;

  /* Fonts */
  --font-heading: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions & Radii */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows & Glows */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(249, 115, 22, 0.15);
}

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

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

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-white);
  line-height: 1.25;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #ea580c);
  color: var(--color-white);
  box-shadow: 0 4px 18px var(--color-primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fb923c, var(--color-primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(249, 115, 22, 0.5);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  color: var(--color-white);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ee06e, #25d366);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
}

.badge-primary {
  background-color: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.badge-tech {
  background: rgba(30, 58, 138, 0.3);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

/* ==========================================================================
   Header & Navigation (Light Contrast Island for Logo Legibility)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all var(--transition-fast);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  padding: 0.35rem 0;
}

.brand-logo img {
  height: 74px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.25rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b; /* Testo scuro ad alto contrasto su header chiara */
  padding: 0.5rem 0;
  position: relative;
}

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

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #0f172a;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   Page Headers (Inner Pages Dark Tech Grid)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: 5rem 0 4rem;
  background-color: var(--bg-main);
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 75% 20%, rgba(249, 115, 22, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(30, 58, 138, 0.22) 0%, transparent 60%);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 100%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.page-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.85rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.page-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Hero Section (Dark Tech Grid & Glowing Orbs)
   ========================================================================== */
.hero {
  position: relative;
  padding: 5.5rem 0 6rem;
  background-color: var(--bg-main);
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(30, 58, 138, 0.25) 0%, transparent 50%);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(30, 58, 138, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge-wrap {
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, #fb923c 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 580px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h4 {
  font-size: 1.85rem;
  color: var(--color-primary);
  font-weight: 800;
}

.stat-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Visual / Card Preview Clean Solid Design */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  width: 100%;
}

.hero-card-preview {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(249, 115, 22, 0.15);
  position: relative;
  transition: all var(--transition-normal);
}

.hero-card-preview:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(249, 115, 22, 0.2);
}

.preview-speed-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.preview-speed-tag strong {
  color: var(--color-primary);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-logo-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  padding: 4px;
  flex-shrink: 0;
}

.preview-logo-box img {
  width: 44px;
  height: auto;
}

.preview-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
}

.preview-badge {
  font-size: 0.75rem;
  color: #4ade80;
  background-color: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-block;
}

.preview-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.preview-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #cbd5e1;
}

.preview-feature-item i {
  color: var(--color-primary);
  font-size: 1.1rem;
}

.preview-footer-status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #22c55e;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #22c55e;
  animation: ripple 2s infinite;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.8); opacity: 0; }
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ==========================================================================
   MachinaFlow Spotlight Banner (Featured Product Card Layout)
   ========================================================================== */
.machinaflow-spotlight {
  padding: 3rem 0;
  position: relative;
}

.spotlight-card {
  background: radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.16) 0%, transparent 45%),
              linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 29, 0.98) 100%);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.75rem 3rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(249, 115, 22, 0.12);
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary), #60a5fa);
}

.spotlight-left-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spotlight-meta-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.spotlight-badge {
  background: linear-gradient(135deg, var(--color-primary), #ea580c);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.spotlight-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #4ade80;
  font-family: var(--font-heading);
  font-weight: 600;
}

.spotlight-title {
  font-size: 1.85rem;
  color: var(--color-white);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.spotlight-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.spotlight-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Right Feature List / Highlights */
.spotlight-highlights-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.highlight-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.highlight-row i {
  color: var(--color-primary);
  font-size: 1rem;
}

@media (max-width: 992px) {
  .spotlight-card {
    grid-template-columns: 1fr;
    padding: 2.25rem 2rem;
    gap: 2rem;
  }
}

/* ==========================================================================
   Sections General (Dark Theme)
   ========================================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, #090e1a 0%, #0c1222 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Services Grid & Cards (Dark Glassmorphism)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #60a5fa);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  background-color: rgba(30, 41, 59, 0.85);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(249, 115, 22, 0.15);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: rgba(249, 115, 22, 0.12);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.service-card:hover .service-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: transparent;
  transform: scale(1.05);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.service-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.service-link i {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-link i {
  transform: translateX(4px);
}

/* Detailed Service Cards (on servizi.html) */
.service-detail-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: flex-start;
  transition: all var(--transition-normal);
}

.service-detail-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: rgba(249, 115, 22, 0.15);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.service-detail-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.service-detail-body p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   About, Mission & Values
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature-item {
  display: flex;
  gap: 1.25rem;
}

.feature-icon-bullet {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.feature-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.mission-box {
  background: radial-gradient(circle at 10% 10%, rgba(30, 58, 138, 0.3) 0%, transparent 60%),
              rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}

.mission-badge {
  display: inline-block;
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.mission-box h3 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.mission-box p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Values Grid on chi-siamo.html */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.6);
}

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.25rem;
}

.value-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Contacts & Form (Dark Interactive)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: stretch;
}

.contact-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-interactive-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: var(--color-white);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.contact-interactive-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.contact-interactive-card:hover {
  transform: translateX(6px);
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}

.contact-interactive-card:hover::after {
  opacity: 1;
}

.contact-interactive-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.contact-interactive-card:hover .contact-interactive-icon {
  transform: scale(1.1);
}

.icon-whatsapp-style {
  background: rgba(37, 211, 102, 0.15);
  color: #4ade80;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.icon-email-style {
  background: rgba(249, 115, 22, 0.15);
  color: var(--color-primary);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.icon-pec-style {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.icon-location-style {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid var(--border-subtle);
}

.contact-card-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.contact-card-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-card-action {
  margin-left: auto;
  font-size: 1rem;
  color: var(--text-dim);
  transition: all var(--transition-fast);
}

.contact-interactive-card:hover .contact-card-action {
  color: var(--color-primary);
  transform: translateX(3px);
}

.contact-form-card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
  position: relative;
}

.form-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.chip-radio {
  display: none;
}

.chip-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip-label:hover {
  border-color: var(--color-primary);
  color: var(--color-white);
}

.chip-radio:checked + .chip-label {
  background: rgba(249, 115, 22, 0.18);
  border-color: var(--color-primary);
  color: #fb923c;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.3);
}

.form-row-mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

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

.faq-section {
  margin-top: 4.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border-subtle);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.faq-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.faq-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.faq-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Call To Action Banner (Glowing Edge)
   ========================================================================== */
.cta-section {
  padding: 5.5rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.12) 0%, transparent 60%),
              #050811;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2.6rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.cta-box p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #030509;
  color: var(--text-muted);
  padding: 4.5rem 0 2rem;
  font-size: 0.95rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col-brand .brand-title {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-col-brand p {
  margin-bottom: 1.25rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-company-info {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #64748b;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

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

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

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--color-primary);
  border-color: transparent;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

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

/* ==========================================================================
   Floating Action Button (WhatsApp)
   ========================================================================== */
.fab-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition-normal);
}

.fab-whatsapp:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
  color: var(--color-white);
}

.fab-whatsapp::before {
  content: 'Contattaci su WhatsApp';
  position: absolute;
  right: 70px;
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all var(--transition-fast);
}

.fab-whatsapp:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Legal Content Formatting (Privacy & Cookie Policy)
   ========================================================================== */
.legal-content-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  margin: 0 auto;
}

.legal-content-card h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-white);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.legal-content-card h2:first-of-type {
  margin-top: 0;
}

.legal-content-card h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.legal-content-card p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.legal-content-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-content-card ul li {
  position: relative;
  padding-left: 1.5rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.legal-content-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 1;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
}

.legal-table th, .legal-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border: 1px solid var(--border-subtle);
}

.legal-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  font-family: var(--font-heading);
}

.legal-table td {
  color: #cbd5e1;
}
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    max-width: 520px;
    margin: 2.5rem auto 0;
  }

  .hero-visual {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
  }

  .hero-card-preview {
    max-width: 480px;
    text-align: left;
  }

  .about-grid, .values-grid, .contact-grid, .faq-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .legal-content-card {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 80px;
  }

  .brand-logo img {
    height: 56px;
  }

  .menu-toggle {
    display: block;
    color: #0f172a;
    font-size: 1.6rem;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    gap: 1.25rem;
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
  }

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

  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 3.5rem 0 3.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .machina-badges-wrap {
    justify-content: center;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-card-preview {
    max-width: 100%;
    padding: 1.75rem 1.25rem;
    text-align: center;
  }

  .preview-speed-tag {
    margin-left: auto;
    margin-right: auto;
  }

  .preview-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .preview-logo-box {
    margin: 0 auto;
  }

  .preview-features {
    align-items: center;
  }

  .preview-feature-item {
    justify-content: center;
    text-align: center;
  }

  .preview-footer-status {
    justify-content: center;
  }

  .page-hero {
    padding: 3.5rem 0 2.5rem;
  }

  .page-title {
    font-size: 2.1rem;
  }

  .section {
    padding: 4rem 0;
  }

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

  /* Centered Cards in Smartphone */
  .service-card {
    text-align: center;
    align-items: center;
  }

  .service-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .service-link {
    justify-content: center;
  }

  .service-detail-card {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.5rem;
    gap: 1.25rem;
    text-align: center;
    justify-items: center;
  }

  .service-detail-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin: 0 auto;
  }

  .service-detail-body {
    text-align: center;
  }

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

  /* About Section Centered on Mobile */
  .about-grid > div:first-child,
  .about-content {
    text-align: center;
  }

  .about-grid > div:first-child .section-tag,
  .about-content .section-tag {
    text-align: center;
  }

  .about-grid > div:first-child .section-title,
  .about-content .section-title {
    text-align: center;
  }

  .about-grid > div:first-child .section-desc,
  .about-content .section-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .about-feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mission-box {
    text-align: center;
    padding: 2.25rem 1.5rem;
  }

  .contact-grid > div:first-child {
    text-align: center;
  }

  .contact-grid > div:first-child .section-tag,
  .contact-grid > div:first-child .section-title,
  .contact-grid > div:first-child p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-interactive-card {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
  }

  .contact-interactive-icon {
    margin: 0 auto;
  }

  .contact-card-action {
    display: none;
  }

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

  .contact-form-card {
    padding: 2.25rem 1.5rem;
    text-align: center;
  }

  .contact-form-card .form-header-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-form-card h3 {
    text-align: center;
  }

  .contact-form-card p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-form-card .form-label {
    text-align: left;
  }

  .service-chips {
    justify-content: center;
  }

  .chip-label {
    font-size: 0.82rem;
    padding: 0.5rem 0.85rem;
  }

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

  .form-input, .form-textarea {
    font-size: 16px; /* Evita lo zoom forzato automatico di Safari su iPhone */
  }

  .form-checkbox-group {
    text-align: left;
    font-size: 0.84rem;
  }

  .contact-form-card .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }

  /* Centered Footer in Smartphone */
  .footer {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-company-info {
    text-align: center;
  }

  .footer-links {
    align-items: center;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .spotlight-card {
    padding: 2rem 1.5rem;
    gap: 1.75rem;
    text-align: center;
  }

  .spotlight-meta-row {
    justify-content: center;
  }

  .spotlight-title {
    font-size: 1.5rem;
  }

  .spotlight-ctas {
    justify-content: center;
  }

  .highlight-row {
    justify-content: center;
  }

  .fab-whatsapp {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }

  .fab-whatsapp::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .stat-item {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .spotlight-ctas {
    flex-direction: column;
    width: 100%;
  }

  .spotlight-ctas .btn {
    width: 100%;
  }

  .legal-content-card {
    padding: 1.75rem 1.25rem;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ==========================================================================
   GDPR Cookie Consent Banner & Modal
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: 460px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(249, 115, 22, 0.15);
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cookie-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(249, 115, 22, 0.15);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.cookie-banner-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
}

.cookie-banner-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.cookie-banner-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-banner-actions .btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  flex: 1;
  min-width: 110px;
}

/* Modal Preference Customizer */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cookie-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cookie-modal {
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
}

.cookie-modal-close:hover {
  color: var(--color-white);
}

.cookie-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.cookie-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-option-header h4 {
  font-size: 1.05rem;
  color: var(--color-white);
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.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: #334155;
  transition: .3s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

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

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

.cookie-switch input:disabled + .cookie-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-option p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Checkbox privacy nel form contatti */
.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

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

@media (max-width: 576px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1.5rem;
  }
}
