/* ============================================
   BCI Elementor Widgets — Stili base
   Brand: navy #13255B / gold #BC8E50 / Poppins
   ============================================ */

/* ---- Hero Standard ---- */
.bci-ew-hero {
    position: relative;
    padding: 64px 24px;
    background: linear-gradient(135deg, #13255B 0%, #45557D 100%);
    color: #fff;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    /* v1.0.3: auto-centering quando max-width e' impostato dall'utente */
    margin-left: auto;
    margin-right: auto;
}
/* v1.0.3: garantisce che il widget si comporti come flex item se il contenitore Elementor e' flex */
.elementor-widget-bci-ew-hero-standard .elementor-widget-container {
    width: 100%;
}
.bci-ew-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(188, 142, 80, 0.12) 0%, transparent 60%);
    pointer-events: none;
}
.bci-ew-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}
.bci-ew-hero__left {
    display: flex;
    flex-direction: column;
}
.bci-ew-hero__subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #BC8E50;
    margin: 0 0 16px;
}
.bci-ew-hero__title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
}
.bci-ew-hero__description {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 24px;
    max-width: 520px;
}
.bci-ew-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 24px;
}
.bci-ew-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    border: 2px solid transparent;
}
.bci-ew-hero__cta:hover {
    transform: translateY(-2px);
}
.bci-ew-hero__cta--primary {
    background-color: #BC8E50;
    color: #ffffff;
}
.bci-ew-hero__cta--primary:hover {
    background-color: #13255B;
}
.bci-ew-hero__cta--secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.bci-ew-hero__cta--secondary:hover {
    background-color: #BC8E50;
    color: #ffffff;
    border-color: #BC8E50;
}
.bci-ew-hero__breadcrumb {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}
.bci-ew-hero__breadcrumb a {
    color: #BC8E50;
    text-decoration: none;
}
.bci-ew-hero__breadcrumb a:hover {
    color: #fff;
}
.bci-ew-hero__breadcrumb-sep {
    color: rgba(255, 255, 255, 0.4);
}
.bci-ew-hero__breadcrumb-current {
    color: #fff;
    font-weight: 500;
}
.bci-ew-hero__right {
    display: flex;
    align-items: center;
    justify-content: center;
}
.bci-ew-hero__image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* ---- Page Title (mini hero) ---- */
.bci-ew-page-title {
    padding: 48px 24px;
    background: linear-gradient(135deg, #13255B 0%, #45557D 100%);
    color: #fff;
    text-align: left;
}
.bci-ew-page-title__inner {
    max-width: 1200px;
    margin: 0 auto;
}
.bci-ew-page-title__title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.bci-ew-page-title__description {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 12px;
    max-width: 720px;
}
.bci-ew-page-title__breadcrumb {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.bci-ew-page-title__breadcrumb a {
    color: #BC8E50;
    text-decoration: none;
}

/* ---- Section Header ---- */
.bci-ew-section-header {
    text-align: center;
    padding: 24px 0;
}
.bci-ew-section-header--left { text-align: left; }
.bci-ew-section-header--right { text-align: right; }
.bci-ew-section-header__subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #BC8E50;
    margin: 0 0 12px;
}
.bci-ew-section-header__title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #13255B;
    margin: 0 0 16px;
    line-height: 1.2;
}
.bci-ew-section-header__decor {
    width: 60px;
    height: 3px;
    background: #BC8E50;
    border: 0;
    margin: 0 auto 16px;
    border-radius: 2px;
}
.bci-ew-section-header--left .bci-ew-section-header__decor { margin-left: 0; }
.bci-ew-section-header--right .bci-ew-section-header__decor { margin-right: 0; }
.bci-ew-section-header__description {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    max-width: 720px;
    margin: 0 auto;
}
.bci-ew-section-header--left .bci-ew-section-header__description { margin-left: 0; }
.bci-ew-section-header--right .bci-ew-section-header__description { margin-right: 0; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .bci-ew-hero__title { font-size: 36px; }
    .bci-ew-section-header__title { font-size: 28px; }
}
@media (max-width: 768px) {
    .bci-ew-hero { padding: 48px 20px; min-height: auto; }
    .bci-ew-hero__inner { grid-template-columns: 1fr; gap: 32px; }
    .bci-ew-hero__title { font-size: 32px; }
    .bci-ew-hero__right { display: none; }
    .bci-ew-page-title__title { font-size: 24px; }
    .bci-ew-section-header__title { font-size: 24px; }
}

/* ============================================
   FEATURE CARD
   ============================================ */
