:root {
    --apple-bg: #ffffff;
    --apple-text: #1d1d1f;
    --apple-muted: #86868b;
    --apple-blue: #0071e3;
    --apple-gray: #f5f5f7;
    --accent-gradient: linear-gradient(90deg, #24c6dc, #514a9d);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body { font-family: 'Inter', sans-serif; background: var(--apple-bg); color: var(--apple-text); line-height: 1.5; }

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

/* Glass Nav */
.glass-nav {
    position: fixed; top: 0; width: 100%; height: 50px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px); z-index: 1000;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-weight: 700; text-decoration: none; color: #000; font-size: 20px; }
.logo span { color: var(--apple-blue); }
.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links a { text-decoration: none; color: #000; font-size: 13px; font-weight: 500; }
.btn-apple { background: #000; color: #fff !important; padding: 5px 12px; border-radius: 15px; }
.btn-blue { background: var(--apple-blue); color: #fff !important; padding: 5px 12px; border-radius: 15px; }

/* Pulsante Feedback Speciale */
.btn-feedback-special {
    background: linear-gradient(135deg, var(--apple-blue) 0%, #24c6dc 100%);
    color: #fff !important;
    padding: 12px 28px !important;
    border-radius: 30px !important;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}
.btn-feedback-special::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}
.btn-feedback-special:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 113, 227, 0.45);
}
@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Hero */
.hero { padding: 140px 0 80px; text-align: center; }
.badge { font-size: 12px; font-weight: 700; color: var(--apple-blue); text-transform: uppercase; letter-spacing: 2px; }
.headline { font-size: 72px; font-weight: 800; letter-spacing: -3px; margin: 15px 0; line-height: 1; }
.accent-text { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subheadline { font-size: 24px; color: var(--apple-muted); max-width: 650px; margin: 0 auto; }

/* Project Cards */
.project-showcase { padding-bottom: 100px; }
.project-card {
    background: #000;
    color: #fff;
    border-radius: 32px;
    padding: 80px 60px;
    margin-bottom: 40px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    position: relative; /* Per il gradiente overlay */
}
.project-card:hover { transform: scale(0.98); }

/* Overlay gradiente per le card */
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.project-card .project-content {
    position: relative; /* Per far sì che il contenuto sia sopra l'overlay */
    z-index: 2;
    max-width: 450px;
}

/* Stili specifici per progetto con immagini di sfondo */
.toolkit-3d { 
    background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?auto=format&fit=crop&q=80&w=1000'); /* Placeholder 3D / Abstract */
}
.toolkit-3d::before {
    background: linear-gradient(to right, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.2) 100%);
}


.label { font-size: 14px; font-weight: 600; color: #ccc; opacity: 0.8; }
.project-card h2 { font-size: 48px; margin: 10px 0; font-weight: 700; }
.project-card p { font-size: 18px; color: #bbb; margin-bottom: 25px; }
.link-blue { color: var(--apple-blue); text-decoration: none; font-weight: 600; font-size: 18px; }
.link-blue:hover { text-decoration: underline; }

/* Footer */
footer { text-align: center; padding: 60px 0; background: var(--apple-gray); }
footer p { font-size: 16px; color: var(--apple-text); }
.copyright { color: var(--apple-muted); font-size: 12px; margin-top: 10px; }

@media (max-width: 768px) {
    .headline { font-size: 48px; }
    .project-card { padding: 40px 20px; }
    .project-card h2 { font-size: 38px; }
    .project-card p { font-size: 16px; }
}

/* Banner Pubblicitari Laterali */
.ad-banner {
    position: fixed;
    top: 120px;
    width: 160px;
    height: 600px;
    background-color: #f5f5f7;
    border: 1px dashed #ccc;
    border-radius: 8px;
    display: none; /* Nasconde i banner su schermi piccoli */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #aaa;
    font-size: 12px;
    z-index: 100;
}
.ad-left { left: 20px; }
.ad-right { right: 20px; }

/* Mostra i banner solo se lo schermo è largo almeno 1500px per non coprire il sito */
@media (min-width: 1500px) {
    .ad-banner {
        display: none; /* ATTENZIONE: impostato su none temporaneamente su richiesta */
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 10px;
    }
    .btn-feedback-special {
        font-size: 14px;
        padding: 10px 20px !important;
    }
}