﻿/* =========================
   Poliamore HUB - custom.css
   Bootstrap 5.3.8 override layer
   ========================= */

:root {
    /* === BRAND CORE (arcobaleno elegante) === */
    --primary: #5B5FAE; /* Indigo / Violet */
    --primary-rgb: 91,95,174;
    --secondary: #3FA7A3; /* Teal */
    --secondary-rgb: 63,167,163;
    --accent: #C04C9B; /* Magenta */
    --accent-rgb: 192,76,155;
    /* === TEXT === */
    --text-main: #1F2933;
    --text-main-rgb: 31,41,51;
    --text-muted: #6B7280;
    /* === BACKGROUNDS === */
    --bg: #F7F8FB;
    --card-bg: #FFFFFF;
    --footer-bg: #141625;
    --footer-bg-2: #0E101A;
    /* === RADIUS === */
    --radius-xl: 1rem;
    --radius-pill: 999px;
    --radius-btn: 0.4rem; /* più piccolo di --radius-xl */
    /* === SEGMENT / CHIP === */
    --seg-bg: rgba(91,95,174,.12);
    --seg-active: var(--primary);
    --seg-active-shadow: rgba(91,95,174,.35);
    /* === STATUS COLORS (arcobaleno) === */
    --success: #3FAE6A;
    --success-rgb: 63,174,106;
    --warning: #E6B84C;
    --warning-rgb: 230,184,76;
    --danger: #D1495B;
    --danger-rgb: 209,73,91;
    --info: #4FA3D1;
    --info-rgb: 79,163,209;
    /* === Rainbow palette (per bordi e pills) === */
    --rb-indigo: #5B5FAE;
    --rb-blue: #4FA3D1;
    --rb-teal: #3FA7A3;
    --rb-green: #3FAE6A;
    --rb-yellow: #E6B84C;
    --rb-red: #D1495B;
    --rb-magenta: #C04C9B;
    /*--rb-gradient: linear-gradient(90deg, #5B5FAE, #4FA3D1, #3FA7A3, #3FAE6A, #E6B84C, #D1495B, #C04C9B);*/
    --rb-gradient: linear-gradient( 90deg, #8C90E8, /* indigo chiaro */
    #7DC8F2, /* azzurro soft */
    #6FD4C8, /* teal chiaro */
    #78D98E, /* verde soft */
    #F4D67A, /* giallo chiaro */
    #F28A94, /* rosso soft */
    #E48CCB /* magenta chiaro */
    );
    /* === Bootstrap token mapping (senza .resx) === */
    --bs-primary: var(--primary);
    --bs-primary-rgb: var(--primary-rgb);
    --bs-secondary: var(--secondary);
    --bs-secondary-rgb: var(--secondary-rgb);
    --bs-success: var(--success);
    --bs-success-rgb: var(--success-rgb);
    --bs-warning: var(--warning);
    --bs-warning-rgb: var(--warning-rgb);
    --bs-danger: var(--danger);
    --bs-danger-rgb: var(--danger-rgb);
    --bs-info: var(--info);
    --bs-info-rgb: var(--info-rgb);
    --bs-body-color: var(--text-main);
    --bs-body-bg: var(--bg);
    --bs-secondary-color: var(--text-muted);
    --bs-border-radius-xl: var(--radius-xl);
    --radius-custom: var(--radius-xl) var(--radius-xl) 0 var(--radius-xl);
    --bs-border-radius-pill: var(--radius-pill);
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--accent);
    --bs-focus-ring-color: rgba(var(--primary-rgb), .28);
    /* =========================
   Typography
   ========================= */
    /* Testo base */
    body {
        font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-weight: 400;
    }
    /* Titoli */
    h1, h2, h3, h4, h5, h6,
    .display-1, .display-2, .display-3, .display-4,
    .section-title {
        font-family: "Chiron Sung HK", serif;
        font-weight: 700;
    }
    /* Mantiene Urbanist per elementi non heading */
    p, li, span, div, a, small, label, input, textarea, button {
        font-family: "Urbanist", sans-serif;
    }
}


.text-gradient {
    background: linear-gradient(90deg, #b32921, #b36800, #b38f00, #248b3e, #0055b3, #3d3d96, #7a399b) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    font-weight: 700 !important;
    font-family: "Chiron Sung HK", serif !important;
    display: inline-block !important;
}

    .text-gradient i {
        background: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        -webkit-text-fill-color: initial !important;
        color: var(--text-main) !important; /* oppure un colore fisso */
    }
/* =========================
   Global base
   ========================= */
html, body {
    color: var(--text-main);
    background: var(--bg);
}

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* =========================
   Buttons
   ========================= */
/* Default: niente taglio per tutti i bottoni */
.btn {
    transition: all .25s ease;
}

/* =========================
   Bottone con angolo rainbow
   ========================= */

/* =========================
   Buttons
   ========================= */

.btn {
    transition: all .25s ease;
    border-radius: var(--radius-btn);
}

/* -------------------------
   Varianti colore
-------------------------- */

/* =========================
   BUTTONS - VARIANTI COMPLETE
   ========================= */

/* -------------------------
   SUCCESS (verde)
-------------------------- */
.btn-success {
    --bs-btn-bg: var(--success);
    --bs-btn-border-color: var(--success);
    --bs-btn-hover-bg: rgba(var(--success-rgb), .92);
    --bs-btn-hover-border-color: rgba(var(--success-rgb), .92);
    --bs-btn-active-bg: rgba(var(--success-rgb), .85);
    --bs-btn-active-border-color: rgba(var(--success-rgb), .85);
    --bs-btn-focus-shadow-rgb: var(--success-rgb);
}

.btn-outline-success {
    --bs-btn-color: var(--success);
    --bs-btn-border-color: var(--success);
    --bs-btn-hover-bg: var(--success);
    --bs-btn-hover-border-color: var(--success);
    --bs-btn-active-bg: rgba(var(--success-rgb), .9);
    --bs-btn-active-border-color: rgba(var(--success-rgb), .9);
    --bs-btn-focus-shadow-rgb: var(--success-rgb);
}

/* -------------------------
   WARNING (giallo)
-------------------------- */
.btn-warning {
    --bs-btn-color: #000;
    --bs-btn-bg: var(--warning);
    --bs-btn-border-color: var(--warning);
    --bs-btn-hover-bg: rgba(var(--warning-rgb), .92);
    --bs-btn-hover-border-color: rgba(var(--warning-rgb), .92);
    --bs-btn-active-bg: rgba(var(--warning-rgb), .85);
    --bs-btn-active-border-color: rgba(var(--warning-rgb), .85);
    --bs-btn-focus-shadow-rgb: var(--warning-rgb);
}

.btn-outline-warning {
    --bs-btn-color: var(--warning);
    --bs-btn-border-color: var(--warning);
    --bs-btn-hover-bg: var(--warning);
    --bs-btn-hover-border-color: var(--warning);
    --bs-btn-hover-color: #000;
    --bs-btn-active-bg: rgba(var(--warning-rgb), .9);
    --bs-btn-active-border-color: rgba(var(--warning-rgb), .9);
    --bs-btn-focus-shadow-rgb: var(--warning-rgb);
}

/* -------------------------
   DANGER (rosso)
-------------------------- */
.btn-danger {
    --bs-btn-bg: var(--danger);
    --bs-btn-border-color: var(--danger);
    --bs-btn-hover-bg: rgba(var(--danger-rgb), .92);
    --bs-btn-hover-border-color: rgba(var(--danger-rgb), .92);
    --bs-btn-active-bg: rgba(var(--danger-rgb), .85);
    --bs-btn-active-border-color: rgba(var(--danger-rgb), .85);
    --bs-btn-focus-shadow-rgb: var(--danger-rgb);
}

.btn-outline-danger {
    --bs-btn-color: var(--danger);
    --bs-btn-border-color: var(--danger);
    --bs-btn-hover-bg: var(--danger);
    --bs-btn-hover-border-color: var(--danger);
    --bs-btn-active-bg: rgba(var(--danger-rgb), .9);
    --bs-btn-active-border-color: rgba(var(--danger-rgb), .9);
    --bs-btn-focus-shadow-rgb: var(--danger-rgb);
}

/* -------------------------
   INFO (azzurro)
-------------------------- */
.btn-info {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--info);
    --bs-btn-border-color: var(--info);
    --bs-btn-hover-bg: rgba(var(--info-rgb), .92);
    --bs-btn-hover-border-color: rgba(var(--info-rgb), .92);
    --bs-btn-active-bg: rgba(var(--info-rgb), .85);
    --bs-btn-active-border-color: rgba(var(--info-rgb), .85);
    --bs-btn-focus-shadow-rgb: var(--info-rgb);
}

