body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #b8b8b8;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-image {
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
}

#contactCard {
    background-color: #333;  /* Sfondo dello stesso colore del footer */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contactCard:hover {
    background-color: #555;  /* Un po' più chiaro per l'effetto hover */
}

section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.bio h2, .contact-form h2 {
    color: #333;
    margin-bottom: 15px;
}

.bio p {
    line-height: 1.6;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;  /* Bordo uniforme grigio chiaro */
    border-radius: 4px;
    display: block;
    font-size: 16px;
    box-sizing: border-box;
    background: #f9f9f9;
    transition: border-color 0.3s ease;  /* Transizione fluida del colore del bordo */
}

/* Cambia il colore del bordo quando il campo è in focus */
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #28a745;  /* Verde quando selezionato */
    outline: none;  /* Rimuove l'outline standard di focus */
}

button[type="submit"] {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: rgb(70, 0, 0);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    border-radius: 0 0 8px 8px;
}

footer a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-size: 20px;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    .profile-image {
        max-width: 150px;
    }
    input, textarea {
        padding: 8px;
    }
}