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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

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

/* Header */
.header {
    background: #0f1a2e;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid #00d4ff;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-img-secondary {
    height: 40px;
    width: auto;
    margin-left: 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #00d4ff;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('mad4games1.png') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b, #4ecdc4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #cccccc;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: white;
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #00d4ff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
}

/* Storia Section */
.storia-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.storia-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #cccccc;
    line-height: 1.8;
}

.storia-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Server Section */
.server-section {
    background: rgba(0, 0, 0, 0.3);
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.server-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.server-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.2);
}

.server-icon {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.server-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.server-card p {
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.server-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.server-link:hover {
    color: #ffffff;
}

/* Icone server come immagini */
.server-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

/* Social Section */
.social-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
}

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

.social-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.social-card.discord {
    border-color: #7289da;
}

.social-card.facebook {
    border-color: #1877f2;
}

.social-card.instagram {
    background: linear-gradient(45deg, #e4405f, #c13584);
}

.social-card.twitter {
    background: linear-gradient(45deg, #1da1f2, #0d8bd9);
}

.social-card.youtube {
    background: linear-gradient(45deg, #ff0000, #cc0000);
}

.social-card.twitch {
    background: linear-gradient(45deg, #9146ff, #7c3aed);
}

.social-card.telegram {
    background: linear-gradient(45deg, #0088cc, #0077b3);
}

.social-card.whatsapp {
    background: linear-gradient(45deg, #25d366, #128c7e);
}

.social-card.tiktok {
    background: linear-gradient(45deg, #000000, #25f4ee);
}

.social-card.linkedin {
    background: linear-gradient(45deg, #0077b5, #005885);
}

.social-card.reddit {
    background: linear-gradient(45deg, #ff4500, #ff6b35);
}

.social-card.steam {
    background: linear-gradient(45deg, #171a21, #2a475e);
}

.social-card.github {
    background: linear-gradient(45deg, #333333, #24292e);
}

.social-card.generic {
    background: linear-gradient(45deg, #6c757d, #495057);
}

.social-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.social-card.discord .social-icon {
    color: #7289da;
}

.social-card.facebook .social-icon {
    color: #1877f2;
}

.social-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.social-card p {
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.social-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border: 2px solid #00d4ff;
    border-radius: 25px;
    display: inline-block;
}

.social-link:hover {
    background: #00d4ff;
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 3rem 0 1rem;
    border-top: 2px solid #00d4ff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00d4ff;
}

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

.social-icon-link {
    color: #cccccc;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    color: #00d4ff;
    transform: translateY(-3px);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid #00d4ff;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .storia-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .server-grid,
    .social-grid {
        grid-template-columns: 1fr;
    }
}

/* Sezione Contatti */
.contatti-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contatti-text {
    text-align: center;
    line-height: 1.7;
}

.contact-form {
    width: 100%;
    padding: 30px;
    background: rgba(17, 17, 26, 0.8);
    border-radius: 10px;
    border: 1px solid #00ffcc;
    box-shadow: 0 4px 20px rgba(0, 255, 204, 0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #00ffcc;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: #1a1a2e;
    border: 1px solid #4a4a6a;
    border-radius: 5px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    border-color: #00ffcc;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ffcc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none; /* Inizialmente nascosto */
    transition: all 0.3s ease;
}

.form-status.success {
    background-color: rgba(0, 255, 204, 0.15);
    border: 1px solid #00ffcc;
    color: #00ffcc;
    display: block;
}

.form-status.error {
    background-color: rgba(255, 71, 87, 0.15);
    border: 1px solid #ff4757;
    color: #ff4757;
    display: block;
} 