.btn-outline-info {
    --bs-btn-color: var(--info);
    --bs-btn-border-color: var(--info);
    --bs-btn-hover-bg: var(--info);
    --bs-btn-hover-border-color: var(--info);
    --bs-btn-active-bg: rgba(var(--info-rgb), .9);
    --bs-btn-active-border-color: rgba(var(--info-rgb), .9);
    --bs-btn-focus-shadow-rgb: var(--info-rgb);
}

/* -------------------------
   LIGHT / DARK
-------------------------- */
.btn-light {
    --bs-btn-color: var(--text-main);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: rgba(0,0,0,.08);
    --bs-btn-hover-bg: #f3f4f6;
    --bs-btn-hover-border-color: rgba(0,0,0,.12);
}

.btn-dark {
    --bs-btn-bg: var(--footer-bg);
    --bs-btn-border-color: var(--footer-bg);
    --bs-btn-hover-bg: #1a1d2f;
    --bs-btn-hover-border-color: #1a1d2f;
}

/* -------------------------
   RAINBOW (brand distintivo)
-------------------------- */
.btn-rainbow {
    color: #000;
    background: var(--rb-gradient);
    border: none;
    font-weight: 700;
}

    .btn-rainbow:hover {
        filter: brightness(.95);
    }

.btn-outline-rainbow {
    color: var(--primary);
    background: transparent;
    border: 2px solid transparent;
    border-image: var(--rb-gradient) 1;
}

    .btn-outline-rainbow:hover {
        background: var(--rb-gradient);
        color: #000;
    }

/* -------------------------
   SOFT (stile UI moderno)
-------------------------- */
.btn-soft-primary {
    background: rgba(var(--primary-rgb), .12);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), .18);
}

    .btn-soft-primary:hover {
        background: rgba(var(--primary-rgb), .18);
    }

/* replicabili per altri colori */
.btn-soft-success {
    background: rgba(var(--success-rgb), .12);
    color: var(--success);
    border: 1px solid rgba(var(--success-rgb), .18);
}

.btn-soft-danger {
    background: rgba(var(--danger-rgb), .12);
    color: var(--danger);
    border: 1px solid rgba(var(--danger-rgb), .18);
}

.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(var(--accent-rgb), .92);
    --bs-btn-hover-border-color: rgba(var(--accent-rgb), .92);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(var(--accent-rgb), .85);
    --bs-btn-active-border-color: rgba(var(--accent-rgb), .85);
    --bs-btn-focus-shadow-rgb: var(--accent-rgb);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--accent);
    --bs-btn-disabled-border-color: var(--accent);
}

/* -------------------------
   Input group
-------------------------- */

.input-group .btn {
    border-radius: var(--radius-btn);
}
/* =========================
   Forms
   ========================= */

.form-control, .form-select {
    border-radius: var(--radius-custom);
}

    .form-control:focus, .form-select:focus, .form-check-input:focus {
        border-color: rgba(var(--primary-rgb), .55);
        box-shadow: 0 0 0 .25rem rgba(var(--primary-rgb), .18);
    }

.form-text {
    color: var(--text-muted);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* =========================
   Alerts / Badges
   ========================= */

.alert {
    border-radius: var(--radius-custom);
}

.badge {
    border-radius: var(--radius-pill);
}

.badge-accent {
    background: var(--accent);
    color: #fff;
}

/* =========================
   Cards
   ========================= */

.card {
    border-radius: var(--radius-xl) var(--radius-xl) 0 var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid rgba(31,41,51,.06);
    box-shadow: 0 6px 18px rgba(14,16,26,.07), 0 2px 6px rgba(14,16,26,.06);
    transition: all .25s ease;
}
/* =========================
   Card accent - bordo sinistro spesso e colorato
   Uso:
   - <div class="card card-lbar">...</div> (default indigo)
   - <div class="card card-lbar card-lbar-teal">...</div>
   ========================= */

.card-lbar {
    border-left: .3rem solid var(--rb-indigo);
    border-radius: var(--radius-xl) var(--radius-xl) 0 var(--radius-xl);
}

    .card-lbar:hover {
        box-shadow: 0 16px 36px rgba(14,16,26,.14), 0 6px 12px rgba(14,16,26,.10);
    }

.card-lbar-indigo {
    border-left-color: var(--rb-indigo);
}

.card-lbar-blue {
    border-left-color: var(--rb-blue);
}

.card-lbar-teal {
    border-left-color: var(--rb-teal);
}

.card-lbar-green {
    border-left-color: var(--rb-green);
}

.card-lbar-yellow {
    border-left-color: var(--rb-yellow);
}

.card-lbar-red {
    border-left-color: var(--rb-red);
}

.card-lbar-magenta {
    border-left-color: var(--rb-magenta);
}

/* Variante “arcobaleno” (bordo sinistro gradiente) */
.card-lbar-rainbow {
    position: relative;
    border-left: 0;
}

    .card-lbar-rainbow::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: .55rem;
        border-top-left-radius: 0;
        border-bottom-left-radius: var(--radius-xl);
        background: var(--rb-gradient);
    }

    .card-lbar-rainbow > .card-body,
    .card-lbar-rainbow > .card-header,
    .card-lbar-rainbow > .card-footer {
        position: relative; /* per stare sopra lo pseudo-elemento */
    }

