/* ==========================================================================
   Fincentrale S.p.A. - Simulatore Preventivo & Chat (v4.0 - Minimal & Intuitivo)
   Design Pulito, Immediato e Ottimizzato per Web & Smartphone
   ========================================================================== */

/* Rimuove automaticamente la sidebar destra di Divi nella pagina del simulatore */
body.fc-dedicated-sim-page #sidebar,
body.fc-dedicated-sim-page #main-content .container::before {
    display: none !important;
}

body.fc-dedicated-sim-page #left-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding-right: 0 !important;
}

body.fc-dedicated-sim-page #main-content .container {
    width: 92% !important;
    max-width: 1100px !important;
    padding-top: 20px !important;
}

body.fc-dedicated-sim-page article > h1.entry-title,
body.fc-dedicated-sim-page .entry-title.main_title {
    display: none !important;
}

/* Contenitore principale */
#fc-pegni-app.fc-simple-app {
    --fc-navy: #0c2749;
    --fc-gold: #c99327;
    --fc-green: #059669;
    --fc-border: #e2e8f0;
    --fc-text: #1e293b;
    --fc-muted: #64748b;

    container-type: inline-size;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--fc-text);
    max-width: 1060px;
    margin: 0 auto 50px auto;
    box-sizing: border-box;
    line-height: 1.5;
}

#fc-pegni-app.fc-preview-tablet {
    max-width: 740px !important;
}

#fc-pegni-app.fc-preview-mobile {
    max-width: 400px !important;
    padding: 12px !important;
    background: #f8fafc;
    border-radius: 30px !important;
    border: 6px solid #0f172a !important;
}

#fc-pegni-app *,
#fc-pegni-app *::before,
#fc-pegni-app *::after {
    box-sizing: border-box;
}

/* Intestazione Semplice */
.fc-simple-header {
    text-align: center;
    margin-bottom: 24px;
}

.fc-simple-header h2 {
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--fc-navy) !important;
}

.fc-simple-header p {
    margin: 0 !important;
    font-size: 16px;
    color: var(--fc-muted);
}

/* Griglia a 2 Box: Scelte (Sinistra) + Risultato (Destra) */
.fc-simple-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

@container (max-width: 820px) {
    .fc-simple-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 860px) {
    .fc-simple-grid {
        grid-template-columns: 1fr !important;
    }
}

.fc-simple-card {
    background: #ffffff;
    border: 1px solid var(--fc-border);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(12, 39, 73, 0.06);
}

.fc-field-block {
    margin-bottom: 22px;
}

.fc-simple-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--fc-navy);
    margin-bottom: 8px;
}

/* Menu a Tendina (Select) Eleganti per Categoria, Caratura e Durata */
.fc-select-wrapper {
    position: relative;
    width: 100%;
}

.fc-dropdown-select {
    width: 100%;
    height: 50px;
    padding: 0 38px 0 16px;
    border-radius: 12px;
    border: 2px solid var(--fc-border);
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230c2749' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--fc-navy);
    cursor: pointer;
    transition: all 0.15s ease;
}

.fc-dropdown-select:hover {
    border-color: #94a3b8;
    background-color: #ffffff;
}

.fc-dropdown-select:focus {
    outline: none;
    border-color: var(--fc-navy);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(12, 39, 73, 0.1);
}

