
	
	









/* Contatori (.count) dei menu BuddyPress: sempre sfondo #09264a e testo bianco,
   a riposo, hover, focus, attivo/corrente, PC e cellulare */
html body #buddypress .bp-navs ul li .count,
html body #buddypress .bp-navs ul li a .count,
html body #buddypress .bp-navs ul li a:hover .count,
html body #buddypress .bp-navs ul li a:focus .count,
html body #buddypress .bp-navs ul li a:active .count,
html body #buddypress .bp-navs ul li:hover .count,
html body #buddypress .bp-navs ul li.current .count,
html body #buddypress .bp-navs ul li.current a .count,
html body #buddypress .bp-navs ul li.selected .count,
html body #buddypress .bp-navs ul li.selected a .count,
html body #buddypress .bp-navs ul li.dynamic .count,
html body #buddypress .bp-navs ul li.dynamic a .count,
html body #buddypress .bp-navs ul li.dynamic a:hover .count,
html body #buddypress .bp-navs ul li.dynamic.current a .count,
html body #buddypress .bp-navs ul li.dynamic.selected a .count,
html body .buddypress-wrap .bp-navs ul li .count,
html body .buddypress-wrap .bp-navs li.dynamic a .count,
html body .buddypress-wrap .bp-navs li.dynamic a:hover .count,
html body .buddypress-wrap .bp-navs li.dynamic.current a .count,
html body .buddypress-wrap .bp-navs li.dynamic.selected a .count,
html body .buddypress-wrap .bp-navs li.current a .count,
html body .buddypress-wrap .bp-navs li.selected a .count,
html body .buddypress-wrap .bp-subnavs li a .count,
html body .buddypress-wrap .bp-subnavs li.current a .count,
html body .buddypress-wrap .bp-subnavs li.selected a .count,
html body.buddypress .bp-navs li a .count,
html body.buddypress .bp-navs li.current a .count,
html body.buddypress .bp-navs li.selected a .count,
html body.buddypress .item-list-tabs ul li a .count,
html body.buddypress .item-list-tabs ul li.current a .count,
html body.buddypress .item-list-tabs ul li.selected a .count {
    background-color: #09264a !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;}



/* ============================================================
   WIDGET BUDDYPRESS (Members / Groups): 
   Il link attivo nella barra dei filtri diventa GIALLO
   ============================================================ */

/* 1. Forza il colore giallo sul link con classe .selected */
body .widget_bp_core_members_widget .item-options a.selected,
body .widget_bp_groups_widget .item-options a.selected {
    color: #f49b00 !important;}

/* 2. Colore giallo anche per il separatore "|" accanto al link attivo 
   (opzionale, se vuoi che tutta la voce attiva sia gialla) */
body .widget_bp_core_members_widget .item-options a.selected + .bp-separator,
body .widget_bp_groups_widget .item-options a.selected + .bp-separator {
    color: #f49b00 !important;}

/* 3. Assicura che il link attivo NON diventi giallo se ci passi sopra 
   (opzionale: se vuoi che resti giallo anche in hover, altrimenti togli questo blocco) */
body .widget_bp_core_members_widget .item-options a.selected:hover,
body .widget_bp_groups_widget .item-options a.selected:hover {
    color: #f49b00 !important;}




/* ============================================================
   MENU MOBILE (SOLO SU SCHERMI FINO A 767px)
   ============================================================ */
@media screen and (max-width: 767px) {

    /* 0) Bordo esterno di 2px su tutto il contenitore del menu mobile.
          Scorre se il menu è più alto dello schermo (telefono in orizzontale):
          il secondo selettore batte in specificità la regola globale
          "overflow: visible" (pensata per i sottomenu desktop) in fondo al file. */
    .primary-menu-container,
    nav#site-navigation .primary-menu-container {
        border: 2px solid #16181D !important;
        box-sizing: border-box !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;  }

    /* 1) Blocco in alto: sfondo del menu e linea divisoria scura */
    .primary-menu-container .mobile-menu-heading.bx-mobile-only {
        background-color: var(--color-header-bg) !important;
        color: var(--bx-color-menu-fg) !important;
        margin: 0 !important;
        padding: 16px 20px !important;
        border: 0 !important;
        border-bottom: 2px solid #16181D !important;
        box-sizing: border-box !important; }

    /* Titolo "Menu" e link "Chiudi" nell header */
    .primary-menu-container .mobile-menu-heading.bx-mobile-only .menu-title,
    .primary-menu-container .mobile-menu-heading.bx-mobile-only .menu-close {
        color: var(--bx-color-menu-fg) !important;
        margin: 0 !important;}

    /* 2) Blocco utente: 10px sopra l avatar e allineamento al centro */
    .primary-menu-container .buddyx-mobile-user.bx-mobile-only {
        border-top: 0 !important;
        margin-top: 0 !important;
        padding-top: 10px !important; }

    /* Forza allineamento verticale al centro tra avatar, testi e Logout */
    .primary-menu-container .buddyx-mobile-user.bx-mobile-only .user-wrap {
        display: flex !important;
        align-items: center !important;
    }

    /* 10px di spazio tra "ValoraComics" e "My Account" */
    .primary-menu-container .buddyx-mobile-user.bx-mobile-only .user-wrap .user-name {
        display: block !important;
        margin-bottom: 10px !important;}

    /* 3) L <hr> esistente: linea scura identica a quella dell header */
    .primary-menu-container .buddyx-mobile-user.bx-mobile-only > hr {
        border: 0 !important;
        border-top: 2px solid #16181D !important;
        margin: 16px 0 0 0 !important;
        height: 0 !important;
        background: transparent !important;}

    /* 4) Pulsante Logout: bordo scuro, raggio 20px e hover giallo */
    .primary-menu-container .buddyx-mobile-user.bx-mobile-only .mobile-logout {
        border: 1px solid #16181D !important;
        border-radius: 20px !important;
        color: #ffffff !important;
        background: transparent !important;
        padding: 10px 10px !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;    }

    .primary-menu-container .buddyx-mobile-user.bx-mobile-only .mobile-logout:hover {
        color: #f49b00 !important;
        border-color: #f49b00 !important;    }

    /* 5) Link del menu: colore bianco di base per tutti */
    .primary-menu-container ul#primary-menu li a {
        color: #ffffff !important;
    }

    /* Hover giallo per TUTTI i link, anche quelli attivi */
    .primary-menu-container ul#primary-menu li > a:hover,
    .primary-menu-container ul#primary-menu li > a:focus {
        color: #f49b00 !important;}
}

/* 5) Link del menu: colore bianco di base per tutti */
.primary-menu-container ul#primary-menu li a {
    color: #ffffff !important;}

/* Hover giallo per TUTTI i link, anche quelli attivi */
.primary-menu-container ul#primary-menu li > a:hover,
.primary-menu-container ul#primary-menu li > a:focus {
    color: #f49b00 !important;}
	
	


/* ============================================================
   VOCI ATTIVE DEL MENU (PC E MOBILE): SEMPRE BIANCHE
   ============================================================ */
.primary-menu-container ul#primary-menu li.current_page_item > a,
.primary-menu-container ul#primary-menu li.current_page_item > a:hover,
.primary-menu-container ul#primary-menu li.current_page_item > a:focus,
.primary-menu-container ul#primary-menu li.current-menu-item > a,
.primary-menu-container ul#primary-menu li.current-menu-item > a:hover,
.primary-menu-container ul#primary-menu li.current-menu-item > a:focus {
    color: #ffffff !important;}




/* ============================================================
   CITAZIONI — BLOCKQUOTE NEGLI ARTICOLI
   ============================================================ */
blockquote {
    position: relative !important;
	border: 1px solid #ddd;
    border-radius: 8px !important;
    overflow: visible !important;
    margin: 2rem auto !important;}

/* Spazio reale sotto la virgoletta sx: margine sul primo figlio */
blockquote > :first-child {
	margin: 15px !important;	}

/* Virgolette ALTO-SX — viola #7b5aa3 */
blockquote::before {
    content: "\201C" !important;
    position: absolute !important;
    top: 0.5rem !important;
    left: 0.5rem !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 4.6rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    color: #7b5aa3 !important;
    pointer-events: none !important;
    user-select: none !important;}

/* Virgolette BASSO-DX — arancione #f49b00, ruotate 180° */
blockquote::after {
    content: "\201C" !important;
    position: absolute !important;
    bottom: 0.5rem !important;
    right: 0.5rem !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 4.6rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    color: #f49b00 !important;
    transform: rotate(180deg) !important;
    transform-origin: center !important;
    pointer-events: none !important;
    user-select: none !important;}




/* ============================================================
   TABELLE NEGLI ARTICOLI
   ============================================================ */
table {
  margin-bottom: 10px !important;
  border-collapse: separate !important; 
  border-spacing: 0 !important;
  border-radius: 8px !important;
  border: 1px solid #ddd !important; 
  overflow: hidden !important;}

/* Assicura che le celle non abbiano bordi doppi o sporgenti */
table th, table td {
  border: none !important;
  border-bottom: 1px solid #ddd !important;
  border-right: 1px solid #ddd !important;
  padding: 10px 15px !important;}

/* Rimuove il bordo destro dall ultima colonna e il bordo inferiore dall ultima riga */
table th:last-child, table td:last-child {
  border-right: none !important;}
  
table tr:last-child td {
  border-bottom: none !important;}

/* Arrotonda gli angoli delle celle specifiche per farle combaciare con il bordo della tabella */
table th:first-child { border-top-left-radius: 8px !important; }
table th:last-child  { border-top-right-radius: 8px !important; }
table tr:last-child td:first-child { border-bottom-left-radius: 8px !important; }
table tr:last-child td:last-child  { border-bottom-right-radius: 8px !important; }

/* Da usare solo se il margine della tabella viene ignorato */
.wp-block-table, .entry-content table {
  margin-bottom: 30px !important;}





/* CONTATORE DEI GRUPPI ECC NEL PROFILO */
body.bp-user nav#object-nav ul#member-primary-nav li#groups-personal-li.bp-personal-tab > a#user-groups > span.count,
body.bp-user nav#object-nav ul#member-primary-nav li#groups-personal-li.bp-personal-tab > a#user-groups > span.count:link,
body.bp-user nav#object-nav ul#member-primary-nav li#groups-personal-li.bp-personal-tab > a#user-groups > span.count:visited,
body.bp-user #object-nav #member-primary-nav #groups-personal-li #user-groups .count {
    color: #ffffff !important;}


/* 1. APPLICA IL BORDO ALLA LISTA DEI MEMBTI DI UN GRUPPO - SEZIONE INVITO */
#buddypress .bp-invites-content ul#members-list.bp-list {
    border: 1px solid var(--bx-color-border, #e8e8e8) !important;
    min-height: 50px !important; }
	


/* OGNI LINK IN BACHECA DIVENTA GIALLO IN 0.5s */
.entry-content a:not(.button):not(.wp-element-button):hover,
#buddypress .generic-button a:hover,
#buddypress .activity-list .activity-item a:hover,
.valora-hashtag:hover {
    color: #f49b00 !important;
    transition: color 0.5s ease !important;}



/* ALLINEA I PULSANTI INVIA E ANNULLA NEI COMMENTI IN BACHECA */
.ac-form button[type="submit"].valora-svg-button {
    transform: translateY(-23px) !important;}	
	
	
/* AGGIUNGE MARGINE INFERIORE ALL AVATAR NEI COMMENTI IN BACHECA */
.ac-form .ac-reply-avatar {
    margin-bottom: 10px !important;}	


/* ELIMINA IL BORDO ESTERNO DELLE ACTIVITY E IL PADDING LATERALE */
#activity-stream {
    border: none !important;
    box-shadow: none !important;}

#activity-stream .activity-list {
	padding-left: 0px;
	padding-right: 0px;
    border: none !important;
    box-shadow: none !important;}	
	
	
	
/* IMPORTANTE - ALLINEA IN ALTO NEI POST DI BACHECA, PROFILO E GRUPPI LE 4 ICONE DEGLI ALLEGATI */
#whats-new-options > #mio-pdf-preview,
#whats-new-options > #mio-voice-preview,
#whats-new-options > #mio-video-preview,
#whats-new-options > #mio-foto-preview {
    order: -20 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    vertical-align: middle !important;	
	margin-top: 8px !important;}