/* =========================
   Etichette / Pills arcobaleno (sfondo gradient, testo nero)
   Uso:
   - <span class="pill-rainbow">NOVITÀ</span>
   - <span class="badge badge-rainbow">IN EVIDENZA</span>
   ========================= */

.pill-rainbow,
.label-rainbow,
.badge-rainbow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--rb-gradient);
    color: #000 !important;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: var(--radius-pill);
    line-height: 1;
    white-space: nowrap;
}

/* dimensioni tipiche */
.pill-rainbow {
    padding: .45rem .75rem;
    font-weight: 700;
    font-size: .875rem;
}

.label-rainbow {
    padding: .25rem .55rem;
    font-weight: 700;
    font-size: .80rem;
}

.badge-rainbow {
    padding: .35rem .60rem;
    font-weight: 700;
    font-size: .80rem;
}

/* “soft” (più chiaro) per contesti molto puliti */
.pill-rainbow-soft,
.label-rainbow-soft,
.badge-rainbow-soft {
    background: var(--rb-gradient);
    color: #000 !important;
    border: 1px solid rgba(0,0,0,.08);
    filter: saturate(.95);
    opacity: .92;
    padding: 0.1rem;
}



/* =========================
   Navbar / Sidebar helpers (Admin)
   ========================= */

.admin-topbar.navbar,
.admin-sidebar {
    background: var(--footer-bg) !important;
}

    .admin-sidebar .nav-link {
        border-radius: var(--radius-xl);
        color: rgba(255,255,255,.85);
    }

        .admin-sidebar .nav-link:hover {
            background: rgba(255,255,255,.06);
            color: #fff;
        }

        .admin-sidebar .nav-link.active {
            background: rgba(var(--primary-rgb), .22);
            color: #fff;
            box-shadow: 0 0 0 .15rem rgba(var(--primary-rgb), .18);
        }

/* Mobile offcanvas list group */
.offcanvas .list-group-item {
    border: 0;
    border-radius: var(--radius-xl);
    margin-bottom: .25rem;
}

    .offcanvas .list-group-item:hover {
        background: rgba(255,255,255,.06) !important;
    }

/* =========================
   Rainbow accent (optional utility)
   ========================= */

.gradient-brand {
    background: var(--rb-gradient);
}
/* ===== Homepage only ===== */
.home-hero {
    background: #fff;
    border-radius: var(--radius-custom);
    box-shadow: 0 .35rem 1.25rem rgba(14,16,26,.06);
    overflow: hidden;
}

.home-hero__inner {
    padding: 2rem;
}

.home-hero__claim {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.home-hero__lead {
    color: var(--text-muted);
}

.home-hero__img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .home-hero__inner {
        padding: 1.5rem;
    }

    .home-hero__img {
        min-height: 220px;
    }
}

/* Term box stile dizionario */
.term-box {
    background: #fff;
    border-radius: var(--radius-custom);
    border: 1px solid rgba(31,41,51,.08);
    box-shadow: 0 .35rem 1.25rem rgba(14,16,26,.06);
    padding: 1.25rem 1.25rem 1.1rem 1.25rem;
}

.term-box__header {
    display: flex;
    gap: .75rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.term-box__term {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
}

.term-box__pron {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: .95rem;
    color: rgba(31,41,51,.78);
}

.term-box__pos {
    font-size: .85rem;
    font-weight: 800;
    padding: .20rem .55rem;
    border-radius: var(--radius-pill);
    background: rgba(var(--primary-rgb), .10);
    color: var(--text-main);
    border: 1px solid rgba(31,41,51,.10);
}

.term-box__def {
    margin-top: .65rem;
    margin-bottom: .65rem;
    color: var(--text-main);
}

.term-box__example {
    margin: 0;
    padding-left: .9rem;
    border-left: .35rem solid rgba(var(--primary-rgb), .35);
    color: rgba(31,41,51,.78);
    font-style: italic;
}

/* Piccola griglia section spacing */
.home-section {
    margin-top: 1.75rem;
    margin-bottom: 1.75rem;
}

.home-section__title {
    font-weight: 900;
    letter-spacing: -0.01em;
    margin: 0 0 .75rem 0;
}
/* =========================
   Newsletter input unito
   ========================= */

.newsletter-group .form-control {
    border-right: 0;
}

.newsletter-group .btn {
    border-left: 0;
}

.newsletter-group .form-control:focus {
    box-shadow: none;
}
/* =========================
   Confetti reusable
   ========================= */

.confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

    .confetti span {
        position: absolute;
        animation: confetti-fall linear infinite;
    }

@keyframes confetti-fall {
    to {
        transform: translateY(120vh) rotate(360deg);
    }
}
/* =========================
   Navbar
   ========================= */

.main-navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    min-height: 72px; /* altezza coerente */
}

    /* Il brand deve occupare tutta l'altezza */
    .main-navbar .navbar-brand {
        display: flex;
        align-items: center;
        height: 100%;
        padding: 0;
    }

    /* Il logo prende l’altezza della navbar */
    .main-navbar .navbar-logo {
        max-height: 100%;
        height: calc(100% - 8px);
        width: auto;
    }

/* Desktop leggermente più grande */
@media (min-width: 992px) {
    .main-navbar {
        min-height: 84px;
    }

        .main-navbar .navbar-logo {
            height: 56px;
        }
}
/* =========================
   Article thumbnail (home)
   ========================= */

.article-thumb {
    display: block;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    border-radius: var(--radius-btn);
    overflow: hidden;
    background: rgba(0,0,0,.04);
}

    .article-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.home-article-card--latest {
    transform: translateY(0);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .home-article-card--latest:hover,
    .home-article-card--random:hover {
        transform: translateY(-2px);
    }

.home-article-card--random {
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,255,0.96) 100%);
}
/* =========================
   Footer
   ========================= */

