* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Messina Sans", sans-serif;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.6;
    background-color: #000 !important;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
}

.results-count {
    margin: 10px 10px 15px;
    font-size: 14px;
}
/*
select#categoryFilter {
    max-width: 250px;
}

.filters {
    background: #2a2c2e;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 700px;
    display: flex
;
    flex-direction: row;
    margin: 0 auto;
    gap: 15px;
}

.filters input, .filters select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    background: #4a4c4f;
    border: 1px solid #595e63;
    color: #fff;
}

.filters button {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.filters button:hover {
    background: #0056b3;
}
*/

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.content-card {
    background: #252525;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #fff !important;
    position: relative;
}
.content-card.blocked {
    filter: blur(2px);
    opacity: 0.6;
}
.content-card:hover {
    cursor: pointer;
}
.card-text {
    padding: 0px 12px 12px;
}

.content-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}
.content-card video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #1d1d1d;
    pointer-events: none;
}
.content-card h3 {
    margin-bottom: 10px;
    /* color: #333; */
    font-weight: 800;
    font-size: 20px;
}


.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.content-card .tags {
    max-height: 27px;
    overflow: hidden;
}
.content-card .tags {
    display: none;
}

.tag {
    background: #373a3c;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #9e9e9e;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 45px auto;
    max-width: 700px;
    padding: 0 20px;
}

.pagination button {
    padding: 10px 16px;
    background: #2a2c2e;
    border: 1px solid #595e63;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    min-width: 42px;
    transition: all 0.2s ease;
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.pagination button:hover:not(:disabled) {
    background: #2a2c2e;
    border-color: #c4c3cc;
}

.pagination button.active {
    background: #3b3e41;
    color: white;
    border-color: #d7d7d7;
    font-weight: 800;
}

.pagination button:disabled {
    background: #1a1c1e;
    border-color: #3a3c3e;
    color: #666;
    cursor: not-allowed;
}

/* Stile per le frecce prev/next */
.pagination button:first-child,
.pagination button:last-child {
    font-size: 18px;
    padding: 8px 12px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        flex-wrap: wrap;
    }

    .pagination button {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 38px;
    }
}

.loading {
    text-align: center;
    padding: 20px;
}

.video-preview {
    position: relative;
    width: 100%;
    height: 200px;
    cursor: pointer;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 15px;
}

.preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Disabilita interazioni con il video */
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background: rgb(0 0 0 / 50%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    transition: background 0.3s;
    padding-left: 6px;
    padding-top: 3px;
}

.video-preview:hover .play-icon {
    background: rgba(0, 0, 0, 0.9);
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    background: #18191a;
}

.modal.active {
    display: flex;
}

div#modalDate {
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 15px;
}

.modal-content {
    background: transparent;
    display: flex;
    flex-direction: row;
    max-width: 95%;
    max-height: 95%;
    border-radius: 8px;
    overflow: visible;
    border: none;
    position: initial;
}

.modal-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* overflow: hidden; */
    position: relative;
    max-height: 100%;
    background: #18191a;
}

/* Stili per le immagini */
.modal-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 2;
}

/* Nuovi stili per il video */
#modalVideo {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.video-container-modal {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container-modal video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-image::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 2px solid transparent;
    border-color: #373737;
    border-top-color: #18191a;
    border-radius: 50%;
    animation: loading-spinner 1s ease infinite;
    z-index: 1;
}
@keyframes loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

.modal-info {
    flex: 0 0 300px;
    max-width: 300px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #fff;
    background: #18191a;
    /* border-radius: 20px; */
    /* background-image: linear-gradient(to right, #252628, transparent); */
    border-left: 1px solid #ffffff24;
    margin-left: 25px;
    overflow: auto;
}
.modal-info h3 {
    margin-bottom: 10px;
    font-size: 24px;
    word-wrap: break-word;
    font-weight: 800;
}

.modal-info h4 {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 8px;
    opacity: 0.4;
    letter-spacing: 0.3px;
}

.modal-info p {
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
    opacity: 0.7;
}
.modal-info a:hover {
    color: #fff;
}
.modal-info a {
    font-size: 15px;
    color: #fff;
    word-break: break-all;
    cursor: pointer;
}
.modal-info .tag {
    background: #ffffff12;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.modal-close {
    /* position: absolute; */
    /* top: 10px; */
    /* right: 10px; */
    background-color: #18191a !important;
    color: white;
    border: none;
    border-radius: 100px !important;
    padding: 8px 12px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='square' stroke-linejoin='arcs'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    height: 50px;
    width: 50px;
    padding: 0px !important;
    z-index: 2;
}