.bci-ew-feature-card {
    background: #fff;
    border-radius: 5px;
    padding: 32px 28px;
    box-shadow: 0 4px 16px rgba(19, 37, 91, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.bci-ew-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(19, 37, 91, 0.14);
}
.bci-ew-feature-card__icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(188, 142, 80, 0.12);
    color: #BC8E50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}
.bci-ew-feature-card__icon-wrap svg,
.bci-ew-feature-card__icon-wrap i {
    width: 28px;
    height: 28px;
    font-size: 28px;
    fill: currentColor;
}
.bci-ew-feature-card__title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #13255B;
    margin: 0 0 8px;
    line-height: 1.3;
}
.bci-ew-feature-card__description {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
    flex: 1;
}

/* ============================================
   PRICING CARD
   ============================================ */
.bci-ew-pricing-card {
    background: #fff;
    border-radius: 5px;
    padding: 40px 32px;
    box-shadow: 0 4px 16px rgba(19, 37, 91, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid transparent;
}
.bci-ew-pricing-card:hover {
    transform: translateY(-4px);
}
.bci-ew-pricing-card--featured {
    border-color: #BC8E50;
    background: linear-gradient(180deg, rgba(188,142,80,0.04) 0%, transparent 100%);
}
.bci-ew-pricing-card__badge {
    display: inline-block;
    background: #BC8E50;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    align-self: flex-start;
}
.bci-ew-pricing-card__plan {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #BC8E50;
    margin: 0 0 8px;
}
.bci-ew-pricing-card__title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #13255B;
    margin: 0 0 16px;
    line-height: 1.2;
}
.bci-ew-pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 16px;
}
.bci-ew-pricing-card__price-amount {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #13255B;
    line-height: 1;
}
.bci-ew-pricing-card__price-period {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #888;
}
.bci-ew-pricing-card__description {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 0 0 24px;
}
.bci-ew-pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex: 1;
}
.bci-ew-pricing-card__feature {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #4a4a4a;
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    line-height: 1.4;
    border-bottom: 1px solid rgba(19, 37, 91, 0.06);
}
.bci-ew-pricing-card__feature:last-child {
    border-bottom: 0;
}
.bci-ew-pricing-card__feature::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 8px;
    color: #008F39;
    font-weight: bold;
    font-size: 16px;
}
.bci-ew-pricing-card__feature--off {
    color: #aaa;
    text-decoration: line-through;
}
.bci-ew-pricing-card__feature--off::before {
    content: '\2715';
    color: #ccc;
}
.bci-ew-pricing-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 5px;
    background: #13255B;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease;
    border: 0;
}
.bci-ew-pricing-card__cta:hover {
    background: #BC8E50;
    transform: translateY(-2px);
}
.bci-ew-pricing-card--featured .bci-ew-pricing-card__cta {
    background: #BC8E50;
}
.bci-ew-pricing-card--featured .bci-ew-pricing-card__cta:hover {
    background: #13255B;
}

/* ============================================
   ICON BOX (editorial variant)
   ============================================ */
.bci-ew-icon-box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    padding: 24px;
    background: transparent;
    border-radius: 5px;
    align-items: start;
}
.bci-ew-icon-box--centered {
    grid-template-columns: 1fr;
    text-align: center;
}
.bci-ew-icon-box--centered .bci-ew-icon-box__icon {
    margin: 0 auto;
}
.bci-ew-icon-box__icon {
    width: 64px;
    height: 64px;
    color: #BC8E50;
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bci-ew-icon-box__icon svg,
.bci-ew-icon-box__icon i {
    width: 40px;
    height: 40px;
    font-size: 40px;
    fill: currentColor;
}
.bci-ew-icon-box__title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #13255B;
    margin: 0 0 8px;
    line-height: 1.3;
}
.bci-ew-icon-box__description {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0 0 12px;
}
.bci-ew-icon-box__cta {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #13255B;
    text-decoration: none;
}
.bci-ew-icon-box__cta:hover {
    color: #BC8E50;
}

/* ============================================
   STAT CARD (big number)
   ============================================ */
.bci-ew-stat-card {
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 16px rgba(19, 37, 91, 0.06);
}
.bci-ew-stat-card__number {
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: #BC8E50;
    margin: 0 0 8px;
    line-height: 1;
}
.bci-ew-stat-card__label {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #13255B;
    margin: 0 0 8px;
}
.bci-ew-stat-card__description {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #888;
    margin: 0;
}

