/* ===========================
   STEO - Industrial Kinetic Design System
   Light Theme | v2.0
   =========================== */

/* ── Font: Inter, ospitato in locale (non più da Google Fonts) ──
   Font variabile: un solo file copre i pesi 300–800 usati nel sito.
   Motivo: caricare font direttamente da Google trasmette l'IP del
   visitatore a Google ad ogni visita — ospitandolo qui evitiamo la
   richiesta di terze parti (e il relativo problema di consenso GDPR). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-var-latin.woff2') format('woff2');
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --navy:        #0B1622;
  --green:       #2ECC71;           /* decorative only — fails contrast on white */
  --green-dark:  #27ae60;           /* large-text ok (2.75:1), fails small */
  --green-text:  #166534;           /* ≥4.5:1 on white — use for all text */
  --green-btn:   #19a356;           /* ≥3:1 on white (large btn text) */
  --white:       #FFFFFF;
  --gray-bg:     #F7F9FB;
  --gray-light:  #F2F4F6;
  --gray-border: #E2E8F0;
  --slate:       #475569;
  --slate-light: #94A3B8;
  --error:       #BA1A1A;

  /* Typography — Inter exclusively (brand identity) */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radius */
  --r-sm:  0.25rem;
  --r-md:  0.5rem;
  --r-lg:  0.75rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(11,22,34,0.08);
  --shadow-md:  0 4px 6px -1px rgba(11,22,34,0.10), 0 2px 4px -1px rgba(11,22,34,0.06);
  --shadow-lg:  0 10px 15px -3px rgba(11,22,34,0.10), 0 4px 6px -2px rgba(11,22,34,0.05);

  /* Layout */
  --container: 1280px;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }


/* ── Utility ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 80px;
}

/* text-green uses accessible dark green (6.4:1 on white) */
.text-green { color: var(--green-text); }
.text-slate  { color: var(--slate); }

/* ── Visually Hidden (screen-reader only) ── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -48px; left: 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px; font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── Global focus-visible ── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}
/* On dark backgrounds */
.navbar-dark :focus-visible,
.cta-section :focus-visible,
.footer :focus-visible,
.chat-header :focus-visible {
  outline-color: var(--green);
}

.section-tag {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-text);          /* accessible dark green */
  background: rgba(22,101,52,0.08);
  border: 1px solid rgba(22,101,52,0.2);
  border-radius: var(--r-full);
  padding: 4px 12px;
  margin-bottom: 16px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: #1a2d45;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-action {
  background: var(--green-btn);   /* #19a356 — white text passes 3:1 for large btn text */
  color: var(--white);
}
.btn-action:hover {
  background: var(--green-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-lg { padding: 16px 32px; font-size: 15px; }

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-border);
  z-index: 1000;
  transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.nav-logo { grid-column: 1; justify-self: start; display: flex; align-items: center; }
.nav-logo img { height: 52px; width: auto; }

.nav-links {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy);
  background: var(--gray-light);
}

.nav-cta, .mobile-toggle { grid-column: 3; justify-self: end; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  font-size: 24px;
  padding: 4px;
  margin-left: auto;
}

/* ── Hero ── */
.hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 96px;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(46,204,113,0.07) 0%, transparent 55%),
    radial-gradient(circle, rgba(11,22,34,0.035) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  position: relative;
  overflow: hidden;
}

/* Decorative ring behind chat mockup */
.hero-accent-ring {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 2px solid rgba(46,204,113,0.18);
  top: 50%;
  left: 50%;
  transform: translate(-20%, -50%);
  pointer-events: none;
}
.hero-accent-ring::after {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(46,204,113,0.10);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(46,204,113,0.08);
  border: 1px solid rgba(46,204,113,0.2);
  border-radius: var(--r-full);
  padding: 5px 14px;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--navy);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Accent ring — posizionato rispetto a hero-visual, non al hero */
