/* =============================================
   DESIGN TOKENS / CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --primary-color:    #2563eb;
  --primary-hover:    #1d4ed8;
  --accent-color:     #f2904f;
  --accent-hover:     #e8803a;
  --secondary-color:  #64748b;
  --success-color:    #10b981;
  --warning-color:    #f59e0b;
  --danger-color:     #ef4444;
  --dark-color:       #1e293b;
  --light-color:      #f8fafc;
  --border-color:     #e2e8f0;
  --text-primary:     #1e293b;
  --text-secondary:   #64748b;
  --text-muted:       #94a3b8;
  --shadow-sm:        0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:        0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:        0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --border-radius:    0.75rem;
  --border-radius-sm: 0.5rem;
  --border-radius-lg: 1rem;
}

/* =============================================
   BASE / TYPOGRAPHY
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  transition: color 0.2s ease, background-color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

a { text-decoration: none; }

/* =============================================
   SCROLLBAR PERSONALIZZATA
   ============================================= */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(7px); opacity: 1; }
}

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

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* Stagger delays per grid */
.fade-in-up.delay-1 { transition-delay: 0.08s; }
.fade-in-up.delay-2 { transition-delay: 0.16s; }
.fade-in-up.delay-3 { transition-delay: 0.24s; }
.fade-in-up.delay-4 { transition-delay: 0.32s; }

/* =============================================
   UTILITY
   ============================================= */
.d-grid { display: grid; }
.me-1   { margin-right: 0.25rem; }
.me-2   { margin-right: 0.5rem; }
.me-3   { margin-right: 1rem; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar-modern {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 3px solid var(--primary-color);
  box-shadow: var(--shadow-md);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s ease;
}

.navbar-brand:hover .navbar-brand-icon {
  transform: scale(1.04);
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
  padding-left: 0.75rem;
}

.navbar-brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.navbar-brand-tagline {
  font-size: 0.62rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
}

.navbar-modern .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem !important;
  border-radius: var(--border-radius-sm);
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(37, 99, 235, 0.07);
}

.navbar-modern .nav-link.active {
  font-weight: 600;
}

.btn-area-clienti {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: white !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--border-radius-sm);
  border: none;
  box-shadow: 0 4px 14px rgba(242, 144, 79, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none !important;
}

.btn-area-clienti:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242, 144, 79, 0.45) !important;
  color: white !important;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1e3a8a 100%);
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(99, 179, 237, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.10) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success-color);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.hero-title .highlight {
  color: #93c5fd;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2.5rem;
  line-height: 1.75;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 3.5rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: white;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: var(--border-radius-sm);
  border: none;
  box-shadow: 0 8px 28px rgba(242, 144, 79, 0.45);
  font-size: 0.925rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(242, 144, 79, 0.55);
  color: white;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  padding: 0.9rem 1.75rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  transform: translateY(-2px);
}

/* Stat cards glassmorphism */
.hero-stats-row {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 1.1rem 1.4rem;
  flex: 1;
  min-width: 120px;
  text-align: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-stat-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.hero-stat-number {
  font-size: 1.85rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Hero credential card (right column) */
.hero-credential-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  max-width: 380px;
  margin: 0 auto;
  animation: float 5s ease-in-out infinite;
}

.credential-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.credential-header i {
  color: #93c5fd;
  font-size: 1rem;
}

.credential-header span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.credential-shield {
  text-align: center;
  margin-bottom: 1.25rem;
}

.credential-shield i {
  font-size: 3.5rem;
  color: #93c5fd;
  filter: drop-shadow(0 0 20px rgba(147, 197, 253, 0.4));
}

.credential-main-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.credential-sub {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
}

.credential-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.credential-detail:last-of-type {
  border-bottom: none;
}

.credential-detail .cd-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.credential-detail .cd-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
}

.credential-verified {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50px;
  padding: 0.45rem 1rem;
}

.credential-verified i {
  color: var(--success-color);
  font-size: 0.9rem;
}

.credential-verified span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6ee7b7;
  letter-spacing: 0.04em;
}

/* =============================================
   SEZIONI COMUNI
   ============================================= */
