/**
 * assets/css/faq-plus.css — aspetto unico delle FAQ (2026-12-03): numero 01·02·03,
 * "+" che ruota in "×", bordo sinistro colorato quando la domanda è aperta.
 * Si applica a un contenitore .spx-faq2 che ha i <details> come figli diretti:
 * hub /stats/type/… (.sv-faq), directory v1 (.gd-faq__list), v2 (.gd2-faq__list), /mobile (.gd-m-faq).
 * Colore: --faq-ac (default indaco del sito; negli hub = colore della categoria).
 * Classe doppia (.spx-faq2.spx-faq2) per vincere sugli stili vecchi delle singole pagine.
 */
.spx-faq2.spx-faq2 { counter-reset: spxfaq; }
.spx-faq2.spx-faq2 > details {
    counter-increment: spxfaq;
    position: relative; padding: 0; background: #fff; border: 1px solid #e7e4f3; border-left: 3px solid #e7e4f3;
    border-radius: 14px; box-shadow: none; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.spx-faq2.spx-faq2 > details:hover { border-color: color-mix(in srgb, var(--faq-ac, #4f46e5) 35%, #e7e4f3); }
.spx-faq2.spx-faq2 > details[open] {
    border-color: color-mix(in srgb, var(--faq-ac, #4f46e5) 30%, #e7e4f3); border-left-color: var(--faq-ac, #4f46e5);
    background: linear-gradient(90deg, color-mix(in srgb, var(--faq-ac, #4f46e5) 6%, #fff), #fff 55%);
    box-shadow: 0 10px 26px -18px color-mix(in srgb, var(--faq-ac, #4f46e5) 70%, transparent);
}
.spx-faq2.spx-faq2 > details > summary {
    display: flex; align-items: center; gap: 14px; position: relative; list-style: none; cursor: pointer;
    padding: 15px 18px 15px 16px; font-size: 15.5px; font-weight: 700; line-height: 1.4; color: #15132a;
}
.spx-faq2.spx-faq2 > details > summary::-webkit-details-marker { display: none; }
.spx-faq2.spx-faq2 > details > summary::before {
    content: counter(spxfaq, decimal-leading-zero);
    flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
    font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em;
    color: var(--faq-ac, #4f46e5); background: color-mix(in srgb, var(--faq-ac, #4f46e5) 10%, #fff);
    transition: background-color .18s ease, color .18s ease;
}
.spx-faq2.spx-faq2 > details[open] > summary::before { background: var(--faq-ac, #4f46e5); color: #fff; }
.spx-faq2.spx-faq2 > details > summary::after {
    content: ""; position: static; flex: none; margin-left: auto; width: 14px; height: 14px; border: 0; border-radius: 0;
    background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
                linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
    color: #8a86a8; transform: none; transition: transform .22s ease, color .18s ease;
}
.spx-faq2.spx-faq2 > details[open] > summary::after { transform: rotate(45deg); color: var(--faq-ac, #4f46e5); }
.spx-faq2.spx-faq2 > details > summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--faq-ac, #4f46e5) 40%, transparent); outline-offset: 2px; border-radius: 12px; box-shadow: none; }
.spx-faq2.spx-faq2 > details > p { margin: 0; padding: 0 20px 16px 62px; font-size: 14.5px; line-height: 1.65; color: #45425f; }

@media (max-width: 760px) {
    .spx-faq2.spx-faq2 > details > summary { gap: 11px; padding: 13px 14px 13px 12px; font-size: 14.5px; }
    .spx-faq2.spx-faq2 > details > summary::before { width: 28px; height: 28px; border-radius: 9px; font-size: 11.5px; }
    .spx-faq2.spx-faq2 > details > p { padding: 0 14px 14px 51px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .spx-faq2.spx-faq2 > details, .spx-faq2.spx-faq2 > details > summary::before, .spx-faq2.spx-faq2 > details > summary::after { transition: none; }
}
/* /mobile scuro */
html[data-theme="dark"] .spx-faq2.spx-faq2 > details { background: #191f2a; border-color: #3a4759; }
html[data-theme="dark"] .spx-faq2.spx-faq2 > details[open] { background: #1d2431; border-left-color: var(--faq-ac, #4f46e5); }
html[data-theme="dark"] .spx-faq2.spx-faq2 > details > summary { color: #e8eaed; }
html[data-theme="dark"] .spx-faq2.spx-faq2 > details > p { color: #b4bcc8; }

/* ══ Spinly accanto al titolo delle FAQ (2026-12-03): Lobby = apre la chat, hub = link alla Lobby #spinly ══ */
.spx-faqhead { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin: 0 0 16px; }
.spx-faqhead > h2, .sv-faq .spx-faqhead > h2 { margin: 0; }
.spx-faqbot {
    display: inline-flex; align-items: center; gap: 11px; padding: 6px 14px 6px 7px; border-radius: 999px; cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--faq-ac, #4f46e5) 24%, #e7e4f3);
    background: linear-gradient(90deg, color-mix(in srgb, var(--faq-ac, #4f46e5) 8%, #fff), #fff 70%);
    color: #15132a; font: inherit; text-decoration: none; text-align: left;
    box-shadow: 0 8px 20px -14px color-mix(in srgb, var(--faq-ac, #4f46e5) 80%, transparent);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.spx-faqbot:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--faq-ac, #4f46e5) 55%, #e7e4f3); box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--faq-ac, #4f46e5) 90%, transparent); }
.spx-faqbot:focus-visible { outline: 3px solid color-mix(in srgb, var(--faq-ac, #4f46e5) 40%, transparent); outline-offset: 2px; }
.spx-faqbot__bot {
    position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .75);
}
.spx-faqbot__head { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #fff; overflow: hidden; box-shadow: inset 0 -2px 0 rgba(79, 70, 229, .18); }
.spx-faqbot__head img { display: block; width: 21px; height: 21px; object-fit: contain; }
.spx-faqbot__ant { position: absolute; left: 50%; top: 1px; z-index: 1; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: #c7d2fe; }
.spx-faqbot__ant i { position: absolute; left: 50%; top: -4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, .25); }
.spx-faqbot__txt { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.spx-faqbot__txt small { font-size: 12px; font-weight: 600; color: #6b6888; }
.spx-faqbot__txt b { font-size: 14.5px; font-weight: 800; color: var(--faq-ac, #4f46e5); }
.spx-faqbot__go { width: 16px; height: 16px; color: var(--faq-ac, #4f46e5); transition: transform .18s ease; }
.spx-faqbot:hover .spx-faqbot__go { transform: translateX(3px); }
@media (prefers-reduced-motion: no-preference) {
    .spx-faqbot__head { animation: spxFaqBob 3.2s ease-in-out infinite; }
    .spx-faqbot__ant i { animation: spxFaqBlink 2.4s steps(1) infinite; }
    .spx-faqbot:hover .spx-faqbot__head { animation: spxFaqHi .6s ease-in-out; }
}
@keyframes spxFaqBob { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-1px); } }
@keyframes spxFaqBlink { 0%, 70% { background: #22c55e; } 72%, 78% { background: #fde047; } 80%, 100% { background: #22c55e; } }
@keyframes spxFaqHi { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-10deg); } 65% { transform: rotate(8deg); } }
/* Natale: cappellino al posto dell'antenna (stessa regola/date di Spinly nella Lobby) */
.spx-faqbot--xmas .spx-faqbot__ant { display: none; }
.spx-faqbot--xmas .spx-faqbot__bot::before {
    content: ""; position: absolute; left: 3px; top: -9px; z-index: 2; width: 24px; height: 19px; pointer-events: none; rotate: -18deg;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='50' viewBox='0 0 64 50'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f43f4e'/%3E%3Cstop offset='1' stop-color='%23b3121f'/%3E%3C/linearGradient%3E%3ClinearGradient id='w' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23d8e5f2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M9 37C10 17 24 5 37 5c12 0 20 9 21 24 0 0-5-7-11-8 5 5 7 10 8 16z' fill='url(%23r)'/%3E%3Cpath d='M37 8c7 1 11 6 12 13M20 20c4-5 8-8 12-9' fill='none' stroke='%237f0d17' stroke-opacity='.35' stroke-width='1.6' stroke-linecap='round'/%3E%3Crect x='3' y='34' width='57' height='13' rx='6.5' fill='url(%23w)' stroke='%23b9c7d8'/%3E%3Ccircle cx='57' cy='27' r='6' fill='url(%23w)' stroke='%23b9c7d8'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, .3));
}
@media (max-width: 760px) { .spx-faqbot { padding-right: 12px; } .spx-faqbot__txt small { font-size: 11.5px; } }