.modal-top-right-btns {
    position: absolute;
    top: 10px;
    right: 10px;
    /* background: red; */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column; /* Layout verticale su mobile */
    }
    .modal-info {
        max-width: 100%;
        flex: 1;
        margin-left: 0px;
    }
    
    .video-container-modal video {
        width: 100%;
        height: auto;
    }
}


.author-onlyimg .author-details {
    display: none;
}
.author-onlyimg {
    position: absolute;
    top: 10px;
    right: 10px;
}
.author-onlyimg {
    display: none; /* immaginetta autore su immagine */
}

.content-card .author-onlyimg .author-avatar {
    border: 2px solid #71717178;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.content-card .author-info {
    margin-bottom: 0px;
}
.content-card img.author-avatar {
    border: 1px solid #6c6c6c78;
}

.content-card .author-avatar, .modal-content .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-bottom: 0px;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.author-role {
    font-size: 12px;
    color: #ffffff;
    line-height: 1.2;
    opacity: 0.5;
}

.video-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f5f5f5;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* REFERRAL MODAL & WIDGET */

.popup-overlay {
    width: 100%;
    background: #000;
    height: 100%;
    max-height: 100vh;
    display: block;
    top: 0px;
    z-index: 9999;
    position: fixed;
    overflow: auto;
    opacity: 0.85;
}
div.gtm-style {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    position: absolute;
    top: 0px;
    z-index: 99999;
    position: fixed;
    overflow: hidden;
    left: 0px;
}
.gtm-style .container {
    border-radius: 20px;
    z-index: 9999;
    position: fixed;
    overflow: auto;
    background: rgb(61, 61, 73);
    background: linear-gradient(161deg, #37373e 0%, #19191c 100%);
    padding: 2rem;
    max-width: 710px;
}
.gtm-style h2.popup-title {
    font-size: 3.5rem;
    line-height: 1em;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    font-weight: 800;
}
.gtm-style p.popup-subtitle {
    margin-bottom: 1.7rem;
    font-size: 1.2rem;
    color: #fff;
}
div#refInput {
    padding: 5px 5px;
}
.ref-input {
    width: 75%;
    height: 55px;
    padding: 10px 18px;
    float: left;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    color: #fff;
    border: 1px solid #595959;
    border-right: 0px;
    background: #000;
}
#referralBtn.copy-btn {
    width: 25%;
    height: 55px;
    padding: 5px;
    color: #fff;
    border-radius: 0px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    font-size: 16px;
    border: 1px solid #595959;
    border-left: 0px;
    cursor: pointer;
    background: #000;
    line-height: 1em;
}
#referralBtn div {
    background: #454545;
    border-radius: 10px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.popup-content {
    width: 100%;
}

.social-share {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}
.social-btn {
    padding: 5px 5px;
    flex: 0 0 25%;
    width: 25%;
    display: flex;
    min-height: 64px;
}
.social-btn a, .social-btn button {
    padding: 10px 15px;
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}
.social-btn a:hover, .social-btn button:hover {
    text-decoration: none;
}
.social-btn a:hover {
    color: #fff;
}
.social-btn i {
    margin-right: 8px;
    transform: scale(1.3);
    margin-top: -4px;
}
@media (max-width: 545px) {
    .social-btn a span {
        display: none;
    }
}

button#shareBtn:before {
    content: '';
    height: 35px;
    width: 37px;
    position: relative;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='59.994' height='50.36' viewBox='0 0 59.994 50.36' class='_shareIcon_dnho7_34'%3E%3Cg id='Livello_2' transform='translate(-0.006 -4.81)'%3E%3Cpath id='Tracciato_1930' data-name='Tracciato 1930' d='M59.85,7.92a.536.536,0,0,1,.05-.11,2.363,2.363,0,0,0,.1-.53V7.15a3.108,3.108,0,0,0-.03-.43l-.03-.15a3.061,3.061,0,0,0-.17-.48c-.01-.02-.01-.03-.02-.05a.01.01,0,0,0-.01-.01V6.02a2.085,2.085,0,0,0-.33-.45.943.943,0,0,1-.1-.1,2.388,2.388,0,0,0-.35-.28c-.04-.02-.07-.05-.11-.07a2.311,2.311,0,0,0-.51-.22.06.06,0,0,1-.04-.01,1.861,1.861,0,0,0-.52-.07c-.02,0-.04-.01-.06-.01H2.3A2.293,2.293,0,0,0,.58,8.62l17.5,19.91,6.29,24.38a2.268,2.268,0,0,0,.33,1.04,2.3,2.3,0,0,0,2.03,1.22,2.187,2.187,0,0,0,.83-.16,2.283,2.283,0,0,0,1.08-.87c.61-.9,30.67-45.3,30.98-45.75.02-.03.02-.05.04-.08A2.02,2.02,0,0,0,59.85,7.92ZM48.64,9.41,20.67,24.54,7.37,9.41ZM27.67,47.38,22.83,28.6l27.72-15Z' fill='rgba(255,255,255,1)'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
    margin-bottom: -4px;
    opacity: 1;
    cursor: pointer;
}
button#shareBtn {
    /* position: absolute; */
    /* top: 0px; */
    /* right: 0px; */
    padding: 0px;
    font-size: 14px;
    background: transparent;
    border: 0px solid #39393a;
    color: #c1c1c1;
    font-weight: 600;
    display: flex;
    align-items: center;
    z-index: 9999;
}