#whats-new-options::before {
    content: "" !important;
    order: -10 !important;
    flex: 0 0 100% !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;}

#whats-new-options > #mio-pdf-preview  {
    margin-left: 0px !important;}

#whats-new-options > #mio-pdf-preview .dashicons,
#whats-new-options > #mio-voice-preview .dashicons,
#whats-new-options > #mio-video-preview .dashicons,
#whats-new-options > #mio-foto-preview .dashicons {
    width: 18px !important;
    height: 18px !important;
    font-size: 18px !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;}

#whats-new-options > #mio-pdf-preview a.mio-pdf-remove,
#whats-new-options > #mio-voice-preview a.mio-voice-remove,
#whats-new-options > #mio-video-preview a.mio-video-remove,
#whats-new-options > #mio-foto-preview a.mio-foto-remove {
    margin-left: 5px !important;
    white-space: nowrap !important;}	
	

/* Ogni dashicon prende solo la larghezza del proprio glifo + 4px fissi */
#whats-new-options #mio-pdf-preview .dashicons,
#whats-new-options #mio-voice-preview .dashicons,
#whats-new-options #mio-video-preview .dashicons,
#whats-new-options #mio-foto-preview .dashicons {
    width: auto !important;
    min-width: 0 !important;
    text-align: left !important;
    margin-right: 4px !important;
	margin-left: 0px !important;
    font-size: 18px !important;
    height: 18px !important;
    line-height: 1 !important;
    vertical-align: middle !important;}	
/* FINE BLOCCO IMPORTANTE */	
	

/* RENDI INVISIBILE IL PULSANTE FEED NEI GRUPPI */
li.feed > a.bp-tooltip[data-bp-tooltip="Feed RSS"] {
    display: none;}


/* 1. MODULO DI RICERCA ATTIVITA NEI GRUPPI */
.subnav-filters.filters.clearfix {
    border: none !important;
    box-shadow: none !important; /* Rimuove eventuali ombre che sembrano bordi */
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;}

.subnav-filters.filters.clearfix ul {
    padding: 0 !important;
    margin: 0 !important;
	margin-bottom: 10px !important;
	border: none !important;}

.subnav-filters.filters.clearfix li.group-act-search,
.subnav-filters.filters.clearfix .group-search,
.subnav-filters.filters.clearfix .bp-dir-search-form {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;}


/* 1. MODULO DI RICERCA ATTIVITA NEL PROFILO */
#global-activity-search {
    border-radius: 8px !important;}
/* Se vuoi arrotondare anche l eventuale contenitore o il form per coerenza */
.subnav-search .bp-dir-search-form {
    border-radius: 8px !important;}	
	




/* Nasconde la #subnav (menu secondario) VUOTA nel profilo utente solo sulle
   pagine "Galleria" (media) e "Il mio Valora" del profilo */
body.bp-user.my-account.media #subnav,
body.bp-user.my-account.il-mio-valora #subnav,
body.bp-user.my-account.media .bp-subnavs,
body.bp-user.my-account.il-mio-valora .bp-subnavs {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;}	
	
		
	
/* NASCONDE IL SECONDO SPAM (DUPLICATO) — POST + COMMENTI */
.activity-meta.action > a.spam-activity,
.activity-meta.action > a.spam-activity.item-button,
.activity-meta.action > a.spam-activity-comment,
li[id^="acomment-"] > .activity-meta.action > a.spam-activity,
li[id^="acomment-"] > .activity-meta.action > a.spam-activity-comment,
li[id^="acomment-"] > .activity-meta.action > a.spam-activity.item-button {
    display: none !important;}

.activity-meta.action .generic-button a[id^="activity_make_spam_"] {
    color: #09264a !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;

    font-size: 16px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: color 0.5s ease, border-color 0.5s ease !important;}
	
.activity-meta.action .generic-button a[id^="activity_make_spam_"]:hover,
.activity-meta.action .generic-button a[id^="activity_make_spam_"]:focus {
    color: #f49b00 !important;
    border-color: #f49b00 !important;
    background: #fff !important;}

.activity-meta.action .generic-button a[id^="activity_make_spam_"] .dashicons,
.activity-meta.action .generic-button a[id^="activity_make_spam_"] .dashicons::before {
    display: inline-block !important;
    color: inherit !important;
    font-size: 1.1em !important;
    width: 1em !important;
    height: 1.31em !important;
    line-height: 1.1 !important;
    vertical-align: -0.1em !important;
    margin: 0 !important;
    transition: color 0.5s ease !important;}


li[id^="acomment-"] .activity-meta.action .generic-button a[id^="activity_make_spam_"],
.acomment .activity-meta.action .generic-button a[id^="activity_make_spam_"],
.comment-item .activity-meta.action .generic-button a[id^="activity_make_spam_"] {
    display: inline-block !important;
    color: #09264a !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 5px 8px 6px 8px !important;
    margin-top: 15px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.5s ease, border-color 0.5s ease, color 0.5s ease !important;}
	
li[id^="acomment-"] .activity-meta.action .generic-button a[id^="activity_make_spam_"]:hover,
li[id^="acomment-"] .activity-meta.action .generic-button a[id^="activity_make_spam_"]:focus,
.acomment .activity-meta.action .generic-button a[id^="activity_make_spam_"]:hover,
.comment-item .activity-meta.action .generic-button a[id^="activity_make_spam_"]:hover {
    color: #f49b00 !important;
    border-color: #f49b00 !important;
    background: #fff !important;}	







/* PULSANTE SEGNALA NEI COMMENTI */
li[id^="acomment-"] > .activity-meta.action,
li.comment-item      > .activity-meta.action {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 6px !important;}

li[id^="acomment-"] > .activity-meta.action > div[style*="width:100%"],
li.comment-item      > .activity-meta.action > div[style*="width:100%"] {
    order: 99 !important;
    flex: 0 0 100% !important;
    margin-top: 8px !important;}

li[id^="acomment-"] > .activity-meta.action > .valora-report-link,
li.comment-item      > .activity-meta.action > .valora-report-link {
    order: 50 !important;}

li[id^="acomment-"] > .activity-meta.action > .generic-button,
li.comment-item      > .activity-meta.action > .generic-button {
    margin: 0 !important;}

li[id^="acomment-"] > .activity-meta.action > .valora-report-link,
li.comment-item      > .activity-meta.action > .valora-report-link {
    margin: 15px 0 0 0 !important;
    padding: 5px 8px!important;
    font-size: 13px !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    color: #09264a !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    text-decoration: none !important;
    transition: color 0.5s ease, border-color 0.5s ease !important;}

li[id^="acomment-"] > .activity-meta.action > .valora-report-link:hover,
li[id^="acomment-"] > .activity-meta.action > .valora-report-link:focus,
li.comment-item      > .activity-meta.action > .valora-report-link:hover,
li.comment-item      > .activity-meta.action > .valora-report-link:focus {
    color: #f49b00 !important;
    border-color: #f49b00 !important;
    background: #fff !important;}

li[id^="acomment-"] > .activity-meta.action > .valora-report-link .valora-report-icon,
li.comment-item      > .activity-meta.action > .valora-report-link .valora-report-icon {
    display: inline-block !important;
    vertical-align: -0.1em !important;
    color: inherit !important;}




/* ============================================================
   COMMENTI: Segnala solo testo (niente triangolo)
   ============================================================ */

/* 1) Nasconde il triangolo SVG solo nel Segnala dei commenti */
li[id^="acomment-"] > .activity-meta.action > .valora-report-link .valora-report-icon,
li.comment-item      > .activity-meta.action > .valora-report-link .valora-report-icon {
    display: none !important;
}

/* 2) Rende visibile il testo "Segnala" (di norma è solo screen-reader) */
li[id^="acomment-"] > .activity-meta.action > .valora-report-link .bp-screen-reader-text,
li.comment-item      > .activity-meta.action > .valora-report-link .bp-screen-reader-text {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    word-wrap: normal !important;
    color: inherit !important;
    font: inherit !important;}



		
	
/* PULSANTI TUTTI I MEMBRI MENSIONI ECC IN BACHECA */
ul.component-navigation.activity-nav > li > a,
ul.component-navigation.activity-nav > li > a:link,
ul.component-navigation.activity-nav > li > a:visited,
ul.component-navigation.activity-nav > li > a:hover,
ul.component-navigation.activity-nav > li > a:focus,
ul.component-navigation.activity-nav > li > a:active,
ul.component-navigation.activity-nav > li.selected > a,
ul.component-navigation.activity-nav > li.selected > a:hover,
ul.component-navigation.activity-nav > li.selected > a:focus {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Eventuale sfondo sul <li> (alcuni temi lo mettono lì) */
ul.component-navigation.activity-nav > li,
ul.component-navigation.activity-nav > li:hover,
ul.component-navigation.activity-nav > li.selected {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Testo leggibile sul bianco (se il tema usava testo chiaro per contrasto con lo sfondo scuro) */
ul.component-navigation.activity-nav > li > a,
ul.component-navigation.activity-nav > li > a:hover,
ul.component-navigation.activity-nav > li > a:focus,
ul.component-navigation.activity-nav > li > a:active,
ul.component-navigation.activity-nav > li.selected > a {
    color: #09264a !important;
}

/* Bordo/underline di selezione: se vuoi mantenerlo visibile sul bianco */
ul.component-navigation.activity-nav > li.selected > a {
    border-bottom: 2px solid #09264a !important;}	
	
	
	
	
/* --- LOGO: NASCOSTO NELL HEADER resta solo il titolo Valora Comics --- */
.site-branding .custom-logo-link,
.site-branding img,
.site-branding [class*="site-logo"] {
	display: none !important;}
	
/* --- LOGO DENTRO LA BARRA STICKY --- */
html body.buddypress #buddypress #subnav-filters,
html body.single-item.groups #buddypress .subnav-filters {
	/* Regola queste 3 misure in base alle proporzioni del logo */
	--valora-bar-logo-w: 40px;
	--valora-bar-logo-h: 36px;
	--valora-bar-logo-gap: 14px;}

html body.buddypress #buddypress #subnav-filters::before,
html body.single-item.groups #buddypress .subnav-filters::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	width: var(--valora-bar-logo-w);
	height: var(--valora-bar-logo-h);
	transform: translateY(-50%) scale(1);
	transform-origin: left center;
	transition: transform 0.5s ease;
	background: url("https://www.valoracomics.com/wp-content/uploads/2026/10/cropped-cropped-Valora-Comics-Logo-1.png") no-repeat left center / contain;
	pointer-events: none;}

/* Hover sul logo: la classe valora-logo-hover la mette il JS dello Snippet 7 solo quando
   il mouse e nella fascia del logo (la stessa zona del clic): manina + zoom 5% in 0.5s */
html body.buddypress #buddypress #subnav-filters.valora-logo-hover,
html body.single-item.groups #buddypress .subnav-filters.valora-logo-hover {
	cursor: pointer;}
html body.buddypress #buddypress #subnav-filters.valora-logo-hover::before,
html body.single-item.groups #buddypress .subnav-filters.valora-logo-hover::before {
	transform: translateY(-50%) scale(1.05);}

/* Spazio a sinistra per il logo (specificita alta: batte il padding dello snippet sticky) */
html body.buddypress #buddypress #subnav-filters {
	padding-left: calc(12px + var(--valora-bar-logo-w) + var(--valora-bar-logo-gap)) !important;}
html body.single-item.groups #buddypress .subnav-filters {
	padding-left: calc(12px + var(--valora-bar-logo-w) + var(--valora-bar-logo-gap)) !important;}

