/* ═══════════════════════════════════════════
   BEEVOIP 2026 — MENU IN ALTO (classi h26m-), su tutte le pagine del sito.
   Markup: _include_top_menu.php · comportamento: js/h26-menu.js · caricato da _include_header_02.php.
   Sostituisce del tutto il vecchio menu del tema (page_header, sf-menu, mega-menu, toggle_menu), le cui regole
   sono state tolte da css/main.css e css/home-2026.css.
   Chiaro e fisso in alto. Lo sfondo della barra è un alveare che si accende sotto la voce indicata.
   Il logo (rosso, come nel footer) sta su una grande cella nera che pulsa e sporge dalla barra.
   ═══════════════════════════════════════════ */
.h26m {
    --m-h: 76px;
    --m-ink: #0d0f16; --m-body: #3a4050; --m-muted: #5d6374; --m-line: rgba(13, 15, 22, 0.09); --m-soft: #f4f5f8;
    --m-red: #e2241c; --m-red-ink: #c01a12; --m-honey: #f29a0e;
    --m-grad: linear-gradient(100deg, #e2241c 0%, #f5612e 55%, #ff9a3d 100%);
    --m-comb-o: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='34.641' viewBox='0 0 20 34.641'%3E%3Cpolygon points='10.00,1.15 19.00,6.35 19.00,16.74 10.00,21.94 1.00,16.74 1.00,6.35' fill='none' stroke='black' stroke-width='1'/%3E%3Cpolygon points='0.00,18.48 9.00,23.67 9.00,34.06 0.00,39.26 -9.00,34.06 -9.00,23.67' fill='none' stroke='black' stroke-width='1'/%3E%3Cpolygon points='20.00,18.48 29.00,23.67 29.00,34.06 20.00,39.26 11.00,34.06 11.00,23.67' fill='none' stroke='black' stroke-width='1'/%3E%3Cpolygon points='0.00,-16.17 9.00,-10.97 9.00,-0.58 0.00,4.62 -9.00,-0.58 -9.00,-10.97' fill='none' stroke='black' stroke-width='1'/%3E%3Cpolygon points='20.00,-16.17 29.00,-10.97 29.00,-0.58 20.00,4.62 11.00,-0.58 11.00,-10.97' fill='none' stroke='black' stroke-width='1'/%3E%3Cpolygon points='10.00,35.80 19.00,40.99 19.00,51.38 10.00,56.58 1.00,51.38 1.00,40.99' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E");
    --m-comb-f: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='34.641' viewBox='0 0 20 34.641'%3E%3Cpolygon points='10.00,1.85 18.40,6.70 18.40,16.40 10.00,21.25 1.60,16.40 1.60,6.70' fill='black'/%3E%3Cpolygon points='0.00,19.17 8.40,24.02 8.40,33.72 0.00,38.57 -8.40,33.72 -8.40,24.02' fill='black'/%3E%3Cpolygon points='20.00,19.17 28.40,24.02 28.40,33.72 20.00,38.57 11.60,33.72 11.60,24.02' fill='black'/%3E%3Cpolygon points='0.00,-15.47 8.40,-10.62 8.40,-0.92 0.00,3.93 -8.40,-0.92 -8.40,-10.62' fill='black'/%3E%3Cpolygon points='20.00,-15.47 28.40,-10.62 28.40,-0.92 20.00,3.93 11.60,-0.92 11.60,-10.62' fill='black'/%3E%3Cpolygon points='10.00,36.49 18.40,41.34 18.40,51.04 10.00,55.89 1.60,51.04 1.60,41.34' fill='black'/%3E%3C/svg%3E");
    --m-comb-s: 20px 34.641px;
    --m-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.3; color: var(--m-ink);
    -webkit-font-smoothing: antialiased; text-align: left;
}
.h26m-spacer { height: 76px; }
.h26m *, .h26m *::before, .h26m *::after { box-sizing: border-box; }
.h26m ul { list-style: none; margin: 0; padding: 0; }
.h26m li { margin: 0; padding: 0; border: 0; }
.h26m p { margin: 0; }
.h26m a, .h26m a:hover, .h26m a:focus { text-decoration: none; }
/* neutralizza i bottoni del tema (bordo rosso, sfondo rosso al passaggio, "top: 1px" alla pressione).
   Specificità bassa apposta: le regole con classe qui sotto (.h26m .h26m__…) devono poter vincere anche su :hover e :active. */
.h26m button, .h26m button:where(:hover, :focus, :active) {
    margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transition: none;
    font: inherit; color: inherit; text-transform: none; letter-spacing: normal; line-height: inherit; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.h26m button:active { position: relative; top: 0 !important; }
.h26m a:hover > img { opacity: 1; }
.h26m :focus-visible { outline: 2px solid var(--m-red); outline-offset: 2px; border-radius: 10px; }

/* ── la barra ── */
.h26m__bar {
    position: relative; z-index: 2; height: var(--m-h); display: flex; align-items: center; gap: 24px;
    padding: 0 max(28px, calc((100vw - 1360px) / 2)) 0 max(20px, calc((100vw - 1360px) / 2 - 8px));
    background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
    border-bottom: 1px solid var(--m-line); transition: height 0.3s var(--m-ease), box-shadow 0.3s ease, background-color 0.3s ease;
}
.h26m.is-stuck .h26m__bar { --m-h: 64px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 14px 34px -24px rgba(13, 15, 22, 0.35); }
/* il logo sulla cella nera: esagono allungato, largo quanto il logo (angoli a 120°, lati obliqui corti) */
.h26m__logo {
    --lw: 172px;                                  /* larghezza del logo */
    --ch: 60px;                                   /* altezza della cella */
    --cx: calc(var(--ch) * 0.2887);               /* sporgenza dei lati obliqui */
    --hex: polygon(var(--cx) 0, calc(100% - var(--cx)) 0, 100% 50%, calc(100% - var(--cx)) 100%, var(--cx) 100%, 0 50%);
    flex: none; position: relative; z-index: 2; display: grid; place-items: center;
    width: calc(var(--lw) + 2 * var(--cx) + 20px); height: var(--ch); line-height: 0;
    transition: width 0.3s var(--m-ease), height 0.3s var(--m-ease);
}
.h26m__cell {
    position: absolute; inset: 0; clip-path: var(--hex);
    background: linear-gradient(100deg, #ffb23e, #e2241c);   /* diventa il bordo sottile, miele e rosso */
    animation: h26m-beat 2.6s ease-in-out infinite;
}
.h26m__cell::after {
    content: ""; position: absolute; inset: 2px; clip-path: var(--hex);
    background: radial-gradient(70% 90% at 50% 20%, #2b2f3b, #0b0d13 75%);
}
/* l'onda rossa che parte dalla cella a ogni battito */
.h26m__logo::before {
    content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--hex); background: var(--m-grad); opacity: 0;
    animation: h26m-ring 2.6s ease-out infinite;
}
@keyframes h26m-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.04); } 24% { transform: scale(0.995); } 36% { transform: scale(1.02); } 50% { transform: scale(1); } }
@keyframes h26m-ring { 0% { transform: scale(1); opacity: 0.5; } 60%, 100% { transform: scale(1.14, 1.4); opacity: 0; } }
.h26m__logo img { position: relative; z-index: 1; display: block; width: var(--lw); height: auto; max-width: none; transition: transform 0.3s var(--m-ease), width 0.3s var(--m-ease); }
.h26m__logo:hover img { transform: scale(1.04); }
.h26m.is-stuck .h26m__logo { --lw: 156px; --ch: 52px; }
.h26m__nav { flex: 1; display: flex; justify-content: flex-end; min-width: 0; }
.h26m__list { display: flex; align-items: center; gap: 2px; }