/* FILTERS STYLE */


.filters-container {
    width: 100%;
    margin: 20px 0;
}

.filters {
    background: #252525;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex-direction: column;
}

.search-wrapper {
    flex: 2;
    min-width: 300px;
    width: 100%;
}

.select-wrapper {
    flex: 1; /* Prende 1/3 dello spazio disponibile */
    min-width: 200px;
}

.filters input,
.filters select {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    background: #4a4c4f;
    border: 1px solid #595e63;
    color: #fff;
    font-size: 14px;
}

.filters select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

.filters input::placeholder {
    color: #999;
}

.filters input:focus, .filters select:focus {
    outline: none;
    border-color: #896ca3;
    box-shadow: 0 0 4px 2px rgb(81 0 255 / 20%) !important;
}

/* Mobile styles */
@media (max-width: 768px) {

    .filters {
        padding: 15px;
        gap: 10px;
    }

    .search-wrapper,
    .select-wrapper {
        flex: 100%;
        min-width: 100%;
    }

    .filters input,
    .filters select {
        padding: 10px;
        font-size: 16px; /* Better for mobile touch */
    }
}

/* Per schermi molto piccoli */
@media (max-width: 360px) {
    .filters {
        padding: 10px;
    }

    .filters input,
    .filters select {
        padding: 8px;
    }
}



.category-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    width: 100%;
    justify-content: center;
}
.category-container.expanded {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    justify-content: center;
}

.categories-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    background: transparent;
    border-radius: 8px;
    margin-bottom: 0px;
    padding: 0px 0;
    overflow-x: auto;
    scrollbar-width: thin;
    transition: all 0.3s ease;
    width: 100%;
    align-items: center;
    border-right: 0px solid #efefef;
    padding-right: 25px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer/Edge */
    -webkit-overflow-scrolling: touch;
}
/* Webkit (Chrome, Safari, Opera) */
.categories-container::-webkit-scrollbar {
    display: none;
}

.categories-container:before {
    content: '';
    position: absolute;
    right: 30px;
    z-index: 9;
    height: 33px;
    width: 33px;
    background-image: linear-gradient(90deg, #2a2c2e00, #2a2c2e);
}
.categories-container.expanded:before {
    display: none;
}

.categories-container.expanded {
    flex-wrap: wrap;
    overflow-x: visible;
}

#toggleView.toggle-button {
    background: #616468;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 33px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
    border: 1px solid #676d74;
}

#toggleView.toggle-button::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    margin-right: -3px;
    margin-left: -7px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3 7C3 6.44772 3.44772 6 4 6H20C20.5523 6 21 6.44772 21 7C21 7.55228 20.5523 8 20 8H4C3.44772 8 3 7.55228 3 7ZM6 12C6 11.4477 6.44772 11 7 11H17C17.5523 11 18 11.4477 18 12C18 12.5523 17.5523 13 17 13H7C6.44772 13 6 12.5523 6 12ZM9 17C9 16.4477 9.44772 16 10 16H14C14.5523 16 15 16.4477 15 17C15 17.5523 14.5523 18 14 18H10C9.44772 18 9 17.5523 9 17Z' fill='%23fff'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
}

#toggleView.toggle-button.active {
    background: #896ca3;
    box-shadow: 0 2px 4px rgba(137, 108, 163, 0.3);
}

#toggleView.toggle-button.active::before {
    transform: rotate(180deg);
}

.categories-container::-webkit-scrollbar {
    height: 6px;
}

.categories-container::-webkit-scrollbar-track {
    background: #2a2c2e;
    border-radius: 3px;
}

