/* =========================================================
   CryptoTasse — Prezzi 4
   FAQ
   ========================================================= */

.ct-prezzi-faq {
    width: 100%;
    background: #FAFDFB;
    padding: 40px 24px 58px;
    box-sizing: border-box;
}

.ct-prezzi-faq *,
.ct-prezzi-faq *::before,
.ct-prezzi-faq *::after {
    box-sizing: border-box;
}

.ct-prezzi-faq__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.ct-prezzi-faq__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 34px;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.ct-prezzi-faq__eyebrow {
    margin: 0 0 9px;

    color: #065F46;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 1.8px;
}


/* =========================================================
   H2
   ========================================================= */

.ct-prezzi-faq__title {
    margin: 0 !important;
    padding: 0 !important;

    color: #034331 !important;

    font-family: inherit;
    font-size: 38px !important;
    line-height: 1.08 !important;
    font-weight: 700 !important;

    letter-spacing: -0.035em !important;
}


/* =========================================================
   LINK "VEDI TUTTE LE FAQ"
   ========================================================= */

.ct-prezzi-faq__all {
    display: inline-flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 5px;

    color: #065F46 !important;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;

    text-decoration: underline !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ct-prezzi-faq__all-arrow {
    display: inline-block;

    font-size: 20px;
    line-height: 1;

    text-decoration: none;

    transition: transform 200ms ease;
}

@media (hover: hover) and (pointer: fine) {

    .ct-prezzi-faq__all:hover {
        color: #10B981 !important;
    }

    .ct-prezzi-faq__all:hover .ct-prezzi-faq__all-arrow {
        transform: translateX(4px);
    }

}


/* =========================================================
   LISTA FAQ
   ========================================================= */

.ct-prezzi-faq__list {
    display: flex;
    flex-direction: column;

    width: 100%;

    gap: 18px;

    overflow: visible;

    background: transparent;

    border: 0;
    border-radius: 0;
}


/* =========================================================
   SINGOLA FAQ
   ========================================================= */

.ct-prezzi-faq__item {
    margin: 0 !important;
    padding: 0 !important;

    background: #FFFFFF;

    border: 1px solid rgba(3, 67, 49, 0.12);
    border-radius: 14px;

    box-shadow:
        0 3px 8px rgba(3, 67, 49, 0.04),
        0 10px 24px rgba(3, 67, 49, 0.035);

    overflow: hidden;
}

.ct-prezzi-faq__item:last-child {
    border-bottom: 1px solid rgba(3, 67, 49, 0.12);
}


/* =========================================================
   DOMANDA / SUMMARY
   ========================================================= */

.ct-prezzi-faq__item summary {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;

    gap: 24px;

    width: 100%;
    min-height: 104px;

    padding: 22px 34px;

    color: #034331;

    cursor: pointer;
    list-style: none;

    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;

    transition:
        color 180ms ease,
        background 180ms ease;
}


/* Rimuove marker browser */

.ct-prezzi-faq__item summary::-webkit-details-marker {
    display: none;
}

.ct-prezzi-faq__item summary::marker {
    display: none;
    content: "";
}


/* Hover */

@media (hover: hover) and (pointer: fine) {

    .ct-prezzi-faq__item summary:hover {
        background: transparent;
        color: #065F46;
    }

}


/* Focus accessibilità */

.ct-prezzi-faq__item summary:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.35);
    outline-offset: -3px;
}


/* =========================================================
   CERCHIO "?"
   Riutilizza l'elemento che prima era la freccia
   ========================================================= */

.ct-prezzi-faq__chevron {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    grid-column: 1;
    grid-row: 1;

    width: 52px;
    height: 52px;

    margin: 0;

    border: 0;
    border-radius: 50%;

    background: #034331;
    color: #FFFFFF;

    transform: none;

    font-size: 0;
    line-height: 1;

    transition:
        background 180ms ease,
        transform 180ms ease;
}

.ct-prezzi-faq__chevron::before {
    content: "?";

    display: block;

    color: #FFFFFF;

    font-size: 27px;
    line-height: 1;
    font-weight: 700;
}


/* =========================================================
   TESTO DOMANDA
   ========================================================= */

