/* ═══════════════════════════════════════════
   BEEVOIP 2026 — corso FreeSWITCH 1.11 avanzato (corso-freeswitch-1.11-avanzato.php).
   Si appoggia a home-2026.css, h26-prodotto.css e h26-corso.css (giornate, laboratori, calendario).
   Qui solo il colore (oliva) e il dialplan XML animato (js/h26-freeswitch.js). Classi h26f-.
   ═══════════════════════════════════════════ */
.h26c--freeswitch { --acc: #4f600c; --acc-1: #7a9a14; --acc-soft: #f3f7e2; --acc-line: rgba(122, 154, 20, 0.35); --acc-grad: linear-gradient(120deg, #2c3606 0%, #5b6e12 55%, #9cb82a 100%); --acc-deep: #22290a; --ok: #0b8466; }
.h26c--freeswitch .h26c-h1 em { color: var(--acc); }

/* ═══ 1. IL DIALPLAN ANIMATO ═══ */
.h26f-dp { margin: clamp(30px, 3.4vw, 48px) 0 0; padding: 22px clamp(18px, 2.6vw, 34px) 28px; border-radius: 32px; background: radial-gradient(50% 80% at 100% 0%, var(--acc-soft), transparent 70%), var(--soft); border: 1px solid var(--line); }
.h26f-dp__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.h26 .h26f-dp .h26p-modo button { font-family: var(--mono); }
.h26 .h26f-dp .h26p-modo button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.h26 .h26f-dp .h26p-modo button[data-scen="in"][aria-pressed="true"] { background: var(--acc); }
.h26f-dp__body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px 28px; align-items: start; margin-top: 18px; }

/* il codice, come in un editor */
.h26 .h26f-code {
    margin: 0; padding: 18px 0; border: 0; border-radius: 22px; background: #12141c; color: #c3c7d2; overflow-x: auto;
    font-family: var(--mono); font-size: 13.5px; line-height: 1.95; white-space: pre; box-shadow: 0 24px 50px -30px rgba(13, 15, 22, 0.6);
}
.h26f-ln { display: block; position: relative; padding: 0 22px 0 0; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.h26f-ln i { display: inline-block; width: 44px; padding-right: 14px; font-style: normal; text-align: right; color: #4f5566; user-select: none; }
.h26f-ln .t { color: #8ab4ff; } .h26f-ln .a { color: #9aa1b2; } .h26f-ln .v { color: #c9e46a; }
.h26f-ln.is-on { background: rgba(255, 255, 255, 0.07); box-shadow: inset 3px 0 0 #ffc53d; }
.h26f-ln.is-ok { background: rgba(25, 185, 140, 0.13); box-shadow: inset 3px 0 0 #19b98c; }
.h26f-ln.is-bad { background: rgba(255, 90, 90, 0.15); box-shadow: inset 3px 0 0 #ff6b5a; }
.h26f-ln.is-inline .v:last-of-type { padding: 0 3px; border-radius: 4px; background: rgba(201, 228, 106, 0.18); }

/* le due fasi */
.h26f-run { display: grid; gap: 12px; }
.h26f-phase { padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); opacity: 0.5; transition: opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.h26f-phase.is-on { opacity: 1; border-color: var(--acc-line); box-shadow: 0 14px 30px -22px var(--acc-deep); }
.h26 .h26f-phase__t { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); }
.h26 .h26f-phase__t span { font-family: var(--text); font-size: 14px; font-weight: 500; color: var(--muted); }
.h26 .h26f-phase__t b { display: grid; place-items: center; flex: none; width: 26px; height: 29px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--acc-grad); color: #fff; font-size: 13px; }
.h26f-log, .h26f-exec { margin: 10px 0 0 !important; padding: 0 !important; list-style: none; min-height: 26px; }
.h26 .h26f-log li, .h26 .h26f-exec li { position: relative; margin-top: 6px; padding: 5px 10px 5px 28px; border-radius: 9px; font-family: var(--mono); font-size: 12.5px; line-height: 1.45; color: var(--body); background: var(--soft); animation: h26p-in 0.4s var(--ease) both; }
.h26f-log li::before, .h26f-exec li::before { position: absolute; left: 10px; top: 5px; font-weight: 700; content: "→"; color: var(--muted); }
.h26 .h26f-log li.is-ok { background: #e3f7ef; color: #0b6e55; } .h26f-log li.is-ok::before { content: "✓"; color: #0b8466; }
.h26 .h26f-log li.is-bad { background: #ffecea; color: #b42318; } .h26f-log li.is-bad::before { content: "✗"; color: #d92d20; }
.h26 .h26f-exec li.is-wait { background: transparent; border: 1.5px dashed #c9cdd8; color: var(--muted); }
.h26f-exec li.is-wait::before { content: "…"; }
.h26 .h26f-exec li.is-done { background: var(--acc-soft); color: var(--acc-deep); font-weight: 700; }
.h26f-exec li.is-done::before { content: "▶"; color: var(--acc); font-size: 10px; top: 7px; }
.h26 .h26f-end { margin: 0; padding: 0 18px; max-height: 0; overflow: hidden; border-radius: 16px; font-size: 16px; font-weight: 600; line-height: 1.45; transition: max-height 0.5s var(--ease), padding 0.4s ease; }
.h26 .h26f-end.is-show { max-height: 160px; padding: 14px 18px; }
.h26 .h26f-end.is-ok { background: #e3f7ef; color: #0b6e55; }
.h26 .h26f-end.is-bad { background: #ffecea; color: #b42318; }

@media (prefers-reduced-motion: reduce) { .h26 .h26f-log li, .h26 .h26f-exec li { animation: none; } }
@media (max-width: 1023px) {
    .h26f-dp__body { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
    .h26f-dp { border-radius: 24px; padding: 18px 12px; }
    .h26 .h26f-code { font-size: 11px; line-height: 1.85; border-radius: 16px; padding: 14px 0; }
    .h26 .h26f-code { white-space: pre-wrap; overflow-x: visible; }
    .h26f-ln { padding: 0 12px 0 30px; text-indent: -30px; overflow-wrap: anywhere; }   /* le righe lunghe vanno a capo sotto il codice, non sotto il numero */
    .h26f-ln i { width: 30px; padding-right: 8px; text-indent: 0; }
    .h26f-phase { padding: 14px; }
    .h26 .h26f-phase__t span { display: none; }
}
