/* Calendario Magico Penelope iltelaiodipenelope.it */
body {
    background-color:transparent;
    overflow:hidden;
    padding:0;
    margin: 0;
}
.box {
    position: relative;
    width: 220px;
    height: 490px;
    text-align: center;
}
.box-calendario {
    position: absolute;
    top: 205px;
    left: 4px;
    width: 210px;
    height: 280px;
    padding: 6px;
    background-image: linear-gradient(135deg, #fdfbf8ff, #f0e2d1ff, #fffefcff);
    backdrop-filter: blur(4px);
    border: 1px solid #cdb6b1;
    box-shadow: 0 6px 12px rgba(36, 35, 35, 0.10);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 8px;
    box-sizing: border-box;
}
.calendario-magico-box {
    width: 180px;
    margin: auto;
}
.calendario-magico-title {
    font-family: "Delius Swash Caps", cursive;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: #b4928a;
    padding: 4px;
    margin-bottom: 6px;
}
.calendario-magico-giorni,
.calendario-magico-griglia {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    text-align: center;
    margin-bottom: 2px;
}
/* intestazione giorni */
.calendario-magico-giorni span {
    font-family: "Delius Swash Caps", cursive;
    font-size: 11px;
    font-weight: bold;
    color: #b4928a;
    height: 20px;
}
/* domenica */
.calendario-magico-giorni span:first-child {
    color: #892623;
}
/* numeri */
.calendario-magico-griglia span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    font-family: "Delius Swash Caps", cursive;
    font-size: 11px; 
    color: #b4928a;
}
.calendar-day.giorno-evento {
    border: 1px solid #cdb6b1;
    border-radius: 4px;
    box-sizing: border-box;
    background-image: linear-gradient(45deg, #fdfbf8ff, #f0e2d1ff, #fffefcff);
    cursor: pointer;
}
.calendar-day.oggi {
    font-weight: bold;
    color: #b4928a;
    text-decoration: underline;
}
.calendario-magico-tooltip {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    z-index: 10;
    padding: 0 12px 14px 0;
    border-radius: 10px;
    background-image: linear-gradient(45deg, #fdfbf8ff, #f0e2d1ff, #fffefcff);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid #cdb6b1;
    box-shadow: 0 3px 8px rgba(80,50,40,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.calendario-magico-tooltip.visibile {
    opacity: 1;
    visibility: visible;
}
.tooltip-evento {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.tooltip-evento span {
    white-space: pre-line;
    font-family: "Delius Swash Caps", cursive;
    font-size: 13px;
    color: #892623;
}
.tooltip-evento + .tooltip-evento {
    margin-top: 0px;
}
.tooltip-evento i {
    flex-shrink: 0;
    font-size: 11px;
    margin-right: 5px;
    margin-top: 15px;
}
.testo-ora {
    font-family: "Delius Swash Caps", cursive;
    font-size: 12px;
    text-align: center;
    color: #b4928a;
    margin-top: 2px;
}
.testo-feste {
    font-family: "Delius Swash Caps", cursive;
    font-size: 12px;
    text-align: center;
    color: #892623;
    width: auto;
    margin: 8px auto 0;
}
.telaio-credits {
    width: 80%;
    margin: 10px auto 0;
}
a:link { 
    text-decoration: none; 
    cursor:nw-resize;
    font-family: "Delius Swash Caps", cursive; 
    font-size: 11px;
    color: #b4928a; 
}
a:visited { 
    text-decoration:none; 
    cursor:nw-resize;
    font-family: "Delius Swash Caps", cursive; 
    font-size: 11px;
    color: #b4928a; 
}
a:hover {
    text-decoration: underline; 
    color: #892623;
}
.pioggia {
    position:absolute;
    left:0;
    top:0;
    width:180%;
    height:460px;
    pointer-events:none;
}
.brillantino{
    position:absolute;
    top:-40px;
    animation: caduta linear infinite;
    animation-duration: calc(5s + var(--i) * 0.5s);
    animation-delay: calc(var(--i) * 0.5s);
}
@keyframes caduta{
  from { transform: translateY(-40px); }
  to { transform: translateY(460px); }
}