.site-footer {
    background: var(--footer-bg, #0f141a);
    color: rgba(255,255,255,.82);
    border-top: 1px solid rgba(255,255,255,.08);
}

    .site-footer .footer-logo {
        height: 34px;
        width: auto;
        display: block;
        opacity: .95;
    }

    .site-footer .footer-title {
        font-family: "Chiron Sung HK", serif;
        font-weight: 700;
        font-size: 1rem;
        color: rgba(255,255,255,.92);
        margin-bottom: .75rem;
    }

    .site-footer .footer-text {
        font-family: "Urbanist", sans-serif;
        font-size: .95rem;
        color: rgba(255,255,255,.74);
    }

    .site-footer .footer-small {
        font-family: "Urbanist", sans-serif;
        font-size: .9rem;
        color: rgba(255,255,255,.70);
    }

    .site-footer .footer-link {
        color: rgba(255,255,255,.80);
        text-decoration: none;
    }

        .site-footer .footer-link:hover {
            color: rgba(255,255,255,.95);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

    .site-footer .footer-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .site-footer .footer-list li {
            margin: .35rem 0;
        }

/* Ideatori: discreti */
.footer-founders {
    display: unset;
}

.footer-founder {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .7rem .8rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-btn);
    background: rgba(255,255,255,.02);
}

.footer-founder__img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius-btn);
    opacity: .95;
}

.footer-founder__role {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.60);
}

.footer-founder__name {
    font-weight: 700;
    color: rgba(255,255,255,.92);
    line-height: 1.2;
    margin-top: .15rem;
}

.footer-founder__bio {
    font-size: .9rem;
    color: rgba(255,255,255,.72);
    margin-top: .25rem;
    line-height: 1.35;
}

/* Legal row */
.footer-legal {
    font-size: .9rem;
    color: rgba(255,255,255,.68);
}

.footer-dot {
    margin: 0 .5rem;
    color: rgba(255,255,255,.35);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
}
/* =========================
   Footer brand layout
   ========================= */

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* logo centrato */
    text-align: center;
}

.footer-brand__text {
    width: 100%;
    text-align: left; /* testo sotto allineato a sinistra */
}

.footer-brand__logo {
    height: 90px;
    width: auto;
    flex-shrink: 0;
}

.footer-brand__text {
    flex: 1;
}

/* Mobile: torna verticale */
@media (max-width: 768px) {
    .footer-brand {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-brand__logo {
        height: 64px;
    }
}
/* =========================
   Homepage - Focus box
   ========================= */

.home-focus-section {
    position: relative;
}

.card-focus {
    background: linear-gradient( 180deg, rgba(255,255,255,1) 0%, rgba(91,95,174,.03) 100% );
    transition: all .3s ease;
}

    .card-focus:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 48px rgba(14,16,26,.16), 0 8px 18px rgba(14,16,26,.10);
    }

.card-focus__imgwrap {
    overflow: hidden;
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

.card-focus__img {
    object-fit: cover;
    max-height: 260px;
    transition: transform .5s ease;
}

.card-focus:hover .card-focus__img {
    transform: scale(1.04);
}

.card-focus__title {
    font-weight: 900;
    font-size: 1.15rem;
    margin-bottom: .6rem;
}

.card-focus__link {
    color: var(--text-main);
}

    .card-focus__link:hover {
        color: var(--accent);
        text-decoration: none;
    }

.card-focus__excerpt {
    font-size: .95rem;
    color: var(--text-muted);
}
/* =========================
   Homepage - Hero Focus
   ========================= */

.home-focus-hero__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.home-focus-hero__card {
    overflow: hidden;
    background: linear-gradient( 180deg, rgba(255,255,255,1) 0%, rgba(91,95,174,.03) 100% );
    transition: all .3s ease;
}

    .home-focus-hero__card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 48px rgba(14,16,26,.16), 0 8px 18px rgba(14,16,26,.10);
    }

.home-focus-hero__media {
    height: 100%;
    min-height: 260px;
    background: rgba(0,0,0,.04);
    overflow: hidden;
}

.home-focus-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s ease;
}

.home-focus-hero__card:hover .home-focus-hero__img {
    transform: scale(1.04);
}

.home-focus-hero__body {
    padding: 1.35rem 1.35rem 1.1rem 1.35rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-focus-hero__title {
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    margin: 0 0 .65rem 0;
}

.home-focus-hero__link {
    color: var(--text-main);
    text-decoration: none;
}

    .home-focus-hero__link:hover {
        color: var(--accent);
        text-decoration: none;
    }

.home-focus-hero__excerpt {
    color: var(--text-muted);
    font-size: .98rem;
    line-height: 1.45;
    flex: 1;
}

.home-focus-hero__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
}

.home-focus-hero__hint {
    opacity: .85;
}

/* Mobile: immagine più bassa, padding più compatto */
@media (max-width: 991.98px) {
    .home-focus-hero__media {
        min-height: 200px;
    }

    .home-focus-hero__body {
        padding: 1.1rem 1.1rem 1rem 1.1rem;
    }

    .home-focus-hero__header {
        flex-direction: row;
        align-items: center;
    }
}
/* =========================
   Homepage - Focus Card colorata
   ========================= */

.home-focus-color {
    border: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    color: #fff;
    background: linear-gradient( 135deg, rgba(var(--primary-rgb), .95), rgba(var(--accent-rgb), .85) );
    box-shadow: 0 18px 42px rgba(14,16,26,.18);
    transition: all .3s ease;
}

    .home-focus-color:hover {
        /*transform: translateY(-4px);*/
        box-shadow: 0 26px 60px rgba(14,16,26,.25);
    }

/* =========================
   Focus Card - Libri
   ========================= */

.home-focus-color__imgwrap {
    max-height: 420px;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.home-focus-color__img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* nessun taglio */
    box-shadow: 0 18px 40px rgba(0,0,0,.35); /* effetto libro reale */
    border-radius: .4rem;
}


.home-focus-color:hover .home-focus-color__img {
    transform: scale(1.05);
    opacity: .95;
}

.home-focus-color__body {
    padding: 1.4rem 1.4rem 1.3rem 1.4rem;
}

.home-focus-color__badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255,255,255,.18);
    padding: .35rem .7rem;
    border-radius: var(--radius-pill);
    margin-bottom: .75rem;
}

.home-focus-color__title {
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: .6rem;
    line-height: 1.2;
}

.home-focus-color__link {
    color: #fff;
    text-decoration: none;
}

    .home-focus-color__link:hover {
        color: #fff;
        text-decoration: underline;
    }

.home-focus-color__excerpt {
    font-size: .98rem;
    line-height: 1.45;
    color: rgba(255,255,255,.9);
}

/* Bottone chiaro coerente */
.home-focus-color .btn-light {
    background: #fff;
    border: 0;
    color: var(--primary);
    font-weight: 700;
}

    .home-focus-color .btn-light:hover {
        background: rgba(255,255,255,.9);
    }
/* =========================
   Blog Article page
   ========================= */

.article-shell {
    position: relative;
}

.article-breadcrumb .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(var(--primary-rgb), .45);
    --bs-breadcrumb-item-active-color: var(--text-muted);
    font-size: .95rem;
}

