/**
 * MyMortgage — Sicurezza & Privacy
 * Stili per la pagina pubblica /sicurezza.php (full page e partial nella modale)
 */

/* === Header pubblico (solo full page) === */
.sec-public-header {
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

/* === Hero === */
.sec-hero {
    background: linear-gradient(135deg, #1B3A6B 0%, #0d2347 100%);
    color: #fff;
    padding: 3rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}
.sec-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 340px;
    height: 340px;
    background: rgba(255, 255, 255, .04);
    border-radius: 50%;
    pointer-events: none;
}
.sec-hero h1,
.sec-hero h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .75rem;
}
.sec-hero p {
    font-size: 1.05rem;
    opacity: .85;
    max-width: 580px;
    margin-bottom: 0;
}

/* Variante compatta (modale) */
.sec-hero--compact {
    padding: 2.5rem 1.5rem 3rem;
    border-radius: .5rem .5rem 0 0;
}
.sec-hero--compact::after {
    width: 280px;
    height: 280px;
}
.sec-hero--compact h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: .65rem;
}
.sec-hero--compact p {
    font-size: 1rem;
}

/* Hero badge */
.sec-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 2rem;
    padding: .3rem .9rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}
.sec-hero--compact .sec-hero-badge {
    margin-bottom: 0;
}

/* Pills (chip) nell'hero */
.sec-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255, 255, 255, .15);
    border-radius: 2rem;
    padding: .25rem .8rem;
    font-size: .78rem;
    font-weight: 600;
    margin: .25rem .2rem 0 0;
}
.sec-hero--compact .sec-pill {
    font-size: .75rem;
    margin: .2rem .15rem 0 0;
}

/* === Cards principali === */
.sec-card {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .1);
    transition: box-shadow .2s ease, transform .2s ease;
    height: 100%;
}
.sec-card:hover {
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .12);
    transform: translateY(-2px);
}
.sec-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.sec-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.sec-card .card-text {
    font-size: .9rem;
    line-height: 1.6;
    opacity: .85;
}
.sec-card ul {
    font-size: .875rem;
    line-height: 1.7;
    padding-left: 1.1rem;
    margin-bottom: 0;
    opacity: .9;
}

/* === Sezione GDPR === */
.sec-detail-card {
    border-radius: .75rem;
    border: none;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}
.sec-detail-section-title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .55;
    margin-bottom: 1.25rem;
}
.sec-gdpr-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(25, 135, 84, .1);
    border: 1px solid rgba(25, 135, 84, .25);
    border-radius: .5rem;
    padding: .5rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--bs-success);
}

/* Testo lungo della sezione GDPR */
.sec-detail-text {
    font-size: .92rem;
    line-height: 1.7;
    opacity: .85;
}

/* === Box finale (highlight) === */
.sec-highlight {
    background: linear-gradient(135deg, #1B3A6B 0%, #0d2347 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 2rem 2.5rem;
}
.sec-highlight p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: .92;
    margin-bottom: 0;
}
.sec-highlight-title {
    font-size: 1.1rem;
}
.sec-highlight-icon {
    color: #E8701A;
}
.sec-version-label {
    font-size: .75rem;
    opacity: .7;
}
.sec-version-value {
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.4;
}
.sec-version-sub {
    font-weight: 400;
    opacity: .85;
}

/* === Footer note === */
.sec-footer-note {
    text-align: center;
    color: var(--bs-secondary-color, #6c757d);
    font-size: .8rem;
    margin-bottom: 1.5rem;
}

/* Theme dark */
[data-bs-theme="dark"] .sec-card,
[data-bs-theme="dark"] .sec-detail-card {
    background: #1c2128;
}
[data-bs-theme="dark"] .sec-gdpr-badge {
    background: rgba(25, 135, 84, .15);
    border-color: rgba(25, 135, 84, .3);
}

/* === Toggle lingua IT/EN === */
.sec-lang-toggle {
    display: inline-flex;
    align-items: center;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .35);
}
.sec-lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .65);
    padding: .2rem .65rem;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.8;
    transition: background .15s, color .15s;
}
.sec-lang-btn.active {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}
/* Variante chiara (per la sticky header) */
.sec-lang-toggle-light {
    border-color: var(--bs-border-color);
}
.sec-lang-toggle-light .sec-lang-btn {
    color: var(--bs-secondary-color, #6c757d);
}
.sec-lang-toggle-light .sec-lang-btn.active {
    background: var(--bs-primary);
    color: #fff;
}

/* === Switch IT/EN dei contenuti === */
.sec-en {
    display: none;
}
.lang-en .sec-it {
    display: none;
}
.lang-en .sec-en {
    display: block;
}
.lang-en span.sec-en {
    display: inline;
}
.lang-en .sec-pill.sec-en {
    display: inline-flex;
}
