/* Lombardi Elettroimpianti — sito statico */

:root {
  --radius: 0.375rem;
  --background: oklch(0.17 0.018 250);
  --foreground: oklch(0.96 0.005 250);
  --card: oklch(0.22 0.02 250);
  --primary: oklch(0.74 0.115 194);
  --primary-foreground: oklch(0.16 0.02 240);
  --secondary: oklch(0.28 0.03 250);
  --muted-foreground: oklch(0.72 0.015 250);
  --destructive: oklch(0.6 0.22 25);
  --border: oklch(0.32 0.02 250);

  --gradient-hero: linear-gradient(120deg,
      oklch(0.17 0.018 250 / 0.94) 0%,
      oklch(0.17 0.018 250 / 0.72) 45%,
      oklch(0.17 0.018 250 / 0.25) 100%);
  --gradient-accent: linear-gradient(100deg, var(--primary), oklch(0.62 0.1 200));
  --shadow-elevated: 0 24px 60px -24px oklch(0.05 0.02 250 / 0.8);
  --shadow-glow: 0 0 0 1px oklch(0.74 0.115 194 / 0.35), 0 18px 50px -20px oklch(0.74 0.115 194 / 0.35);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-sans: "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.muted { color: var(--muted-foreground); }
.small { font-size: 0.875rem; }
.xsmall { font-size: 0.75rem; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary);
}

.text-gradient-accent {
  background-image: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: var(--gradient-hero);
}

/* Bottoni */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background-image: var(--gradient-accent);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
  transition: transform 0.25s ease, filter 0.25s ease;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }

.btn-line {
  border: 1px solid var(--border);
  color: var(--foreground);
  background: transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.btn-line:hover {
  border-color: oklch(0.74 0.115 194 / 0.6);
  background-color: oklch(0.74 0.115 194 / 0.08);
}

.btn-sm { padding: 0.5rem 1rem; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid oklch(0.32 0.02 250 / 0.6);
  background-color: oklch(0.17 0.018 250 / 0.85);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; }
.brand span { color: var(--primary); }

.main-nav { display: none; gap: 2rem; font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); }
.main-nav a { transition: color 0.2s ease; }
.main-nav a:hover { color: var(--foreground); }
.main-nav a.active { color: var(--primary); }

.mobile-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  border-top: 1px solid oklch(0.32 0.02 250 / 0.6);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.mobile-nav a.active { color: var(--primary); }

.phone-label { display: none; }

/* Hero home */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92vh;
  overflow: hidden;
}
.hero > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.hero .container { position: relative; padding-top: 8rem; padding-bottom: 4rem; }
.hero h1 { margin-top: 1.25rem; max-width: 48rem; font-size: 2.25rem; font-weight: 800; line-height: 1.05; }
.hero-intro { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; color: var(--muted-foreground); }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.stats {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 40rem;
  border-top: 1px solid oklch(0.32 0.02 250 / 0.6);
  padding-top: 2rem;
}
.stats dt { font-family: var(--font-display); font-size: 1.875rem; font-weight: 800; color: var(--primary); }
.stats dd { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--muted-foreground); }

/* Page hero interne */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero .container { position: relative; padding-top: 9rem; padding-bottom: 4rem; }
.page-hero h1 { margin-top: 1rem; max-width: 48rem; font-size: 1.875rem; font-weight: 800; line-height: 1.08; }
.page-hero .lead { margin-top: 1.25rem; max-width: 42rem; font-size: 1.125rem; color: var(--muted-foreground); }

/* Sezioni */
.section { padding-top: 5rem; padding-bottom: 5rem; }
.section-alt { border-bottom: 1px solid var(--border); background-color: oklch(0.28 0.03 250 / 0.3); }
.section h2 { font-size: 1.875rem; font-weight: 800; }

.grid { display: grid; gap: 1.5rem; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-elevated);
  padding: 1.75rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: oklch(0.74 0.115 194 / 0.5);
  box-shadow: var(--shadow-glow);
}
.card h3, .card h2 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 700; }
.card p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }

.icon-badge {
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: oklch(0.74 0.115 194 / 0.12);
  color: var(--primary);
}
.icon-badge svg { height: 1.5rem; width: 1.5rem; }

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
}
.feature svg { height: 1.25rem; width: 1.25rem; margin-top: 0.15rem; flex-shrink: 0; color: var(--primary); }
.feature h2, .feature h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; }
.feature p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

.bullets { margin-top: 1.25rem; display: grid; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.bullets li { display: flex; align-items: center; gap: 0.5rem; }
.dot { display: inline-block; height: 0.375rem; width: 0.375rem; border-radius: 999px; background-color: var(--primary); }

.cta-box {
  margin-top: 4rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: oklch(0.28 0.03 250 / 0.3);
  padding: 2.5rem;
  text-align: center;
}
.cta-box h2 { font-size: 1.5rem; font-weight: 800; }
.cta-box p { margin: 0.75rem auto 0; max-width: 36rem; font-size: 0.875rem; color: var(--muted-foreground); }
.cta-box .btn { margin-top: 1.75rem; }

.prose { display: grid; gap: 1rem; color: var(--muted-foreground); }
.rounded-img { border-radius: 0.5rem; border: 1px solid var(--border); object-fit: cover; width: 100%; }

/* Contatti */
.contact-list { margin-top: 2rem; display: grid; gap: 1.5rem; font-size: 0.875rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-list svg { height: 1.25rem; width: 1.25rem; margin-top: 0.15rem; flex-shrink: 0; color: var(--primary); }
.contact-list a:hover { color: var(--primary); }

.form-box { border: 1px solid var(--border); border-radius: 0.5rem; background-color: var(--card); padding: 1.75rem; }
.form-box h2 { font-size: 1.25rem; font-weight: 700; }
.form-grid { margin-top: 2rem; display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: oklch(0.17 0.018 250 / 0.6);
  color: var(--foreground);
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.field textarea { resize: vertical; }

.form-feedback {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.45;
}
.form-feedback--success {
  border: 1px solid oklch(0.55 0.12 160 / 0.5);
  background-color: oklch(0.28 0.04 160 / 0.35);
  color: oklch(0.9 0.04 160);
}
.form-feedback--error {
  border: 1px solid oklch(0.55 0.18 25 / 0.5);
  background-color: oklch(0.28 0.05 25 / 0.35);
  color: oklch(0.92 0.04 25);
}
.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}
.field-checkbox input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--primary);
}
#turnstile-widget { min-height: 4rem; }
.form-grid button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.map { margin-top: 4rem; overflow: hidden; border-radius: 0.5rem; border: 1px solid var(--border); }
.map iframe { display: block; width: 100%; height: 24rem; border: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.footer-inner .brandline { font-family: var(--font-display); font-weight: 700; color: var(--foreground); }
.footer-nav { display: flex; gap: 1.25rem; }
.footer-nav a:hover { color: var(--primary); }

@media (min-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 3.75rem; }
  .page-hero h1 { font-size: 3rem; }
  .page-hero .container { padding-top: 11rem; padding-bottom: 5rem; }
  .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .phone-label { display: inline; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .main-nav { display: flex; }
  .mobile-nav { display: none; }
  .section h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: start; }
  .hero h1 { font-size: 4.5rem; }
}

/* Fix icone e immagini */
.btn { white-space: nowrap; }
.btn > svg { height: 1rem; width: 1rem; flex-shrink: 0; }
.rounded-img { aspect-ratio: 4 / 3; max-height: 32rem; }
.section .card h2 { font-size: 1.125rem; }
.section .feature h2 { font-size: 1rem; }