/* Cellulare: logo piu piccolo */
@media (max-width: 600px) {
	html body.buddypress #buddypress #subnav-filters,
	html body.single-item.groups #buddypress .subnav-filters {
		--valora-bar-logo-w: 32px;
		--valora-bar-logo-h: 28px;
		--valora-bar-logo-gap: 10px;}
	html body.buddypress #buddypress #subnav-filters::before,
	html body.single-item.groups #buddypress .subnav-filters::before {
		left: 8px;}
	html body.buddypress #buddypress #subnav-filters,
	html body.single-item.groups #buddypress .subnav-filters {
		padding-left: calc(8px + var(--valora-bar-logo-w) + var(--valora-bar-logo-gap)) !important;}
		}
	

	
	
/* PULSANTE DEL PAGER DELLA PAGINA CORRENTE DEGLI ARTICOLI DI COLORE GIALLO */	
/* Forza il colore giallo solo sul numero della pagina attiva nel paginatore */
.nav-links .page-numbers.current,
.bp-pagination-links span.page-numbers:not(.dots) {
    color: #f49b00 !important;
	font-weight: 900 !important;
	border: 1px solid #f49b00 !important;}
	

/* PULSANTI  Torna alla Home Accedi di nuovo NELLA PAGINA disconnessione-confermata */
.wp-block-buttons .wp-block-button__link {
    border: 1px solid #ddd;
    transition: border-color 0.5s ease, color 0.5s ease;}

.wp-block-buttons .wp-block-button__link:hover {
    border-color: #f49b00;}

 
 
/* PULSANTE VISUALIZZA PROFILO IN BACHECA NEL POST CHE INDICA MODIFICA DEL PROFILO */
html body #buddypress.buddypress-wrap .bp-profile-button a.button.button-primary {
    color: #09264a !important;
    transition: color 0.5s ease !important;}

html body #buddypress.buddypress-wrap .bp-profile-button a.button.button-primary:hover,
html body #buddypress.buddypress-wrap .bp-profile-button a.button.button-primary:focus {
    color: #f49b00 !important;}



/* ETICHETTA NEI MESSAGGI FORUM CHE INDICA CHE IL TOPIC DEL FORUM E STATO MODIFICATO */
#bbpress-forums .bbp-reply-content ul.bbp-reply-revision-log li, #bbpress-forums .bbp-reply-content ul.bbp-topic-revision-log li, #bbpress-forums .bbp-topic-content ul.bbp-topic-revision-log li {
	background-color: #fff !important;
    color: #09264a;
	font-style: italic;
	padding: 0px 8px 8px 8px;
	border-radius: 999px;}
#bbpress-forums .bbp-reply-content ul.bbp-reply-revision-log, #bbpress-forums .bbp-reply-content ul.bbp-topic-revision-log, #bbpress-forums .bbp-topic-content ul.bbp-topic-revision-log {
    border: 2px dotted #cee1ef !important;
    width: 100%;
    margin: 0;
    padding: 8px 0 0;
    font-size: 11px;
    color: #09264a;}	




/* HEADER E FOOTER DEI TOPIC NEI FORUM */
#bbpress-forums li.bbp-header {
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 0px;}
#bbpress-forums li.bbp-footer {
	border-top-left-radius: 0px;
	border-top-right-radius: 0px;}




/* TEXTAREA DOVE SI SCRIVE IL TAG DI UN FORUM*/
input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select {
    border-color:  #ccc;}

/* CONTENITORE DELLE RISPOSTE NEI FORUM*/
#bbpress-forums fieldset.bbp-form {
	border-radius: 8PX;}


/* PULSANTI AMICIZIA E INVIA MESSAGGIO PUBBLICO E PRIVATO */
#buddypress .comment-reply-link, #buddypress .generic-button a, #buddypress .follow-button.generic-button button, #buddypress .standard-form button, #buddypress a.button, #buddypress input[type=button], #buddypress input[type=reset]:not(.text-button), #buddypress input[type=submit], #buddypress ul.button-nav li a, a.bp-title-button, #buddypress.buddypress-wrap .activity-list .load-more a, #buddypress.buddypress-wrap .activity-list .load-newest a, .buddypress .buddypress-wrap .bp-list.grid .action a, .buddypress .buddypress-wrap .bp-list.grid .action button, .buddypress .buddypress-wrap .action button, form#bp-data-export button, body.bp-nouveau.media #buddypress div#item-header div#item-header-content button, body.bp-nouveau.media #buddypress div#item-header div#item-header-content a, .buddypress .buddypress-wrap button.button, .buddypress .buddypress-wrap button.button.edit, .buddypress .buddypress-wrap .btn-default, .moderation-popup .modal-container .bb-model-footer .button.report-submit, button#bbp_topic_submit, button#bbp_reply_submit, .buddypress .buddypress-wrap button.mpp-button-primary, button#mpp-edit-media-submit, .ges-change, .group-email-tooltip__close, #bplock-login-btn, #bplock-register-btn, .bgr-submit-review, #bupr_save_review, button.friendship-button, button.group-button, .buddypress-wrap .members-list li .member-button-wrap .generic-button button, .avatar-history-actions button.avatar-history-action.recycle, .avatar-history-actions button.avatar-history-action.delete, .avatar-history-actions button.recycle.disabled, .avatar-history-actions button.delete.disabled, #buddypress #header-cover-image .header-cover-reposition-wrap>.button, .buddypress .buddypress-wrap button.gamipress-achievement-unlock-with-points-button, button.gamipress-achievement-unlock-with-points-button, .buddypress .buddypress-wrap button.ges-change, .buddypress .buddypress-wrap button.group-email-tooltip__close, .bp-member-blog-post-form button.button {
    color: var(--button-text-color) !important;}	
	
#buddypress .comment-reply-link:hover,
#buddypress .generic-button a:hover,
#buddypress .follow-button.generic-button button:hover,
#buddypress .standard-form button:hover,
#buddypress a.button:hover,
#buddypress input[type=button]:hover,
#buddypress input[type=reset]:not(.text-button):hover,
#buddypress input[type=submit]:hover,
#buddypress ul.button-nav li a:hover,
a.bp-title-button:hover,
#buddypress.buddypress-wrap .activity-list .load-more a:hover,
#buddypress.buddypress-wrap .activity-list .load-newest a:hover,
.buddypress .buddypress-wrap .bp-list.grid .action a:hover,
.buddypress .buddypress-wrap .bp-list.grid .action button:hover,
.buddypress .buddypress-wrap .action button:hover,
form#bp-data-export button:hover,
body.bp-nouveau.media #buddypress div#item-header div#item-header-content button:hover,
body.bp-nouveau.media #buddypress div#item-header div#item-header-content a:hover,
.buddypress .buddypress-wrap button.button:hover,
.buddypress .buddypress-wrap button.button.edit:hover,
.buddypress .buddypress-wrap .btn-default:hover,
.moderation-popup .modal-container .bb-model-footer .button.report-submit:hover,
button#bbp_topic_submit:hover,
button#bbp_reply_submit:hover,
.buddypress .buddypress-wrap button.mpp-button-primary:hover,
button#mpp-edit-media-submit:hover,
.ges-change:hover,
.group-email-tooltip__close:hover,
#bplock-login-btn:hover,
#bplock-register-btn:hover,
.bgr-submit-review:hover,
#bupr_save_review:hover,
button.friendship-button:hover,
button.group-button:hover,
.buddypress-wrap .members-list li .member-button-wrap .generic-button button:hover,
.avatar-history-actions button.avatar-history-action.recycle:hover,
.avatar-history-actions button.avatar-history-action.delete:hover,
.avatar-history-actions button.recycle.disabled:hover,
.avatar-history-actions button.delete.disabled:hover,
#buddypress #header-cover-image .header-cover-reposition-wrap>.button:hover,
.buddypress .buddypress-wrap button.gamipress-achievement-unlock-with-points-button:hover,
button.gamipress-achievement-unlock-with-points-button:hover,
.buddypress .buddypress-wrap button.ges-change:hover,
.buddypress .buddypress-wrap button.group-email-tooltip__close:hover,
.bp-member-blog-post-form button.button:hover {
    color: var(--button-border-hover-color) !important;}
	
		
/* TOGLI BORDI MENU VERTICALE E IN ALTO NEL PROFILO*/	
body.buddypress.bp-user .buddypress-wrap .member-header-actions {
 	border:none !important;}		
#buddypress.buddypress-wrap .bp-navs ul.bp-priority-object-nav-nav-items {
 	border:none !important;}	
body.buddypress.bp-user .buddypress-wrap .member-header-actions {
    border:none !important;}	
	
	
/* PULSANTI PUBBLICA IN, DURATA, PRIVACY ECC */	
#buddypress .activity-form #whats-new-options {
    padding: 0px 0px !important;}	
	

/* PULSANTE CARICA PIU RECENTE IN BACHECA */
#buddypress.buddypress-wrap .activity-list .load-newest a {
	margin-top: 15px;
    background: #1c222c !important;
    border: 2px solid #141a22 !important;
    border-radius: 999px !important; 
    color: #ffffff !important;
    display: inline-block !important;  
    padding: 8px 16px !important;     
    text-decoration: none !important;}
#buddypress.buddypress-wrap .activity-list .load-newest a:hover {
    background: #2a3342 !important;  
    border: 2px solid #1c222c !important;
    color: #ffffff !important;}		



/* PULSANTE CARICA DI PIU IN BACHECA */
#buddypress.buddypress-wrap .activity-list .load-more a {
    background: #1c222c !important;
    border: 2px solid #141a22 !important;
    border-radius: 999px !important; 
    color: #ffffff !important;
    display: inline-block !important;  
    padding: 8px 16px !important;     
    text-decoration: none !important;}
#buddypress.buddypress-wrap .activity-list .load-more a:hover {
    background: #2a3342 !important;  
    border: 2px solid #1c222c !important;
    color: #ffffff !important;}		
	
	
	
	
	
/*PULSANTE ANNULLA NEI POST IN BACHECA */	
.buddypress .buddypress-wrap button.text-button, .buddypress .buddypress-wrap input.text-button  {
	margin-bottom: 17px !important; 
    background: #fff !important;
    color: #09264a !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background 0.5s ease, border-color 0.5s ease !important;
    line-height: 1 !important;
    font-family: inherit !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;}
.buddypress .buddypress-wrap button.text-button, .buddypress .buddypress-wrap input.text-button:hover {
    background: #fff !important;
    border-color: #f49b00 !important;
	color: #f49b00 !important;}
	
	
	
	
	
	
		
/* ============================================================
   PULSANTI ANNULLA + INVIA NEI COMMENTI IN BACHECA
   Stessa riga, a destra: prima ANNULLA, poi INVIA
   ============================================================ */
#buddypress .activity-comments .ac-form .ac-reply-content .ac-reply-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: auto !important;
}
#buddypress .activity-comments .ac-form .ac-reply-cancel,
#buddypress .activity-comments .ac-form input[type="submit"] {
    float: none !important;
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    margin: 0px 0px 23px 0px !important;
	box-sizing: border-box !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 8px 8px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background 0.5s ease, border-color 0.5s ease !important;
    line-height: 1 !important;
    font-family: inherit !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}
#buddypress .activity-comments .ac-form .ac-reply-cancel {
    order: 1 !important;
    background: #fff !important;
    color: #09264a !important;
}
#buddypress .activity-comments .ac-form input[type="submit"] {
    order: 2 !important;
}
#buddypress .activity-comments .ac-form .ac-reply-cancel:hover {
    background: #fff !important;
    border-color: #f49b00 !important;
    color: #f49b00 !important;
}
#buddypress .activity-comments .ac-form input[type="submit"]:hover {
    border-color: #f49b00 !important;
}
	
	
	
	
	
	
	
/* PULSANTI RISPONDI-MODIFICA-ELIMINA */
.valora-edit-content-btn .bp-screen-reader-text {
    color: inherit !important;}
.valora-edit-generic-button a.bp-secondary-action {
    display: inline-block;}



