
/* --- 1. SETUP COLORI & VARIABILI --- */
:root {
    --gradient-bg: linear-gradient(135deg, #2AF598 0%, #009EFD 50%, #6b4cff 100%);
    --card-bg: rgba(230, 210, 255, 0.25); 
    --card-border: rgba(220, 200, 255, 0.4);
    --card-shadow: 0 15px 35px rgba(20, 0, 50, 0.2);
    --nav-bg: rgba(20, 15, 40, 0.95);
    --text-main: #ffffff;
    --accent: #2AF598;
    --accent-yellow: #ffd700;
}

html { scroll-behavior: smooth; }
section { scroll-margin-top: 100px; } 
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--gradient-bg);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 80px;
    cursor: default; /* Cursore standard */
}

/* --- 2. LAYOUT GENERALE --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; transition: 0.3s; color: inherit; }

/* Stile Card */
.glass-box {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, background 0.3s;
}
.glass-box:hover { 
    transform: translateY(-5px); 
    background: rgba(240, 230, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn {
    background: white; color: #6b4cff; padding: 15px 40px;
    border-radius: 50px; font-weight: 800; text-transform: uppercase;
    display: inline-block; margin-top: 20px; border: none; cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(0,0,0,0.3); color: #009EFD; }

/* --- 3. NAVBAR STICKY --- */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 15px 0; z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
nav { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.nav-logo img { width: 35px; height: 35px; border-radius: 8px; }
.nav-menu { display: flex; gap: 25px; }
.nav-link { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.8); position: relative; }
.nav-link:hover { color: white; }

/* --- 4. HERO --- */
.hero {
    min-height: 80vh; /* Ridotto leggermente per far vedere il pet che cammina */
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; position: relative;
}
.hero h1 { font-size: 3rem; margin-bottom: 15px; line-height: 1.1; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; opacity: 0.95; font-weight: 500; }

/* --- 5. IL PET (PAPERELLA VIVENTE) --- */
#duck-pet {
    position: fixed; /* Libera di muoversi sullo schermo */
    width: 80px;
    height: 80px;
    z-index: 9999; /* Sopra a tutto */
    transition: top 1s ease-out, left 1s ease-out, transform 0.3s; /* Movimento fluido */
    cursor: pointer;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

.pet-img {
    width: 100%; height: 100%; object-fit: contain;
    /* Niente bordi o cerchi, solo la papera */
}

/* Animazione CAMMINATA (Dondolio) */
@keyframes waddle {
    0% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(10deg) translateY(-5px); }
    50% { transform: rotate(0deg) translateY(0); }
    75% { transform: rotate(-10deg) translateY(-5px); }
    100% { transform: rotate(0deg) translateY(0); }
}

/* Classe applicata via JS quando cammina */
.walking {
    animation: waddle 0.4s infinite linear;
}

/* Animazione SALTO (Click) */
@keyframes jump {
    0% { transform: translateY(0); }
    50% { transform: translateY(-30px) scale(1.1); }
    100% { transform: translateY(0); }
}
.jumping { animation: jump 0.5s ease; }

/* Fumetto (nuvoletta) */
.speech-bubble {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #333;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.speech-bubble::after {
    content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
    border-width: 5px; border-style: solid; border-color: white transparent transparent transparent;
}
#duck-pet:hover .speech-bubble { opacity: 1; }


/* --- 6. ALTRE SEZIONI --- */
.award-banner { display: flex; justify-content: center; margin-bottom: 80px; }
.award-content {
    background: rgba(30, 20, 60, 0.7); border: 2px solid var(--accent-yellow);
    padding: 15px 30px; border-radius: 50px; display: flex; align-items: center; gap: 15px;
    transition: 0.3s; text-align: left; box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.award-content:hover { transform: translateY(-5px); box-shadow: 0 0 25px rgba(255, 215, 0, 0.4); }
.award-text h4 { color: var(--accent-yellow); margin: 0; font-size: 1.1rem; }
.award-link { font-size: 0.8rem; text-decoration: underline; display: block; margin-top: 3px; }

.video-thumbnail {
    position: relative; width: 100%; max-width: 800px; margin: 0 auto;
    aspect-ratio: 16/9; background-color: #000; border-radius: 20px;
    overflow: hidden; border: 2px solid rgba(255,255,255,0.3); cursor: pointer;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: 0.3s; }
.play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 5rem; color: white; text-shadow: 0 0 30px rgba(0,0,0,0.7);
}

.grid-feature { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; 
}
.feature-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    padding: 30px; border-radius: 20px; text-align: center; transition: 0.3s;
    box-shadow: var(--card-shadow);
}
.feature-card:hover { 
    background: rgba(240, 230, 255, 0.3); transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(107, 76, 255, 0.2); border-color: #ffffff;
}
.feature-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; text-shadow: 0 0 15px rgba(42, 245, 152, 0.6); }
.feature-card h3 { margin-bottom: 10px; font-size: 1.2rem; font-weight: 700; }
.feature-card p { font-size: 0.9rem; line-height: 1.6; color: #f9f9f9; font-weight: 500; }

.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.team-card {
    width: 220px; text-align: center; padding: 25px 20px; border-radius: 15px;
    background: var(--card-bg); border: 1px solid var(--card-border);
    cursor: pointer; transition: 0.3s; position: relative; box-shadow: var(--card-shadow);
}
.team-card:hover { 
    background: rgba(240, 230, 255, 0.35); transform: scale(1.05); 
    border-color: #ffffff; box-shadow: 0 0 20px rgba(107, 76, 255, 0.3);
}
.team-avatar {
    width: 100px; height: 100px; background: #ddd; border-radius: 50%; margin: 0 auto 15px;
    border: 3px solid var(--accent); overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.click-info { font-size: 0.7rem; margin-top: 10px; color: var(--accent); opacity: 0.9; font-weight: 600; }

footer {
    padding: 60px 0; text-align: center;
    background: rgba(10, 10, 25, 0.9); margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.social-icons a { font-size: 2.2rem; margin: 0 15px; color: white; transition: 0.3s; display: inline-block;}
.social-icons a:hover { color: var(--accent); transform: scale(1.2); }

.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    z-index: 2000; justify-content: center; align-items: center; padding: 20px;
}
.modal.active { display: flex; animation: fadeIn 0.3s ease; }
.modal-content {
    background: #1a1a2e; border: 1px solid #555; border-radius: 20px;
    max-width: 500px; width: 100%; padding: 40px; text-align: center;
    position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.6); color: white;
}
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; color: #ccc; }
.close-btn:hover { color: white; }

@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 768px) { .nav-menu { display: none; } .hero h1 { font-size: 2.2rem; } }