/* =========================================
   1. VARIABILI & RESET
   ========================================= */
:root {
    --bg-dark: #ffffff;
    --card-bg: #f4f4f4;
    --brand-yellow: #fcd300;
    --brand-pink: #ff1057;
    --text-cream: #111111;
    --text-gray: #555555;
    --text-light-overlay: #fcfceb;
    --font-display: 'Space grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shape-size: 240px;
}

body, a, button, .giant-social-card { cursor: none !important; }
.text-pink { color: var(--brand-pink); }
.text-yellow { color: var(--brand-yellow); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-cream); font-family: var(--font-body); overflow-x: hidden;  }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 100px;
    background: rgba(252, 211, 0, 0.98); backdrop-filter: blur(10px);
    border-bottom: 2px solid #000; z-index: 100;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.nav-container { width: 90%; max-width: 1400px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; position: relative; z-index: 101; /* Sopra al menu mobile */ }
.logo img { height: 50px; width: auto; object-fit: contain; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.1) rotate(-3deg); }

.nav-menu { display: flex; gap: 40px; }
.nav-menu a {
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    color: #000; letter-spacing: 0.5px; text-transform: uppercase; position: relative;
}
.nav-menu a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 3px;
    background: var(--brand-pink); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.cart-wrapper {
    font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
    background: transparent; border: 2px solid #000; color: #000;
    padding: 10px 20px; border-radius: 50px; cursor: none;
    display: flex; gap: 12px; align-items: center; transition: all 0.3s ease;
    position: relative; z-index: 101; /* Sopra al menu mobile */
}
.cart-wrapper:hover {
    background: #000; color: var(--brand-yellow); border-color: #000;
    transform: translateY(-2px); box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
}

.mobile-toggle { 
    display: none; font-size: 2rem; cursor: pointer; color: #000; 
    z-index: 101; /* Sopra al menu mobile */
}

/* =========================================
   3. HOME PAGE
   ========================================= */
main { padding-top: 80px; }
.project-item {
    display: block; position: relative; width: 100%; height: 60vh; min-height: 400px;
    overflow: hidden; border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.project-bg {
    width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s ease;
}
.project-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s ease; backdrop-filter: blur(0px);
}
.project-info {
    text-align: center; transform: translateY(30px); transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    color: var(--text-light-overlay);
}
.project-item:hover .project-bg { transform: scale(1.05); }
.project-item:hover .project-overlay { opacity: 1; backdrop-filter: blur(4px); }
.project-item:hover .project-info { transform: translateY(0); }