/* PULSANTI MODIFICA ELIMINA IN BACHECA */
body #buddypress .bp-list .activity-comments .action .generic-button a {
    color: inherit;}	
	
	
	
.valora-lb-comment-action {
    margin-top: 10px;}
	
	
	
	
	
	
/* TOGLIE CORNICE IN HOVER SU EMOJI NEI COMMENTI DEI POST IN BACHECA */
body #buddypress .activity-list .activity-item .activity-meta.action button.valora-reaction-trigger,
body #buddypress .activity-list .activity-item .activity-meta.action button.valora-reaction-trigger:hover,
body #buddypress .activity-list .activity-item .activity-meta.action .valora-reaction-option,
body #buddypress .activity-list .activity-item .activity-meta.action .valora-reaction-option:hover {
    border: 1px solid transparent !important;
    color: inherit !important;
    background: transparent !important;}



/* PULSANTE OPZIONI NEI MEDIA DEI GRUPPI */	
#buddypress #rtm-media-options-list .rtm-options form button {
    background-color: #7b5aa3 !important;
	border: 3px solid #5a3a7d !important;
	color: #fff !important;}



/* PULSANTE MI PIACE E COMMENTO NEI MEDIA DEI GRUPPI */			
a.rtmedia-comment-link.rtmedia-comments-link:hover,
.rtmedia-like.rtmedia-action-buttons.button:hover,
.rtmedia-like.button:hover,
button.rtmedia-like:hover {
    color: #f49b00 !important;}
	


/* COME APPARE IL PLAYER AUDIO NELLA NOTIFICA IN BACHECA QUANDO UN AUDIO VIENE ATTRIBUITO A UN ALBUM */
.mio-album-notification-media audio {
    background: transparent  !important;}



/* CORNICE AI COMMENTI NEI FEED */
.buddypress-wrap .activity-comments ul{
border: 1px solid #ddd !important;
    margin: 10px 10px 10px 10px;}



/* PULSANTI AGGIUNGI AMICO E MESSAGGIO PRIVATO E CATTURA NEL PROFILO */
.buddypress .buddypress-wrap button.button{
	color: #fff ;}	
body.buddypress.bp-user .buddypress-wrap .member-header-actions {
	color: #fff ;}		
button.friendship-button.not_friends {
    margin-left: 10px;}
	
	
	
/* PULSANTI VARI NEI TOPIC DEI FORUM*/	
/* Solo per i pulsanti nella lista dei gruppi */
#groups-list .item-list .action .button,
#groups-list .action .button,
.groups .item-list .action .button {
    color: #ffffff !important;}

/* Solo per "Elimina" e "Regisci" */
#groups-list .item-list .action .button,
.groups .bp-group-action .button {
    color: #ffffff !important;}

/* Solo per "Segna come Preferito" e "Carica di più" */
.groups .item-list .button,
#groups-list .button {
    color: #ffffff !important;}


/* Stile completo per il pulsante Carica di più */
#buddypress .activity-list .load-more a {
    color: #ffffff !important;}
	
	
/* Stile completo per il pulsante Carica più recente */	
#buddypress.buddypress-wrap .activity-list .load-newest a {
    color: #ffffff !important;}
	
	
/* Stile per il pulsante "Visualizza Profilo" — solo testo bianco */
#buddypress.buddypress-wrap .bp-profile-button a.button-primary {
    color: #ffffff !important;}	



/* PULSaNTI MODIFICA, UNISCI, CHIUDI ECC NEI TOPIC */
span.bbp-admin-links {
	margin-top: 10px;
    color: #09264a !important;}


/* RISPONDI A TOPIC */
div.bbp-template-notice, div.indicator-hint {
	padding: 8px;
    border-width: 1px;
    border-style: solid;
    border-radius: 6px;
    background-color: #f0f8ff;
    border-color: #cee1ef;
    color: #09264a;}
	
div.bbp-template-notice li, div.bbp-template-notice p {
	padding: 8px;}
	





/* --- I LINK GENERICI DEL SITO CAMBIANO COLORE IN HOVER SMOOTH --- */
a {
	transition: color 0.5s ease;}
a:hover {
	color: #f49b00;}


/* --- MOVIMENTI SMOOTH --- */	
html {
	scroll-behavior: smooth;}  
	
	
	
	/* --- IMMAGINE DEL HEADER SOPRA IL MENU --- */
.header-image img {

    /*border: 2px solid #16181D;*/	

    margin: 30px 0px 30px 0px;
    border-radius: 12px;
	border: 2px solid #5a3a7d;}	


/* --- LOGO --- */
.site-branding img {

    /*border-radius: 6px;*/
    /*border: 2px solid #16181D;*/
	
	margin-bottom: 25px;
    transition: transform 0.4s ease;}
.site-branding img:hover {
    transform: scale(1.1);}	


/* --- BORDO INFERIORE DEL SUB-HEADER CHE CONTIENE IL BREADCRUMB --- */		
.site-sub-header {
    border: 2px solid #cfcfd3;}


/* --- ICONA VICINO AL PULSANTE X NELLA HOME DI BPPRESS --- */
.dashicons-dismiss, .dashicons-dismiss:before {
font-size: auto !important;}

button:not([class*="wp-"]):not([class*="customize-"]):not([class*="wc-block-"]):not([class*="bn-"]):not([class*="mvs-"]):not(.bx-color-mode-toggle__btn):not(.menu-toggle):not(.menu-close):not(.datepicker button):not([class*="tribe-events"]), input[type="button"], input[type="submit"], .wp-block-button__link {
border-radius: 999px;
}

/* Hamburger e Chiudi del menu mobile: nessun bordo/contorno quando sono attivi o in focus */
.menu-toggle,
.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle:focus-visible,
.menu-toggle:active,
.primary-menu-container .menu-close,
.primary-menu-container .menu-close:hover,
.primary-menu-container .menu-close:focus,
.primary-menu-container .menu-close:focus-visible,
.primary-menu-container .menu-close:active {
border: 0 !important;
outline: 0 !important;
box-shadow: none !important;
-webkit-tap-highlight-color: transparent;
}
	
.buddypress-wrap a[data-bp-close], .buddypress-wrap button[data-bp-close] {
top: 11px;
right: 5px;
height:38px;
width: 36px;}
	
.dashicons-dismiss:before {
font-weight: 900;}


/* --- TITOLO DEL SITO IN HOVER --- */
.site-title a {
margin-left: 5px;
    text-decoration: none !important;
    position: relative;
    display: inline-block;
    color: inherit;
    transition: color 0.3s ease !important;}

.site-title a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;            
    width: 100%;
    height: 3px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;}

.site-title a:hover {
    text-decoration: none !important;}

.site-title a:hover::after {
    transform: scaleX(1);
    transform-origin: center;}

.site-title a:not(:hover)::after {
    transform: scaleX(0);
    transform-origin: center;}	
	
	
/* --- TITOLO DEL SITO: PIU PICCOLO SU CELLULARE --- */
.site-title,
.site-title a {
	font-size: clamp(16px, 5.5vw, 40px) !important;}
	
	
/* --- NASCONDE IL PULSANTE RSS NELLA BARRA FILTRI --- */
#activity-rss-feed {
	display: none !important;}	
	
	
/* --- MENU PRINCIPALE --- */	
#site-navigation li a {
    transition: all 0.5s ease !important;}
	
	
	/* --- RIMUOVI TRIANGOLINO NEL SOTTOMENU PRINCIPALE E BUDDYPRESS --- */
@media (min-width: 1px){
    #site-navigation .sub-menu::before,    
	#site-navigation .children::before,
	  .buddypress-icons-wrapper .bp-header-submenu::before,
    .buddypress-icons-wrapper .bp-dropdown::before { 
           border-top: 6px solid #16181D;
		   border-right: 6px solid #16181D;}}
	
	
/* --- SUBMENU MENU PRINCIPALE --- */
#site-navigation .sub-menu,
#site-navigation .children {
    border: 2px solid #16181D;
	margin-top: -3px !important;}
	
#site-navigation .sub-menu li a,
#site-navigation .children li a{
    transition: all 0.5s ease !important;}	
	
/* --- SOTTOMENU DI TERZO LIVELLO DEL MENU PRINCIPALE --- */
#site-navigation .sub-menu .sub-menu {
    margin-top: -10px !important;
	margin-right: 18px !important;}
	

/* 2 BORDI SUPERIORI FOOTER */
.site-info  {
    border-top: 1px solid #16181d !important;}	
	
.site-footer {
    border-top: 1px solid #16181d !important;}	
	

/* --- SUBMENU MENU BUDDYPRESS --- */
.buddypress-icons-wrapper .bp-header-submenu,
.buddypress-icons-wrapper .bp-dropdown {
    border: 2px solid #16181D;
	margin-top: -3px !important;}


/* --- LINK UTENTE (ADMIN) --- */
.user-link-wrap .user-link {
    font-weight: 700 !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;     
    height: 60px; 
    line-height: 60px;
    text-decoration: none !important;}

.user-link-wrap .user-link:hover {
    color: #f49b00;}
	
	
	
#bp-notify .alert-message .alert.alert-warning {
    color: #ffffff !important;}	
	
	


/* CONTATORE NOTIFICHE MENU PRINCIPALE */
.menu-icons-wrapper .cart sup, .buddypress-icons-wrapper .bp-msg sup, .buddypress-icons-wrapper .user-notifications sup{
    color: #09264a;}

/* COLORE ORARIO MENU NOTIFICHE NEL MENU PRINCIPALE */
.buddypress-icons-wrapper #bp-notify .bp-dropdown-inner .dropdown-item .mute {
    color: #6F7690;
	font-weight: 400;}



/* ------ BUDDYPRESS SEZIONE SOCIAL ------ */

/* ARROTONDA PULSSANTE LIKE IN ACTIVITY */	
#buddypress #activity-stream .activity-meta .wpulike-default button.wp_ulike_btn, #buddypress #activity-stream .activity-comments .wpulike-default button.wp_ulike_btn, #buddypress #activity-stream .activity-inner .wpulike-default button.wp_ulike_btn {
    border-radius: 4px;}
	

/* --- COLORA DI GIALLO IN HOVER PULSANTE DEL LIKE --- */
button.wp_ulike_btn:hover {
    border-color: #f49b00 !important;}

button.wp_ulike_btn:hover::before,
button.wp_ulike_btn:hover::after {
    color: #f49b00 !important;}	

button.wp_ulike_btn.wp_ulike_put_image:hover {
    border-color: #f49b00 !important;
    filter: sepia(100%) saturate(800%) hue-rotate(-5deg) brightness(0.9) !important;}
	

/* --- ARROTONDA VARI ELEMENTI --- */

#buddypress #group-activity-search, #buddypress #dir-members-search, #buddypress #dir-groups-search, #buddypress #dir-activity-search {
    border: 1px solid transparent !important;
    border-radius: 8px !important;
	font-weight: 900;
	transition: all 0.5s ease !important;}

#buddypress:hover #group-activity-search:hover, #buddypress:hover #dir-members-search:hover, #buddypress #dir-groups-search:hover, #buddypress #dir-activity-search:hover {
    color: #f49b00 !important;
    border: 1px solid #f49b00 !important;}

body .buddypress-wrap .subnav-filters .component-filters select, body .buddypress-wrap .subnav-filters .last select {
    border: 1px solid transparent !important;
    border-radius: 8px !important;
	font-weight: 900;
	transition: all 0.5s ease !important;}

body .buddypress-wrap .subnav-filters .component-filters select:hover, body .buddypress-wrap .subnav-filters .last select:hover {
    color: #f49b00 !important;
    border: 1px solid #f49b00 !important;}

.buddypress-wrap select, .buddypress-wrap .select-wrap select, .bp-search select, #buddypress select, .subnav-filters select {
    border-radius: 4px !important;
	font-weight: 900;
	transition: all 0.5s ease !important;}
element.style {
}
body #buddypress * a {
    box-shadow: none;
    text-decoration: none;
}
.entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.button):not([class*="button"]), .comment-content a:not(.wp-element-button):not(.wp-block-button__link):not(.button):not([class*="button"]) {
    color: var(--bx-color-link, var(--bx-color-accent, #111111));
    /* text-decoration: underline; */
    text-underline-offset: 2px;
}
.buddypress-wrap .bp-navs.dir-navs li.selected a, .buddypress-wrap .bp-navs.dir-navs li.current a, .buddypress-wrap .bp-navs.dir-navs li.selected a:hover, .buddypress-wrap .bp-navs.dir-navs li.current a:hover, .buddypress-wrap .bp-navs.dir-navs li.selected a:focus, .buddypress-wrap .bp-navs.dir-navs li.current a:focus {



	background-color: #fff !important;
    color: #5a3a7d !important;
    border-bottom: 2px solid #7b5aa3 !important;
}
.buddypress-wrap .bp-navs.dir-navs li.selected a, .buddypress-wrap .bp-navs.dir-navs li.current a, .buddypress-wrap .bp-navs.dir-navs li.selected a:hover, .buddypress-wrap .bp-navs.dir-navs li.current a:hover, .buddypress-wrap .bp-navs.dir-navs li.selected a:focus, .buddypress-wrap .bp-navs.dir-navs li.current a:focus {
    background: 0 0;
}
.buddypress-wrap:not(.bp-single-vert-nav) .main-navs>ul>li>a {
    padding: .5em calc(.5em + 2px);
}
.activity-type-navs .activity-nav li.current a, .activity-type-navs .activity-nav li.selected a {
    background-color: #fff !important;
    font-weight: 900;
    color: #5a3a7d !important;
    border-bottom-color: #7b5aa3 !important;
}
.buddypress-wrap .bp-navs li.selected a, .avatar-history-table td .avatar.selected {
    border-color: var(--color-theme-primary);
}
.buddypress-wrap .bp-navs li.current a, .buddypress-wrap .bp-navs li.selected a {
    border-bottom: 1px solid var(--color-theme-primary);
    background: 0 0;
    font-weight: 500;
}
.buddypress-wrap .bp-navs li:not(.current) a:focus, .buddypress-wrap .bp-navs li:not(.current) a:hover, .buddypress-wrap .bp-navs li:not(.selected) a:focus, .buddypress-wrap .bp-navs li:not(.selected) a:hover, .buddypress-wrap .bp-navs li.current a, .buddypress-wrap .bp-navs li.current a:focus, .buddypress-wrap .bp-navs li.current a:hover, .buddypress-wrap .bp-navs li.selected a, .buddypress-wrap .bp-navs li.selected a:focus, .buddypress-wrap .bp-navs li.selected a:hover {
    color: var(--color-theme-primary);
    background: 0 0;
}
.buddypress-wrap .bp-navs li.current a, .buddypress-wrap .bp-navs li.current a:focus, .buddypress-wrap .bp-navs li.current a:hover, .buddypress-wrap .bp-navs li.selected a, .buddypress-wrap .bp-navs li.selected a:focus, .buddypress-wrap .bp-navs li.selected a:hover {
    background: #555;
    color: #fafafa;
}
ul.component-navigation.activity-nav li a {
    margin: 0;
}
.bp-navs ul li.current a, .bp-navs ul li.selected a {
    color: #333;
    opacity: 1;
}
.activity-type-navs .activity-nav li a {
    font-weight: 900;
    color: inherit;
    background-color: transparent;
    transition: color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease;
    padding: 8px 12px;
    border-bottom: 2px solid transparent !important;
    box-sizing: border-box;
    display: inline-block;
}
.bp-navs ul li a {
    border-bottom: 1px solid #0000;
    margin-bottom: -1px;
}
.bp-navs ul li a, .bp-navs ul li span {
    border: 0;
    display: block;
    padding: 5px 10px;
    text-decoration: none;
}
a {
    transition: color 0.5s ease;
}
a {
    color: var(--color-link);
    text-decoration: none;
}
a {
    background-color: #0000;
}
a:where(:not(.wp-element-button)) {
    text-decoration: none;
}
*, :before, :after {
    box-sizing: inherit;
}
foglio di stile dello user agent
a:-webkit-any-link {
    color: -webkit-link;
    cursor: pointer;
    text-decoration: underline;
}
.bp-navs ul li {
    list-style: none;
    margin: 0;
}
ul {
    list-style: outside;
}
foglio di stile dello user agent
ul {
    list-style-type: disc;
}
body:not(.block-editor-page):not(.wp-core-ui), input, optgroup, select, textarea {
    font-family: Comfortaa;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0em;
    font-weight: 400;
    text-transform: none;
    font-style: normal;
    text-align: left;
    color: rgb(9, 38, 74);
}
html, body {
    background-color: var(--bx-color-bg, #ffffff);
    color: var(--bx-color-fg, #505050);
}
body, button, input, select, optgroup, textarea {
    color: var(--global-font-color);
    font-family: var(--global-font-family);
    font-size: var(--font-size-regular);
    line-height: var(--global-font-line-height);
}
body {
    font-family: var(--wp--preset--font-family--inter);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 400;
    line-height: 1.6;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
}
.buddypress-wrap select:hover, .buddypress-wrap .select-wrap select:hover, .bp-search select:hover, #buddypress select:hover, .subnav-filters select:hover {
    color: #f49b00 !important;
    border: 1px solid #f49b00 !important;}

.bp-feedback.custom-homepage-info {
    border-radius: 8px !important;}

.bbp-template-notice {
    border-radius: 8px !important;}

.bbp-topics {
    border-radius: 8px !important;
    overflow: hidden;}

#bbp_stick_topic_select {
    border-radius: 8px !important;}

#bbp_topic_status_select {
    border-radius: 8px !important;}

.bp-dir-search-form {
  border-radius: 8px;
  overflow: hidden;}
  
.group-invites-search .bp-search form {
  border-radius: 8px;
  overflow: hidden;}
  
.bp-feedback {
  border-radius: 8px !important;}
  
.bp-icon {
  border-radius: 8px 0 0 8px !important;}
  
.members.bp-invites-content #members-list > li {
    border-radius: 8px !important;
    overflow: hidden;}
	
#group-desc {
    border-radius: 8px !important;}
	
#bp_members_invitation_message {
    border-radius: 8px !important;}


/* --- NASCONDERE II PULSANTI NEL FORM DI INSERIMENTO DI UN TOPIC NEI GRUPPI E FORUM E ARROTONDA TEXTAREA --- */
#qt_bbp_topic_content_toolbar {
    display: none !important;}
	
.quicktags-toolbar,
[id^="qt_bbp_"] {
    display: none !important;}	

#bbpress-forums div.wp-editor-container {
  	border-radius: 8px !important;}
	
#bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content {
  	border-radius: 8px !important;}

	
/* --- NASCONDE ALCUNI PULSANTI NEL FORM DI INSERIMENTO DI UN MESSAGGIO PRIVATO --- */
#mceu_5,
#mceu_6,
#mceu_7,
#mceu_8 {
    display: none !important;}	


/* --- PULSANTI COMMENTI - SEGNA COME PREFERITO - ELIMINA --- */
body #buddypress .activity-list .activity-item .activity-meta.action a.button,
body #buddypress .activity-list .activity-item .activity-meta.action button,
.activity-list .activity-item .activity-meta.action .generic-button a,
button.wp_ulike_btn {
    transition: all 0.5s ease !important;
	padding: 5px 7px !important;}

body #buddypress .activity-list .activity-item .activity-meta.action a.button:hover,
body #buddypress .activity-list .activity-item .activity-meta.action button:hover,
.activity-list .activity-item .activity-meta.action .generic-button a:hover,
button.wp_ulike_btn:hover {
    color: #f49b00 !important;
    border: 1px solid #f49b00 !important;
    background: transparent !important;}
	

/* --- MENU VERTICALE E ORIZZONTALE DELL UTENTE --- */
#member-primary-nav li a,
#member-secondary-nav li a {
    color: inherit;
    background-color: transparent;
    transition: 
    color 0.5s ease,
    background-color 0.5s ease;
    padding: 8px 12px;}

#member-primary-nav li a:hover,
#member-secondary-nav li a:hover {
    background-color: #ece4f4 !important; 
	color: #09264a !important;
	border-radius: 8px;	}