.categories-container::-webkit-scrollbar-thumb {
    background: #896ca3;
    border-radius: 3px;
}

.categories-container::-webkit-scrollbar-thumb:hover {
    background: #7857a0;
}

@media (max-width: 768px) {
    .categories-container {
        padding: 0px 0;
    }
    
    .toggle-button {
        padding: 6px 12px;
        font-size: 13px;
    }
}



    .categories-container.expanded .category-item {
        white-space: normal;
        flex-shrink: 1;
    }

    .category-item {
        display: flex;
        background: #45484a;
        padding: 4px 10px;
        border-radius: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: all 0.2s ease;
        line-height: 1em;
        white-space: nowrap;
        flex-shrink: 0;
        height: 33px;
        position: relative;
        align-items: center;
        border: 1px solid #595c5f;
    }
    
    /* Custom checkbox style */
    .category-item input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }
    
    /* Custom checkbox visual */
    .category-item label::before {
        content: '';
        display: inline-block;
        width: 16px;
        height: 16px;
        margin-right: 8px;
        background-color: transparent;
        border: 2px solid #666;
        border-radius: 12px;
        transition: all 0.2s ease;
    }
    
    /* Checkbox hover state */
    .category-item:hover label::before {
        border-color: #896ca3;
    }
    
    /* Checkbox checked state */
    .category-item input[type="checkbox"]:checked + label::before {
        background-color: #896ca3;
        border-color: #896ca3;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
        background-size: 12px;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    /* Effetti hover migliorati */
    .category-item:hover {
        background: #4f5256;
        transform: translateY(-1px);
        cursor: pointer;
    }
    .category-item label:hover {
        cursor: pointer;
    }
    
    .category-item input[type="checkbox"]:checked + label {
        color: white;
        font-weight: 500;
    }
    
    .category-item.selected {
        background: #896ca3;
        border-color: #896ca3;
    }
    
    /* Stile count migliorato */
    .count {
        color: #9b9b9b;
        font-size: 0.85em;
        /* background: rgba(0,0,0,0.2); */
        /* padding: 2px 6px; */
        border-radius: 10px;
        margin-left: 6px;
        transition: all 0.2s ease;
    }
    
    .category-item:hover .count {
        /* background: rgba(0,0,0,0.3); */
    }
    
    .category-item input[type="checkbox"]:checked + label .count { /*
        background: rgba(255,255,255,0.2);
        color: rgba(255,255,255,0.8);*/
    }
    
    /* Focus states per accessibilità */
    .category-item input[type="checkbox"]:focus + label::before {
        box-shadow: 0 0 0 2px rgba(137, 108, 163, 0.3);
    }
    
    #toggleView.toggle-button:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(137, 108, 163, 0.3);
    }


    .category-item label {
        margin-bottom: 0px;
        display: flex;
        align-items: center;
        font-size: 13px;
        font-weight: 700;
    }


    .cta-btn-container {
        display: flex;
        flex-direction: column;
    }
    .cta-btn-container a.btn.btn-light {
        font-weight: 800;
        font-size: 22px;
        letter-spacing: -0.5px;
        padding: 12px 28px;
        border-radius: 10px;
    }
    .cta-btn-container p a {
        color: #fff;
        text-decoration: underline;
    }

    .image-container {
        position: relative;
        margin-bottom: 15px;
    }
    /*
    .image-container:before {
        content: '';
        position: absolute;
        bottom: 0px;
        right: 0px;
        width: 150px;
        height: 150px;
        background-image: linear-gradient(315deg, rgb(0 0 0 / 30%) 3%, rgb(0 0 0 / 10%) 25%, transparent 50%);
    }
    */


    /* card insieme al titolo */
    .card-title {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 0px;
    }
    button.share-btn-card {
        height: 23px;
        width: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0px;
        padding-top: 0px;
        border: 2px solid #3b3b3b4d;
        background: transparent;
        border: 0px;
    }
    button.share-btn-card:before {
        content: '';
        height: 20px;
        width: 23px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='59.994' height='50.36' viewBox='0 0 59.994 50.36' class='_shareIcon_dnho7_34'%3E%3Cg id='Livello_2' transform='translate(-0.006 -4.81)'%3E%3Cpath id='Tracciato_1930' data-name='Tracciato 1930' d='M59.85,7.92a.536.536,0,0,1,.05-.11,2.363,2.363,0,0,0,.1-.53V7.15a3.108,3.108,0,0,0-.03-.43l-.03-.15a3.061,3.061,0,0,0-.17-.48c-.01-.02-.01-.03-.02-.05a.01.01,0,0,0-.01-.01V6.02a2.085,2.085,0,0,0-.33-.45.943.943,0,0,1-.1-.1,2.388,2.388,0,0,0-.35-.28c-.04-.02-.07-.05-.11-.07a2.311,2.311,0,0,0-.51-.22.06.06,0,0,1-.04-.01,1.861,1.861,0,0,0-.52-.07c-.02,0-.04-.01-.06-.01H2.3A2.293,2.293,0,0,0,.58,8.62l17.5,19.91,6.29,24.38a2.268,2.268,0,0,0,.33,1.04,2.3,2.3,0,0,0,2.03,1.22,2.187,2.187,0,0,0,.83-.16,2.283,2.283,0,0,0,1.08-.87c.61-.9,30.67-45.3,30.98-45.75.02-.03.02-.05.04-.08A2.02,2.02,0,0,0,59.85,7.92ZM48.64,9.41,20.67,24.54,7.37,9.41ZM27.67,47.38,22.83,28.6l27.72-15Z' fill='rgba(255,255,255,1)'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
        opacity: 0.8; 
    }


