/* Article Styles */
.article {
    padding: 0;
    display: flex;
    justify-content: center;
    width: -webkit-fill-available;
}

.article__header {
    max-width: 1200px;
    margin-top: var(--space-48);
    margin-left: var(--space-32);
    margin-right: var(--space-32);
    margin-bottom: var(--space-12);
}

.article__header .article__title {
    font-size: var(--font-size-3xl);
    margin-bottom: 3rem;
}

.article__title {
    margin-bottom: var(--space-8);
}

main {
    width: -webkit-fill-available;
    margin: auto;
}

.article__meta {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    text-transform: capitalize;
    margin-left: 12px;
    flex-wrap: wrap;
}

.article__meta i {
    /* margin-right: 6px; */
}

.article__author {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.article__author-avatar {
    width: var(--space-32);
    height: var(--space-32);
    border-radius: var(--radius-full);
    object-fit: cover;
}

.article__date {
    display: flex;
    color: var(--text-color);
    gap: var(--space-8);
    align-items: center;
}

.article__tags {
    position: relative;
    display: flex;
    gap: var(--space-8);
    padding-left: var(--space-24);
    padding-right: var(--space-24);
    margin-top: var(--space-16);
    margin-bottom: var(--space-4);
    line-height: normal;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    margin: auto;
    padding: var(--space-10) var(--space-16);
    background-color: var(--tag-bg-11);
    color: var(--tag-text-5);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-md);
    transition: all var(--transition-fast);
}

.tag i {
    font-size: var(--font-size-sm);
    padding-right: 8px;
}

.tag:hover {
    background-color: var(--tag-bg-9);
    color: var(--bg-primary);
}

.article__figure {
    margin: 0px 0px 0rem 0;
    box-shadow: var(--shadow-lg);
    width: -webkit-fill-available;
    max-width: -webkit-fill-available;
}

.article__image {
    width: 100%;
    height: auto;
    display: block;
}

.article__body {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    padding: 2rem;
    background: var(--bg-article);
    border-radius: 20px;
    overflow-wrap: anywhere;
}

.article__body ol {
    display: block;
    list-style-type: decimal;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
    unicode-bidi: isolate;

}

.article__body ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 30px;
    unicode-bidi: isolate;

}

.article__body p {
    margin-bottom: var(--space-6);
}

.article__body h3 {
    margin: var(--space-12) 0 var(--space-6) 0;
    color: var(--text-primary);
    display: block;
    font-size: 1.17em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.article__sharing {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: normal !important;
    flex-direction: column;
}

.share-buttons {
    display: flex;
    gap: var(--space-10);
    margin-top: var(--space-16);
}

.share-btn {
    position: relative;
    padding: 10px 18px;
    border-radius: 4px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background-color: var(--color-primary);
    color: var(--bg-primary);
}

.share-btn button i {
    padding-right: 8px;
}

/* Articles Grid */
.articles-grid {
    display: flex;
    /* grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); */
    gap: var(--space-32);
    padding-right: 12px;
    padding-left: 12px;
    margin-bottom: var(--space-16);
    overflow-x: auto;
    padding-bottom: 9px;
}

.articles-grid--related {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.article-card {
    background-color: var(--bg-article);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-card-border);
    min-width: 251px;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.article-card__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.article-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.article-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-4xl);
    background-color: var(--bg-tertiary);
}

.article-card__content {
    padding: var(--space-16);
}

.article-card__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: var(--space-8);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__date {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

/* Articles List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.article-list-item {
    position: sticky;
    top: 60px;
    margin-left: 1rem;
    margin-right: 1rem;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--space-16);
    padding: var(--space-16);
    background-color: var(--bg-body-nav);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    border: 1px solid var(--color-card-border);
}

.article-list-item:hover {
    background-color: var(--bg-body-block-hover);
}

.article-list-item__content {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    margin-left: 5px;
}

.article-list-item__image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-list-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-list-item__image .placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: var(--font-size-4xl);
    background-color: var(--bg-tertiary);
}

.article-list-item__content h3 {
    margin: 0;
    padding: 0;
}

.article-list-item__content a {
    position: relative;
    padding-top: 4px;
    font-size: var(--font-size-xl);
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-list-item__content a:hover {
    color: var(--color-link);
}

.article-list-item__meta {
    display: flex;
    font-size: var(--font-size-sm);
    color: var(--body-text-10);
    border-top: 1px solid var(--color-border);
    padding-top: 6px;
    text-transform: capitalize;
    padding-bottom: 0px;
    flex: 0;
    margin: 0;
    gap: 16px;
    align-items: center;
}

.article-list-item__meta span,
.article-list-item__meta time {
    display: flex;
    gap: 8px;
    align-items: center;
}


/* Sections */
.related-section,
.latest-section {
    padding: var(--space-16) 0;
    border-top: 1px solid var(--border-color);
    max-width: 1024px;
    margin: auto;
}

.related-section h2,
.latest-section h2 {
    margin-bottom: var(--space-20);
    margin-left: var(--space-20);
    margin-bottom: var(--space-20);
}

/* ============================================
   FONT FACE DECLARATION
   ============================================ */

@font-face {
    font-family: 'FKGroteskNeue';
    src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
}


/* LIKE */
/* 🔥 ANIMAZIONE CUORICINI CHE VOLANO */
@keyframes floatUp {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }

    25% {
        transform: translate(var(--random-x1, 20px), -25px) scale(1.2) rotate(10deg);
        opacity: 0.9;
    }

    50% {
        transform: translate(var(--random-x2, -15px), -50px) scale(1.1) rotate(-5deg);
        opacity: 0.7;
    }

    75% {
        transform: translate(var(--random-x3, 10px), -75px) scale(0.8) rotate(5deg);
        opacity: 0.4;
    }

    100% {
        transform: translate(var(--random-x4, -5px), -100px) scale(0.5) rotate(0deg);
        opacity: 0;
    }
}


