@font-face {
    
    font-family: 'Oxanium';
    
    src: url('fonts/Oxanium-ExtraLight.woff2') format('woff2'),
    
         url('fonts/Oxanium-ExtraLight.woff') format('woff'),
         
         url('fonts/Oxanium-ExtraLight.ttf') format('truetype');
         
    font-weight: 200;
    
    font-style: normal;
    
}

@font-face {
    
    font-family: 'Oxanium';
    
    src: url('fonts/Oxanium-Light.woff2') format('woff2'),
    
         url('fonts/Oxanium-Light.woff') format('woff'),
         
         url('fonts/Oxanium-Light.ttf') format('truetype');
         
    font-weight: 300;
    
    font-style: normal;
    
}

@font-face {
    
    font-family: 'Oxanium';
    
    src: url('fonts/Oxanium-Regular.woff2') format('woff2'),
    
         url('fonts/Oxanium-Regular.woff') format('woff'),
         
         url('fonts/Oxanium-Regular.ttf') format('truetype');
         
    font-weight: 400;
    
    font-style: normal;
    
}

@font-face {
    
    font-family: 'Oxanium';
    
    src: url('fonts/Oxanium-Medium.woff2') format('woff2'),
    
         url('fonts/Oxanium-Medium.woff') format('woff'),
         
         url('fonts/Oxanium-Medium.ttf') format('truetype');
         
    font-weight: 500;
    
    font-style: normal;
    
}

@font-face {
    
    font-family: 'Oxanium';
    
    src: url('fonts/Oxanium-SemiBold.woff2') format('woff2'),
    
         url('fonts/Oxanium-SemiBold.woff') format('woff'),
         
         url('fonts/Oxanium-SemiBold.ttf') format('truetype');
         
    font-weight: 600;
    
    font-style: normal;
}

/* Aggiungere reset CSS per evitare margini e padding di default sui vari dispositivi */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    display: flex;

    justify-content: center;

    align-items: center;

    min-height: 100vh;

    background-color: #282c34;

    background-image: url('cover/default-background.jpg');

    background-size: cover;

    background-position: center;

    color: white;

    font-family: 'Oxanium', sans-serif; /* Imposta il font Oxanium */

    margin: 0;

    position: relative;

    overflow: hidden;

}



.radio-container {

    text-align: center;

    position: relative;

    z-index: 2;

    padding: 20px;

    width: 100%;

    max-width: 400px; /* Limitare la larghezza massima per dispositivi più grandi */

}



.controls {

    margin-top: 20px;

    display: flex;

    justify-content: center;

}



#play-icon, #stop-icon {

    cursor: pointer;

    color: #f4f4f4;

}



#play-icon:hover, #stop-icon:hover {

    color: #ffffff;

}



audio {

    display: none; /* Nascondere l'elemento audio */

}



.cover-container {

    position: relative;

    display: inline-block;

    text-align: center;

    width: 100%;

}



.cover {

    width: 80%;

    max-width: 300px; /* Limita la larghezza massima della copertina */

    height: auto;

    position: relative;

    border-radius: 50px;

    overflow: hidden;

    margin: 0 auto;

}



.cover img {

    width: 100%;

    height: auto;

    object-fit: cover;

    position: relative;

    z-index: 2;

}



.cover-background {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-size: cover;

    background-position: center;

    opacity: 0;

    z-index: 1;

}



h1 {

    font-size: 2.5em;

    color: #f4f4f4;

    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);

}

#logo {
	
    max-width: 200px;
	
    height: auto;
	
	display: block;
	
	margin: 0 auto; /* Aggiunto per centrare l'immagine orizzontalmente */
	
}

h2 {

    margin: 10px 0 5px 0;

    font-size: 1.4em;

    font-weight: bold;

    color: #f4f4f4;

    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    
    font-family: 'Oxanium', sans-serif;
    
    font-weight: 500; /* Medium 500 */

}



h3 {

    margin: 0 0 10px 0;

    font-size: 1em;

    font-style: italic;

    color: #f4f4f4;

    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    
    font-family: 'Oxanium', sans-serif;
    
    font-weight: 200; /* ExtraLight 200 */

}



body::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.5);

    z-index: 1;

}



/* Media Queries per dispositivi mobili */

@media (max-width: 768px) {

    h1 {

        font-size: 2em;

    }



    h2 {

        font-size: 1.5em;

    }



    h3 {

        font-size: 1.2em;

    }



    .cover {

        width: 90%;

        max-width: 200px; /* Ridurre la dimensione massima su dispositivi mobili */

    }



    .controls {

        flex-direction: column; /* Disporre i controlli verticalmente su schermi più piccoli */

    }



    #play-icon, #stop-icon {

        font-size: 2em;

    }

}



.fixed-buttons a img {
    width: 70px;      /* dimensione base */
    height: auto;     /* mantiene proporzioni originali */
    transition: transform 0.2s ease;
    cursor: pointer;
}

/* Effetto hover */
.fixed-buttons a img:hover {
    transform: scale(1.1);
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .fixed-buttons a img {
        width: 50px;   /* ridimensionati per smartphone */
    }
}


/* Pulsanti fissi in basso (fix con z-index maggiore) */
.fixed-buttons {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 0px;
    z-index: 9999; /* più alto di body::before */
    pointer-events: auto;
}


.fixed-buttons a img {
    width: 200px;      /* dimensione base */
    height: auto;     /* mantiene proporzioni originali */
    transition: transform 0.2s ease;
    cursor: pointer;
}

/* Effetto hover */
.fixed-buttons a img:hover {
    transform: scale(1.1);
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .fixed-buttons a img {
        width: 130px;   /* ridimensionati per smartphone */
    }
}

/* ==========================
   PULSANTI SUPERIORI
========================== */

.top-buttons {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    display: flex;
    justify-content: space-between;
    padding: 0;
    z-index: 9999;
    pointer-events: auto;
}

.top-buttons a img {
	width: 200px;
    height: auto;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.top-buttons a img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {

    .top-buttons a img {
        width: 130px;
    }

    .radio-container {
        padding-top: 0;
    }

}

.cover-glow {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    z-index: 0;

    background:
        conic-gradient(
            #ff0000,
            #ff7f00,
            #ffff00,
            #00ff00,
            #00ffff,
            #0000ff,
            #8b00ff,
            #ff00ff,
            #ff0000
        );

    filter: blur(20px);

    animation: spinGlow 4s linear infinite;
}

@keyframes spinGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}