/* 
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 */

[class^="dashicons-"],
[class*=" dashicons-"] {
    display: inline-block;
    font-family: dashicons !important;
    font-size: inherit;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    text-rendering: auto;
    text-transform: none;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card-prezzi__advantage-icon .dashicons-yes::before {
    content: "\2713";
    font-family: Arial, sans-serif;
    font-weight: 700;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
}

/* ===== FAQ Landing ===== */
.bi-faq {
    padding: 0;
}

.bi-faq__inner {
    max-width: 900px;
    margin: 0 auto;
}

.bi-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bi-faq__item {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(5, 70, 133, 0.04);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.bi-faq__item[open] {
    border-color: #054685;
    box-shadow: 0 4px 16px rgba(5, 70, 133, 0.08);
}

.bi-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    color: #054685;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.4;
    list-style: none;
    user-select: none;
}

.bi-faq__q::-webkit-details-marker {
    display: none;
}

.bi-faq__q:hover {
    background: #f6f9fc;
}

.bi-faq__icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    position: relative;
    transition: transform 0.25s ease;
}

.bi-faq__icon::before,
.bi-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: #054685;
    border-radius: 2px;
    transform: translate(-50%, -50%);
}

.bi-faq__icon::before {
    width: 14px;
    height: 2px;
}

