/* Caricamento Font */
@font-face {
    font-family: 'SEGO';
    src: url('/asset/fonts/sego/SEGO.ttf') format('truetype'),
         url('/asset/fonts/sego/SEGO.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f0a1e;
    color: white;
    font-family: 'SEGO', 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Padding di sicurezza per i bordi dello schermo */
}

.container {
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

/* TITLE */
.main-title {
    font-size: 2.2rem; /* Ridotto per mobile */
    background: linear-gradient(90deg, #ff00cc, #3333ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px; /* Ridotto per evitare overflow */
    animation: pulse 2s infinite alternate;
    line-height: 1.2;
}

@keyframes pulse {
    from { filter: drop-shadow(0 0 5px #ff00cc); }
    to { filter: drop-shadow(0 0 15px #3333ff); }
}

/* LOGO - FIX PROPORZIONI */
.logo {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.logo img {
    width: 100%;
    max-width: 500px; /* Regola questo valore per la dimensione desiderata su desktop */
    height: auto;     /* Fondamentale per mantenere le proporzioni */
    object-fit: contain; 
    display: block;
}
/* SOCIAL */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

.social-icons i {
    font-size: 1.5rem;
    transition: transform 0.3s, color 0.3s;
}

/* PROGRESS */
.progress-section {
    width: 100%;
    margin-top: 20px;
}

.progress-bar-container {
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar-fill {
    height: 100%;
    width: 10%;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    animation: loadProgress 4s infinite alternate ease-in-out;
}

.progress-text {
    font-size: 1.2rem; /* Ridotto drasticamente dai 2rem originali */
    margin-top: 10px;
    line-height: 1.4;
}

/* ICONS MARKETING */
.marketing-icons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Ridotto per farli stare vicini */
    flex-wrap: wrap; /* Fondamentale per il mobile */
    margin-top: 30px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #00d2ff;
    flex: 1 1 80px; /* Permette alle icone di disporsi su più righe */
    animation: float 3s infinite ease-in-out;
}

.icon-item span {
    font-size: 0.7rem; /* Testo icone piccolo */
    margin-top: 5px;
    text-transform: uppercase;
}

.icon-item i {
    font-size: 1.3rem;
}

/* MEDIA QUERIES PER DESKTOP (Sopra i 768px) */
@media (min-width: 768px) {
    .main-title {
        font-size: 3.5rem;
        letter-spacing: 5px;
    }
    
    .logo img {
        max-width: 80% !important; /* Più piccolo su smartphone per non toccare i bordi */
    }

    .progress-text {
        font-size: 2rem;
    }

    .icon-item i {
        font-size: 1.8rem;
    }
}

/* ANIMAZIONI */
@keyframes loadProgress {
    from { width: 10%; }
    to { width: 85%; }
}

@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}