/* STATISTICHE CON LIKE CLICCABILE */
.article__stats {
    position: relative;
    margin: 16px 16px 1px 16px;
    display: flex;
    font-size: 16px;
    align-items: center;
    gap: 2rem;
}

.article__views,
.article__likes {
    display: flex;
    padding-right: 13px;
    gap: 8px;
    align-items: center;
}

.article__views i,
.article__likes i {
    font-size: 1.2em;
}

.ito-heart-red {
    color: #ff4757;
}

.ito-eye2 {
    color: var(--color-primary);
}

/* CUORICINO CLICCABILE */
.article__likes.clickable-like {
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    position: relative;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article__likes.clickable-like:hover {
    background: rgba(255, 71, 87, 0.1);
    transform: translateY(-2px);
}

.article__likes.clickable-like:active {
    transform: scale(0.95);
}

.article__likes.clickable-like.liked {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    cursor: default;
}

.article__likes.clickable-like.liked i {
    animation: heartPop 0.6s ease;
}

/* Assicurati che le animazioni funzionino */
.heart-animation {
    pointer-events: none;
    animation: floatHeartsUp 1.3s cubic-bezier(.45, 1, .48, .98) forwards;
}

@keyframes floatHeartsUp {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.3) rotate(0deg);
    }

    15% {
        opacity: 1;
        transform: translate(var(--x1, 0px), var(--y1, -30px)) scale(1.2) rotate(var(--r1, 0deg));
    }

    40% {
        opacity: 1;
        transform: translate(var(--x2, 0px), var(--y2, -80px)) scale(1) rotate(var(--r2, 0deg));
    }

    70% {
        opacity: 0.6;
        transform: translate(var(--x3, 0px), var(--y3, -140px)) scale(0.85) rotate(var(--r3, 0deg));
    }

    100% {
        opacity: 0;
        transform: translate(var(--x4, 0px), var(--y4, -200px)) scale(0.5) rotate(var(--r4, 0deg));
    }
}


.article-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 12px;
    margin-top: 1rem;
    font-size: 12px;
    margin-bottom: 23px;
}

.article-stats .article-stat {
    display: flex;
    align-items: center;
    gap: 11px;
}

.article-stats i {
    font-size: 20px;
}

/* LIKE BUTTON SYSTEM */
.like-btn {
    background: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font: inherit;
    border: none;
    color: inherit;
}

.like-btn:hover:not(.liked):not(:disabled) {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.05);
    transform: translateY(-2px);
}

.like-btn:active:not(.liked):not(:disabled) {
    transform: scale(0.95);
}

.like-btn.liked {
    color: #ff4757;
    cursor: default;
}

.like-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Heart icon animation */
.like-btn i {
    transition: transform 0.3s ease;
}

.like-btn.liked i {
    animation: heartPop 0.6s ease;
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(0.9);
    }

    75% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Floating hearts animation */
.heart-particle {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    font-size: 1.2rem;
    animation: floatUp 1.5s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    20% {
        opacity: 1;
        transform: translate(var(--x1, 0), var(--y1, -20px)) scale(1.2);
    }

    50% {
        opacity: 0.8;
        transform: translate(var(--x2, 0), var(--y2, -50px)) scale(1);
    }

    80% {
        opacity: 0.3;
        transform: translate(var(--x3, 0), var(--y3, -80px)) scale(0.8);
    }

    100% {
        opacity: 0;
        transform: translate(var(--x4, 0), var(--y4, -120px)) scale(0.5);
    }
}

/* Success message */
.like-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* ============================================
   STATI ARTICOLO - NON TROVATO / PRIVATO
   ============================================ */

.article-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 2rem auto;
}

.article-state__icon {
    font-size: 6rem;
    margin-bottom: 2rem;
    display: block;
}

.article-state__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-state__message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.article-state__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.article-state__btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-state__btn--primary {
    background: var(--primary-color);
    color: white;
}

.article-state__btn--secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.article-state__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   ANIMAZIONI SPECIFICHE
   ============================================ */

/* Articolo non trovato - Animazione triste */
.article-not-found .article-state__icon {
    animation: sadBounce 2s ease-in-out infinite;
}

@keyframes sadBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(-5deg);
    }

    50% {
        transform: translateY(5px) rotate(5deg);
    }

    75% {
        transform: translateY(-5px) rotate(-3deg);
    }
}

/* Articolo privato - Animazione lucchetto */
.article-private .article-state__icon {
    animation: lockShake 3s ease-in-out infinite;
}

@keyframes lockShake {

    0%,
    100% {
        transform: translateX(0) scale(1);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-2px) scale(1.05);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(2px) scale(1.05);
    }
}

/* Effetto particelle per articolo non trovato */
.article-not-found .article-state__icon::after {
    content: '💔';
    position: absolute;
    font-size: 2rem;
    animation: heartParticles 2s ease-out infinite;
}

@keyframes heartParticles {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--particle-x, 50px), var(--particle-y, -50px)) scale(0);
        opacity: 0;
    }
}

/* Lucchetto che respira per articolo privato */
.article-private .article-state__icon {
    position: relative;
}

.article-private .article-state__icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    animation: breath 4s ease-in-out infinite;
}

@keyframes breath {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.05;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.15;
    }
}

/* ============================================
   EFFETTI DI ENTRATA
   ============================================ */

