﻿#neve {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

/* CONTENITORE DI CADUTA */
.caduta {
    position: absolute;
    top: -10px;
    animation: scendi linear infinite;
}

/* FIOCCO */
.fiocco {
background: radial-gradient(circle at 30% 30%, #ffffff, #bbbbbb);
box-shadow: 
    0 0 4px rgba(0,0,0,0.25),
    0 0 8px rgba(255,255,255,0.8);
    border-radius: 50%;
    opacity: 0.9;
    animation: oscilla ease-in-out infinite;
}

/* Dimensioni */
.piccolo { width: 10px; height: 10px; opacity: 0.4; }
.medio   { width: 11px; height: 11px; }
.grande  { width: 14px; height: 14px; }

/* Velocità */
.lento  { --durata: 14s; }
.medioV { --durata: 10s; }
.veloce { --durata: 7s; }

/* ANIMAZIONI */
@keyframes scendi {
    from { transform: translateY(-10px); }
    to { transform: translateY(110vh); }
}

@keyframes oscilla {
    0%   { transform: translateX(0); }
    50%  { transform: translateX(var(--vento)); }
    100% { transform: translateX(0); }
}

.caduta {
    animation-duration: var(--durata);
}

.fiocco {
    animation-duration: calc(var(--durata) / 2);
}

/* Mobile */
@media (max-width: 600px) {
    .grande { display: none; }
}





.slitta-overlay {
    position: fixed;
    top: 15%;
    right: -100%;
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 10000;
    white-space: nowrap;
    pointer-events: none;
    animation: slittaPassa 18s linear infinite;
}

/* ICONE SLITTA */
.slitta {
    font-size: 56px;
    filter: drop-shadow(0 0 8px rgba(255,0,0,0.8));
}

/* TESTO NATALIZIO */
.testo-slitta {
    font-size: 46px;                 /* SUPER GRANDE */
    font-weight: 700;
    color: #c40000;
    letter-spacing: 3px;

    font-family: "Mountains of Christmas", "Brush Script MT", "Segoe Script", "Comic Sans MS", cursive;

    text-shadow:
        3px 3px 0 #ffffff,
        0 0 10px rgba(255,255,255,0.9),
        0 0 18px rgba(255,0,0,0.9),
        0 0 25px rgba(255,210,210,1);

    animation: glowNatale 1.8s ease-in-out infinite alternate;
    user-select: none;
}

/* ANIMAZIONE SCORRIMENTO */
@keyframes slittaPassa {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-200vw);
    }
}

/* EFFETTO LUCE TESTO */
@keyframes glowNatale {
    from {
        text-shadow:
            3px 3px 0 #ffffff,
            0 0 10px rgba(255,255,255,0.9),
            0 0 18px rgba(255,0,0,0.7),
            0 0 25px rgba(255,210,210,0.8);
    }

    to {
        text-shadow:
            3px 3px 0 #ffffff,
            0 0 14px rgba(255,255,255,1),
            0 0 22px rgba(255,0,0,1),
            0 0 35px rgba(255,255,255,1);
    }
}

/* MOBILE */
@media (max-width: 700px) {

    .slitta {
        font-size: 34px;
    }

    .testo-slitta {
        font-size: 28px;
        letter-spacing: 2px;
    }
}