.drop-tag {
    display: inline-block; font-size: 0.8rem; letter-spacing: 2px;
    color: var(--brand-pink); border: 1px solid var(--brand-pink);
    padding: 5px 10px; border-radius: 20px; margin-bottom: 15px; font-weight: 700;
}
.project-info h2 {
    font-family: var(--font-display); font-size: 4rem; color: var(--brand-yellow);
    line-height: 1; margin-bottom: 10px; text-transform: uppercase;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
}
.project-info p { font-size: 1.2rem; color: #fff; margin-bottom: 25px; }
.view-btn {
    font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
    border-bottom: 1px solid #fff; padding-bottom: 5px; color: #fff;
}

/* =========================================
   4. PRODUCT PAGE
   ========================================= */
.hero-fullscreen {
    position: relative; width: 100%; height: 100vh;
    display: flex; justify-content: center; align-items: center; overflow: hidden;
}
.hero-center-content { position: relative; z-index: 10; text-align: center; color: #fff; }
.hero-title { font-family: var(--font-display); font-size: 4.5rem; margin-bottom: 30px; line-height: 1; text-transform: uppercase; color: #fff; }

.product-split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-dark); }
.product-details { padding: 80px; display: flex; flex-direction: column; justify-content: center; }
.badges { margin-bottom: 25px; }
.badge-limited { color: var(--brand-pink); border: 1px solid var(--brand-pink); padding: 6px 12px; font-size: 0.8rem; font-weight: 600; border-radius: 4px; }
.product-title { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; margin-bottom: 30px; color: #000; }
.product-desc { font-size: 1.1rem; line-height: 1.6; color: var(--text-gray); margin-bottom: 40px; max-width: 90%; }
.product-meta { display: flex; gap: 40px; margin-bottom: 50px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 20px 0; }
.meta-item .label { font-size: 0.75rem; color: #888; text-transform: uppercase; margin-bottom: 5px; letter-spacing: 1px; }
.meta-item .value { font-family: var(--font-display); font-size: 1.2rem; color: #000; }
.purchase-area { display: flex; align-items: center; gap: 30px; }
.price { font-family: var(--font-display); font-size: 2.5rem; color: var(--brand-pink); font-weight: 700; }
.btn-buy {
    flex-grow: 1; padding: 25px 30px; background: transparent; border: 2px solid #000;
    color: #000; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
    cursor: pointer; transition: 0.3s; border-radius: 10px; display: flex; justify-content: space-between; align-items: center;
}
.btn-buy:hover { background: #000; color: var(--brand-yellow); }

.product-visual { position: sticky; top: 0; height: 100vh; background-color: #f9f9f9; display: flex; align-items: center; justify-content: center; padding: 40px; }
.gallery-wrapper { width: 100%; max-width: 550px; display: flex; flex-direction: column; gap: 20px; }
.main-image-container {
    width: 100%; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1); background: #fff;
}
.main-image-container img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
.fade-out { opacity: 0.5; filter: blur(4px); }
.thumbnails-strip { display: flex; gap: 15px; justify-content: center; }
.thumb {
    width: 70px; height: 70px; border-radius: 12px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; opacity: 0.6; transition: all 0.3s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { transform: translateY(-3px); opacity: 1; border-color: #000; }
.thumb.active { opacity: 1; border-color: var(--brand-pink); box-shadow: 0 0 15px rgba(255, 16, 87, 0.4); }

/* =========================================
   5. FOOTER
   ========================================= */
footer { padding: 60px 5%; background: var(--brand-yellow); color: #000; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { font-family: var(--font-display); color: #000; margin-bottom: 20px; }
.footer-col p, .footer-col a { color: #333; display: block; margin-bottom: 10px; font-size: 0.9rem; font-weight: 500; }
.footer-col a:hover { color: var(--brand-pink); }
.copyright { text-align: center; color: #444; font-size: 0.8rem; border-top: 1px solid rgba(0, 0, 0, 0.1); padding-top: 20px; }

/* =========================================
   6. ABOUT PAGE
   ========================================= */
.about-hero { display: flex; align-items: center; justify-content: space-between; gap: 60px; min-height: 80vh; padding: 120px 10% 80px 10%; background: #ffffff; overflow: hidden; }
.hero-text-side { flex: 1; text-align: left; z-index: 10; }
.hero-text-wrapper { position: relative; margin-bottom: 20px; display: inline-block; }
.glitch-text { display: block; font-family: var(--font-display); font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 700; color: #000; line-height: 0.9; letter-spacing: -2px; }
.sub-headline { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-yellow); background: #000; display: inline-block; padding: 5px 10px; margin-bottom: 30px; text-transform: uppercase; }
.manifesto-sub { font-size: 1.1rem; color: #555; line-height: 1.6; max-width: 90%; }
.hero-image-side { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; }
.hero-slider-wrapper { width: 100%; max-width: 500px; aspect-ratio: 4/5; position: relative; border-radius: 20px; overflow: hidden; border: 2px solid #000; box-shadow: 20px 20px 0px var(--brand-yellow); background: #000; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 1; }
.hero-slide.active { opacity: 1; z-index: 2; }

/* =========================================
   7. TEAM SECTION
   ========================================= */
.team-shapes-section { padding: 80px 5% 120px 5%; background: #ffffff; text-align: center; overflow-x: clip; }
.section-label { font-family: var(--font-display); color: #000; font-size: 1rem; letter-spacing: 2px; margin-bottom: 135px; background: var(--brand-yellow); display: inline-block; padding: 5px 15px; border-radius: 4px; }
.shapes-container { display: flex; justify-content: center; align-items: flex-end; gap: 60px; flex-wrap: wrap; margin-top: 50px; }
.member-block { display: flex; flex-direction: column; align-items: center; width: var(--shape-size); }
.pop-wrapper { width: var(--shape-size); height: var(--shape-size); position: relative; margin-bottom: 25px; transition: transform 0.4s ease; }
.shape-solid { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background-color: var(--brand-pink); z-index: 1; }
.pop-img { position: absolute; width: 100%; z-index: 2; filter: grayscale(100%); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); object-fit: cover; }
.circle-mode .shape-solid { border-radius: 50%; }
.circle-mode .pop-img {
    height: 150%; bottom: 0px; left: 0;
    border-radius: 0 0 calc(var(--shape-size) / 2) calc(var(--shape-size) / 2);
}

.triangle-mode .shape-solid { clip-path: polygon(50% 0%, 0% 95%, 95% 95%); }
.triangle-mode .pop-img {
    height: 130%; bottom: 0px; left: -9.6%; width: 120%;
    clip-path: polygon(20% 0%, 100% 0%, 66% 55%, 87.5% 96.1%, 0% 96.1%, 20% 55%);
}
.member-block:hover .pop-wrapper { transform: translateY(-10px) scale(1.05); }
.member-block:hover .pop-img { filter: grayscale(0%); transform: translateY(-0.5px); }
.member-text { position: relative; z-index: 10; margin-top: 15px; }
.member-text h3 { font-family: var(--font-display); font-size: 1.5rem; color: #000; margin-bottom: 5px; }
.member-text .role { font-size: 0.85rem; color: #888; font-weight: 600; letter-spacing: 1px; }
.member-block:hover h3 { color: var(--brand-pink); }

/* =========================================
   8. CONTACT PAGE (Decor + Fixed Marquee)
   ========================================= */
.social-hero { min-height: 89.4vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; z-index: 1; }
.social-content { max-width: 800px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.social-desc { font-size: 1.3rem; color: #555; margin-top: 20px; margin-bottom: 60px; line-height: 1.6; font-weight: 500; }

.giant-social-card {
    display: block; width: 100%; max-width: 600px; height: 200px; position: relative; text-decoration: none;
    border: 3px solid #000; border-radius: 20px; background-color: #fff;
    background-image: radial-gradient(#ccc 1px, transparent 1px); background-size: 10px 10px;
    overflow: hidden; transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); box-shadow: 10px 10px 0px #000;
}
.card-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #000; transition: color 0.3s ease; }
.card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.status-dot { width: 8px; height: 8px; background-color: #00ff00; border-radius: 50%; box-shadow: 0 0 5px #00ff00; animation: blinkStatus 1.5s infinite; }
.platform-label { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 2px; font-weight: 700; opacity: 0.7; }
.platform-name { font-family: var(--font-display); font-size: 4.5rem; font-weight: 700; line-height: 1; margin: 0; text-transform: uppercase; }
.platform-arrow { font-size: 2rem; margin-top: 5px; transform: translateX(0); transition: transform 0.3s ease; }
.card-bg-hover { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--brand-pink); z-index: 1; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); }

.giant-social-card:hover { transform: translate(5px, 5px); box-shadow: 5px 5px 0px #000; border-color: #000; }
.giant-social-card:hover .card-bg-hover { transform: translateY(0); }
.giant-social-card:hover .card-inner { color: #fff; }
.giant-social-card:hover .status-dot { background-color: #fff; box-shadow: 0 0 10px #fff; }
.giant-social-card:hover .platform-arrow { transform: translateX(15px) scale(1.2); }
@keyframes blinkStatus { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

.small-social-link { margin-top: 30px; font-size: 1rem; color: #888; font-weight: 500; }
.small-social-link span { color: #000; border-bottom: 1px solid #000; }
.small-social-link:hover span { background: #000; color: #fff; }

.contact-bg-decor { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 0; }
.floating-shape { position: absolute; z-index: 0; filter: blur(80px); opacity: 0.6; transition: transform 0.1s cubic-bezier(0.215, 0.610, 0.355, 1.000); will-change: transform; }
.circle-shape { width: 35vw; height: 35vw; top: 15%; left: -5%; }
.circle-shape::after { content: ''; position: absolute; width: 100%; height: 100%; background: var(--brand-pink); border-radius: 50%; }
.triangle-shape { width: 35vw; height: 35vw; top: 40%; right: -5%; }
.triangle-shape::after { content: ''; position: absolute; width: 100%; height: 100%; background: var(--brand-pink); clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }

.social-marquee-strip { position: fixed; bottom: 0; left: 0; width: 100%; background: #000; color: var(--brand-yellow); padding: 15px 0; overflow: hidden; white-space: nowrap; z-index: 90; border-top: 2px solid var(--brand-yellow); }
.marquee-track { display: inline-block; animation: marqueeScroll 20s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: 2px; margin-right: 20px; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================
   9. THREE.JS CANVAS
   ========================================= */
#canvas-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; overflow: hidden; }
canvas { display: block; filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.3)); }

/* =========================================
   10. RESPONSIVE MOBILE
   ========================================= */

   @media (min-width: 901px) {
    .mobile-menu-overlay {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Nascondi anche l'icona hamburger per sicurezza */
    .mobile-toggle {
        display: none !important;
    }
}
@media (max-width: 900px) {
    :root { --shape-size: 30vw; }
    #canvas-container { display: none !important; pointer-events: none; }
    body, a, button, .giant-social-card { cursor: auto !important; }

    /* NAVBAR & OVERLAY */
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    .mobile-menu-overlay {
    display: none; 
}
    
    /* HAMBURGER MENU OVERLAY STYLES */
    .mobile-menu-overlay {
        display: flex; /* <--- IMPORTANTE: Lo riattiva su mobile */
        
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(0, 0, 0, 0.95); 
        backdrop-filter: blur(15px);
        z-index: 200; 
        flex-direction: column; justify-content: center; align-items: center;
        opacity: 0; pointer-events: none; transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .mobile-menu-overlay.open { opacity: 1; pointer-events: all; transform: translateY(0); }
    
    .close-menu {
        position: absolute; top: 30px; right: 30px; font-size: 2.5rem; color: #fff; cursor: pointer;
    }
    .mobile-links { display: flex; flex-direction: column; gap: 30px; text-align: center; }
    .m-link {
        font-family: var(--font-display); font-size: 3rem; font-weight: 700;
        color: #fff; text-transform: uppercase; position: relative;
    }
    /* Effetto Hover Mobile Link */
    .m-link:hover { color: var(--brand-yellow); letter-spacing: 2px; }
    
    .mobile-footer-info {
        position: absolute; bottom: 50px; text-align: center;
        color: #888; font-size: 0.9rem; letter-spacing: 1px;
    }
    .mobile-socials a { color: #fff; margin: 0 5px; font-weight: 700; }

    /* LAYOUT PAGES */
    .team-shapes-section { padding: 40px 0; }
    .section-label { margin-bottom: 30px; }
    .about-hero { flex-direction: column-reverse; padding: 100px 5% 60px 5%; gap: 40px; text-align: center; }
    .hero-text-side { width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero-text-wrapper { margin: 0 auto 20px auto; }
    .manifesto-sub { margin: 0 auto; }
    .hero-image-side { width: 100%; }
    .hero-image-side img { box-shadow: 10px 10px 0px var(--brand-yellow); }
    .product-split { grid-template-columns: 1fr; }
    .product-details { padding: 40px 20px; order: 1; text-align: center; align-items: center; }
    .product-desc { margin: 0 auto 40px auto; }
    .product-meta { justify-content: center; }
    .product-visual { height: auto; position: relative; order: 0; padding: 20px; }

    /* TEAM MOBILE */
    .shapes-container { flex-direction: row; flex-wrap: nowrap; gap: 2vw; align-items: flex-end; width: 100%; padding: 0 10px; }
    .pop-wrapper { margin-bottom: 10px; }
    .member-block:nth-child(2) .pop-wrapper { transform: scale(1.1); z-index: 10; transform-origin: bottom center; }
     .circle-mode .shape-solid { border-radius: 50%; }
    .circle-mode .pop-img {
    height: 160%; bottom: 0px; left: 0;
    border-radius: 0 0 calc(var(--shape-size) / 2) calc(var(--shape-size) / 2);
}

    .triangle-mode .shape-solid { clip-path: polygon(50% 0%, 0% 95%, 95% 95%); }
    .triangle-mode .pop-img {
        height: 120%; bottom: -1px; left: -10%; width: 120%;
        clip-path: polygon(20% 0%, 100% 0%, 67.5% 55%, 88% 95.3%, 0% 95.3%, 20% 55%);
    }

    /* CONTACT & GIANT BUTTON MOBILE */
    .platform-name { font-size: 2.8rem; }
    .platform-label { font-size: 0.65rem; letter-spacing: 1px; }
    .platform-arrow { font-size: 1.5rem; margin-top: 0; }
    .giant-social-card { height: 130px; width: 90vw; box-shadow: 6px 6px 0px #000; }
    .giant-social-card:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0px #000; }
    .social-desc { font-size: 1.1rem; max-width: 90%; }
    .circle-shape, .triangle-shape { width: 70vw; height: 70vw; filter: blur(50px); }
    .social-marquee-strip { bottom: 0; padding: 10px 0; }
    .marquee-track span { font-size: 1.1rem; }
    
    .hero-title { font-size: 3rem; }
    .member-text h3 { font-size: 0.9rem; }
    .member-text .role { font-size: 0.6rem; }
    .btn-buy { width: 100%; }
    .project-item { height: 50vh; }
    .project-overlay { opacity: 1; background: rgba(0, 0, 0, 0.3); }
    .project-info { transform: translateY(0); }
    .footer-content { text-align: center; padding-bottom: 30px; } 
    .socials { justify-content: center; }
}