/* ============================================================
   FormLab - Stile principale
   Colori: Blu primario #0B6FBB | Verde accento #61CE70
   Font: Roboto
   ============================================================ */

/* Design token completi (fonte: .claude/skills/formlab-design/colors_and_type.css).
   site-formlab-it.css / site-formlab-v2.css li consumano: se un token manca il browser
   scarta la dichiarazione (es. footer senza sfondo → testo bianco su bianco). */
:root {
    /* -------- Brand: Blue -------- */
    --fl-blue:        #0B6FBB;   /* Primary */
    --fl-blue-dark:   #085A97;   /* Hover, gradient end */
    --fl-blue-light:  #1a8fd1;   /* Accents, gradient start (icons) */
    --fl-blue-darkest:#053d6b;   /* Hero gradient deep stop */

    /* -------- Brand: Green -------- */
    --fl-green:       #61CE70;   /* Accent / CTA secondary */
    --fl-green-dark:  #4dba5c;   /* Green hover */

    /* -------- Neutrals -------- */
    --fl-text:        #2d3748;   /* Body text */
    --fl-text-light:  #718096;   /* Muted text, meta */
    --fl-gray:        #f5f7fa;   /* Section background */
    --fl-border:      #e2e8f0;   /* Borders, dividers */
    --fl-white:       #ffffff;
    --fl-footer-bg:   #0d1b2a;   /* Footer dark */
    --fl-footer-bottom:#09131e;  /* Footer bottom strip */

    /* -------- Semantic surfaces -------- */
    --fl-bg-page:        var(--fl-white);
    --fl-bg-section:     var(--fl-gray);
    --fl-bg-card:        var(--fl-white);
    --fl-bg-cart-summary:var(--fl-gray);

    /* -------- Semantic text -------- */
    --fl-fg-1:           var(--fl-text);
    --fl-fg-2:           var(--fl-text-light);
    --fl-fg-link:        var(--fl-blue);
    --fl-fg-link-hover:  var(--fl-blue-dark);
    --fl-fg-on-primary:  #ffffff;
    --fl-fg-on-dark:     rgba(255,255,255,0.85);

    /* -------- Semantic state -------- */
    --fl-success:        var(--fl-green);
    --fl-success-bg:     rgba(97,206,112,0.10);
    --fl-success-fg:     #1a5c24;
    --fl-info:           var(--fl-blue);
    --fl-info-bg:        rgba(11,111,187,0.08);
    --fl-info-fg:        var(--fl-blue-dark);
    --fl-focus-ring:     rgba(11,111,187,0.15);

    /* -------- Gradients -------- */
    --fl-grad-hero:    linear-gradient(135deg, var(--fl-blue) 0%, var(--fl-blue-dark) 60%, var(--fl-blue-darkest) 100%);
    --fl-grad-cta:     linear-gradient(135deg, var(--fl-blue) 0%, var(--fl-blue-dark) 100%);
    --fl-grad-icon-blue: linear-gradient(135deg, var(--fl-blue) 0%, var(--fl-blue-light) 100%);
    --fl-grad-icon-green:linear-gradient(135deg, var(--fl-green-dark) 0%, var(--fl-green) 100%);
    --fl-grad-accent-bar:linear-gradient(to right, var(--fl-blue), var(--fl-green));

    /* -------- Typography -------- */
    --fl-font-sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --fl-fw-light:  300;
    --fl-fw-regular:400;
    --fl-fw-medium: 500;
    --fl-fw-semi:   600;   /* synthesized — Roboto skips 600; rendered via 500/700 fallback */
    --fl-fw-bold:   700;

    /* Type scale (pixel sizes; rem in semantic tokens below) */
    --fl-fs-display: 2.6rem;   /* hero title 41.6px */
    --fl-fs-h1:      2rem;     /* CTA title  32px */
    --fl-fs-h2:      1.9rem;   /* section title */
    --fl-fs-h3:      1.3rem;   /* form/admin titles */
    --fl-fs-h4:      1.15rem;  /* hero subtitle weight context */
    --fl-fs-h5:      1.1rem;   /* feature/blog/course titles */
    --fl-fs-body:    1rem;     /* base 16px */
    --fl-fs-meta:    0.88rem;  /* blog excerpt */
    --fl-fs-small:   0.85rem;  /* stats label, pills */
    --fl-fs-micro:   0.82rem;  /* topbar, badge */
    --fl-fs-caption: 0.75rem;  /* category overline */
    --fl-lh-tight:   1.2;
    --fl-lh-snug:    1.4;
    --fl-lh-normal:  1.6;
    --fl-tracking-up: 0.5px;     /* uppercase overlines */
    --fl-tracking-tight: -0.5px; /* logo wordmark */

    /* -------- Spacing (Bootstrap-aligned) -------- */
    --fl-space-1:  0.25rem;
    --fl-space-2:  0.5rem;
    --fl-space-3:  0.75rem;
    --fl-space-4:  1rem;
    --fl-space-5:  1.25rem;
    --fl-space-6:  1.5rem;
    --fl-space-8:  2rem;
    --fl-space-10: 2.5rem;
    --fl-space-12: 3rem;
    --fl-space-16: 4rem;     /* fl-section vertical rhythm */
    --fl-space-20: 5rem;     /* fl-hero top */

    /* -------- Radius -------- */
    --fl-radius-xs:  3px;     /* legal-link hover bg */
    --fl-radius-sm:  6px;     /* buttons */
    --fl-radius-md:  8px;     /* dropdown, alerts */
    --fl-radius-lg:  10px;    /* cart items, payment options */
    --fl-radius-xl:  12px;    /* cards, feature box */
    --fl-radius-2xl: 20px;    /* hero side panel */
    --fl-radius-pill:20px;    /* badge / pill */
    --fl-radius-full:9999px;

    /* -------- Borders -------- */
    --fl-border-1: 1px solid var(--fl-border);
    --fl-border-2: 2px solid var(--fl-border);

    /* -------- Shadows -------- */
    --fl-shadow-navbar:        0 2px 10px rgba(0,0,0,0.08);
    --fl-shadow-navbar-scroll: 0 4px 20px rgba(0,0,0,0.12);
    --fl-shadow-dropdown:      0 8px 24px rgba(0,0,0,0.12);
    --fl-shadow-card-hover:    0 8px 24px rgba(0,0,0,0.08);
    --fl-shadow-card-hover-lg: 0 8px 25px rgba(0,0,0,0.12);
    --fl-shadow-blog-hover:    0 8px 24px rgba(0,0,0,0.10);
    --fl-shadow-course-hover:  0 12px 32px rgba(11,111,187,0.15); /* tinted */

    /* -------- Motion -------- */
    --fl-ease:       ease;
    --fl-dur-fast:   0.1s;   /* press translateY */
    --fl-dur-base:   0.2s;   /* color, bg */
    --fl-dur-slow:   0.25s;  /* card hover */
    --fl-lift:       translateY(-1px); /* button hover */
    --fl-lift-card:  translateY(-3px); /* blog card */
    --fl-lift-card-lg: translateY(-4px); /* course / area card */
}

