/* ===========================================
   RESET E REGOLE BASE
=========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ===========================================
   CUSTOM PROPERTIES (VARIABILI CSS)
=========================================== */
:root {
    /* Colori */
    --primary-color: #0056b3;
    --primary-dark: #004494;
    --secondary-color: #6c757d;
    --accent-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --text-light: #fff;
    --border-color: #dee2e6;

    /* Spaziature */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Ombre */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);

    /* Bordi */
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* ===========================================
   HEADER E NAVIGAZIONE
=========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 10px;
    color: var(--primary-color);
}

.logo-img {
    height: 32px;
    display: inline-block;
    margin-right: 10px;
}

.nav-list {
    display: flex;
    gap: var(--space-md);
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color);
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* ===========================================
   HERO SECTION
=========================================== */
.hero {
    /*background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80");
        */
    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("./img/hero-back.webp");
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 180px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: white;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    color: rgba(255, 255, 255, 0.9);
}

.hero-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition:
        background-color 0.3s,
        transform 0.3s;
}

.hero-btn:hover {
    background-color: #138496;
    transform: translateY(-3px);
}

/* Aspect ratio immagine hero: 16:9
   Prompt per generazione immagine: "A modern software development team collaborating in a bright office with computers and whiteboards" */

/* ===========================================
   SEZIONE CONSULENZE HR
=========================================== */
.hr-consulting {
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.hr-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hr-text {
    font-size: 1.1rem;
}

.hr-text p {
    margin-bottom: var(--space-md);
}

.hr-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hr-image img {
    width: 100%;
    height: auto;
}

/* Aspect ratio immagine sezione HR: 4:3
   Prompt per generazione immagine: "HR professionals using digital tools to manage employee data and analytics" */

/* ===========================================
   SEZIONE PERCHE' SCEGLIERE PRIMARYKEY
=========================================== */
.features {
    background-color: white;
}

.features-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    font-size: 1.2rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    border-top: 4px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
    color: var(--dark-color);
}

.card p {
    color: var(--secondary-color);
}

.features-outro {
    text-align: center;
    margin-top: var(--space-xl);
    font-style: italic;
    font-size: 1.2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: var(--space-lg);
    background-color: rgba(0, 86, 179, 0.05);
    border-radius: var(--border-radius);
}

/* ===========================================
   SEZIONE SERVIZI (Aggiunta)
=========================================== */
.services {
    background-color: var(--light-color);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.service-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s;
}

.service-item:hover {
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-dark);
}

.service-content p {
    margin-bottom: var(--space-sm);
}

.service-list {
    margin-top: var(--space-sm);
}

.service-list li {
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
}

.service-list li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 10px;
}

/* ===========================================
   SEZIONE TESTIMONIALS (Aggiunta)
=========================================== */
.testimonials {
    background-color: white;
}

.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--light-color);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-lg);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: rgba(0, 86, 179, 0.1);
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}


/* ===========================================
   SEZIONE MODALITA' DI LAVORO (Aggiunta)
=========================================== */
.workflow {
    background-color: white;
}

.workflow-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

.workflow-intro h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: var(--space-xs);
}

.workflow-intro p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.workflow-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.workflow-box {
    background-color: var(--light-color);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--accent-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.workflow-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.workflow-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    text-align: center;
}

.workflow-box h4 {
    font-size: 1.4rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 5px;
}

.workflow-subtitle {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: var(--space-md);
}

.workflow-box > p {
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.custom-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    line-height: 1.4;
}

.custom-list li i {
    color: var(--accent-color);
    margin-right: 12px;
    margin-top: 4px;
}

/* Aggiornamento Responsive per la Sezione Workflow */
@media (max-width: 768px) {
    .workflow-container {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   SEZIONE PROGETTI
=========================================== */
.projects {
    background-color: var(--light-color);
}

.projects-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.project-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.project-logo {
    margin-bottom: var(--space-md);
    text-align: center;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--accent-color)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.project-client {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--dark-color);
    line-height: 1.4;
}

.project-description {
    color: var(--secondary-color);
    margin-bottom: var(--space-md);
    flex-grow: 1;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tech-tag {
    background-color: white;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition:
        background-color 0.3s,
        color 0.3s;
}

.tech-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.projects-cta {
    text-align: center;
    margin-top: var(--space-lg);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--primary-color);
    transition:
        background-color 0.3s,
        color 0.3s;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.client-logo {
    max-width: 140px;
    max-height: 45px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.project-logo img {
    transition: transform 0.3s;
}

.project-card:hover .project-logo img {
    transform: scale(1.05);
}

/* Responsive per Progetti */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ===========================================
   SEZIONE CONTATTI
=========================================== */
.contacts {
    /* background-color: var(--light-color); */
    background-color: #fff;
}

.contacts-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: var(--space-lg);
    color: var(--primary-color);
}

.contact-details {
    margin-bottom: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: var(--space-sm);
    margin-top: 3px;
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Aspect ratio mappa: 16:9
   Prompt per generazione immagine: "A modern office building with glass facade in a business district" */

/* ===========================================
   FOOTER
=========================================== */
.footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 50px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-sm);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-md);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: var(--primary-color);
}

.social-link:hover i {
    color: #fff;
}

.footer-links {
    text-align: right;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    color: white;
}

.footer-links ul li {
    margin-bottom: var(--space-sm);
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===========================================
   RESPONSIVE DESIGN
=========================================== */
@media (max-width: 992px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hr-content,
    .services-container,
    .contacts-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .mobile-menu-toggle {
        display: block;
        width: 90%;
        text-align: right;
    }

    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: var(--space-md) 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-list.active {
        transform: translateY(0);
    }

    .nav-list li {
        margin: var(--space-sm) 0;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-links {
        text-align: left;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .hero {
        padding: 150px 0 80px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}