/* ═══════════════════════════════════════════
   BEEVOIP 2026 — corso Asterisk 24 avanzato (corso-asterisk-24-avanzato.php).
   Si appoggia a home-2026.css, h26-prodotto.css e h26-corso.css (giornate, laboratori, calendario).
   Qui solo il colore (lampone) e la hero: il dialplan che gira, visto dalla CLI (js/h26-asterisk.js). Classi h26x-.
   (Lo schema "sngrep" che c'era prima ora è in css/h26-sngrep.css, nel corso SIP.)
   ═══════════════════════════════════════════ */
.h26c--asterisk { --acc: #a3174f; --acc-1: #d6286b; --acc-soft: #fdeef4; --acc-line: rgba(214, 40, 107, 0.32); --acc-grad: linear-gradient(120deg, #5e0b2d 0%, #a3174f 55%, #e8508a 100%); --acc-deep: #3d071d; --ok: #0b8466; }
.h26c--asterisk .h26c-h1 em { color: var(--acc); }

/* ═══ 1. IL DIALPLAN E LA CLI ═══ */
.h26x { 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); }
.h26x__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.h26 .h26x .h26p-modo button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.h26 .h26x .h26p-modo button[data-scen="ko"][aria-pressed="true"] { background: var(--red); }
.h26x__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 24px; align-items: stretch; margin-top: 18px; }
.h26 .h26x__name { margin: 0; padding: 10px 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }

/* il file extensions.conf */
.h26x__file { border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.h26 .h26x__code { margin: 0; padding: 14px 0 16px; border: 0; border-radius: 0; background: none; color: var(--ink); font-family: var(--mono); font-size: 13px; line-height: 1.95; white-space: pre-wrap; overflow: visible; }
.h26x-ln { display: block; padding: 0 16px 0 44px; text-indent: -44px; overflow-wrap: anywhere; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.h26x-ln i { display: inline-block; width: 44px; padding-right: 12px; text-indent: 0; font-style: normal; text-align: right; color: #b9bdc9; user-select: none; }
.h26x-ln .c { color: var(--acc); font-weight: 700; }
.h26x-ln .k { color: #8a90a0; }
.h26x-ln .a { color: #2f5fb8; font-weight: 700; }
.h26x-ln .v { color: #b05a00; }
.h26x-ln.is-on { background: var(--acc-soft); box-shadow: inset 3px 0 0 var(--acc-1); }
.h26x-ln.is-ok { background: #e3f7ef; box-shadow: inset 3px 0 0 #19b98c; }
.h26x-ln.is-bad { background: #ffecea; box-shadow: inset 3px 0 0 #d92d20; }

/* la CLI di Asterisk */
.h26x__cli { display: flex; flex-direction: column; border-radius: 22px; background: #0f1117; box-shadow: 0 24px 50px -30px rgba(13, 15, 22, 0.6); overflow: hidden; }
.h26 .h26x__cli .h26x__name { color: #8b91a3; border-bottom-color: rgba(255, 255, 255, 0.08); }
.h26 .h26x__out { flex: 1; margin: 0; padding: 14px 18px; height: 300px; border: 0; border-radius: 0; background: none; overflow: hidden; font-family: var(--mono); font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; color: #b9bfcc; }
.h26x-o { display: block; margin-bottom: 4px; animation: h26x-in 0.35s ease both; }
@keyframes h26x-in { from { opacity: 0; transform: translateY(4px); } }
.h26x-o.is-prompt { color: #6f7688; }
.h26x-o.is-bad { color: #ff8a7a; }
.h26x-o.is-ok { color: #5fe0b4; font-weight: 700; }
.h26 .h26x__end { margin: 0; padding: 0 18px; max-height: 0; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.45; transition: max-height 0.5s var(--ease), padding 0.4s ease; }
.h26 .h26x__end.is-show { max-height: 140px; padding: 14px 18px; }
.h26 .h26x__end.is-ok { background: rgba(25, 185, 140, 0.16); color: #7ff0c8; }

@media (prefers-reduced-motion: reduce) { .h26x-o { animation: none; } }
@media (max-width: 1023px) {
    .h26x__body { grid-template-columns: 1fr; }
    .h26 .h26x__out { height: 250px; }
}
@media (max-width: 639px) {
    .h26x { border-radius: 24px; padding: 18px 12px; }
    .h26 .h26x__code { font-size: 11px; }
    .h26x-ln { padding: 0 12px 0 30px; text-indent: -30px; }
    .h26x-ln i { width: 30px; padding-right: 8px; }
    .h26 .h26x__out { font-size: 11px; height: 270px; padding: 12px 14px; }
}
