/* --- Stile Apple: Reset e Fondamenta --- */
:root {
    --text-color: rgba(255, 255, 255, 0.9);
    --bg-color: #1a1a1a;
    --section-bg: #2b2b2b;
    --accent-color: #007aff; /* Colore blu Apple */
}

body {
    font-family: 'Roboto', 'Helvetica Neue', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-weight: 300;
}

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


/* --- Sezione Hero a Schermo Intero con Effetto Ken Burns --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative; /* Necessario per posizionare lo sfondo animato */
    overflow: hidden; /* Nasconde l'immagine che esce dai bordi durante lo zoom */
}

/* Creiamo un pseudo-elemento per animare lo sfondo separatamente */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/2023/05/09/traliccio-monte-paradiso-biancone-franco-civitavecchia.jpg');
    background-size: cover;
    background-position: center center;
    z-index: -1; /* Mette lo sfondo dietro al contenuto */

    /* Applicazione dell'animazione */
    animation: kenburns 20s ease-out forwards;
}

/* Definizione dell'animazione */
@keyframes kenburns {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1); /* Zoom del 10% */
    }
}

.hero-content {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 10px;
    opacity: 0.9;
}


/* --- Navigazione Minimalista con Logo --- */
nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0));
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 70px;
    width: auto;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}


/* --- Stile Sezioni Contenuto --- */
main {
    padding-top: 4rem;
}

section {
    background-color: var(--section-bg);
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Aggiungo un'ombra di base */
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out; /* Aggiungo la transizione */
}

/* Questa è la nuova regola che crea l'effetto al passaggio del mouse */
section:hover {
    transform: translateY(-8px); /* Solleva la sezione di 8 pixel */
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4); /* Rende l'ombra più pronunciata */
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 3rem;
    color: #fff;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 1rem auto;
}

/* --- Sezione Contatti --- */
.contact-info {
    text-align: center;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 400;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Media Queries per dispositivi mobili --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero .subtitle {
        font-size: 1.2rem;
    }
    section h2 {
        font-size: 2rem;
    }
}
