/* ═══════════════════════════════════════════
   BEEVOIP 2026 — Robotcall (robotcall-outbound-platform.php)
   Si appoggia a home-2026.css e h26-prodotto.css. Classi rb-.
   La scala è il messaggio: il muro di 15.000 esagoni, uno per chiamata. Verde = famiglia "app" dell'alveare.
   Colori degli esiti: miele = squilla/in linea, verde = confermato, grigio = non risponde, rosso = occupato.
   ═══════════════════════════════════════════ */
.rb { --g-deep: #0a5a47; --g: #0b8466; --g-hi: #19b98c; --mint: #e7f6ef; --night: #0a0d14; }
.rb .h26-grad.rb-grad { background: linear-gradient(100deg, #0a5a47, #0b8466 45%, #19b98c); -webkit-background-clip: text; background-clip: text; }
.rb-kick > i::before { background: linear-gradient(150deg, #0b8466, #19b98c) !important; }
.rb-kick > i::after { border-color: #19b98c !important; }
.h26 .h26-btn--primary.rb-btn, .h26 .h26-btn--primary.rb-btn:hover, .h26 .h26-btn--primary.rb-btn:focus {
    background: linear-gradient(100deg, #0a5a47, #0b8466 55%, #19b98c); border-color: transparent; color: #fff; box-shadow: 0 14px 30px -14px rgba(25, 185, 140, 0.7);
}
.h26 .rb-btn--ghost, .h26 .rb-btn--ghost:hover, .h26 .rb-btn--ghost:focus { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.h26 .rb-btn--ghost:hover { border-color: #fff; }

/* ═══ 1. HERO (notte, muro di chiamate) ═══ */
.rb-hero { padding: 64px 0 88px; color: #fff; background: radial-gradient(70% 60% at 80% 0%, rgba(25, 185, 140, 0.16), transparent 60%), var(--night); overflow: hidden; }
.rb-hero__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px 64px; align-items: end; }
.h26 .rb-h1 { margin: 0; font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; color: #fff; }
.h26 .rb-h1__by { display: block; margin-bottom: 18px; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0; color: #8ff0c9; }
.rb-h1__big { display: block; font-size: clamp(44px, 6.4vw, 104px); }
.rb-h1__big em { font-style: normal; background: linear-gradient(100deg, #19b98c, #8ff0c9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h26 .rb-hero__side .h26-lead { margin: 0 0 26px; color: #c3c7d2; }
.rb-wall { position: relative; margin: 52px 0 0; border-radius: 28px; background: #060910; border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; }
.rb-wall canvas { display: block; width: 100%; height: 440px; cursor: crosshair; }
.rb-wall__hud { position: absolute; left: 18px; right: 18px; top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; }
.rb-wall__kpi { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.rb-wall__kpi div { min-width: 118px; padding: 9px 14px; border-radius: 14px; background: rgba(10, 13, 20, 0.78); border: 1px solid rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.h26 .rb-wall__kpi dt { font-family: var(--mono); font-size: 11px; font-weight: 400; color: #a9adba; }
.h26 .rb-wall__kpi dd { margin: 2px 0 0; font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #fff; }
.rb-wall__kpi .is-live dd { color: #ffc53d; } .rb-wall__kpi .is-ok dd { color: #8ff0c9; }
.h26 .rb-launch {
    pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 13px 22px; border: 0; border-radius: 999px; cursor: pointer;
    background: #fff; color: var(--night); font-family: var(--text); font-size: 15px; font-weight: 700; box-shadow: 0 0 0 6px rgba(25, 185, 140, 0.2); transition: transform 0.2s var(--ease), box-shadow 0.3s ease;
}
.h26 .rb-launch:hover { transform: translateY(-2px); background: #fff; color: var(--night); box-shadow: 0 0 0 10px rgba(25, 185, 140, 0.25); }
.h26 .rb-launch:active { top: 0 !important; }
.h26 .rb-launch:focus-visible { outline: 3px solid #8ff0c9; outline-offset: 4px; }
.rb-launch__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--g-hi); }
.rb-launch__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--g-hi); animation: h26-ring 1.4s ease-out infinite; }
.rb-wall.is-run .rb-launch { opacity: 0.85; }
.rb-wall__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, 0.07); font-family: var(--mono); font-size: 11.5px; color: #8a90a0; }
.rb-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.rb-legend i { display: inline-block; width: 10px; height: 11px; margin-right: -6px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.rb-legend .is-ring { background: #6b5320; } .rb-legend .is-ans { background: #ffc53d; } .rb-legend .is-ok { background: #19b98c; } .rb-legend .is-na { background: #39404f; } .rb-legend .is-busy { background: #e2241c; }

/* ═══ 2. IVR O AI ═══ */
.rb-two__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 52px; }
.rb-call { display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.rb-call--ai { background: var(--night); border-color: var(--night); color: #fff; }
.h26 .rb-call__h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.rb-call--ai .rb-call__h { border-color: rgba(255, 255, 255, 0.1); }
.h26 .rb-call__h b { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.h26 .rb-call__h span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.h26 .rb-call--ai .rb-call__h span { color: #8ff0c9; }
.rb-call__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; min-height: 300px; }
.rb-m { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.4; opacity: 0; transform: translateY(8px); }
.rb-call--ivr .rb-m--bot { align-self: flex-start; background: var(--soft); font-family: var(--mono); font-size: 13.5px; border-bottom-left-radius: 4px; }
.rb-call--ai .rb-m--bot { align-self: flex-start; background: rgba(255, 255, 255, 0.08); border-bottom-left-radius: 4px; }
.rb-m--me { align-self: flex-end; background: linear-gradient(150deg, #0b8466, #19b98c); color: #fff; font-weight: 600; border-bottom-right-radius: 4px; }
.rb-key { display: flex; gap: 8px; align-self: flex-end; opacity: 0; }
.rb-key i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); font-style: normal; font-family: var(--display); font-size: 20px; }
.rb-key i.is-hit { background: var(--ink); color: #fff; border-color: var(--ink); }
.rb-two__cols.is-on .rb-m1 { animation: rb-b1 11s ease infinite; } .rb-two__cols.is-on .rb-m2 { animation: rb-b2 11s ease infinite; }
.rb-two__cols.is-on .rb-m3 { animation: rb-b3 11s ease infinite; } .rb-two__cols.is-on .rb-m4 { animation: rb-b4 11s ease infinite; }
.rb-two__cols.is-on .rb-call__out b { animation: rb-b5 11s ease infinite; }
@keyframes rb-b1 { 0%, 3% { opacity: 0; transform: translateY(8px); } 7%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rb-b2 { 0%, 20% { opacity: 0; transform: translateY(8px); } 24%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rb-b3 { 0%, 40% { opacity: 0; transform: translateY(8px); } 44%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rb-b4 { 0%, 58% { opacity: 0; transform: translateY(8px); } 62%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rb-b5 { 0%, 72% { opacity: 0; } 76%, 94% { opacity: 1; } 100% { opacity: 0; } }
.rb-two__cols:not(.is-on) .rb-m, .rb-two__cols:not(.is-on) .rb-key { opacity: 1; transform: none; }
.h26 .rb-call__out { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 14px 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rb-call--ai .rb-call__out { border-color: rgba(255, 255, 255, 0.1); }
.h26 .rb-call__out b { padding: 5px 12px; border-radius: 999px; background: #fff4e2; color: #a35a00; font-size: 12.5px; }
.h26 .rb-call--ai .rb-call__out b { background: rgba(25, 185, 140, 0.18); color: #8ff0c9; }

/* ═══ 3. IL FLUSSO A BLOCCHI ═══ */
.rb-flow__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px 72px; align-items: center; }
.h26 .rb-flow .h26-lead { margin-top: 22px; }
.rb-flow__list { display: grid; gap: 10px; margin-top: 26px !important; }
.h26 .rb-flow__list li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; color: var(--body); }
.rb-flow__list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 14px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--g-hi); }
.h26 .rb-flow__list b { color: var(--ink); }
.rb-graph {
    position: relative; height: 460px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(13, 15, 22, 0.35);
    background-image: radial-gradient(circle, #dfe3ea 1.2px, transparent 1.5px); background-size: 22px 22px;
}
.rb-graph__wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.rb-graph__wires path { fill: none; stroke: #aab1c2; stroke-width: 2; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; animation: h26p-dash 1.2s linear infinite; }
.rb-node {
    position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); min-width: 132px; padding: 10px 14px; border-radius: 14px; text-align: center;
    background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 10px 20px -12px rgba(13, 15, 22, 0.4); font-size: 14px; font-weight: 700; line-height: 1.25;
}
.h26 .rb-node small { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--muted); }
.h26 .rb-node em { display: block; margin-top: 2px; font-style: normal; font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--g); }
.rb-node--start { background: var(--ink); color: #fff; }
.h26 .rb-node--start small, .h26 .rb-node--ai small { color: #8ff0c9; }
.rb-node--k { min-width: 104px; }
.rb-node--ai { background: var(--night); color: #8ff0c9; border-color: var(--night); }
.rb-node--end { min-width: 110px; background: var(--mint); border-color: var(--g); color: var(--g-deep); }
.rb-graph.is-in .rb-node { animation: rb-pop 0.5s var(--ease) both; }
.rb-graph.is-in .rb-node:nth-of-type(2) { animation-delay: 0.15s; } .rb-graph.is-in .rb-node:nth-of-type(3) { animation-delay: 0.3s; }
.rb-graph.is-in .rb-node:nth-of-type(4) { animation-delay: 0.4s; } .rb-graph.is-in .rb-node:nth-of-type(5) { animation-delay: 0.5s; }
.rb-graph.is-in .rb-node:nth-of-type(6) { animation-delay: 0.65s; } .rb-graph.is-in .rb-node:nth-of-type(7) { animation-delay: 0.75s; }
@keyframes rb-pop { from { opacity: 0; transform: translate(-50%, -40%) scale(0.9); } }
.rb-graph__hand {      /* il puntatore che trascina il blocco AI */
    position: absolute; left: 82%; top: 74%; width: 26px; height: 26px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 7-6 2-2 6z' fill='%230d0f16' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rb-graph.is-in .rb-graph__hand { animation: rb-drag 6s ease-in-out 1s infinite; }
@keyframes rb-drag { 0%, 15% { transform: translate(40px, 50px); opacity: 0; } 25% { opacity: 1; transform: translate(40px, 50px); } 50%, 70% { transform: translate(0, 0); opacity: 1; } 85%, 100% { opacity: 0; } }

/* ═══ 4. ESITI ═══ */
.rb-data__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 52px; }
.rb-d { display: flex; flex-direction: column; padding: 24px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.rb-d--api { background: var(--night); border-color: var(--night); color: #fff; }
.h26 .rb-d__k { font-family: var(--mono); font-size: 12.5px; color: var(--g); }
.h26 .rb-d--api .rb-d__k { color: #8ff0c9; }
.h26 .rb-d h3 { margin: 6px 0 18px; font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.h26 .rb-d--api h3 { color: #fff; }
.rb-bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; margin-top: auto; padding: 14px; border-radius: 16px; background: var(--soft); }
.rb-bars i { flex: 1; height: calc(var(--v) * 1%); border-radius: 6px 6px 2px 2px; background: #c9cdd8; transform-origin: bottom; }
.rb-bars i.is-now { background: linear-gradient(180deg, #19b98c, #0b8466); }
.h26-js .rb-d:not(.is-in) .rb-bars i { transform: scaleY(0); }
.rb-d.is-in .rb-bars i { transition: transform 0.8s var(--ease); }
.rb-csv { display: grid; gap: 4px; margin-top: auto; padding: 14px; border-radius: 16px; background: var(--soft); font-family: var(--mono); font-size: 12px; }
.rb-csv p { margin: 0 !important; padding: 6px 9px; border-radius: 7px; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-csv p:first-child { background: transparent; color: var(--muted); }
.h26 .rb-json { margin: auto 0 0; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: #c3c7d2; white-space: pre; overflow: hidden; }
.rb-json .c { color: #6f7688; } .rb-json .k { color: #8ff0c9; } .rb-json .s { color: #ffc53d; } .rb-json .n { color: #8fb2ff; }

/* ═══ 5. RETE ═══ */
.rb-net__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 80px; align-items: center; }
.h26 .rb-net .h26-lead { margin-top: 22px; }
.rb-tree { display: grid; justify-items: center; gap: 0; padding: 30px 10px; }
.rb-tree__row { display: flex; justify-content: center; gap: 8px; }
.rb-tree__row + .rb-tree__row { margin-top: -14px; }
.rb-hx {
    display: grid; place-items: center; width: 104px; height: 116px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    font-family: var(--display); font-size: 15px; font-weight: 700; color: #fff; transition: transform 0.3s var(--ease);
}
.rb-hx--1 { background: linear-gradient(150deg, #0d0f16, #2a3042); width: 120px; height: 134px; font-size: 20px; }
.rb-hx--2 { background: linear-gradient(150deg, #0a5a47, #0b8466); }
.rb-hx--3 { background: linear-gradient(150deg, #0b8466, #19b98c); width: 92px; height: 102px; font-size: 13px; }
.rb-hx--4 { background: #bfeedd; width: 64px; height: 72px; }
.rb-tree.is-in .rb-hx { animation: rb-pop2 0.5s var(--ease) both; }
.rb-tree.is-in .rb-tree__row:nth-child(2) .rb-hx { animation-delay: 0.2s; } .rb-tree.is-in .rb-tree__row:nth-child(3) .rb-hx { animation-delay: 0.4s; } .rb-tree.is-in .rb-tree__row:nth-child(4) .rb-hx { animation-delay: 0.6s; }
@keyframes rb-pop2 { from { opacity: 0; transform: scale(0.6); } }
.h26 .rb-tree__note { margin-top: 18px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rb-levels { display: grid; gap: 8px; margin-top: 26px !important; counter-reset: rb; }
.h26 .rb-levels li { position: relative; padding: 13px 16px 13px 58px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 15px; color: var(--body); counter-increment: rb; }
.h26 .rb-levels b { display: block; font-family: var(--display); font-size: 18px; color: var(--ink); }
.rb-levels li::before { content: counter(rb); position: absolute; left: 14px; top: 50%; display: grid; place-items: center; width: 30px; height: 33px; margin-top: -16.5px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--g); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 700; }
.h26 .rb-net__link { display: inline-block; margin-top: 20px; color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--g-hi); }
.h26 .rb-net__link:hover { color: var(--g); }

/* ═══ 6. SCHEDA TECNICA ═══ */
.rb-sheet { max-width: 920px; margin: 0 auto; border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; background: #fff; }
.rb-sheet__h { display: flex; justify-content: space-between; align-items: center; padding: 18px 26px; background: var(--ink); color: #fff; }
.h26 .rb-sheet__h p { margin: 0; display: flex; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: 13px; color: #a9adba; }
.h26 .rb-sheet__h b { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.h26 .rb-sheet__h span { font-family: var(--mono); font-size: 12px; color: #8ff0c9; }
.rb-sheet dl { margin: 0; }
.rb-sheet dl div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; padding: 15px 26px; border-top: 1px solid var(--line); }
.rb-sheet dl div:nth-child(odd) { background: var(--soft); }
.h26 .rb-sheet dt { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--muted); }
.h26 .rb-sheet dd { margin: 0; font-size: 16px; color: var(--ink); }
.h26 .rb-sheet dd b { font-family: var(--display); font-size: 20px; color: var(--g); }

/* ═══ 7. CHIUSURA ═══ */
.rb-end__box { padding: 72px 48px; border-radius: 36px; text-align: center; color: #fff; background: radial-gradient(60% 80% at 50% 0%, rgba(25, 185, 140, 0.3), transparent 70%), var(--night); }
.rb-end__box .h26-h2 { margin-inline: auto; color: #fff; }
.rb-end__em { color: #8ff0c9; }
.h26 .rb-end__box .h26-lead { margin: 18px auto 32px; color: #c3c7d2; }

/* ═══ Tablet e telefono ═══ */
@media (max-width: 1023px) {
    .rb-hero__head, .rb-flow__grid, .rb-net__grid { grid-template-columns: 1fr; }
    .rb-data__grid { grid-template-columns: 1fr 1fr; }
    .rb-d--api { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
    .rb-hero { padding: 36px 0 64px; }
    .rb-wall { margin-top: 36px; border-radius: 20px; margin-inline: -6px; }
    .rb-wall canvas { height: 520px; }
    .rb-wall__hud { left: 10px; right: 10px; top: 10px; }
    .rb-wall__kpi { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .rb-wall__kpi div { min-width: 0; padding: 7px 10px; }
    .h26 .rb-wall__kpi dd { font-size: 19px; }
    .h26 .rb-launch { width: 100%; justify-content: center; }
    .rb-two__cols, .rb-data__grid { grid-template-columns: 1fr; }
    .rb-graph { height: 440px; }
    .rb-node { min-width: 0; padding: 8px 9px; font-size: 12px; }
    .rb-node--k, .rb-node--end { min-width: 86px; }
    .rb-hx { width: 80px; height: 90px; font-size: 12.5px; }
    .rb-hx--1 { width: 96px; height: 108px; font-size: 17px; }
    .rb-hx--3 { width: 72px; height: 80px; font-size: 11px; }
    .rb-hx--4 { width: 46px; height: 52px; }
    .rb-sheet dl div { grid-template-columns: 1fr; gap: 2px; padding: 12px 18px; }
    .rb-end__box { padding: 48px 22px; border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .rb-two__cols.is-on .rb-m, .rb-two__cols.is-on .rb-call__out b { animation: none; opacity: 1; transform: none; }
    .rb-graph__wires path, .rb-graph.is-in .rb-graph__hand { animation: none; }
}