* { box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--fl-text);
    background-color: var(--fl-white);
}

a { color: var(--fl-blue); text-decoration: none; }
a:hover { color: var(--fl-blue-dark); text-decoration: none; }

/* Link legali / privacy — sempre ben visibili */
.fl-legal-link {
    color: var(--fl-blue);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-style: solid;
    text-underline-offset: 2px;
    text-decoration-thickness: 1.5px;
    transition: color .2s, background-color .2s;
}
.fl-legal-link:hover {
    color: var(--fl-white);
    background-color: var(--fl-blue);
    border-radius: 3px;
    padding: 0 3px;
    margin: 0 -3px;
    text-decoration: none;
}
.fl-legal-link::after {
    content: "\F1C5";               /* bi-box-arrow-up-right */
    font-family: "bootstrap-icons";
    font-size: .7em;
    margin-left: 3px;
    vertical-align: super;
    opacity: .65;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.fl-topbar {
    background-color: var(--fl-blue-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
}
.fl-topbar a {
    color: rgba(255,255,255,0.85);
    transition: color 0.2s;
}
.fl-topbar a:hover { color: #fff; }
.fl-topbar .btn-link { color: rgba(255,255,255,0.85); font-size: 0.82rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.fl-navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 0.5rem 0;
}
.fl-navbar .navbar-brand { padding: 0; }
.fl-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--fl-blue);
    letter-spacing: -0.5px;
}
.fl-navbar .nav-link {
    color: var(--fl-text) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.6rem 0.9rem !important;
    transition: color 0.2s;
}
.fl-navbar .nav-link:hover,
.fl-navbar .nav-link.active {
    color: var(--fl-blue) !important;
}
.fl-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 8px;
}
.fl-navbar .dropdown-item { font-size: 0.9rem; padding: 0.5rem 1.2rem; }
.fl-navbar .dropdown-item:hover { background-color: var(--fl-gray); color: var(--fl-blue); }