.article-state {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .article-state {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .article-state__icon {
        font-size: 4rem;
    }

    .article-state__title {
        font-size: 1.5rem;
    }

    .article-state__actions {
        flex-direction: column;
        align-items: center;
    }

    .article-state__btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* ============================================
   MODALITÀ SCURA
   ============================================ */

[data-theme="dark"] .article-state {
    background: linear-gradient(135deg, var(--card-bg), color-mix(in srgb, var(--card-bg) 90%, black));
    border-color: var(--border-color);
}

[data-theme="dark"] .article-private .article-state__icon::before {
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
}

/* ============================================
   STATI ARTICOLO - MODERNO CON SVG ANIMATI
   ============================================ */

.article-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.article-state__svg {
    width: 250px;
    height: 300px;
    margin-bottom: 3rem;
    display: block;
}

.article-state__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-state__message {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
    font-weight: 400;
    opacity: 0.9;
}

/* ============================================
   ANIMAZIONI SVG PER OGNI STATO
   ============================================ */

/* 1. ARTICOLO NON TROVATO - Animazione triste */
.article-not-found .article-state__svg {
    /* animation: floatSad 4s ease-in-out infinite; */
}

@keyframes floatSad {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    25% {
        transform: translateY(-15px) scale(0.98);
    }

    50% {
        transform: translateY(5px) scale(1.02);
    }

    75% {
        transform: translateY(-8px) scale(0.99);
    }
}

/* 2. ARTICOLO PERSONALE (me) - Animazione amichevole */
.article-me .article-state__svg {
    animation: bounceFriendly 3s ease-in-out infinite;
}

@keyframes bounceFriendly {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-10px) rotate(2deg);
    }

    66% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

/* 3. BOZZA (draft) - Animazione scrittura */
.article-draft .article-state__svg {
    animation: writeDraft 5s ease-in-out infinite;
}

@keyframes writeDraft {

    0%,
    100% {
        transform: translateX(0px) scale(1);
    }

    25% {
        transform: translateX(-8px) scale(1.02);
    }

    50% {
        transform: translateX(4px) scale(0.98);
    }

    75% {
        transform: translateX(-4px) scale(1.01);
    }
}

/* 4. CESTINO (trash) - Animazione caduta */
.article-trash .article-state__svg {
    animation: trashFall 4s ease-in-out infinite;
}

@keyframes trashFall {
    0% {
        transform: translateY(-20px) rotate(-5deg);
        opacity: 0.8;
    }

    30% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: translateY(-8px) rotate(3deg);
    }

    70% {
        transform: translateY(-4px) rotate(-2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* 5. SPAM - Animazione vibrazione */
.article-spam .article-state__svg {
    animation: spamVibrate 2s ease-in-out infinite;
}

@keyframes spamVibrate {

    0%,
    100% {
        transform: translateX(0px);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-3px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(3px);
    }
}

/* 6. PRIVATO - Animazione lucchetto */
.article-private .article-state__svg {
    animation: lockPulse 4s ease-in-out infinite;
}

@keyframes lockPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* ============================================
   EFFETTI DI ENTRATA SPETTACOLARI
   ============================================ */

.article-state {
    animation: slideInBounce 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

@keyframes slideInBounce {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Apparizione sequenziale elegante */
.article-state__svg {
    /* animation-delay: 0.2s; */
    /* animation-fill-mode: both; */
}

.article-state__title {
    animation: fadeInUp 0.8s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.article-state__message {
    animation: fadeInUp 0.8s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   EFFETTI VISIVI MODERNI
   ============================================ */

/* Sfondo gradient dinamico */
.article-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%,
            rgba(157, 175, 245, 0.1) 0%,
            transparent 50%),
        radial-gradient(circle at 80% 20%,
            rgba(255, 107, 53, 0.05) 0%,
            transparent 50%),
        radial-gradient(circle at 40% 40%,
            rgba(16, 185, 129, 0.03) 0%,
            transparent 50%);
    opacity: 0.6;
    pointer-events: none;
    border-radius: 50%;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(180deg);
    }
}

/* Linea decorativa animata */
.article-state::after {
    content: '';
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            var(--primary-color),
            var(--accent-color),
            transparent);
    opacity: 0.7;
    animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) scaleX(0.8);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.2);
    }
}

/* ============================================
   RESPONSIVE PERFETTO
   ============================================ */

@media (max-width: 768px) {
    .article-state {
        min-height: 70vh;
        padding: 2rem 1.5rem;
    }

    .article-state__svg {
        width: 220px;
        height: 160px;
        margin-bottom: 2rem;
    }

    .article-state__title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .article-state__message {
        font-size: 1.1rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .article-state {
        min-height: 60vh;
        padding: 1.5rem 1rem;
    }

    .article-state__svg {
        width: 180px;
        height: 130px;
        margin-bottom: 1.5rem;
    }

    .article-state__title {
        font-size: 1.8rem;
    }

    .article-state__message {
        font-size: 1rem;
    }

    .article-state::after {
        width: 80px;
        bottom: 1.5rem;
    }
}

/* ============================================
   TIPOGRAFIA MODERNA
   ============================================ */

.article-state__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 800;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.article-state__message {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 200;
    text-shadow: 0 0 3px rgb(255 235 59 / 46%);
}

/* ============================================
   MODALITÀ SCURA MIGLIORATA
   ============================================ */

[data-theme="dark"] .article-state__title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .article-state__message {
    color: var(--text-secondary);
    opacity: 0.8;
}

[data-theme="dark"] .article-state::before {
    opacity: 0.4;
}

[data-theme="dark"] .article-state::after {
    background: linear-gradient(90deg,
            transparent,
            var(--secondary-color),
            var(--accent-color),
            transparent);
}

/* ============================================
   EFFETTI INTERATTIVI
   ============================================ */

.article-state__svg:hover {
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

/* Particelle decorative */
.article-state__svg::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle,
            var(--primary-color) 0%,
            transparent 70%);
    opacity: 0;
    border-radius: 50%;
    z-index: -1;
    transition: all 0.3s ease;
}

.article-state__svg:hover::before {
    opacity: 0.1;
    animation: particlePulse 2s ease-in-out infinite;
}

@keyframes particlePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.15;
    }
}

/* IMAGE */

.articlebody p img.img-alf {
    position: relative;
    border-radius: 4px;
    background: var(--background);
    z-index: 1;
    margin-left: auto;
}