#member-primary-nav li.current a,
#member-primary-nav li.selected a,
#member-secondary-nav li.current a,
#member-secondary-nav li.selected a{
    background-color: #ece4f4 !important;
	border-radius: 8px;
	font-weight: 900;
	color: #09264a !important;	}

#member-secondary-nav li.current a,
#member-secondary-nav li.selected a {
    border-bottom: none !important;
    box-shadow: none !important;}			
	
	
/* PULSANTE AGGIUNGI ALBUM */	
.rtm-media-options .rtm-options a {
	color: #09264a !important;
    background-color: #fff !important;
	border: 1px solid #707070; }
	
.rtm-media-options .rtm-options a:hover {
	background-color: #ece4f4 !important ;
	color: #09264a !important;
	border: 1px solid #707070; }	
	
.rtm-options.rtm-options {
    padding: 0 !important;}
	
	
.rtm-options li {
    padding: 0;}
	
	

/* --- MENU DEI GRUPPI (PRIMARIO + SECONDARIO) --- */

#buddypress.buddypress-wrap .bp-navs ul.bp-priority-object-nav-nav-items li a:hover, #buddypress.buddypress-wrap .bp-navs ul.bp-priority-object-nav-nav-items li span:hover, #buddypress.buddypress-wrap .bp-navs ul.bp-priority-subnav-nav-items li a:hover, #buddypress.buddypress-wrap .bp-navs ul.bp-priority-subnav-nav-items li span:hover {
	color: inherit !important; }

.bp-single-vert-nav .item-body:not(#group-create-body) #subnav:not(.tabbed-links) li.current a {
		color: inherit !important; 
        background-color: #ece4f4 !important;
		border-radius: 8px;}

.bp-single-vert-nav .item-body:not(#group-create-body) #subnav:not(.tabbed-links) li a:hover {
		color: inherit !important; 
        background-color: #ece4f4 !important;
		border-radius: 8px;}		
		
.bp-single-vert-nav  li a {
	border-radius: 8px;
	color: inherit !important; 
	background-color: transparent; 
	transition: color 0.5s ease, background-color 0.5s ease; 
	padding: 8px 12px; } 
		

#group-primary-nav li a, 
#group-secondary-nav li a {
	border-radius: 8px;
	color: inherit !important; 
	background-color: transparent; 
	transition: color 0.5s ease, background-color 0.5s ease; 
	padding: 8px 12px; } 

#group-primary-nav li a:hover, 
#group-secondary-nav li a:hover { 
	background-color: #ece4f4 !important;
	border-radius: 8px;} 
	
#group-primary-nav li.current a, 
#group-primary-nav li.selected a, 
#group-secondary-nav li.current a, 
#group-secondary-nav li.selected a { 
	color: inherit; 
	background-color: #ece4f4 !important; 
	border-radius: 8px;
	font-weight: 900; } 
	
#group-secondary-nav li.current a, 
#group-secondary-nav li.selected a { 
	border-bottom: none !important; 
	box-shadow: none !important; }
	
	
	
	
	
	
	
	
	
	
	









/* ============================================================
   Z-INDEX: SOTTOTOMENU SOPRA BARRA STICKY
   ============================================================ */

/* 1. WRAPPER HEADER va SOPRA la barra sticky 999 --- */
.site-header-wrapper {
    position: relative !important;
    z-index: 2000 !important;
    overflow: visible !important;
}

/* 2. SOTTOMENU MENU PRINCIPALE il più alto in assoluto --- */
#site-navigation .sub-menu,
#site-navigation .children {
    z-index: 3000 !important;
}

/* Selettore di sicurezza vince su regole tema più specifiche */
nav#site-navigation .primary-menu-container ul#primary-menu li.menu-item-has-children > ul.sub-menu,
nav#site-navigation .primary-menu-container ul#primary-menu li.menu-item-has-children > ul.children {
    z-index: 3000 !important;
}

