/* --- IMPOSTAZIONI GENERALI --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    color: #333;
    background-color: #fffaf5; /* Rosa molto chiaro */
    line-height: 1.6;
}

/* --- HEADER E NAVIGAZIONE --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #fff;
    border-bottom: 1px solid #fdecdf; /* Bordo arancione chiaro */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    text-decoration: none;
    color: #ff8c69; /* Arancione */
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links li a:hover, .nav-links li a.active {
    color: #ff8c69; /* Arancione */
}

.burger {
    display: none; /* Nascosto su desktop */
    cursor: pointer;
    font-size: 24px;
    color: #ff8c69;
}

/* --- HERO SECTION (HOME) --- */
.hero {
    display: flex;
    align-items: center;
    padding: 60px 50px;
    background: #fffaf5;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 48px;
    color: #e57e60;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cta {
    background-color: #ff8c69; /* Arancione */
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.cta:hover {
    background-color: #e57e60; /* Arancione più scuro */
}

/* --- SEZIONI GENERICHE --- */
.intro, .content {
    padding: 50px;
    max-width: 960px;
    margin: 0 auto;
}

.intro {
    text-align: center;
}

h2 {
    text-align: center;
    font-size: 36px;
    color: #e57e60;
    margin-bottom: 40px;
}

/* --- PAGINA CHI SONO --- */
.about-me-section .about-me-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-me-section .profile-pic {
    flex-basis: 250px;
}

.about-me-section .profile-pic img {
    width: 100%;
    border-radius: 50%; /* Immagine tonda */
    border: 5px solid #fdecdf;
}

.about-me-section .bio {
    flex: 1;
    text-align: left;
}

/* --- FORM DI CONTATTO --- */
form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Importante per il padding */
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: #ff8c69; /* Arancione */
    color: #fff;
    margin-top: 40px;
}

/* --- MEDIA QUERIES PER LA RESPONSIVITÀ --- */
@media screen and (max-width: 768px) {
    header {
        padding: 20px;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        top: 70px; /* Altezza dell'header */
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        border-bottom: 1px solid #fdecdf;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .burger {
        display: block; /* Mostra l'hamburger */
    }

    .nav-active {
        transform: translateX(0%);
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .about-me-section .about-me-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-me-section .bio {
        text-align: center;
    }

    .intro, .content {
        padding: 30px 20px;
    }

    h2 {
        font-size: 28px;
    }
}
/* --- STILI AGGIUNTIVI PER LE NUOVE PAGINE --- */

/* Stile comune per le introduzioni delle sezioni */
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: -20px auto 50px auto;
    font-size: 1.1em;
    color: #555;
}

/* --- PAGINA SERVIZI (Layout a griglia) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #fdecdf;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(255, 140, 105, 0.1);
}

.service-icon {
    font-size: 40px;
    color: #ff8c69; /* Arancione */
    margin-bottom: 20px;
}

.service-card h3 {
    color: #e57e60;
    margin-bottom: 15px;
}

/* --- PAGINA BLOG (Layout a card) --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(255, 140, 105, 0.1);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-content h3 {
    margin-top: 0;
    color: #e57e60;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #ff8c69;
    font-weight: bold;
}

/* --- PAGINA CONTATTI (Layout a due colonne) --- */
.contact-container {
    display: flex;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form {
    flex: 2; /* occupa più spazio */
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: #e57e60;
    margin-top: 0;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info ul li i {
    color: #ff8c69;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.contact-info a {
    text-decoration: none;
    color: #333;
}

.contact-info a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #fdecdf;
}

/* --- MEDIA QUERIES AGGIUNTIVE --- */
@media screen and (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
}
