/* Stili Generali e Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #1a2b4c;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.text-white {
    color: #ffffff !important;
}

.text-white h2, .text-white p {
    color: #ffffff;
}

/* Header & Navbar */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

/* Logo ingrandito */
.logo-img {
    height: 80px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #0066cc;
}

.btn-nav {
    background: #0066cc;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 43, 76, 0.85), rgba(26, 43, 76, 0.85)), url('https://images.unsplash.com/photo-1541888946425-d0fbb18f86f6?auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: white;
    padding: 160px 0 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #e0e0e0;
}

.btn-primary {
    display: inline-block;
    background: #ff7b00;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #e06c00;
}

/* Client Bar */
.clients-bar {
    background: #ffffff;
    padding: 25px 0;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
}

.clients-bar p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.client-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    font-weight: 700;
    color: #444;
}

/* Sezioni Generali */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #ffffff;
}

.bg-dark {
    background-color: #1a2b4c;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
}

/* Griglie Layout */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.box-info {
    background: #f4f6f9;
    padding: 30px;
    border-left: 4px solid #0066cc;
    border-radius: 4px;
}

.box-info h4 {
    margin-bottom: 15px;
}

.box-info p {
    margin-bottom: 8px;
}

/* Card Servizi */
.card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    transition: transform 0.3s, box-shadow 0.3s;
}

.bg-light .card {
    background: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card h3 {
    margin-bottom: 15px;
    color: #0066cc;
}

/* Card Portfolio / Grandi Opere con Immagini */
.project-card {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 20px;
}

.project-info h4 {
    margin-bottom: 10px;
    color: #0066cc;
    font-size: 1.1rem;
}

.project-info p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* Contatti Box */
.contacts-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-box {
    background: rgba(255,255,255,0.05);
    padding: 20px 30px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Footer */
.site-footer {
    background: #111a2e;
    color: #aaa;
    padding: 20px 0;
    font-size: 0.85rem;
}

/* Responsive Design */
@media(max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .main-nav {
        display: none;
    }
    .hero-content h2 {
        font-size: 1.8rem;
    }
    .logo-img {
        height: 60px; /* Leggermente più compatto su schermi piccoli */
    }
}