/* Intestazione della Pagina */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 10px;
}

.page-title {
    font-size: 28px; /* Dimensione ridotta ma visibile */
    font-weight: bold;
    color: #2c3e50; /* Blu scuro per il titolo */
    margin-bottom: 10px;
}

.page-description {
    font-size: 16px;
    color: #555; /* Grigio scuro per il testo */
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto; /* Centra il testo */
}

/* Contenitore principale */
.financial-products-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Spaziatura tra i box */
    justify-content: space-between; /* Distribuzione uniforme dei box */
    max-width: 98%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

/* Singolo Box */
.table-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    width: calc(49% - 2px);
    position: relative;
    padding: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    overflow: hidden;
    color: #333;
    margin-bottom: 20px;
}

/* Layout espanso */
.table-container.expanded {
    width: 100%;
}

/* Colori dei box */
.box-color-1 {
    background-color: #eef2f9;
    border-color: #d4e0f5;
}

.box-color-2 {
    background-color: #f9f3e8;
    border-color: #eadbc5;
}

.box-color-3 {
    background-color: #f1f8e9;
    border-color: #d2e4c8;
}

.box-color-4 {
    background-color: #fbe9f4;
    border-color: #e6c5da;
}

.box-color-5 {
    background-color: #f9ecec;
    border-color: #e8d0d0;
}

.box-color-6 {
    background-color: #f4f6f9;
    border-color: #d4d4d4;
}

/* Titolo della Categoria */
.category-title {
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    color: #333;
    font-size: 20px;
}

/* Tabella */
.financial-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
    margin: 0 auto;
    background: #fff;
    box-sizing: border-box;
}

/* Celle della Tabella */
.financial-table th,
.financial-table td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: left;
}

/* Intestazioni della Tabella */
.financial-table th {
    background: #2c3e50;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
}

/* Righe Alternate */
.financial-table tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

.financial-table tbody tr:nth-child(even) {
    background: white;
}

/* Mostra solo 6 colonne inizialmente */
.financial-table th:nth-child(n+7),
.financial-table td:nth-child(n+7) {
    display: none;
}

/* Mostra tutte le colonne e i valori quando espanso */
.table-container.expanded .financial-table th,
.table-container.expanded .financial-table td {
    display: table-cell;
    visibility: visible;
    opacity: 1;
}

/* Centra la tabella nel box */
.financial-table-wrapper {
    margin: 0 auto;
    padding-bottom: 20px;
    box-sizing: border-box;
}

/* Pulsante Espansione */
.expand-button {
    display: inline-block;
    background: #2980b9;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 14px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
    width: calc(100% - 80px);
    margin-left: 40px !important;
}

.expand-button:hover {
    background: #1c6690;
    transform: scale(1.05);
}

/* Pulsanti di Voto */
.vote-button {
    background-color: #27ae60;
    color: #fff;
    border: none;
    padding: 6px 10px;
    margin: 3px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 11px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.vote-button:hover {
    background-color: #1e8449;
    transform: scale(1.05);
}


.wp-block-kubio-copyright p {
    margin: 0;
    display: none;
}
.wp-block-kubio-section [data-kubio]:not([class*=h-col-]), .wp-block-kubio-section.wp-block {
    max-width: unset !important;
    background: rgba(var(--kubio-color-6-variant-4), 1);
    color: #fff;
}
/* CSS per il lucchetto */

td.locked {
    display: table-cell !important; /* Forza la visualizzazione */
    visibility: visible !important; /* Forza la visibilità */
    text-align: center; /* Centra il contenuto */
    font-weight: bold;
    color: #333; /* Colore del testo */
    background-color: #f9f9f9; /* Sfondo leggermente diverso */
}


td.locked i {
    color: #555;
}


.lock-icon {
    font-size: 20px;
    color: #ff4500;
}
.lock-popup {
    /* Stile elegante */
}
.locked {
    text-align: center;
}

.fa-lock {
    font-size: 14px;
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.popup-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.popup-message {
    font-size: 14px;
    margin-bottom: 20px;
}

.popup-button {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}
.custom-tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    display: none;
    white-space: nowrap;
}

  /* Stile form registrazione */ 

.auth-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    color: white; /* Testo chiaro */
}



.auth-box h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white; /* Testo chiaro */
}

.auth-box p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8); /* Testo leggermente più chiaro */
}

