/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* stili accordion  */
button.bc-cat-acc__toggle {
    line-height: 1;
    padding: 15px;
}

.elementor-kit-6278 a {
    color: var(--e-global-color-aeccfe7);
}

span.bc-cat-acc__parentname {
    color: #3e372a;
}

.grecaptcha-badge {
    display: none !important;
}


/* =========================================================
   SEARCH
   ========================================================= */

/* Search: tutto su una linea */
.bc-post-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.bc-post-search input[type="search"] {
    flex: 1;
    min-width: 0;
}


/* =========================================================
   ACCORDION CATEGORIE
   ========================================================= */

/* Accordion head */
.bc-cat-acc__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 14px;
}

.bc-cat-acc__parentlink {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.bc-cat-acc__toggle {
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 12px;
    padding: 8px 10px;
    line-height: 1;
}

.bc-cat-acc__panel {
    padding: 10px 12px;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 14px 14px;
}

.bc-cat-link {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    text-decoration: none;
    margin-top: 8px;
}

.bc-cat-link.is-active,
.bc-cat-acc__parentlink.is-active {
    font-weight: 700;
}

.bc-cat-count {
    opacity: .7;
}

.bc-cat-acc__item {
    padding-top: 10px;
}


/* =========================================================
   CONTACT FORM 7
   ========================================================= */

input.wpcf7-form-control.wpcf7-submit.has-spinner {
    width: 100%;
}


/* =========================================================
   WORDPRESS BUTTON
   ========================================================= */

a.wp-block-button__link.has-background {
    color: white;
}


/* =========================================================
   FAQ ACCORDION
   RESPONSIVE FIX
   ========================================================= */

.bc-faq {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

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

.bc-faq__item {
    width: 100%;
    max-width: 100%;
}

.bc-faq__heading {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.bc-faq__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 100%;

    gap: 12px;

    padding: 12px 14px;

    height: auto !important;
    min-height: 42px;

    white-space: normal !important;

    text-align: left;
    cursor: pointer;
}

.bc-faq__question {
    display: block;

    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;

    white-space: normal !important;

    overflow: visible !important;
    text-overflow: initial !important;

    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;

    line-height: 1.35;
}


/* =========================================================
   FAQ ICONA + / -
   ========================================================= */

.bc-faq__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 24px;

    width: 24px;
    height: 24px;
    min-width: 24px;

    margin-left: 10px;

    font-family: Arial, sans-serif;
    font-weight: 400;

    pointer-events: none;
}

/* Disattiva eventuali vecchi pseudo-elementi */
.bc-faq__icon::after {
    content: none !important;
    display: none !important;
}

/* FAQ CHIUSA = + */
.bc-faq__icon::before {
    content: "+" !important;

    display: block !important;

    position: static !important;

    width: auto !important;
    height: auto !important;

    background: none !important;

    transform: none !important;

    color: #ffffff !important;

    font-size: 24px;
    font-weight: 400;
    line-height: 1;

    opacity: 1 !important;

    transition: color .2s ease;
}

/* FAQ APERTA = − */
.bc-faq__trigger[aria-expanded="true"] .bc-faq__icon::before {
    content: "−" !important;
    color: #76836d !important;
}

/* Hover FAQ chiusa */
.bc-faq__trigger[aria-expanded="false"]:hover .bc-faq__icon::before {
    color: #ffffff !important;
}

/* Hover FAQ aperta */
.bc-faq__trigger[aria-expanded="true"]:hover .bc-faq__icon::before {
    color: #66725f !important;
}


/* =========================================================
   FAQ PANEL
   ========================================================= */

.bc-faq__panel {
    width: 100%;
    max-width: 100%;
}

.bc-faq__answer {
    width: 100%;
    max-width: 100%;

    overflow-wrap: break-word;
    word-wrap: break-word;
}

.bc-faq__answer p {
    max-width: 100%;
}


/* =========================================================
   FAQ - TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .bc-faq__trigger {
        gap: 10px;
        padding: 12px 13px;
    }

}


/* =========================================================
   FAQ - MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .bc-faq {
        width: 100%;
        max-width: 100%;
    }

    .bc-faq__item {
        width: 100%;
        max-width: 100%;
    }

    .bc-faq__trigger {
        width: 100%;
        max-width: 100%;

        height: auto !important;
        min-height: 44px;

        padding: 11px 12px;

        gap: 8px;

        align-items: center;

        white-space: normal !important;
    }

    .bc-faq__question {
        flex: 1 1 0;

        min-width: 0;

        font-size: 13px;
        line-height: 1.4;

        white-space: normal !important;

        overflow: visible !important;
        text-overflow: unset !important;

        overflow-wrap: break-word;
        word-break: normal;
    }

    .bc-faq__icon {
        flex: 0 0 18px;

        width: 18px;
        height: 18px;

        min-width: 18px;

        margin-left: 4px;
    }

    .bc-faq__panel {
        width: 100%;
        max-width: 100%;
    }

    .bc-faq__answer {
        width: 100%;
        max-width: 100%;

        font-size: 13px;
        line-height: 1.6;

        overflow-wrap: break-word;
    }

}

/* fine stili accordion */