.section-padding    { padding: 5.5rem 0; }
.section-padding-sm { padding: 3.5rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.08);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

.section-divider {
  width: 56px;
  height: 4px;
  background: #f2904f;
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* =============================================
   SERVIZI
   ============================================= */
.services-section { background: white; }

.service-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #f2904f;
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.15);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.si-blue   { background: rgba(37, 99, 235, 0.1);   color: var(--primary-color); }
.si-green  { background: rgba(16, 185, 129, 0.1);  color: var(--success-color); }
.si-purple { background: rgba(139, 92, 246, 0.1);  color: #8b5cf6; }
.si-amber  { background: rgba(245, 158, 11, 0.1);  color: var(--warning-color); }

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0.875rem 0 0;
}

.service-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.service-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

/* =============================================
   PROCESSO / COME OPERIAMO
   ============================================= */
.process-section { background: var(--light-color); }

.process-step {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.process-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.process-number {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.process-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

/* =============================================
   NUMERI / STATISTICHE
   ============================================= */
.numbers-section { background: white; }

.stat-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #f2904f;
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.2);
}

.stat-box-number {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat-box-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.4;
}

/* =============================================
   TRUST / LICENZA
   ============================================= */
.trust-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1e3a8a 100%);
  position: relative;
  overflow: hidden;
}

.trust-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(99, 179, 237, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.10) 0%, transparent 50%);
  pointer-events: none;
}

.trust-section .section-label {
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.15);
}

.trust-section .section-title {
  color: white;
}

.trust-section .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.license-badge-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.license-badge-card:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-3px);
}

.license-badge-icon {
  font-size: 2.75rem;
  color: #93c5fd;
  margin-bottom: 0.875rem;
  filter: drop-shadow(0 0 12px rgba(147, 197, 253, 0.3));
}

.license-badge-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.license-badge-value {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.2rem;
}

.license-badge-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.trust-feature-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  transition: background 0.2s ease;
  height: 100%;
}

.trust-feature:hover {
  background: rgba(255, 255, 255, 0.11);
}

.trust-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: rgba(37, 99, 235, 0.3);
  color: #93c5fd;
}

.trust-feature h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.2rem;
}

.trust-feature p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
  line-height: 1.55;
}

/* =============================================
   FAQ
   ============================================= */
.faq-section { background: var(--light-color); }

.faq-accordion .accordion-item {
  border: 1px solid var(--border-color) !important;
  border-radius: var(--border-radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-button {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  background: white;
  padding: 1.25rem 1.5rem;
  box-shadow: none !important;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.03);
}

.faq-accordion .accordion-button::after {
  filter: none;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  filter: invert(35%) sepia(80%) saturate(600%) hue-rotate(200deg);
}

.faq-accordion .accordion-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  padding: 0 1.5rem 1.25rem;
  background: white;
}

/* =============================================
   CONTATTI
   ============================================= */
.contact-section { background: white; }

.contact-info-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1e3a8a 100%);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(99, 179, 237, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.contact-info-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.4rem;
}

.contact-info-card-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-item-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-item-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  line-height: 1.4;
}

.contact-item-value a {
  color: #93c5fd;
  text-decoration: none;
}

.contact-item-value a:hover { color: white; }

.contact-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #25d366;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.875rem;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  margin-top: 1.75rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.contact-whatsapp-btn:hover {
  background: #1ebe5d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.contact-form-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.form-label-modern {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control-modern {
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  color: var(--text-primary);
  width: 100%;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.form-control-modern:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.form-control-modern::placeholder { color: var(--text-muted); }

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

.btn-submit {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.9rem 2rem;
  border-radius: var(--border-radius-sm);
  border: none;
  box-shadow: 0 4px 16px rgba(242, 144, 79, 0.35);
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 144, 79, 0.5);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: none;
  background: linear-gradient(to right, #ecfdf5, #d1fae5);
  border-left: 4px solid var(--success-color);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.25rem;
  color: #065f46;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1rem;
  align-items: center;
  gap: 0.75rem;
}