.hero-visual .hero-accent-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.hero-visual .chat-mockup {
  position: relative;
  z-index: 1;
  animation: hero-mockup-float 6s ease-in-out infinite;
  animation-delay: 1.1s;
}

/* Ambient glow blobs — depth behind the mockup, deliberately more visible
   than a texture (the previous WebGL aurora was scrapped for being too
   subtle to register). Pure CSS, no canvas/JS needed. */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.hero-glow-1 {
  width: 320px;
  height: 320px;
  top: -50px;
  right: -70px;
  background: radial-gradient(circle, rgba(46,204,113,0.5), transparent 70%);
  animation: hero-glow-drift-1 9s ease-in-out infinite alternate;
}
.hero-glow-2 {
  width: 260px;
  height: 260px;
  bottom: -40px;
  left: -50px;
  background: radial-gradient(circle, rgba(11,22,34,0.32), transparent 70%);
  animation: hero-glow-drift-2 11s ease-in-out infinite alternate;
}

/* Floating trust chip — reinforces a concrete claim, not just decoration */
.hero-float-chip {
  position: absolute;
  top: -18px;
  right: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--r-full);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-text);
  box-shadow: var(--shadow-md);
  animation: hero-chip-float 5s ease-in-out infinite;
  animation-delay: 1.3s;
}
.hero-float-chip.hero-entrance-fade { transition-delay: 620ms; }

@keyframes hero-mockup-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes hero-chip-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@keyframes hero-glow-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-20px, 24px) scale(1.12); }
}
@keyframes hero-glow-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(18px, -20px) scale(1.08); }
}

/* Chat preview mockup */
.chat-mockup {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}
.chat-mockup-header {
  background: var(--navy);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-mockup-header-text { flex: 1; }
.chat-mockup-name { font-size: 14px; font-weight: 600; color: var(--white); }
.chat-mockup-status { font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 4px; }
.chat-mockup-status::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }

.chat-mockup-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.chat-bubble { padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; max-width: 85%; }
.chat-bubble-bot { background: var(--gray-light); color: var(--navy); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-bubble-user { background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-mockup-input { border-top: 1px solid var(--gray-border); padding: 12px 16px; display: flex; gap: 8px; align-items: center; }
.chat-mockup-input input { flex: 1; border: 1px solid var(--gray-border); border-radius: var(--r-full); padding: 8px 14px; font-size: 13px; font-family: var(--font); color: var(--navy); outline: none; background: var(--gray-bg); }
.chat-mockup-send { background: var(--green); border: none; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: white; font-size: 16px; flex-shrink: 0; }

/* ── Hero extras ── */
.hero-chat-hint {
  font-size: 13px;
  color: var(--slate);
  margin-top: 12px;
}
.link-btn {
  background: none;
  border: none;
  color: var(--navy);
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { color: var(--green-text); }

/* ── Editorial page lead (pagine interne) ── */
.page-lead {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 64px;
  background: var(--gray-bg);
  border-bottom: 1px solid var(--gray-border);
}
.page-lead-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: 22px;
}
.page-lead-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
}
.page-lead-title {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 780px;
  margin-bottom: 20px;
}
.page-lead-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 620px;
}
.page-lead-rule {
  height: 1px;
  background: var(--gray-border);
  margin: 34px 0 26px;
  max-width: 620px;
}
.page-lead-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 15px;
  color: var(--slate);
}
.page-lead-proof b { color: var(--navy); font-weight: 700; }
.page-lead-proof .sep { color: var(--gray-border); }
.page-lead-meta { font-size: 14px; color: var(--slate-light); }

