/* RESET E BODY */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff; /* sfondo bianco generale */
    color: #00334d; /* testo blu scuro */
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #005f99 !important; /* blu principale */
    color: #ffffff;
}

header h1 {
    flex: 1;
    text-align: center;
    margin: 0;
}

header img {
    height: 50px;
}

#header-label {
    font-weight: normal;
    font-size: 0.9em;
    margin-right: 5px;
    color: #e6f0fa; /* avion chiaro per differenziarlo dal titolo */
}

/* MAIN */
main {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
}

/* VIDEO RESPONSIVE */
.video-container {
    width: 100%;
    max-width: 1000px;
    margin-top: 20px; /* spazio tra header e player */
}

.video-container video {
    width: 100%;
    height: auto;
    border: 2px solid #005f99; /* bordo blu attorno al player */
    border-radius: 6px;
}

/* LISTA VIDEO */
#video-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    justify-content: center;
    margin-top: 20px; /* distanza dal player */
    background-color: #e6f0fa; /* sfondo avion */
    border-top: 2px solid #cce0f5;
}

.video-item {
    cursor: pointer;
    transition: 0.2s;
    background: #ffffff;
    border: 1px solid #cce0f5;
    border-radius: 5px;
    padding: 10px;
    flex: 1 1 250px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.video-item:hover {
    background: #cce0f5;
}

.video-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #00334d;
}

.video-desc {
    font-size: 0.9em;
    color: #333;
}

.video-number {
    display: inline-block;
    width: 22px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    background-color: #005f99; /* cerchio blu */
    border-radius: 50%;
    margin-right: 5px;
}

/* Evidenzia il video selezionato */
.video-item.active {
    border: 2px solid #005f99; /* bordo blu scuro */
    background-color: #d9ecff;  /* azzurro chiaro */
}

/* FOOTER */
footer {
    text-align: center;
    padding: 10px;
    background-color: #005f99 !important; /* blu principale */
    color: #ffffff;
}
