* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #00a8ff;
    --dark-blue: #0066cc;
    --light-blue: #4fc3f7;
    --ocean-deep: #003d5c;
    --ocean-light: #e1f5fe;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-dark: #333333;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 61, 92, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 168, 255, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-atlante {
    color: var(--primary-blue);
    text-shadow: 0 0 20px rgba(0, 168, 255, 0.8);
}

.logo-mc {
    color: var(--white);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.btn-play {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.6);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #003d5c 0%, #0066cc 50%, #00a8ff 100%);
    z-index: -2;
}

.ocean-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(79, 195, 247, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 168, 255, 0.3) 0%, transparent 50%);
    animation: oceanPulse 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes oceanPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 2rem 0;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.glowing-text {
    animation: glow 2s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(0, 168, 255, 0.8),
        0 0 20px rgba(0, 168, 255, 0.6),
        0 0 30px rgba(0, 168, 255, 0.4);
}

@keyframes glow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(0, 168, 255, 0.8),
            0 0 20px rgba(0, 168, 255, 0.6),
            0 0 30px rgba(0, 168, 255, 0.4);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(0, 168, 255, 1),
            0 0 30px rgba(0, 168, 255, 0.8),
            0 0 40px rgba(0, 168, 255, 0.6),
            0 0 50px rgba(0, 168, 255, 0.4);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--light-blue);
}

.hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    opacity: 0.95;
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin: 2rem 0;
}

.ip-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 168, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ip-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.ip-address {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

.btn-copy {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-copy:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.4);
}

.players-online {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 25px;
    border: 2px solid rgba(0, 168, 255, 0.3);
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    box-shadow: 0 5px 20px rgba(0, 168, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    fill: var(--white);
}

/* Modalità Section */
.section-modalita {
    padding: 5rem 0;
    background: var(--white);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--ocean-deep);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.modalita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.modalita-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.modalita-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
}

.modalita-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-lg);
    border-color: var(--primary-blue);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon svg {
    filter: drop-shadow(0 4px 8px rgba(0, 168, 255, 0.3));
    transition: all 0.3s ease;
}

.modalita-card:hover .card-icon svg {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(0, 168, 255, 0.5));
}

.modalita-card h3 {
    font-size: 1.8rem;
    color: var(--ocean-deep);
    margin-bottom: 1rem;
}

.modalita-card p {
    color: #666;
    line-height: 1.8;
}

.card-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Community Section */
.section-community {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--ocean-deep), var(--dark-blue));
    color: var(--white);
}

.section-community .section-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: left;
    margin-left: 40px;
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.community-description {
    font-size: 1.1rem;
    margin: 1.5rem 0;
    line-height: 1.8;
    opacity: 0.9;
}

.community-features {
    list-style: none;
    margin: 2rem 0;
}

.community-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.community-features svg {
    color: var(--light-blue);
}

.btn-discord {
    background: #5865F2;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

.discord-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.widget-icon {
    font-size: 2rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-icon svg {
    filter: drop-shadow(0 2px 4px rgba(88, 101, 242, 0.4));
}

.widget-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-blue);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* News Section */
.section-news {
    padding: 5rem 0;
    background: var(--gray-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-lg);
}

.news-card.featured {
    border: 3px solid var(--primary-blue);
}

.news-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-card h3 {
    font-size: 1.5rem;
    color: var(--ocean-deep);
    margin-bottom: 1rem;
}

.news-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Staff Section */
.section-staff {
    padding: 5rem 0;
    background: var(--white);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.staff-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.staff-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-card h3 {
    font-size: 1.3rem;
    color: var(--ocean-deep);
    margin-bottom: 0.5rem;
}

.staff-role {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.staff-role.founder {
    background: linear-gradient(135deg, #ff9800, #ff6f00);
    color: var(--white);
}

.staff-role.owner {
    background: linear-gradient(135deg, #c62828, #8b0000);
    color: var(--white);
}

.staff-role.sradmin {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: var(--white);
}

.staff-role.admin {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: var(--white);
}

.staff-role.developer {
    background: linear-gradient(135deg, #81d4fa, #4fc3f7);
    color: var(--white);
}

.staff-role.moderator {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: var(--white);
}

.staff-role.helper {
    background: linear-gradient(135deg, #81c784, #66bb6a);
    color: var(--white);
}

.staff-card p {
    color: #666;
    line-height: 1.6;
}

.staff-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--ocean-light), var(--white));
    border-radius: 20px;
}

.staff-cta h3 {
    font-size: 2rem;
    color: var(--ocean-deep);
    margin-bottom: 1rem;
}

.staff-cta p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--ocean-deep);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-atlante {
    color: var(--primary-blue);
}

.footer-mc {
    color: var(--white);
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light-blue);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-ip {
    background: rgba(0, 168, 255, 0.2);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-blue);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--ocean-deep);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: left 0.3s ease;
    }

    .nav.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .ip-box {
        flex-direction: column;
        text-align: center;
    }

    .community-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .modalita-grid,
    .news-grid,
    .staff-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