@media (max-width: 640px) {
  .page-lead { padding-bottom: 48px; }
  .page-lead-title { font-size: 32px; }
  .page-lead-proof { gap: 8px 14px; font-size: 14px; }
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--navy);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(46,204,113,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.stats-attribution {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 40px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
.stat-item {
  padding: 0 40px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 80px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
}

/* ── Section Base ── */
section { padding: 96px 0; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--slate);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* data-num usato solo per HTML semantics — numeri decorativi rimossi */
[data-num] { position: relative; }
[data-num] > .container { position: relative; z-index: 1; }

/* ── Services / Cards ── */
.services-section { background: var(--gray-bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-left: 3px solid transparent;
  border-radius: var(--r-md);
  padding: 40px 32px;
  transition: border-left-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

/* Numero decorativo grande (sfondo) */
.service-card:hover {
  border-left-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ── Tutte le card nella sezione homepage → navy, uniformi ── */
.services-section .service-card {
  background: var(--navy);
  border-color: var(--navy);
  border-left-color: transparent;
}
.services-section .service-card:hover {
  border-left-color: var(--green);
  box-shadow: 0 8px 24px rgba(11,22,34,0.3);
}
.services-section .service-card .service-icon {
  background: rgba(46,204,113,0.15);
  color: var(--green);
}
.services-section .service-card .service-title  { color: var(--white); }
.services-section .service-card .service-desc   { color: rgba(255,255,255,0.6); }
.services-section .service-card .service-list li { color: rgba(255,255,255,0.6); }
.services-section .service-card .service-link   { color: var(--green); }

.service-icon {
  width: 48px; height: 48px;
  background: rgba(46,204,113,0.10);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--green-dark);
  flex-shrink: 0;
}

/* Landing page service cards only — icon + title centered, not left-aligned */
.services-grid .service-icon {
  align-self: center;
}
.services-grid .service-title {
  text-align: center;
}

.service-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
}

.service-desc {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
  flex: 1;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: 14px;
  color: var(--slate);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.service-list li::before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%232ECC71' fill-opacity='0.15'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%2327ae60' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 8px;
  transition: gap 0.15s;
}
.service-link:hover { gap: 10px; }

/* ── How It Works ── */
.how-section { background: var(--white); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px; left: calc(100% / 6);
  width: calc(100% * 2 / 3);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gray-border), var(--gray-border), transparent);
}

.step-item { text-align: center; }
.step-number {
  width: 56px; height: 56px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}
.step-number.active {
  background: var(--navy);
  color: var(--white);
}
/* Connector line — subtle gradient */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(100% / 6);
  width: calc(100% * 2 / 3);
  height: 1px;
  background: linear-gradient(to right, var(--green), rgba(46,204,113,0.2));
}
.step-title { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.step-desc { font-size: 15px; color: var(--slate); line-height: 1.7; }

/* ── Case Study ── */
.case-section { background: var(--gray-bg); }

.case-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--r-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.case-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--gray-light);
  border-radius: var(--r-full);
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 16px;
}
.case-title { font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 16px; line-height: 1.2; }
.case-subtitle { font-size: 16px; color: var(--slate); margin-bottom: 32px; line-height: 1.6; }

.case-problem, .case-solution {
  margin-bottom: 24px;
}
.case-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 8px;
}
.case-text { font-size: 15px; color: var(--slate); line-height: 1.7; }

.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.case-stat {
  background: var(--gray-bg);
  border-radius: var(--r-md);
  padding: 20px;
  border: 1px solid var(--gray-border);
}
.case-stat-num { font-size: 32px; font-weight: 700; color: var(--green-dark); line-height: 1; }
.case-stat-label { font-size: 13px; color: var(--slate); margin-top: 4px; }

.case-quote {
  background: var(--navy);
  border-radius: var(--r-md);
  padding: 32px;
  color: var(--white);
  margin-top: 32px;
}
.case-quote-text { font-size: 16px; line-height: 1.7; font-style: italic; margin-bottom: 16px; color: rgba(255,255,255,0.85); }
.case-quote-author { font-size: 14px; font-weight: 600; color: var(--green); }