.article-breadcrumb a {
    color: var(--primary);
}

.article-hero {
    border-radius: var(--radius-xl) var(--radius-xl) 0 var(--radius-xl);
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(var(--accent-rgb), .08), transparent 32%), linear-gradient(180deg, #fff 0%, rgba(255,255,255,.98) 100%);
}

.article-cover-wrap {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), .10), rgba(var(--secondary-rgb), .08), rgba(var(--accent-rgb), .10));
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.article-cover {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.article-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0;
}

.article-excerpt {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 64ch;
}

.article-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .45rem .85rem;
    border-radius: var(--radius-pill);
    background: rgba(var(--primary-rgb), .08);
    color: var(--text-main);
    font-size: .92rem;
    font-weight: 500;
}

.article-content {
    font-size: 1.06rem;
    line-height: 1.9;
    color: var(--text-main);
}

    .article-content > *:first-child {
        margin-top: 0;
    }

    .article-content h2,
    .article-content h3,
    .article-content h4 {
        margin-top: 2.25rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        color: var(--text-main);
    }

    .article-content h2 {
        font-size: 1.8rem;
    }

    .article-content h3 {
        font-size: 1.45rem;
    }

    .article-content h4 {
        font-size: 1.2rem;
    }

    .article-content p,
    .article-content ul,
    .article-content ol,
    .article-content blockquote {
        margin-bottom: 1.2rem;
    }

    .article-content ul,
    .article-content ol {
        padding-left: 1.3rem;
    }

    .article-content a {
        color: var(--primary);
        text-decoration: underline;
        text-decoration-thickness: .08em;
        text-underline-offset: .14em;
    }

    .article-content img {
        max-width: 100%;
        height: auto;
        border-radius: var(--radius-xl);
        box-shadow: 0 14px 36px rgba(15, 23, 42, .10);
    }

    .article-content blockquote {
        margin: 1.75rem 0;
        padding: 1rem 1.25rem;
        border-left: 4px solid var(--accent);
        background: linear-gradient(180deg, rgba(var(--accent-rgb), .06), rgba(var(--primary-rgb), .04));
        border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
        color: var(--text-main);
    }

.article-sidecard {
    border-radius: var(--radius-xl) var(--radius-xl) 0 var(--radius-xl);
}

.article-aside {
    position: sticky;
    top: 1.5rem;
}

.article-notfound {
    border-radius: var(--radius-xl) var(--radius-xl) 0 var(--radius-xl);
}

@media (max-width: 991.98px) {
    .article-aside {
        position: static;
        top: auto;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .article-cover {
        max-height: 320px;
    }
}

.article-sharebox {
    margin-top: 1.25rem;
    padding: 1.1rem 1.1rem 1rem 1.1rem;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: var(--radius-xl) var(--radius-xl) 0 var(--radius-xl);
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,1)), radial-gradient(circle at top right, rgba(var(--accent-rgb), .06), transparent 35%);
}

.article-sharebox__title {
    font-weight: 700;
    margin-bottom: .85rem;
}

.article-sharebox__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.article-sharebtn {
    min-width: 180px;
}

@media (max-width: 575.98px) {
    .article-sharebtn {
        width: 100%;
    }
}

.article-related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-related-item {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    color: inherit;
    padding: .2rem 0;
}

    .article-related-item:hover .article-related-item__title {
        text-decoration: underline;
    }

.article-related-item__thumbwrap {
    flex: 0 0 78px;
}

.article-related-item__thumb {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: .9rem;
    display: block;
}

.article-related-item__thumb--placeholder {
    width: 78px;
    height: 78px;
    border-radius: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), .08);
    color: rgba(var(--primary-rgb), .8);
    font-size: 1.2rem;
}

.article-related-item__body {
    min-width: 0;
    flex: 1 1 auto;
}

.article-related-item__date {
    font-size: .78rem;
    color: var(--text-muted);
    margin-bottom: .2rem;
}

.article-related-item__title {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: .25rem;
    color: var(--text-main);
}

.article-related-item__excerpt {
    font-size: .9rem;
    line-height: 1.45;
    color: var(--text-muted);
}

@media (max-width: 991.98px) {
    .article-related-item__thumbwrap {
        flex-basis: 72px;
    }

    .article-related-item__thumb,
    .article-related-item__thumb--placeholder {
        width: 72px;
        height: 72px;
    }
}

/* =========================
   Blog Default
   ========================= */

.blog-page {
    --blog-shadow: 0 18px 42px rgba(20, 22, 37, .07);
    --blog-shadow-hover: 0 24px 52px rgba(20, 22, 37, .12);
}

.blog-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top right, rgba(var(--accent-rgb), .14), transparent 34%), radial-gradient(circle at bottom left, rgba(var(--secondary-rgb), .12), transparent 28%), linear-gradient(135deg, rgba(var(--primary-rgb), .10), rgba(var(--accent-rgb), .08));
    border: 1px solid rgba(var(--primary-rgb), .10);
    box-shadow: var(--blog-shadow);
    padding: 2rem;
}

.blog-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: 999px;
    padding: .5rem .85rem;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(var(--primary-rgb), .12);
    color: var(--primary);
    font-weight: 700;
    font-size: .92rem;
}

.blog-hero__title {
    margin: 1rem 0 .75rem 0;
    line-height: 1.08;
}

.blog-hero__text {
    max-width: 820px;
    color: var(--text-muted);
    font-size: 1.04rem;
}

.blog-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.blog-stat {
    min-width: 145px;
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(var(--primary-rgb), .10);
    padding: .85rem 1rem;
}

.blog-stat__value {
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1;
}

.blog-stat__label {
    font-size: .84rem;
    color: var(--text-muted);
    margin-top: .3rem;
}

.blog-filter-box {
    border: 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--blog-shadow);
    overflow: hidden;
}

    .blog-filter-box .card-body {
        padding: 1.25rem 1.25rem 1.35rem 1.25rem;
    }

.blog-filter-top {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: end;
}

.blog-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.blog-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: .55rem .95rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(var(--primary-rgb), .14);
    color: var(--text-main);
    text-decoration: none !important;
    font-size: .94rem;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}

    .blog-chip:hover {
        transform: translateY(-1px);
        border-color: rgba(var(--primary-rgb), .28);
        box-shadow: 0 10px 24px rgba(var(--primary-rgb), .10);
        color: var(--primary);
    }

    .blog-chip.active {
        background: linear-gradient(90deg, rgba(var(--primary-rgb), .14), rgba(var(--accent-rgb), .14));
        border-color: rgba(var(--primary-rgb), .32);
        color: var(--primary);
        font-weight: 700;
    }

.blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: center;
    justify-content: space-between;
}

.blog-toolbar__left,
.blog-toolbar__right {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
}

.blog-toolbar__meta {
    color: var(--text-muted);
    font-size: .95rem;
}

