/* ═══════════════════════════════════════════════
   APPLIED AI BOUTIQUE — MADNETAI BRAND THEME
   Palette derived from the MadNetAI logo:
   uniform white bg, navy text/headings (the "NetAI" half),
   plum primary (the "MAD" half), sky-blue secondary
   (the decorative network dots)
   ═══════════════════════════════════════════════ */

:root {
  /* Backgrounds — uniform white across the whole site;
     cards keep a very subtle plum tint so they still pop out */
  --bg-base: #ffffff;
  --bg-surface: #ffffff;
  --bg-card: #f5eef2;
  --bg-card-hover: #ebe0e7;
  --border: rgba(31,42,91,0.14);
  --border-accent: rgba(124,45,107,0.38);

  /* Primary accent — plum/magenta (matches "MAD" in the logo) */
  --gold: #7c2d6b;
  --gold-light: #5e1f50;
  --gold-dim: rgba(124,45,107,0.16);

  /* Secondary accent — sky blue (the decorative network dots) */
  --sage: #5a8bb8;
  --sage-dark: #3d6892;
  --sage-dim: rgba(90,139,184,0.16);

  /* Section tints — same white as base for a uniform look across sections */
  --peach: #ffffff;
  --peach-tint: #ffffff;
  --cream-warm: #ffffff;

  /* Text — deep navy (matches "NetAI" and the tagline) */
  --text-primary: #1f2a5b;
  --text-secondary: #3d4a7a;
  --text-muted: #6c7596;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 4px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 18.5px;
  line-height: 1.68;
  min-height: 100vh;
  overflow-x: hidden;
}

.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.06;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
em { font-style: italic; color: var(--gold); }
p { color: var(--text-secondary); line-height: 1.75; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }

/* ═══ NAVBAR ═══ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2rem;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.navbar.scrolled { background: rgba(255,255,255,0.94); }
.nav-container { max-width: var(--max-width); margin: 0 auto; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; background: var(--gold); color: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  border-radius: 3px;
}
.brand-text { font-family: var(--font-ui); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.2em; color: var(--text-primary); }
.brand-wordmark {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  white-space: nowrap;
}
.brand-wordmark-large { font-size: 2.3rem; letter-spacing: -0.02em; }
.brand-mad { color: var(--gold); }
.brand-netai { color: var(--text-primary); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-link { font-size: 0.92rem; font-weight: 500; letter-spacing: 0.05em; color: var(--text-secondary); position: relative; padding: 4px 0; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 8px 20px; border: 1px solid var(--gold); color: var(--gold);
  border-radius: var(--radius); transition: all var(--transition);
}
.nav-cta:hover { background: var(--gold); color: var(--bg-base); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text-primary); transition: all var(--transition); }

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: inline-block; padding: 14px 32px;
  background: var(--gold); color: var(--bg-base);
  font-family: var(--font-ui); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 30px rgba(124,45,107,0.25); }
.btn-ghost {
  display: inline-block; padding: 14px 32px; color: var(--text-secondary);
  font-family: var(--font-ui); font-size: 0.96rem; font-weight: 500;
  border-radius: var(--radius); transition: color var(--transition);
}
.btn-ghost:hover { color: var(--text-primary); }
.btn-large { padding: 18px 48px; font-size: 0.88rem; }

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 120px 2rem 80px;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(31,42,91,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(31,42,91,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(124,45,107,0.12) 0%, transparent 70%); top: -100px; right: -100px; }
.hero-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(90,139,184,0.18) 0%, transparent 70%); bottom: 0; left: -50px; }
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; text-align: center; }
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 2rem; color: var(--gold); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.eyebrow-line { display: block; width: 32px; height: 1px; background: var(--gold); }
.hero-title { margin-bottom: 1.5rem; }
.hero-sub { max-width: 560px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  gap: 0; margin-top: 5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; max-width: 600px; margin-left: auto; margin-right: auto; overflow: hidden;
}
.stat-item { padding: 1.5rem 3rem; text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 300; color: var(--gold); line-height: 1; }
.stat-num sup { font-size: 1rem; }
.stat-label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 60px; background: var(--border); }

/* ═══ SECTIONS ═══ */
.section-container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section-header { margin-bottom: 4rem; }
.section-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-header h2 { }

/* ═══ SERVICES ═══ */
.services-section { padding: 8rem 0; background: var(--bg-surface); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.service-card {
  padding: 2.5rem; background: var(--bg-card);
  transition: background var(--transition);
  position: relative;
}
.service-card:hover { background: var(--bg-card-hover); }
.service-card.featured { background: var(--bg-card-hover); }
.service-card.featured::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--border-accent); pointer-events: none; }
.service-icon { font-size: 1.8rem; color: var(--gold); margin-bottom: 1.2rem; display: block; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; color: var(--text-primary); }
.service-card p { font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.service-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--border); padding: 4px 10px; border-radius: 2px; }