/* ── About / Team ── */
.about-section { background: var(--white); padding: 80px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text h2 { font-size: 36px; font-weight: 700; color: var(--navy); margin-bottom: 24px; line-height: 1.2; }
.about-text p { font-size: 16px; color: var(--slate); line-height: 1.8; margin-bottom: 16px; }

.founders-row { display: flex; gap: 24px; max-width: 840px; margin: 0 auto; }
.team-card {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--r-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  transition: box-shadow 0.2s;
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-avatar-img {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  border: 1px solid var(--gray-border);
  flex-shrink: 0;
  margin-bottom: 16px;
}
.team-info { width: 100%; }
.team-name { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--green-dark); font-weight: 500; margin-bottom: 10px; }
.team-bio { font-size: 14px; color: var(--slate); line-height: 1.6; }

/* ── CTA Section ── */
.cta-section {
  background: var(--navy);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(46,204,113,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-title { font-size: 40px; font-weight: 700; color: var(--white); margin-bottom: 16px; line-height: 1.2; }
.cta-subtitle { font-size: 18px; color: rgba(255,255,255,0.65); margin-bottom: 40px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-cta-white { background: var(--white); color: var(--navy); }
.btn-cta-white:hover { background: var(--gray-bg); }
.btn-cta-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-cta-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

/* ── Contact Section — split panel ── */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  align-items: stretch;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(11,22,34,0.14), 0 6px 20px rgba(11,22,34,0.08);
}

/* ── Left panel: navy ── */
.contact-info {
  background: var(--navy);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* Decorative radial sul panel scuro */
.contact-info::before {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(46,204,113,0.12);
  pointer-events: none;
}
.contact-info::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(46,204,113,0.05);
  pointer-events: none;
}
.contact-info .section-tag {
  color: var(--green);
  background: rgba(46,204,113,0.12);
  border-color: rgba(46,204,113,0.2);
  margin-bottom: 20px;
}
.contact-info h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.contact-info .text-green { color: var(--green); }
.contact-info > p {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-detail-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--green);
  flex-shrink: 0;
}
.contact-detail-text p {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2px;
}
.contact-detail-text a,
.contact-detail-text span {
  font-size: 14px;
  color: var(--white);
  font-weight: 500;
}
.contact-detail-text a:hover { color: var(--green); }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 40px;
}
.social-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  transition: all 0.15s;
}
.social-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

/* ── Right panel: form — bianco puro per "interagibile" ── */
.contact-form {
  background: var(--white);
  padding: 56px 48px;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
/* Campi su grigio chiaro per contrasto con il panel bianco */
.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
  background: var(--gray-bg);
}
.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
  background: var(--white);
}
.form-title { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--gray-border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,22,34,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--slate-light); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }
.form-submit { width: 100%; margin-top: 8px; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success-icon { font-size: 48px; color: var(--green); margin-bottom: 16px; }
.form-success h3 { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-success p { font-size: 15px; color: var(--slate); }

/* ── Errore invio form — deve essere impossibile non notarlo ── */
.form-error-summary:not(.visually-hidden) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(186,26,26,0.08);
  border: 1px solid var(--error);
  border-radius: var(--r-sm);
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.form-error-summary i { font-size: 18px; flex-shrink: 0; }
.form-error-summary .form-error-text { flex: 1; }

/* ── Footer ── */
.footer {
  background: var(--navy);
  padding: 64px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copyright { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: all 0.15s;
}
.footer-social a:hover { background: rgba(255,255,255,0.08); color: var(--white); }

/* ── Chatbot Float ── */
.chatbot-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1002;
}

.chatbot-icon {
  width: 92px; height: 92px;
  position: relative;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
  background: none;
  border: none;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}
.chatbot-icon:hover {
  transform: scale(1.06);
}

/* ── Otto: icona animata del pulsante flottante ── */
#otto-svg {
  width: 82%; height: 82%;
  cursor: pointer;
  overflow: visible;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.otto-face-path { fill: var(--green); }
.otto-ring-path { fill: var(--navy); }
.otto-outline-path { fill: none; stroke: var(--green); stroke-width: 2.2; }
#otto-eyes path, #otto-smile path { fill: var(--navy); }
#otto-eyes { transition: transform 0.12s ease-out; }

.otto-eye {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: otto-blink 3s ease-in-out infinite;
  fill: var(--navy);
  stroke: var(--green);
  stroke-width: 1.4;
  paint-order: stroke fill;
}
@keyframes otto-blink {
  0%   { transform: scaleY(1); }
  3.3% { transform: scaleY(0.2); }
  6.7% { transform: scaleY(1); }
  100% { transform: scaleY(1); }
}

/* Avatar statico nell'header della chat: nessuna animazione, l'occhiolino
   è già "disegnato" nell'illustrazione (un occhio chiuso), non animato. */
.chat-avatar-header .otto-eye { animation: none; }

/* Rotazione testa: due giri completi (720°) in un ciclo di 10.5s.
   La rotazione vera e propria dura solo la prima parte del ciclo
   (~2.8s), poi la testa resta ferma fino al giro successivo. */
.otto-head-spin {
  transform-box: view-box;
  transform-origin: 433.279px 158.513px;
  animation: otto-spin 10.5s ease-in-out infinite;
}
@keyframes otto-spin {
  0%    { transform: rotate(0deg);   animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0.5); }
  3%    { transform: rotate(60deg);  animation-timing-function: cubic-bezier(0.3, 0.31, 0.6, 0.82); }
  20%   { transform: rotate(720deg); animation-timing-function: ease-out; }
  21.5% { transform: rotate(735deg); animation-timing-function: ease-in-out; }
  23%   { transform: rotate(710deg); animation-timing-function: ease-in-out; }
  24.5% { transform: rotate(726deg); animation-timing-function: ease-in-out; }
  26%   { transform: rotate(717deg); animation-timing-function: ease-in-out; }
  27%   { transform: rotate(720deg); }
  100%  { transform: rotate(720deg); }
}

/* Rotazione ferma (stato "attivo" dopo un click sull'icona) */
#otto-svg.spin-stopped .otto-head-spin {
  animation: none;
}