.modern-form .form-group {
    margin-bottom: 15px;
    position: relative;
}

.modern-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
    color: white; /* Testo chiaro */
}

.modern-form input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.modern-form input::placeholder {
    color: rgba(255, 255, 255, 0.6); /* Testo del placeholder chiaro */
}

.modern-form input:focus {
    outline: none;
    border-color: #007BFF;
    background: rgba(255, 255, 255, 0.2);
}

.auth-button {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
    width: 100%; /* Larghezza massima */
}

.auth-button:hover {
    background-color: #0056b3;
}

.forgot-password p {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.forgot-password a {
    color: #007BFF;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.all-products-container {
    margin: 20px auto;
    max-width: 1200px;
}

.filters-container {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.filters-container form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filters-container label {
    margin-right: 5px;
}

.filters-container input,
.filters-container select {
    padding: 5px;
    font-size: 14px;
}

.financial-table {
    width: 100%;
    border-collapse: collapse;
}

.financial-table th, .financial-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-weight: 400;
}

.financial-table th {
    
    font-weight: bold;
}

.hidden {
    text-align: center;
}


/* Stile generale per la colonna delle votazioni */
.drop-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Spazio tra le medaglie */
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    position: relative;
    transition: background-color 0.3s ease;
}

.drop-zone.drag-over {
    background-color: #e3f7ff;
    border-color: #007cba;
}

/* Contenitore dei voti */
.vote-counts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Stile per ogni contatore di voti */
.vote-count {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

/* Immagini delle medaglie */
.vote-count img {
    width: 25px; /* Dimensione delle medaglie */
    height: 25px;
    display: block;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

.vote-count img[style*="opacity: 0.5"] {
    filter: grayscale(100%); /* Colore desaturato per medaglie trasparenti */
}

/* Stile per i numeri accanto alle medaglie */
.vote-count span {
    margin-top: 5px;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

/* Area delle icone di votazione */
.voting-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    margin-top: -10px;
    margin-right: 15px;
}

.voting-icon {
    cursor: grab;
    transition: transform 0.2s ease;
}

.voting-icon:active {
    cursor: grabbing;
    transform: scale(1.1); /* Effetto visivo quando si trascina l'icona */
}

.voting-icon img {
    width: 50px; /* Dimensione delle icone */
    height: 50px;
}
/* 🔥 Medaglie già usate dall'utente */
.voting-icon.icon-used {
    opacity: 1 !important; /* Sempre visibili */
    border: 2px solid gold; /* Bordo giallo fisso */
}

/* 🔥 Medaglie non ancora usate */
.voting-icon.icon-disabled {
    opacity: 0.5; /* Trasparenza sulle icone non usate */
    border: none;
}

/* 🔥 Assicura che il link "Votato!" resti sempre visibile */
.voted-product-link-container {
    display: block;
    font-weight: bold;
    color: #d4a017; /* Giallo scuro */
    text-align: center;
    margin-top: 5px;
}


.table-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 2px solid #ddd;
    border-radius: 8px 8px 0 0;
}

.voting-icons-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.voting-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: grab;
    transition: transform 0.2s ease-in-out;
}

.voting-icon:hover {
    transform: scale(1.1);
}

.voted-product-link-container {
    font-size: 12px;
    color: #555;
}


/* Tooltip per le icone bloccate */
.locked-icon {
    color: #999;
    text-decoration: none;
    position: relative;
}

.locked-icon:hover {
    text-decoration: underline;
}

/* Tooltip personalizzato */
.custom-tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    white-space: nowrap;
    display: none;
}

.locked-icon:hover .custom-tooltip {
    display: block;
}
.financial-table td.locked {
    color: #999;
    font-style: italic;
    text-align: center;
    opacity: 0.7;
}

/* Stile per la prima colonna (Posizione) */
.financial-table th:first-child,
.financial-table td:first-child {
    width: 50px; /* Dimezza la larghezza */
    text-align: center; /* Centra il contenuto */
    background-color: #20b2aaf5; /* Sfondo leggermente diverso */
    font-weight: bold; /* Testo in grassetto per evidenziare */
    border-right: 2px solid #e0e0e0; /* Separazione visiva con il resto */
    color: #333; /* Testo più scuro */
    position: relative; /* Per l'icona */
}

