@import url('navbar.css');
@import url('hero.css');
@import url('about.css');
@import url('services.css');
@import url('contact-form.css');
@import url('footer.css');
@import url('policy.css');

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --bg-main: #fffffd;
    --bg-consulenza: #d1d4cb;
    --bg-orientamento: #e9dfd6;
    --bg-formazione: #dec2c6;
    --bg-gray: #ded6d3;
    --text-color: #333;
    --text-light: #555;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    line-height: 2;
    color: var(--text-color);
    background-color: var(--bg-main);
}

.container {
    background: transparent;
    max-width: 100%;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 200;
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #2980b9;
}

.bg-light {
    background-color: var(--bg-main);
}

#services {
    background: linear-gradient(to bottom, #ffffff 90%, #f9f7f5 100%);
}





/* --- RESPONSIVE DESIGN --- */

@media (max-width: 768px) {
    
    .services-grid-horizontal {
        flex-direction: column;
        min-height: auto;      
        box-shadow: none;      
    }

    .service-card {
        flex: none;            
        width: 100%;           
        padding: 40px 20px;    
        min-height: 250px;     
    }

    .service-card h2, 
    .service-card h3 {
        font-size: 1.8rem !important;
        text-align: center;
    }

    .container-servizio {
        width: 90% !important;
        margin: 0 auto;
    }

    .testo-introduzione h2 {
        font-size: 1.6rem !important;
        line-height: 1.2;
    }

    .sezione-common {
        padding: 40px 10px !important;
    }

    .list-items {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .list-items li {
        width: 100% !important;
        height: auto !important;
        min-height: 60px;
        font-size: 0.9rem !important;
        padding: 15px !important;
        box-sizing: border-box;
    }

    .navbar {
        padding: 10px 20px;
    }

    
    #about .about-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #about .about-text {
        padding: 20px !important; 
        margin: 0 auto !important;
        width: 100% !important;
        box-sizing: border-box !important; 
        text-align: center !important;
        flex: none !important;
    }

    #about .about-text h2 {
        text-align: center !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #about .about-text p {
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
        word-break: break-word; 
    }

    #about .about-image {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 20px !important;
    }

    #about .about-image img {
        max-width: 200px !important; 
        height: auto !important;
        border-radius: 50%;
    }
}