/* Saltello con rimbalzo al click */
#otto-svg.otto-bounce {
  animation: otto-jump 0.9s linear;
}
@keyframes otto-jump {
  0%   { transform: translateY(0);     animation-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1); }
  20%  { transform: translateY(-34px); animation-timing-function: cubic-bezier(0.65, 0, 0.8, 0.4); }
  45%  { transform: translateY(0);     animation-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1); }
  62%  { transform: translateY(-14px); animation-timing-function: cubic-bezier(0.65, 0, 0.8, 0.4); }
  78%  { transform: translateY(0);     animation-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1); }
  89%  { transform: translateY(-5px);  animation-timing-function: cubic-bezier(0.65, 0, 0.8, 0.4); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #otto-svg, .otto-eye, .otto-head-spin { animation: none; }
}

/* Chat Window */
.chatbot-window {
  position: absolute;
  bottom: 76px; right: 0;
  width: 360px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92) translateY(16px);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  height: min(600px, calc(100vh - 120px));
}
.chatbot-window.open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}


.chat-header {
  background: var(--navy);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar-wrap { position: relative; flex-shrink: 0; display: inline-flex; }
.chat-avatar-header { height: 40px; width: auto; display: block; overflow: visible; }
.chat-title-group { flex: 1; }
.chat-title-name { font-size: 14px; font-weight: 600; color: var(--white); }
.chat-title-status { font-size: 11px; color: var(--green); }
.chat-close-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.5); font-size: 18px;
  transition: color 0.15s; padding: 2px;
}
.chat-close-btn:hover { color: var(--white); }

.chat-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  min-height: 0;
}

.message { font-size: 14px; line-height: 1.5; padding: 10px 14px; border-radius: 12px; max-width: 85%; }
.bot-message { background: var(--gray-light); color: var(--navy); border-bottom-left-radius: 4px; align-self: flex-start; }
.user-message { background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }

.msg-time {
  float: right;
  font-size: 10.5px;
  line-height: 1.5;
  margin: 4px 0 -2px 10px;
  color: rgba(11,22,34,0.45);
}
.user-message .msg-time, .chat-bubble-user .msg-time { color: rgba(255,255,255,0.55); }