.financial-table th:first-child::before {
    content: '\1F3C6'; /* Emoji trofeo (classifica) */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    opacity: 0.3; /* Un effetto trasparente */
    z-index: -1; /* Dietro il testo */
}

.financial-table td:first-child {
    font-size: 1.2em; /* Testo leggermente più grande */
    color: #333; /* Colore per il testo */
}

/* Cambia il testo della prima colonna */
.financial-table th:first-child {
    content: "POS."; /* Modifica il titolo della colonna */
}

/* Stile per la colonna delle medaglie */
.financial-table th:last-child,
.financial-table td:last-child {
    width: 150px; /* Allarga lo spazio per le medaglie */
    text-align: center; /* Centra il contenuto */
}

.financial-table .vote-counts span {
    display: inline-block;
    margin: 0 5px; /* Spaziatura tra le medaglie */
    font-size: 1.1em; /* Testo leggermente più grande */
    color: #333; /* Colore scuro per il testo */
}

.financial-table .vote-counts span img {
    width: 24px; /* Dimensione delle medaglie */
    height: 24px;
    vertical-align: middle; /* Allinea le medaglie con il testo */
    opacity: 0.8; /* Leggermente trasparente */
}

.financial-table .vote-counts span img.inactive {
    opacity: 0.4; /* Maggiore trasparenza per le medaglie senza voti */
}

/* Hover per la colonna posizione */
.financial-table th:first-child:hover,
.financial-table td:first-child:hover {
    background-color: #ececec; /* Cambia colore al passaggio del mouse */
    cursor: pointer;
}

.financial-table-wrapper .voting-icons.right-icons {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.voting-icons.right-icons .voting-icon img {
    width: 40px;
    height: 40px;
    cursor: grab;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.voting-icons.right-icons .voting-icon img:hover {
    transform: scale(1.1);
    opacity: 0.9;
}
.voting-icons-container.hidden-icons {
    display: none;
}

.table-container.expanded .voting-icons-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .financial-products-container {
        display: block;
        padding: 5px;
    }

    .table-container {
        width: 100%;
        margin-bottom: 20px;
        position: relative; /* Necessario per il posizionamento assoluto delle icone */
    }

    .financial-table th, .financial-table td {
        font-size: 10px;
        padding: 5px;
    }

    .financial-table th:first-child,
    .financial-table td:first-child {
        font-size: 12px;
    }

    .expand-button {
        padding: 10px;
        font-size: 12px;
    }



    .voting-icons.right-icons {
        display: none; /* Nascoste inizialmente */
    }

    /* Colonne aggiuntive visibili con espansione */
    .table-container.expanded {
        overflow-x: auto; /* Aggiunge scroll orizzontale */
        white-space: nowrap;
    }

    .table-container.expanded .financial-table {
        width: max-content; /* Permette di vedere le colonne estese chiaramente */
    }

    .table-container.expanded .financial-table th,
    .table-container.expanded .financial-table td {
        display: table-cell;
        min-width: 100px; /* Aggiunge spazio minimo alle colonne per leggibilità */
    }

    .table-container.expanded .voting-icons {
        display: flex; /* Mostra le icone di votazione solo quando espanso */
        position: absolute;
        top: 10px; /* Posiziona sopra la tabella */
        right: 10px; /* Allinea completamente a destra */
        gap: 10px;
        z-index: 10; /* Sopra agli altri elementi */
    }   
    }

} 
#uniqueFinancialTable th:first-child,
#uniqueFinancialTable td:first-child {
    width: 120px; /* Imposta una larghezza per la colonna ISIN */
    white-space: nowrap;
}

#uniqueFinancialTable th,
#uniqueFinancialTable td {
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

#uniqueFinancialTable th {
    background-color: #1e2a38;
    color: white;
}

#uniqueFinancialTable td {
    background-color: #f9f9f9;
}

#uniqueFinancialTable a {
    color: #007bff;
    text-decoration: none;
}

#uniqueFinancialTable a:hover {
    text-decoration: underline;
}

