/* 
 * Stile di base condiviso: sfondo, font, cursore, etc.
*/

/* 
 * NOTA SULL'ACCESSIBILITÀ: `cursor: none` nasconde il cursore di sistema,
 * il che può essere un problema per alcuni utenti. Un cursore personalizzato
 * viene fornito come alternativa.
*/
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background-color: #F0EEE9; /* Bianco Panna */
    font-family: 'Jura', sans-serif;
    font-weight: 300;
    color: #080808;
    cursor: none;
}

/*
 * Effetto grana/rumore per lo sfondo.
*/
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="1.1" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
    opacity: 0.1;
    z-index: 0;
}

/* 
 * Contenitore generico per centrare il contenuto.
*/
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-direction: column;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

/* Stile base per i link */
a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

/* 
 * Cursore custom: rettangolare, basso e lampeggiante.
 * NOTA SULL'ACCESSIBILITÀ: L'animazione lampeggiante può essere problematica
 * per utenti con epilessia fotosensibile.
*/
#custom-cursor {
    position: fixed;
    width: 20px;
    height: 4px;
    background-color: #080808;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    animation: blink 1.2s infinite;
    transition: width 0.2s ease-in-out, height 0.2s ease-in-out;
}

/* Stile per il morphing in verticale del cursore */
#custom-cursor.vertical-morph {
    width: 4px;
    height: 20px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* --- Controlli Audio Condivisi --- */
.audio-controls {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-size: 0.8rem;
    text-transform: lowercase;
    opacity: 0; /* Stato iniziale per animazione */
    transition: opacity 0.5s ease-in-out;
}

.audio-controls button {
    background: none;
    border: none;
    font-family: 'Jura', sans-serif;
    font-size: inherit;
    color: #080808;
    cursor: none;
    transition: color 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.audio-controls button:hover {
    color: #B8B8B8;
    filter: blur(1px);
}

/* Stile per pulsanti attivi (suono acceso) */
.audio-controls button.active {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}