.chat-footer {
  border-top: 1px solid var(--gray-border);
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  border: 1px solid var(--gray-border);
  border-radius: var(--r-full);
  padding: 8px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--navy);
  resize: none;
  outline: none;
  max-height: 100px;
  line-height: 1.4;
  background: var(--gray-bg);
}
.chat-input:focus { border-color: var(--navy); }
.chat-send-btn {
  background: var(--green);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--white);
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.chat-send-btn:hover { background: var(--green-dark); }

/* Typing indicator */
.typing-indicator { display: flex; align-items: center; gap: 4px; padding: 12px 16px; }
.typing-dot { width: 6px; height: 6px; background: var(--slate-light); border-radius: 50%; animation: typing 1.2s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }

/* ── Navbar scroll ── */
.navbar { transition: box-shadow 0.2s; }

/* ── Privacy note ── */
.form-privacy-note {
  font-size: 12px;
  color: var(--slate-light);
  margin-top: 10px;
  line-height: 1.5;
}
.form-privacy-note a { color: var(--slate); text-decoration: underline; text-underline-offset: 2px; }

/* ── Checkbox di consenso (form contatti) ── */
.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 4px;
}
.form-group-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}
.form-group-checkbox label {
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--slate-light);
  line-height: 1.5;
  cursor: pointer;
}
.form-group-checkbox label a { color: var(--slate); text-decoration: underline; text-underline-offset: 2px; }
.form-group-checkbox label a:hover { color: var(--navy); }

/* ── Disclaimer accuratezza/dati sensibili in cima alla chat OTTO ── */
.chat-disclaimer {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 10.5px;
  color: var(--slate-light);
  line-height: 1.35;
}
.chat-disclaimer i { font-size: 13px; color: var(--slate-light); flex-shrink: 0; }

/* ── Nota privacy nella chat OTTO ── */
.chat-privacy-note {
  font-size: 11px;
  color: var(--slate-light);
  text-align: center;
  padding: 0 16px 12px;
  line-height: 1.4;
}
.chat-privacy-note a { color: var(--slate); text-decoration: underline; text-underline-offset: 2px; }
.chat-privacy-note a:hover { color: var(--navy); }
.form-privacy-note a:hover { color: var(--navy); }