.user-medal {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.medal-icon {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    color: white;
}

.medal-icon.gold {
    background-color: #ffd700; /* Oro */
}

.medal-icon.silver {
    background-color: #c0c0c0; /* Argento */
}

.medal-icon.bronze {
    background-color: #cd7f32; /* Bronzo */
}



.popup-box {
    background: #2c3e50;
    padding: 25px;
    border-radius: 8px;
    
    text-align: center;
    width: 350px;
    color: #fff;
}

.popup-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #ffcc00;
}
/* 🔹 Evidenzia SOLO i prodotti votati dall'utente */
.voted-product {
    border: 3px solid #ffcc00;
    background-color: rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

/* 🔹 Rende semi-trasparenti le medaglie usate */
.voting-icon {
    transition: opacity 0.3s ease-in-out;
}

/* 🔹 Popup moderno */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.voted-product {
    border: 2px solid #FFD700 !important; /* Bordo giallo oro */
    box-shadow: 0 0 10px #FFD700 !important;
}

/* 🔥 Evidenziazione moderna della cella votata */
/* ✨ Evidenziazione delicata della cella votata */
.voted-product-highlight {
    
    border: 2px solid rgba(255, 165, 0, 0.5) !important;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 0px 5px rgba(255, 165, 0, 0.2) !important;
}

/* ✨ Leggero effetto pulsazione per un tocco di dinamismo */
@keyframes softGlow {
    0% { box-shadow: 0px 0px 4px rgba(255, 165, 0, 0.1); }
    50% { box-shadow: 0px 0px 8px rgba(255, 165, 0, 0.3); }
    100% { box-shadow: 0px 0px 4px rgba(255, 165, 0, 0.1); }
}

.voted-product-highlight.animated {
    animation: softGlow 1.8s infinite alternate ease-in-out;
}


/* Stile generale per la tabella */
/* 🌟 Tabella con stile più delicato */
.user-votes-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    border: 1px solid #ddd;
}

.user-votes-table thead {
    background: #f8f9fa;
    color: #333;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.user-votes-table th, 
.user-votes-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.user-votes-table tbody tr:hover {
    background: #f1f1f1;
    transition: background 0.3s ease-in-out;
}

/* 🌟 Stile per le medaglie (delicato, senza colori accesi) */
.vote-badge {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 5px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    color: #555;
}

.vote-badge img {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

/* 🌟 Colorazione più sobria per Gold, Silver e Bronze */
.vote-badge.gold {
    background: #faf2d5;
    border: 1px solid #e2c272;
    color: #a67c00;
}

.vote-badge.silver {
    background: #e8e8e8;
    border: 1px solid #b3b3b3;
    color: #666;
}

.vote-badge.bronze {
    background: #f4e1d2;
    border: 1px solid #d19c66;
    color: #8c6239;
}

/* 🌟 Stile del bottone "Rimuovi" più delicato */
.remove-vote {
    background: #f8f9fa;
    color: #555;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-size: 14px;
}

.remove-vote:hover {
    background: #e9ecef;
    border-color: #ccc;
}

/* 📱 Miglioramenti per mobile */
@media (max-width: 768px) {
    .user-votes-table th, 
    .user-votes-table td {
        padding: 8px;
        font-size: 12px;
    }

    .vote-badge {
        font-size: 12px;
        padding: 3px 8px;
    }

    .remove-vote {
        font-size: 12px;
        padding: 4px 8px;
    }
}
 .widefat tfoot tr td, .widefat tfoot tr th, .widefat thead tr td, .widefat thead tr th {
    font-size: 13px !important;
    font-weight: 600 !important;
}
/* 🌟 Contenitore Profilo Utente */
/* 🌟 Contenitore Profilo Utente */
.user-profile-container {
    max-width: 1024px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.08);
    font-family: 'Arial', sans-serif;
    border: 1px solid #ddd;
}

/* 🌟 Titolo della sezione */
/* 🌟 Contenitore generale */
.user-profile-container {
    max-width: 1024px;
    margin: 40px auto;
    font-family: 'Arial', sans-serif;
}

/* 🌟 Titolo della sezione */
.user-profile-container h1 {
    font-size: 22px;
    color: #333;
    text-align: left;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid #0073aa; /* Linea sottile per separare il titolo */
}

/* 🌟 Stile per il form */
.user-profile-container form {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Distanza tra i campi */
}

/* 🌟 Etichette */
.user-profile-container label {
    font-weight: bold;
    margin-bottom: 6px;
    color: #444;
    display: block;
    font-size: 15px;
}

/* 🌟 Input e Select migliorati */
.user-profile-container input,
.user-profile-container select,
.user-profile-container textarea {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    background: #fff;
    color: #333;
    margin-bottom: 10px; /* Distanza tra i campi */
}

.user-profile-container input:focus,
.user-profile-container select:focus,
.user-profile-container textarea:focus {
    border-color: #0073aa;
    background: #fafafa;
    outline: none;
}

/* 🌟 Pulsante di Salvataggio */
.user-profile-container .save-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    width: auto;
    margin-top: 15px;
}