/* 1. Scelta Oro / Argento */
.fc-metal-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fc-metal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid var(--fc-border);
    background: #f8fafc;
    font-size: 16px;
    color: var(--fc-text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.fc-metal-btn:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.fc-metal-btn.active {
    border-color: var(--fc-navy);
    background: var(--fc-navy);
    color: #ffffff;
}

.fc-dot-gold,
.fc-dot-silver {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.fc-dot-gold {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.fc-dot-silver {
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}

/* 2. Caratura */
.fc-karat-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 8px;
}

.fc-karat-chip {
    border: 1.5px solid var(--fc-border);
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fc-karat-chip:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

.fc-karat-chip.active {
    border-color: var(--fc-gold);
    background: #fffbeb;
    box-shadow: 0 4px 12px rgba(201, 147, 39, 0.18);
}

.fc-karat-chip strong {
    display: block;
    font-size: 15px;
    color: var(--fc-navy);
}

.fc-karat-chip small {
    display: block;
    font-size: 12px;
    color: var(--fc-muted);
    margin-top: 2px;
}

.fc-karat-chip .fc-purity-bar-track,
.fc-karat-chip .fc-karat-mill-badge {
    display: none;
}

/* 3. Peso e Selettore Unità di Misura (g / kg / mg) */
.fc-weight-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.fc-unit-selector-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    border: 1.5px solid #bfdbfe;
    padding: 3px 8px;
    border-radius: 9px;
}

.fc-unit-lbl {
    font-size: 12px;
    font-weight: 700;
    color: var(--fc-navy);
    margin: 0 !important;
}

.fc-unit-select {
    border: none;
    background: #ffffff;
    color: var(--fc-navy);
    font-size: 13px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.fc-unit-select:focus {
    outline: none;
}

.fc-weight-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.fc-step-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid var(--fc-border);
    background: #f8fafc;
    color: var(--fc-navy);
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.fc-step-btn:hover {
    background: var(--fc-navy);
    color: #ffffff;
    border-color: var(--fc-navy);
}

.fc-weight-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--fc-navy);
    border-radius: 12px;
    background: #ffffff;
    padding: 0 14px;
    height: 48px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fc-weight-display:focus-within {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.fc-weight-display input {
    width: 120px;
    border: none !important;
    background: transparent !important;
    font-size: 22px;
    font-weight: 800;
    color: var(--fc-navy);
    text-align: right;
    padding: 0 8px 0 0;
    outline: none;
    -moz-appearance: textfield;
}

.fc-weight-display input::-webkit-outer-spin-button,
.fc-weight-display input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fc-weight-display input:focus {
    outline: none;
}

.fc-weight-display span {
    font-size: 14px;
    font-weight: 600;
    color: var(--fc-muted);
}

.fc-weight-slider {
    width: 100%;
    height: 6px;
    accent-color: var(--fc-navy);
    cursor: pointer;
    margin: 4px 0 10px 0;
}

.fc-quick-weights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fc-chip-btn {
    flex: 1;
    min-width: 55px;
    background: #f8fafc;
    border: 1px solid var(--fc-border);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fc-text);
    cursor: pointer;
}

.fc-chip-btn.active,
.fc-chip-btn:hover {
    background: var(--fc-navy);
    color: #ffffff;
    border-color: var(--fc-navy);
}

/* 4. Durata 3 o 6 Mesi */
.fc-duration-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fc-dur-btn {
    padding: 12px;
    border-radius: 12px;
    border: 2px solid var(--fc-border);
    background: #f8fafc;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.fc-dur-btn strong {
    display: block;
    font-size: 16px;
    color: var(--fc-navy);
}

.fc-dur-btn span {
    font-size: 12px;
    color: var(--fc-muted);
}

.fc-dur-btn.active {
    border-color: var(--fc-navy);
    background: var(--fc-navy);
}

.fc-dur-btn.active strong,
.fc-dur-btn.active span {
    color: #ffffff;
}

/* ==========================================================================
   BOX 2: RISULTATO DEL PREVENTIVO (PULITO E IMMEDIATO)
   ========================================================================== */

.fc-result-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
}

.fc-result-hero {
    background: var(--fc-navy);
    color: #ffffff;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    margin-bottom: 18px;
}

.fc-result-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #fde68a;
    text-transform: uppercase;
}

.fc-result-amount {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    margin: 4px 0;
    line-height: 1.1;
}

.fc-result-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.fc-result-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--fc-muted);
}

.fc-summary-row strong {
    color: var(--fc-text);
}

.fc-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid var(--fc-navy);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 4px;
}

.fc-summary-total strong {
    display: block;
    font-size: 14px;
    color: var(--fc-navy);
}

.fc-summary-total small {
    font-size: 11.5px;
    color: var(--fc-muted);
}

.fc-total-price {
    font-size: 22px;
    font-weight: 900;
    color: var(--fc-navy);
    white-space: nowrap;
}

.fc-summary-renew {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 10px 16px;
}

.fc-summary-renew strong {
    display: block;
    font-size: 13.5px;
    color: #92400e;
}

.fc-summary-renew small {
    font-size: 11.5px;
    color: #b45309;
}

.fc-renew-price {
    font-size: 18px;
    font-weight: 800;
    color: #b45309;
    white-space: nowrap;
}

.fc-aml-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-top: 12px;
}

.fc-max-loan-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
    margin-top: 12px;
}

.fc-max-loan-notice strong {
    color: #1d4ed8;
    font-weight: 700;
}

.fc-pdf-foot-link {
    text-align: center;
    font-size: 12px;
    color: var(--fc-muted);
    margin-top: 14px;
}

.fc-pdf-foot-link a {
    color: var(--fc-navy);
    font-weight: 600;
    text-decoration: underline;
}

