/* ============================================
   freelance.srl – Design System
   ============================================ */

:root {
  /* Colors */
  --clr-bg:         #060a14;
  --clr-bg-2:       #0c1220;
  --clr-bg-3:       #111827;
  --clr-surface:    rgba(255,255,255,0.04);
  --clr-border:     rgba(255,255,255,0.08);
  --clr-primary:    #00c8ff;
  --clr-primary-2:  #0070f3;
  --clr-accent:     #7c3aed;
  --clr-gold:       #f5a623;
  --clr-white:      #ffffff;
  --clr-text:       rgba(255,255,255,0.85);
  --clr-muted:      rgba(255,255,255,0.48);

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, #00c8ff 0%, #0070f3 50%, #7c3aed 100%);
  --grad-bg-hero:   linear-gradient(135deg, #060a14 0%, #0c1a2e 60%, #130a2c 100%);
  --grad-card:      linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  --grad-cta:       linear-gradient(135deg, #0c1a2e 0%, #130a2c 100%);

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Typography */
  --ff-head: 'Space Grotesk', 'Inter', sans-serif;
  --ff-body: 'Inter', sans-serif;

  /* Radius */
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;

  /* Shadow */
  --shadow-card: 0 4px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(0,200,255,0.15);
  --shadow-btn:  0 8px 32px rgba(0,112,243,0.4);

  /* Transition */
  --tr: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

a { color: inherit; text-decoration: none; }

/* ========== UTILITIES ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: rgba(0,200,255,0.1);
  border: 1px solid rgba(0,200,255,0.25);
  border-radius: 100px;
  padding: 0.35em 1em;
  margin-bottom: var(--space-sm);
}

.eyebrow-light {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-white);
  margin-bottom: var(--space-sm);
}

.section-desc {
  max-width: 600px;
  color: var(--clr-muted);
  font-size: 1.05rem;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grad-primary);
  color: var(--clr-white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 2em;
  border-radius: 100px;
  box-shadow: var(--shadow-btn);
  transition: transform var(--tr), box-shadow var(--tr), opacity var(--tr);
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,112,243,0.55);
  opacity: 0.92;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--clr-white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 2em;
  border-radius: 100px;
  border: 1px solid var(--clr-border);
  transition: background var(--tr), border-color var(--tr), transform var(--tr);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  color: var(--clr-white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 2em;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background var(--tr), transform var(--tr);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

.btn-large {
  font-size: 1.1rem;
  padding: 1em 2.5em;
}

.btn-nav {
  background: var(--grad-primary);
  color: var(--clr-white) !important;
  font-weight: 600;
  padding: 0.55em 1.4em;
  border-radius: 100px;
  transition: opacity var(--tr), transform var(--tr);
}
.btn-nav:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ========== REVEAL ANIMATION ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--tr), backdrop-filter var(--tr), padding var(--tr), box-shadow var(--tr);
}
.navbar.scrolled {
  background: rgba(6,10,20,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  font-family: var(--ff-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-main { color: var(--clr-white); }
.logo-dot  { background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-muted);
  transition: color var(--tr);
}
.nav-links a:not(.btn-nav):hover { color: var(--clr-white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-md) var(--space-lg);
  background: rgba(6,10,20,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--clr-border);
}
.mobile-menu a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--clr-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--clr-border);
  transition: color var(--tr);
}
.mobile-menu a:hover { color: var(--clr-white); }
.mobile-menu.open { display: flex; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,10,20,0.3) 0%,
    rgba(6,10,20,0.5) 40%,
    rgba(6,10,20,0.85) 80%,
    rgba(6,10,20,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 8rem;
  padding-bottom: 5rem;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: 100px;
  padding: 0.45em 1.1em;
  margin-bottom: var(--space-md);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-primary);
  box-shadow: 0 0 8px var(--clr-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--ff-head);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin-bottom: var(--space-lg);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  width: fit-content;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-num {
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-plus {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 2px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--clr-muted);
  text-align: center;
  letter-spacing: 0.02em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--clr-border);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  position: relative;
}
.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  70%       { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

/* ========== COSA FACCIAMO ========== */
.cosa-facciamo {
  background: var(--clr-bg);
}
.cosa-facciamo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-primary);
  opacity: 0.3;
}

.cosa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.cosa-text { }
.cosa-text .lead-text {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--clr-white);
  margin-bottom: var(--space-md);
}
.cosa-text p {
  color: var(--clr-muted);
  margin-bottom: var(--space-md);
}