@media (max-width: 768px) {
    .bci-ew-feature-card,
    .bci-ew-pricing-card {
        padding: 24px 20px;
    }
    .bci-ew-pricing-card__price-amount {
        font-size: 32px;
    }
    .bci-ew-stat-card__number {
        font-size: 42px;
    }
    .bci-ew-icon-box {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .bci-ew-icon-box__icon {
        margin: 0 auto;
    }
}

/* ============================================
   TESTIMONIAL CARD
   ============================================ */
.bci-ew-testimonial {
    background: #fff;
    border-radius: 5px;
    padding: 40px 32px;
    box-shadow: 0 4px 16px rgba(19, 37, 91, 0.08);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.bci-ew-testimonial__quote-icon {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 40px;
    height: 40px;
    color: #BC8E50;
    opacity: 0.2;
    font-size: 40px;
    line-height: 1;
}
.bci-ew-testimonial__quote {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0 0 24px;
    font-style: italic;
    flex: 1;
}
.bci-ew-testimonial__author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}
.bci-ew-testimonial__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
    flex-shrink: 0;
}
.bci-ew-testimonial__info {
    display: flex;
    flex-direction: column;
}
.bci-ew-testimonial__name {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #13255B;
    margin: 0;
    line-height: 1.3;
}
.bci-ew-testimonial__role {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   TESTIMONIAL CAROUSEL
   ============================================ */
.bci-ew-testimonials-carousel {
    width: 100%;
}
.bci-ew-testimonials-carousel__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 0 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.bci-ew-testimonials-carousel__track::-webkit-scrollbar {
    display: none;
}
.bci-ew-testimonials-carousel__track .bci-ew-testimonial {
    flex: 0 0 360px;
    scroll-snap-align: start;
}
@media (max-width: 768px) {
    .bci-ew-testimonials-carousel__track {
        flex-direction: column;
        overflow-x: visible;
        gap: 16px;
    }
    .bci-ew-testimonials-carousel__track .bci-ew-testimonial {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* ============================================
   CTA BANNER (fullwidth)
   ============================================ */
.bci-ew-cta-banner {
    background: linear-gradient(135deg, #13255B 0%, #45557D 100%);
    color: #fff;
    padding: 56px 32px;
    border-radius: 5px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.bci-ew-cta-banner__inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.bci-ew-cta-banner__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(188, 142, 80, 0.18) 0%, transparent 60%);
    pointer-events: none;
}
.bci-ew-cta-banner__subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #BC8E50;
    margin: 0 0 12px;
}
.bci-ew-cta-banner__title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}
.bci-ew-cta-banner__description {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px;
}
.bci-ew-cta-banner__buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.bci-ew-cta-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}
.bci-ew-cta-banner__btn:hover {
    transform: translateY(-2px);
}
.bci-ew-cta-banner__btn--primary {
    background: #BC8E50;
    color: #fff;
}
.bci-ew-cta-banner__btn--primary:hover {
    background: #fff;
    color: #13255B;
}
.bci-ew-cta-banner__btn--secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.bci-ew-cta-banner__btn--secondary:hover {
    background: #BC8E50;
    border-color: #BC8E50;
}

@media (max-width: 768px) {
    .bci-ew-cta-banner { padding: 40px 24px; }
    .bci-ew-cta-banner__title { font-size: 28px; }
    .bci-ew-testimonial { padding: 32px 24px; }
}

/* ============================================
   ACCORDION FAQ
   ============================================ */
.bci-ew-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.bci-ew-accordion__item {
    border-bottom: 1px solid rgba(19, 37, 91, 0.1);
    background: transparent;
}
.bci-ew-accordion__item:last-child {
    border-bottom: 0;
}
.bci-ew-accordion__button {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 20px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #13255B;
    transition: color 0.2s ease;
}
.bci-ew-accordion__button:hover {
    color: #BC8E50;
}
.bci-ew-accordion__icon {
    width: 24px;
    height: 24px;
    color: #BC8E50;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}
.bci-ew-accordion__item.is-open .bci-ew-accordion__icon {
    transform: rotate(45deg);
}
.bci-ew-accordion__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.bci-ew-accordion__item.is-open .bci-ew-accordion__answer {
    max-height: 1000px;
    padding: 0 0 24px;
}
.bci-ew-accordion__answer-inner {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
}

/* ============================================
   STATS COUNTER
   ============================================ */
.bci-ew-stats-counter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
    padding: 32px 0;
}
.bci-ew-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.bci-ew-stat__icon {
    color: #BC8E50;
    font-size: 32px;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bci-ew-stat__icon svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
}
.bci-ew-stat__number {
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: #13255B;
    margin: 0;
    line-height: 1;
}
.bci-ew-stat__suffix,
.bci-ew-stat__prefix {
    color: #BC8E50;
}
.bci-ew-stat__label {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #13255B;
    margin: 0;
}
.bci-ew-stat__description {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #888;
    margin: 4px 0 0;
    max-width: 220px;
}
@media (max-width: 768px) {
    .bci-ew-stat__number { font-size: 42px; }
    .bci-ew-accordion__button { font-size: 15px; padding: 16px 0; }
}
