/* faq.css */
div.faq {
    margin: 0 auto;
    max-width: 1440px;
    width: 1440px;
    padding: 60px 0 50px 0;
    color: #fff;
}

.faq-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 25px 0;
}

.faq-item {
    border-bottom: 1px solid #808080;
}

.faq-item:first-of-type {
    border-top: 1px solid #808080;
}

button.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 22px 0;
    background: none;
    border: 0;
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
}

button.faq-q:hover,
.faq-item.is-open button.faq-q {
    color: var(--event-primary-color);
}

button.faq-q:focus-visible {
    outline: 2px solid var(--event-primary-color);
    outline-offset: 4px;
}

/* Icona + / - */
.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
    background-color: currentColor;
    transition: transform 0.3s ease;
}

.faq-icon::after {
    transform: rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
    transform: rotate(0deg);
}

/* Risposta: animazione apertura/chiusura */
.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-a {
    grid-template-rows: 1fr;
}

.faq-a-inner {
    overflow: hidden;
}

.faq-a-inner p {
    margin: 0 0 12px 0;
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
}

.faq-a-inner p:last-child {
    padding-bottom: 22px;
    margin-bottom: 0;
}

.faq-a-inner strong {
    color: #fff;
}

@media (max-width: 768px) {
    div.faq {
        padding: 40px 20px 30px 20px;
    }

    .faq-title {
        font-size: 20px;
    }

    button.faq-q {
        font-size: 16px;
        padding: 18px 0;
    }

    .faq-a-inner p {
        font-size: 15px;
    }
}
