/* Video AI4CALL: due telefoni che "squillano", il tasto verde fa partire il video (vedi _include_h26_video.php e js/h26-video.js).
   Usato in homepage (#demo) e in ai4call-ai-per-le-chiamate-telefoniche.php (#video). */
.h26-vid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px 80px; align-items: center; }
.h26 .h26-vid__t { margin: 0; max-width: 18ch; font-family: var(--display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
.h26 .h26-vid__p { margin: 20px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.6; color: var(--body); }
.h26 .h26-vid__go { display: inline-block; margin-top: 22px; }
.h26 .h26-vid__note { display: flex; gap: 8px; align-items: center; margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.h26 .h26-vid__note svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.h26-vid__phones { display: flex; gap: 28px; align-items: flex-start; padding-bottom: 40px; }
.h26-vid__item { width: clamp(170px, 18vw, 250px); margin: 0; }
.h26-vid__item:nth-child(2) { margin-top: 40px; }
.h26 .h26-vid__item figcaption { margin-top: 16px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); }

/* il telefono */
.h26-vid__phone {
    position: relative; aspect-ratio: 9 / 16; border-radius: 32px; padding: 7px; background: #0d0f16; overflow: hidden; isolation: isolate;
    box-shadow: inset 0 0 0 1.5px #2b3040, 0 2px 0 #000, 0 34px 60px -28px rgba(13, 15, 22, 0.55);
    transform: rotate(-2deg); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.h26-vid__item:nth-child(2) .h26-vid__phone { transform: rotate(2deg); }
.h26-vid__phone:hover, .h26-vid__phone.is-playing { transform: rotate(0) translateY(-6px); box-shadow: inset 0 0 0 1.5px #2b3040, 0 2px 0 #000, 0 44px 70px -28px rgba(13, 15, 22, 0.6); }
.h26-vid__item:nth-child(2) .h26-vid__phone:hover, .h26-vid__item:nth-child(2) .h26-vid__phone.is-playing { transform: rotate(0) translateY(-6px); }
.h26-vid__phone::before { content: ""; position: absolute; z-index: 3; top: 15px; left: 50%; width: 64px; height: 18px; margin-left: -32px; border-radius: 10px; background: #0d0f16; pointer-events: none; }
.h26-vid__poster, .h26-vid__phone iframe { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); border: 0; border-radius: 25px; object-fit: cover; background: #1b1f2b; }
.h26-vid__phone iframe { z-index: 4; }

/* la barra "in linea" in alto */
.h26 .h26-vid__call {
    position: absolute; z-index: 2; top: 44px; left: 16px; right: 16px; display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px;
    border-radius: 14px; background: rgba(13, 15, 22, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-size: 12px; font-weight: 600; line-height: 1.2; color: #fff;
}
.h26 .h26-vid__call span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h26 .h26-vid__call b { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--amber); }
.h26-vid__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #2fd36b; box-shadow: 0 0 0 0 rgba(47, 211, 107, 0.6); animation: h26-vid-dot 1.6s ease-out infinite; }
@keyframes h26-vid-dot { to { box-shadow: 0 0 0 8px rgba(47, 211, 107, 0); } }

/* il tasto verde "rispondi" */
.h26 .h26-vid__play {
    position: absolute; z-index: 2; inset: 7px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding-bottom: 28px;
    border-radius: 25px; background: linear-gradient(180deg, transparent 55%, rgba(13, 15, 22, 0.65)); color: #fff; text-decoration: none; cursor: pointer;
}
.h26-vid__btn { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #22c55e; box-shadow: 0 10px 24px -8px rgba(34, 197, 94, 0.8); transition: transform 0.25s var(--ease), background 0.25s ease; }
.h26-vid__btn::before, .h26-vid__btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(47, 211, 107, 0.7); animation: h26-vid-ring 2.2s ease-out infinite; }
.h26-vid__btn::after { animation-delay: 0.7s; }
@keyframes h26-vid-ring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.h26-vid__btn svg { position: relative; width: 26px; height: 26px; margin-left: 3px; fill: #fff; }
.h26 .h26-vid__lbl { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.h26 .h26-vid__play:hover .h26-vid__btn { transform: scale(1.08); background: #16a34a; }
.h26 .h26-vid__play:focus-visible { outline: 3px solid #2fd36b; outline-offset: -3px; }
.h26-vid__phone.is-playing .h26-vid__play, .h26-vid__phone.is-playing .h26-vid__call { display: none; }

/* homepage: sotto la prova per settore */
.h26-vid--home { margin-top: 112px; padding-top: 72px; border-top: 1px solid var(--line); }

/* pagina AI4CALL: di notte, in ufficio */
.ac-vid { background: radial-gradient(70% 90% at 85% 10%, rgba(47, 211, 107, 0.10), transparent 60%), var(--notte, #141a33); color: #fff; }
.ac .h26-vid__item figcaption { font-family: var(--tw); font-weight: 700; color: #e6e8f2; }
.ac .h26-vid__phone { box-shadow: inset 0 0 0 1.5px #3a4160, 0 2px 0 #000, 0 40px 70px -24px rgba(0, 0, 0, 0.8); }
.ac .h26-vid__note { color: #a9aec4; }

@media (max-width: 1023px) {
    .h26-vid { grid-template-columns: 1fr; }
    .h26-vid__phones { justify-content: center; gap: 18px; }
    .h26-vid__item { width: min(46%, 250px); }
    .h26-vid--home { margin-top: 80px; padding-top: 56px; }
}
@media (max-width: 480px) {
    .h26 .h26-vid__call { top: 38px; left: 10px; right: 10px; padding: 6px 9px; font-size: 11px; }
    .h26 .h26-vid__call b { display: none; }
    .h26-vid__btn { width: 54px; height: 54px; }
    .h26 .h26-vid__item figcaption { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .h26-vid__dot, .h26-vid__btn::before, .h26-vid__btn::after { animation: none; }
    .h26-vid__phone, .h26-vid__item:nth-child(2) .h26-vid__phone { transition: none; }
}
