/* RESET BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIABILI (facili da personalizzare) */

:root {
    --primary-color: #0a2e4f;
    --secondary-color: #134c7f;
    --accent-color: #1e88d8;
    --light-gray: #f2f4f7;
    --dark-gray: #333333;
    --max-width: 1200px;
}


/* STILE GENERALE */

body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Titoli */
h1, h2, h3, h4 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 600;
    color: var(--primary-color);
}


.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* HEADER */
header {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

header img {
    max-height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: bold;
}

nav a:hover {
    color: var(--accent-color);
}

/* HERO */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url("../img/hero.jpg") center/cover no-repeat;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}


.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}


.btn:hover {
    background: var(--secondary-color);
}

/* SEZIONI */
section {
    padding: 70px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* ABOUT */
.about-preview p {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* SERVIZI */
.services-preview {
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-box {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-box h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-box.highlight {
    border-top: 5px solid var(--accent-color);
}

.service-box a {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
}

/* SETTORI */
.sectors ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
    text-align: center;
}

.sectors li {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 4px;
}

/* CTA */
.cta {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
}

.cta h2 {
    color: #fff;
}

.cta p {
    max-width: 750px;
    margin: 0 auto 25px;
}

/* FOOTER */
footer {
    background: #111;
    color: #ccc;
    padding: 40px 0;
}

.footer-content {
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

/* ===================== */
/* RESPONSIVE            */
/* ===================== */

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sectors ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .sectors ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 70px 0;
    }

    .hero p {
        font-size: 1rem;
    }
}