/* ═══ PROCESS ═══ */
.process-section { padding: 8rem 0; }
.process-steps { display: flex; align-items: flex-start; gap: 0; }
.process-step { flex: 1; }
.step-number { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 1rem; opacity: 0.8; }
.step-content h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.step-content p { font-size: 1rem; }
.process-connector { width: 60px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); margin-top: 1.8rem; flex-shrink: 0; }

/* ═══ CTA BAND ═══ */
.cta-band {
  padding: 8rem 0; text-align: center;
  background: linear-gradient(135deg, rgba(124,45,107,0.06) 0%, transparent 50%);
  border-top: 1px solid var(--border);
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { margin-bottom: 2.5rem; font-size: 1.05rem; }

/* ═══ PAGE HERO ═══ */
.page-hero { padding: 120px 2rem 64px; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.page-title { margin: 1rem 0 1.5rem; }
.page-subtitle { max-width: 620px; font-size: 1.18rem; line-height: 1.7; }

/* ═══ ABOUT ═══ */
.about-mission { padding: 8rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.about-text { }
.about-text h2 { margin: 1rem 0 1.5rem; }
.about-text p { margin-bottom: 1.2rem; }
.about-values { display: flex; flex-direction: column; gap: 2rem; }
.value-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.value-icon { font-size: 1.4rem; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.value-item h4 { font-family: var(--font-ui); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.05em; color: var(--text-primary); margin-bottom: 0.4rem; }
.value-item p { font-size: 0.98rem; }

.team-section { padding: 4rem 0 8rem; background: var(--bg-surface); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 2.5rem; transition: border-color var(--transition); }
.team-card:hover { border-color: var(--border-accent); }
.team-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--gold-dim); border: 1px solid var(--border-accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-ui); font-weight: 700; font-size: 0.85rem; color: var(--gold); margin-bottom: 1.2rem; }
.team-card h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.team-role { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; margin-bottom: 1rem; }
.team-card p { font-size: 0.98rem; margin-bottom: 1.5rem; }
.team-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.team-tags span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--border); padding: 3px 8px; border-radius: 2px; }

.numbers-section { padding: 6rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.number-val { display: block; font-family: var(--font-display); font-size: 3.5rem; font-weight: 300; color: var(--gold); line-height: 1; }
.number-val sup { font-size: 1.4rem; }
.number-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.5rem; }

