/* =============================================================================
   GestAdmin landing — style.css
   Palette: estratta dal logo (toro blu cobalto su sfondo bianco)
   Stack: Vanilla CSS, font Inter (Google Fonts), nessun framework
   ============================================================================= */

/* =============================================================================
   1. RESET + TOKEN
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 0; list-style: none; margin: 0; }
button { font-family: inherit; }
code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-dim);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--primary-dark);
}

:root {
  /* =========================================================================
   * Palette ufficiale GestAdmin (4 shade blu monocromatica, dal logo).
   * Riferimento: palette-colori-per-il-sito-gestadmin.png
   * ========================================================================= */
  --primary:        #0C3A9E;  /* Dominant Blue - tutte le CTA e brand element */
  --primary-dark:   #071E6F;  /* Deep Navy Accent - hover, dark sections */
  --primary-darker: #050F4E;  /* derivato per ombre profonde */
  --primary-light:  #2E57A5;  /* Secondary Blue - gradient, hover soft */
  --primary-soft:   rgba(12, 58, 158, 0.08);
  --primary-glow:   rgba(12, 58, 158, 0.18);

  /* Accent = quarto blu della palette (Light Accent Blue),
   * usato per highlight, strike-through, badge informativi,
   * e dove prima c'era l'ambra. */
  --accent:         #6E94CA;
  --accent-dark:    #4B73B3;
  --accent-soft:    rgba(110, 148, 202, 0.18);

  /* Neutri */
  --ink:            #0f172a;
  --ink-mid:        #334155;
  --ink-soft:       #64748b;
  --border:         #e2e8f0;
  --border-soft:    #eef2f7;
  --surface-dim:    #f1f5f9;
  --bg:             #ffffff;
  --bg-dark:        #071E6F;   /* sezione scura ora usa Deep Navy della palette */

  /* Layout */
  --shell-max:      1160px;
  --shell-pad:      24px;
  --radius:         16px;
  --radius-sm:      10px;
  --shadow-sm:      0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md:      0 4px 20px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg:      0 24px 60px rgba(12, 58, 158, 0.18), 0 8px 24px rgba(12, 58, 158, 0.12);
}

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
}

/* =============================================================================
   2. TYPOGRAPHY
   ============================================================================= */
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow-dark { color: var(--primary-dark); }

.lead {
  font-size: 1.18rem;
  color: var(--ink-mid);
  line-height: 1.55;
  max-width: 56ch;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px auto;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-sub {
  font-size: 1.08rem;
  color: var(--ink-mid);
  margin-top: 14px;
}

/* Variante allineata a sinistra (usata nei .section-split con immagine a fianco) */
.section-head--left {
  text-align: left;
  max-width: 480px;
  margin: 0;
}
.section-head--left .section-sub { margin-left: 0; margin-right: 0; }

/* =============================================================================
   Section split: immagine + testo affiancati (usato nelle sezioni Stats/Tools/Steps)
   ============================================================================= */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}
.section-split--reverse .section-visual { order: 2; }
.section-split--reverse .section-head   { order: 1; }

.section-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  background: var(--primary-soft);
}
.section-visual img {
  display: block;
  width: 100%;
  height: auto;
  /* Mix soft con la palette: rinforza il blu, uniforma con l'identita' */
  transition: transform 0.5s ease;
}
.section-visual:hover img { transform: scale(1.02); }

/* Highlight inline su parole-chiave */
.hl {
  background: linear-gradient(180deg, transparent 60%, var(--primary-glow) 60%);
  padding: 0 4px;
}
.strike {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  color: var(--ink-soft);
  font-weight: 700;
}

/* =============================================================================
   3. BUTTONS
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-sm  { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg  { padding: 16px 28px; font-size: 1.05rem; }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(12, 58, 158, 0.32);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(12, 58, 158, 0.42);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.btn-ghost-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* =============================================================================
   4. TOPBAR sticky
   ============================================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.topbar.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.brand-text {
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.brand-text strong { color: var(--primary); font-weight: 900; }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-mid);
  transition: color 0.12s;
}
.nav a:hover { color: var(--primary); }

/* =============================================================================
   5. HERO
   ============================================================================= */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px) 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, var(--primary-soft) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 30%, rgba(110, 148, 202, 0.10) 0%, transparent 50%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  margin: 14px 0 22px 0;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 22px 0;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 8px;
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}
.hero-blob {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--primary-soft) 0%, transparent 70%);
  filter: blur(40px);
  border-radius: 50%;
}
.hero-bull {
  position: relative;
  max-width: 380px;
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(12, 58, 158, 0.25));
  animation: bullFloat 8s ease-in-out infinite;
}
@keyframes bullFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* =============================================================================
   6. STATS
   ============================================================================= */
