/* Importa font personalizzato */
@font-face {
    font-family: 'CustomFontRegular';
    src: url('font/fonnts.com-powergrotesk-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CustomFontBold';
    src: url('font/fonnts.com-powergrotesk-bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Se hai l'italic */
@font-face {
    font-family: 'CustomFontLightItalic';
    src: url('font/fonnts.com-powergrotesk-lightitalic.otf') format('opentype');
    font-weight: light;
    font-style: italic;
}

/* Reset e Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'CustomFontRegular', -apple-system, 'Segoe UI', sans-serif;
    background: #fdfff2;
    color: #0e0e0e;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* MODIFICATO: Logo animato fisso in alto */
.corner-animation {
    position: fixed;
    top: 40px;
    left: 40px;
    width: 40px;
    height: 40px;
    z-index: 100;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animazione di sfondo */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Container principale */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.content {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

/* Logo */
.logo-container {
    margin-bottom: 0.5rem;
    animation: fadeIn 0.8s ease-out;
}

.logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
}

/* Animazione fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nome con animazione lettera per lettera */
.name {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.letter {
    display: inline-block;
    animation: letterPop 0.5s ease-out both;
}

.letter:nth-child(1) { animation-delay: 0.1s; }
.letter:nth-child(2) { animation-delay: 0.15s; }
.letter:nth-child(3) { animation-delay: 0.2s; }
.letter:nth-child(4) { animation-delay: 0.25s; }
.letter:nth-child(5) { animation-delay: 0.3s; }
.letter:nth-child(6) { animation-delay: 0.35s; }
.letter:nth-child(7) { animation-delay: 0.4s; }
.letter:nth-child(8) { animation-delay: 0.45s; }
.letter:nth-child(9) { animation-delay: 0.5s; }
.letter:nth-child(10) { animation-delay: 0.55s; }
.letter:nth-child(11) { animation-delay: 0.6s; }

@keyframes letterPop {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    50% {
        transform: translateY(5px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Citazione 
.citazione {
    font-size: 16px;
    font-family: 'CustomFontLightItalic';
    font-weight: 100;
    margin-bottom: 2rem;
    opacity: 0.95;
    letter-spacing: 0.1em;
    animation: fadeIn 1s ease-out 0.8s both;
    line-height: 1.3;
}*/

/* Bio */
.bio {
    font-size: 17px;
    font-family: 'CustomFontRegular';
    font-weight: 10;
    line-height: 1.3;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeIn 1s ease-out 1s both;
}

.bold.text {
    font-size: 18px;
    font-family: 'CustomFontBold';
    font-weight: bold;
    margin-bottom: 10px;
    opacity: 0.95;
    animation: fadeIn 1s ease-out 0.9s both;
}

/* Link social */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 1.2s both;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid #0e0e0e;
    border-radius: 50px;
    color: #0e0e0e;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-link:hover::before {
    width: 300px;
    height: 300px;
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    border-color: #0e0e0e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.social-link svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 1s ease-out 1.4s both;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* MODIFICATO: Responsive ottimizzato per mobile */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    /* Logo più piccolo su mobile */
    .corner-animation {
        width: 60px;
        height: 60px;
        top: 15px;
        left: 15px;
    }
    
    /* Bottoni social 2x2 su mobile */
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .social-link {
        flex: 0 1 calc(50% - 0.375rem);
        min-width: 0;
        justify-content: center;
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .circle {
        display: none; /* Nasconde le animazioni su mobile per performance */
    }
}

/* Accessibilità */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}