/* =========================================
   SOCRATES - Sito Promozionale v2
   Design System
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300&display=swap');

/* ---- CSS Variables ---- */
:root {
  --color-primary: #0055a4;
  --color-primary-dark: #003d7a;
  --color-primary-light: #1a72c7;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-dark: #0d1117;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-bg: #f8fafc;
  --color-bg-alt: #eef2f7;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--color-primary); color: white; box-shadow: 0 4px 15px rgba(0,85,164,0.3); }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,85,164,0.4); }
.btn-accent { background: var(--color-accent); color: var(--color-dark); box-shadow: 0 4px 15px rgba(245,158,11,0.3); }
.btn-accent:hover { background: var(--color-accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: white; color: var(--color-primary); border-color: white; transform: translateY(-2px); }
.btn-outline-primary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline-primary:hover { background: var(--color-primary); color: white; transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.5rem; font-size: 0.9rem; }

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(13,17,23,0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 2rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.site-logo img { height: 38px; width: auto; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.05em;
}
.logo-sub {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-top: -2px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.65);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  color: white;
  background: rgba(255,255,255,0.08);
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--color-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.65);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.mobile-nav a:hover { color: white; background: rgba(255,255,255,0.08); }
.mobile-nav .btn { margin-top: 0.5rem; justify-content: center; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(140deg, #0d1117 0%, #091628 45%, #0d1f3e 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,85,164,0.20) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(245,158,11,0.06) 0%, transparent 70%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0 4rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--color-accent);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: white;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--color-accent) 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.60);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-features {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
}
.hero-feature .dot {
  width: 5px; height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hero Visual Card */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  width: 100%;
  max-width: 440px;
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-card-dot { width: 10px; height: 10px; border-radius: 50%; }
.hcd-red { background: #ff5f57; }
.hcd-yellow { background: #febc2e; }
.hcd-green { background: #28c840; }
.hero-card-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-left: auto;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.hero-stat:last-child { margin-bottom: 0; }
.hero-stat-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.35rem;
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
}
.hero-stat-value small {
  font-size: 0.82rem;
  color: var(--color-success);
  margin-left: 0.4rem;
  font-weight: 500;
}
.hero-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-top: 0.6rem;
  overflow: hidden;
}
.hero-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
  animation: barFill 2.5s ease-out forwards;
}
@keyframes barFill { from { width: 0; } }
.hero-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1rem; }
.hero-tag {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

/* ---- STATS STRIP ---- */
.stats-strip {
  background: var(--color-primary);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.2rem;
}
.stat-item p {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 4rem;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--color-text-muted); font-size: 1rem; margin: 0; }

/* ---- FEATURES ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(0,85,164,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}
.feature-icon svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ---- SERVICES SECTION ---- */
.services-section {
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}
.services-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,85,164,0.15) 0%, transparent 70%);
}
.services-section .section-tag { color: var(--color-accent); }
.services-section .section-header h2 { color: white; }
.services-section .section-header p { color: rgba(255,255,255,0.45); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}
.service-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-3px);
}
.service-card-icon {
  width: 44px; height: 44px;
  background: rgba(0,85,164,0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin-bottom: 1rem;
}
.service-card-icon svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.service-card h4 { color: white; font-family: var(--font-heading); margin-bottom: 0.75rem; font-size: 0.95rem; }
.service-card ul li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}
.service-card ul li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--color-accent);
  font-size: 0.75rem;
}

/* ---- WHY SECTION ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.why-content .section-header { text-align: left; margin: 0 0 2rem; }
.why-reasons { display: flex; flex-direction: column; gap: 1rem; }
.why-reason { display: flex; gap: 1rem; align-items: flex-start; }
.why-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}
.why-reason h4 { font-family: var(--font-heading); font-size: 0.9rem; margin-bottom: 0.2rem; }
.why-reason p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; line-height: 1.6; }
.why-visual {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.why-visual::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.why-vis-item {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.why-vis-item:last-child { margin-bottom: 0; }
.why-vis-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.3rem;
}
.why-vis-value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
}

/* ---- FAQ ---- */
.faq-section { background: var(--color-bg-alt); }
.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.faq-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: none; border: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--color-primary); }
.faq-chevron {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--color-text-muted);
  transition: transform var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--color-primary); }
.faq-answer {
  display: none;
  padding: 0 1.5rem 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; }

/* ---- CTA ---- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-section > .container { position: relative; }
.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.site-footer { background: var(--color-dark); padding: 4rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.footer-logo img { height: 32px; width: auto; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.75; }
.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.28); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, #0a1628 100%);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: white; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.55); font-size: 1.05rem; margin: 0; }

/* ---- FORMS ---- */
.form-section { padding: 5rem 0; background: var(--color-bg-alt); }
.form-container {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.form-intro { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 2rem; line-height: 1.75; }
.form-required { font-family: var(--font-heading); font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.form-required span { color: #ef4444; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-group label .required { color: #ef4444; margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: all var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0,85,164,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-footer { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.privacy-check { display: flex; align-items: center; gap: 0.6rem; flex: 1; }
.privacy-check input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--color-primary); }
.privacy-check label { font-size: 0.82rem; color: var(--color-text-muted); }
.privacy-check label a { color: var(--color-primary); }
.privacy-check label a:hover { text-decoration: underline; }
.form-loader {
  display: none;
  width: 22px; height: 22px;
  border: 2px solid rgba(0,85,164,0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-message { margin-top: 1rem; font-family: var(--font-heading); font-size: 0.82rem; font-weight: 600; color: var(--color-success); }
.form-message.error { color: #ef4444; }

/* ---- PACKAGE CARD (Soluzioni) ---- */
.package-card {
  background: white;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.package-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 1.5rem;
  border-radius: 50px;
}
.package-card h3 { margin-bottom: 0.5rem; }
.package-card > p { color: var(--color-text-muted); margin-bottom: 2rem; }
.package-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: left;
}
.package-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.5;
}
.package-feature::before { content: '✓'; color: var(--color-success); font-weight: 700; flex-shrink: 0; }

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .package-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-actions .btn { display: none; }
  .burger { display: flex; }
  .section { padding: 3.5rem 0; }
  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .package-features { grid-template-columns: 1fr; }
  .form-container { padding: 2rem 1.25rem; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
  .why-content .section-header { text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item h3 { font-size: 1.7rem; }
  .btn-lg { padding: 0.9rem 2rem; }
}
