/* ============== FattureNet — Sito vetrina CSS ============== */
/* Andrea: modifica liberamente. Variabili colori in :root */

:root {
  --brand-50: #EEF2FF;
  --brand-100: #E0E7FF;
  --brand-500: #6366F1;
  --brand-600: #4F46E5;
  --brand-700: #4338CA;
  --purple-600: #9333EA;
  --slate-50: #F8FAFC;
  --slate-200: #E2E8F0;
  --slate-500: #64748B;
  --slate-700: #334155;
  --slate-900: #0F172A;
  --emerald-500: #10B981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; }

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

/* ============== HEADER ============== */
.site-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--slate-200);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; gap: 2rem; }
.logo {
  font-size: 1.4rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.02em;
}
.logo-net {
  background: linear-gradient(135deg, var(--brand-500), var(--purple-600), #EC4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.main-nav { display: flex; gap: 1.75rem; flex: 1; justify-content: center; }
.main-nav a {
  color: var(--slate-700); font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0;
  position: relative;
}
.main-nav a:hover { color: var(--brand-700); }
.main-nav a.active { color: var(--brand-700); font-weight: 600; }
.main-nav a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--brand-600); border-radius: 2px;
}
.nav-cta { color: var(--brand-600) !important; font-weight: 600 !important; }
.header-actions { display: flex; gap: 0.75rem; align-items: center; }

/* ============== BUTTONS ============== */
.btn-primary, .btn-white, .btn-link {
  display: inline-block; padding: 0.6rem 1.25rem; border-radius: 0.75rem;
  font-weight: 600; font-size: 0.95rem; transition: all 0.2s; cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--purple-600));
  color: white; box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}
.btn-primary:hover { color: white; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.4); }
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1rem; border-radius: 1rem; }
.btn-white { background: white; color: var(--brand-700); }
.btn-white:hover { background: var(--slate-50); color: var(--brand-700); }
.btn-link { background: transparent; color: var(--slate-700); }
.btn-link:hover { color: var(--brand-700); background: var(--slate-50); }

/* ============== HERO ============== */
.hero {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99,102,241,0.15), transparent 70%),
    linear-gradient(180deg, #ffffff, var(--slate-50));
  padding: 5rem 0 6rem;
  text-align: center;
}
.hero .badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700);
  padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero .badge::before {
  content: ''; width: 8px; height: 8px; background: var(--emerald-500); border-radius: 50%;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1;
  color: var(--slate-900); letter-spacing: -0.03em; margin-bottom: 1.25rem;
}
.grad {
  background: linear-gradient(135deg, var(--brand-500), var(--purple-600), #EC4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.1rem; color: var(--slate-500); max-width: 38rem; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; align-items: center; }

/* ============== PAGE HERO (chi-siamo, contatti...) ============== */
.page-hero {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99,102,241,0.1), transparent 70%),
    linear-gradient(180deg, #ffffff, var(--slate-50));
  padding: 4rem 0 3rem; text-align: center;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 800; color: var(--slate-900); margin-bottom: 0.5rem; }
.page-hero .lead { font-size: 1.1rem; color: var(--slate-500); max-width: 36rem; margin: 0 auto; }

/* ============== FEATURES GRID ============== */
.features { padding: 5rem 0; background: var(--slate-50); }
.features h2, .content-section h2 {
  text-align: center; font-size: 2.2rem; font-weight: 800;
  color: var(--slate-900); margin-bottom: 3rem;
}
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.feature-card {
  background: white; border: 2px solid var(--slate-200); border-radius: 1.25rem;
  padding: 2rem 1.5rem; transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px); border-color: var(--brand-200);
  box-shadow: 0 12px 30px -8px rgba(99,102,241,0.2);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--slate-500); }

/* ============== CTA SECTION ============== */
.cta-section {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700), var(--purple-600));
  padding: 4rem 0; text-align: center; color: white;
}
.cta-section h2 { color: white; font-size: 2.2rem; font-weight: 800; margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; }

/* ============== CONTENT (chi siamo, ecc) ============== */
.content-section { padding: 4rem 0 6rem; }
.prose { max-width: 700px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; font-weight: 700; color: var(--slate-900); margin: 2rem 0 1rem; }
.prose p { margin-bottom: 1rem; }

/* ============== CONTATTI ============== */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; max-width: 900px;
}
.contact-card {
  background: white; border: 2px solid var(--slate-200); border-radius: 1.25rem;
  padding: 2rem 1.5rem; text-align: center;
}
.contact-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-card h3 { font-size: 1.1rem; color: var(--slate-900); margin-bottom: 0.5rem; }
.contact-card p { color: var(--slate-700); margin-bottom: 0.5rem; }
.contact-card small { color: var(--slate-500); font-size: 0.8rem; }

/* ============== FOOTER ============== */
.site-footer {
  background: var(--slate-50); border-top: 1px solid var(--slate-200);
  padding: 3rem 0 1.5rem; color: var(--slate-500);
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer-grid h4 { font-size: 0.95rem; color: var(--slate-700); margin-bottom: 0.75rem; font-weight: 700; }
.footer-grid p { font-size: 0.85rem; line-height: 1.7; }
.footer-desc { color: var(--slate-500); font-size: 0.85rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: var(--slate-500); font-size: 0.85rem; }
.footer-links a:hover { color: var(--brand-700); }
.footer-bottom {
  border-top: 1px solid var(--slate-200); padding-top: 1.5rem;
  text-align: center; font-size: 0.8rem; color: var(--slate-500);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-actions .btn-link { display: none; }
  .hero { padding: 3rem 0 4rem; }
  .features, .cta-section, .content-section { padding: 3rem 0; }
}