/* 3. BARRA STICKY: sotto header, sopra il contenuto --- */
body.buddypress #buddypress #subnav-filters,
body.single-item.groups #buddypress .subnav-filters {
    z-index: 999 !important;
}

/* 4. ICONE BUDDYPRESS campanella, busta, avatar ---*/
.buddypress-icons-wrapper,
.buddypress-icons-wrapper .bp-msg,
.buddypress-icons-wrapper .user-notifications,
.buddypress-icons-wrapper .user-link-wrap {
    z-index: 1500 !important;
}

/* Dropdown notifiche - messaggi - utente sopra il contenuto,
   sotto ai sottomenu del menu principale */
.buddypress-icons-wrapper .bp-header-submenu,
.buddypress-icons-wrapper .bp-dropdown,
.buddypress-icons-wrapper #bp-notify,
.buddypress-icons-wrapper .bp-user-menu,
.user-link-wrap .bp-user-menu {
    z-index: 1800 !important;
}

/* 5. OVERFLOW nessun antenato del header deve tagliare i sottomenu --- */
.site-header-wrapper,
.site-header,
#masthead,
#site-navigation,
.primary-menu-container,
.buddyx-desktop-menu,
.primary-menu-container .menu,
#primary-menu,
#primary-menu > li,
.buddypress-icons-wrapper,
.user-notifications {
    overflow: visible !important;
}

/* 6. Neutralizza transform-filter-contain creano stacking context
   extra che intrappolano i sottomenu. --- */
.site-header-wrapper,
.site-header,
#masthead,
#site-navigation {
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    contain: none !important;
}

















/* --- MENU INVITI DEL GRUPPO (stesso stile degli altri menu) --- */
.bp-invites-nav ul.subnav li a {   
	color: inherit;
    background-color: transparent;
    transition:
        color 0.5s ease,
        background-color 0.5s ease;
    	padding: 8px 12px;}

.bp-invites-nav ul.subnav li a:hover {
    background-color: #ece4f4 !important;}

.bp-invites-nav ul.subnav li.current a,
.bp-invites-nav ul.subnav li.selected a {
    background-color: #ece4f4 !important;
    font-weight: 900;
    border-bottom: none !important;
    box-shadow: none !important;}		
	
	
/* --- ARROTONDA CERCA ATTIVITA E FINESTRA SELEZIONA --- */	
.select-wrap {
    border-radius: 6px !important;}
	
#dir-activity-search-form {
    border-radius: 8px !important;}		
	
#dir-groups-search-form {
    border-radius: 8px;
    overflow: hidden;}
	
	
/* --- MENU ATTIVITÀ NELLA HOME PAGE --- */
.activity-type-navs .activity-nav {
    background-color: #fff !important;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.activity-type-navs .activity-nav li { 
    margin-right: 8px; 
}

.activity-type-navs .activity-nav li a {
    font-weight: 900;
    color: inherit;
    background-color: transparent;
    transition: color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease;
    padding: 8px 12px;
    /* Bordo sempre presente ma trasparente: niente reflow al cambio di stato */
    border-bottom: 2px solid transparent !important;
    box-sizing: border-box;
    display: inline-block;
}

.activity-type-navs .activity-nav li a:hover {
    font-weight: 900;
    background-color: #fff !important;
    color: #5a3a7d !important;
    border-bottom-color: #7b5aa3 !important;
}

.activity-type-navs .activity-nav li.current a,
.activity-type-navs .activity-nav li.selected a {
    background-color: #fff !important;
    font-weight: 900;
    color: #5a3a7d !important;
    border-bottom-color: #7b5aa3 !important;}	

.buddypress-wrap.bp-dir-hori-nav:not(.bp-vertical-navs) nav:not(.tabbed-links) {
    border-bottom: 0px solid #ccc;}	


/* --- MENU GRUPPI NELLA HOME PAGE --- */
.buddypress .entry-content ol, .buddypress .entry-content ul {
    background-color: #fff !important;
	border-radius: 8px;
	border: 1px solid #ddd;}

.buddypress #buddypress.bp-dir-hori-nav .create-button a, .buddypress #buddypress.bp-dir-hori-nav .create-button a {
    font-weight: 900;
    background-color: #fff !important;
	color: #5a3a7d !important;
	border-radius: 0px;
	border-bottom: 2px solid #fff !important;}

.buddypress:hover #buddypress.bp-dir-hori-nav:hover .create-button a:hover, .buddypress:hover #buddypress.bp-dir-hori-nav:hover .create-button a:hover {
    font-weight: 900;
    background-color: #fff !important;
	color: #5a3a7d !important;
	border-bottom: 2px solid #7b5aa3 !important;}

.buddypress-wrap .bp-navs.dir-navs li.selected a, .buddypress-wrap .bp-navs.dir-navs li.current a, .buddypress-wrap .bp-navs.dir-navs li.selected a:hover, .buddypress-wrap .bp-navs.dir-navs li.current a:hover, .buddypress-wrap .bp-navs.dir-navs li.selected a:focus, .buddypress-wrap .bp-navs.dir-navs li.current a:focus {
	background-color: #fff !important;
    font-weight: 900;
	color: #5a3a7d !important;
    border-bottom: 2px solid #7b5aa3 !important;}


/* --- PULSANTE RICERCA IN MEDIA BPPRESS --- */
.buddypress-wrap form.bp-dir-search-form, .buddypress-wrap form.bp-invites-search-form, .buddypress-wrap form.bp-messages-search-form, .buddypress-wrap .media_search.media_search {
	border-radius: 6px;
	transition: all 0.5s ease !important;}

.buddypress-wrap form.bp-dir-search-form:hover, .buddypress-wrap form.bp-invites-search-form:hover, .buddypress-wrap form.bp-messages-search-form:hover, .buddypress-wrap .media_search.media_search:hover {
	border: 1px solid #f49b00;}


/* --- PULSANTE AGGIUNGI AI PREFERITI E ISCRIVITI NEI FORUM/GRUPPI --- */
.subscription-toggle, .favorite-toggle {
    display: inline-block;
    margin: 0px 0px 5px 0px;
    padding: 5px 10px;
    background-color: #fff;
	border: 1px solid #ddd !important;
    color: #09264a;
	font-weight: 900;
	font-size: 17px;
	line-height: 1.3;
    border-radius: 6px;
    transition: all 0.5s ease !important;
    text-decoration: none;}

.subscription-toggle:hover, .favorite-toggle:hover  {
    background-color: #fff;
	border: 1px solid #f49b00 !important;
    color: #f49b00;}	
	
/* FA SPARIRE LA LINEA DI SEPARAZIONE | TRA AGGIUNGI AI PREFERITI E ISCRIVITI */
#subscription-toggle {
    margin-right: 10px;}
#subscription-toggle {
    font-size: 0 !important;}	
#subscription-toggle .subscription-toggle {
    font-size: 17px !important;}


/* --- PULSANTE DEL TAG NEI FORUM/GRUPPI --- */
#bbpress-forums .bbp-topic-tags {
    display: inline-block !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 0 5px 0 !important;
    padding: 5px 10px !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    color: #09264a !important;
    font-weight: 900 !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
    border-radius: 6px !important;
    transition: border-color 0.5s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    float: none !important;
}

#bbpress-forums .bbp-topic-tags:hover {
    background-color: #fff !important;
    border: 1px solid #f49b00 !important;
}

/* I <p> interni non devono occupare tutta la riga */
#bbpress-forums .bbp-topic-tags p {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;}


/* --- NEL GRUPPO - CREA NUOVO TOPIC --- */
#new-topic-0 fieldset.bbp-form {
    border: 1px solid #cee1ef;
    padding: 20px;
    border-radius: 8px;
    background: #f9fbff;
    margin-top: 20px;}

/* LEGEND nei form forum/topic — alta specificità, non tocca altre legend */
#bbpress-forums > #new-topic-0 > form > fieldset.bbp-form > legend,
#bbpress-forums > .bbp-reply-form > form > fieldset.bbp-form > legend {
    border: 1px solid #d2c1e4 !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.0;
    color: #09264a;
    padding: 8px 8px;}

/* SPAZIO SOPRA LA RISPOSTA AI TOPIC */
#bbpress-forums > .bbp-reply-form {
    margin-top: 30px !important;}
	
/* ============================================================
   BLOCCO CREAZIONE TOPIC NEI FORUM DEI GRUPPI (pagina crea un nuovo topic)
   ============================================================ */
#bbpress-forums li.bbp-footer, #bbpress-forums li.bbp-header {
    background: #f9fbff;
	border-top: 0px;
    font-weight: 900;
    padding: 7px 7px 0px 7px;
    text-align: center;}

#bbpress-forums li.bbp-header ul {
    border-radius: 8px !important;
	padding: 5px;}

#bbpress-forums > ul.bbp-topics > li.bbp-body > ul[id^="bbp-topic-"] {
    margin: 7px 7px 7px 7px !important;}
	
#bbpress-forums > ul.bbp-topics {
    background: #f9fbff !important;
	padding: 5px;
    border: 1px solid #cee1ef !important;}	
	
/* Tutti i link dentro il grande box dei topic: hover giallo smooth */
#bbpress-forums > ul.bbp-topics a {
    transition: color 0.5s ease !important;}

#bbpress-forums > ul.bbp-topics a:hover {
    color: #f49b00 !important;}	
	
/* ============================================================
   BLOCCO RISPOSTE AI TOPIC NEI FORUM (pagina topic)
   ============================================================ */

/* 1) Contenitore: bordo + sfondo uniforme */
#bbpress-forums ul.bbp-replies {
    border: 1px solid #cee1ef !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #f9fbff !important;}

/* 2) Tutto il contenuto ha sfondo azzurro (il bianco di default viene annullato) */
#bbpress-forums ul.bbp-replies li,
#bbpress-forums ul.bbp-replies div,
#bbpress-forums ul.bbp-replies article,
#bbpress-forums ul.bbp-replies .bp_group,
#bbpress-forums ul.bbp-replies .bbp-reply-header,
#bbpress-forums ul.bbp-replies .bbp-reply-content,
#bbpress-forums ul.bbp-replies .bbp-reply-author,
#bbpress-forums ul.bbp-replies .bbp-meta {
    background: #f9fbff !important;
    background-color: #f9fbff !important;}

/* 3) Header e footer 10% più scuri di #f9fbff */
#bbpress-forums ul.bbp-replies > li.bbp-header,
#bbpress-forums ul.bbp-replies > li.bbp-footer {
    background: #cee1ef !important;
    background-color: #cee1ef !important;
    border-color: #cee1ef !important;}
	
#bbpress-forums li.bbp-footer .bbp-forum-content, #bbpress-forums li.bbp-footer .bbp-reply-content, #bbpress-forums li.bbp-footer .bbp-search-content, #bbpress-forums li.bbp-footer .bbp-topic-content, #bbpress-forums li.bbp-header .bbp-forum-content, #bbpress-forums li.bbp-header .bbp-reply-content, #bbpress-forums li.bbp-header .bbp-search-content, #bbpress-forums li.bbp-header .bbp-topic-content {
    background: #cee1ef !important;}	

#bbpress-forums li.bbp-footer .bbp-forum-author, #bbpress-forums li.bbp-footer .bbp-reply-author, #bbpress-forums li.bbp-footer .bbp-search-author, #bbpress-forums li.bbp-footer .bbp-topic-author, #bbpress-forums li.bbp-header .bbp-forum-author, #bbpress-forums li.bbp-header .bbp-reply-author, #bbpress-forums li.bbp-header .bbp-search-author, #bbpress-forums li.bbp-header .bbp-topic-author {
    background: #cee1ef !important;}	

/* 4) Linea verticale tra autore (sx) e post (dx) — solo nei reply, non in header/footer */
#bbpress-forums ul.bbp-replies li.bbp-body .bbp-reply-author {
    border-right: 1px solid #cee1ef !important;
    padding-right: 10px;}

