* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fcfcfc;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header con Sfondo Hero */
.hero {
    position: relative;
    background: url('../img/lavori/selfie_001.jpeg') no-repeat center center/cover;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero .subtitle {
    font-size: 1.6rem;
    color: #f1c40f;
    font-weight: 600;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #e67e22;
    color: #fff;
}

.btn-primary:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #1eb954;
    transform: translateY(-2px);
}

/* Sezioni */
section {
    padding: 60px 0;
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #1a252f;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 35px;
    font-size: 1rem;
}

/* Servizi */
.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.servizio {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.servizio-icona {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

.portfolio-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.portfolio-grid img:hover {
    transform: scale(1.03);
}

/* Sezione Contatti con Immagine di Sfondo */
#contatti {
    position: relative;
    background: url('../img/immagine_8.png') no-repeat center center/cover;
    background-attachment: fixed;
    padding: 70px 0;
    color: #ffffff;
}

#contatti::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    z-index: 1;
}

#contatti .container {
    position: relative;
    z-index: 2;
}

#contatti h2 {
    color: #ffffff;
}

#contatti .section-subtitle {
    color: #cbd5e1;
}

.contatti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.contatto-card {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none !important;
    color: #333333 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contatto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.icona-box {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.phone-bg { background-color: #e8f3ff; color: #0d6efd; }
.wa-bg { background-color: #e6f7ed; color: #25d366; }
.email-bg { background-color: #fff3e6; color: #e67e22; }
.fb-bg { background-color: #e7f1ff; color: #1877f2; }

.contatto-card h3 {
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    color: #212529;
}

.contatto-card .valore {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
    word-break: break-word;
}

.action-btn {
    margin-top: auto;
    padding: 8px 18px;
    border-radius: 20px;
    background-color: #0d6efd;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
}

.wa-btn { background-color: #25d366; }
.email-btn { background-color: #e67e22; }
.fb-btn { background-color: #1877f2; }

/* Dati Legali */
.dati-legali {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #1e293b;
    line-height: 1.8;
}

.dati-legali a {
    color: #0d6efd;
    text-decoration: none;
}

footer {
    background: #1a252f;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
}

/* Media Query */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero .subtitle { font-size: 1.2rem; }
}