/* ── Mobile ── */
@media (max-width: 1024px) {
  .container { padding: 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .case-card { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .founders-row { flex-direction: column; max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { padding: 40px 32px; }
  .contact-info::before, .contact-info::after { display: none; }
  .contact-form { padding: 40px 32px; }
  .social-row { padding-top: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    justify-self: auto;
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    right: 20px;
    left: auto;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 10px;
    gap: 2px;
    z-index: 999;
  }
  .nav-links.open li a { padding: 10px 12px; display: block; }
  .nav-cta { display: none; }
  .mobile-toggle { display: flex; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; }

  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
  .section-title { font-size: 28px; }
  .cta-title { font-size: 28px; }
  .stat-number { font-size: 56px; }
  [data-num]::after { display: none; } /* numeri decorativi nascosti su mobile */

  .services-grid { grid-template-columns: 1fr; }
  .case-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* Il marchio resta a piena larghezza, le 3 colonne di link si affiancano
     a due a due invece di impilarsi una sopra l'altra: il footer resta
     compatto e Otto non finisce a coprire i link durante lo scroll. */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Il copyright ora include la P.IVA ed è troppo lungo per stare su una
     riga accanto alle icone social (spazio insufficiente su mobile) —
     impilati verticalmente invece di lasciare che il testo vada a capo
     in modo scomposto dentro il layout a riga. */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Spazio riservato in fondo, altrimenti il pulsante flottante di Otto
     si sovrappone al copyright e alle icone social. */
  .footer { padding-bottom: 140px; }

  .chatbot-window {
    position: fixed;
    top: 16px; left: 16px; right: 16px; bottom: 16px;
    width: auto;
    height: auto;
    transform: scale(0.92);
    transform-origin: center;
  }
  .chatbot-window.open { transform: scale(1); }

  /* La finestra occupa quasi tutto lo schermo: il pulsante flottante
     sotto andrebbe a sovrapporsi all'angolo, quindi si nasconde. */
  .chatbot-window.open ~ .chatbot-icon {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
  }
}

/* ── Decorative circles — riutilizzabile su sfondo navy ── */
/* Aggiungere <div class="deco-circles" aria-hidden="true"></div>
   come primo figlio di qualsiasi sezione navy con position:relative e overflow:hidden */
.deco-circles {
  position: absolute;
  bottom: -70px;
  right: -70px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(46,204,113,0.12);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.deco-circles::before {
  content: '';
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  background: rgba(46,204,113,0.06);
}
/* Variante sinistra (per sezioni con testo a destra) */
.deco-circles--left {
  bottom: -70px;
  right: auto;
  left: -70px;
}

/* ── Page Transition Overlay ── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.36s ease;
  pointer-events: all;
}
.page-transition.out {
  opacity: 0;
  pointer-events: none;
}

/* ── Scroll Reveal ── */
.will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.will-reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ── Hero entrance (first-load cascade, not scroll-triggered) ──
   .hero-title lines are masked and slide up from below their own line
   box (feels editorial, avoids the flat fade+slide look). Other hero
   elements fade/scale/pop in with an "expo-out" ease for a smoother,
   more deliberate deceleration than a linear ease. Delays are set per
   element below so a single ".revealed" toggle on .hero-grid animates
   everything in a staggered sequence. */
.hero-title .line-mask { display: block; overflow: hidden; }
.hero-title .line-inner {
  display: block;
  transform: translateY(112%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-grid.revealed .hero-title .line-mask:nth-of-type(1) .line-inner { transform: none; transition-delay: 60ms; }
.hero-grid.revealed .hero-title .line-mask:nth-of-type(2) .line-inner { transform: none; transition-delay: 170ms; }

.hero-entrance-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-grid.revealed .hero-entrance-fade { opacity: 1; transform: none; }

.hero-entrance-scale {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 200ms;
}
.hero-grid.revealed .hero-entrance-scale { opacity: 1; transform: none; }

.hero-entrance-pop {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 420ms;
}
.hero-grid.revealed .hero-entrance-pop { opacity: 1; transform: none; }

.hero-subtitle.hero-entrance-fade { transition-delay: 320ms; }

/* ── Chatbot bounce hint ── */
@keyframes bounce-hint {
  0%, 100% { transform: scale(1); }
  30%       { transform: scale(1.12); }
  60%       { transform: scale(0.95); }
}
.chatbot-icon.bounce-hint {
  animation: bounce-hint 0.7s ease forwards;
}

/* ── Touch targets: min 44×44px ── */
.nav-links a,
.chat-close-btn,
.chat-send-btn,
.social-btn,
.footer-social a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-links a { min-height: 36px; padding-top: 8px; padding-bottom: 8px; } /* nav links can be slightly less */

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-badge .dot { animation: none; }
}

/* ── High contrast mode ── */
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .chatbot-icon { border: 2px solid ButtonText; }
}

/* ── Legal pages (privacy.html, termini.html) ── */
.legal-section { padding: 64px 0; }
.legal-container { max-width: 780px; }
.legal-block { margin-bottom: 48px; }
.legal-block .section-title { font-size: 1.4rem; margin-bottom: 16px; }
.legal-text { line-height: 1.8; color: var(--slate); }
.legal-text + .legal-text { margin-top: 16px; }
.legal-text a { color: var(--green-text); }
.legal-list { line-height: 2; color: var(--slate); padding-left: 24px; margin-top: 12px; }
.legal-footer-note { border-top: 1px solid var(--gray-border); padding-top: 24px; margin-top: 32px; }
.legal-footer-note p { color: var(--slate-light); font-size: 0.9rem; }