/* voci di primo livello */
.h26m .h26m__top {
    position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 15px; border-radius: 999px;
    font-size: 15.5px; font-weight: 600; letter-spacing: -0.005em; color: var(--m-body); white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.h26m .h26m__top:hover, .h26m .h26m__item.is-open > .h26m__top { background: var(--m-soft); color: var(--m-ink); }
.h26m .h26m__top.is-on { color: var(--m-ink); }
.h26m .h26m__top.is-on::after {
    content: ""; position: absolute; left: 50%; bottom: 2px; width: 8px; height: 9px; margin-left: -4px;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--m-grad);
}
.h26m__chev { width: 7px; height: 7px; margin-top: -3px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); opacity: 0.7; transition: transform 0.25s ease, margin 0.25s ease; }
.h26m__item.is-open .h26m__chev { transform: rotate(225deg); margin-top: 3px; }
.h26m .h26m__cta, .h26m .h26m__cta:hover, .h26m .h26m__cta:focus {
    display: inline-flex; align-items: center; height: 44px; margin-left: 14px; padding: 0 22px; border-radius: 999px;
    background: var(--m-grad); color: #fff; font-size: 15.5px; font-weight: 700; white-space: nowrap;
    box-shadow: 0 10px 24px -12px rgba(226, 36, 28, 0.85); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.h26m .h26m__cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(226, 36, 28, 0.95); }