.blog-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .72rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), .12);
    background: rgba(255,255,255,.92);
    font-size: .84rem;
}

.blog-grid {
    margin-top: 1rem;
}

.blog-card {
    position: relative;
    height: 100%;
    border: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
    background: #fff;
}

    .blog-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--blog-shadow-hover);
    }

.blog-card__media-link {
    display: block;
    text-decoration: none !important;
}

.blog-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: radial-gradient(circle at top right, rgba(var(--accent-rgb), .16), transparent 35%), linear-gradient(135deg, rgba(var(--primary-rgb), .12), rgba(var(--secondary-rgb), .11));
}

.blog-card__body {
    padding: 1.15rem;
}

.blog-card__date {
    color: var(--text-muted);
    font-size: .86rem;
    margin-bottom: .55rem;
}

.blog-card__title {
    font-size: 1.08rem;
    line-height: 1.35;
    margin-bottom: .65rem;
    font-weight: 700;
}

    .blog-card__title a {
        color: var(--text-main);
        text-decoration: none !important;
    }

        .blog-card__title a:hover {
            color: var(--primary);
        }

.blog-card__excerpt {
    color: var(--text-muted);
    font-size: .96rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    min-height: 4.5em;
}

.blog-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
    justify-content: space-between;
}

.blog-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.blog-tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .34rem .65rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), .10), rgba(var(--accent-rgb), .10));
    border: 1px solid rgba(var(--primary-rgb), .10);
    color: var(--text-main);
    text-decoration: none !important;
    font-size: .8rem;
}

    .blog-tag-pill:hover {
        color: var(--primary);
        border-color: rgba(var(--primary-rgb), .22);
    }

.blog-readmore {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none !important;
    white-space: nowrap;
}

    .blog-readmore:hover {
        color: var(--accent);
    }

.blog-empty {
    border-radius: var(--radius-xl);
    background: #fff;
    border: 1px solid rgba(var(--primary-rgb), .10);
    box-shadow: var(--blog-shadow);
    text-align: center;
    padding: 2.3rem 1.25rem;
}

.blog-empty__icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), .12), rgba(var(--accent-rgb), .12));
}

.blog-pager {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.blog-pager__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(var(--primary-rgb), .14);
    color: var(--text-main);
    text-decoration: none !important;
    font-weight: 700;
}

    .blog-pager__link:hover {
        border-color: rgba(var(--primary-rgb), .28);
        color: var(--primary);
    }

    .blog-pager__link.active {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }

    .blog-pager__link.disabled {
        opacity: .45;
        pointer-events: none;
    }

@media (max-width: 991.98px) {
    .blog-hero {
        padding: 1.4rem;
    }
}

@media (max-width: 767.98px) {
    .blog-card__excerpt {
        min-height: 0;
    }

    .blog-toolbar {
        align-items: flex-start;
    }
}

.blog-filter-col {
    display: flex;
    flex-direction: column;
}

.blog-filter-col--search {
    flex: 1 1 260px;
    min-width: 260px;
}

.blog-filter-col--order {
    flex: 0 0 220px;
    min-width: 220px;
}

.blog-filter-col--btn {
    flex: 0 0 140px;
    min-width: 140px;
}

    .blog-filter-col--btn .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .blog-filter-col--btn .form-label,
    .blog-filter-col--btn .form-text {
        visibility: hidden;
    }

/* ==========================================
   VETRINA - DETTAGLIO PRODOTTO
   ========================================== */

.showcase-detail-media-card,
.showcase-detail-info-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.showcase-detail-info-card {
    position: sticky;
    top: 1.5rem;
}

.showcase-detail-mainimg-wrap {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,248,250,1) 100%);
    min-height: 400px;
    max-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.showcase-detail-mainimg {
    max-width: 100%;
    max-height: 640px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 1rem;
}

.showcase-detail-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.showcase-detail-thumb {
    width: 92px;
    height: 92px;
    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
    border-radius: 1.1rem;
    padding: .25rem;
    transition: all .2s ease;
    box-shadow: 0 .2rem .8rem rgba(0,0,0,.04);
}

    .showcase-detail-thumb:hover {
        transform: translateY(-1px);
        border-color: rgba(var(--primary-rgb), .38);
        box-shadow: 0 .45rem 1rem rgba(0,0,0,.08);
    }

    .showcase-detail-thumb.is-active {
        border-color: rgba(var(--primary-rgb), .75);
        box-shadow: 0 0 0 .2rem rgba(var(--primary-rgb), .12);
    }

    .showcase-detail-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: .9rem;
        display: block;
    }

.showcase-detail-description {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--bs-body-color);
}

    .showcase-detail-description p:last-child {
        margin-bottom: 0;
    }

    .showcase-detail-description ul,
    .showcase-detail-description ol {
        padding-left: 1.25rem;
    }

    .showcase-detail-description img {
        max-width: 100%;
        height: auto;
        border-radius: var(--radius-xl);
    }

.showcase-detail-links-title {
    letter-spacing: .08em;
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    .showcase-detail-mainimg-wrap {
        min-height: 460px;
        max-height: 620px;
    }

    .showcase-detail-mainimg {
        max-height: 580px;
    }
}

@media (max-width: 991.98px) {
    .showcase-detail-info-card {
        position: static;
        top: auto;
    }

    .showcase-detail-mainimg-wrap {
        min-height: 420px;
        max-height: none;
    }

    .showcase-detail-mainimg {
        max-height: 520px;
    }
}

@media (max-width: 575.98px) {
    .showcase-detail-mainimg-wrap {
        min-height: 320px;
        padding: .9rem;
    }

    .showcase-detail-mainimg {
        max-height: 360px;
    }

    .showcase-detail-thumb {
        width: 76px;
        height: 76px;
        border-radius: 1rem;
    }

        .showcase-detail-thumb img {
            border-radius: .8rem;
        }
}

.showcase-cta-box {
    padding: 1rem;
    border: 1px solid rgba(var(--primary-rgb), .12);
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(249,250,252,1) 100%);
    border-radius: var(--radius-xl);
}

.showcase-cta-box__title {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(var(--primary-rgb), .95);
    margin-bottom: .85rem;
}

.showcase-cta-btn {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    border-radius: 1rem;
}

    .showcase-cta-btn::after {
        content: "↗";
        font-size: 1.05rem;
        line-height: 1;
        margin-left: .75rem;
        opacity: .9;
    }

.breadcrumb {
    background: transparent;
    font-size: .9rem;
}

    .breadcrumb a {
        color: var(--primary);
    }

.breadcrumb-item.active {
    color: var(--text-muted);
}

.card-lbar {
    position: relative;
    overflow: hidden;
}

    .card-lbar::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        border-radius: 0 6px 6px 0;
    }



