/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.6;
}

/* HEADER */
header {
    background: #0b7fd3;
    padding: 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header .logo img {
    height: 55px;
}

/* NAV */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
nav a.active {
    text-decoration: underline;
}

/* HERO */
.hero {
    background: #f5faff;
    padding: 60px 20px;
    text-align: center;
}
.hero-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}
.hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.hero p {
    font-size: 1.1rem;
    max-width: 900px;
    margin: auto;
}
.hero .slogan {
    font-size: 2.5rem;
    line-height: 1.2;
    max-width: 850px;
    margin: 0 auto 18px auto;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.hero .slogan .accent {
    color: #0b7fd3;
}
@media (max-width: 600px) {
    .hero .slogan { font-size: 1.7rem; }
}

/* TEXT */
.centered-text {
    max-width: 900px;
    margin: 0 auto 20px auto;
    text-align: center;
}

/* SECTIONS */
.section {
    padding: 50px 20px;
}
.section h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
}
.section p,
.section ul {
    max-width: 900px;
    margin: auto;
    margin-bottom: 20px;
}

/* GRID */
.grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* CARD */
.card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    text-align: center;
}
.card img:not(.icon) {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* ICONS */
.icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}
.icon-inline {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

/* LISTE CON ICONE */
.icon-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.icon-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

/* CHI SONO LAYOUT */
.chi-siamo-layout {
    display: flex;
    min-height: 500px;
}
.chi-siamo-foto {
    flex: 1;
    background: url("img/nicola-lacatena.jpg") center/cover no-repeat;
}
.chi-siamo-testo {
    flex: 1;
    padding: 40px;
}

/* CTA BUTTON */
.cta {
    display: inline-block;
    background: #0b7fd3;
    color: white;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}
.cta:hover {
    background: #095fa5;
}

/* CONTATTI */
.contact-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* FOOTER */
footer {
    background: #0b7fd3;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}
footer img {
    height: 55px;
    margin-bottom: 10px;
}
footer p {
    margin: 5px 0;
}

/* MOBILE MENU */
#menu-toggle { display: none; }
.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}
@media(max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #0b7fd3;
        padding: 20px;
    }
    #menu-toggle:checked + .menu-icon + nav ul {
        display: flex;
    }
    .menu-icon {
        display: block;
        color: white;
    }

    .chi-siamo-layout {
        flex-direction: column;
    }
    .chi-siamo-foto {
        height: 300px;
    }

    .contact-actions {
        flex-direction: column;
    }
}
