﻿/* =======================================================
   INSIGHT UI — FORM DESIGN SYSTEM v1.0
   Progettato per integrarsi con Insight Executive Edition
   ======================================================= */

/* CARD FORM */
.ins-form-card {
    background: var(--ins-surface);
    border-radius: 22px;
    padding: 32px;
    border: 1px solid rgba(210,214,220,0.5);
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
    transition: all .25s ease;
}

    .ins-form-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 28px 60px rgba(0,0,0,0.15);
    }

/* TITOLI E DESCRIZIONI */
.ins-form-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--ins-primary);
}

body.dark .ins-form-title {
    color: #e5e7eb;
}

.ins-form-subtitle {
    font-size: 14px;
    color: var(--ins-text-muted);
    margin-bottom: 22px;
    max-width: 300px;
}

body.dark .ins-form-subtitle {
    color: #9ca3af;
}

/* GRUPPO INPUT */
.ins-field {
    margin-bottom: 18px;
}

.ins-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #d6d9df;
    background: #f7f9fc;
    font-size: 15px;
    transition: all .25s ease;
}

    .ins-input:hover {
        background: #f2f5fa;
    }

    .ins-input:focus {
        background: #ffffff;
        border-color: var(--ins-accent);
        box-shadow: 0 0 0 4px rgba(20,184,166,0.20);
        outline: none;
    }

/* SELECT PREMIUM */
.ins-select {
    appearance: none;
    background: #f7f9fc url("data:image/svg+xml,%3Csvg fill='%230f172a' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 16px center;
    background-size: 14px;
}

/* BUTTONS */
.ins-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .2px;
    color: white;
    background: linear-gradient(90deg,#0f172a,#1e40af);
    transition: all .25s ease;
}

    .ins-btn:hover {
        transform: translateY(-2px);
        opacity: .93;
    }

.ins-btn-outline {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid var(--ins-primary);
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--ins-primary);
    transition: all .25s ease;
}

    .ins-btn-outline:hover {
        background: var(--ins-primary);
        color: white;
        transform: translateY(-2px);
    }

/* LOGIN CARD */
.ins-login-card {
    background: linear-gradient(145deg,#f8fafc,#eef2f7);
    border-radius: 22px;
    padding: 32px;
    box-shadow: inset 0 0 18px rgba(255,255,255,0.35), 0 18px 45px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.40);
}

.ins-login-icon {
    font-size: 46px;
    color: var(--ins-accent);
    margin-bottom: 18px;
}

/* BADGE SICUREZZA */
.ins-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15,23,42,0.06);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ins-primary);
}

.ins-badge-accent {
    background: rgba(20,184,166,0.15);
    color: var(--ins-accent);
}

.ins-badge-purple {
    background: rgba(128,90,213,0.15);
    color: #805ad5;
}

/* OTP FIELD */
.ins-otp {
    letter-spacing: 4px;
    text-align: center;
    font-weight: 600;
}

/* ONBOARDING */
.ins-onboard {
    font-size: 13px;
    color: var(--ins-text-muted);
    margin-top: 16px;
}

    .ins-onboard li {
        margin-bottom: 4px;
    }

body.dark .ins-onboard {
    color: #9ca3af;
}
/* ===== EXECUTIVE DARK FORM CARDS ===== */

