/* Reset e Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; line-height: 1.6; color: #333; background: #fff; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; margin-bottom: 20px; }
.container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; text-align: center; }

/* Navigazione */
.top-nav { background: #333; color: #fff; padding: 1rem; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; }
.top-nav ul { list-style: none; display: flex; }
.top-nav ul li { margin-left: 20px; }
.top-nav ul li a { color: #fff; text-decoration: none; font-weight: 600; }

/* Selettore Lingua */
.lang-selector { position: relative; }
.lang-btn { background: #444; color: #fff; border: none; padding: 8px 15px; cursor: pointer; border-radius: 4px; }
.lang-dropdown { display: none; position: absolute; background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 10; border-radius: 4px; min-width: 150px; }
.lang-dropdown a { color: #333; padding: 10px; text-decoration: none; display: block; text-align: left; }
.lang-dropdown a:hover { background: #f1f1f1; }

/* Hero Section con Immagine di Sfondo */
.hero { 
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/hero-background.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed;
    color: white; 
    padding: 120px 0; 
}
.btn { display: inline-block; background: #007bff; color: #fff; padding: 12px 25px; text-decoration: none; border-radius: 5px; margin-top: 20px; }

/* Chi Sono - Layout Affiancato */
.about-content { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.about-photo { width: 280px; height: 280px; border-radius: 50%; object-fit: cover; border: 5px solid #f4f4f4; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

/* Griglie (Affianca gli elementi) */
.grid-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 30px; }

/* Stile Box per Competenze e Servizi */
.skill, .project, .review { 
    flex: 1; min-width: 300px; max-width: 360px; 
    background: #fff; padding: 30px; border-radius: 12px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.06); transition: transform 0.3s;
}
.skill:hover, .project:hover { transform: translateY(-8px); }

/* Immagini dei Servizi */
.project-img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 20px; }

/* Recensioni */
.review { text-align: left; border-top: 4px solid #007bff; font-style: italic; }
.rating { color: #f39c12; display: block; margin-bottom: 10px; font-size: 1.2rem; }

/* Contatti e Footer */
.contact-methods p { margin: 15px 0; font-size: 1.1rem; }
.contact-methods a { color: #007bff; text-decoration: none; font-weight: bold; }
footer { background: #333; color: #fff; padding: 25px; margin-top: 50px; }

/* Responsive (Tablet e Desktop) */
@media (min-width: 768px) {
    .about-content { flex-direction: row; text-align: left; }
    .about-text { flex: 1; }
}

@media (max-width: 768px) {
    .top-nav { flex-direction: column; }
    .top-nav ul { margin-top: 15px; flex-wrap: wrap; justify-content: center; }
    .top-nav ul li { margin: 5px 10px; }
}