/* Resetting some defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #fff;
    color: #333;
}

/* Header */
header {
    background-color: #0d3b66;
    padding: 20px;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo a {
    font-size: 24px;
    font-weight: bold;
    color: #f9bc2f;
    text-decoration: none;
}

header .nav-links {
    list-style-type: none;
    display: flex;
}

header .nav-links li {
    margin-left: 20px;
}

header .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

header .cta-button {
    background-color: #f9bc2f;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: url('hero-image.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero .cta-hero {
    background-color: #f9bc2f;
    padding: 12px 30px;
    font-size: 18px;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
}

/* About Section */
.about {
    padding: 50px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.about h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

/* Products Section */
.products {
    padding: 50px 20px;
    background-color: #fff;
    text-align: center;
}

.products .product-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.products .product-card {
    width: 30%;
    margin: 20px 0;
}

.products img {
    width: 100%;
    height: auto;
}

.products h3 {
    font-size: 22px;
    margin-top: 10px;
}

.products p {
    font-size: 16px;
    margin-top: 10px;
}

/* Testimonials Section */
.testimonials {
    padding: 50px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.testimonial-carousel {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.testimonial {
    width: 45%;
    margin: 10px 0;
}

.testimonial p {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial cite {
    font-size: 16px;
    color: #555;
}

/* Contact Section */
.contact {
    padding: 50px 20px;
    background-color: #0d3b66;
    color: #fff;
    text-align: center;
}

.contact h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.contact .cta-button {
    background-color: #f9bc2f;
    padding: 12px 30px;
    font-size: 18px;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
}

/* Footer Section */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer .social-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

/* ---------- Responsive Design ---------- */

/* Per dispositivi fino a 1024px (tablet e piccoli laptop) */
@media (max-width: 1024px) {
    .products .product-card {
        width: 45%;
    }

    .testimonial {
        width: 90%;
    }

    header nav {
        flex-direction: column;
        align-items: flex-start;
    }

    header .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    header .nav-links li {
        margin: 10px 0;
    }
}

/* Per dispositivi fino a 768px (tablet verticali e smartphone grandi) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .products .product-card {
        width: 100%;
    }

    .testimonial {
        width: 100%;
    }

    header nav {
        flex-direction: column;
        align-items: flex-start;
    }

    header .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    header .nav-links li {
        margin: 10px 0;
    }

    header .cta-button {
        margin-top: 10px;
    }
}

/* Per dispositivi molto piccoli (fino a 480px) */
@media (max-width: 480px) {
    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero .cta-hero {
        font-size: 16px;
        padding: 10px 20px;
    }

    .about h2,
    .contact h2 {
        font-size: 24px;
    }

    .products h3 {
        font-size: 20px;
    }

    .products p {
        font-size: 14px;
    }

    .testimonial p {
        font-size: 16px;
    }

    .testimonial cite {
        font-size: 14px;
    }

    .contact .cta-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}