/*
   Il chevron viene spostato visivamente nella prima colonna.
   Qualunque altro contenuto del summary occupa la seconda.
*/

.ct-prezzi-faq__item summary > :not(.ct-prezzi-faq__chevron) {
    grid-column: 2;
    grid-row: 1;
}


/* =========================================================
   FAQ APERTA
   ========================================================= */

.ct-prezzi-faq__item[open] summary {
    background: rgba(250, 253, 251, 0.9);
}

.ct-prezzi-faq__item[open] .ct-prezzi-faq__chevron {
    transform: none;
}


/* =========================================================
   RISPOSTA
   ========================================================= */

.ct-prezzi-faq__answer {
    padding: 34px 40px 38px;
}

.ct-prezzi-faq__answer p {
    max-width: none;

    margin: 0 0 22px !important;

    color: #111827;

    font-size: 18px;
    line-height: 1.65;
    font-weight: 400;
}

.ct-prezzi-faq__answer p:last-child {
    margin-bottom: 0 !important;
}

.ct-prezzi-faq__answer strong {
    color: #111827;

    font-weight: 700;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ct-prezzi-faq {
        padding: 36px 22px 50px;
    }

    .ct-prezzi-faq__header {
        margin-bottom: 30px;
    }

    .ct-prezzi-faq__title {
        font-size: 36px !important;
    }

    .ct-prezzi-faq__item summary {
        grid-template-columns: 46px minmax(0, 1fr);

        gap: 18px;

        min-height: 94px;

        padding: 20px 26px;

        font-size: 21px;
    }

    .ct-prezzi-faq__chevron {
        width: 46px;
        height: 46px;
    }

    .ct-prezzi-faq__chevron::before {
        font-size: 24px;
    }

    .ct-prezzi-faq__answer {
        padding: 30px 32px 34px;
    }

    .ct-prezzi-faq__answer p {
        font-size: 18px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .ct-prezzi-faq {
        padding: 32px 16px 42px;
    }


    /* HEADER */

    .ct-prezzi-faq__header {
        display: block;

        margin-bottom: 28px;
    }

    .ct-prezzi-faq__eyebrow {
        margin-bottom: 8px;

        font-size: 11px;
    }

    .ct-prezzi-faq__title {
        margin: 0 !important;
        padding: 0 !important;

        font-size: 34px !important;
        line-height: 1.08 !important;

        letter-spacing: -0.025em !important;
    }


    /* VEDI TUTTE */

    .ct-prezzi-faq__all {
        margin-top: 15px;
        margin-bottom: 0;

        font-size: 16px;
    }


    /* LISTA */

    .ct-prezzi-faq__list {
        gap: 14px;
    }


    /* CARD */

    .ct-prezzi-faq__item {
        border-radius: 12px;
    }


    /* DOMANDA */

    .ct-prezzi-faq__item summary {
        grid-template-columns: 38px minmax(0, 1fr);

        gap: 13px;

        min-height: 82px;

        padding: 17px 18px;

        font-size: 18px;
        line-height: 1.32;
    }


    /* CERCHIO ? */

    .ct-prezzi-faq__chevron {
        width: 38px;
        height: 38px;
    }

    .ct-prezzi-faq__chevron::before {
        font-size: 20px;
    }


    /* RISPOSTA */

    .ct-prezzi-faq__answer {
        padding: 22px 20px 25px;
    }

    .ct-prezzi-faq__answer p {
        margin-bottom: 18px !important;

        font-size: 17px;
        line-height: 1.6;
    }

}


/* =========================================================
   MOBILE MOLTO STRETTO
   ========================================================= */

@media (max-width: 380px) {

    .ct-prezzi-faq {
        padding-left: 13px;
        padding-right: 13px;
    }

    .ct-prezzi-faq__title {
        font-size: 31px !important;
        line-height: 1.08 !important;
    }

    .ct-prezzi-faq__item summary {
        grid-template-columns: 34px minmax(0, 1fr);

        gap: 10px;

        padding-left: 14px;
        padding-right: 14px;

        font-size: 17px;
    }

    .ct-prezzi-faq__chevron {
        width: 34px;
        height: 34px;
    }

    .ct-prezzi-faq__chevron::before {
        font-size: 18px;
    }

}