/* --- Stili Generali e Reset --- */
:root {
    --primary-color: #007BFF; /* Blu principale, puoi cambiarlo */
    --secondary-color: #28a745; /* Verde per azioni, puoi cambiarlo */
    --dark-bg: #1a1a2e; /* Sfondo scuro per eleganza */
    --light-text: #e0e0e0; /* Testo chiaro su scuro */
    --grey-text: #b0b0b0; /* Grigio per testi secondari */
    --font-heading: 'Montserrat', sans-serif; /* Font per titoli */
    --font-body: 'Open Sans', sans-serif; /* Font per testi */
}

/* Importazione Google Fonts per un look moderno */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght=300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--dark-bg);
    overflow-x: hidden; /* Evita scroll orizzontale */
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--light-text);
    margin-bottom: 1em;
}

h1 { font-size: 3.5em; font-weight: 700; } /* Per la Hero Section */
h2 { font-size: 2.5em; font-weight: 700; text-align: center; margin-bottom: 1.5em; }
h3 { font-size: 1.8em; font-weight: 600; margin-top: 0.5em; }

p {
    margin-bottom: 1em;
    color: var(--grey-text);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* --- Bottoni CTA --- */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--light-text);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background-color: var(--light-text);
    color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(224, 224, 224, 0.2);
}

/* --- Hero Section (L'effetto WOW principale) --- */
#hero-section {
    position: relative;
    height: 100vh; /* Altezza piena dello schermo */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Nasconde ciò che esce dalla sezione */
}

#hero-section .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('growtify.it/immagini/sfondo.jpg'); /* INSERISCI QUI IL PERCORSO CORRETTO */
    background-size: cover;
    background-position: center;
    filter: brightness(0.7) contrast(1.1); /* Effetto scuro e vibrante */
    transform: scale(1.05); /* Piccolo zoom per effetto più dinamico */
    transition: transform 0.5s ease-out;
}

#hero-section .hero-content {
    position: relative; /* Sopra l'immagine di sfondo */
    z-index: 10;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Sottile sfondo per leggibilità */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#hero-section h1 {
    font-size: 4.5em; /* Ancora più grande per impatto */
    margin-bottom: 0.2em;
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.7); /* Effetto luminoso */
}
#hero-section p {
    font-size: 1.3em;
    margin-bottom: 1.5em;
    color: var(--light-text);
    font-weight: 300;
}

/* --- Sezioni Standard --- */
section {
    padding: 80px 5%;
    background-color: var(--dark-bg);
    position: relative;
    z-index: 1; /* Assicura che le sezioni siano sopra eventuali sfondi */
}

section:nth-child(even) { /* Sfondo leggermente diverso per sezioni pari */
    background-color: #21213a;
}

/* --- Servizi Grid --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background-color: #2a2a47;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-item .image-placeholder {
    width: 100%;
    height: 200px; /* Altezza fissa per le immagini dei servizi */
    background-color: #3b3b5c; /* Colore di placeholder */
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.service-item img { /* Stile per le immagini all'interno dei placeholder */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Copre lo spazio senza distorcere */
    transition: transform 0.5s ease;
}

.service-item:hover img {
    transform: scale(1.1); /* Zoom all'hover sull'immagine */
}

/* --- Filosofia Section --- */
#filosofia {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#filosofia .image-placeholder {
    width: 80%; /* Larghezza dell'immagine */
    max-width: 900px;
    height: 450px; /* Altezza fissa per un buon impatto */
    background-image: url('assets/filosofia-riunione.jpg'); /* INSERISCI QUI IL PERCORSO CORRETTO */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    filter: saturate(1.1); /* Colori più vividi */
}

#filosofia p {
    max-width: 800px;
    font-size: 1.2em;
    line-height: 1.8;
}


/* --- Footer --- */
footer {
    position: relative;
    padding: 80px 5%;
    text-align: center;
    background-color: var(--dark-bg); /* Sfondo scuro */
    overflow: hidden;
}

footer .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('growtify.it/immagini/sfondo.jpg'); /* INSERISCI QUI IL PERCORSO CORRETTO */
    background-size: cover;
    background-position: center;
    opacity: 0.3; /* Leggermente trasparente per non distrarre */
    filter: grayscale(100%); /* Sfumatura di grigio per eleganza */
    z-index: 0;
}

footer .footer-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
}

footer h3 {
    font-size: 2.2em;
    margin-bottom: 0.8em;
}
footer p {
    font-size: 1.1em;
    margin-bottom: 2em;
}


/* --- Media Queries per Responsive Design (Adattamento a schermi più piccoli) --- */
@media (max-width: 1024px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2em; }
    #hero-section h1 { font-size: 3.5em; }
    #hero-section p { font-size: 1.1em; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }
    #hero-section h1 { font-size: 2.8em; }
    #hero-section p { font-size: 1em; }

    .service-grid {
        grid-template-columns: 1fr; /* Una colonna su mobile */
    }

    #filosofia .image-placeholder {
        height: 300px;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.5em; }
    #hero-section h1 { font-size: 2.2em; }
    #hero-section p { font-size: 0.9em; }
    section { padding: 60px 3%; }
}