/* ============================================================
   BUTTONS
   ============================================================ */
.fl-btn-primary {
    background-color: var(--fl-blue);
    color: #fff !important;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s, transform 0.1s;
}
.fl-btn-primary:hover {
    background-color: var(--fl-blue-dark);
    color: #fff !important;
    transform: translateY(-1px);
}
.fl-btn-green {
    background-color: var(--fl-green);
    color: #fff !important;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s, transform 0.1s;
}
.fl-btn-green:hover {
    background-color: var(--fl-green-dark);
    transform: translateY(-1px);
}
.fl-btn-outline {
    background: transparent;
    border: 2px solid var(--fl-blue);
    color: var(--fl-blue) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.fl-btn-outline:hover {
    background-color: var(--fl-blue);
    color: #fff !important;
}
.fl-btn-cart {
    background: transparent;
    border: none;
    color: var(--fl-text);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: color 0.2s;
}
.fl-btn-cart:hover { color: var(--fl-blue); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.fl-hero {
    background: linear-gradient(135deg, var(--fl-blue) 0%, var(--fl-blue-dark) 60%, #053d6b 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.fl-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.fl-hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.fl-hero-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
}
.fl-hero-badge {
    display: inline-block;
    background: rgba(97,206,112,0.2);
    border: 1px solid var(--fl-green);
    color: var(--fl-green);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.fl-stats {
    background-color: var(--fl-blue);
    color: #fff;
    padding: 1.5rem 0;
}
.fl-stat-item { text-align: center; }
.fl-stat-number { font-size: 2rem; font-weight: 700; color: var(--fl-green); }
.fl-stat-label { font-size: 0.85rem; opacity: 0.85; }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.fl-section { padding: 4rem 0; }
.fl-section-gray { background-color: var(--fl-gray); }
.fl-section-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--fl-text);
    margin-bottom: 0.5rem;
}
.fl-section-subtitle {
    color: var(--fl-text-light);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}
.fl-section-title-accent {
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, var(--fl-blue), var(--fl-green));
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* ============================================================
   CORSO CARD
   ============================================================ */
.fl-course-card {
    background: #fff;
    border: 1px solid var(--fl-border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.fl-course-card:hover {
    box-shadow: 0 12px 32px rgba(11,111,187,0.15);
    transform: translateY(-4px);
}
.fl-course-img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}
.fl-course-img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--fl-blue) 0%, var(--fl-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 3rem;
}
/* Default catalogo: logo aziendale su fondo neutro quando il corso non ha immagine */
.fl-course-img-placeholder-logo {
    background: var(--fl-bg-section, #f4f6f8);
}
.fl-course-img-placeholder-logo img {
    width: 55%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
}
.fl-course-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.fl-course-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fl-blue);
    margin-bottom: 0.4rem;
}
.fl-course-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fl-text);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}
.fl-course-meta {
    font-size: 0.82rem;
    color: var(--fl-text-light);
    margin-bottom: 0.5rem;
}
.fl-course-meta i { margin-right: 4px; }
.fl-course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--fl-border);
}
.fl-course-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fl-blue);
}
.fl-course-price-free { color: var(--fl-green); }