/* 5) Link interni: giallo in hover smooth 0.5s (come pagina "Crea nuovo topic") */
#bbpress-forums ul.bbp-replies a {
    transition: color 0.5s ease !important;}
#bbpress-forums ul.bbp-replies a:hover {
    color: #f49b00 !important;}

/* 6) TinyMCE: colora SOLO il contenitore ESTERNO, la textarea resta bianca */
#bbpress-forums fieldset.bbp-form {
    background: #f9fbff !important;
	border: 1px solid #cee1ef !important;}		
	
	
/* ============================================================
   BLOCCO TOPIC NEI FORUM DEL PROFILO — TESTATA A LARGHEZZA PIENA
   ============================================================ */

/* 1) Contenitore principale dei topic */
#bbpress-forums [id^="bbp-user-"] .bbp-user-section > ul.bbp-topics {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #f9fbff !important;
    padding: 5px !important;
    border: 1px solid #cee1ef !important;
    border-radius: 8px !important;
    margin: 0 !important;
    list-style: none !important;
    overflow: visible !important;
}

/* 2) Header e footer: block, float annullato, larghezza piena */
#bbpress-forums [id^="bbp-user-"] .bbp-user-section > ul.bbp-topics > li.bbp-header,
#bbpress-forums [id^="bbp-user-"] .bbp-user-section > ul.bbp-topics > li.bbp-footer {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 7px 7px 0 7px !important;
    list-style: none !important;
    background: #f9fbff !important;
    border-top: 0 !important;
    font-weight: 900 !important;
    text-align: center !important;
}

/* 3) Barra dei titoli (Topic / Partecipanti / Post / Ultimo articolo) */
#bbpress-forums [id^="bbp-user-"] .bbp-user-section > ul.bbp-topics > li.bbp-header > ul.forum-titles {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 5px !important;
    border-radius: 8px !important;
    background: #f9fbff !important;
    list-style: none !important;
    overflow: hidden !important;
}

/* 4) Colonne interne: annulla eventuali float/fixed-width che
      impediscono alla riga di riempire il 100% */
#bbpress-forums [id^="bbp-user-"] .bbp-user-section > ul.bbp-topics > li.bbp-header > ul.forum-titles > li {
    box-sizing: border-box !important;
    list-style: none !important;
}

/* 5) Singole righe-topic: mantengono il loro margin di 7px */
#bbpress-forums [id^="bbp-user-"] .bbp-user-section > ul.bbp-topics > li.bbp-body > ul[id^="bbp-topic-"] {
    margin: 7px !important;
    box-sizing: border-box !important;
}

/* 6) Hover giallo smooth su tutti i link dentro il box dei topic */
#bbpress-forums [id^="bbp-user-"] .bbp-user-section > ul.bbp-topics a {
    transition: color 0.5s ease !important;
}
#bbpress-forums [id^="bbp-user-"] .bbp-user-section > ul.bbp-topics a:hover {
    color: #f49b00 !important;}	
	


/* --------------------------------------------------------------------- */
/* --- SCHEDA FORUM/TOPIC DEI GRUPPI - CAMBIATO ORDINE DEGLI OGGETTI --- */
/* --------------------------------------------------------------------- */
#bbpress-forums {
    display: flex;
    flex-direction: column;}
	
/* -2. Descrizione TOPIC in cima (nella pagina del topic) */
#bbpress-forums > .bbp-template-notice:has(.bbp-topic-description) {
    order: -2 !important;
    margin-bottom: 20px;}	
		
/* -1. Metti la descrizione del forum IN CIMA (sopra tutto) */
#bbpress-forums > .bbp-template-notice:has(.bbp-forum-description) {
    order: -1 !important;
    margin-bottom: 20px;}	
	
/* 1. Elementi in alto (Titoli, Breadcrumbs, ecc. restano a 0 o initial) */
#bbpress-forums > .bbp-breadcrumb {
    order: 1;}
	




/* 3. Avvisi/Notizie (es. "Devi essere loggato") */
#bbpress-forums > .bbp-template-notice {
    order: 3;
    margin-bottom: 20px;}
	
/* 4. Paginazione che precede il form "Crea nuovo topic" = quella in fondo */
#bbpress-forums > .bbp-pagination:has(+ #new-topic-0) {
    order: 4 !important;
    margin-top: 20px;}	

/* 5. Paginazione Superiore */
#bbpress-forums > .bbp-pagination:first-of-type {
    order: 5;
    margin-bottom: 15px;}

/* 6. Lista dei Topic (Il corpo centrale) */
#bbpress-forums > ul.bbp-topics {
    order: 6;}

/* 7. Paginazione Inferiore */
#bbpress-forums > .bbp-pagination:last-of-type {
    order: 7;
    margin-top: 20px;}
	
/* 8. Form CREA NUOVO TOPIC */
#bbpress-forums > #new-topic-0 {
    order: 8;
    margin-bottom: 30px;}	
	
	
/* ============================================================
   REGOLE SPECIFICHE PER LA PAGINA DI UN TOPIC
   ============================================================ */

/* 1) Azioni in cima: Iscriviti, Aggiungi ai preferiti, Taggato */
#bbpress-forums:has(ul.bbp-replies) > #subscription-toggle { order: 1; }
#bbpress-forums:has(ul.bbp-replies) > #favorite-toggle     { order: 2; }
#bbpress-forums:has(ul.bbp-replies) > .bbp-topic-tags      { order: 3; }



/* 3) Paginazione alta (quella sopra la lista risposte) */
#bbpress-forums:has(ul.bbp-replies) > .bbp-pagination:has(+ ul.bbp-replies) {
    order: 5;
    margin-bottom: 15px;}

/* 4) Lista delle risposte */
#bbpress-forums:has(ul.bbp-replies) > ul.bbp-replies {
    order: 6;}

/* 5) Paginazione bassa (quella prima del form risposta) */
#bbpress-forums:has(ul.bbp-replies) > .bbp-pagination:has(+ .bbp-reply-form) {
    order: 7;
    margin-top: 20px;}	
	
/* 8) Form risposta (TinyMCE) subito sotto i tre pulsanti */
#bbpress-forums:has(ul.bbp-replies) > .bbp-reply-form {
    order: 8;
    margin-bottom: 20px;}	
	
	
/* NUMERI DI PAGINAZIONE */	
#bbpress-forums .bbp-pagination-links a, #bbpress-forums .bbp-pagination-links span.current {
    display: block;
    float: left;
	font-weight: 900;
	min-height: 33px;
	min-width: 33px;
    font-size: 13px;
	line-height: 30px;
	text-align: center;
    margin-left: 5px;
    border: 1px solid #7b5aa3;
    border-radius: 999px;
    background-color: #fff;
    color: inherit;
    text-decoration: none;
	transition: color 0.5s ease, border 0.5s ease;}
	
#bbpress-forums .bbp-pagination-links a:hover {
    border: 1px solid #f49b00;
    color: #f49b00;
	background-color: #fff;}	
	
#bbpress-forums .bbp-pagination-links span.current{
    border: 2px solid #5a3a7d ;
	color: #fff;
	background-color: #7b5aa3;}		
	
	
/* NUMERI DI PAGINAZIONE PICCOLINI */
#bbpress-forums .bbp-topic-pagination a {
    font-size: 12px;
    font-weight: 900;
	text-align: center;
    border: 1px solid #7b5aa3;
    border-radius: 999px;
    background-color: #fff;
    color: inherit;
    text-decoration: none;
	transition: color 0.5s ease, border 0.5s ease;
    margin: 0;
    padding: 4px 8px;
    display: inline;
    text-decoration: none;}

#bbpress-forums .bbp-pagination-links a:hover, #bbpress-forums .bbp-pagination-links span.current, #bbpress-forums .bbp-topic-pagination a:hover {
    border: 1px solid #f49b00 ;
    color: #f49b00;
	background-color: #fff;}	
	
#bbpress-forums .bbp-pagination-links span.current{
    border: 2px solid #5a3a7d ;
	color: #fff;
	background-color: #7b5aa3;}		


/* 1. Nascondi tutti i conteggi per sicurezza */
.bbp-pagination-count {
    display: none !important;}

/* 2. Mostra solo il conteggio che si trova DOPO la lista dei topic */
/* Questo usa il selettore "fratello generico" (~) */
ul.bbp-topics ~ .bbp-pagination .bbp-pagination-count {
    display: block !important;}		


