/* style.css */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: white;
    color: black;
    overflow-x: hidden;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-brand-logo {
    height: 32px;
    width: auto;
    display: inline-block;
}

.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-video-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hero-video.playing {
    opacity: 1 !important;
}

.hero-video-placeholder.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.722);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-weight: 300;
    font-size: 4rem;
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-weight: 300;
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

.btn-outline-dark {
    border-radius: 0;
    padding: 10px 30px;
    font-weight: 300;
    letter-spacing: 1px;
}

.portfolio-item {
    margin-bottom: 4rem;
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.project-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    color: #fff;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.project-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.project-card .card-body,
.project-card .card-footer {
    position: relative;
    z-index: 2;
    background: transparent;
}

.project-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card .card-text {
    margin-top: auto;
}

.project-card-text {
    background: rgba(0, 0, 0, 0.75);
}

.project-card .card-body.project-card-text {
    padding-bottom: 0.5rem;
}

.project-card .card-footer.project-card-text {
    border-top: none;
    padding-top: 0.5rem;
}

.project-card .card-subtitle,
.project-card .card-footer {
    color: rgba(255, 255, 255, 0.75);
}

.project-card .card-subtitle.text-muted {
    color: rgba(220, 220, 220, 0.9) !important;
}

.project-card .card-footer.text-muted.project-card-text {
    color: rgba(220, 220, 220, 0.9) !important;
}

.portfolio-title {
    font-weight: 700;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.portfolio-category {
    font-weight: 300;
    color: #555;
}

.section-title {
    font-weight: 300;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    letter-spacing: -1px;
}

.about-text {
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-info {
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.footer {
    padding: 3rem 0;
    font-weight: 300;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-video {
        object-position: center center;
    }
}

/* Animazioni per il caricamento */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* Ottimizzazioni per dispositivi mobili */
@media (max-width: 480px) {
    .hero-section {
        height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}