/* ----------------------------
   RESET E IMPOSTAZIONI BASE
---------------------------- */
.faq-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.faq-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    padding: 20px;
    margin: 20px 0;
    border-radius: 24px;
    max-width: 100%;
}

.faq-container {
    max-width: 820px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    margin: 0 auto;
}

.faq-container h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a2a4a;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.faq-container .subtitle {
    color: #5b6f8c;
    font-size: 15px;
    margin-bottom: 32px;
    border-bottom: 2px solid #eef2f7;
    padding-bottom: 18px;
}

/* LISTA FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border-radius: 14px;
    background: #f9fafc;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.faq-item:hover {
    background: #f2f5fc;
    border-color: #d9e2f0;
}

.faq-item input[type="checkbox"] {
    display: none;
}

.faq-item label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 16px;
    color: #1a2a4a;
    cursor: pointer;
    border-radius: 14px;
    transition: background 0.15s;
    user-select: none;
    gap: 20px;
}

.faq-item label:hover {
    background: rgba(30, 80, 180, 0.04);
}

.faq-item label .icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e6ecf5;
    color: #1a2a4a;
    font-size: 20px;
    font-weight: 300;
    transition: background 0.2s, transform 0.2s;
}

.faq-item label .icon::before {
    content: "+";
    display: inline-block;
    transition: transform 0.3s ease;
}

.faq-item .answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 22px;
    color: #2c3e5a;
    font-size: 15px;
    line-height: 1.7;
    transition: max-height 0.35s ease, padding 0.3s ease, opacity 0.25s ease;
    opacity: 0;
    border-radius: 0 0 14px 14px;
}

.faq-item .answer p {
    margin-bottom: 12px;
}

.faq-item .answer p:last-child {
    margin-bottom: 0;
}

.faq-item .answer ul,
.faq-item .answer ol {
    padding-left: 24px;
    margin: 8px 0 14px 0;
}

.faq-item .answer li {
    margin-bottom: 4px;
}

.faq-item .answer .highlight-box {
    background: #f0f4fe;
    padding: 12px 18px;
    border-radius: 10px;
    border-left: 4px solid #2a6df4;
    margin: 12px 0;
}

/* ----------------------------
   STATO: CHECKBOX SELEZIONATO
---------------------------- */
.faq-item input[type="checkbox"]:checked ~ .answer {
    max-height: 900px;
    padding: 8px 22px 22px 22px;
    opacity: 1;
}

/* Cambia l'icona + / − usando ::before */
.faq-item input[type="checkbox"]:checked + label .icon::before {
    content: "−";
}

.faq-item input[type="checkbox"]:checked + label .icon {
    background: #1a3b7a;
    color: #fff;
}

/* Sfondo dell'item quando aperto */
.faq-item input[type="checkbox"]:checked + label {
    border-radius: 14px 14px 0 0;
    background: #eef4ff;
}

/* ----------------------------
   CHIUDERE TUTTE LE ALTRE RISPOSTE
   Quando un checkbox è selezionato, nascondiamo le risposte
   di tutti gli altri item che vengono DOPO
---------------------------- */
.faq-item input[type="checkbox"]:checked ~ .faq-item .answer {
    max-height: 0 !important;
    padding: 0 22px !important;
    opacity: 0 !important;
}

/* Ripristiniamo l'icona per gli item chiusi */
.faq-item input[type="checkbox"]:checked ~ .faq-item label .icon::before {
    content: "+" !important;
}

.faq-item input[type="checkbox"]:checked ~ .faq-item label .icon {
    background: #e6ecf5 !important;
    color: #1a2a4a !important;
}

.faq-item input[type="checkbox"]:checked ~ .faq-item label {
    background: #f9fafc !important;
    border-radius: 14px !important;
}

/* ----------------------------
   GESTIONE ITEM PRECEDENTI
   Per chiudere anche gli item che vengono PRIMA di quello selezionato
   Usiamo un trucco: selezioniamo tutti gli item che hanno un checkbox
   non selezionato
---------------------------- */
.faq-item:not(:has(input:checked)) .answer {
    max-height: 0 !important;
    padding: 0 22px !important;
    opacity: 0 !important;
}

.faq-item:not(:has(input:checked)) label .icon::before {
    content: "+" !important;
}

.faq-item:not(:has(input:checked)) label .icon {
    background: #e6ecf5 !important;
    color: #1a2a4a !important;
}

.faq-item:not(:has(input:checked)) label {
    background: #f9fafc !important;
    border-radius: 14px !important;
}

/* ----------------------------
   STILI PER LE MAIL / TELEFONI
---------------------------- */
.faq-wrapper .mail-link {
    color: #0047ab;
    text-decoration: none;
    font-weight: 500;
}
.faq-wrapper .mail-link:hover {
    text-decoration: underline;
}

.faq-wrapper .contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 6px;
}

/* ----------------------------
   RESPONSIVE
---------------------------- */
@media (max-width: 600px) {
    .faq-container {
        padding: 24px 16px;
    }
    .faq-item label {
        font-size: 15px;
        padding: 14px 16px;
    }
    .faq-item .answer {
        font-size: 14px;
    }
    .faq-container h1 {
        font-size: 22px;
    }
}

.faq-item .answer {
    user-select: text;
}

.faq-item .answer a,
.faq-item .answer .mail-link {
    pointer-events: auto;
}

apps-fileview.texmex_20260715.11_p1
faq.css
Visualizzazione di faq.css.