/* MENU ORIZZONTALE IN MEDIA IN BPPRESS*/
@media screen and (min-width: 46.8em) {
    .bp-single-vert-nav .item-body:not(#group-create-body) #subnav:not(.tabbed-links) li.current a {
        color: #09264a !important;
		    background-color: #ece4f4 !important;
			border-bottom: solid 1px #ddd;}
    .bp-single-vert-nav .item-body:not(#group-create-body) #subnav:not(.tabbed-links) li a {
        color: #09264a !important;}
    .bp-single-vert-nav .item-body:not(#group-create-body) #subnav:not(.tabbed-links) li a:hover,
    .bp-single-vert-nav .item-body:not(#group-create-body) #subnav:not(.tabbed-links) li.current a:hover {
        color: #09264a !important;
		background-color: #ece4f4 !important;}}

.buddypress-wrap .bp-navs li.current a .count, .buddypress-wrap .bp-navs li.selected a .count, .buddypress_object_nav .bp-navs li.current a .count, .buddypress_object_nav .bp-navs li.selected a .count {
    background-color: #09264a !important;
	color: #fff !important;
	border-radius: 999px;}	
	
	
#buddypress.buddypress-wrap .bp-navs ul.bp-priority-object-nav-nav-items li span:hover, #buddypress.buddypress-wrap .bp-navs ul.bp-priority-subnav-nav-items li span:hover {
	color: #fff !important;}
	

.bp-navs ul li .count, .buddypress-wrap .bp-navs li.dynamic a .count {
    background-color: #09264a;
    color: #fff;}

@media screen and (min-width: 46.8em) {
    .bp-single-vert-nav .bp-navs.vertical li span {
        background: #09264a;
        border-radius: 999px;}}

@media screen and (min-width: 46.8em) {
    .bp-single-vert-nav .item-body:not(#group-create-body) #subnav:not(.tabbed-links) li a {
    margin-right: 8px !important;}
}   /* <-- FIX: graffa di chiusura @media che mancava.
           Prima il browser la chiudeva automaticamente a fine foglio,
           trascinandosi dentro TUTTE le regole successive (pulsanti
           creazione gruppo, menu inviti, numeri paginazione piccoli,
           ...) che quindi non si applicavano su mobile. */
	
/* PULSANTI NELLA PAGINA DI CREAZIONE DI UN GRUPPO */	
.buddypress .entry-content ol, .buddypress .entry-content ul {
	padding: 10px;
    background-color: #fff !important;
    border-radius: 8px;
    border: 1px solid #ddd;
	border-bottom: 1px solid #ddd !important;}
	
.groups.group-create .buddypress-wrap .item-body .group-create-buttons li.current a {
    color: #5a3a7d;
	text-decoration: underline !important;}	


/* ============================================================
   v43: WRAPPER POST PRINCIPALE + RIGA LIKE IN ALTO
   ------------------------------------------------------------
   Nessuno sfondo, nessun bordo, nessuna ombra.
   Struttura a griglia:
     - riga like/condivisione (in cima)
     - avatar + header (riga 2)
     - activity-inner (testo + media)
   Il resto (activity-meta, commenti) resta fuori dal wrapper.
   ============================================================ */
body #buddypress .activity-list .activity-item .valora-main-post-wrapper,
body .activity-list .activity-item .valora-main-post-wrapper {
    position: relative !important;
    border: 0 !important;
    padding: 16px 18px 16px 18px !important;
    margin: 10px 0 20px 0 !important;
    box-sizing: border-box !important;
    transition: none !important;

    display: grid !important;
    grid-template-columns: auto 1fr !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    align-items: flex-start !important;
}

/* Riga like/condivisione in cima (row 1, full width) */
body .valora-main-post-wrapper > .valora-reaction-share-row,
body .valora-main-post-wrapper .valora-reaction-share-row {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    margin: 0 0 30px 0 !important;
    padding: 0 0 10px 0 !important;
    border-top: 0 !important;
    border-bottom: 1px solid #ececec !important;
    width: 100% !important;
    clear: both !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Avatar (row 2, col 1) */
body .valora-main-post-wrapper > .activity-avatar {
    grid-column: 1 !important;
    grid-row: 2 !important;
    flex: 0 0 auto !important;
    float: none !important;
    margin: 0 !important;
    margin-top: 0 !important;
}

/* Header (row 2, col 2) */
body .valora-main-post-wrapper > .activity-header,
body .valora-main-post-wrapper > header.activity-header {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 0 0 6px 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    align-self: center !important;
    min-width: 0 !important;
}

/* Inner / testo+media (row 3, full width) */
body .valora-main-post-wrapper > .activity-inner {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
}


/* Nessun margin residuo sotto il wrapper */
body .valora-main-post-wrapper + .activity-meta,
body .activity-content > .valora-main-post-wrapper ~ .activity-meta,
body .activity-content > .valora-main-post-wrapper ~ .activity-comments,
body .activity-item > .valora-main-post-wrapper ~ .activity-meta,
body .activity-item > .valora-main-post-wrapper ~ .activity-comments {
    margin-top: 0 !important;
}

/* Primo media dentro il wrapper: niente margin-top */
body .valora-main-post-wrapper > .mio-pdf-attivita-preview:first-child,
body .valora-main-post-wrapper > .mio-voice-attivita-preview:first-child,
body .valora-main-post-wrapper > .mio-video-attivita-preview:first-child,
body .valora-main-post-wrapper > .mio-foto-attivita-preview:first-child {
    margin-top: 0 !important;
}

/* ============================================================
   SEPARATORE TRA MEDIA MULTIPLI — linea sottile #ececec
   Larga quanto i media (--valora-media-w), non full-width.
   Il selettore ~ garantisce che la linea compaia solo tra
   media consecutivi (mai sul primo, mai in coda).
   ============================================================ */
body :is(.mio-pdf-attivita-preview,
         .mio-voice-attivita-preview,
         .mio-video-attivita-preview,
         .mio-foto-attivita-preview)
~ :is(.mio-pdf-attivita-preview,
      .mio-voice-attivita-preview,
      .mio-video-attivita-preview,
      .mio-foto-attivita-preview) {
    position: relative !important;
    margin-top: 40px !important;
    padding-top: 50px !important;
    border-top: 0 !important;
}
body :is(.mio-pdf-attivita-preview,
         .mio-voice-attivita-preview,
         .mio-video-attivita-preview,
         .mio-foto-attivita-preview)
~ :is(.mio-pdf-attivita-preview,
      .mio-voice-attivita-preview,
      .mio-video-attivita-preview,
      .mio-foto-attivita-preview)::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: var(--valora-media-w) !important;
    max-width: 100% !important;
    height: 7px !important;
    background: #b4cde0 !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
}

/* ============================================================
   2) STATI SPENTI/ACCESI – CUORE (Snippet 5 v10)
   ============================================================ */
.valora-reaction-wrap .valora-reaction-emoji {
    transition: filter 0.35s ease, opacity 0.35s ease !important;
}
.valora-reaction-wrap:not(.has-reacted) .valora-reaction-emoji {
    filter: grayscale(100%) !important;
    opacity: 0.55 !important;
}
.valora-reaction-wrap:not(.has-reacted) .valora-reaction-trigger:hover .valora-reaction-emoji {
    filter: grayscale(100%) !important;
    opacity: 0.85 !important;
}
.valora-reaction-wrap.has-reacted .valora-reaction-emoji {
    filter: none !important;
    opacity: 1 !important;
}
#valora-global-lightbox .valora-reaction-wrap:not(.has-reacted) .valora-reaction-emoji {
    filter: grayscale(100%) brightness(1.7) !important;
    opacity: 0.75 !important;
}
#valora-global-lightbox .valora-reaction-wrap.has-reacted .valora-reaction-emoji {
    filter: none !important;
    opacity: 1 !important;
}

/* ============================================================
   3) STATI SPENTI/ACCESI – SHARE (Snippet 6 v2)
   ============================================================ */
.valora-share-wrap:not(.has-shared) .valora-share-trigger {
    color: #b0b0b0 !important;
}
.valora-share-wrap:not(.has-shared) .valora-share-trigger:hover {
    color: #f49b00 !important;
    transform: scale(1.05);
}
.valora-share-wrap.has-shared .valora-share-trigger {
    color: #5a3a7d !important;
}
.valora-share-wrap.has-shared .valora-share-trigger:hover {
    color: #f49b00 !important;
    transform: scale(1.05);
}
#valora-global-lightbox .valora-share-wrap:not(.has-shared) .valora-share-trigger {
    color: rgba(255, 255, 255, 0.4) !important;
}
#valora-global-lightbox .valora-share-wrap.has-shared .valora-share-trigger {
    color: #ffffff !important;
}

.valora-share-count {
    color: #adafaf !important;
    font-weight: 100 !important;
}
#valora-global-lightbox .valora-share-count {
    color: #ffffff !important;
}

/* ============================================================
   4) FORM COMMENTO IN BACHECA – LAYOUT GRID (Snippet 2 v3)
   ============================================================ */
.ac-form .ac-reply-content,
form.ac-form .ac-reply-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
    align-items: end !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.ac-form .ac-reply-content .ac-textarea,
form.ac-form .ac-reply-content .ac-textarea {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
}
.ac-form .ac-reply-content .ac-textarea textarea,
form.ac-form .ac-reply-content .ac-textarea textarea {
    width: 100% !important;
    box-sizing: border-box !important;
	height: 100px;
}
.ac-form .ac-reply-content .ac-reply-actions,
form.ac-form .ac-reply-content .ac-reply-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    gap: 6px !important;
    align-items: flex-end !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
}
.ac-form .ac-reply-content .valora-comment-media-row,
form.ac-form .ac-reply-content .valora-comment-media-row {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
}
.ac-form .ac-reply-content .valora-comment-media-row > .rtm-upload-button-wrapper,
form.ac-form .ac-reply-content .valora-comment-media-row > .rtm-upload-button-wrapper {
    display: inline-block !important;
    margin: 0 !important;
}
.ac-form > .rtm-upload-button-wrapper,
form.ac-form > .rtm-upload-button-wrapper {
    display: inline-block !important;
    margin-top: 6px !important;
}

@media (max-width: 600px) {
    .ac-form .ac-reply-content,
    form.ac-form .ac-reply-content {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
    }
    .ac-form .ac-reply-content .ac-reply-actions,
    form.ac-form .ac-reply-content .ac-reply-actions {
        grid-column: 1 !important;
        grid-row: 2 !important;
        justify-content: flex-end !important;
    }
    .ac-form .ac-reply-content .valora-comment-media-row,
    form.ac-form .ac-reply-content .valora-comment-media-row {
        grid-row: 3 !important;
    }
}
/* ============================================================
   5) FORM COMMENTO IN LIGHTBOX
   Riga 1: avatar + textbox (largo) + Invia a destra
   Riga 2: i 4 pulsanti upload a sinistra, sotto il textbox, distanti 15px
   ============================================================ */
#valora-global-lightbox .lb-comment-form {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px 10px !important;
}
#valora-global-lightbox .lb-comment-form > img,
#valora-global-lightbox .lb-comment-form img.avatar {
    flex: 0 0 auto !important;
}
#valora-global-lightbox .lb-comment-form input[type="text"] {
    flex: 1 1 0% !important;
    min-width: 120px !important;
}
#valora-global-lightbox .lb-comment-form > button {
    flex: 0 0 auto !important;
}
/* a capo prima dei 4 pulsanti + rientro pari all avatar (28px) */
#valora-global-lightbox .lb-comment-form::before {
    content: "" !important;
    order: 8 !important;
    flex: 0 0 100% !important;
    height: 0 !important;
}
#valora-global-lightbox .lb-comment-form::after {
    content: "" !important;
    order: 9 !important;
    flex: 0 0 28px !important;
    height: 0 !important;
} 
/* 4 pulsanti: 10px di gap + 5px di margine = 15px tra l uno e l altro */
#valora-global-lightbox .lb-comment-form > .rtm-upload-button-wrapper,
#valora-global-lightbox .lb-comment-form > .valora-comment-media-row {
    order: 10 !important;
    flex: 0 0 auto !important;
    display: inline-block !important;
    margin: 6px 5px 0 0 !important;
}

/* ============================================================
   6) BADGE TIPO MEDIA – ellipsis per titoli PDF lunghi
   ============================================================ */
.valora-media-type-icon,
.album-type-icon {
    max-width: calc(100% - 20px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.valora-media-type-icon .dashicons,
.album-type-icon .dashicons {
    color: #ffffff !important;
    flex-shrink: 0 !important;
}
.valora-media-type-icon .valora-media-type-label,
.album-type-icon .valora-album-type-label {
    display: inline-block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 160px !important;
    vertical-align: middle !important;
}

/* ============================================================
   7) Z-INDEX – wrapper post e form commenti non devono tagliare
   picker reaction / menu share / popup album.
   ============================================================ */
body .valora-main-post-wrapper,
body .ac-form .ac-reply-content,
body form.ac-form .ac-reply-content {
    overflow: visible !important;
}
body .valora-main-post-wrapper .valora-reaction-wrap,
body .valora-main-post-wrapper .valora-share-wrap {
    position: relative !important;
    z-index: 5 !important;
}
body .valora-main-post-wrapper .valora-reaction-picker,
body .valora-main-post-wrapper .valora-share-menu {
    z-index: 999999 !important;
}

/* ============================================================
   8) BLOCCO "+ Aggiungi a raccolta" (post e commenti)
   - sotto la didascalia, distanza = quella tra titolo e didascalia (30px)
   - stesso font/peso/interlinea di titolo e didascalia, in corsivo
   ============================================================ */
body .mio-album-per-media,
body .activity-comments .mio-album-per-media {
    display: block !important;
    position: relative !important;
    z-index: 30 !important;
    pointer-events: auto !important;
    margin: var(--valora-gap-title-caption, 30px) 0 0 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 600 !important;
    font-style: italic !important;
    line-height: 1.5 !important;
    width: var(--valora-media-w, 600px) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
body .mio-album-per-media a,
body .mio-album-per-media .mio-album-per-media-trigger,
body .activity-comments .mio-album-per-media a,
body .activity-comments .mio-album-per-media .mio-album-per-media-trigger {
    color: #5a3a7d !important;
    text-decoration: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 600 !important;
    font-style: italic !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    display: inline-block !important;
    margin: 0 8px 0 0 !important;
    transition: color .25s ease !important;
    pointer-events: auto !important;
}
body .mio-album-per-media a:hover,
body .mio-album-per-media .mio-album-per-media-trigger:hover,
body .activity-comments .mio-album-per-media a:hover,
body .activity-comments .mio-album-per-media .mio-album-per-media-trigger:hover {
    color: #f49b00 !important;
}
body .mio-album-per-media .mio-album-per-media-current,
body .activity-comments .mio-album-per-media .mio-album-per-media-current {
    color: #5a3a7d !important;
    font-weight: 600 !important;
    font-style: italic !important;
    margin-right: 4px !important;
}

/* ============================================================
   9) MATITE – assicura sempre puntatori cliccabili
   ============================================================ */
.mio-rinomina-media-btn,
.mio-didascalia-btn,
.valora-post-pencil {
    pointer-events: auto !important;
    cursor: pointer !important;
}
body .mio-media-nome-label .mio-rinomina-media-btn {
    color: #09264a !important;
    transition: color .15s ease !important;
}
body .mio-media-nome-label .mio-rinomina-media-btn:hover {
    color: #f49b00 !important;}
		



