/* Eleia Insight: stile chat Eleia (header rosso, bolla grigia, avatar a sinistra) */
.eleia-insight {
    --eleia-red: #b2142d;
    --eleia-bubble: #f1f2f2;
    --eleia-text: #1a1e23;
    max-width: 640px;
    margin: 32px auto;
    padding: 0; /* il tema da' padding verticale a section */
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}
.eleia-insight__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--eleia-red);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.eleia-insight__header-icon { border-radius: 50%; display: block; }
.eleia-insight__header-title em { font-style: normal; font-weight: 400; opacity: .85; }
.eleia-insight__body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
}
.eleia-insight__avatar {
    flex: none;
    width: 88px;
    height: 88px;
    display: block;
    background: #fff;
}
.eleia-insight__bubble {
    flex: 1;
    box-sizing: border-box;
    min-height: 88px;
    padding: 16px 18px;
    background: var(--eleia-bubble);
    color: var(--eleia-text);
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
}
.eleia-insight__bubble p { margin: 0 0 12px; }
.eleia-insight__bubble p:last-child { margin-bottom: 0; }
.eleia-insight__bubble strong { color: var(--eleia-red); font-weight: 700; }
/* cursore mentre scrive */
.eleia-insight.is-typing .eleia-insight__bubble::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    vertical-align: -2px;
    background: var(--eleia-text);
    animation: eleia-insight-caret 1s steps(1) infinite;
}
@keyframes eleia-insight-caret { 50% { opacity: 0; } }
@media (max-width: 600px) {
    .eleia-insight__body { flex-direction: column; align-items: center; padding: 16px; }
    .eleia-insight__bubble { width: 100%; }
}