/* ==========================================================================
   NOTA INFORMATIVA E LEGALE SUL PREVENTIVATORE (FEDELE A CRÉDIT AGRICOLE)
   ========================================================================== */
.fc-quote-disclaimer-card {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    font-size: 11.5px;
    line-height: 1.6;
    color: #475569;
    text-align: left;
    background: transparent;
}

.fc-ca-disclaimer-p {
    margin: 0 !important;
    font-size: 11.5px !important;
    line-height: 1.65 !important;
    color: #475569 !important;
}

.fc-ca-disclaimer-p strong {
    color: #1e293b;
    font-weight: 700;
}

.fc-ca-disclaimer-p a {
    color: var(--fc-navy, #0c2749);
    font-weight: 600;
    text-decoration: underline;
}

.fc-ca-disclaimer-p a:hover {
    color: var(--fc-gold, #c69214);
}

.fc-ca-bottom-bar {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.fc-ca-nav-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 12px;
}

.fc-ca-back-top {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fc-navy, #0c2749);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #cbd5e1;
    border-radius: 99px;
    padding: 5px 16px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.fc-ca-back-top:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0ea5e9;
    text-decoration: none;
}

.fc-ca-disclaimer-text {
    font-size: 11.5px;
    line-height: 1.65;
    color: #475569;
    margin: 0;
    text-align: left;
}

.fc-ca-disclaimer-text strong {
    color: #1e293b;
}

.fc-ca-disclaimer-text a {
    color: var(--fc-navy, #0c2749);
    text-decoration: underline;
    font-weight: 600;
}

.fc-ca-disclaimer-text a:hover {
    color: var(--fc-gold, #c69214);
}

/* ==========================================================================
   BOX 3: CHAT ASSISTENTE PREVENTIVO (SELETTORE SÌ / NO & COLLAPSIBLE)
   ========================================================================== */

.fc-simple-chat-card {
    background: #ffffff;
    border: 1px solid var(--fc-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(12, 39, 73, 0.06);
    transition: all 0.25s ease;
}

.fc-simple-chat-card.is-chat-open {
    box-shadow: 0 14px 36px rgba(12, 39, 73, 0.12);
    border-color: #cbd5e1;
}

/* BARRA DOMANDA PREVENTIVO (SÌ / NO) */
.fc-chat-prompt-bar {
    padding: 16px 22px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.fc-simple-chat-card.is-chat-open .fc-chat-prompt-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.fc-chat-prompt-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fc-chat-prompt-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e0f2fe;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.fc-chat-prompt-text {
    display: flex;
    flex-direction: column;
}

.fc-chat-prompt-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--fc-navy, #0c2749);
    line-height: 1.3;
}

.fc-chat-prompt-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.fc-chat-toggle-group {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    flex-shrink: 0;
}

.fc-chat-toggle-btn {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.fc-chat-toggle-btn:hover {
    color: #0c2749;
}

.fc-chat-toggle-btn.is-active {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.fc-chat-toggle-btn#fc-chat-toggle-yes.is-active {
    background: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.fc-chat-toggle-btn#fc-chat-toggle-no.is-active {
    background: #ffffff;
    color: #334155;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.fc-chat-toggle-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    opacity: 0.7;
}

.fc-chat-collapsible-content {
    animation: fcFadeSlideDown 0.25s ease-out;
}

@keyframes fcFadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fc-simple-chat-head {
    background: var(--fc-navy);
    color: #ffffff;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.fc-chat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.fc-simple-chat-head h3 {
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.fc-simple-chat-head p {
    margin: 0 !important;
    font-size: 12.5px;
    color: #fde68a;
}

.fc-chat-messages {
    padding: 18px 22px;
    max-height: 260px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fc-msg {
    max-width: 85%;
    padding: 11px 15px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.fc-msg-bot {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
}

.fc-msg-user {
    align-self: flex-end;
    background: var(--fc-navy);
    color: #ffffff;
}

.fc-chat-suggestions {
    padding: 10px 22px;
    background: #f1f5f9;
    border-top: 1px solid var(--fc-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fc-sugg-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 99px;
    padding: 6px 13px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fc-navy);
    cursor: pointer;
}

.fc-sugg-btn:hover {
    background: var(--fc-navy);
    color: #ffffff;
    border-color: var(--fc-navy);
}

.fc-chat-input-bar {
    display: flex;
    gap: 10px;
    padding: 14px 22px;
    background: #ffffff;
    border-top: 1px solid var(--fc-border);
}

.fc-chat-text-input {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 99px;
    font-size: 14px;
}

.fc-chat-text-input:focus {
    outline: none;
    border-color: var(--fc-navy);
}

.fc-chat-send-btn {
    background: var(--fc-gold);
    color: #ffffff;
    border: none;
    border-radius: 99px;
    padding: 0 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

/* Smartphone */
@media (max-width: 600px) {
    #fc-pegni-app.fc-simple-app {
        margin-bottom: 80px;
    }
    .fc-simple-card {
        padding: 18px;
    }
    .fc-result-amount {
        font-size: 34px;
    }
    .fc-chat-suggestions {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px 14px;
    }
    .fc-sugg-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .fc-chat-input-bar {
        padding: 12px 14px;
    }
}

/* ==========================================================================
   BADGE TRIMESTRALE DINAMICO & TRASPARENZA BANCARIA (STILE CRÉDIT AGRICOLE)
   ========================================================================== */

/* Badge Trimestrale con indicatore di attività */
.fc-quarter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 99px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.1);
}

.fc-pulse-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
    animation: fcPulse 2s infinite;
}

@keyframes fcPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.fc-badge-doc {
    color: #047857;
    font-weight: 500;
    font-size: 12px;
}

/* Icone Informative (i) Stile Bancario */
.fc-info-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    font-family: serif;
    font-style: italic;
    border: none;
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.fc-info-bubble:hover,
.fc-info-bubble:focus {
    background: var(--fc-navy);
    color: #ffffff;
    transform: scale(1.15);
    outline: none;
}

/* Popover Tooltip Galleggiante */
.fc-tooltip-popover {
    position: absolute;
    z-index: 999999;
    background: #0f172a;
    color: #f8fafc;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.45;
    max-width: 320px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    animation: fcFadeIn 0.2s ease-out;
}

@keyframes fcFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.fc-tooltip-text {
    flex: 1;
}

.fc-tooltip-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.fc-tooltip-close:hover {
    color: #ffffff;
}

/* Strip Tassi Ufficiali: TAN • TEG • TAEG */
.fc-rates-badges-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 12px;
    margin: 6px 0 10px 0;
}

.fc-rate-badge {
    font-size: 13px;
    color: #334155;
    font-weight: 500;
}

.fc-rate-badge strong {
    color: var(--fc-navy);
    font-weight: 800;
}

.fc-rate-badge span {
    font-weight: 700;
    color: #0f172a;
}

.fc-rate-badge-sep {
    color: #94a3b8;
    font-weight: 700;
}

/* Righe Aggiuntive Trasparenza nella Scheda Preventivo */
.fc-summary-row.fc-teg-row {
    border-top: 1px dashed #cbd5e1;
    padding-top: 8px;
    margin-top: 6px;
}

.fc-teg-val {
    color: var(--fc-navy);
    font-size: 15px;
    font-weight: 800;
}

.fc-summary-row.fc-taeg-row {
    margin-top: 4px;
}

.fc-taeg-val {
    color: var(--fc-navy);
    font-size: 15px;
    font-weight: 800;
}

.fc-summary-row.fc-insurance-row {
    margin-top: 4px;
}

.fc-badge-free {
    color: #047857;
    font-size: 12.5px;
    font-weight: 700;
    background: #ecfdf5;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
    display: inline-block;
}

/* SEZIONE TRASPARENZA BANCARIA & NOTE LEGALI */
.fc-transparency-box {
    background: #ffffff;
    border: 1.5px solid var(--fc-border);
    border-radius: 20px;
    padding: 28px 30px;
    margin-top: 28px;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.04);
}

.fc-transparency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid #f1f5f9;
    margin-bottom: 18px;
}

.fc-transparency-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fc-shield-icon {
    font-size: 26px;
}

.fc-transparency-title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--fc-navy) !important;
}

.fc-transparency-sub {
    font-size: 12px;
    color: var(--fc-muted);
    display: block;
    margin-top: 2px;
}

.fc-transparency-quarter-tag {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #86efac;
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 700;
}

.fc-promo-disclaimer {
    background: #f8fafc;
    border-left: 4px solid var(--fc-navy);
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 20px 0;
}

.fc-promo-disclaimer strong {
    color: var(--fc-navy);
}

/* Accordion Trasparenza */
.fc-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.fc-accordion-item {
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.fc-accordion-item:hover {
    border-color: #cbd5e1;
}

.fc-accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 18px;
    background: #f8fafc;
    border: none;
    text-align: left;
    font-size: 13.5px;
    color: var(--fc-navy);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.fc-accordion-trigger:hover {
    background: #f1f5f9;
}

.fc-accordion-arrow {
    font-size: 11px;
    color: var(--fc-muted);
    transition: transform 0.2s ease;
}

.fc-accordion-panel {
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.65;
    color: #334155;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.fc-accordion-panel p {
    margin: 0 0 10px 0;
}

.fc-accordion-panel p:last-child {
    margin-bottom: 0;
}

/* Footer Trasparenza */
.fc-transparency-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 18px;
    border-top: 1.5px solid #f1f5f9;
    font-size: 12px;
    color: var(--fc-muted);
}

.fc-btn-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--fc-navy);
    color: #ffffff !important;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 12.5px;
    transition: opacity 0.2s ease;
}

