:root {
    --primary-color: #1a1a1a;
    --secondary-color: #444;
    --background-color: #f5f5f7;
    --text-color: #333;
    --white: #ffffff;
    --accent-color: #ff69b4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: opacity 1.5s ease;
    opacity: 0;
    filter: brightness(50%); /* Riduce la luminosità al 50% */
}

.background-img.active {
    opacity: 1;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 16px 30px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
    border: 2px solid black;
    box-shadow: 0px 0px 17px 5px black;
}

.button:hover {
    transform: translateY(-3px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 20px;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Features Section */
.features, .services {
    padding: 60px 0;
    background: var(--white);
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.feature-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}

.feature-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 300;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
}

.service-link svg {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.service {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.service:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    text-align: left;
}

.service h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service p {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Recruiting Section */
#recruiting {
    padding: 40px 0;
    background-color: white;
    text-align: center;
}

#recruiting h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 32px;
    display: inline;
    background-image: linear-gradient(yellow, yellow);
    background-size: 100% 50%;
    background-repeat: no-repeat;
    background-position: 0 70%;
}

#recruiting p {
    font-size: 18px;
    margin-bottom: 25px;
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 33px;
    right: 25px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.7rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    transform: scale(1.1);
}



/* Responsive Design */
@media (max-width: 992px) {
    .feature-item {
        flex-direction: column !important;
        gap: 40px;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 36px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    
    .nav {
        display: none;
    }

    .feature-image img {
        width: 300px;
        height: 200px; /* Ridotta del 50% rispetto ai 400px originali */
    }
}


/*footer*/
footer {
    background: rgb(215, 215, 215);
    color: black;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 10px;
}

.footer-logo p {
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
    font-size: 14px;
}

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

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

.social-icon:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom a {
    color: blue;
    text-decoration: none;
}