/* focus emotivo */
#cari-bea-e-zeno-form {
    scroll-margin-top: 100px;
}
/* HERO WOW */

.home-hero {
    background: transparent;
}

/* gradient soft */
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(91,95,174,.18), transparent 40%), radial-gradient(circle at 80% 70%, rgba(192,76,155,.18), transparent 40%);
    z-index: 0;
}

/* floating shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .4;
}

.hero-shape-1 {
    width: 200px;
    height: 200px;
    background: #5B5FAE;
    top: -50px;
    left: -50px;
}

.hero-shape-2 {
    width: 240px;
    height: 240px;
    background: #C04C9B;
    bottom: -60px;
    right: -60px;
}

/* card effetto floating */
.hero-card {
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
    transform: translateY(0);
    transition: all .3s ease;
}

    .hero-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 30px 70px rgba(0,0,0,.12);
    }
/* avatar team contatti */
.ph-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    transition: all .25s ease;
}

    .ph-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* micro interazione elegante */
    .ph-avatar:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,.12);
    }

.ph-trust-box {
    background: rgba(91,95,174,.06);
    border-left: 4px solid var(--primary);
    padding: 12px 14px;
    border-radius: var(--radius-xl);
}
/* testimonial elegante */
.ph-testimonial {
    position: relative;
    padding: 18px 18px 18px 22px;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    border-left: 4px solid var(--accent);
}

    .ph-testimonial p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--text-main);
    }

/* icona quote */
.ph-quote-icon {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 34px;
    height: 34px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.ph-modal-wow {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

    .ph-modal-wow::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, #5B5FAE, #4FA3D1, #3FAE6A, #E6B84C, #C04C9B);
        opacity: .08;
        pointer-events: none; /* 🔥 FIX */
    }

    .ph-modal-wow .modal-body {
        position: relative;
    }

    .ph-modal-wow .form-control {
        box-shadow: 0 10px 25px rgba(0,0,0,.05);
    }

.ph-modal-wow {
    position: relative;
}

    .ph-modal-wow .modal-body,
    .ph-modal-wow .modal-header,
    .ph-modal-wow .modal-footer {
        position: relative;
        z-index: 1;
    }
/* =========================
   Navbar hover rainbow rotazione
   ========================= */

.main-navbar .nav-link {
    border-radius: var(--radius-pill);
    padding: .4rem .8rem;
    transition: all .2s ease;
}

/* colori in rotazione */

.main-navbar .nav-item:nth-child(7n+1) .nav-link:hover {
    background-color: #D1495B;
    color: #fff !important;
}

.main-navbar .nav-item:nth-child(7n+2) .nav-link:hover {
    background-color: #4FA3D1;
    color: #fff !important;
}

.main-navbar .nav-item:nth-child(7n+3) .nav-link:hover {
    background-color: #C04C9B;
    color: #fff !important;
}

.main-navbar .nav-item:nth-child(7n+4) .nav-link:hover {
    background-color: #3FAE6A;
    color: #fff !important;
}

.main-navbar .nav-item:nth-child(7n+5) .nav-link:hover {
    background-color: #5B5FAE;
    color: #fff !important;
}

.main-navbar .nav-item:nth-child(7n+6) .nav-link:hover {
    background-color: #E6B84C;
    color: #000 !important; /* giallo → testo scuro */
}

.main-navbar .nav-item:nth-child(7n+7) .nav-link:hover {
    background-color: #3FA7A3;
    color: #fff !important;
}

.checkout-summary-box {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    padding: 16px 18px;
}

    /* riga importi */
    .checkout-summary-box .fw-semibold {
        letter-spacing: 0.2px;
    }

    /* totale evidenziato */
    .checkout-summary-box .text-success {
        color: #198754 !important;
    }

    /* icone */
    .checkout-summary-box i {
        font-size: 0.95rem;
        opacity: 0.75;
    }

    /* separatore più elegante */
    .checkout-summary-box hr {
        border-top: 1px dashed #d1d5db;
    }

.checkout-paypal-box {
    background: linear-gradient(135deg, #003087 0%, #009cde 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

    .checkout-paypal-box .text-muted {
        color: rgba(255,255,255,0.85) !important;
    }

.checkout-paypal-icon {
    font-size: 2.2rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
}

/* hover leggero */
.checkout-paypal-box:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* colonna sinistra strutturata */
.checkout-left-col {
    height: 100%;
}

/* blocco alto: allineamento coerente */
.checkout-left-top {
    max-width: 520px; /* stessa “densità” della card di destra */
}

/* testo paypal */
.checkout-paypal-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* migliora ritmo verticale */
.checkout-left-top h1 {
    line-height: 1.2;
}

.checkout-left-top p {
    line-height: 1.5;
}

/* Timeline */
.checkout-timeline {
    --timeline-line: #e5e7eb;
    --timeline-dot-1: #198754;
    --timeline-dot-2: #0070ba;
    --timeline-dot-3: #D1495B;
    position: relative;
    padding-left: 34px;
}

    .checkout-timeline::before {
        content: "";
        position: absolute;
        left: 15px;
        top: 8px;
        bottom: 8px;
        width: 2px;
        background: linear-gradient(180deg, #198754 0%, #0070ba 55%, #D1495B 100%);
        border-radius: 999px;
        opacity: 0.95;
    }

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
}

    .timeline-item:last-child {
        margin-bottom: 0;
    }

.timeline-dot {
    position: relative;
    z-index: 1;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.timeline-item.is-step-1 .timeline-dot {
    background: var(--timeline-dot-1);
}

.timeline-item.is-step-2 .timeline-dot {
    background: var(--timeline-dot-2);
}

.timeline-item.is-step-3 .timeline-dot {
    background: var(--timeline-dot-3);
}

.timeline-content {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

    .timeline-content .fw-semibold {
        margin-bottom: 4px;
        line-height: 1.25;
    }

    .timeline-content .text-muted {
        line-height: 1.55;
    }

.footer-founder {
    display: flex;
    gap: 12px;
    height: 100%;
}

.footer-founder__img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
}

.footer-founder__meta {
    flex: 1;
}


/* =========================
   Chi siamo
   ========================= */


.about-hero {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), .08), rgba(var(--accent-rgb), .08));
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.about-card {
    height: 100%;
}

.about-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.about-name {
    font-weight: 700;
    font-size: 1.4rem;
}

.about-role {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.about-text {
    line-height: 1.6;
}

/* =========================
   Cookie banner
   ========================= */

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .25s ease, transform .25s ease;
}

    .cookie-banner.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.cookie-banner__inner {
    max-width: 1080px;
    margin: 0 auto;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(var(--primary-rgb), .12);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(17, 24, 39, .18);
    padding: 1rem 1.1rem;
    backdrop-filter: blur(10px);
}

.cookie-banner__content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-banner__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #5B5FAE, #4FA3D1, #3FA7A3, #3FAE6A, #E6B84C, #D1495B, #C04C9B);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 12px 24px rgba(var(--primary-rgb), .18);
}

.cookie-banner__text {
    flex: 1;
    min-width: 0;
}

.cookie-banner__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.cookie-banner__desc {
    color: var(--text-muted);
    line-height: 1.6;
}

.cookie-banner__actions {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .cookie-banner__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.25rem;
    }

    .cookie-banner__content {
        flex: 1;
    }

    .cookie-banner__actions {
        margin-top: 0;
        flex-shrink: 0;
    }
}