/* ============================================================
   CATEGORY PILLS
   ============================================================ */
.fl-category-pill {
    display: inline-block;
    background: var(--fl-gray);
    border: 1px solid var(--fl-border);
    color: var(--fl-text);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.fl-category-pill:hover,
.fl-category-pill.active {
    background-color: var(--fl-blue);
    border-color: var(--fl-blue);
    color: #fff;
}

/* ============================================================
   FEATURE BOXES
   ============================================================ */
.fl-feature-box {
    background: #fff;
    border: 1px solid var(--fl-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: box-shadow 0.2s;
}
.fl-feature-box:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.fl-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--fl-blue) 0%, var(--fl-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    margin: 0 auto 1.2rem;
}
.fl-feature-icon.green {
    background: linear-gradient(135deg, var(--fl-green-dark) 0%, var(--fl-green) 100%);
}

/* Accent helper per testo "verde" su sfondi scuri (hero, CTA, banner).
   Default = stesso verde del brand. Le skin che usano un verde scuro su
   palette dark devono sovrascrivere questa classe con un verde piu chiaro. */
.fl-accent-on-dark { color: var(--fl-green); }

/* Category modifier — baseline (skin default).
   Le skin possono sovrascrivere con palette dedicata (es. skin-a). */
.fl-feature-icon.cat-sicurezza,
.fl-area-icon.cat-sicurezza,
.fl-feature-icon.cat-haccp,
.fl-area-icon.cat-haccp,
.fl-feature-icon.cat-lingue,
.fl-area-icon.cat-lingue {
    background: linear-gradient(135deg, var(--fl-blue) 0%, var(--fl-blue-light) 100%);
}
.fl-feature-icon.cat-ecm,
.fl-area-icon.cat-ecm,
.fl-feature-icon.cat-sviluppo,
.fl-area-icon.cat-sviluppo,
.fl-feature-icon.cat-finanziata,
.fl-area-icon.cat-finanziata {
    background: linear-gradient(135deg, var(--fl-green-dark) 0%, var(--fl-green) 100%);
}

.fl-feature-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.fl-feature-desc { font-size: 0.9rem; color: var(--fl-text-light); }

/* ============================================================
   BANNER / CTA SECTION
   ============================================================ */
.fl-cta-section {
    background: linear-gradient(135deg, var(--fl-blue) 0%, var(--fl-blue-dark) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.fl-cta-title { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.fl-cta-desc { font-size: 1.05rem; opacity: 0.9; margin-bottom: 2rem; }

/* ============================================================
   CARRELLO / CHECKOUT
   ============================================================ */
.fl-cart-item {
    background: #fff;
    border: 1px solid var(--fl-border);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fl-cart-item-title { font-weight: 600; margin-bottom: 0.2rem; }
.fl-cart-item-meta { font-size: 0.85rem; color: var(--fl-text-light); }
.fl-cart-summary {
    background: var(--fl-gray);
    border-radius: 12px;
    padding: 1.5rem;
}
.fl-payment-option {
    border: 2px solid var(--fl-border);
    border-radius: 10px;
    padding: 1.2rem;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    margin-bottom: 1rem;
}
.fl-payment-option:hover { border-color: var(--fl-blue); background: rgba(11,111,187,0.04); }
.fl-payment-option.selected { border-color: var(--fl-blue); background: rgba(11,111,187,0.07); }
.fl-payment-option label { cursor: pointer; }
.fl-payment-logo { height: 28px; }

/* ============================================================
   FORM STYLES
   ============================================================ */
.fl-form-section {
    background: #fff;
    border: 1px solid var(--fl-border);
    border-radius: 12px;
    padding: 2rem;
}
.fl-form-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--fl-blue); }
.form-control:focus, .form-select:focus {
    border-color: var(--fl-blue);
    box-shadow: 0 0 0 3px rgba(11,111,187,0.15);
}
.form-label { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.3rem; }

/* ============================================================
   BLOG
   ============================================================ */
.fl-blog-card {
    background: #fff;
    border: 1px solid var(--fl-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}
.fl-blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-3px); }
.fl-blog-img { height: 200px; object-fit: cover; width: 100%; }
.fl-blog-body { padding: 1.3rem; flex: 1; }
.fl-blog-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--fl-blue);
    margin-bottom: 0.5rem;
}
.fl-blog-title { font-size: 1.05rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.7rem; }
.fl-blog-excerpt { font-size: 0.88rem; color: var(--fl-text-light); }
.fl-blog-date { font-size: 0.8rem; color: var(--fl-text-light); margin-top: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.fl-footer { background-color: #0d1b2a; color: rgba(255,255,255,0.8); }
.fl-footer-main { border-bottom: 1px solid rgba(255,255,255,0.1); }
.fl-footer-logo-text { font-size: 1.5rem; font-weight: 700; color: #fff; }
.fl-footer-desc { font-size: 0.88rem; line-height: 1.6; }
.fl-footer-heading {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.fl-footer-links { margin: 0; }
.fl-footer-links li { margin-bottom: 0.5rem; }
.fl-footer-links a { color: rgba(255,255,255,0.7); font-size: 0.88rem; transition: color 0.2s; }
.fl-footer-links a:hover { color: var(--fl-green); }
.fl-footer-contact { margin: 0; }
.fl-footer-contact li { display: flex; align-items: flex-start; margin-bottom: 0.6rem; font-size: 0.88rem; }
.fl-footer-contact a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.fl-footer-contact a:hover { color: var(--fl-green); }
.fl-footer-bottom { background-color: #09131e; color: rgba(255,255,255,0.5); font-size: 0.82rem; }
.fl-footer-bottom a { color: rgba(255,255,255,0.6); }
.fl-footer-bottom a:hover { color: var(--fl-green); }
.fl-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-right: 8px;
    transition: background-color 0.2s, color 0.2s;
}
.fl-social-links a:hover { background-color: var(--fl-blue); color: #fff; }
.fl-badge-cert {
    background: rgba(11,111,187,0.3);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(11,111,187,0.5);
    font-weight: 400;
    font-size: 0.75rem;
}

/* ============================================================
   ADMIN
   ============================================================ */
.fl-admin-sidebar {
    background: var(--fl-text);
    padding: 0;
    /* Sticky + scroll indipendente dal contenuto principale. */
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    align-self: flex-start;
}
/* Scrollbar slim per non distrarre. */
.fl-admin-sidebar::-webkit-scrollbar { width: 6px; }
.fl-admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 3px; }
.fl-admin-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.32); }
.fl-admin-sidebar { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }
.fl-admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 2px;
    font-size: 0.92rem;
}
.fl-admin-sidebar .nav-link:hover,
.fl-admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.fl-admin-sidebar .nav-link i { margin-right: 8px; width: 18px; }

/* Titoli sezione sidebar admin (raggruppamento funzionale). */
.fl-admin-sidebar .nav-section-title {
    color: rgba(255,255,255,0.45);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 18px 1.2rem 6px 1.2rem;
    margin: 0;
    user-select: none;
}

/* ============================================================
   ALERTS / TOASTS
   ============================================================ */
.fl-alert-success {
    background: rgba(97,206,112,0.1);
    border: 1px solid var(--fl-green);
    border-radius: 8px;
    color: #1a5c24;
    padding: 1rem 1.2rem;
}
.fl-alert-info {
    background: rgba(11,111,187,0.08);
    border: 1px solid var(--fl-blue);
    border-radius: 8px;
    color: var(--fl-blue-dark);
    padding: 1rem 1.2rem;
}

/* ============================================================
   AREE FORMATIVE
   ============================================================ */
.fl-area-card {
    transition: transform .2s, box-shadow .2s;
    border-radius: 12px;
}
.fl-area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,.12) !important;
}
.fl-area-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
}
.fl-area-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fl-area-list li {
    padding: 5px 0;
    padding-left: 18px;
    position: relative;
    font-size: .9rem;
    color: var(--fl-text-light);
    line-height: 1.4;
}
.fl-area-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fl-blue);
    opacity: .5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .fl-hero-title { font-size: 1.8rem; }
    .fl-hero { padding: 3rem 0 2.5rem; }
    .fl-section { padding: 2.5rem 0; }
    .fl-stat-number { font-size: 1.5rem; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-fl-blue { color: var(--fl-blue) !important; }
.text-fl-green { color: var(--fl-green) !important; }
.bg-fl-blue { background-color: var(--fl-blue) !important; }
.bg-fl-green { background-color: var(--fl-green) !important; }
.bg-fl-gray { background-color: var(--fl-gray) !important; }
.border-fl { border-color: var(--fl-border) !important; }
.rounded-fl { border-radius: 12px !important; }

/* ============================================================
   COOKIE BANNER (GDPR consent — tracking-consent.js)
   ============================================================ */
.fl-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080; /* sopra il navbar sticky-top (1020), sotto modali (1055) */
    background: #ffffff;
    border-top: 3px solid var(--fl-blue);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.12);
    padding: 1rem 0;
    display: none;
}
.fl-cookie-banner.is-visible { display: block; }
.fl-cookie-banner .btn { white-space: nowrap; }
@media (max-width: 991.98px) {
    .fl-cookie-banner { padding: 0.75rem 0; }
}