.fc-btn-pdf-link:hover {
    opacity: 0.92;
}

.fc-corp-info {
    flex: 1;
    min-width: 280px;
    line-height: 1.5;
    text-align: right;
}

@media (max-width: 768px) {
    .fc-transparency-box {
        padding: 20px 16px;
    }
    .fc-corp-info {
        text-align: left;
    }
}

/* ==========================================================================
   SCHERMATA DI SOSPENSIONE / BLOCCO FINE TRIMESTRE (TRASPARENZA BANCARIA)
   ========================================================================== */
.fc-locked-app {
    max-width: 920px;
    margin: 0 auto;
}

.fc-admin-lock-bar {
    background: #fef2f2;
    border: 1.5px solid #f87171;
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13.5px;
    color: #991b1b;
}

.fc-btn-admin-confirm {
    background: #059669;
    color: #ffffff !important;
    text-decoration: none;
    padding: 7px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12.5px;
    transition: background 0.2s ease;
    display: inline-block;
}

.fc-btn-admin-confirm:hover {
    background: #047857;
}

.fc-btn-admin-preview {
    background: #ffffff;
    color: #374151 !important;
    border: 1px solid #d1d5db;
    text-decoration: none;
    padding: 7px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12.5px;
    display: inline-block;
}

.fc-btn-admin-preview:hover {
    background: #f3f4f6;
}

