.linea-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: #E5E5E5;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    flex-wrap: wrap;
}

.linea-nome {
    font-size: 18px;
    font-weight: bold;
    color: #00619A;
    margin-bottom: 8px;
    text-decoration: none;
    flex: 1;
    min-width: 200px;
    word-break: break-word;
    white-space: normal;
}

.linea-bottoni {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
    gap: 8px;
}

a.pdf-button {
    background: #61c0e5;
    color: white !important;
    padding: 6px 10px;
    border-radius: 5px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
    border: 2px solid #61c0e5;
}

a.pdf-button.schema {
    background: #00619A;
    border-color: #00619A;
}

a.pdf-button:hover {
    background: #e7305b;
    color: white !important;
    border-color: #e7305b;
}

#filtro-linee {
    display: block;
    margin: 0 auto 20px auto;
    text-align: center;
    width: 300px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #61c0e5;
    border-radius: 8px;
    outline: none;
    color: #00619A;
    font-family: 'Open Sans', Arial, sans-serif;
}

.orari-wrapper h2 {
    text-align: center;
    color: #00619A;
    margin-top: 30px;
}


/* Responsive */

@media only screen and (max-width: 768px) {
    .linea-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .linea-nome {
        font-size: 16px;
        margin-bottom: 10px;
        word-wrap: break-word;
        max-width: 100%;
    }

    .linea-bottoni {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .linea-bottoni a.pdf-button {
        font-size: 14px;
        padding: 10px 15px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        white-space: normal;
    }
}

