/* Reset e stili di base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #fff;
    font-weight: 400;
}

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

/* Header e Navigazione */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo a:hover {
    transform: scale(1.05);
}

.logo img {
    height: 300px;
    width: auto;
    display: block;
}

.logo-name {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin-left: 10px;
}

.logo a {
    display: flex;
    align-items: center;
}

.company-name {
    display: none;
}

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

.nav-link {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 400;
    font-size: 17px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
    font-weight: 500;
}

/* Menu hamburger per mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: #1d1d1f;
    margin: 4px 0;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    border-radius: 3px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Main Content */
main {
    margin-top: 100px;
}

/* Hero Section */
.hero {
    padding: 80px 0 40px;
    background: #fff;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-content p {
    font-size: 21px;
    color: #86868b;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.4;
}

.cta-button {
    background-color: #000;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.cta-button:hover {
    background-color: #1d1d1f;
    transform: translateY(-1px);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Hero Video Section */
.hero-video {
    padding: 60px 0;
    text-align: center;
    background: #fff;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: #1d1d1f;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.service-card {
    background-color: white;
    padding: 48px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f5f5f7;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    border-color: #e5e5e7;
}

.service-card img {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
}

.service-icon-fa {
    font-size: 56px;
    color: #D49C27;
    margin-bottom: 24px;
    display: block;
}

.value-icon-fa {
    font-size: 50px;
    color: #D49C27;
    margin-bottom: 20px;
    display: block;
}

.service-page-icon {
    font-size: 60px;
    color: #D49C27;
    margin-bottom: 20px;
    display: block;
}

.contact-icon-fa {
    font-size: 40px;
    color: #D49C27;
    margin-right: 20px;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.service-card p {
    color: #86868b;
    line-height: 1.5;
    font-size: 17px;
}

/* About Preview Section */
.about-preview {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 40px;
    margin-bottom: 24px;
    color: #1d1d1f;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 19px;
    color: #86868b;
    margin-bottom: 32px;
    line-height: 1.5;
}

.link-button {
    display: inline-block;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #000;
    transition: all 0.3s ease;
}

.link-button:hover {
    color: #1d1d1f;
    border-bottom-color: #1d1d1f;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #f5f5f7;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 10px;
    color: #ccc;
}

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

.social-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #f5f5f7;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.footer-bottom p {
    color: #ccc;
}

/* Stats Section */
.stats {
    background-color: #D49C27;
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Responsive Design - Tablet */
@media (max-width: 992px) {
    .nav-container {
        height: 90px;
    }
    
    .logo img {
        height: 200px;
    }
    
    .hero-content h1 {
        font-size: 44px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .services h2,
    .about-text h2 {
        font-size: 34px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .nav-container {
        height: 90px;
        padding: 10px 20px;
    }
    
    .logo img {
        height: 180px;
    }
    
    main {
        margin-top: 90px;
    }
    
    /* Menu Fullscreen Mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        margin: 0;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.4s ease;
    }
    
    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.4s; }
    
    .nav-link {
        font-size: 28px;
        font-weight: 600;
        color: #fff;
        padding: 20px 40px;
        display: block;
        letter-spacing: -0.02em;
        position: relative;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: #A2AAAD;
    }

    .hamburger {
        display: flex;
        padding: 10px;
        position: relative;
        z-index: 1001;
    }
    
    .hamburger.active .bar {
        background-color: #fff;
    }

    /* Hero Mobile */
    .hero {
        padding: 50px 0 30px;
    }
    
    .hero-container {
        padding: 0 25px;
    }
    
    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 20px;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 16px;
        width: 100%;
        max-width: 280px;
    }
    
    /* Video Mobile */
    .hero-video {
        padding: 40px 0;
    }
    
    .video-container {
        margin: 0 15px;
        border-radius: 16px;
    }

    /* Services Mobile */
    .services {
        padding: 60px 0;
    }
    
    .services h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .service-card {
        padding: 35px 25px;
        border-radius: 20px;
    }
    
    .service-icon-fa {
        font-size: 48px;
        color: #D49C27;
        margin-bottom: 20px;
    }
    
    .service-card h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .service-card p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* About Mobile */
    .about-preview {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .about-text h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .about-text p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img {
        border-radius: 16px;
        max-width: 90%;
        margin: 0 auto;
    }

    /* Footer Mobile */
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }
    
    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .footer-section p {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        margin-top: 30px;
    }
    
    .footer-bottom p {
        font-size: 13px;
    }
    
    /* Stats Mobile */
    .stats {
        padding: 45px 0;
    }
    
    .stats-grid {
        gap: 25px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 14px;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 8px 15px;
        height: 80px;
    }
    
    .logo img {
        height: 160px;
    }
    
    main {
        margin-top: 80px;
    }
    
    .nav-link {
        font-size: 24px;
        padding: 18px 30px;
    }

    .hero {
        padding: 35px 0 25px;
    }
    
    .hero-container {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 26px;
        margin-bottom: 16px;
    }
    
    .hero-content p {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    /* Video Small Mobile */
    .hero-video {
        padding: 30px 0;
    }
    
    .video-container {
        margin: 0 10px;
        border-radius: 12px;
    }

    /* Services Small Mobile */
    .services {
        padding: 45px 0;
    }
    
    .services h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .services-grid {
        gap: 16px;
        padding: 0 5px;
    }
    
    .service-card {
        padding: 28px 20px;
        border-radius: 16px;
    }
    
    .service-icon-fa {
        font-size: 42px;
        color: #D49C27;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .service-card p {
        font-size: 14px;
    }

    /* About Small Mobile */
    .about-preview {
        padding: 45px 0;
    }
    
    .about-content {
        gap: 30px;
    }
    
    .about-text h2 {
        font-size: 24px;
    }
    
    .about-text p {
        font-size: 15px;
    }
    
    .link-button {
        font-size: 15px;
    }

    /* Footer Small Mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 17px;
    }
    
    .footer-section p {
        font-size: 13px;
    }
    
    /* Stats Small Mobile */
    .stats {
        padding: 35px 0;
    }
    
    .stat-number {
        font-size: 30px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* Animazioni stile Apple */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Transizioni di pagina stile Apple */
body {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

main {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card,
.hero-content,
.about-text {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

/* Animazioni al scroll */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Transizioni smooth per i link */
a {
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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