/* =========================================================
   CryptoTasse — FAQ
   Versione 1.0.1
   ========================================================= */


/* =========================================================
   WRAPPER
   ========================================================= */

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

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

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


/* =========================================================
   HERO
   ========================================================= */

.ct-faq__hero {
    position: relative;

    display: block;

    min-height: 0;

    margin-bottom: 56px;
    padding: 30px 42px 32px;

    overflow: hidden;

    border: 1px solid rgba(3, 67, 49, 0.05);
    border-radius: 18px;

    background:
        radial-gradient(
            circle at 80% 45%,
            rgba(16, 185, 129, 0.09) 0,
            rgba(16, 185, 129, 0.035) 32%,
            transparent 64%
        ),
        #FFFFFF;

    box-shadow:
        0 4px 14px rgba(3, 67, 49, 0.025),
        0 18px 40px rgba(3, 67, 49, 0.025);
}


/* =========================================================
   HERO — TESTO
   ========================================================= */

.ct-faq__hero-copy {
    position: relative;
    z-index: 2;

    max-width: 920px;
}

.ct-faq__title {
    margin: 0 0 25px;
    padding: 0;

    color: #034331;

    font-size: clamp(42px, 4.6vw, 68px);
    line-height: 1.03;
    font-weight: 700;
    letter-spacing: -0.045em;
}

.ct-faq__title span {
    color: #10B981;
}

.ct-faq__intro {
    max-width: 860px;

    margin: 0;

    color: #173E4B;

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

.ct-faq__intro strong {
    color: #034331;
    font-weight: 700;
}

.ct-faq__intro-pro {
    display: inline-block;
    font-size: 1.12em;
    font-weight: 800 !important;
}


/* =========================================================
   GRUPPI FAQ
   ========================================================= */

.ct-faq__group {
    width: 100%;

    margin: 0 0 58px;
}

.ct-faq__group-title {
    display: flex;
    align-items: center;
    gap: 18px;

    margin: 0 0 18px;
    padding: 0;

    color: #034331;

    font-size: 29px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.ct-faq__group-line {
    display: block;
    flex: 0 0 auto;

    width: 38px;
    height: 5px;

    border-radius: 999px;

    background: #10B981;
}


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

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

    gap: 7px;
}


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

.ct-faq__item {
    width: 100%;

    margin: 0;

    overflow: hidden;

    border: 1px solid rgba(3, 67, 49, 0.09);
    border-radius: 10px;

    background: #FFFFFF;

    box-shadow:
        0 2px 5px rgba(3, 67, 49, 0.025),
        0 6px 15px rgba(3, 67, 49, 0.025);
}


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

.ct-faq__question {
    position: relative;

    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    align-items: center;

    gap: 16px;

    min-height: 62px;

    margin: 0;
    padding: 10px 18px;

    list-style: none;

    color: #073F50;

    cursor: pointer;

    font-size: 17px;
    line-height: 1.34;
    font-weight: 500;
}

.ct-faq__question::-webkit-details-marker {
    display: none;
}

.ct-faq__question::marker {
    content: "";
}

.ct-faq__question:hover {
    color: #034331;
}

.ct-faq__question:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.30);
    outline-offset: -3px;
}

.ct-faq__question-text {
    min-width: 0;
}


/* =========================================================
   CERCHIO ?
   ========================================================= */

.ct-faq__question-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #065F46 0%,
            #034331 100%
        );

    color: #FFFFFF;

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


/* =========================================================
   + / -
   ========================================================= */

.ct-faq__toggle {
    position: relative;

    display: block;

    width: 20px;
    height: 20px;

    justify-self: end;
}

.ct-faq__toggle::before,
.ct-faq__toggle::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 17px;
    height: 2px;

    border-radius: 999px;

    background: #067A5B;

    transform: translate(-50%, -50%);
}

.ct-faq__toggle::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.ct-faq__item[open] .ct-faq__toggle::after {
    transform:
        translate(-50%, -50%)
        rotate(0deg);
}


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

.ct-faq__item[open] {
    border-color: rgba(16, 185, 129, 0.23);
}

.ct-faq__item[open] .ct-faq__question {
    background: rgba(250, 253, 251, 0.92);

    color: #034331;
}


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

.ct-faq__answer {
    padding: 5px 58px 20px 70px;

    color: #111827;

    font-size: 16.5px;
    line-height: 1.62;
    font-weight: 400;
}

.ct-faq__answer p {
    margin: 0;
}

.ct-faq__answer strong {
    color: #111827;
    font-weight: 700;
}


/* =========================================================
   PROFESSIONISTI
   ========================================================= */

.ct-faq__group--pro {
    margin-top: 7px;
}

.ct-faq__group-pro-inner {
    padding: 27px 20px 22px;

    border: 1px solid rgba(16, 185, 129, 0.47);
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(240, 253, 248, 0.96) 0%,
            rgba(250, 253, 251, 0.97) 100%
        );
}

.ct-faq__group--pro .ct-faq__group-title {
    margin-left: 0;
    margin-bottom: 21px;
}


/* =========================================================
   CTA FINALE
   ========================================================= */

.ct-faq__closing {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;

    width: 100%;

    margin-top: 8px;
    padding: 36px 44px;

    overflow: hidden;

    border-radius: 16px;

    background:
        radial-gradient(
            circle at 88% 20%,
            rgba(16, 185, 129, 0.12) 0%,
            rgba(16, 185, 129, 0.025) 38%,
            transparent 65%
        ),
        linear-gradient(
            135deg,
            #F0FBF7 0%,
            #F6FCF9 100%
        );
}

.ct-faq__closing-copy {
    min-width: 0;
}