.form-error {
  display: none;
  background: linear-gradient(to right, #fef2f2, #fecaca);
  border-left: 4px solid var(--danger-color);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.25rem;
  color: #991b1b;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1rem;
}

/* =============================================
   FOOTER
   ============================================= */
.modern-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 4rem 0 0;
  position: relative;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.footer-brand-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: white;
  line-height: 1.25;
}

.footer-brand-sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.footer-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  transition: color 0.2s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover { color: white; }

.footer-links a i {
  font-size: 0.65rem;
  opacity: 0.5;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.footer-contact-icon {
  color: rgba(147, 197, 253, 0.75);
  font-size: 0.875rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  width: 16px;
}

.footer-contact-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.footer-contact-text a {
  color: rgba(147, 197, 253, 0.85);
  text-decoration: none;
}

.footer-contact-text a:hover { color: white; }

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.footer-divider {
  border-color: rgba(255,255,255,0.08);
  margin: 2.5rem 0 0;
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.38);
}

.footer-legal {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  text-align: right;
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 998;
  animation: float 3.5s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
  animation: none;
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  white-space: nowrap;
  background: white;
  color: var(--dark-color);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.875rem;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  pointer-events: none;
  font-family: 'Montserrat', sans-serif;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
  .hero-credential-card { margin-top: 3rem; }
}

@media (max-width: 768px) {
  .hero-section { padding: 4.5rem 0 3.5rem; min-height: auto; }
  .hero-title   { font-size: 2rem; }
  .hero-subtitle { font-size: 0.975rem; }
  .hero-cta-group { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .hero-stat-number { font-size: 1.6rem; }
  .section-padding  { padding: 3.75rem 0; }
  .section-title    { font-size: 1.875rem; }
  .contact-form-card  { padding: 1.75rem; }
  .contact-info-card  { padding: 2rem; margin-bottom: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-legal  { text-align: center; justify-content: center; }
  .footer-copyright { text-align: center; }
  .footer-heading { text-align: center; }
  .footer-links { text-align: center; }
  .footer-links a { justify-content: center; }
  .footer-contact-item { justify-content: center; }
  .footer-desc { text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-social { justify-content: center; }
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; font-size: 1.6rem; }
}

@media (max-width: 576px) {
  .hero-title   { font-size: 1.75rem; }
  .hero-stats-row { gap: 0.5rem; }
  .hero-stat-card { padding: 0.875rem 1rem; }
  .stat-box-number { font-size: 2.25rem; }
  .hero-credential-card { padding: 1.5rem; }
  .back-to-top { bottom: 5.5rem; right: 1.25rem; }
}

/* =============================================
   PIATTAFORMA / AREA CLIENTI
   ============================================= */
.platform-section {
  background: linear-gradient(160deg, #f0f4ff 0%, #f8fafc 60%, #eef2ff 100%);
  overflow: hidden;
  position: relative;
}

.platform-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Feature list */
.platform-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.platform-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pf-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.platform-features li div strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.15rem;
}

.platform-features li div p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* CTA button */
.btn-platform-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(242, 144, 79, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.01em;
}

.btn-platform-cta .btn-arrow {
  transition: transform 0.2s ease !important;
}

.btn-platform-cta:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232, 128, 58, 0.45);
}

.btn-platform-cta:hover .btn-arrow {
  transform: translateX(4px);
}

.platform-note {
  margin-top: 0.875rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Browser Mockup ── */
.browser-mockup {
  background: white;
  border-radius: 14px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.14),
    0 6px 20px rgba(0, 0, 0, 0.07),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.browser-mockup:hover {
  transform: perspective(1400px) rotateY(-2deg) rotateX(1deg) translateY(-6px);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.browser-bar {
  background: #f1f5f9;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.browser-dots { display: flex; gap: 5px; flex-shrink: 0; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }

.browser-url {
  flex: 1;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.22rem 0.75rem;
  font-size: 0.7rem;
  color: #64748b;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-content {
  display: flex;
  flex-direction: column;
  max-height: 460px;
  overflow: hidden;
}

/* ── Platform Navbar ── */
.mp-navbar {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.mp-navbar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mp-logo-box {
  width: 28px; height: 28px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #1e293b;
  font-family: 'Montserrat', sans-serif;
}

.mp-navbar-divider {
  width: 1px; height: 16px;
  background: #e2e8f0;
}

.mp-navbar-title {
  font-size: 0.62rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.08em;
  font-family: 'Montserrat', sans-serif;
}

.mp-navbar-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
  font-family: 'Montserrat', sans-serif;
}

/* ── Platform Hero ── */
.mp-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1e3a8a 100%);
  padding: 1.25rem 1.25rem 1rem;
  text-align: center;
  flex-shrink: 0;
}

.mp-hero-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: white;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.mp-hero-sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.6);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
  margin-bottom: 0.875rem;
}

