  /* Resetta gli stili predefiniti */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo della pagina */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
header {
    background-color: #449c94;
    color: white;
    padding: 20px 0;
    text-align: center;
    flex-shrink: 0;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header .logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-right: 15px;
}


.header_remake {
    background: rgb(218, 218, 218);
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    justify-content: flex-end;
}

.header-faq {
    background: #ccdf9a;
    padding: 15px;
    display: flex;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    justify-content: flex-start;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centra il contenuto orizzontalmente */
}


/* Content */
.content {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    padding: 10px;
    gap: 10px;
    justify-content: space-between;
}

.colonna_sx {
    flex: 0.5;
    min-width: 150px; /
    background-color: #f4f4f4;
    border-radius: 8px;
}

.colonna_dx {
    flex: 2; 
    min-width: 250px; 
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
}



/* Footer */
footer {
    background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

footer p {
    margin: 5px 0;
    font-size: 14px;
    opacity: 0.85;
    transition: opacity 0.3s ease-in-out;
}

footer p:hover {
    opacity: 1;
}

footer strong {
    color: #f8b400;
}

footer a {
    color: #f8b400;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

.sezione_files {
    display: flex;
    flex-direction: column;
    /* Imposta la direzione verticale */
    gap: 20px;
    /* Distanza tra file e FAQ */
}

.files,
.faq {
    display: flex;
    flex-direction: column;
    /* Imposta la direzione verticale */
}


.container_files {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    /* Spazio tra gli elementi */
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.file-icon {
    width: 64px;
    height: 64px;
}

.file-name {
    flex-grow: 1;
    /* Il nome del file occupa lo spazio disponibile */
    font-size: 14px;
}

.download-btn {
    padding: 5px 10px;
    background-color: #449c94;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.download-btn:hover {
    background-color: #367f78;
}

.item-list {
    display: flex;
    flex-direction: column; /* Disposizione verticale */
    max-height: 400px; /* Limita l'altezza massima */
    overflow-y: auto; /* Aggiunge la scrollbar quando il contenuto è troppo alto */
    
}



.item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.item img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.item:hover,
.item.selected {
    background-color: #e3f2fd;
}

.selected {
    font-weight: bold;
}

/******************** FAQ *************************************************/
.faq {
    width: 100%;

    margin: 0 auto;

}

.accordion-item {
    margin-bottom: 10px;
}

.accordion {
    width: 100%;
    padding: 15px;
    text-align: left;
    background-color: #449c94;
    color: white;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.accordion:hover {
    background-color: #45a049;
}

.accordion-content {
    padding: 10px 15px;
    display: none;
    background-color: #f1f1f1;
    border-left: 3px solid #449c94;
    border-radius: 5px;
    margin-top: 5px;
}

/****************RICERCA ********************************/

.search_header{

    width:100%;
    display: flex;
    justify-content: flex-end;
}


.search-container {
    width: 250px;
    bottom: -20px;
    /* Posizionato in basso */
    right: 20px;
    display: flex;
    align-items: center;
    background: white;
    padding: 5px 10px;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.search-container input {
    border: none;
    outline: none;
    padding: 5px;
    font-size: 16px;
}

.search-container button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    margin-left: 5px;
    color: #449c94;
}

.result-count {
    font-size: 14px;
    color: #999;
    margin-left: 10px;
}

.search-result-message {
    padding: 15px;
    background-color: #e0f7fa;
    border-left: 5px solid #00838f;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #00796b;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-result-message span {
    font-weight: bold;
    color: #004d40;
}

.highlighted {
    background-color: #CCDF9A; /* evidenzia con un colore di sfondo giallo */
    font-weight: bold;
}



/* Menu hamburger per mobile */
.menu-hamburger {
    display: none;
}

.hamburger-btn {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}



.demo-warning {
    background-color: rgb(252, 191, 71);
    color: black;
    font-weight: bold;
    padding: 10px 20px;
    font-size: 20px;
    
    display: flex;
    justify-content: center; /* centra il contenuto principale */
    align-items: center;
    position: relative;
}

.demo-warning .right-link {
    margin-left: auto; /* spinge il link a destra */
    font-weight: normal;
    font-size: 16px;
}

.demo-warning .right-link a {
    text-decoration: underline;
    color: black;
}





/* Responsività */
@media (max-width: 1280px) { 
    .content {
        flex-direction: column;
        gap: 10px;
    }

    .header-content h1{
        font-size: 20px;

    }


    .header_remake {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .item-list {
        display: none; /* Nascondi la lista di default */
        flex-direction: column;
        width: 100%;
        background-color: #f4f4f4;
        border-radius: 8px;
        max-height: 250px;
    }

    .menu-hamburger {
        display: block; /* Mostra il bottone per il menu hamburger */
        margin-top: 10px;
    }
    
    .hamburger-btn {
        background-color: #449c94;
        color: white;
        padding: 10px;
        border-radius: 5px;
    }

    /* Quando il menu è visibile, la lista si mostra */
    .item-list.show {
        display: flex;
    }

    .colonna_sx, .colonna_dx {
        min-width: 100%;
    }
}