/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* PARTICELLE - canvas full screen */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Background decorative elements */
.bg-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.molecule {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
}

.molecule-1 {
    width: 120px;
    height: 120px;
    background: rgba(236, 72, 153, 0.8);
    top: 15%;
    right: 15%;
    animation: float 6s ease-in-out infinite;
}

.molecule-2 {
    width: 80px;
    height: 80px;
    background: rgba(34, 197, 94, 0.6);
    top: 25%;
    right: 25%;
    animation: float 8s ease-in-out infinite reverse;
}

.molecule-3 {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.5);
    top: 10%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

.molecule-4 {
    width: 90px;
    height: 90px;
    background: rgba(168, 162, 158, 0.4);
    bottom: 20%;
    left: 20%;
    animation: float 9s ease-in-out infinite reverse;
}

.molecule-5 {
    width: 110px;
    height: 110px;
    background: rgba(236, 72, 153, 0.3);
    bottom: 15%;
    right: 10%;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Main container */
.container {
    position: relative;
    z-index: 2;
    max-width: 1710px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 30px 0;
    display: flex;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: #636EDF;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 0;
}

/* Logo centrale grande */
.central-logo {
    margin-bottom: 40px;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.central-logo img {
    width: 570px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 30px rgba(99, 110, 223, 0.6)); }
}

.title {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.1em;
    letter-spacing: -1px;
    margin-bottom: 25px;
    max-width: 800px;
}

.subtitle {
    font-size: 18px;
    line-height: 1.6em;
    margin-bottom: 60px;
    max-width: 600px;
    opacity: 0.9;
}

/* Cards container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: left;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    display: block;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: #1e3a8a;
}

.card-icon i {
    font-size: 24px;
}

/* Responsive design */
@media (max-width: 1200px) {
    .title {
        font-size: 42px;
    }
    .central-logo img {
        width: 350px;
    }
}

@media (max-width: 1024px) {
    .title {
        font-size: 38px;
    }
    .central-logo img {
        width: 320px;
    }
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 880px) {
    .title {
        font-size: 36px;
        letter-spacing: -0.5px;
    }
    .central-logo img {
        width: 280px;
    }
}

@media (max-width: 767px) {
    .title {
        font-size: 32px;
        letter-spacing: -0.5px;
    }
    .central-logo img {
        width: 250px;
    }
    .cards-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .main-content {
        padding: 30px 0;
    }
    .card {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 28px;
    }
    .central-logo img {
        width: 220px;
    }
    .subtitle {
        font-size: 16px;
        max-width: 100%;
        padding: 0 10px;
    }
    .cards-container {
        gap: 20px;
        padding: 0 10px;
    }
}