/* Stat cards */
.mp-stat-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.625rem;
}

.mp-stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 0.6rem 0.875rem;
  flex: 1;
  max-width: 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mp-stat-yellow { border-bottom: 2px solid rgba(245,158,11,0.75); }
.mp-stat-green  { border-bottom: 2px solid rgba(16,185,129,0.75); }

.mp-stat-icon {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.25rem;
  display: block;
}

.mp-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.mp-stat-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  font-family: 'Montserrat', sans-serif;
}

/* Feature mini cards */
.mp-feature-row {
  display: flex;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  max-width: 72%;
  margin: 0 auto;
}

.mp-feature-card {
  flex: 1;
  padding: 0.38rem 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.mp-feature-card:last-child { border-right: none; }

.mp-feat-icon {
  color: rgba(147,197,253,0.85);
  font-size: 0.75rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.mp-feat-title {
  font-size: 0.56rem;
  font-weight: 700;
  color: white;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3;
  margin-bottom: 0.12rem;
}

.mp-feat-sub {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.48);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.35;
}

/* ── Platform Body ── */
.mp-body {
  background: #f1f5f9;
  padding: 0.875rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.mp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-section-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mp-section-icon {
  width: 28px; height: 28px;
  background: rgba(37,99,235,0.1);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 0.75rem;
}

.mp-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  font-family: 'Montserrat', sans-serif;
}

.mp-section-sub {
  font-size: 0.58rem;
  color: #94a3b8;
  font-family: 'Montserrat', sans-serif;
}

.mp-badge-count {
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
}

.mp-search-bar {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: #94a3b8;
  font-family: 'Montserrat', sans-serif;
}

.mp-filter-tabs {
  display: flex;
  gap: 0.4rem;
}

.mp-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-family: 'Montserrat', sans-serif;
  background: white;
}

.mp-tab.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.mp-tab-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .browser-mockup { transform: none; }
  .browser-mockup:hover { transform: translateY(-4px); }
  .browser-content { max-height: 400px; }
  .mp-feature-row { gap: 0.3rem; }
}

@media (max-width: 576px) {
  .browser-content { max-height: 340px; }
  .mp-feature-row { display: none; }
  .mp-hero { padding: 1rem; }
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
#scrollProgress {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  z-index: 1100;
  transition: width 0.08s linear;
}

/* =============================================
   HERO SCROLL INDICATOR
   ============================================= */
.hero-scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2.5rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  animation: scrollBounce 2.2s ease-in-out infinite;
  transition: color 0.2s ease !important;
}

.hero-scroll-indicator:hover { color: rgba(255,255,255,0.75); }

