/* ═══════════════════════════════════════════
   BEEVOIP 2026 — barra in basso su tutte le pagine (classi h26b-). Markup: _include_h26_barra.php
   Computer: scheda chiara e traslucida che galleggia in basso al centro, tre colonne (titolo, riga, bottone largo),
   si riduce ai soli bottoni con la freccetta (la scelta resta ricordata nel browser).
   Telefono e tablet: barra attaccata al fondo con tre bottoni.
   ═══════════════════════════════════════════ */
.h26b {
    --b-ink: #0d0f16; --b-body: #3a4050; --b-muted: #5d6374; --b-line: rgba(13, 15, 22, 0.09);
    --b-grad: linear-gradient(100deg, #e2241c 0%, #f5612e 55%, #ff9a3d 100%);
    --b-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    position: fixed; left: 50%; bottom: 16px; z-index: 990; width: min(940px, calc(100vw - 480px));
    transform: translateX(-50%); font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--b-ink); -webkit-font-smoothing: antialiased; text-align: left;
    animation: h26b-in 0.6s var(--b-ease) 0.4s both;
}
@keyframes h26b-in { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
.h26b *, .h26b *::before, .h26b *::after { box-sizing: border-box; }
.h26b p { margin: 0; }
.h26b svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.h26b__card {
    position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
    padding: 16px 18px 18px; border-radius: 22px;
    background: rgba(246, 247, 250, 0.82); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 0 0 1px var(--b-line), 0 24px 60px -28px rgba(13, 15, 22, 0.45);
    transition: padding 0.3s var(--b-ease), gap 0.3s var(--b-ease);
}
.h26b__col { display: flex; flex-direction: column; min-width: 0; }
.h26b .h26b__t { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; color: var(--b-ink); }
.h26b .h26b__s { margin: 3px 0 10px 31px; font-size: 13.5px; line-height: 1.35; color: var(--b-muted); }
.h26b__t, .h26b__s { overflow: hidden; transition: opacity 0.25s ease, max-height 0.3s var(--b-ease), margin 0.3s var(--b-ease); max-height: 40px; }
.h26b__hex { flex: none; display: grid; place-items: center; width: 22px; height: 25px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); color: #fff; }
.h26b__hex svg { width: 12px; height: 12px; stroke-width: 2.4; }
.h26b__hex--ink { background: linear-gradient(150deg, #1f2433, #4b5469); }
.h26b__hex--ai { background: linear-gradient(150deg, #cf1d15, #f2622e); }
.h26b__hex--red { background: var(--b-grad); }

/* i bottoni (anche quando sono <button>: il tema dà bordi rossi e "top:1px" alla pressione) */
.h26b .h26b__btn, .h26b .h26b__btn:hover, .h26b .h26b__btn:focus, .h26b .h26b__btn:active {
    position: relative; top: 0 !important; display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 46px; margin: 0; padding: 0 16px;
    border: 0; border-radius: 13px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.h26b .h26b__btn { transition: transform 0.2s var(--b-ease), box-shadow 0.2s ease, background-color 0.2s ease; }
.h26b .h26b__btn:hover { transform: translateY(-1px); }
.h26b .h26b__btn em { font-style: normal; }
.h26b .h26b__btn--ink, .h26b .h26b__btn--ink:hover, .h26b .h26b__btn--ink:focus, .h26b .h26b__btn--ink:active { background: var(--b-ink); color: #fff; box-shadow: 0 10px 22px -14px rgba(13, 15, 22, 0.9); }
.h26b .h26b__btn--line, .h26b .h26b__btn--line:hover, .h26b .h26b__btn--line:focus, .h26b .h26b__btn--line:active { background: #fff; color: var(--b-ink); box-shadow: inset 0 0 0 1.5px rgba(13, 15, 22, 0.16); }
.h26b .h26b__btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--b-ink); }
.h26b .h26b__btn--red, .h26b .h26b__btn--red:hover, .h26b .h26b__btn--red:focus, .h26b .h26b__btn--red:active { background: var(--b-grad); color: #fff; box-shadow: 0 12px 26px -14px rgba(226, 36, 28, 0.95); }
.h26b :focus-visible { outline: 2px solid #e2241c; outline-offset: 3px; }

/* riduci / apri */
.h26b .h26b__min, .h26b .h26b__min:hover, .h26b .h26b__min:focus, .h26b .h26b__min:active {
    position: absolute; right: 18px; top: -13px !important; width: 30px; height: 26px; margin: 0; padding: 0; border: 0; border-radius: 9px;
    background: #fff; color: var(--b-muted); box-shadow: 0 0 0 1px var(--b-line), 0 6px 14px -8px rgba(13, 15, 22, 0.4); cursor: pointer;
}
.h26b__min i { display: block; width: 8px; height: 8px; margin: 6px auto 0; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); transition: transform 0.3s var(--b-ease), margin 0.3s var(--b-ease); }
.h26b .h26b__min:hover { color: var(--b-ink); }
.h26b.is-min .h26b__min i { transform: rotate(225deg); margin-top: 10px; }
.h26b.is-min .h26b__card { padding: 12px 14px; gap: 10px; }
.h26b.is-min .h26b__t, .h26b.is-min .h26b__s { max-height: 0; margin: 0; opacity: 0; }

/* il fondo delle pagine non resta nascosto sotto la scheda */
body.h26b-on { padding-bottom: 150px; }
body.h26b-on.h26b-small { padding-bottom: 86px; }

/* computer stretto, tablet e telefono: barra attaccata al fondo, solo bottoni */
@media (max-width: 1099px) {
    .h26b { left: 0; right: 0; bottom: 0; width: auto; transform: none; animation-name: h26b-in-m; }
    @keyframes h26b-in-m { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
    .h26b__card {
        gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0;
        border-width: 1px 0 0; box-shadow: 0 -1px 0 var(--b-line), 0 -16px 40px -26px rgba(13, 15, 22, 0.4);
    }
    .h26b .h26b__t, .h26b .h26b__s, .h26b .h26b__min { display: none; }
    .h26b .h26b__btn, .h26b .h26b__btn:hover, .h26b .h26b__btn:focus, .h26b .h26b__btn:active { height: 48px; padding: 0 8px; gap: 7px; font-size: 14.5px; }
    body.h26b-on, body.h26b-on.h26b-small { padding-bottom: 76px; }
    /* chat in basso a sinistra e "torna su": sopra la barra */
    body.h26b-on .rocketchat-widget { bottom: 70px !important; }
    body.h26b-on #toTop { bottom: 82px !important; }
}
@media (max-width: 560px) {
    .h26b .h26b__btn > span { font-size: 0; }
    .h26b .h26b__btn > span::before { font-size: 13.5px; }
    .h26b .h26b__btn--ink > span::before { content: "Contattaci"; }
    .h26b .h26b__btn--line > span::before { content: "AI4CALL"; }
    .h26b .h26b__btn--red > span::before { content: "Prenota demo"; }
    .h26b .h26b__btn, .h26b .h26b__btn:hover, .h26b .h26b__btn:focus, .h26b .h26b__btn:active { flex-direction: column; gap: 3px; height: 54px; }
    body.h26b-on, body.h26b-on.h26b-small { padding-bottom: 82px; }
    body.h26b-on .rocketchat-widget { bottom: 76px !important; }
    body.h26b-on #toTop { bottom: 88px !important; }
}
@media (prefers-reduced-motion: reduce) { .h26b, .h26b * { animation: none !important; transition: none !important; } }
@media print { .h26b { display: none; } body.h26b-on { padding-bottom: 0; } }
/* con il footer nuovo lo spazio per la barra sta dentro il footer (scuro), non sotto la pagina (bianco) */
body.h26b-on:has(.f26) { padding-bottom: 0; }
body.h26b-on .f26-legal { padding-bottom: 150px; }
body.h26b-on.h26b-small .f26-legal { padding-bottom: 86px; }
@media (max-width: 1099px) { body.h26b-on .f26-legal, body.h26b-on.h26b-small .f26-legal { padding-bottom: 76px; } }
@media (max-width: 560px) { body.h26b-on .f26-legal, body.h26b-on.h26b-small .f26-legal { padding-bottom: 82px; } }
