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

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #1c1c1c;
    scroll-behavior: smooth;
}

/* LOGO HEADER */
header {
    background-color: #002b5c;
    text-align: center;
    padding: 1rem 0;
}

.logo {
    max-width: 150px;
}

/* HERO SECTION */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: #002b5c;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.hero-text {
    max-width: 600px;
    padding: 1rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
}

.hero-img img {
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
    margin-top: 1rem;
}

/* CHI SONO */
.chisono {
    background-color: #ffffff;
    padding: 3rem 2rem;
    text-align: center;
}

.chisono h2 {
    font-size: 2rem;
    color: #002b5c;
    margin-bottom: 2rem;
}

.bio {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}
.bio-img-wrapper {
    text-align: center;
}

.nome-avvocato {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 0.8rem;
    color: #002b5c;
}

.titolo-avvocato {
    font-size: 1rem;
    font-style: italic;
    color: #555;
    margin-top: 0.2rem;
}
.bio-img {
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.bio-text {
    max-width: 600px;
    text-align: left;
}

.bio-text p {
    margin-bottom: 1rem;
}

.bio-text ul {
    padding-left: 1.2rem;
}

.bio-text li {
    margin-bottom: 0.5rem;
}
/* NETWORK */
.network {
    background-color: #e6ecf3;
    padding: 3rem 2rem;
    text-align: center;
}

.network h2 {
    color: #002b5c;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.network p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* AREE DI ATTIVITÀ */
.aree {
    background: #f4f8fb;
    padding: 3rem 2rem;
    text-align: center;
}

.aree h2 {
    color: #002b5c;
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    max-width: 80px;
    margin-bottom: 1rem;
}

.card h3 {
    color: #002b5c;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.card button {
    background-color: #002b5c;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
}
.card button:hover {
    background-color: #0056a3;
}

/* SERVER PRIVATO */
.server {
    padding: 3rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.server h2 {
    color: #002b5c;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.server p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
}

.server img {
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.server .btn {
    display: inline-block;
    background-color: #002b5c;
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 5px;
    text-decoration: none;
}

.server .btn:hover {
    background-color: #0056a3;
}
/* CONTATTI */
.contatti {
    background-color: #002b5c;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.contatti h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.info-logo img {
    width: 120px;
    margin-bottom: 1rem;
}

.info-logo p {
    font-weight: bold;
}

.info-text p, .info-text a {
    color: white;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

/* FOOTER */
footer {
    background-color: #f0f0f0;
    color: #002b5c;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

footer a {
    color: #002b5c;
    text-decoration: underline;
}

.social {
    margin-top: 0.5rem;
}

.social img {
    width: 20px;
    margin: 0 8px;
    vertical-align: middle;
}
/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bio-img-wrapper,
    .bio-text {
        width: 100%;
        max-width: 90%;
    }

    .bio-img {
        width: 200px;
        height: auto;
    }

    .contact-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bio-text, .info-text {
        text-align: center;
    }
}