/*
button.share-btn-card {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #5454547d;
    border-radius: 100%;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    padding-top: 4px;
    border: 2px solid #3b3b3b4d;
    background: transparent;
    border: 0px;
}
    
button.share-btn-card:before {
    content: '';
    height: 22px;
    width: 25px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='59.994' height='50.36' viewBox='0 0 59.994 50.36' class='_shareIcon_dnho7_34'%3E%3Cg id='Livello_2' transform='translate(-0.006 -4.81)'%3E%3Cpath id='Tracciato_1930' data-name='Tracciato 1930' d='M59.85,7.92a.536.536,0,0,1,.05-.11,2.363,2.363,0,0,0,.1-.53V7.15a3.108,3.108,0,0,0-.03-.43l-.03-.15a3.061,3.061,0,0,0-.17-.48c-.01-.02-.01-.03-.02-.05a.01.01,0,0,0-.01-.01V6.02a2.085,2.085,0,0,0-.33-.45.943.943,0,0,1-.1-.1,2.388,2.388,0,0,0-.35-.28c-.04-.02-.07-.05-.11-.07a2.311,2.311,0,0,0-.51-.22.06.06,0,0,1-.04-.01,1.861,1.861,0,0,0-.52-.07c-.02,0-.04-.01-.06-.01H2.3A2.293,2.293,0,0,0,.58,8.62l17.5,19.91,6.29,24.38a2.268,2.268,0,0,0,.33,1.04,2.3,2.3,0,0,0,2.03,1.22,2.187,2.187,0,0,0,.83-.16,2.283,2.283,0,0,0,1.08-.87c.61-.9,30.67-45.3,30.98-45.75.02-.03.02-.05.04-.08A2.02,2.02,0,0,0,59.85,7.92ZM48.64,9.41,20.67,24.54,7.37,9.41ZM27.67,47.38,22.83,28.6l27.72-15Z' fill='rgba(255,255,255,1)'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
}
*/


.grant.grant-PRO:before, .grant.grant-PLUS:before {
    position: absolute;
    background: hsl(0deg 0% 0% / 80%);
    padding: 1px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    top: 10px;
    left: 10px;
}
.grant.grant-PRO:before {
    content: 'PRO';
}
.grant.grant-PLUS:before {
    content: 'PLUS';
}

.modal-info .grant.grant-PRO:before, .modal-info .grant.grant-PLUS:before {
    position: relative;
    top: -4px;
    left: 0px;
    background: #fff;
    color: #000;
    font-weight: 800;
    padding: 3px 8px;
}

a#tallyOpen .elementor-button-text {
    display: flex;
    align-items: center;
    gap: 5px;
}
a#tallyOpen .elementor-button-text:before {
    content: '';
    width: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='square' stroke-linejoin='arcs'%3E%3Cpath d='M3 15v4c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2v-4M17 8l-5-5-5 5M12 4.2v10.3'/%3E%3C/svg%3E");
    height: 20px;
    display: inline-block;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}


.tooltip-inner {
    max-width: 530px;
    padding: 3px 8px;
    color: #fff;
    text-align: center;
    background-color: #222222;
    border-radius: .25rem;
}

.badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
}
.badge-grant, .badge-new {
    background: hsl(0deg 0% 0% / 80%);
    padding: 1px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
}
.badge-new {
    background: #ffffffe6;
    color: #000;
    border: 1px solid #00000017;
}