.cosa-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.cosa-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--space-md);
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.cosa-card:hover {
  border-color: rgba(0,200,255,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.cosa-card .card-icon { font-size: 1.8rem; margin-bottom: 0.5rem; display: block; }
.cosa-card h3 {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: 0.4rem;
}
.cosa-card p { font-size: 0.88rem; color: var(--clr-muted); line-height: 1.5; }

/* ========== SERVIZI ========== */
.servizi {
  background: var(--clr-bg-2);
  overflow: hidden;
}
.servizi::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 500px at 50% 0%, rgba(0,200,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--tr);
}
.service-card:hover {
  border-color: rgba(0,200,255,0.25);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(0,200,255,0.08);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--clr-primary);
  margin-bottom: var(--space-sm);
}
.service-icon svg { width: 100%; height: 100%; }

.service-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-primary);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.65rem;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

/* ========== PERCHÉ ========== */
.perche {
  background: var(--clr-bg);
  position: relative;
}
.perche::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 400px at 80% 50%, rgba(124,58,237,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.perche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.perche-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  position: relative;
  transition: border-color var(--tr), transform var(--tr);
}
.perche-card:hover {
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-4px);
}

.perche-num {
  font-family: var(--ff-head);
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.perche-card h3 {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.5rem;
}
.perche-card p {
  font-size: 0.92rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

/* ========== METODO ========== */
.metodo {
  background: var(--clr-bg-2);
  overflow: hidden;
}
.metodo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 400px at 20% 60%, rgba(0,112,243,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.metodo-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
}

.metodo-step {
  position: relative;
  text-align: center;
}

.step-num {
  font-family: var(--ff-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--clr-primary);
  opacity: 0.7;
  margin-bottom: var(--space-sm);
}

.step-content {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  height: 100%;
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.metodo-step:hover .step-content {
  border-color: rgba(0,200,255,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.step-content h3 {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.65rem;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

.step-connector {
  display: none;
}

/* ========== RISULTATI ========== */
.risultati {
  background: var(--clr-bg);
  position: relative;
}
.risultati::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 500px at 50% 100%, rgba(0,200,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.risultati-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-md);
  align-items: stretch;
}

.risultato-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.risultato-card:hover {
  border-color: rgba(0,200,255,0.3);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 30px rgba(0,200,255,0.1);
}
.risultato-main {
  background: linear-gradient(145deg, rgba(0,200,255,0.08) 0%, rgba(0,112,243,0.04) 100%);
  border-color: rgba(0,200,255,0.2);
}

.risultato-icon { font-size: 2.5rem; margin-bottom: 0.5rem; display: block; }

.risultato-stat {
  font-family: var(--ff-head);
  font-size: 3rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.risultato-card h3 {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.65rem;
}
.risultato-card p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: var(--grad-cta);
  position: relative;
  text-align: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 30% 50%, rgba(0,112,243,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 80% 40%, rgba(124,58,237,0.12) 0%, transparent 70%);
}
.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.cta-fine {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.38);
}

/* ========== FOOTER ========== */
.footer {
  background: #030508;
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-xl);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.8fr 2fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.footer-brand .logo { margin-bottom: var(--space-sm); }
.footer-brand p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  max-width: 280px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.footer-col a {
  font-size: 0.88rem;
  color: var(--clr-muted);
  transition: color var(--tr);
}
.footer-col a:hover { color: var(--clr-white); }

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding: var(--space-md) 0;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--clr-muted);
  text-align: center;
}
.footer-bottom a {
  color: var(--clr-primary);
  transition: opacity var(--tr);
}
.footer-bottom a:hover { opacity: 0.7; }

/* ========== RESPONSIVE ========== */
/* ========== LIGHT THEME OVERRIDES (.theme-light) ========== */
body.theme-light {
  background-color: #ffffff;
  color: #0a1c38;
  --clr-bg: #ffffff;
  --clr-bg-2: #ffffff;
  --clr-bg-3: #f8fafc;
  --clr-surface: rgba(0, 0, 0, 0.02);
  --clr-border: rgba(10, 28, 56, 0.08); /* Navy tinted borders */
  --clr-text: #0a1c38;
  --clr-muted: #4a5568;
  --clr-white: #0a1c38; /* Text color for elements that were 'white' in dark mode */
}

/* Clear muddy radial gradients from sections in light mode */
body.theme-light .section::before,
body.theme-light .servizi::before,
body.theme-light .perche::before,
body.theme-light .metodo::before,
body.theme-light .risultati::before,
body.theme-light .cta-bg {
  display: none !important;
}

body.theme-light .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

body.theme-light .logo-main { color: #0a1c38; }

body.theme-light .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 40%,
    rgba(255, 255, 255, 0.8) 80%,
    rgba(255, 255, 255, 1) 100%
  );
}

body.theme-light .hero-bg-img {
  opacity: 1;
  filter: brightness(1.2) contrast(1.02);
}

body.theme-light .hero-badge {
  background: #f0f7ff;
  border-color: #bee3f8;
  color: #0070f3;
}

body.theme-light .hero-title { color: #0a1c38; }
body.theme-light .hero-subtitle { color: #2d3748; }

body.theme-light .hero-stats {
  background: #ffffff;
  border-color: rgba(10, 28, 56, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

body.theme-light .stat-label { color: #718096; }

body.theme-light .section-title { color: #0a1c38; }
body.theme-light .lead-text { color: #0a1c38; }

body.theme-light .service-card,
body.theme-light .perche-card,
body.theme-light .risultato-card,
body.theme-light .step-content,
body.theme-light .cosa-card {
  background: #ffffff;
  border: 1px solid rgba(10, 28, 56, 0.06);
  box-shadow: 0 4px 12px rgba(10, 28, 56, 0.03);
}

body.theme-light .service-card:hover,
body.theme-light .perche-card:hover,
body.theme-light .risultato-card:hover,
body.theme-light .cosa-card:hover {
  border-color: #00c8ff;
  box-shadow: 0 12px 30px rgba(10, 28, 56, 0.08);
  transform: translateY(-4px);
}

body.theme-light .service-card h3,
body.theme-light .perche-card h3,
body.theme-light .risultato-card h3,
body.theme-light .step-content h3,
body.theme-light .cosa-card h3 {
  color: #0a1c38;
}

body.theme-light .service-card p,
body.theme-light .perche-card p,
body.theme-light .risultato-card p,
body.theme-light .step-content p,
body.theme-light .cosa-card p {
  color: #4a5568;
}

body.theme-light .eyebrow {
  background: #f0f7ff;
  border-color: #bee3f8;
  color: #0070f3;
}

body.theme-light .scroll-indicator { border-color: rgba(10, 28, 56, 0.2); }
body.theme-light .scroll-indicator::after { background: #0a1c38; }

body.theme-light .cta-section {
  background: #f8fafc;
}
body.theme-light .cta-title { color: #0a1c38; }
body.theme-light .cta-desc { color: #4a5568; }

body.theme-light .footer {
  background: #f1f5f9;
  border-color: rgba(10, 28, 56, 0.05);
}
body.theme-light .footer-brand p { color: #4a5568; }
body.theme-light .footer-col strong { color: #0a1c38; }
body.theme-light .footer-col a { color: #4a5568; }
body.theme-light .footer-col a:hover { color: #0070f3; }
body.theme-light .footer-bottom { border-color: rgba(10, 28, 56, 0.05); }
body.theme-light .footer-bottom p { color: #718096; }

@media (max-width: 768px) {
  body.theme-light .hamburger span { background: #0a1c38; }
  body.theme-light .mobile-menu { background: #ffffff; }
  body.theme-light .mobile-menu a { color: #4a5568; border-color: rgba(0,0,0,0.05); }
}

@media (max-width: 1024px) {
  .risultati-grid {
    grid-template-columns: 1fr 1fr;
  }
  .perche-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metodo-timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-content { max-width: 100%; }
  .hero-stats { width: 100%; justify-content: center; }

  .cosa-grid { grid-template-columns: 1fr; }
  .cosa-cards { grid-template-columns: 1fr 1fr; }

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

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

  .metodo-timeline { grid-template-columns: 1fr; }

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

  .footer-container { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  :root {
    --space-3xl: 5rem;
  }
  .hero-cta { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: var(--space-sm); }
  .stat-divider { width: 40px; height: 1px; }
  .stat-item { flex-direction: row; gap: 0.75rem; align-items: center; }
  .cosa-cards { grid-template-columns: 1fr; }
  .perche-grid { grid-template-columns: 1fr; }
  .risultati-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
}
