/* ---------------------------------------------------------------
   IDM FAQ — faq.css
--------------------------------------------------------------- */

.idm-faq {
    padding: 60px 20px;
}
.idm-faq__inner {
    max-width: 820px;
    margin: 0 auto;
}

.idm-faq__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
    color: inherit;
}
.idm-faq__subtitle {
    font-size: 1rem;
    margin-bottom: 36px;
    opacity: 0.75;
}

.idm-faq__item {
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.idm-faq__item:first-child {
    border-top: 1px solid rgba(0, 0, 0, .12);
}

.idm-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
    gap: 16px;
    line-height: 1.4;
}
.idm-faq__question:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Icona +/− ── */
.idm-faq__icon {
    flex-shrink: 0;
    position: relative;
    width: 18px;
    height: 18px;
}
.idm-faq__icon::before,
.idm-faq__icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.idm-faq__icon::before {
    top: 50%; left: 0;
    width: 100%; height: 2px;
    transform: translateY(-50%);
}
.idm-faq__icon::after {
    top: 0; left: 50%;
    width: 2px; height: 100%;
    transform: translateX(-50%);
}
.idm-faq__question[aria-expanded="true"] .idm-faq__icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* ── Pannello risposta ── */
.idm-faq__answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}
.idm-faq__answer[hidden] {
    display: block !important;
}

.idm-faq__answer-inner {
    padding-bottom: 18px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: inherit;
    opacity: 0.85;
}
.idm-faq__answer-inner p:last-child {
    margin-bottom: 0;
}