.fc-lock-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    padding: 38px 36px;
    text-align: center;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
}

.fc-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 99px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.fc-lock-dot {
    width: 8px;
    height: 8px;
    background: #d97706;
    border-radius: 50%;
    display: inline-block;
}

.fc-lock-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 14px;
}

.fc-lock-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--fc-navy) !important;
    margin: 0 0 8px 0 !important;
}

.fc-lock-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px 0;
}

.fc-lock-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 20px auto;
    max-width: 500px;
}

.fc-lock-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
    max-width: 780px;
    margin: 0 auto 28px auto;
    text-align: left;
}

.fc-lock-text p {
    margin: 0 0 14px 0;
}

.fc-lock-branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 0 auto 28px auto;
    max-width: 780px;
    text-align: left;
}

.fc-branch-item {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fc-branch-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.fc-branch-city {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--fc-navy);
    margin-bottom: 4px;
}

.fc-branch-address {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 10px;
}

.fc-branch-phone {
    font-size: 13.5px;
    color: #334155;
}

.fc-branch-phone a {
    color: var(--fc-navy);
    text-decoration: none;
}

.fc-branch-phone a:hover {
    text-decoration: underline;
}

.fc-lock-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.fc-lock-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fc-cta-call {
    background: var(--fc-navy);
    color: #ffffff !important;
}

.fc-cta-call:hover {
    background: #061830;
    transform: translateY(-1px);
}

.fc-cta-wa {
    background: #25d366;
    color: #ffffff !important;
}

.fc-cta-wa:hover {
    background: #1eb956;
    transform: translateY(-1px);
}

.fc-cta-pdf {
    background: #ffffff;
    color: #334155 !important;
    border: 1.5px solid #cbd5e1;
}

.fc-cta-pdf:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.fc-lock-footer-info {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.6;
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
    margin-top: 10px;
}

.fc-lock-footer-info code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #475569;
}

@media (max-width: 640px) {
    .fc-lock-card {
        padding: 24px 18px;
    }
    .fc-lock-title {
        font-size: 20px !important;
    }
    .fc-lock-actions {
        flex-direction: column;
        width: 100%;
    }
    .fc-lock-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Stili Iperlink Foglio Informativo "presente qui" */
.fc-pdf-badge-link {
    color: #047857 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
    transition: color 0.2s ease;
}

.fc-pdf-badge-link:hover {
    color: #064e3b !important;
}

.fc-doc-link-highlight,
.fc-link-highlight {
    color: var(--fc-navy) !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
    transition: color 0.2s ease;
}

.fc-doc-link-highlight:hover,
.fc-link-highlight:hover {
    color: var(--fc-gold) !important;
}