.articlebody span.image.left~em,
.articlebody span.image.right~em {
    margin: 20px 0 15px;
    display: math;
    position: relative;
    padding: 8px 19px;
    display: math;
    font-style: normal
}

.articlebody img.img-alf~em {
    margin: 16px 16px 16px 10px;
    background: #5e5c5c1c;
    padding: 14px 19px;
    width: calc(50% + 50%);
    font-size: 88%;
    line-height: initial;
    top: unset;
    border-right: 1px solid #c7c7c7a6;
    border-left: 1px solid #c7c7c7a6;
    border-radius: 1px 1px 11px 11px;
    clear: right;
    position: relative
}

.articlebody p img {
    position: relative;
    margin-top: auto;
    margin-bottom: 10px;
    margin-right: auto;
    float: none;
    display: initial;
    width: -webkit-fill-available;
}

.articlebody .image-entity {
    display: flex;
    justify-content: center;
    margin: 1rem auto;
    padding: 9px 9px;
    border-radius: 5px;
    background: var(--background);
    width: 100%;
}

.articlebody img~em,
.articlebody span.image.left~em {
    display: flex;
    position: sticky;
    top: 20px;
    margin-top: 26px;
    margin-bottom: 11px;
    font-weight: 400;
    flex-wrap: wrap;
}

.articlebody .videoWrapper~em,
.articlebody iframe~em,
.articlebody img~em,
.fb-video~em {
    display: flex;
    font-weight: 400;
    font-style: normal;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 9px 16px;
    margin: auto;
    clear: both
}

.articlebody span.image.right~em {
    display: flex;
    position: sticky;
    top: 20px;
    margin-top: 26px;
    margin-bottom: 11px;
    font-weight: 600;
    flex-wrap: wrap;
}

.fb-video~em {
    margin: 0 14px 16px 10px !important;
    top: 8px
}

.articlebody .videoWrapper~em,
.articlebody iframe~em {
    margin: auto
}

.articlebody p img:hover {
    box-shadow: 1px 0 19px 2px rgba(96, 96, 96, .5)
}

/* PPIE */
div[class^=pie] a,
div[class^=pie] li,
div[class^=pie] p,
div[class^=pie] span,
div[id^=sdfootnote],
div[id^=sdfootnote] a,
div[id^=sdfootnote] li,
div[id^=sdfootnote] p,
div[id^=sdfootnote] span,
p[class^=pie] {
    font-size: .9rem !important
}

div[class^=pie],
div[id^=sdfootnote],
p[class^=pie] {
    width: 100%;
    margin: 14px auto !important;
    padding-right: 27px !important;
    padding-left: 27px !important;
    padding-top: 6px !important;
    text-align: start;
    -webkit-margin-before: 0em;
    -webkit-margin-after: 0.3em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 1px;
    -webkit-padding-start: 10px;
    -webkit-padding-end: 10px;
    -webkit-padding-before: 1em;
    -webkit-padding-after: 0.01em;
    align-items: center;
    border-top: 1px solid var(--article-bg-11);
}

div[class^=pie]:after,
div[id^=sdfootnote]:before,
p[class^=pie]:before {
    content: "note";
    text-transform: uppercase;
    position: absolute;
    transform: rotate(-90deg);
    font-size: 9px;
    margin-left: -42px;
    margin-top: 3px;
    display: block;
    width: auto;
    padding-left: 5px;
    padding-right: 6px;
    background: var(--bg-body-block-hover);
}


.copy-btn {
    z-index: 1;
    margin-top: -11px;
    margin-left: -5px;
    position: absolute;
    display: flex;
    padding: 0px;
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    color: var(--text-color-medium) !important;
    background: var(--background-color) !important;
    cursor: copy;
    border: 1px solid var(--always-gray-40);
}

pre {
    background: var(--code-background-color);
    color: var(--code-text-color) !important;
    padding: 15px;
    border-radius: 5px !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre;
    counter-reset: line;
    overflow: auto;
    text-wrap: auto;
}

.code {
    background: var(--code-background-color);
    color: var(--code-text-color);
    padding-right: 0;
    border-radius: 5px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
    counter-reset: line;
    overflow-x: auto;
}

.code .line:first-child {
    padding-top: 1rem;
}

.code .line:last-child {
    padding-bottom: 1rem;
}

.code .line:first-child::before {
    margin-top: -16px;
    padding-top: 16px;
}

.code .line:last-child::before {
    margin-bottom: -16px;
    padding-bottom: 16px;
}

.code .line {
    display: block;
    position: relative;
    padding-left: 3.5em;
    min-height: 1.2em;
    white-space: nowrap;
    padding-inline-start: 57px;
}

.code .line::before {
    counter-increment: line;
    content: counter(line);
    position: absolute;
    left: 0;
    width: 3em;
    padding-right: 0.5em;
    text-align: right;
    color: var(--code-text-color);
    background: var(--code-border-color);
    border-right: 1px solid var(--code-selection-background-color);
    font-family: inherit;
}

.code .line.empty::before {
    color: #555;
}

.code .line.empty {
    color: transparent;
}

.article__body .rect,
fieldset .rect {
    font-size: 1.1em;
    -moz-border-radius: 6px;
    border-radius: 6px;
    padding: 25px 30px;
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 2rem
}

/* Social Element */

/* .article__body normale per il testo */
.article__body {
    display: block;
    border-radius: 6px;
    margin-left: var(--space-32);
    margin-right: var(--space-32);
}

.article__body ol,
.article__body ol li,
.article__body ol li li,
.article__body ol li li li,
.article__body ol.f,
.article__body ol:nth-of-type(2) {
    list-style-type: decimal
}

.article__body ul li li,
.article__body ul.a,
.article__body ul:nth-of-type(2) {
    list-style-type: circle
}

.article__body li,
.article__body ul {
    list-style: inherit
}