@media (max-width: 575.98px) {
    .cookie-banner {
        left: .75rem;
        right: .75rem;
        bottom: .75rem;
    }

    .cookie-banner__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

        .cookie-banner__actions .btn {
            width: 100%;
        }
}

.footer-nap {
    padding: 1rem 1.1rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-xl);
}

.footer-nap__title {
    margin-bottom: .85rem;
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
    letter-spacing: .01em;
}

.footer-nap__item + .footer-nap__item {
    margin-top: .7rem;
    padding-top: .7rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-nap__label {
    display: block;
    margin-bottom: .15rem;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: rgba(255,255,255,.62);
}

.footer-nap__value {
    display: block;
    font-size: .92rem;
    line-height: 1.45;
    color: rgba(255,255,255,.92);
    word-break: break-word;
}

@media (max-width: 991.98px) {
    .footer-nap {
        margin-top: 1.25rem;
    }
}

.footer-list .nav-link {
    padding: 0;
    color: rgba(255,255,255,.85);
}

    .footer-list .nav-link:hover {
        color: #fff;
        text-decoration: underline;
    }

.home-article-card img {
    border-radius: var(--radius-xl);
}
/* MOBILE: card articoli */
@media (max-width: 767.98px) {

    .home-article-card img {
        width: 100%;
        max-width: 260px; /* evita immagini troppo larghe */
        aspect-ratio: 16 / 9; /* più schiacciata */
        object-fit: cover;
        margin: 0 auto;
        display: block;
        border-radius: var(--radius-xl);
    }

    .home-article-card h3 {
        font-size: 1rem; /* più grande */
        line-height: 1.3;
        margin-top: 8px;
        padding: 0 6px;
    }
}

.showcase-3col .showcase-detail-maincontent {
    max-width: 720px;
}

.showcase-detail-description p {
    margin-bottom: 0.75rem;
}

.showcase-detail-description button {
    font-size: 0.9rem;
}

.showcase-book-specs .spec-card {
    padding: 12px;
    border-radius: var(--radius-xl);
    background: rgba(0,0,0,.02);
    height: 100%;
}

.spec-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.spec-icon {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 6px;
    color: var(--primary);
}

.spec-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.desc-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 500px; /* stato chiuso */
    transition: max-height 0.35s ease;
}

    .desc-wrapper.expanded {
        max-height: 2000px; /* abbastanza grande */
    }

.desc-full {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.desc-wrapper.expanded .desc-full {
    opacity: 1;
}

.desc-wrapper:not(.expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--card-bg));
}
/* BASE */
.phub-link {
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* LINK PRINCIPALE (_self) */
.phub-link-primary {
    background: linear-gradient(135deg, #f5f7ff, #eef2ff);
    border: 1px solid rgba(90, 100, 255, 0.2);
    font-weight: 600;
    color: #1f2a44;
}

    .phub-link-primary:hover {
        background: linear-gradient(135deg, #e9edff, #e0e6ff);
    }

/* LINK SECONDARIO (_blank) */
.phub-link-secondary {
    color: #6c757d;
    font-size: 0.9rem;
    padding: 6px 0;
}

    .phub-link-secondary:hover {
        color: #000;
        text-decoration: underline;
    }

@media (max-width: 991px) {

    .showcase-3col {
        display: flex;
        flex-direction: column;
    }

        /* ordine corretto */
        .showcase-3col > div:nth-child(2) {
            order: 1;
        }
        /* titolo */
        .showcase-3col > div:nth-child(1) {
            order: 2;
        }
        /* immagini */
        .showcase-3col > div:nth-child(3) {
            order: 3;
        }
    /* sidebar */

    /* MA: riduciamo molto il blocco titolo */
    .showcase-detail-maincontent {
        margin-bottom: 8px;
    }

    .showcase-detail-description {
        margin-top: 5px;
    }
}

@media (max-width: 991px) {

    .showcase-detail-thumbs {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .showcase-detail-thumb {
        flex: 0 0 auto;
        width: 60px;
        height: 60px;
    }

        .showcase-detail-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
        }
}

@media (max-width: 991px) {

    .showcase-detail-maincontent {
        margin-bottom: 10px;
    }

    .showcase-detail-description {
        margin-top: 10px;
    }
}

@media (max-width: 991px) {

    /* wrapper più compatto */
    .desc-wrapper {
        max-height: none; /* disattiva il limite desktop */
    }

        /* clamp a 2 righe */
        .desc-wrapper:not(.expanded) #descShort {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

    /* nasconde completamente il full finché non espanso */
    .desc-full {
        display: none;
    }

    .desc-wrapper.expanded .desc-full {
        display: block;
    }

    /* riduce spazio verticale */
    .showcase-detail-description {
        margin-bottom: 10px;
    }
}

@media (max-width: 991px) {

    #descFull {
        display: none !important;
    }

    .desc-wrapper.expanded #descFull {
        display: block !important;
    }
}

@media (max-width: 991px) {

    .desc-wrapper {
        max-height: 60px;
    }
}

.showcase-detail-description {
    position: relative;
    z-index: 10;
}

.desc-wrapper:not(.expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--card-bg));
    pointer-events: none; /* FIX CRITICO */
}

.quiz-card {
    border: 0;
    border-radius: 20px;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

    .quiz-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.15);
    }
/* BASE */
.card-lbar-rainbow {
    position: relative;
    overflow: hidden;
}

    .card-lbar-rainbow::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 6px;
        height: 100%;
    }

/* VARIANTI ROTAZIONE */
.card-lbar-rb-1::before {
    background: #8C90E8;
}
/* indigo */
.card-lbar-rb-2::before {
    background: #7DC8F2;
}
/* azzurro */
.card-lbar-rb-3::before {
    background: #6FD4C8;
}
/* teal */
.card-lbar-rb-4::before {
    background: #78D98E;
}
/* verde */
.card-lbar-rb-5::before {
    background: #F4D67A;
}
/* giallo */
.card-lbar-rb-6::before {
    background: #F28A94;
}
/* rosso */
.card-lbar-rb-7::before {
    background: #E48CCB;
}
/* magenta */