/* ── lo sfondo della barra: un alveare chiaro; le celle si accendono sotto la voce indicata ── */
.h26m__comb, .h26m__lit { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.h26m__comb {
    background: rgba(214, 150, 40, 0.2);
    --m-mask2: linear-gradient(90deg, rgba(0, 0, 0, 0.35), #000 30%, #000 70%, rgba(0, 0, 0, 0.35));
    -webkit-mask-image: var(--m-comb-o), var(--m-mask2); -webkit-mask-size: var(--m-comb-s), 100% 100%; -webkit-mask-repeat: repeat, no-repeat; -webkit-mask-position: 0 0, 0 0; -webkit-mask-composite: source-in;
    mask-image: var(--m-comb-o), var(--m-mask2); mask-size: var(--m-comb-s), 100% 100%; mask-repeat: repeat, no-repeat; mask-position: 0 0, 0 0; mask-composite: intersect;
}
/* la luce: le stesse celle, piene e colorate, solo intorno alla voce indicata (--mx lo imposta js/h26-menu.js) */
.h26m__lit {
    background: var(--m-grad); opacity: 0; transition: opacity 0.35s ease;
    --m-mask2: radial-gradient(84px 46px at var(--mx, 50%) 50%, #000 15%, transparent 100%);
    -webkit-mask-image: var(--m-comb-f), var(--m-mask2); -webkit-mask-size: var(--m-comb-s), 100% 100%; -webkit-mask-repeat: repeat, no-repeat; -webkit-mask-position: 0 0, 0 0; -webkit-mask-composite: source-in;
    mask-image: var(--m-comb-f), var(--m-mask2); mask-size: var(--m-comb-s), 100% 100%; mask-repeat: repeat, no-repeat; mask-position: 0 0, 0 0; mask-composite: intersect;
}
.h26m__nav, .h26m .h26m__burger { position: relative; z-index: 1; }
/* sotto le voci la luce resta leggibile: la pillola chiara copre le celle accese */
.h26m .h26m__top { background: rgba(255, 255, 255, 0.72); }
.h26m.is-lit .h26m__lit { opacity: 0.45; }
/* la fascia è un colore pieno attraverso le maschere: senza mask-composite resterebbe un rettangolo, quindi la si nasconde */
@supports not ((mask-composite: intersect) or (-webkit-mask-composite: source-in)) { .h26m__comb, .h26m__lit { display: none; } }

/* ── i pannelli (computer) ── */
.h26m__panel {
    position: absolute; top: calc(100% + 10px); left: 50%; width: min(1080px, calc(100vw - 48px)); z-index: 3;
    padding: 26px 22px 22px; border-radius: 26px; background: #fff;
    box-shadow: 0 0 0 1px rgba(13, 15, 22, 0.06), 0 40px 90px -36px rgba(13, 15, 22, 0.5);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px) scale(0.99); transform-origin: 50% 0;
    transition: opacity 0.22s ease, transform 0.28s var(--m-ease), visibility 0s linear 0.28s;
}
.h26m__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.h26m__item.is-open > .h26m__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.h26m__panel--voip { width: min(900px, calc(100vw - 48px)); }
.h26m__panel--corsi { width: min(700px, calc(100vw - 48px)); }
.h26m__cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.h26m__panel--ai .h26m__cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-auto-flow: row; }
.h26m__col { padding: 0 8px; }
.h26m__col + .h26m__col { border-left: 1px solid var(--m-line); }
.h26m__col--due ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4px; }
.h26m .h26m__head { margin: 0 0 10px 12px; font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--m-red-ink); }
.h26m .h26m__link {
    display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 10px 12px; border-radius: 14px;
    color: var(--m-ink); transition: background-color 0.18s ease, transform 0.18s ease;
}
.h26m .h26m__link:hover, .h26m .h26m__link:focus-visible { background: var(--m-soft); color: var(--m-ink); transform: translateX(2px); }
.h26m .h26m__link i { grid-row: span 2; width: 14px; height: 16px; margin-top: 2px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--c); }
.h26m .h26m__link b { font-size: 15px; font-weight: 700; line-height: 1.3; }
.h26m .h26m__link span { margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--m-muted); }
.h26m .h26m__link[aria-current="page"] { background: var(--m-soft); }
.h26m .h26m__link[aria-current="page"] b::after { content: " · sei qui"; font-weight: 500; font-size: 12.5px; color: var(--m-red-ink); }
.h26m__link--ai { --c: linear-gradient(150deg, #cf1d15, #f2622e); }
.h26m__link--app { --c: linear-gradient(150deg, #0b8466, #19b98c); }
.h26m__link--voip { --c: linear-gradient(150deg, #1847c4, #3a8dff); }
.h26m__link--pro { --c: linear-gradient(150deg, #1f2433, #4b5469); }
.h26m__link--edu { --c: linear-gradient(150deg, #f29a0e, #ffc53d); }
.h26m .h26m__note { display: flex; align-items: center; gap: 14px; margin: 16px 8px 0; padding: 12px 16px 12px 12px; border-radius: 16px; background: #fff6e6; font-size: 14.5px; color: var(--m-body); }
.h26m .h26m__note b { color: var(--m-ink); }
.h26m__note-hex { flex: none; display: grid; place-items: center; width: 40px; height: 46px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(150deg, #1847c4, #3a8dff); color: #fff; font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif; font-size: 14px; font-weight: 800; }

/* ── bottone del menu (telefono e tablet) ── */
.h26m .h26m__burger { display: none; margin-left: auto; height: 44px; padding: 0 14px 0 18px; border-radius: 999px; background: var(--m-soft); align-items: center; gap: 12px; font-size: 15px; font-weight: 700; color: var(--m-ink); }
.h26m__burger i { position: relative; width: 20px; height: 12px; }
.h26m__burger b { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--m-ease), top 0.3s var(--m-ease); }
.h26m__burger b:first-child { top: 1px; } .h26m__burger b:last-child { top: 9px; }
.h26m.is-menu .h26m__burger b:first-child { top: 5px; transform: rotate(45deg); }
.h26m.is-menu .h26m__burger b:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1279px) and (min-width: 1200px) { .h26m .h26m__top { padding: 0 11px; } .h26m .h26m__cta { margin-left: 8px; } }

@media (max-width: 1199px) {
    .h26m { --m-h: 64px; }
    .h26m-spacer { height: 64px; }
    /* niente effetto vetro qui: renderebbe la barra il riferimento del pannello fisso, che resterebbe alto 0 */
    .h26m__bar, .h26m.is-stuck .h26m__bar { padding: 0 20px; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .h26m.is-stuck .h26m__bar { --m-h: 64px; }
    .h26m__logo, .h26m.is-stuck .h26m__logo { --lw: 124px; --ch: 46px; }
    .h26m .h26m__burger { display: inline-flex; }
    .h26m__nav {
        position: fixed; left: 0; right: 0; top: 64px; bottom: 0; display: block; overflow-y: auto; overscroll-behavior: contain;
        padding: 18px 20px 40px; background: #fff; visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.3s var(--m-ease), visibility 0s linear 0.3s;
    }
    .h26m.is-menu .h26m__nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .h26m__list { display: block; }
    .h26m__item { border-bottom: 1px solid var(--m-line); }
    .h26m .h26m__top { width: 100%; height: auto; padding: 16px 6px; justify-content: space-between; border-radius: 12px; font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--m-ink); }
    .h26m .h26m__top:hover, .h26m .h26m__item.is-open > .h26m__top { background: none; }
    .h26m .h26m__top.is-on::after { left: auto; right: 8px; bottom: 50%; margin: 0 0 -4px; }
    .h26m__item--sub .h26m__top.is-on::after { right: 40px; }
    .h26m__chev { width: 9px; height: 9px; margin-right: 8px; }
    .h26m__panel, .h26m__panel--voip, .h26m__panel--corsi {
        position: static; width: auto; display: none; padding: 0 0 14px; border-radius: 0; box-shadow: none;
        opacity: 1; visibility: visible; transform: none; transition: none;
    }
    .h26m__panel::before { display: none; }
    .h26m__item.is-open > .h26m__panel { display: block; transform: none; }
    .h26m__cols, .h26m__panel--ai .h26m__cols { display: block; }
    .h26m__col { padding: 0; }
    .h26m__col + .h26m__col { border-left: 0; margin-top: 10px; }
    .h26m__col--due ul { display: block; }
    .h26m .h26m__head { margin: 6px 0 4px 6px; }
    .h26m .h26m__link { padding: 10px 6px; }
    .h26m .h26m__note { margin: 10px 0 0; }
    .h26m__item--cta { border-bottom: 0; margin-top: 24px; }
    .h26m .h26m__cta { display: flex; justify-content: center; height: 54px; margin: 0; font-size: 17px; }
    html.h26m-lock, html.h26m-lock body { overflow: hidden; }
}
@media (max-width: 420px) { .h26m .h26m__burger-txt { display: none; } .h26m .h26m__burger { padding: 0 14px; } }

@media (prefers-reduced-motion: reduce) {
    .h26m *, .h26m *::before, .h26m *::after { transition: none !important; animation: none !important; }
    .h26m__logo::before { display: none; }
}

@media print { .h26m, .h26m-spacer { display: none; } }

/* le ancore (#linee, #prefissi…) non finiscono sotto il menu fisso */
html { scroll-padding-top: 92px; }
@media (max-width: 1199px) { html { scroll-padding-top: 80px; } }

/* un secondo titolo in fondo alla stessa colonna (es. "AI4CALL Assistant Creator" sotto "Consulenza AI") */
.h26m .h26m__head--more { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--m-line); }
@media (max-width: 1199px) { .h26m .h26m__head--more { margin-top: 10px; padding-top: 10px; } }

/* icona "Area clienti" in fondo al menu: sul computer un cerchio con l'omino, il pannello si apre allineato a destra */
.h26m__item--login { margin-left: 8px; }
.h26m .h26m__login { width: 44px; height: 44px; padding: 0; justify-content: center; background: var(--m-soft); color: var(--m-ink); box-shadow: inset 0 0 0 1px var(--m-line); }
.h26m .h26m__login:hover, .h26m .h26m__item--login.is-open > .h26m__login { background: var(--m-ink); color: #fff; }
.h26m__login-ico { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.h26m__login-txt, .h26m__login .h26m__chev { display: none; }
.h26m__panel--login { left: auto; right: 0; width: 360px; padding: 20px 14px 14px; transform: translateY(8px) scale(0.99); transform-origin: 100% 0; }
.h26m__item--login.is-open > .h26m__panel--login { transform: none; }
@media (max-width: 1279px) and (min-width: 1200px) { .h26m__item--login { margin-left: 4px; } }
@media (max-width: 1199px) {
    .h26m__item--login { margin: 18px 0 0; border: 1px solid var(--m-line); border-radius: 18px; padding: 0 8px; }
    .h26m .h26m__login { width: 100%; height: auto; padding: 14px 6px; justify-content: flex-start; gap: 12px; background: none; box-shadow: none; font-size: 19px; }
    .h26m .h26m__login:hover, .h26m .h26m__item--login.is-open > .h26m__login { background: none; color: var(--m-ink); }
    .h26m__login-ico { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--m-soft); }
    .h26m__login-txt { display: inline; }
    .h26m__login .h26m__chev { display: block; margin-left: auto; }
    .h26m__panel--login { width: auto; padding: 0 0 10px; transform: none; }
    .h26m__panel--login .h26m__head { display: none; }
    .h26m__nav { padding-bottom: 190px; }   /* le ultime voci non restano sotto i bottoni fissi in basso (cookie, chat) */
}