.ins-form-dark {
    background: linear-gradient(180deg, #0f172a, #0b1220);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    border-radius: 22px;
    padding: 32px;
    transition: all .25s ease;
    color: #e5e7eb;
}

    .ins-form-dark:hover {
        transform: translateY(-4px);
        box-shadow: 0 25px 60px rgba(0,0,0,0.50);
    }

    /* TITOLI */
    .ins-form-dark .ins-form-title {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .ins-form-dark .ins-form-subtitle {
        font-size: 14px;
        opacity: .75;
        margin-bottom: 20px;
    }

/* INPUT DARK */
.ins-input-dark {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e5e7eb;
    padding: 12px 15px;
    border-radius: 14px;
    transition: .25s ease;
}

    .ins-input-dark::placeholder {
        color: rgba(229,231,235,0.55);
    }

    .ins-input-dark:focus {
        border-color: #38bdf8;
        box-shadow: 0 0 0 4px rgba(56,189,248,0.18);
        outline: none;
    }

/* BUTTON DARK PRIMARY */
.ins-btn-dark {
    width: 100%;
    background: linear-gradient(90deg, #1e40af, #0ea5e9);
    color: white;
    padding: 13px;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    margin-top: 6px;
    transition: .2s ease;
}

    .ins-btn-dark:hover {
        opacity: .9;
        transform: translateY(-2px);
    }

/* BUTTON OUTLINE */
.ins-btn-dark-outline {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: 2px solid #38bdf8;
    background: transparent;
    color: #38bdf8;
    font-weight: 600;
    transition: .2s ease;
}

    .ins-btn-dark-outline:hover {
        background: #38bdf8;
        color: #0f172a;
        transform: translateY(-2px);
    }

/* BADGE SICUREZZA */
.ins-badge-dark {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #c7d2fe;
}
.ins-footer-section-dark {
    background: linear-gradient(180deg, #0b1220, #0f172a);
    padding-top: 60px;
    padding-bottom: 80px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 60px;
}
/* --- FOOTER FINALE --- */

.ins-footer-final {
    background: #0a0f1c;
    padding: 60px 0 30px;
    color: #cbd5e1;
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .06em;
}

.footer-desc {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-contact div {
    font-size: 14px;
    margin-bottom: 4px;
    color: #cbd5e1;
}

.footer-contact i {
    color: #38bdf8;
    margin-right: 6px;
}

/* LINKS */
.footer-title {
    color: #e2e8f0;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 16px;
}

.footer-links {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: #9ca3af;
        text-decoration: none;
        transition: .2s;
        font-size: 14px;
    }

        .footer-links a:hover {
            color: #38bdf8;
        }

/* MAP WRAPPER */
.footer-map-wrapper {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 14px rgba(0,0,0,0.4);
}

/* DIVIDER */
.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 30px 0;
}

/* BOTTOM */
.footer-bottom {
    font-size: 13px;
    color: #64748b;
}
/* --- SOCIAL MINIMAL --- */
.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    font-size: 22px;
    color: #94a3b8;
    transition: .25s;
}

    .social-link:hover {
        color: #38bdf8; /* Cyan premium */
        transform: translateY(-2px);
    }

/* Fix icona Twitter-X */
.bi-twitter-x::before {
    content: "\f69d"; /* Bootstrap Icons X logo */
}

/* --- NEWSLETTER PREMIUM --- */
.newsletter-form {
    text-align: left;
}

.newsletter-label {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.newsletter-group {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: #f1f5f9;
    transition: .25s;
}

    .newsletter-input:focus {
        outline: none;
        border-color: #38bdf8;
        box-shadow: 0 0 0 3px rgba(56,189,248,0.25);
    }

.newsletter-btn {
    padding: 12px 20px;
    border-radius: 10px;
    background: linear-gradient(90deg, #3b82f6, #0ea5e9);
    border: none;
    color: white;
    font-weight: 600;
    transition: .25s;
}

    .newsletter-btn:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }

.newsletter-privacy {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}
#about {
    background: #f8fafc;
}

body.dark #about {
    background: #0f172a;
}
.team-card {
    background: var(--ins-surface);
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    transition: .3s ease;
}

    .team-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 55px rgba(0,0,0,0.10);
        border-color: #3b82f6;
    }

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}
.dashboard-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--ins-primary);
}

.dashboard-subtitle {
    color: var(--ins-text-muted);
}

.insight-kpi-card {
    padding: 24px;
    border-radius: 18px;
    background: var(--ins-surface);
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}

.kpi-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ins-text-muted);
}

.kpi-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--ins-primary);
}

/* PANEL */
.insight-panel {
    background: var(--ins-surface);
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(15,23,42,0.08);
    border-radius: 18px;
    padding: 24px 28px;
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
}

/* BARS */
.bar-blue, .bar-green, .bar-orange, .bar-cyan {
    width: 22px;
    border-radius: 6px 6px 0 0;
    margin: auto;
}

.bar-blue {
    height: 90px;
    background: #1d4ed8;
}

.bar-green {
    height: 70px;
    background: #22c55e;
}

.bar-orange {
    height: 60px;
    background: #f97316;
}

.bar-cyan {
    height: 80px;
    background: #06b6d4;
}

.bar-label {
    font-size: 12px;
    color: var(--ins-text-muted);
    margin-top: 6px;
}
.ins-userbox {
    background: #0e1628;
    border: 1px solid #1f2c45;
    padding: 22px;
    border-radius: 16px;
    margin-bottom: 20px;
    color: #dbe7ff;
}

.ins-user-title {
    font-size: 14px;
    opacity: .7;
}

.ins-user-name {
    font-size: 22px;
    font-weight: 600;
    margin-top: 4px;
}

.ins-user-email {
    font-size: 14px;
    opacity: .9;
}

.ins-user-role {
    margin-top: 8px;
    font-size: 12px;
}
/* CARD SWOT */
.swot-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* TEXTAREA SWOT */
.swot-textbox {
    width: 100% !important;
    min-height: 180px !important;
    resize: vertical;
    font-size: 15px;
    line-height: 1.4;
}

/* Per tema Fintech (scuro) */
body.ins-theme-fintech .swot-textbox {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #EAF4FF !important;
}

/* Per tema Classic (chiaro) */
body.ins-theme-classic .swot-textbox {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #0f172a !important;
}
