/* Reset base e stile generale */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

/* Header e navigazione */
header {
    background-color: var(--brand-primary-color);
    color: white;
    padding: 1rem 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 100px;
    padding: 0.2em 0.6em;
    background: #fff;
    box-sizing: content-box;
    display: flex;
}

    .logo span {
        color: #3498db;
    }

.nav-links {
    display: flex;
    list-style: none;
}

    .nav-links li {
        margin-left: 2rem;
    }

    .nav-links a {
        color: white;
        text-decoration: none;
        transition: color 0.3s;
    }

        .nav-links a:hover {
            color: #3498db;
        }

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/img/hero.webp') center/cover no-repeat;
    height: 70vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 74px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--brand-primary-color);
    color: white;
    padding: 0.7rem 2.5rem;
    font-size: 1.2em;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    margin: 0.5em;
}

    .btn:hover {
        background-color: #2980b9;
    }

/* Servizi */
.services {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 1rem;
}

    h2::after {
        content: '';
        position: absolute;
        width: 80px;
        height: 3px;
        background-color: #3498db;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

    .services-grid > *:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

.service-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .service-card i {
        font-size: 3rem;
        color: #3498db;
        margin-bottom: 1rem;
    }

    .service-card img {
        width: 56px;
    }

    .service-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

/* Marchi */
.brands {
    padding: 5rem 0;
    background-color: #f5f5f5;
}

.brands-slider {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    margin-top: 2rem;
}

.brands-container {
    display: flex;
}

.brand-card {
    width: 150px;
    height: 100px;
    background-color: white;
    margin: 0 1rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    text-decoration: none;
}

    .brand-card:hover {
        transform: scale(1.05);
    }

    .brand-card img {
        max-width: 70%;
        max-height: 50px;
    }

.swiper-wrapper {
    transition-timing-function: linear !important;
}
/* Vantaggi */
.advantages {
    padding: 5rem 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.advantage-card {
    text-align: center;
    padding: 1.5rem;
}

    .advantage-card i {
        font-size: 2.5rem;
        color: #3498db;
        margin-bottom: 1rem;
    }

    .advantage-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }


/* Zone di Assistenza */
.service-areas {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.area-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .area-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .area-card h3 {
        font-size: 1.3rem;
        color: var(--brand-primary-color);
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #eee;
    }

.cities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: hidden;
    position: relative;
}


    .cities-list.open {
        max-height: unset;
    }

    .cities-list span {
        background-color: #f5f5f5;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.9rem;
        transition: background-color 0.3s;
        cursor: default;
        user-select: none;
    }

        .cities-list span:hover {
            background-color: var(--brand-primary-color);
            color: white;
        }

.area-cta {
    text-align: center;
    margin-top: 2rem;
}

    .area-cta p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }


.showmore-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    background: linear-gradient(0deg, #ffffff 65%, transparent);
}

.open .showmore-container {
    position: relative;
}

.showmore-btn {
    padding: 2em 0;
    cursor: pointer;
}

/* Call To Action */
.cta {
    background: linear-gradient(90deg, var(--brand-primary-color), #2c3e5055);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta .btn {
    background-color: #fff;
    color: #3498db;
}


.btn-light {
    background-color: white;
    color: #3498db;
}

    .btn-light:hover {
        background-color: #f5f5f5;
    }

section.notice {
    background-color: #930000;
    color: #fff;
    display: flex;
    justify-content: center;
    padding: 0.5em;
}

/* Footer */
footer {
    background-color: #1a2e43;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

    .footer-col h3::after {
        content: '';
        position: absolute;
        width: 40px;
        height: 2px;
        background-color: #3498db;
        bottom: -10px;
        left: 0;
    }

.footer-col ul {
    list-style: none;
}

    .footer-col ul li {
        margin-bottom: 0.8rem;
    }

        .footer-col ul li a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s;
        }

            .footer-col ul li a:hover {
                color: white;
            }

.footer-col p {
    color: #ccc;
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 0.5rem;
    transition: background-color 0.3s;
}


.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}

/* Tablet */
@media (max-width: 1024px) {
    .areas-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        background-color: #2c3e50;
        width: 100%;
        flex-direction: column;
        padding: 2rem 0;
        transition: left 0.3s;
    }

        .nav-links.active {
            left: 0;
        }

        .nav-links li {
            margin: 1rem 0;
            text-align: center;
        }

    .mobile-toggle {
        display: block;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }
}
/* Mobile */
@media (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }


    .advantages-grid, .services-grid, .areas-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
