/* Pulsante WhatsApp fisso */
.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: background 0.2s, transform 0.2s;
}
.whatsapp-float:hover {
    background: #1ebe57;
    transform: scale(1.08);
}

@media (max-width: 600px) {
    .whatsapp-float {
        width: 44px;
        height: 44px;
        bottom: 16px;
        right: 16px;
    }
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #222;
}
header {
    background: #0078d7;
    color: #fff;
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
}

.logo-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}
.site-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@media (max-width: 600px) {
    .logo-title {
        flex-direction: column;
        gap: 0.5rem;
    }
    .site-logo {
        width: 48px;
        height: 48px;
    }
}
header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
}
header p {
    margin: 0;
    font-size: 1.2rem;
}
section {
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 2rem;
}
section h2 {
    margin-top: 0;
    color: #0078d7;
}
.skills ul {
    padding-left: 1.2rem;
}
.skills li {
    margin-bottom: 0.5rem;
}
.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact input, .contact textarea {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.contact button {
    background: #0078d7;
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

/* Sezione Progetti */
.projects {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 2rem;
}
.projects h2 {
    color: #0078d7;
}
.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}
.project {
    flex: 1 1 250px;
    min-width: 250px;
    max-width: 280px;
    background: #f7f7f7;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.project h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #188841;
    font-size: 1.2rem;
}
.project p {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}
.project a {
    margin-top: auto;
    color: #0078d7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.project a:hover {
    color: #188841;
}
/* Galleria immagini progetto */
.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1rem 0;
}
.project-gallery img {
    width: 140px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    object-fit: cover;
    background: #eee;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}
.project-gallery img:hover {
    transform: scale(1.05);
    border-color: #0078d7;
}
@media (max-width: 600px) {
    .project-gallery {
        flex-direction: column;
        gap: 0.5rem;
    }
    .project-gallery img {
        width: 100%;
        max-width: 100%;
    }
}
@media (max-width: 800px) {
    .project-list {
        flex-direction: column;
        gap: 1rem;
    }
    .project {
        max-width: 100%;
    }
}
.contact button:hover {
    background: #005fa3;
}
footer {
    text-align: center;
    padding: 1rem;
    background: #222;
    color: #fff;
    margin-top: 2rem;
}
@media (max-width: 700px) {
    section {
        margin: 1rem;
        padding: 1rem;
    }
    header {
        padding: 1.5rem 0.5rem 0.5rem 0.5rem;
    }
}