.ct-faq__closing-title {
    position: relative;
    z-index: 2;

    margin: 0 0 13px;
    padding: 0;

    color: #034331;

    font-size: clamp(32px, 3vw, 44px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.ct-faq__closing-text {
    position: relative;
    z-index: 2;

    max-width: 690px;

    margin: 0;

    color: #173E4B;

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

.ct-faq__closing-text strong {
    color: #034331;
    font-weight: 700;
}

.ct-faq__closing-text a {
    color: #065F46;

    font-weight: 600;

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

.ct-faq__closing-text a:hover {
    color: #10B981;
}


/* =========================================================
   CTA BUTTONS
   ========================================================= */

.ct-faq__closing-actions {
    position: relative;
    z-index: 2;

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

    gap: 12px;
}

.ct-faq__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 180px;
    min-height: 56px;

    padding: 13px 25px;

    border-radius: 8px;

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

    text-decoration: none !important;

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background-color 0.16s ease;
}

.ct-faq__button:hover {
    transform: translateY(-1px);
}

.ct-faq__button--secondary {
    border: 1.5px solid #10B981;

    background: #FFFFFF;

    color: #034331 !important;
}

.ct-faq__button--secondary:hover {
    background: #F7FFFB;
}

.ct-faq__button--primary {
    gap: 17px;

    border: 1.5px solid #10B981;

    background:
        linear-gradient(
            110deg,
            #10B981 0%,
            #07996F 100%
        );

    color: #FFFFFF !important;

    box-shadow:
        0 7px 16px rgba(6, 95, 70, 0.10);
}

.ct-faq__button--primary:hover {
    box-shadow:
        0 9px 20px rgba(6, 95, 70, 0.15);
}

.ct-faq__button-arrow {
    font-size: 23px;
    line-height: 1;
    font-weight: 400;
}


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

@media (max-width: 900px) {

    .ct-faq {
        padding:
            26px
            21px
            58px;
    }

    .ct-faq__hero {
        margin-bottom: 48px;
        padding: 28px 30px 30px;
    }

    .ct-faq__title {
        font-size: clamp(38px, 5.5vw, 56px);
    }

    .ct-faq__intro {
        font-size: 17px;
    }




    .ct-faq__group {
        margin-bottom: 50px;
    }

    .ct-faq__group-title {
        font-size: 26px;
    }

    .ct-faq__closing {
        gap: 24px;
        padding: 32px 30px;
    }

}


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

@media (max-width: 650px) {

    .ct-faq {
        padding:
            18px
            15px
            44px;
    }


    /* HERO */

    .ct-faq__hero {
        margin-bottom: 38px;
        padding:
            24px
            21px
            24px;

        border-radius: 14px;
    }

    .ct-faq__hero-copy {
        max-width: none;
    }

    .ct-faq__title {
        margin-bottom: 19px;

        font-size: 38px;
        line-height: 1.05;
        letter-spacing: -0.035em;
    }

    .ct-faq__intro {
        font-size: 16.5px;
        line-height: 1.55;
    }


    /* TITOLI SEZIONI */

    .ct-faq__group {
        margin-bottom: 41px;
    }

    .ct-faq__group-title {
        align-items: flex-start;

        gap: 12px;

        margin-bottom: 15px;

        font-size: 23px;
        line-height: 1.17;
        letter-spacing: -0.02em;
    }

    .ct-faq__group-line {
        width: 26px;
        height: 4px;

        margin-top: 11px;
    }


    /* ACCORDION */

    .ct-faq__list {
        gap: 6px;
    }

    .ct-faq__item {
        border-radius: 9px;
    }

    .ct-faq__question {
        grid-template-columns:
            32px
            minmax(0, 1fr)
            19px;

        gap: 11px;

        min-height: 57px;

        padding: 9px 12px;

        font-size: 15.5px;
        line-height: 1.33;
    }

    .ct-faq__question-icon {
        width: 32px;
        height: 32px;

        font-size: 17px;
    }

    .ct-faq__toggle {
        width: 17px;
        height: 17px;
    }

    .ct-faq__toggle::before,
    .ct-faq__toggle::after {
        width: 15px;
    }


    /* RISPOSTA */

    .ct-faq__answer {
        padding:
            5px
            16px
            18px
            55px;

        font-size: 15.5px;
        line-height: 1.58;
    }


    /* PROFESSIONISTI */

    .ct-faq__group-pro-inner {
        padding:
            22px
            12px
            15px;

        border-radius: 12px;
    }


    /* CTA */

    .ct-faq__closing {
        grid-template-columns: 1fr;
        gap: 22px;

        margin-top: 0;

        padding:
            30px
            22px
            24px;

        border-radius: 13px;
    }

    .ct-faq__closing-title {
        font-size: 31px;
        line-height: 1.08;
    }

    .ct-faq__closing-text {
        margin-bottom: 24px;

        font-size: 16px;
        line-height: 1.52;
    }

    .ct-faq__closing-actions {
        display: grid;
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .ct-faq__button {
        width: 100%;
        min-width: 0;
        min-height: 53px;

        font-size: 16px;
    }


}


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

@media (max-width: 380px) {

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

    .ct-faq__hero {
        padding-left: 17px;
        padding-right: 17px;
    }

    .ct-faq__title {
        font-size: 34px;
    }

    .ct-faq__question {
        grid-template-columns:
            30px
            minmax(0, 1fr)
            17px;

        gap: 9px;

        padding-left: 10px;
        padding-right: 10px;

        font-size: 15px;
    }

    .ct-faq__question-icon {
        width: 30px;
        height: 30px;

        font-size: 16px;
    }

    .ct-faq__answer {
        padding-left: 49px;

        font-size: 15px;
    }

    .ct-faq__group-title {
        font-size: 21px;
    }

}