.user-profile-container .save-button:hover {
    background: #005d88;
}

/* 🌟 Messaggio di conferma */
.profile-updated-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin-top: 15px;
    font-size: 14px;
}

/* 📱 Responsive miglioramenti per mobile */
@media (max-width: 768px) {
    .user-profile-container {
        padding: 0 15px;
    }

    .user-profile-container h1 {
        font-size: 20px;
    }

    .user-profile-container .save-button {
        font-size: 14px;
        padding: 10px;
    }
}

/* 🌟 Contenitore generale */


#wpfooter {
 display: none !important;
}
#wpadminbar #wp-admin-bar-wp-logo>.ab-item {
    display: none;
}
.drag-over {
    border: 2px dashed #ff9800;
    background-color: rgba(255, 152, 0, 0.1);
}

.voting-icon, .vote-count img {
    cursor: grab;
}

.voting-icon:active, .vote-count img:active {
    cursor: grabbing;
}
.vote-count {
    cursor: grab;
    transition: transform 0.2s ease-in-out;
}
.vote-count:active {
    transform: scale(1.2);
}
.drag-over {
    background-color: rgba(255, 215, 0, 0.2); /* Giallo trasparente */
    border: 2px dashed gold;
}
 .refresh-votes-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: 8px;
    padding: 4px;
    transition: transform 0.2s ease-in-out;
}

.refresh-votes-btn:hover {
    transform: rotate(20deg);
}

.voted {
    background-color: rgba(255, 223, 0, 0.3); /* Giallo chiaro per evidenziare */
    border: 2px solid gold;
    transition: all 0.3s ease-in-out;
}

.medal-used {
    opacity: 0.4; /* Riduce la visibilità delle medaglie già usate */
    pointer-events: none; /* Disabilita il drag sulle medaglie già assegnate */
}
.vote-summary-box {
    position: fixed;
    top: 50px;
    right: 20px;
    background: white;
    border: 2px solid #ffd700;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    width: 250px;
    font-size: 14px;
    z-index: 1000;
}

.vote-summary-box h4 {
    margin: 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.vote-summary-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vote-summary-box li {
    padding: 5px 0;
}



/* Nella pagina Ricerca (ID 145446), mostra TUTTE le colonne */
body.page-id-145446 .financial-table th,
body.page-id-145446 .financial-table td {
    display: table-cell;
}  
  
/* ❌ NASCONDE IL TASTO SOLO NELLA RICERCA */
body.page-id-145446 .expand-button {
    display: none !important;
}  
/* 🌍 APPLICA SOLO ALLA PAGINA RICERCA */

body.page-id-145446 {

    .financial-products-container {
        text-align: center;
        padding: 20px;
        margin-bottom: 30px;
    }

    .financial-products-container h2 {
        font-size: 28px;
        font-weight: bold;
        color: #333;
        margin-bottom: 15px;
    }

    /* 📌 FILTRI - FORM DI RICERCA */
    .filters-container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
        width: 100%;
    }

    /* 🔎 INPUT RICERCA */
    #searchInput {
        padding: 14px;
        font-size: 16px;
        width: 300px;
        border-radius: 6px;
        outline: none;
        transition: border-color 0.3s;
    }

    /* 📊 SELETTORE CATEGORIA */
    #categoryFilter {
        padding: 14px;
        font-size: 16px;
        width: 300px;
        border-radius: 6px;
        outline: none;
        cursor: pointer;
        transition: border-color 0.3s;
        height: 55px;
    }

    /* ✨ FOCUS EFFECTS */
    #searchInput:focus, #categoryFilter:focus {
        border-color: #666;
        box-shadow: none;
    }

    /* 📌 RESPONSIVE */
    @media (max-width: 768px) {
        .filters-container {
            flex-direction: column;
            width: 100%;
        }

        #searchInput, #categoryFilter {
            width: 90%;
        }
    }
}
.medaglia.selezionata {
    border: 2px solid gold;
}
/* Stile per il titolo della categoria */
.category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}



