/* inter-300 - latin */
@font-face {
  font-display: swap; /* Optional: See source for details */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/inter-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-regular - latin */
@font-face {
  font-display: swap; /* Optional: See source for details */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin */
@font-face {
  font-display: swap; /* Optional: See source for details */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/inter-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600 - latin */
@font-face {
  font-display: swap; /* Optional: See source for details */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/inter-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin */
@font-face {
  font-display: swap; /* Optional: See source for details */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


html {
    background-color: #1a1a2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- NUOVO TEMA SCURO --- */
body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg,
            #b448d4 0%,
            #1a1a2e 25%,
            #6a75ca 50%,
            #1a1a2e 75%,
            #b448d4 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: #f5f7fa;
    /* Colore testo base chiaro per contrasto */
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.glass {
    background: rgba(26, 26, 46, 0.5);
    /* Sfondo glass più scuro */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Particelle Fluttuanti */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Gradiente Testo più luminoso per contrasto */
.nav-brand,
.page-title,
.hero h1,
.section-title,
.feature-icon,
.server-ip,
.rule-number,
.stat-number,
.info-icon {
    background: linear-gradient(135deg, #a29bfe, #ff79c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1,
.page-title {
    background: linear-gradient(135deg, #a29bfe, #ff79c6, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1000px;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.3);
}

.nav-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(245, 247, 250, 0.8);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 121, 198, 0.9);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: rgba(245, 247, 250, 0.8);
    cursor: pointer;
}

/* Bottom Navigation Bar - Solo per dispositivi Apple */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0 max(10px, env(safe-area-inset-bottom));
    display: none;
    /* Nascosta di default */
    justify-content: space-around;
    align-items: center;
}

/* Mostra solo su dispositivi Apple */
@supports (-webkit-touch-callout: none) {
    .bottom-nav {
        display: flex;
    }

    .fa-bars {
        display: none;
    }

    .navbar {
        display: flex;
        justify-content: center;
        /* centra orizzontalmente */
        align-items: center;
        /* centra verticalmente */
    }
}

/* Rilevamento specifico per iOS/iPadOS */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    .bottom-nav {
        display: flex;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(245, 247, 250, 0.6);
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 12px;
    width: 100%;
    max-width: 80px;
    min-height: 60px;
    position: relative;
    flex: 1;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: #fff;
    background: rgba(106, 117, 202, 0.2);
    transform: translateY(-2px);
}

.bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.bottom-nav-item:hover i,
.bottom-nav-item.active i {
    transform: scale(1.1);
    text-shadow: 0 0 12px rgba(106, 117, 202, 0.6);
}

.bottom-nav-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.bottom-nav-item:hover .bottom-nav-label,
.bottom-nav-item.active .bottom-nav-label {
    font-weight: 600;
}

/* Stili Pagina Home (Hero Section) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    padding: 60px 40px;
    border-radius: 30px;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(245, 247, 250, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: rgba(245, 247, 250, 0.5);
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(245, 247, 250, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Header di Pagina (per le altre pagine) */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(245, 247, 250, 0.8);
    max-width: 80%;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sezioni e Card Generiche */
.content-section,
.server-info,
.rules-section,
.features,
.stats {
    padding: 60px 0;
    position: relative;
    z-index: 10;
}

.content-card,
.server-card,
.rules-card {
    padding: 50px 40px;
    border-radius: 30px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.info-grid,
.features-grid,
.stats-grid {
    display: grid;
    gap: 30px;
    margin-top: 50px;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-card,
.stat-card {
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: rgba(245, 247, 250, 0.9);
}

p {
    color: rgba(245, 247, 250, 0.7);
    line-height: 1.6;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(245, 247, 250, 0.7);
}

.info-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.info-card {
    padding: 50px 40px;
    border-radius: 35px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* --- MINECRAFT PAGE LAYOUT CORRETTO CON FLEXBOX --- */
.server-card,
.rules-card {
    text-align: center;
}

.server-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.server-version {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.server-version h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: rgba(245, 247, 250, 0.9);
}

.server-version p {
    font-size: 1rem;
    color: rgba(245, 247, 250, 0.7);
    margin-bottom: 15px;
}

.server-ip {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 20px;
    border: 3px dashed rgba(162, 155, 254, 0.5);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    word-wrap: break-word;
}

.server-ip:hover {
    transform: scale(1.05);
    border-color: rgba(255, 121, 198, 0.7);
}

.copy-btn {
    margin-top: 0;
    padding: 12px 25px;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rule-item {
    display: flex;
    text-align: left;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border-left: 4px solid;
    border-image: linear-gradient(135deg, #a29bfe, #ff79c6) 1;
}

.rule-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 30px;
}

/* Pulsanti e Footer */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary,
.copy-btn {
    background: linear-gradient(135deg, #6a75ca, #b448d4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: white;
}

.btn-primary:hover,
.copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.footer {
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-content {
    padding: 40px;
    border-radius: 25px;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 247, 250, 0.8);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    background: linear-gradient(135deg, #6a75ca, #b448d4);
    color: white;
}

.social-link svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

/* --- AGGIUNTE PER COERENZA E SPAZIATURA --- */

/* Aggiunge spazio sopra i pulsanti social nel footer */
.social-links {
    margin-top: 30px;
}

/* Stili per la navigazione nel footer */
.footer-nav {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-nav a {
    color: rgba(245, 247, 250, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-legal {
    margin-top: 30px;
    color: rgba(245, 247, 250, 0.6);
    font-size: 0.9rem;
}

.footer-legal p {
    margin: 5px 0;
}

.footer-legal a {
    color: rgba(245, 247, 250, 0.6);
}

/* Spaziatura coerente per i titoli e i paragrafi nelle card di contenuto */
.content-card h3 {
    margin-top: 30px;
}

.content-card h3:first-child {
    margin-top: 0;
}

.content-card p,
.content-card ul {
    margin-top: 15px;
}

.content-card ul {
    padding-left: 25px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 600px;
    padding: 25px;
    border-radius: 20px;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner p {
    margin: 0;
    color: rgba(245, 247, 250, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-accept {
    background: linear-gradient(135deg, #6a75ca, #b448d4);
    color: white;
}

/* --- STILI PER I BADGE DELLE CERTIFICAZIONI --- */

/* Griglia per contenere i badge in modo responsive */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    justify-items: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Link che contiene il badge */
.badge-link {
    display: inline-block;
}

/* Stile dell'immagine del badge */
.badge-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effetto hover: ingrandimento e ombra colorata */
.badge-link:hover .badge-image {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(162, 155, 254, 0.6);
}

/* --- STILI PER I TAG/PILLOLE NELLE CARD --- */

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-tag {
    background: rgba(162, 155, 254, 0.15);
    color: #c1bdfd;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(162, 155, 254, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin-top: 10px;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        border-radius: 20px;
        background: rgba(26, 26, 46, 0.85);
        /* Sfondo menu mobile più opaco e scuro */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    }

    .nav-menu.active {
        display: flex;
    }

    .navbar {
        width: 95%;
        padding: 12px 20px;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        padding-top: 100px;
        /* Spazio per evitare sovrapposizione con navbar */
        height: 100vh;
        /* Occupa tutta l'altezza dello schermo */
        display: flex;
        align-items: center;
    }

    .hero-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px 20px;
        /* Riduciamo il padding per sfruttare meglio lo spazio */
    }

    .content-card,
    .server-card,
    .rules-card {
        padding: 30px 20px;
        margin-left: 0;
        margin-right: 0;
    }

    .page-subtitle {
        max-width: 90%;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}