/* ═══════════════════════════════════════════
   RM STUDIO — index.css
   Stili specifici della homepage
   ═══════════════════════════════════════════ */

   @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: none; }
  }


  /* ─── HERO ───────────────────────────────── */
  .hero {
    position: relative;
    min-height: calc(100vh - var(--nav-h));
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* griglia di sfondo */
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
  }

  /* bordo verde sinistro */
  .hero::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    z-index: 3;
  }

  /* mascotte sfondo */
  .hero-mascot-bg {
    position: absolute;
    right: -20px;
    bottom: 0;
    height: 100%;
    width: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 0.22;
    mix-blend-mode: luminosity;
    filter: brightness(1.4) contrast(1.1) drop-shadow(0 0 60px rgba(193,255,114,0.2));
    user-select: none;
    animation: slideInRight 1s 0.3s var(--ease) both;
  }

  /* contenuto */
  .hero-content {
    position: relative;
    z-index: 2;
    padding: 72px 64px 0 56px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 65%;
  }

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 28px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    animation: fadeUp 0.6s 0.1s var(--ease) forwards;
  }
  .hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px; height: 2px;
    background: var(--accent);
    flex-shrink: 0;
  }

  .hero h1 {
    font-size: clamp(56px, 7.5vw, 110px);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.7s 0.2s var(--ease) forwards;
  }
  .hero h1 em {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
    display: block;
  }

  .hero-divider {
    width: 64px; height: 2px;
    background: var(--accent);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.5s 0.28s var(--ease) forwards;
  }

  .hero-desc {
    font-size: 14px;
    color: var(--muted2);
    line-height: 1.85;
    max-width: 520px;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 0.7s 0.35s var(--ease) forwards;
  }

  .hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 0.7s 0.45s var(--ease) forwards;
  }

  /* social proof */
  .hero-social-proof {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 0.6s 0.55s var(--ease) forwards;
  }
  .hero-avatars { display: flex; align-items: center; }
  .hero-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    background: var(--surface3);
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
  }
  .hero-avatar:first-child { margin-left: 0; }
  .hero-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  /* ultimo avatar: badge verde con + */
  .hero-avatar-more {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    background: var(--accent);
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0D0F11;
    line-height: 1;
  }
  .hero-proof-text {
    font-size: 11px;
    color: var(--muted2);
    letter-spacing: 0.03em;
    line-height: 1.5;
  }
  .hero-proof-text strong { color: var(--accent); font-weight: 600; }

  /* stats strip */
  .hero-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
  }
  .stat-cell {
    padding: 28px 40px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: background 0.3s;
    opacity: 0;
    animation: fadeUp 0.6s var(--ease) forwards;
    position: relative;
    overflow: hidden;
  }
  .stat-cell::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.4s var(--ease);
  }
  .stat-cell:hover::before { width: 100%; }
  .stat-cell:nth-child(1) { animation-delay: 0.4s; }
  .stat-cell:nth-child(2) { animation-delay: 0.5s; }
  .stat-cell:nth-child(3) { animation-delay: 0.6s; }
  .stat-cell:nth-child(4) { animation-delay: 0.7s; border-right: none; }
  .stat-cell:hover { background: rgba(193,255,114,0.04); }
  .stat-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
  }
  .stat-label {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  /* section CTA */
  .section-cta {
    margin-top: 40px;
    display: flex;
    justify-content: center;
  }


  /* ─── RESPONSIVE ─────────────────────────── */
  @media (max-width: 1024px) {
    .hero-mascot-bg { height: 80%; opacity: 0.16; }
    .hero-content { padding: 64px 48px 0; max-width: 72%; }
  }

  @media (max-width: 768px) {
    /* nasconde mascotte su mobile */
    .hero-mascot-bg { display: none; }
    .hero-content { padding: 48px 24px 0; max-width: 100%; }
    .hero h1 { font-size: clamp(40px, 12vw, 60px); }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .stat-cell:nth-child(1),
    .stat-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
    .stat-cell:nth-child(2) { border-right: none; }
    .stat-cell:nth-child(4) { border-right: none; }
    .stat-num { font-size: 28px; }
    .stat-cell { padding: 20px 24px; }

    /* nasconde il pannello sticky del processo su mobile */
    .process-right { display: none; }
    .process-layout { grid-template-columns: 1fr; gap: 0; }
    /* nasconde mascotte */
.hero-mascot-bg { display: none; }

/* nasconde pannello sticky del processo */
.process-right { display: none; }
.process-layout { grid-template-columns: 1fr; }
  }