.article__body ul li {
    list-style-type: disc;
    -webkit-padding-before: 0em
}

.article__body ul li li li,
.article__body ul.c {
    list-style-type: square
}

.article__body ol.d {
    list-style-type: armenian
}

.article__body ol.e {
    list-style-type: cjk-ideographic
}

.article__body ol.g {
    list-style-type: decimal-leading-zero
}

.article__body ol.h {
    list-style-type: georgian
}

.article__body ol.i {
    list-style-type: hebrew
}

.article__body ol.j {
    list-style-type: hiragana
}

.article__body ol.k {
    list-style-type: hiragana-iroha
}

.article__body ol.l {
    list-style-type: katakana
}

.article__body ol.m {
    list-style-type: katakana-iroha
}

.article__body ol.n {
    list-style-type: lower-alpha
}

.article__body ol.o {
    list-style-type: lower-greek
}

.article__body ol.p {
    list-style-type: lower-latin
}

.article__body ol.q {
    list-style-type: lower-roman
}

.article__body ol.r {
    list-style-type: upper-alpha
}

.article__body ol.s {
    list-style-type: upper-latin
}

.article__body ol.t {
    list-style-type: upper-roman
}

.article__body ol.v {
    list-style-type: inherit
}

article table.scroll {
    overflow-scrolling: touch;
    display: flex;
    padding: 17px 40px 0 5px;
    width: 100%
}

article table {
    border-top: 1px solid #37373759;
    overflow-scrolling: touch;
    display: block;
    padding: 17px 5px 10px
}

.article__body .table-container,
article .table-container {
    overflow-x: auto
}

.article__body td {
    vertical-align: top
}

.article__body .wrap-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 100%;
    position: relative;
    padding: 0;
}


.article__body table {
    border-collapse: collapse;
    margin: 10px auto;
    min-width: 440px;
    width: auto;
}


.article__body thead {
    display: table-header-group;
    vertical-align: middle;
    border-color: inherit
}

.article__body table td,
.article__body table th {
    padding: .625em;
    border: 1px solid #6969693b
}

.article__body table th {
    font-size: 18px;
    letter-spacing: normal;
    font-weight: 700;
    min-width: 80px;
    vertical-align: baseline;
    overflow-wrap: break-word;
    text-align: inherit;
}

.article__body table caption {
    font-size: 1.3em;
    margin: .5em 0 .75em
}

.article__body table tr {
    padding: .35em
}

.article__body table td {
    white-space: normal;
    word-wrap: break-word;
    text-align: inherit;
}

.article__body table td:first-child {
    text-align: left;
    font-weight: 500;
}

.article__body table {
    border-top: 1px solid #37373759
}


/* utili */
.ref {
    cursor: pointer;
}

.ref:hover {
    box-shadow: 0 0 20px rgb(0 0 0 / 9%);
    color: var(--bg-lime);
    background: var(--bg-color);
}

.term {
    margin: 2rem auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
}

.term * {
    margin: auto 2px;
}

.term i {
    font-size: 20px;
    margin-right: 10px;
    color: var(--always-gray-40);
}

.svg {
    width: 18px;
}

.term span,
.term a {
    padding: 5px 18px;
    display: flex;
    align-items: center;
    color: var(--text-color);
    border-radius: 20px;
    line-height: 30px;
}

.term span:before,
.term a:before {
    padding: 8px;
}

.feedback {
    position: relative;
    margin: 3rem 2rem;
    display: block;
    text-align: left;
}

.result-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
    margin: auto;
    max-width: 800px;
    position: sticky;
    top: 80px;
}

/* Stile base */
.titleSection {
    position: relative;
    display: block;
    margin: auto;
    border-bottom: 4px solid #1877f2;
    max-width: 86rem;
    margin-bottom: 2rem;
}

.titleSection span i {
    margin-right: 5px;
}

.titleSection span {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    white-space: nowrap;
    background-color: #1877f2;
    padding: 10px 24px;
    color: #fff;
    font-weight: 800;
    border-radius: 24px 12px 6px 0;
    margin: 1px 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.result-item:hover {
    box-shadow: 0 0 20px rgb(0 0 0 / 9%);
    background: var(--background-color-alf-a-hover);
}

.result-container .result-item {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.result-item {
    border-radius: 8px;
    padding: 23px;
    margin: auto;
    transition: transform 0.3s;
    width: 100%;
    border: 3px solid var(--background-color);
    background: var(--background-color-alf-a);
    position: sticky;
    top: 60px;
}

.result-item:hover {
    transform: scale(1.005);
}

/* Stile del titolo */
.result-title a {
    position: relative;
    font-size: 19px;
    margin-bottom: 10px;
}

.result-container *:hover,
.ref:hover {
    -webkit-transition: .3s ease-out .1s;
    -o-transition: .3s ease-out .1s;
    transition: .13s ease-out .1s;
}

.result-item .channel {}

.result-item a {
    margin-left: 10px;

}

.result-item .channel i,
.result-item .author i {
    margin-right: 6px;
    font-size: 18px;
}

.result-item .channel {
    color: #666;
    font-weight: 300;
    display: inline-flex;
    position: relative;
    padding: 7px 8px;
    align-items: center;
}

.result-item .author {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding-bottom: 7px;
    padding: 13px 14px;
}

.result-item .date span {
    color: var(--text-light);
    display: flex;
    position: relative;
    padding: 6px 8px;
    margin: auto;
    align-items: center;
}

.result-item .date span i {
    margin-right: 7px;
}

.result-item .channel:hover:not(.result-footer a),
.result-item .author:hover {
    background: var(--background-color-alf-2);
}

.result-title a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    margin-left: initial;
    margin-bottom: 9px;
}

/* Stile dei meta dati */
.result-meta {
    position: relative;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
}

.result-footer {
    position: relative;
    font-size: 13px;
    display: flex;
    margin-top: 5px;
    /* border-bottom: 1px solid #1877f2; */
    align-items: center;
    flex-wrap: wrap;
}

.result-footer .date {
    margin: auto;
    position: relative;
    margin-right: 0;
}

.result-meta .avatar:hover {
    border: 3px solid var(--base-lemon);
}

.result-meta .avatar {
    /* position: absolute; */
    right: 0;
    top: 0;
    border: 4px solid #00000000;
}


.result-meta .avatar-container {
    width: 61px;
    height: 61px;
    position: absolute;
    right: 0;
    top: 0;
    margin-top: -33px;
    margin-right: -53px;
    overflow: hidden;
}

.result-meta .avatar-border {
    width: 98%;
    height: 98%;
    border-radius: 50%;
    box-sizing: border-box;
    mix-blend-mode: color;
    /* Sperimenta con diversi modi di miscelazione */
    background: var(--background-color);
}

.result-meta .avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid transparent;
    mask-type: alpha;
    position: absolute;
}