.hero-scroll-indicator i {
  font-size: 1rem;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: white;
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease,
              color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  z-index: 997;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* =============================================
   PROCESS CONNECTOR (desktop)
   ============================================= */
.process-steps-row {
  position: relative;
}

@media (min-width: 992px) {
  .process-steps-row::before {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(12.5% + 23px);
    right: calc(12.5% + 23px);
    height: 2px;
    background: linear-gradient(to right, var(--border-color), rgba(37,99,235,0.25), var(--border-color));
    z-index: 0;
  }

  .process-step {
    position: relative;
    z-index: 1;
  }
}

/* =============================================
   NUMERO STAT ANIMATO
   ============================================= */
.stat-box-number.counting {
  animation: countUp 0.4s ease-out forwards;
}

/* =============================================
   MIGLIORAMENTI TIPOGRAFIA E DETTAGLI
   ============================================= */

/* Evidenziazione highlight hero con sfumatura accent */
.hero-title .highlight {
  background: linear-gradient(135deg, #93c5fd, #bfdbfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sezione alternata con sfondo leggermente diverso */
.services-section   { background: white; }
.process-section    { background: #f8fafc; }
.numbers-section    { background: white; }
.faq-section        { background: #f8fafc; }
.contact-section    { background: white; }

/* Miglioramento hover service card */
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-3deg);
}

.service-icon {
  transition: transform 0.3s ease !important;
}

/* FAQ icona accordion personalizzata */
.faq-accordion .accordion-button i {
  transition: transform 0.25s ease !important;
}

/* Stat box numero colore */
.stat-box:hover .stat-box-number {
  color: var(--accent-color);
}

/* Link di navigazione con underline animato */
.navbar-modern .nav-link {
  position: relative;
}

.navbar-modern .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0.875rem;
  right: 0.875rem;
  height: 2px;
  background: var(--accent-color);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.2s ease !important;
}

.navbar-modern .nav-link:hover::after,
.navbar-modern .nav-link.active::after {
  transform: scaleX(1);
}

/* Miglioramento focus accessibilità */
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================
   SEZIONE PREZZI
   ============================================= */
.pricing-section { background: var(--light-color); }

.pricing-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.pricing-card-featured {
  border: 2px solid var(--accent-color);
  box-shadow: 0 8px 32px rgba(242,144,79,0.15);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.04em;
}

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

.pricing-icon {
  width: 48px; height: 48px;
  background: rgba(37,99,235,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin: 0 auto 0.75rem;
}

.pricing-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-family: 'Montserrat', sans-serif;
}

.pricing-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.pricing-price {
  text-align: center;
  line-height: 1;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  font-family: 'Montserrat', sans-serif;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
}

.pricing-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: 'Montserrat', sans-serif;
}

.pricing-features .fa-check { color: #10b981; font-size: 0.75rem; }
.pricing-features .pricing-excluded { color: #cbd5e1; font-size: 0.75rem; }
.pricing-features li:has(.pricing-excluded) { color: var(--text-muted); }

.pricing-table {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

.pricing-table-header {
  display: grid;
  grid-template-columns: 1fr 110px 110px;
  background: var(--light-color);
  padding: 0.6rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-table-header span:not(:first-child),
.pricing-table-row span:not(:first-child) {
  text-align: center;
}

.pricing-table-row {
  display: grid;
  grid-template-columns: 1fr 110px 110px;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  align-items: center;
}

.pricing-table-row span:not(:first-child) {
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.pricing-cta {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.875rem;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 16px rgba(242,144,79,0.3);
  margin-top: auto;
}

.pricing-cta:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242,144,79,0.4);
}

.pricing-cta-secondary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  box-shadow: 0 4px 16px rgba(37,99,235,0.2);
}

.pricing-cta-secondary:hover {
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}

/* =============================================
   MOBILE FIXES
   ============================================= */

/* Pricing table: stack columns on small phones */
@media (max-width: 480px) {
  .pricing-table-header,
  .pricing-table-row {
    grid-template-columns: 1fr 90px 90px;
    font-size: 0.68rem;
    padding: 0.5rem 0.6rem;
  }
  .pricing-table-header {
    font-size: 0.6rem;
  }
  .pricing-card { padding: 1.25rem; }
}

/* Hero credential card: full width on very small screens */
@media (max-width: 400px) {
  .hero-credential-card {
    max-width: 100%;
    padding: 1.25rem;
  }
}

/* Form inputs: ensure 44px touch target */
@media (max-width: 768px) {
  .form-control-modern {
    min-height: 44px;
  }
  #scrollProgress { display: none; }
}

/* Very small phones (320–375px) */
@media (max-width: 375px) {
  .hero-title { font-size: 1.55rem; }
  .section-title { font-size: 1.6rem; }
  .pricing-table-header,
  .pricing-table-row {
    grid-template-columns: 1fr 78px 78px;
    font-size: 0.62rem;
    padding: 0.45rem 0.5rem;
  }
  .pricing-table-header { font-size: 0.56rem; }
}