/* ═══ CONTACT ═══ */
.contact-section { padding: 6rem 0 8rem; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; }
.contact-info h2 { font-size: 2rem; margin-bottom: 1rem; }
.contact-intro { font-size: 1.05rem; line-height: 1.7; margin-bottom: 2.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.contact-detail-item { display: flex; gap: 1rem; align-items: flex-start; }
.detail-icon { color: var(--gold); font-size: 0.8rem; margin-top: 4px; flex-shrink: 0; }
.contact-detail-item h4 { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.contact-detail-item a, .contact-detail-item span { font-size: 1rem; color: var(--text-primary); }
.contact-detail-item a:hover { color: var(--gold); }
.response-promise { background: var(--gold-dim); border: 1px solid var(--border-accent); border-radius: var(--radius); padding: 1.2rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.promise-icon { color: var(--gold); font-size: 1.2rem; flex-shrink: 0; }
.response-promise p { font-size: 0.96rem; color: var(--text-secondary); }

.contact-form-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 3rem; }
.form-error-banner { background: rgba(200,60,60,0.12); border: 1px solid rgba(200,60,60,0.3); color: #f87171; padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: 0.88rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.required { color: var(--gold); }
.form-group input, .form-group textarea {
  background: var(--bg-base); border: 1px solid var(--border);
  color: var(--text-primary); padding: 12px 16px;
  border-radius: var(--radius); font-family: var(--font-ui); font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; width: 100%; resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(124,45,107,0.1); }
.form-group input.input-validation-error, .form-group textarea.input-validation-error { border-color: rgba(200,60,60,0.5); }
.field-error { font-size: 0.78rem; color: #f87171; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.privacy-note { font-size: 0.78rem; color: var(--text-muted); }
.btn-submit { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.btn-arrow { transition: transform var(--transition); }
.btn-submit:hover .btn-arrow { transform: translateX(4px); }

.form-success { text-align: center; padding: 3rem 1rem; }
.success-icon { width: 56px; height: 56px; background: var(--gold-dim); border: 1px solid var(--border-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--gold); margin: 0 auto 1.5rem; }
.form-success h3 { font-size: 2rem; margin-bottom: 0.8rem; }
.form-success p { margin-bottom: 2rem; }

/* ═══ FOOTER ═══ */
.footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 5rem 2rem 2rem; }
.footer-container { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 6rem; padding-bottom: 4rem; border-bottom: 1px solid var(--border); }
.footer-brand .brand-mark { margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-top: 1rem; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .nav-brand { margin-bottom: 0.5rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col h4 { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.footer-col a, .footer-col span { font-size: 0.95rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { max-width: var(--max-width); margin: 2rem auto 0; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-mono { font-family: var(--font-mono); font-size: 0.72rem !important; color: var(--text-muted) !important; opacity: 0.5; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr; gap: 3rem; }
  .process-steps { flex-direction: column; gap: 2rem; }
  .process-connector { width: 1px; height: 40px; background: linear-gradient(180deg, var(--gold), transparent); margin: 0 0 0 0.5rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: 2rem; gap: 1.5rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 0; }
  .stat-divider { width: 60px; height: 1px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ═══ SHARED HELPERS ═══ */
.section-sub { max-width: 680px; font-size: 1.08rem; color: var(--text-secondary); margin-top: 1rem; }
.section-header .section-sub { margin-top: 1.2rem; }
[id] { scroll-margin-top: 100px; }

/* ═══ PROSE (narrative sections) ═══ */
.prose-section { padding: 4.5rem 0; }
.prose-section.alt { background: var(--bg-surface); }
.prose-block { max-width: 880px; margin: 0 auto; }
.prose-block h2 { margin: 1rem 0 1.6rem; }
.prose-block p { font-size: 1.18rem; line-height: 1.78; margin-bottom: 1.35rem; }
.prose-block p:last-child { margin-bottom: 0; }

/* ═══ PHASE DETAIL CARDS (Servizi) ═══ */
.phases { display: flex; flex-direction: column; gap: 1.5rem; }
.phase-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 2.75rem; transition: border-color var(--transition);
}
.phase-card:hover { border-color: var(--border-accent); }
.phase-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.phase-head h3 { font-size: 1.8rem; color: var(--text-primary); }
.phase-duration { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); letter-spacing: 0.06em; }
.phase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.phase-block h4 { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.8rem; }
.phase-block p { font-size: 1rem; line-height: 1.7; }
.phase-block.full { grid-column: 1 / -1; }
.do-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.do-list li { font-size: 1rem; color: var(--text-secondary); line-height: 1.65; padding-left: 1.4rem; position: relative; }
.do-list li::before { content: '→'; position: absolute; left: 0; color: var(--gold); }
.pro-con { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; grid-column: 1 / -1; }
.pro-con ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.pro-con li { font-size: 0.98rem; color: var(--text-secondary); line-height: 1.6; padding-left: 1.4rem; position: relative; }
.pro-col li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); }
.con-col li::before { content: '✕'; position: absolute; left: 0; color: var(--text-muted); }

/* ═══ SECTOR BLOCKS (Servizi) ═══ */
.sectors { display: flex; flex-direction: column; gap: 1.5rem; }
.sector-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 2.75rem; }
.sector-block > h3 { font-size: 1.6rem; color: var(--text-primary); margin-bottom: 0.4rem; }
.sector-scope { font-size: 0.86rem; color: var(--gold); margin-bottom: 1.8rem; }
.sector-block h4 { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin: 1.6rem 0 0.8rem; }
.sector-block p { font-size: 1.04rem; line-height: 1.75; margin-bottom: 1rem; }
.usecase-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 2rem; }
.usecase-list li { font-size: 1rem; color: var(--text-secondary); padding-left: 1.4rem; position: relative; line-height: 1.55; }
.usecase-list li::before { content: '◆'; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 3px; }

/* ═══ NO-FIT LIST (Cose che non facciamo) ═══ */
.nofit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.nofit-item { background: var(--bg-card); border: 1px solid var(--border); border-left: 2px solid var(--text-muted); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.nofit-item strong { display: block; font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.nofit-item p { font-size: 1rem; line-height: 1.65; }

/* ═══ GUIDE INDEX ═══ */
.guide-section { padding: 7rem 0; }
.guide-rail { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin: 3rem 0 1.2rem; }
.guide-rail:first-of-type { margin-top: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.guide-card { background: var(--bg-card); padding: 2.5rem; transition: background var(--transition); display: flex; flex-direction: column; }
.guide-card:hover { background: var(--bg-card-hover); }
.guide-card.featured { grid-column: 1 / -1; background: var(--bg-card-hover); position: relative; }
.guide-grid > .guide-card:last-child:nth-child(odd):not(.featured) { grid-column: 1 / -1; }
.guide-card.featured::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--border-accent); pointer-events: none; }
.guide-card.coming { opacity: 0.7; }
.guide-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.guide-card h3 { font-size: 1.35rem; color: var(--text-primary); margin-bottom: 0.9rem; line-height: 1.25; }
.guide-card.featured h3 { font-size: 1.7rem; }
.guide-card p { font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; flex: 1; }
.guide-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.guide-time { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-muted); }
.guide-link { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); }
.guide-link:hover { color: var(--gold-light); }

.team-grid.duo { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
.team-link { display: inline-block; margin-top: 1.2rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); }
.team-link:hover { color: var(--gold-light); }

@media (max-width: 1024px) {
  .phase-grid { grid-template-columns: 1fr; }
  .team-grid.duo { grid-template-columns: 1fr; max-width: 480px; }
  .pro-con { grid-template-columns: 1fr; }
  .usecase-list { grid-template-columns: 1fr; }
  .nofit-list { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
}

/* Hero email contact link */
.hero-actions a[href^="mailto"] {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
    user-select: text;
}
.hero-actions a[href^="mailto"]:hover { opacity: 0.75; }

/* CTA band email link (plain text link, not buttons) */
.cta-band a[href^="mailto"]:not(.btn-primary):not(.btn-ghost) {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 1px;
    font-family: var(--font-mono);
    font-size: 1rem;
}
.cta-band a[href^="mailto"]:not(.btn-primary):not(.btn-ghost):hover { opacity: 0.75; }

/* ═══════════════════════════════════════════════
   ACCENT VARIATIONS — sage green + peach
   Break monotony of the coral-only accent system
   ═══════════════════════════════════════════════ */

/* Alternate "alt" prose sections between cream and peach tint */
.prose-section.alt { background: var(--peach-tint); }
.prose-section.alt + .prose-section.alt { background: var(--bg-surface); }

/* Service grid: rotate sage on the middle column / every 3rd icon */
.services-grid .service-card:nth-child(3n+2) .service-icon { color: var(--sage); }

/* Process: alternate step accents and end gradient with sage */
.process-step:nth-child(even) .step-number { color: var(--sage); }
.process-connector { background: linear-gradient(90deg, var(--gold), var(--sage) 60%, transparent); opacity: 0.65; }

/* About: value icons sit in sage instead of coral */
.value-item .value-icon { color: var(--sage); }
.value-item:nth-child(3n) .value-icon { color: var(--gold); }

/* Hero stats / numbers section: rotate accents */
.hero-stats .stat-item:nth-child(3) .stat-num { color: var(--sage); }
.numbers-section .numbers-grid > *:nth-child(even) .number-val { color: var(--sage-dark); }

/* Phase cards (Lavori page): rotate left-border accent on hover */
.phase-card:nth-child(even):hover { border-color: rgba(90,139,184,0.35); }

/* Team cards: avatar varies */
.team-grid .team-card:nth-child(even) .team-avatar {
  background: var(--sage-dim);
  border-color: rgba(90,139,184,0.35);
  color: var(--sage-dark);
}
.team-grid .team-card:nth-child(even) .team-role { color: var(--sage-dark); }

/* CTA band: dual gradient corallo→salvia for richer background */
.cta-band {
  background: linear-gradient(135deg, rgba(124,45,107,0.07) 0%, transparent 45%, rgba(90,139,184,0.06) 100%);
}

/* Featured guide card: switch border accent to sage for one extra hue */
.guide-card.featured::before { border-color: rgba(90,139,184,0.35); }
.guide-card.featured .guide-eyebrow { color: var(--sage-dark); }

/* First prose section after a page hero: subtle cream-warm intro tint */
.page-hero + .prose-section { background: var(--cream-warm); }

/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
  /* Generic fade-up — applied by JS to cards, headers, prose blocks */
  .reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  .reveal-up.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  /* Hero entrance — animate on page load (no IntersectionObserver needed,
     these are above the fold) */
  .hero-eyebrow,
  .hero-title,
  .hero-sub,
  .hero-actions,
  .page-hero .section-tag,
  .page-title,
  .page-subtitle {
    animation: hero-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .hero-eyebrow,
  .page-hero .section-tag { animation-delay: 0.05s; }
  .hero-title,
  .page-title { animation-delay: 0.15s; }
  .hero-sub,
  .page-subtitle { animation-delay: 0.28s; }
  .hero-actions { animation-delay: 0.42s; }

  /* Subtle continuous drift on background orbs */
  .hero-orb-1 { animation: orb-drift-1 22s ease-in-out infinite; }
  .hero-orb-2 { animation: orb-drift-2 26s ease-in-out infinite; }

  /* Cards lift slightly on hover (extra polish on top of existing bg change) */
  .service-card,
  .guide-card,
  .phase-card,
  .team-card {
    transition: background var(--transition),
                transform var(--transition),
                border-color var(--transition);
  }
  .service-card:hover,
  .guide-card:hover,
  .phase-card:hover,
  .team-card:hover {
    transform: translateY(-3px);
  }
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(30px, -20px); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-25px, 18px); }
}
