body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #f4f6f8;
    color: #222;
}

@media (max-width:600px) {
    .container {
        padding: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

.navbar {
    background: #006a92 !important;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar-links {
    display: flex;
    gap: 2rem;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    margin-left: 1rem;
}

.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-block {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.service-block h3 {
    margin-top: 0;
    color: #006a92;
}

.contact-form {
    background: #f9fafb;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-row {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-form button {
    background: #006a92;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.contact-form button:hover {
    background: #005fa3;
}

.msg-success {
    color: green;
    margin-bottom: 1rem;
}

.msg-error {
    color: red;
    margin-bottom: 1rem;
}

.carousel-gallery {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(.77, 0, .18, 1);
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #006a92;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    opacity: 0.8;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:focus {
    outline: 2px solid #005fa3;
}

/* Stili Su di Me */
#about img {
    max-width: 180px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

#about>div {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

@media (max-width:800px) {
    #about div[style*="display:flex"] {
        flex-direction: column;
        gap: 1.5rem;
    }

    #about img {
        margin: 0 auto;
    }
}

/* Stili Footer */
.site-footer {
    background: #006a92;
    color: #fff;
    padding: 2.5rem 1rem 1rem 1rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.footer-block h4 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-list a {
    color: #fff;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.footer-list a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-icon svg {
    vertical-align: middle;
    transition: opacity 0.2s;
    opacity: 0.85;
}

.footer-icon:hover svg {
    opacity: 1;
}

.footer-copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-top: 2rem;
}

@media (max-width:800px) {
    .container {
        padding: 1rem;
    }

    .footer-grid {
        gap: 1rem;
    }
}

@media (max-width:600px) {
    .navbar {
        padding: 1rem;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #006a92;
        z-index: 10;
        padding: 1rem 0;
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-toggle {
        display: block;
    }

    .container {
        padding: 0.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-row {
        margin-bottom: 0.8rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 1rem;
        padding: 0.6rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
    }

    .site-footer {
        padding: 2rem 0.5rem 1rem 0.5rem;
    }
}