.bi-faq__icon::after {
    width: 2px;
    height: 14px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.bi-faq__item[open] .bi-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.bi-faq__a {
    padding: 0 22px 20px;
    color: #101214;
    font-size: 16px;
    line-height: 1.65;
}

.bi-faq__a > *:first-child { margin-top: 0; }
.bi-faq__a > *:last-child { margin-bottom: 0; }

.bi-faq__a a {
    color: #054685;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .bi-faq__q { padding: 16px 18px; font-size: 16px; }
    .bi-faq__a { padding: 0 18px 18px; font-size: 15px; }
}

.cf7-bi-form {
    width: 100%;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Reset automatici CF7 */
.cf7-bi-form p {
    margin: 0;
}

.cf7-bi-form br {
    display: none !important;
}

.cf7-bi-form .wpcf7-form-control-wrap {
    display: block;
}

/* Griglia */
.cf7-bi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

/* Campi */
.cf7-bi-field {
    margin-bottom: 18px;
}

.cf7-bi-grid .cf7-bi-field {
    margin-bottom: 0;
}

.cf7-bi-field label {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.cf7-bi-field input,
.cf7-bi-field select,
.cf7-bi-field textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #d8e0ec;
    border-radius: 12px;
    background-color: #ffffff;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cf7-bi-field input::placeholder,
.cf7-bi-field textarea::placeholder {
    color: #8fa0ba;
}

.cf7-bi-field input:focus,
.cf7-bi-field select:focus,
.cf7-bi-field textarea:focus {
    border-color: #0052a3;
    box-shadow: 0 0 0 3px rgba(0, 82, 163, 0.12);
}

/* Select */
.cf7-bi-field select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #003b7a 50%),
    linear-gradient(135deg, #003b7a 50%, transparent 50%);
    background-position: calc(100% - 21px) 23px, calc(100% - 14px) 23px;
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
    padding-right: 44px;
}

/* Privacy */
.cf7-bi-privacy {
    margin: 2px 0 24px;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}

.cf7-bi-privacy p {
    margin: 0;
}

.cf7-bi-privacy .wpcf7-list-item {
    margin: 0;
}

.cf7-bi-privacy label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.cf7-bi-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: auto;
    margin: 2px 0 0;
    padding: 0;
    accent-color: #0052a3;
    flex-shrink: 0;
}

.cf7-bi-privacy .wpcf7-list-item-label {
    color: #334155;
}

/* Submit */
.cf7-bi-submit {
    margin: 0;
}

.cf7-bi-submit p {
    margin: 0;
}

.cf7-bi-submit input[type="submit"] {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #0052a3 0%, #2d7dd2 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cf7-bi-submit input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 82, 163, 0.22);
}

.cf7-bi-submit input[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner CF7 */
.cf7-bi-submit .wpcf7-spinner {
    position: absolute;
}

/* Errori */
.wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #dc2626;
    font-size: 13px;
}

.wpcf7 form .wpcf7-response-output {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
}

/* Mobile */
@media (max-width: 767px) {
    .cf7-bi-form {
        padding: 22px;
        border-radius: 18px;
    }
    
    .cf7-bi-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    
    .cf7-bi-grid .cf7-bi-field {
        margin-bottom: 16px;
    }
    
    .cf7-bi-field {
        margin-bottom: 16px;
    }
    
    .cf7-bi-field label {
        margin-bottom: 6px;
        font-size: 13px;
    }
    
    .cf7-bi-field input,
    .cf7-bi-field select,
    .cf7-bi-field textarea {
        min-height: 50px;
        font-size: 14px;
    }
    
    .cf7-bi-submit input[type="submit"] {
        min-height: 52px;
        font-size: 15px;
    }
}

/* ===== CTA Mobile fissa ===== */
.bi-mobile-cta-wrap,
.bi-mobile-fabs {
    display: none;
}

@media (max-width: 767px) {
    .bi-mobile-cta-wrap {
        display: flex;
        align-items: center;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 16px;
        z-index: 9999;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .bi-mobile-cta-wrap--hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateY(18px);
    }

    .bi-mobile-cta {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 54px;
        padding: 14px 22px;
        border-radius: 15px;
        background: linear-gradient(135deg, #0a7a3d 0%, #2ec96a 100%);
        color: #ffffff !important;
        font-size: 16px;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
        box-shadow: 0 10px 28px rgba(10, 122, 61, 0.32);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .bi-mobile-cta:hover,
    .bi-mobile-cta:focus {
        transform: translateY(-1px);
        box-shadow: 0 14px 32px rgba(10, 122, 61, 0.4);
        color: #ffffff !important;
    }

    .bi-mobile-fabs {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: fixed;
        right: 16px;
        bottom: 86px;
        z-index: 9999;
    }

    .bi-mobile-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        color: #ffffff !important;
        text-decoration: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .bi-mobile-fab:hover,
    .bi-mobile-fab:focus {
        transform: translateY(-1px);
        color: #ffffff !important;
    }

    .bi-mobile-fab svg {
        display: block;
    }

    .bi-mobile-fab--wa {
        position: relative;
        background: #25D366;
        box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
    }

    .bi-mobile-fab--wa:hover,
    .bi-mobile-fab--wa:focus {
        box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
    }

    .bi-mobile-fab__tip {
        position: absolute;
        bottom: calc(100% + 10px);
        right: 0;
        padding: 8px 12px;
        background: #0f172a;
        color: #ffffff;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
        border-radius: 10px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.28);
        opacity: 0;
        transform: translateY(6px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .bi-mobile-fab__tip::after {
        content: "";
        position: absolute;
        top: 100%;
        right: 18px;
        border: 6px solid transparent;
        border-top-color: #0f172a;
    }

    .bi-mobile-fab--tip-on .bi-mobile-fab__tip {
        opacity: 1;
        transform: translateY(0);
    }

    .bi-mobile-fab--phone {
        background: #054685;
        box-shadow: 0 10px 28px rgba(5, 70, 133, 0.38);
    }

    .bi-mobile-fab--phone:hover,
    .bi-mobile-fab--phone:focus {
        box-shadow: 0 14px 32px rgba(5, 70, 133, 0.5);
    }
}

@media screen and (max-width: 767px) {
    .cky-btn-revisit-wrapper{
        opacity: 0 !important;
    }
}

/* ===== CTA Prezzi Promo Mobile ===== */
.bi-promo-mobile-cta-wrap {
    display: none;
}

@media (max-width: 767px) {
    .bi-promo-mobile-cta-wrap {
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 16px;
        z-index: 10000;
        display: flex;
        opacity: 0;
        pointer-events: none;
        transform: translateY(18px);
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .bi-promo-mobile-cta-wrap--visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .bi-promo-mobile-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 54px;
        padding: 14px 22px;
        border-radius: 15px;
        background: #054685;
        color: #ffffff !important;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        box-shadow: 0 10px 28px rgba(5, 70, 133, 0.34);
        transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .bi-promo-mobile-cta:hover,
    .bi-promo-mobile-cta:focus {
        background: #003b73;
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 14px 32px rgba(5, 70, 133, 0.44);
    }
}

/* ===== Card prezzi promo (shortcode [card_prezzi_promo]) ===== */
/* Flex + !important: Elementor a volte azzera display su .elementor-shortcode → grid ignorato, card in colonna */
.elementor-widget-shortcode .elementor-shortcode .bi-price-cards,
.elementor-shortcode .bi-price-cards,
.bi-price-cards {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.elementor-widget-shortcode .elementor-shortcode .bi-price-card,
.elementor-shortcode .bi-price-card,
.bi-price-card {
    flex: 1 1 260px;
    width: auto;
    max-width: min(360px, 100%);
    margin: 0;
    background: #fff;
    border: 1px solid #d8e0ec;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(5, 70, 133, 0.08);
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
}

.bi-price-card__head {
    background: #004a99;
    color: #fff;
    text-align: center;
    padding: 18px 14px 20px;
    min-height: 104px;
    height: var(--bi-price-head-height, auto);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.bi-price-card__head .bi-price-card__sopra,
.bi-price-card__head .bi-price-card__livello {
    color: #fff;
}

.bi-price-card__sopra {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.35;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 700;
    opacity: 0.95;
}

.bi-price-card__livello {
    margin: 0;
    font-size: clamp(1rem, 0.86rem + 0.6vw, 1.25rem);
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.bi-price-card__body {
    padding: 22px 20px 24px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
}

.bi-price-card__durata {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #004a99;
}

.bi-price-card__durata-icon {
    flex-shrink: 0;
    display: flex;
    color: #004a99;
}

.bi-price-card__durata-text {
    font-size: 17px;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.bi-price-card__block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bi-price-card__label {
    margin: 0;
    font-size: 16px;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 700;
    color: #0f172a;
}

.bi-price-card__label--promo {
    color: #d31d24;
}

.bi-price-card__wysiwyg {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #1e293b;
}

.bi-price-card__wysiwyg p {
    margin: 0 0 0.4em;
}

.bi-price-card__wysiwyg p:last-child {
    margin-bottom: 0;
}

.bi-price-card__wysiwyg--muted {
    color: #334155;
}

.bi-price-card__prezzo-promo {
    margin: 4px 0 0;
    font-size: 1.75rem;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: #d31d24;
}

.bi-price-card__badge {
    margin: 0;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 10px;
    background: #d9f5e3;
    color: #0d5c2e;
    font-size: 15px;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}

.bi-price-card__rate {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
    color: #0f3f73;
    font-size: 10px;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.45;
}

.bi-price-card__rate-icon {
    flex-shrink: 0;
    color: #004a99;
}

.bi-price-card__rate-icon svg {
    display: block;
}

.bi-price-card__cta {
    display: block;
    margin-top: auto;
    padding: 14px 20px;
    border-radius: 10px;
    background: #d31d24;
    color: #fff !important;
    font-size: 16px;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bi-price-card__cta:hover,
.bi-price-card__cta:focus {
    background: #b8181f;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(211, 29, 36, 0.35);
}

@media (max-width: 600px) {
    .bi-price-card {
        max-width: none;
    }
}