/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #868106;
    --accent-orange: #ff6e03;
    --dark-gray: #2c2c2c;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-gray));
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover {
    background-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23868106" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: -1;
}

.hero h2 {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px var(--shadow);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Services Grid */
.services-grid {
    padding: 4rem 0;
    background-color: var(--white);
}

.services-grid h3 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    position: relative;
}

.services-grid h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-orange));
    border-radius: 2px;
}

.services-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-green);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-orange), transparent);
    border-radius: 0 0 0 100px;
    opacity: 0.1;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-left-color: var(--accent-orange);
}

.service-item:hover::before {
    opacity: 0.2;
    width: 150px;
    height: 150px;
}

.service-item h4 {
    font-size: 1.4rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.service-item:hover h4 {
    color: var(--accent-orange);
}

.service-item p {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem;
}

.service-item strong {
    color: var(--primary-green);
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .services-grid .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    .services-grid h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        padding: 2rem 0;
    }
    
    .service-item {
        padding: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header,
    footer {
        background: none !important;
        color: black !important;
    }
    
    .service-item {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
}

.logo-container { /* or the div containing your logo */
  text-align: left;
}

/* Or for the logo itself */
.logo-link { /* assuming you add a class to your <a> tag */
    float: left;
}
.banner-container {
    text-align: center; /* Questa linea centra il contenuto del div padre */
    /* Puoi anche aggiungere un margin-bottom se vuoi spazio sotto il div, ad esempio: */
    /* margin-bottom: 20px; */
}

.banner-container img {
    /* Tutte queste proprietà devono essere nello stesso blocco */
    margin-top: 20px; /* Questo stacca l'immagine dall'alto */
	margin-bottom: 0px;  /* <--- AGGIUNGI O MODIFICA QUESTA RIGA */
    max-width: 100%;   /* Rende l'immagine responsive */
    height: auto;      /* Mantiene le proporzioni */
    display: block;    /* Aiuta nella centratura e rimozione spazi extra */
    margin-left: auto; /* Centra orizzontalmente l'immagine */
    margin-right: auto;/* Centra orizzontalmente l'immagine */
    /* Oppure, più semplicemente, la combinazione per centrare è: margin: 30px auto 0 auto; */
    /* Usando margin: 30px auto 0 auto; non serve mettere margin-left e margin-right separati */
}
#introduzione.hero {
    background-image: url('images/web-banner-attivita-head.jpg'); /* Percorso dell'immagine di sfondo */
    background-size: cover;       /* L'immagine coprirà l'intera area, adattandosi */
    background-position: center;  /* Centra l'immagine sia orizzontalmente che verticalmente */
    background-repeat: no-repeat; /* Impedisce la ripetizione dell'immagine */
    color: white;                 /* Cambia il colore del testo per leggibilità sul banner */
    padding: 100px 0;             /* Aggiungi spazio interno alla sezione per dare respiro al contenuto */
    text-align: center;           /* Centra il testo (H2 e P) all'interno della sezione */
}

/* Regole aggiuntive per migliorare la leggibilità del testo sul banner */
#introduzione.hero h2 {
    font-size: 3em; /* Rendi il titolo più grande */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Aggiungi un'ombra al testo per farlo risaltare */
}

#introduzione.hero p {
    font-size: 1.2em; /* Aumenta la dimensione del paragrafo */
    line-height: 1.6; /* Aumenta l'interlinea per una migliore leggibilità */
    max-width: 800px; /* Limita la larghezza del paragrafo per una migliore leggibilità su schermi ampi */
    margin: 0 auto; /* Centra il paragrafo */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Ombra anche per il paragrafo */
}
/* WhatsApp sticky icon */
.whatsapp-sticky-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Increased size for better visibility */
    height: 40px; /* Increased size for better visibility */
    background-color: transparent;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-sticky-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}