/* ===== Widget ricerca corsi (home hero + catalogo) ===== */
.fl-search-widget { position: relative; max-width: 640px; }

.fl-search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--fl-white);
    border: 1px solid var(--fl-border);
    border-radius: 12px;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease;
}
.fl-search-box:focus-within {
    box-shadow: 0 0 0 4px rgba(11, 111, 187, 0.15), 0 8px 24px rgba(0, 0, 0, 0.12);
}
.fl-search-box > .bi-search { color: var(--fl-text-light); font-size: 1.05rem; }
.fl-search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--fl-text);
    font-size: 1rem;
    padding: 0.55rem 0;
}
.fl-search-box input::placeholder { color: var(--fl-text-light); }
.fl-search-box .btn { border-radius: 8px; white-space: nowrap; }

.fl-search-suggest {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--fl-white);
    border: 1px solid var(--fl-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 420px;
    overflow-y: auto;
    text-align: left;
}
.fl-suggest-group {
    padding: 0.55rem 1rem 0.25rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--fl-text-light);
}
.fl-suggest-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    color: var(--fl-text);
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.fl-suggest-item i { color: var(--fl-blue); flex: 0 0 auto; }
.fl-suggest-item .dettaglio {
    margin-left: auto;
    padding-left: 0.75rem;
    color: var(--fl-text-light);
    font-size: 0.8rem;
    white-space: nowrap;
}
.fl-suggest-item:hover,
.fl-suggest-item.active { background: rgba(11, 111, 187, 0.07); color: var(--fl-blue); }
.fl-suggest-item mark {
    padding: 0;
    border-radius: 2px;
    background: rgba(97, 206, 112, 0.25);
    color: inherit;
}
.fl-suggest-empty { padding: 0.75rem 1rem; color: var(--fl-text-light); font-size: 0.9rem; }

/* ============================================================
   Utility brand (audit 2026-07): classi per gli stili inline
   ricorrenti, agganciate alle variabili :root.
   ============================================================ */
.text-fl-blue { color: var(--fl-blue); }
.text-fl-green { color: var(--fl-green); }
.bg-fl-blue { background-color: var(--fl-blue); }
.bg-fl-green { background-color: var(--fl-green); }

/* Cerchi numerati degli step (es. istruzioni bonifico) */
.fl-step-badge,
.fl-step-badge-green {
    width: 36px;
    height: 36px;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
}
.fl-step-badge { background: var(--fl-blue); }
.fl-step-badge-green { background: var(--fl-green); }

/* Box informativi (checkout, form anagrafiche) */
.fl-box-light { background: #f8f9fa; border: 1px solid #e7e7e7; }
.fl-box-warning { background: #fff8e1; border: 1px solid #ffc107; }
.fl-box-info { background: #f5f9ff; border: 1px solid #d9e6fa; }
.fl-box-success { background: #e8f5e9; border: 1.5px solid var(--fl-green); border-radius: 10px; }
