/* Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
    overflow-x: hidden;
    color: #333;
    cursor: none;
}

/* Navbar: Trasparente con effetto blur */
#navbar {
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

#navbar .nav-link {
    color: #fff !important;
    margin: 0 10px;
}

#navbar .nav-link:hover {
    color: #ddd !important;
}

/* Hero Section: Layout split, parallax di background */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    perspective: 1000px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
    background: url('../img/hero-bg.jpg') no-repeat center center/cover;
    transform: translateY(-10%) translateZ(-100px);
    filter: brightness(0.7);
    will-change: transform;
    transform-style: preserve-3d;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    transform: translateZ(0);
}

.hero-illustration {
    max-width: 80%;
    opacity: 0.9;
}

/* Sezioni generiche */
.section {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #222;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    margin-right: 20px;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Icone per servizi */
.service-icon {
    width: 70px;
    margin-bottom: 1rem;
}

/* Offerte: Card con overlay */
.offer-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.offer-card:hover {
    transform: scale(1.03);
}

.offer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
    text-align: center;
}

.offer-card:hover .offer-overlay {
    opacity: 1;
}

.offer-overlay h5 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Background Gradient per Offerte */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Contatti: Form con glass effect */
.contact-form {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(8px);
}

/* Animazioni: Fade-in con delay personalizzato */
.animate {
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInDown {
    animation: fadeIn 0.8s ease-out forwards;
}

.fadeInUp {
    animation: fadeIn 0.8s ease-out forwards;
}

.fadeInRight {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.4s;
}

.delay-2 {
    animation-delay: 0.8s;
}

.delay-3 {
    animation-delay: 1.2s;
}

/* Footer */
.footer {
    background: #222;
    color: #aaa;
}

.footer small {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

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

/* Servizi: Scroll orizzontale */
#servizi .row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

#servizi .row::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Cursore personalizzato */
body {
    cursor: none;
}

.custom-cursor {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
}

.custom-cursor.grow {
    transform: scale(2);
    background: rgba(255, 255, 255, 0.2);
}

/* Effetti hover moderni per i link */
.nav-link, .btn {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

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