/* Testo di istruzione */
.voting-instruction {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

/* Contenitore delle icone */
.voting-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

/* Stile delle icone */
.voting-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: grab;
    transition: transform 0.2s ease, opacity 0.3s ease;
    background: #f9f9f9;
    border: 2px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Effetto hover */
.voting-icon:hover {
    transform: translateY(-3px);
    border-color: #aaa;
}

/* Effetto trascinamento */
.voting-icon:active {
    transform: scale(1.1);
    opacity: 0.8;
    cursor: grabbing;
}

/* Icone già assegnate */
.icon-used {
    background: #fff8dc;
    border-color: #e6b800;
    box-shadow: 0 2px 8px rgba(230, 184, 0, 0.3);
}

/* Icone disabilitate */
.icon-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Immagini delle medaglie */
.voting-icon img {
    width: 50px;
    height: auto;
    transition: opacity 0.3s ease-in-out;
}

/* Impedisce la sovrapposizione tra icone e testo */
.voting-cell {
    position: relative;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

/* Testo sotto le icone */
.voted-product-link-container {
    position: absolute;
    bottom: -30px;
    font-size: 12px;
    font-weight: 500;
    color: #444;
    text-align: center;
    width: 100%;
    white-space: nowrap;
}

/* Testo chiaro e leggibile */
.voted-product-link-container span {
    display: block;
    font-size: 12px;
    text-align: center;
    margin-top: 4px;
}

/* Link "Votato!" */
.voted-product-link-container a {
    text-decoration: none;
    color: #0073e6;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.voted-product-link-container a:hover {
    color: #004080;
    text-decoration: underline;
}
/* Miglioramento del titolo della categoria */


/* Testo sopra le icone */
.voting-instructions {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* Allineamento delle icone */
.voting-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* Miglioramento dello stile delle icone */
.voting-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.voting-icon img {
    width: 40px;
    height: 40px;
}


.voting-icon {
    opacity: 0.3; /* 🔥 Default: Le icone sono trasparenti finché non ricevono un voto */
    transition: opacity 0.3s ease-in-out;
}

.voting-icon.voted {
    opacity: 1; /* 🔥 Quando il voto è attivo, l'icona diventa pienamente visibile */
    border: 2px solid gold;
}

/* 🔥 Se un'icona ha 0 voti, deve essere trasparente ma ancora visibile */
.vote-count[data-vote-count="0"] img {
    opacity: 0.3 !important;
    visibility: visible !important;
}
.selected-medal {
    border: 2px solid gold;
    box-shadow: 0px 0px 10px gold;
    border-radius: 50%;
    padding: 5px;
}


.popup-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.popup-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-mobile-box {
    background: #2c3e50;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 350px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.popup-mobile-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #ffcc00;
}

.popup-mobile-buttons {
    margin-top: 15px;
}

.popup-mobile-button {
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin: 5px;
}

.popup-mobile-button.yes {
    background-color: #28a745;
    color: white;
}

.popup-mobile-button.no,
.popup-mobile-button.ok {
    background-color: #dc3545;
    color: white;
}
@media screen and (max-width: 768px) {
    .voting-icons-container {
        display: none !important;
    }
}
.voted-medal {
    border: 3px solid rgba(255, 165, 0, 0.7); /* Bordo arancione */
    border-radius: 50%; /* Bordo rotondo */
    padding: 3px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 0px 6px rgba(255, 165, 0, 0.5);
}
.highlighted-medal {
    border: 3px solid rgba(255, 215, 0, 0.8); /* Bordo dorato */
    border-radius: 50%; /* Rotondo */
    box-shadow: 0px 0px 8px rgba(255, 215, 0, 0.6);
    transition: all 0.3s ease-in-out;
    padding: 2px;
}

@keyframes glowMedal {
    0% { box-shadow: 0px 0px 5px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0px 0px 10px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0px 0px 5px rgba(255, 215, 0, 0.4); }
}

.highlighted-medal.animated {
    animation: glowMedal 1.5s infinite alternate ease-in-out;
}
#kubio .style-single-rlYTEhTMib-container {
    display: none;
}
.financial-table td[data-label="Sottostanti"] {
    text-align: center;
    vertical-align: middle;
}