.stats { padding: clamp(72px, 10vw, 110px) 0; background: var(--surface-dim); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
  transition: transform 0.18s, box-shadow 0.18s;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stat-big {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.stat-card p {
  color: var(--ink-mid);
  font-size: 1rem;
  margin: 0;
}

/* =============================================================================
   7. COMPARE prima/dopo
   ============================================================================= */
.compare { padding: clamp(72px, 10vw, 110px) 0; }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-col {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
}
.compare-col h3 {
  font-size: 1.15rem;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.compare-col ul li {
  position: relative;
  padding: 10px 0 10px 32px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--border-soft);
}
.compare-col ul li:last-child { border-bottom: none; }
.compare-col ul li::before {
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}
.compare-bad h3 { color: var(--ink-soft); }
.compare-bad ul li::before { content: '\2716'; background: #fee2e2; color: #b91c1c; }

.compare-good {
  border-color: var(--primary-glow);
  background: linear-gradient(180deg, white 0%, var(--primary-soft) 100%);
}
.compare-good h3 { color: var(--primary); }
.compare-good ul li::before { content: '\2713'; background: var(--primary); color: white; }

/* =============================================================================
   8. TOOLS
   ============================================================================= */
.tools { padding: clamp(72px, 10vw, 110px) 0; background: var(--surface-dim); }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tool-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tool-card--featured {
  background: linear-gradient(180deg, white 0%, var(--primary-soft) 100%);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--primary-glow);
}
.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.tool-icon svg { width: 26px; height: 26px; }
.tool-card h3 { margin-bottom: 12px; }
.tool-card > p {
  color: var(--ink-mid);
  font-size: 0.98rem;
  margin-bottom: 18px;
}
.tool-bullets {
  margin: 0 0 24px 0;
  padding: 0;
}
.tool-bullets li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 0.92rem;
  color: var(--ink-mid);
}
.tool-bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.tool-card .btn { align-self: flex-start; margin-bottom: 14px; }

/* Box credenziali demo dentro la tool-card featured.
 * Stile: pannello con sfondo scuro (palette primary-dark), font monospace
 * sul valore della credenziale, chiaro che e' "info da copiare". */
.demo-creds {
  background: var(--primary-dark);
  color: white;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0 0 18px 0;
}
.demo-creds-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.demo-creds-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.demo-creds-row:last-of-type { border-bottom: none; }
.demo-creds-key {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.demo-creds-row code {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.92rem;
  user-select: all; /* click triplo seleziona tutto: copia rapida */
}
.demo-creds-hint {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 10px 0 0 0;
  line-height: 1.4;
}
.tool-status {
  font-size: 0.82rem;
  font-weight: 600;
  color: #16a34a;
  margin-top: auto;
}
.tool-status--soon {
  color: var(--accent-dark);
}
.tool-status code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* =============================================================================
   9. STEPS
   ============================================================================= */
.steps { padding: clamp(72px, 10vw, 110px) 0; }
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  border: 1px solid var(--border);
  position: relative;
}
.step-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--ink-mid); font-size: 0.98rem; margin: 0; }

/* =============================================================================
   10. SECURITY
   ============================================================================= */
.security { padding: clamp(72px, 10vw, 110px) 0; background: var(--bg-dark); color: white; }
.security h2, .security-copy h2 { color: white; }
.security .eyebrow { background: rgba(255, 255, 255, 0.08); color: var(--accent); }
.security .section-sub { color: rgba(255, 255, 255, 0.7); }
.security-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.security-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.security-list li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.security-list strong {
  display: block;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 6px;
  font-weight: 700;
}
.security-list li {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

/* =============================================================================
   11. CTA FINALE
   ============================================================================= */
.cta-final {
  padding: clamp(72px, 10vw, 110px) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}
.cta-final h2 { color: white; max-width: 720px; margin: 0 auto 18px; }
.cta-final p { color: rgba(255, 255, 255, 0.85); max-width: 600px; margin: 0 auto 32px; font-size: 1.08rem; }
.cta-final code {
  background: rgba(255, 255, 255, 0.14);
  color: var(--accent);
}
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-final .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.cta-final .btn-primary:hover { background: var(--accent-soft); color: var(--primary-dark); }

/* =============================================================================
   12. FOOTER
   ============================================================================= */
.site-footer {
  padding: 56px 0 36px 0;
  background: var(--primary-darker);
  color: rgba(255, 255, 255, 0.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.footer-logo {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 8px;
  padding: 4px;
}
.footer-brand .brand-text { color: white; font-size: 1.1rem; }
.footer-brand .brand-text strong { color: var(--primary-light); }
.footer-tagline {
  font-size: 0.88rem;
  margin: 4px 0 0 0;
  color: rgba(255, 255, 255, 0.5);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.12s;
}
.footer-nav a:hover { color: white; }
.footer-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-dot { margin: 0 8px; }

/* =============================================================================
   13. RESPONSIVE
   ============================================================================= */
@media (max-width: 940px) {
  .hero-inner    { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy h1  { font-size: clamp(2rem, 7vw, 2.6rem); }
  .hero-ctas, .trust-row { justify-content: center; }
  .hero-bull     { max-width: 260px; }
  .stat-grid, .tool-grid, .step-grid { grid-template-columns: 1fr; }
  .compare-grid  { grid-template-columns: 1fr; }
  .security-inner { grid-template-columns: 1fr; gap: 40px; }
  .security-list { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr; gap: 32px; }
  .nav           { display: none; }
  .lead          { margin-left: auto; margin-right: auto; }

  /* Section split → stack: immagine sopra, testo sotto e ricentrato */
  .section-split { grid-template-columns: 1fr; gap: 32px; }
  .section-split--reverse .section-visual { order: 1; }
  .section-split--reverse .section-head   { order: 2; }
  .section-head--left { text-align: center; max-width: 100%; margin: 0 auto; }
}

@media (max-width: 540px) {
  .btn-lg { padding: 14px 22px; font-size: 1rem; }
  .stat-card, .tool-card, .compare-col, .step-card { padding: 28px 22px; }
}