.result-meta .article-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    margin-right: 17px;
    border: 1px solid var(--background);
}

.inblock {
    display: flex;
    border-bottom: 1px solid #5a5a5a9c;
}

.inblock .author {
    border-bottom: none !important
}


.block {
    width: 100%;
}

.result-meta div {
    margin: auto;
}

.block .result-title a {
    padding: 6px 20px;
    border-radius: 20px;
    text-align: initial;
}

.block .result-title a:hover {
    background: var(--background-color-5);
    color: var(--accent-color);
}

.result-meta .tooltipTO {
    position: relative;
}

.result-meta .tooltipTO span {
    visibility: hidden;
    width: 120px;
    min-width: fit-content;
    color: #fff;
    text-align: center;
    border-radius: 0;
    padding: 5px 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.result-meta .tooltipTO:hover span {
    visibility: visible;
    opacity: 1;
}

/* Stile dei link */
.result-meta a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

/* Altri stili specifici */
.notify {
    margin: auto;
    bottom: 77px;
    width: 100%;
    text-align: center;
    position: fixed;
    z-index: 100;
}

.inNotify {
    background: var(--blocked);
    color: var(--bg-button-light);
    padding: 17px;
    font-weight: bolder;
    display: inline-flex;
    align-items: center;
    margin: 1rem 3rem;
    width: auto;
    min-width: 150px;
    border-radius: 6px;
    box-shadow: 0 0 10px 0px var(--background-shadow-alf-2);
    flex-wrap: wrap;
}

.pulse-animation {
    transform: rotate(45deg);
    animation: beat 1.16s ease infinite;
    transform-origin: center;
}

.flex_wrapper.start {
    min-height: 250px;
}

.flex_wrapper {
    position: relative;
    min-height: 50px;
    display: flex;
    animation: infinite loading;
    top: calc(50% - 50px);
    width: 100%;
    align-content: space-around;
    justify-content: center;
    align-items: center;
}

.element1 {
    position: absolute;
    display: inline-block;
    height: 20px;
    width: 5em;
    margin-top: 3px;
    margin-left: 7px;
    border-radius: 20px;
    background: #343434;
    background: linear-gradient(90deg, #2c2c2c 25%, #1f1f1f 50%, #292929 75%);
    background-size: 200% 100%;
    animation: placeHolderShimmer 1.8s linear infinite, placeHolderColorShift 3.6s linear infinite alternate;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation-delay: 0ms;
}

.element2 {
    display: inline-block;
    height: 10px;
    width: 180px;
    margin-bottom: 6px;
    margin-left: 7px;
    border-radius: 20px;
    background: #343434;
    background: linear-gradient(90deg, #2c2c2c 25%, #1f1f1f 50%, #292929 75%);
    background-size: 200% 100%;
    animation: placeHolderShimmer 1.8s linear infinite, placeHolderColorShift 3.6s linear infinite alternate;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation-delay: 0ms;
}

.element3 {
    display: inline-block;
    height: 44px;
    width: 44px;
    border-radius: 50%;
    background: #343434;
    background: linear-gradient(90deg, #2c2c2c 25%, #1f1f1f 50%, #292929 75%);
    background-size: 200% 100%;
    animation: placeHolderShimmer 1.8s linear infinite, placeHolderColorShift 3.6s linear infinite alternate;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation-delay: 0ms;
}

#share-box #inline {
    margin: auto;
    padding: 1rem 3rem;
}

hr,
hr.null {
    height: 0;
    border: 0;
    border-top: 1px solid var(--bg-darken-1);
    clear: both;
}

.share-container .rrssb-buttons {
    padding: 0;
    padding-top: 33px;
    padding-bottom: 34px;
    display: flex;
    justify-content: center;
    border: 2px dashed var(--background-shadow-alf-2);
    border-radius: 20px;
    flex-wrap: wrap;
}

.rrssb-buttons:after,
.rrssb-buttons:before {
    content: " ";
    display: table
}

.rrssb-buttons li {
    box-sizing: border-box;
    display: inline-flex;
    height: 100%;
    list-style: none;
    width: 146px;
    padding: 2px 3px;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
}

.twitter {
    background: #1da1f2;
    color: white;
}

.twitter:hover {
    background-color: #0eaad6;
}

.facebook {
    background-color: #1776f1;
    color: white;
}

.facebook:hover {
    background-color: #1463ca;
}

.googleplus {
    background: #dd4b39;
    color: #fff;
}

.googleplus:hover {
    background-color: #ce2616;
}

.pinterest {
    background: #cb2027;
}

.pinterest:hover {
    background: #aa1d22;
}

.linkedin {
    background: #007bb6;
    color: white;
}

.linkedin:hover {
    background: #005983;
}

.linkedin-light {
    background: #0090d5;
    color: white;
}

.youtube {
    background-color: #df1c31;
    color: #fff;
}

.youtube:hover {
    background-color: #b21627;
}

.rumble {
    background: #699c39;
    color: white;
}

.rumble:hover {
    background: #4b6e29;
    color: white;
}

.vimeo {
    background: #aad450;
    color: white;
}

.email {
    background-color: #0a88ff;
    color: white;
}

.email:hover {
    background-color: #006ed6;
}

.tumblr {
    background-color: #32506d;
    color: #fff;
}

.tumblr:hover {
    background-color: #22364a;
}


.pocket {
    background-color: #ed4054;
    color: #fff;
}

.pocket:hover {
    background-color: #e4162d;
}

.github {
    background-color: #444;
    color: #fff;
}


.delicious {
    background-color: #0b79e5;
    color: #fff;
}

.delicious:hover {
    background-color: #095fb4;
}

.vk {
    background-color: #4d71a9;
    color: #fff;
}

.vk:hover {
    background-color: #3d5a86;
}

.whatsapp a,
.whatsapp,
.wp {
    background-color: #25d366;
    color: #fff;
}

.whatsapp:hover,
.wp:hover {
    background-color: #199347;
}

.hackernews {
    background-color: #f60;
    color: #fff;
}

.hackernews:hover {
    background-color: #cc5200;
}

.twitter {
    background: #1da1f2;
    color: white;
}

.twitter:hover {
    background-color: #0eaad6;
}

.twitch {
    background: #6441A4;
    /* Colore di sfondo normale */
    color: white;
}

.twitch:hover {
    background: #52327E;
    /* Colore di sfondo all'hover */
}

#allMedia .facebook {
    background-color: #1776f1;
    color: white;
    clear: both;
    overflow: auto;
    width: -webkit-fill-available;
    text-align: center;
    min-height: 500px;
    padding: 0;
}

#allMedia .facebook * {
    margin: auto;
    padding: 0;
}

.facebook:hover {
    background-color: #1463ca;
}

.googleplus {
    background: #dd4b39;
    color: #fff;
}

.googleplus:hover {
    background-color: #ce2616;
}

.pinterest {
    background: #cb2027;
    color: #fff;
}

.pinterest:hover {
    background: #aa1d22;
}

.linkedin {
    background: #007bb6;
    color: white;
}

.linkedin:hover {
    background: #026392;
}

.linkedin-light {
    background: #0090d5;
    color: white;
}

.youtube {
    background: #414141;
    color: white;
}

.youtube.video {
    height: auto;
    position: relative;
    padding: 4px;
    width: 100%;
}

.youtube:hover {
    background-color: #b21627;
}

.vimeo {
    background: #aad450;
    color: white;
}

.email {
    background-color: #0a88ff;
    color: white;
}

.email:hover {
    background-color: #006ed6;
}

.tumblr {
    background-color: #32506d;
    color: white;
}

.tumblr:hover {
    background-color: #22364a;
}

.reddit {
    background-color: #8bbbe3;
    color: white;
}

.reddit:hover {
    background-color: #62a3d9;
}

.pocket {
    background-color: #ed4054;
    color: white;
}

.pocket:hover {
    background-color: #e4162d;
}

.github {
    background-color: #444;
    color: white;
}

.delicious {
    background-color: #0b79e5;
    color: white;
}

.delicious:hover {
    background-color: #095fb4;
}

.vk {
    background-color: #4d71a9;
    color: white;
}

.vk:hover {
    background-color: #3d5a86;
}

.whatsapp a,
.whatsapp,
.wp {
    background-color: #25d366;
    color: white;
}

.whatsapp:hover,
.wp:hover {
    background-color: #199347;
}

.hackernews {
    background-color: #f60;
}

.hackernews:hover {
    background-color: #cc5200;
}

.telegram {
    background: #08c;
    color: white;
}

.telegram:hover {
    background: #036191;
}

.signal {
    background: #00b6e3;
    /* Colore di sfondo normale */
    color: white;
}

.signal:hover {
    background: #0098c2;
    /* Colore di sfondo all'hover */
}

.tumblr {
    background: #32506d;
    color: white;
}

.tumblr:hover {
    background: #203345;
}

.truthsocial {
    background-color: #0b5abf;
    /* Colore di sfondo predefinito */
    color: #fff;
    /* Colore del testo predefinito */
}

.truthsocial:hover {
    background-color: #084180;
    /* Colore di sfondo durante il passaggio del mouse */
    /* Aggiungi altre regole CSS per l'effetto "hover" a seconda delle tue preferenze */
}

.reddit {
    background-color: #ff4500;
    color: white;
}

.reddit:hover {
    background-color: #ea0027;
}

.instagram {
    background-color: #517fa4;
    color: white;
}

.instagram:hover {
    background-color: #406582;
}

.flickr {
    background-color: #ff0084;
    color: white;
}

.flickr:hover {
    background-color: #d6006d;
}

.dribbble {
    background-color: #ea4c89;
    color: white;
}

.dribbble:hover {
    background-color: #c23768;
}

.quora {
    background-color: #a82400;
    color: white;
}

.quora:hover {
    background-color: #841a00;
}

.foursquare {
    background-color: #0072b1;
    color: white;
}

.foursquare:hover {
    background-color: #005688;
}

.forrst {
    background-color: #5b9a68;
    color: white;
}

.forrst:hover {
    background-color: #498e5a;
}

.vk {
    background-color: #45668e;
    color: white;
}

.vk:hover {
    background-color: #33566d;
}

.wordpress {
    background-color: #21759b;
    color: white;
}

.wordpress:hover {
    background-color: #1a627f;
}

.stumbleupon {
    background-color: #eb4823;
    color: white;
}

.stumbleupon:hover {
    background-color: #c83b1d;
}

.yahoo {
    background-color: #7b0099;
    color: white;
}

.yahoo:hover {
    background-color: #5c0077;
}

.blogger {
    background-color: #fb8f3d;
    color: white;
}

.blogger:hover {
    background-color: #e27835;
}

.soundcloud {
    background-color: #ff3a00;
    color: white;
}

.soundcloud:hover {
    background-color: #d32f00;
}

.rrssb-buttons li a {
    border-radius: 5px;
    box-sizing: border-box;
    display: flex;
    font-size: 10px;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-weight: 700;
    margin: 3px auto;
    padding: 13px 6px 13px 11px;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s ease-in-out;
    width: 100%;
    align-items: center;
    flex-wrap: nowrap;
}

.rrssb-buttons li a .rrssb-icon {
    padding-right: 11px;
    position: relative;
    color: #fff;
    font-size: 18px
}

.rrssb-buttons li a .rrssb-icon svg path,
.rrssb-buttons li a .rrssb-icon svg polygon {
    fill: #fff
}

.rrssb-buttons li a .rrssb-text {
    color: #fff;
    font-size: 14px !important
}

.rrssb-buttons li a:active {
    box-shadow: inset 1px 3px 15px 0 rgba(22, 0, 0, .25)
}

.rrssb-buttons li.small a {
    padding: 0
}

.rrssb-buttons li.small a .rrssb-icon {
    left: auto;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    top: auto;
    width: 100%
}

.rrssb-buttons li.small a .rrssb-text {
    visibility: hidden
}

.rrssb-buttons.large-format,
.rrssb-buttons.large-format li {
    height: auto
}

.rrssb-buttons.large-format li:first-child:last-child a {
    font-size: 4vw
}

.rrssb-buttons.large-format li:first-child:nth-last-child(2) a,
.rrssb-buttons.large-format li:first-child:nth-last-child(2)~li a {
    font-size: 2vw
}

.rrssb-buttons.large-format li:first-child:nth-last-child(3) a,
.rrssb-buttons.large-format li:first-child:nth-last-child(3)~li a {
    font-size: 1.7vw
}

.rrssb-buttons.large-format li:first-child:nth-last-child(4) a,
.rrssb-buttons.large-format li:first-child:nth-last-child(4)~li a {
    font-size: 1.4vw
}

.rrssb-buttons.large-format li:first-child:nth-last-child(5) a,
.rrssb-buttons.large-format li:first-child:nth-last-child(5)~li a {
    font-size: 1.2vw
}

.rrssb-buttons.large-format li:first-child:nth-last-child(6) a,
.rrssb-buttons.large-format li:first-child:nth-last-child(6)~li a {
    font-size: 1.05vw
}

.rrssb-buttons.large-format li:first-child:nth-last-child(7) a,
.rrssb-buttons.large-format li:first-child:nth-last-child(7)~li a {
    font-size: .9vw
}

.rrssb-buttons.large-format li:first-child:nth-last-child(8) a,
.rrssb-buttons.large-format li:first-child:nth-last-child(8)~li a {
    font-size: .8vw
}

.rrssb-buttons.large-format li:first-child:nth-last-child(9) a,
.rrssb-buttons.large-format li:first-child:nth-last-child(9)~li a {
    font-size: .7vw
}

.rrssb-buttons.large-format li:first-child:nth-last-child(10) a,
.rrssb-buttons.large-format li:first-child:nth-last-child(10)~li a {
    font-size: .6vw
}

.rrssb-buttons.large-format li:first-child:nth-last-child(11) a,
.rrssb-buttons.large-format li:first-child:nth-last-child(11)~li a {
    font-size: .5vw
}

.rrssb-buttons.large-format li a {
    backface-visibility: hidden;
    border-radius: .2em;
    padding: 8.5% 0 8.5% 12%
}

.rrssb-buttons.large-format li a .rrssb-icon {
    height: 100%;
    left: 7%;
    padding-top: 0;
    width: 12%
}

.rrssb-buttons.large-format li a .rrssb-icon svg {
    height: 100%;
    position: absolute;
    top: 0;
    width: 100%
}

.rrssb-buttons.large-format li a .rrssb-text {
    backface-visibility: hidden
}

.rrssb-buttons.small-format {
    padding-top: 5px
}

.rrssb-buttons.small-format li {
    height: 80%;
    padding: 0 1px
}

.rrssb-buttons.small-format li a .rrssb-icon {
    height: 100%;
    padding-top: 0
}

.rrssb-buttons.small-format li a .rrssb-icon svg {
    height: 48%;
    position: relative;
    top: 6px;
    width: 80%
}



#snowflakes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.snowflake {
    position: absolute;
    user-select: none;
    pointer-events: none;
    color: #fff;
    /* Colore delle snowflakes */
    font-size: 10px;
    /* Dimensione di base delle snowflakes */
    animation: snowfall linear infinite;
}

#popupWinter {
    display: none;
    position: fixed;
    top: 0;
    /* Posizione iniziale in alto */
    left: 50%;
    transform: translate(-50%, 0);
    text-align: center;
    z-index: 10000;
    padding: 20px;
    border-radius: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: descend 1s ease-in-out forwards, swing 3s ease-in-out forwards 1s;
    /* Aggiungi l'animazione di discesa */
}

@keyframes descend {
    to {
        top: 50%;
        /* Posizione finale centrata verticalmente */
        transform: translate(-50%, -50%);
    }
}

@keyframes swing {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    20%,
    60% {
        transform: translate(-50%, -50%) rotate(15deg);
    }

    40%,
    80% {
        transform: translate(-50%, -50%) rotate(-15deg);
    }
}

#popupWinter .svg {
    width: 180px;
    text-shadow: 5px 6px 9px rgb(0 0 0 / 73%);
}

#popupWinter img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

@media screen and (max-width: 480px) {

    .article__body {
        position: relative;
        padding: 19px;
        margin-left: var(--space-10);
        margin-right: var(--space-10);
    }

    .article__tags {
        gap: var(--space-4);
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }

    .article__header .article__title {
        font-size: var(--font-size-2xl);
        line-height: 150%;
    }
}