/* ===== RESET & COMMON STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #004d6e;
    --secondary-color: #4caf50;
    --text-color: #333;
    --light-text: #fff;
    --light-bg: #f8f8f8;
    --dark-bg: #003a54;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: white;
}

.section-title.blu { color: var(--primary-color); }

.section-padding {
    padding: 80px 0;
}

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

/* ===== HEADER ===== */
header {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-top {
    background-color: var(--dark-bg);
    padding: 8px 0;
}

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

.contact-info {
    display: flex;
    gap: 20px;
    color: var(--light-text);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--light-text);
    font-size: 0.9rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
    text-decoration: none;
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    background-color: transparent; /* Rimuovi il colore di sfondo */
    background-image: url('images/hero-background.png');
    background-size: cover; /* Assicura che l'immagine copra l'intera sezione */
    background-position: center; /* Centra l'immagine */
    background-repeat: no-repeat; /* Evita la ripetizione dell'immagine */
    position: relative;
    color: var(--light-text);
    padding: 0 0;
    overflow: hidden;
}

/* Aggiungi un overlay scuro per migliorare la leggibilità del testo */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 77, 110, 0.7); */
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    padding-block: 110px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    z-index: 2;
    flex: 1;
    text-align: right;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    position: relative;
}

.experience-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 15px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
}

.experience-badge span {
    font-size: 2rem;
    display: block;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 25px;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 80px 0;
    background-color: #fff;
}

.services-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: 20px;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-us {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 80px 0;
}

.why-us-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.why-us-title {
    text-align: center;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.feature-text h3 {
    margin-bottom: 10px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 50px;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

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

/* ===== CASE STUDIES SECTION ===== */
.case-studies {
    padding: 80px 0;
    background-color: #fff;
}

.case-studies-title {
    text-align: center;
    margin-bottom: 50px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.case-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.case-item img {
    transition: transform 0.5s ease;
}

.case-item:hover img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 77, 110, 0.8);
    color: var(--light-text);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.case-item:hover .case-overlay {
    transform: translateY(0);
}

.case-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.case-pagination span {
    width: 12px;
    height: 12px;
    background-color: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
}

.case-pagination span.active {
    background-color: var(--secondary-color);
}

/* ===== TEAM SECTION ===== */
.team {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.team-intro {
    text-align: center;
    margin-bottom: 50px;
}

.skills-container {
    margin-bottom: 50px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-bar {
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--secondary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-info {
    padding: 20px;
    text-align: center;
}

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

.member-info p {
    color: #777;
    font-size: 0.9rem;
}

.team-cta {
    text-align: center;
    margin-top: 50px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
}

.testimonial-text::before {
    top: -20px;
    left: -20px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -20px;
}

.testimonial-author {
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonial-photo img {
    width:70px;
    aspect-ratio: 1;
    border-radius: 50%;
}

.testimonial-position {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ===== BLOG SECTION ===== */
.blog {
    padding: 80px 0;
    background-color: #fff;
}

.blog-title {
    text-align: center;
    margin-bottom: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-image {
    position: relative;
}

.blog-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.blog-content p {
    margin-bottom: 15px;
    color: #666;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #777;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-form {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-title {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

textarea.form-control {
    height: 120px;
    resize: vertical;
}

.contact-image {
    flex: 1;
    display: flex;
    align-items: center;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-text);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-icons-footer {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons-footer a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
    .header-top {
        display: none;
    }
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        /* color:white; */
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .services-grid,
    .features-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-content,
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .experience-badge {
        position: relative;
        display: inline-block;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {

    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        opacity: .95;
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        padding: 20px;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-image { display: none; }

    .services-grid,
    .features-grid,
    .team-grid,
    .case-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}