/* Header con sfondo gradiente */
.header-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    color: white;
}

/* Palline che girano */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    50% { transform: translate(10px, -10px) rotate(180deg); }
    100% { transform: translate(0px, 0px) rotate(360deg); }
}

.bubble-1 { width: 150px; height: 150px; top: -50px; left: -50px; animation-delay: 0s; }
.bubble-2 { width: 100px; height: 100px; bottom: -30px; right: -30px; animation-delay: 2s; }
.bubble-3 { width: 80px; height: 80px; top: 20%; right: 5%; animation-delay: 4s; }
.bubble-4 { width: 120px; height: 120px; bottom: 10%; left: 10%; animation-delay: 1s; }

/* Stile numeri come palline rotonde */
.number {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0.5rem;
    padding: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    height: 2.5rem;
    width: 2.5rem;
    text-align: center;
    transform: translateY(-100px);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out, box-shadow 0.3s ease;
}

.number.visible {
    transform: translateY(0);
    opacity: 1;
}

.number:hover {
    transform: scale(1.1) translateY(0) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    filter: brightness(1.1);
}

/* Colori palline */
.rosso { background: #ff5555; color: white; }
.giallo { background: #ffcc00; color: black; }
.viola { background: #9933cc; color: white; }

/* Titoli a destra, centrati verticalmente */
.section-header {
    display: flex;
    align-items: center;
    justify-content: end;
    margin-bottom: 1rem;
}
/* Titoli sezioni (centrati, con sfondo) */
.section-title {
    display: inline-block;
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center;
    margin: 0 auto;
    display: block;
    width: fit-content;
}

body {
    position: relative;
    overflow-x: hidden;
    background: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}