.fp-wrapper, .fp-profile-container { max-width: 1400px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #333; }
.hidden { display: none !important; }
.fp-header-alert-wrap { position: relative; display: inline-block; }
.fp-alert-text { color: #B71C1C; font-weight: bold; cursor: pointer; }
.fp-alert-dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.15); min-width: 220px; z-index: 10000; border-radius: 8px; padding: 10px 0; }
.fp-header-alert-wrap:hover .fp-alert-dropdown { display: block; }
.fp-alert-dropdown a { display: block; padding: 10px 20px; text-decoration: none; color: #333; font-size: 14px; border-bottom: 1px solid #f5f5f5; transition: 0.2s; }
.fp-alert-dropdown a:hover { background: #f9f9f9; color: #B71C1C; padding-left: 25px; }
.fp-alert-dropdown a:last-child { border-bottom: none; }
.fp-menu-badge { position: absolute; z-index: 9999; left: 28px; top: -8px; background: #B71C1C; color: #fff; width: 18px; height: 18px; border-radius: 50%; text-align: center; font-size: 10px; font-weight: bold; line-height: 18px; cursor: pointer; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
li.icon-notification, li.icon-signal-2, li.icon-megaphone-light, li.icon-newspaper, li.icon-document { position: relative !important; overflow: visible !important; }
li.icon-notification > a, li.icon-signal-2 > a, li.icon-megaphone-light > a, li.icon-newspaper > a, li.icon-document > a { position: relative !important; }
.fp-highlights-section { margin-bottom: 40px; }
.fp-hl-title { font-size: 22px; margin-bottom: 20px; border-left: 5px solid #B71C1C; padding-left: 15px; color: #333; font-weight: 700; }
.fp-notifiche-list { display: flex; flex-direction: column; gap: 15px; }
.fp-notifica-row { display: flex; align-items: center; gap: 25px; background: #fff; padding: 20px; border: 1px solid #eee; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: 0.2s; }
.fp-notifica-row:hover { border-color: #B71C1C; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.fp-notifica-row.mini { padding: 15px; border: 1px solid #e0e0e0; } 
.fp-notifica-logo { width: 80px; height: 80px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #f9f9f9; border-radius: 8px; padding: 5px; }
.fp-notifica-logo.small { width: 50px; height: 50px; }
.fp-notifica-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fp-notifica-content { flex: 1; }
.fp-notifica-content h4 { margin: 0 0 5px 0; font-size: 18px; color: #B71C1C; font-weight: bold; }
.fp-notifica-content p { margin: 0 0 5px 0; font-size: 15px; color: #333; font-weight: 600; }
.fp-notifica-content small { color: #888; font-size: 13px; }
.fp-notifica-action { flex-shrink: 0; }
.fp-divider { border: 0; height: 1px; background: #ddd; margin: 40px 0; }
.fp-toolbar { display: flex; justify-content: space-between; background: #fff; padding: 15px; border: 1px solid #eee; margin-bottom: 25px; align-items: center; flex-wrap: wrap; gap: 15px; border-radius: 8px; }
.fp-search-wrap { display: flex; align-items: center; background: #f9f9f9; padding: 0 10px; border-radius: 4px; border: 1px solid #ddd; flex: 1; max-width: 500px; width: 100%; }
.fp-search { border: none !important; background: transparent !important; width: 100%; outline: none; padding: 10px !important; }
.fp-clear-search { cursor: pointer; color: #999; font-weight: bold; font-size: 18px; display: none; }
.fp-filters-group { display: flex; align-items: center; gap: 15px; margin-left: auto; flex-wrap: nowrap; }
.fp-grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.fp-modern-card { background: #fff; padding: 20px; border: 1px solid #eee; border-radius: 8px; display: flex; gap: 15px; align-items: flex-start; }
.fp-modern-card.center { flex-direction: column; align-items: center; text-align: center; }
.fp-modern-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-color: #B71C1C; }
.fp-mc-icon-circle { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: #f9f9f9; border-radius: 50%; margin-bottom: 10px; }
.fp-mc-icon-circle img { width: 50px; height: 50px; object-fit: contain; }
.fp-mc-body { flex: 1; width: 100%; }
.fp-mc-title { margin: 0 0 10px 0; font-size: 18px; font-weight: bold; color: #333; }
.fp-mc-meta { font-size: 12px; color: #777; margin-bottom: 10px; font-weight: 500; }
.fp-mc-desc { font-size: 14px; color: #555; line-height: 1.5; }
.fp-download-btn { display: inline-block; padding: 10px 20px; background: #fff; border: 1px solid #B71C1C; color: #B71C1C; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 13px; white-space: nowrap; transition: all 0.2s; }
.fp-download-btn:hover { background: #B71C1C; color: #fff; border-color: #B71C1C; }
.fp-download-btn.small { padding: 6px 14px; font-size: 12px; }
.fp-load-more { display: block; margin: 30px auto; padding: 12px 40px; background: #B71C1C; color: #fff; border: none; border-radius: 30px; cursor: pointer; font-size: 16px; font-weight: bold; }
.fp-profile-header { display: grid; grid-template-columns: 180px 1fr 260px; gap: 30px; background: #fff; padding: 30px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 30px; align-items: start; }
.fp-ph-logo img { width: 100%; height: auto; border-radius: 8px; border: 1px solid #eee; padding: 5px; }
.fp-ph-info h1 { margin: 0 0 15px 0; color: #B71C1C; font-size: 32px; }
.fp-ph-info p { line-height: 1.6; color: #555; font-size: 15px; }
.fp-ph-info i { color: #B71C1C; margin-right: 5px; width: 20px; text-align: center; }
.fp-ph-weights { background: #B71C1C; color: #fff; border-radius: 8px; padding: 25px; text-align: center; max-height: 400px; overflow-y: auto; }
.fp-ph-weights::-webkit-scrollbar { width: 6px; }
.fp-ph-weights::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); }
.fp-ph-weights::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.4); border-radius: 3px; }
.fp-w-title { font-weight: bold; color: #fff; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 5px; font-size: 18px; text-transform: uppercase; letter-spacing: 1px; }
.fp-w-item { margin-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,0.2); padding-bottom: 8px; }
.fp-w-val { display: block; font-size: 24px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 2px; }
.fp-w-lbl { font-size: 14px; color: #f0f0f0; }
.fp-box-section { background: #fcfcfc; border: 1px solid #e5e5e5; padding: 25px; border-radius: 8px; margin-bottom: 30px; }
.fp-sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.fp-sec-head h3 { margin: 0; color: #333; font-size: 22px; border-left: 5px solid #B71C1C; padding-left: 12px; }
.fp-filters-right { display: flex; gap: 15px; align-items: center; margin-left: auto; }
.fp-acc-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.fp-acc-item { flex: 1 1 180px; background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: space-between; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.fp-acc-item:hover { border-color: #B71C1C; box-shadow: 0 5px 15px rgba(183, 28, 28, 0.15); transform: translateY(-3px); }
.fp-acc-item img { height: 60px; width: auto; margin-bottom: 15px; }
.fp-acc-item span { display: block; font-weight: bold; margin-bottom: 15px; font-size: 15px; line-height: 1.2; }
.fp-select { width: 100%; border: 1px solid #ddd; padding: 6px; font-size: 13px; border-radius: 4px; }
.fp-split-box { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.fp-list-item { background: #fff; border: 1px solid #eee; padding: 20px; border-radius: 8px; display: flex; gap: 20px; margin-bottom: 15px; align-items: center; transition: 0.2s; }
.fp-list-item:hover { border-color: #B71C1C; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.fp-li-icon img { width: 50px; height: 50px; }
.fp-li-info { flex: 1; }
.fp-li-info strong { display: block; color: #333; margin-bottom: 5px; font-size: 16px; }
.fp-li-info small { color: #888; display: block; margin-bottom: 5px; font-size: 13px; }
.fp-li-info p { margin: 0; font-size: 14px; color: #555; }
.fp-pill-filter { display: flex; gap: 15px; }
.fp-pill-filter button { padding: 6px 18px; border: 1px solid #ccc; background: #fff; border-radius: 20px; cursor: pointer; font-size: 14px; transition: 0.2s; white-space: nowrap; }
.fp-pill-filter button.active { background: #B71C1C; color: #fff; border-color: #B71C1C; }
.fp-local-sort { padding: 6px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; }
@media (max-width: 768px) {
    .fp-profile-header { grid-template-columns: 1fr; text-align: center; }
    .fp-ph-info { order: 2; } .fp-ph-logo { order: 1; margin: 0 auto; } .fp-ph-weights { order: 3; margin-top: 15px; }
    .fp-split-box { grid-template-columns: 1fr; }
    .fp-toolbar { flex-direction: column; align-items: stretch; }
    .fp-search-wrap { max-width: 100%; }
    .fp-filters-group { flex-direction: column; align-items: stretch; margin-left: 0; }
    .fp-notifica-row { flex-direction: column; text-align: center; }
    .fp-notifica-action { width: 100%; margin-top: 15px; }
    .fp-notifica-action a { display: block; text-align: center; }
}

/* --- FIX MOBILE FORNITORI PRO --- */
@media only screen and (max-width: 768px) {
    
    /* 1. Manda a capo le due colonne (Promozioni/Comunicazioni) */
    .fp-split-box {
        display: block !important;
        width: 100% !important;
    }

    /* 2. Assicura che i box interni non siano più larghi dello schermo */
    .fp-box-section {
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding: 15px !important; /* Un po' di padding per non attaccarsi ai bordi */
        box-sizing: border-box;
    }

    /* 3. Gestione della riga singola (Icona - Testo - Bottone) */
    .fp-list-item {
        display: flex;
        flex-direction: column; /* Impila gli elementi uno sotto l'altro */
        width: 100% !important;
        box-sizing: border-box;
        overflow: hidden; /* Taglia eventuali eccessi */
    }

    /* 4. Fix per il testo che spinge fuori il box */
    .fp-li-info {
        width: 100% !important;
        min-width: 0; /* Trucco fondamentale per far funzionare il wrap del testo */
        padding-right: 0 !important;
        margin-bottom: 10px;
    }

    /* 5. Bottone a larghezza piena per essere cliccabile meglio */
    .fp-list-item .fp-download-btn {
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }

    /* 6. Header della sezione (Titolo e Filtri) */
    .fp-sec-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .fp-filters-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}