/* ═══════════════════════════════════════════
   BEEVOIP 2026 — guida del modulo AI4CALL per FreePBX (classi fpm-), sopra home-2026, h26-prodotto, h26-consulenza (FAQ).
   Colori: il verde dell'interfaccia di FreePBX con il rosso AI4CALL come accento.
   ═══════════════════════════════════════════ */
.fpm { --fp: #1f7a4d; --fp-2: #3fb27f; --fp-soft: #e9f6ef; --fp-ink: #0d3b26; --fp-btn: #d8ecdf; --ai: #e2241c; --night: #0f1713; }
.h26 .fpm-k { margin: 0 0 14px; font-family: var(--mono); font-size: 13px; color: var(--fp); }
.h26 .fpm-k--light { color: #7fe0ae; }
.h26 .fpm-green { color: #7fe0ae; }
.h26.fpm .h26-titled > .h26-lead { margin-top: 22px; }
.h26 .fpm-link { font-weight: 700; color: var(--fp); border-bottom: 1.5px solid currentColor; }
.h26 .fpm-link:hover { color: var(--fp-ink); }
.h26.fpm code { padding: 1px 6px; border-radius: 6px; background: var(--fp-soft); font-family: var(--mono); font-size: 0.88em; color: var(--fp-ink); font-variant-ligatures: none; }

/* ── hero ── */
.fpm-hero { position: relative; overflow: hidden; padding: 56px 0 76px; background: radial-gradient(50% 60% at 86% 30%, rgba(63, 178, 127, 0.16), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(226, 36, 28, 0.08), transparent 70%), #fff; }
.fpm-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 40px 56px; align-items: center; }
.h26 .fpm-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.fpm-badge { padding: 4px 10px; border-radius: 999px; background: var(--fp); color: #fff; font-weight: 700; }
.h26 .fpm-h1 { margin: 0; font-weight: 800; letter-spacing: -0.045em; line-height: 0.96; }
.h26 .fpm-h1 span { display: block; font-size: clamp(44px, 5.6vw, 86px); }
.h26 .fpm-h1 em { display: block; font-style: normal; font-size: clamp(32px, 3.8vw, 58px); line-height: 1.02; color: var(--fp); }
.h26 .fpm-lead { margin: 22px 0 0; max-width: 54ch; font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.6; color: var(--body); }
.h26 .fpm-lead b { color: var(--ink); }
.fpm-pkgs { display: grid; gap: 10px; margin-top: 28px; }
.h26 .fpm-pkg { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "box info btn" "box sha btn"; gap: 2px 16px; align-items: center; padding: 14px 14px 14px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.h26 .fpm-pkg--new { border-color: rgba(31, 122, 77, 0.45); box-shadow: 0 0 0 3px rgba(63, 178, 127, 0.12), var(--shadow); }
.fpm-pkg__box { grid-area: box; position: relative; width: 52px; height: 58px; border-radius: 8px; background: linear-gradient(160deg, #c8935a, #a0703f); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12); }
.fpm-pkg__box::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 8px; background: rgba(255, 255, 255, 0.35); }
.h26 .fpm-pkg__box span { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #fff; }
.fpm-pkg__info { grid-area: info; min-width: 0; }
.h26 .fpm-pkg__for { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.h26 .fpm-pkg__file { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.h26 .fpm-pkg__btn { grid-area: btn; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 14px; background: var(--fp); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 10px 22px -12px rgba(31, 122, 77, 0.9); transition: transform 0.2s ease, background-color 0.2s ease; }
.h26 .fpm-pkg__btn:hover { background: var(--fp-ink); color: #fff; transform: translateY(-2px); }
.fpm-pkg__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fpm .fpm-pkg__sha, .fpm .fpm-pkg__sha:where(:hover, :focus, :active) { grid-area: sha; justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 0; padding: 0; border: 0; background: none; box-shadow: none; font: inherit; font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-transform: none; letter-spacing: 0; cursor: pointer; }
.fpm .fpm-pkg__sha:active { position: relative; top: 0 !important; }
.h26.fpm .fpm-pkg__sha code { padding: 0; background: none; font-size: 11.5px; color: var(--muted); }
.h26 .fpm-pkg__sha span { padding: 1px 7px; border-radius: 999px; background: var(--soft); color: var(--fp); }
.h26 .fpm-pkg__sha.is-ok span { background: var(--fp); color: #fff; }
.h26 .fpm-req { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* l'interfaccia di FreePBX simulata */
.h26 .fpm-ui { margin: 0; border-radius: 16px; background: #fff; border: 1px solid #cfe3d7; box-shadow: 0 40px 80px -40px rgba(13, 59, 38, 0.5); overflow: hidden; font-family: "Open Sans", var(--text), sans-serif; }
.fpm-ui__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 3px solid var(--fp); background: #f6faf7; }
.fpm-ui__logo { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #7fd18f, #2e8b4f); }
.h26 .fpm-ui__bar b { font-size: 15px; color: var(--fp-ink); }
.fpm-ui__bar nav { display: flex; gap: 6px; margin-left: auto; }
.h26 .fpm-ui__bar nav span { padding: 4px 10px; border-radius: 4px; background: var(--fp-btn); border: 1px solid #b6d6c2; font-size: 12px; font-weight: 700; color: var(--fp-ink); transition: background-color 0.3s ease, color 0.3s ease; }
.h26 .fpm-ui__bar nav span.is-on { background: var(--fp); color: #fff; }
.fpm-ui__body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 300px; }
.fpm-ui__steps { margin: 0; padding: 14px 12px; list-style: none; background: #f6faf7; border-right: 1px solid #dfece4; }
.h26 .fpm-ui__steps li { position: relative; padding: 8px 8px 8px 30px; border-radius: 8px; opacity: 0.45; transition: opacity 0.3s ease, background-color 0.3s ease; }
.fpm-ui__steps li::before { content: ""; position: absolute; left: 8px; top: 11px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #9cc4ab; box-sizing: border-box; }
.h26 .fpm-ui__steps li.is-done, .h26 .fpm-ui__steps li.is-on { opacity: 1; }
.fpm-ui__steps li.is-done::before { background: var(--fp-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: var(--fp-2); }
.h26 .fpm-ui__steps li.is-on { background: #fff; box-shadow: inset 3px 0 0 var(--ai); }
.fpm-ui__steps li.is-on::before { border-color: var(--ai); }
.h26 .fpm-ui__steps b { display: block; font-size: 13.5px; color: var(--fp-ink); }
.h26 .fpm-ui__steps span { display: block; font-size: 11.5px; line-height: 1.35; color: #5d6b63; }
.fpm-ui__panel { position: relative; padding: 18px 20px; }
.h26 .fpm-ui__h { margin: 0 0 14px; font-size: 18px; font-weight: 700; color: #4a5a50; }
.fpm-ui__prog { height: 10px; border-radius: 6px; background: #e5efe8; overflow: hidden; }
.fpm-ui__prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--fp), var(--fp-2)); transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.h26 .fpm-ui__log { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--night); font-family: var(--mono); font-size: 12px; line-height: 1.5; color: #9ff0c4; min-height: 40px; }
.fpm-ui__menu { position: absolute; right: 20px; top: 120px; width: 210px; padding: 8px 0; border-radius: 8px; background: #fff; border: 1px solid #cfe3d7; box-shadow: 0 16px 30px -16px rgba(13, 59, 38, 0.4); opacity: 0; transform: translateY(-6px); transition: opacity 0.3s ease, transform 0.3s ease; }
.fpm-ui__menu.is-open { opacity: 1; transform: none; }
.h26 .fpm-ui__menu p { margin: 0 0 4px; padding: 0 12px 6px; border-bottom: 1px solid #e5efe8; font-size: 11.5px; font-weight: 700; color: #7a8a80; text-transform: uppercase; letter-spacing: 0.06em; }
.h26 .fpm-ui__menu span { display: block; padding: 5px 12px; font-size: 13px; color: #3b4a40; }
.h26 .fpm-ui__menu .fpm-ui__new { background: #fff1ef; color: var(--ai); font-weight: 700; }
.fpm-ui.is-done .fpm-ui__log { color: #ffd27a; }
.h26 .fpm-ui figcaption { padding: 9px 14px; border-top: 1px solid #e5efe8; font-size: 12px; color: var(--muted); }

/* ── indice ── */
.fpm-toc { position: sticky; top: 64px; z-index: 5; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fpm-toc__in { display: flex; align-items: center; gap: 8px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.h26 .fpm-toc__in p { margin: 0 8px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.h26 .fpm-toc a { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.h26 .fpm-toc a:hover { border-color: var(--fp); color: var(--fp); }
.fpm-toc a b { display: grid; place-items: center; min-width: 28px; height: 26px; padding: 0 4px; border-radius: 999px; background: var(--fp-soft); font-family: var(--mono); font-size: 11px; color: var(--fp); }
.fpm #installazione, .fpm #configurazione, .fpm #parametri, .fpm #faq, .fpm #download { scroll-margin-top: 140px; }

/* ── passi ── */
.fpm-steps { display: grid; gap: 18px; margin: 44px 0 0; padding: 0; list-style: none; }
.h26 .fpm-step { display: grid; grid-template-columns: 76px minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px 32px; align-items: start; padding: 28px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.fpm-step__n { display: grid; place-items: center; width: 64px; height: 72px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(150deg, var(--fp), var(--fp-2)); font-family: var(--display); font-size: 22px; font-weight: 800; color: #fff; }
.h26 .fpm-step__txt h3 { margin: 4px 0 10px; font-size: 24px; letter-spacing: -0.02em; }
.h26 .fpm-step__txt p { margin: 0 0 10px; font-size: 16.5px; line-height: 1.6; color: var(--body); }
.h26 .fpm-step__txt b { color: var(--ink); }
.h26 .fpm-path { display: flex; flex-wrap: wrap; gap: 4px; }
.h26 .fpm-path span { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 4px; background: var(--fp-btn); border: 1px solid #b6d6c2; font-size: 13px; font-weight: 700; color: var(--fp-ink); }
.h26 .fpm-path span + span::before { content: "›"; margin: 0 6px 0 -2px; color: #7a9a86; font-weight: 400; }
.fpm-list { margin: 0; padding-left: 20px; }
.h26 .fpm-list li { margin: 6px 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.h26 .fpm-list li::marker { color: var(--fp); font-weight: 700; }
.fpm-step__shots { display: grid; gap: 10px; }
.h26 .fpm-shot { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid #dfe5e1; background: #fff; }
.fpm-shot img { display: block; width: 100%; height: auto; transition: transform 0.4s ease; }
.h26 .fpm-shot span { position: absolute; right: 8px; bottom: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(13, 15, 22, 0.75); font-family: var(--mono); font-size: 11px; color: #fff; opacity: 0; transition: opacity 0.2s ease; }
.h26 .fpm-shot:hover span { opacity: 1; }
.h26 .fpm-shot:hover img { transform: scale(1.02); }
.h26 .fpm-gift { padding: 24px 24px 22px; border-radius: 20px; background: radial-gradient(80% 80% at 100% 0%, rgba(226, 36, 28, 0.12), transparent 60%), var(--fp-soft); border: 1px dashed rgba(31, 122, 77, 0.4); }
.h26 .fpm-gift__k { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--fp); }
.h26 .fpm-gift__big { margin: 6px 0 8px; font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.h26 .fpm-gift p:not([class]) { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--body); }
.h26 .fpm-btn { display: inline-flex; align-items: center; height: 46px; margin-top: 16px; padding: 0 20px; border-radius: 12px; background: var(--ai); color: #fff; font-weight: 700; }
.h26 .fpm-btn:hover { background: #c01a12; color: #fff; }

/* ── parametri SIP (scura) ── */
.fpm-sip { --ink: #f4f5f8; --body: #c3c7d2; --line: rgba(255, 255, 255, 0.12); background: radial-gradient(50% 60% at 90% 10%, rgba(63, 178, 127, 0.16), transparent 70%), var(--night); color: var(--ink); }
.h26 .fpm-sip .h26-lead { color: var(--body); }
.fpm-sip__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; }
.h26 .fpm-conf { border-radius: 18px; background: #07100b; border: 1px solid rgba(127, 224, 174, 0.2); overflow: hidden; }
.h26 .fpm-conf__file { margin: 0; padding: 10px 16px; border-bottom: 1px solid rgba(127, 224, 174, 0.15); font-family: var(--mono); font-size: 12px; color: #7fe0ae; }
.fpm-conf dl { margin: 0; padding: 10px 16px 14px; }
.h26 .fpm-conf div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); font-family: var(--mono); font-size: 14px; }
.fpm-conf div:last-child { border-bottom: 0; }
.h26 .fpm-conf dt { color: #8d9a92; }
.h26 .fpm-conf dd { margin: 0; color: #e9f6ef; overflow-wrap: anywhere; }

/* ── supporto ── */
.fpm-help { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px 56px; align-items: center; }
.fpm-help__ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.h26 .fpm-help__ways a, .h26 .fpm-help__ways button, .fpm .fpm-help__ways button:where(:hover, :focus, :active) { display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%; margin: 0; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: none; text-align: left; font: inherit; color: var(--ink); text-transform: none; letter-spacing: 0; cursor: pointer; transition: border-color 0.2s ease; }
.fpm .fpm-help__ways button:active { position: relative; top: 0 !important; }
.h26 .fpm-help__ways a:hover, .h26 .fpm-help__ways button:hover { border-color: var(--fp); color: var(--ink); }
.h26 .fpm-help__ways span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.h26 .fpm-help__ways b { font-size: 17px; color: var(--ink); }

/* ── misure ── */
@media (max-width: 1099px) {
    .fpm-hero__grid, .fpm-sip__grid, .fpm-help { grid-template-columns: 1fr; }
    .h26 .fpm-step { grid-template-columns: 76px minmax(0, 1fr); }
    .fpm-step__shots, .h26 .fpm-gift { grid-column: 1 / -1; }
    .fpm-step__shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
    .fpm-hero { padding: 36px 0 56px; }
    .h26 .fpm-pkg { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "box info" "box sha" "btn btn"; }
    .h26 .fpm-pkg__btn { justify-content: center; margin-top: 10px; }
    .fpm-pkg__box { width: 46px; height: 52px; }
    .fpm-ui__body { grid-template-columns: 1fr; }
    .fpm-ui__steps { display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid #dfece4; }
    .h26 .fpm-ui__steps li { flex: none; min-width: 130px; }
    .fpm-ui__bar nav span:nth-child(n+3) { display: none; }
    .fpm-ui__menu { position: static; width: auto; margin-top: 12px; }
    .h26 .fpm-step { grid-template-columns: 1fr; padding: 22px 18px; }
    .fpm-step__n { width: 52px; height: 58px; font-size: 18px; }
    .fpm-step__shots { grid-template-columns: 1fr; }
    .fpm-help__ways { grid-template-columns: 1fr; }
    .h26 .fpm-conf div { grid-template-columns: 96px minmax(0, 1fr); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .fpm * { transition: none !important; } }
