@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: #2d1a13 url('https://vanillajplus.it/img/Background%20sito.png') no-repeat fixed 50% 50%/cover;
    color: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: #b32d1c;
    box-shadow: 0 4px 18px 0 rgba(0,0,0,0.5);
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    height: 73px;
    animation: fadeInDown 0.7s;
}
.navbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5%;
    padding: 0 28px;
}
.navbar nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar nav ul li a {
    padding: 14px 24px;
    font-weight: 700;
    color: #fff;
    font-size: 22px;
    border-radius: 9px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.navbar nav ul li a.active,
.navbar nav ul li a:hover {
    background: #e94d1a;
    color: #ffb13b;
    transform: scale(1.07);
}

/* Navbar mobile toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2em;
    margin-right: 18px;
    cursor: pointer;
    z-index: 1100;
}
@media (max-width: 900px) {
    .navbar-inner {
        justify-content: flex-start;
        gap: 0;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar nav {
        position: absolute;
        top: 73px;
        left: 0;
        width: 100vw;
        background: #b32d1c;
        box-shadow: 0 4px 18px 0 rgba(0,0,0,0.5);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        z-index: 1001;
        animation: fadeInDown 0.3s;
    }
    .navbar nav.open,
    .navbar nav#main-nav.open {
        display: flex;
    }
    .navbar nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .navbar nav ul li {
        width: 100%;
    }
    .navbar nav ul li a {
        width: 100%;
        display: block;
        padding: 18px 28px;
        font-size: 1.2em;
        border-radius: 0;
        border-bottom: 1px solid #e94d1a33;
    }
}

/* Hero Section (index.html) */
.hero-section {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 0 0 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}
.hero-logo {
    max-width: 300px;
    width: 100%;
    margin: 0 auto 2rem;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    animation: popIn 0.7s;
}
.hero-title {
    font-size: 72px;
    margin-bottom: 28px;
    font-weight: 900;
    text-shadow: 2px 2px 4px #b32d1c99;
    line-height: 1.1;
    color: #ffb13b;
    animation: fadeInDown 1s;
}
.hero-desc {
    font-size: 28px;
    margin-bottom: 46px;
    opacity: 0.9;
    font-weight: 500;
    color: #fff;
    animation: fadeIn 1.2s;
}
.ip-box {
    background: rgba(179,45,28,0.9);
    padding: 36px 54px;
    display: inline-block;
    border-radius: 27px;
    font-size: 27px;
    margin-bottom: 46px;
    backdrop-filter: blur(10px);
    border: 2px solid #ffb13b55;
    box-shadow: 0 9px 36px 0 #b32d1c44;
    transition: 0.3s;
    max-width: 900px;
    overflow-wrap: break-word;
    animation: fadeInUp 1.2s;
}
.ip-label {
    font-weight: 700;
    color: #ffb13b;
}
.ip-copy-btn {
    margin-left: 18px;
    background: #ffb13b;
    border: none;
    padding: 14px 23px;
    color: #b32d1c;
    font-weight: 700;
    cursor: pointer;
    border-radius: 9px;
    transition: 0.2s;
    font-size: 20px;
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ip-copy-btn:hover {
    background: #e94d1a;
    color: #fff;
}
.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 72px;
    margin-top: 46px;
    flex-wrap: wrap;
    width: 100%;
}
.stat-card {
    text-align: center;
    background: rgba(179,45,28,0.9);
    padding: 36px 45px;
    border-radius: 27px;
    backdrop-filter: blur(10px);
    border: 2px solid #ffb13b55;
    min-width: 180px;
    flex: 1 1 0%;
    max-width: 300px;
    box-shadow: 0 9px 36px 0 #b32d1c44;
    margin: 0;
    animation: fadeInUp 1.3s;
}
.stat-number {
    display: block;
    font-size: 54px;
    color: #ffb13b;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 0 18px #b32d1c77;
}
.stat-label {
    font-size: 22px;
    opacity: 0.9;
    color: #fff;
    font-weight: 600;
}

/* Store */
.sidebar {
    background: rgba(44, 18, 13, 0.97);
    border-radius: 16px;
    padding: 36px;
    position: sticky;
    top: 108px;
    border: 1px solid #b32d1c44;
    margin-bottom: 2rem;
    min-width: 260px;
    animation: fadeInLeft 1s;
}
.sidebar-title {
    font-size: 26px;
    color: #ffb13b;
    font-weight: 800;
    text-align: center;
    border-bottom: 2px solid #e94d1a;
    padding-bottom: 18px;
    margin-bottom: 28px;
    letter-spacing: 1px;
}
.main-content {
    background: rgba(44, 18, 13, 0.97);
    border-radius: 16px;
    padding: 36px;
    border: 1px solid #b32d1c44;
    margin-bottom: 2rem;
    flex: 1;
    animation: fadeIn 1.2s;
}
.main-title {
    font-size: 48px;
    color: #ffb13b;
    font-weight: 900;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px #b32d1c77;
    animation: popIn 0.7s;
}
.main-desc {
    color: #fff;
    font-size: 20px;
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.85;
}
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 54px;
}
.store-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e94d1a33;
    box-shadow: 0 8px 32px 0 #b32d1c22;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeInUp 1s;
}
.store-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 40px 0 #e94d1a55;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s;
}
.modal-content {
    background: #2d1a13;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    border: 2px solid #e94d1a;
    box-shadow: 0 20px 60px 0 #000a, 0 0 40px 0 #e94d1a55;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: popIn 0.5s;
}
.modal-header {
    background: linear-gradient(135deg, #b32d1c, #e94d1a);
    padding: 45px 45px 36px;
    position: relative;
}
.modal-header h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 10px #000a;
}
.modal-close {
    position: absolute;
    top: 27px;
    right: 27px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    transition: background 0.2s;
}
.modal-close:hover {
    background: #e94d1a;
}
.modal-body {
    padding: 45px;
    background: #2d1a13;
    flex: 1 1 0%;
    overflow-y: auto;
}
.modal-footer {
    background: #2d1a13;
    border-top: 1px solid #e94d1a55;
    padding: 36px 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-price {
    font-size: 28px;
    color: #ffb13b;
    font-weight: 800;
}
.modal-buy {
    background: linear-gradient(135deg, #ffb13b, #e94d1a);
    color: #2d1a13;
    border: none;
    padding: 18px 45px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.modal-buy:hover {
    background: #b32d1c;
    color: #fff;
}

/* Tutorial Bedrock */
.tutorial-section {
    background: rgba(0, 0, 0, 0.7);
    padding: 54px;
    border-radius: 27px;
    margin-bottom: 46px;
    border: 2px solid #e94d1a55;
    box-shadow: 0 18px 54px 0 #b32d1c33;
    animation: fadeInUp 1.2s;
}
.tutorial-section h2,
.tutorial-section h3 {
    color: #e94d1a;
    margin-top: 36px;
    margin-bottom: 18px;
    font-weight: 700;
}
.tutorial-section ul {
    margin-left: 36px;
    margin-bottom: 27px;
    list-style-type: disc;
}
.tutorial-section li {
    margin-bottom: 12px;
    font-size: 18px;
}
.tutorial-img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    margin: 2rem auto 2.5rem;
    display: block;
    box-shadow: 0 0 27px 0 #b32d1c44, 0 18px 54px 0 #0003;
    border: 2px solid #e94d1a33;
    transition: 0.3s;
}
.other-tutorials-title {
    text-align: center;
    font-size: 36px;
    margin-top: 4rem;
    margin-bottom: 28px;
    font-weight: 700;
    color: #ffb13b;
}
.other-tutorials-desc {
    text-align: center;
    color: #e94d1a;
    font-weight: 600;
    margin-bottom: 36px;
    font-size: 22px;
}
.other-tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 36px;
    margin-top: 46px;
}
.other-tutorial-card {
    background: rgba(0, 0, 0, 0.6);
    padding: 36px;
    border-radius: 27px;
    color: #fff;
    border: 2px solid #e94d1a22;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
    min-height: 200px;
    animation: fadeInUp 1.3s;
}
.other-tutorial-card h3 {
    margin-bottom: 18px;
    color: #ffb13b;
    font-size: 25px;
    font-weight: 700;
}
.other-tutorial-card p {
    opacity: 0.9;
    font-size: 18px;
    color: #fff;
}
.help-section {
    text-align: center;
    margin-top: 54px;
    padding: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
}
.help-section h3 {
    color: #ffb13b;
    margin-bottom: 18px;
    font-size: 29px;
    font-weight: 700;
}
.help-section p {
    opacity: 0.9;
    margin-bottom: 27px;
    font-size: 22px;
    color: #fff;
}
.help-links {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}
.help-link {
    padding: 14px 28px;
    background: #e94d1a;
    color: #fff;
    text-decoration: none;
    border-radius: 9px;
    font-weight: 700;
    transition: 0.2s;
    font-size: 22px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.help-link:hover {
    background: #ffb13b;
    color: #b32d1c;
}

/* Staff */
.staff-content {
    max-width: 1400px;
    padding: 0 36px;
    width: 100%;
    margin: 100px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.staff-title {
    font-size: 48px;
    color: #ffb13b;
    font-weight: 900;
    text-align: center;
    margin: 2rem 0 1rem 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px #b32d1c77;
}
.staff-section-title {
    font-size: 32px;
    padding: 18px 36px;
    margin-top: 46px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #b32d1c, #e94d1a);
    color: #fff;
    text-align: center;
    font-weight: 700;
    border-radius: 18px;
    box-shadow: 0 10px 36px 0 #b32d1c44;
    letter-spacing: 1px;
}
.staff-row {
    justify-content: center;
    gap: 27px;
    padding: 36px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.0);
    border-radius: 45px;
    margin: 1rem auto 2rem auto;
    max-width: 1200px;
    text-align: center;
}
.staff-card {
    background: rgba(0, 0, 0, 0.7);
    border-color: #e94d1a33;
    width: 180px;
    min-height: 200px;
    padding: 27px 22px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 10px 27px 0 #b32d1c44;
    transition: 0.3s;
    border: 1px solid #e94d1a33;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto;
}
.staff-avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto 0.8rem;
    display: block;
    border-radius: 50%;
    border: 3px solid #ffb13b99;
    object-fit: cover;
    box-shadow: 0 7px 22px 0 #b32d1c44;
}
.staff-name {
    font-size: 18px;
    text-align: center;
    width: 100%;
    margin: 0;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0.4px;
    color: #ffb13b;
    text-shadow: 0 0 18px #b32d1c77;
}

/* Regole */
.main-content {
    max-width: 900px;
    width: 100%;
    margin: 100px auto 3rem auto;
    padding: 0 36px;
    animation: fadeIn 1s;
}

/* Footer */
.footer {
    background: #1a0d09;
    padding: 14px 0;
    text-align: center;
    color: #b32d1c;
    font-size: 18px;
    margin-top: auto;
    letter-spacing: 1px;
}

/* Rendi le immagini e i contenitori flessibili */
img, video {
    max-width: 100%;
    height: auto;
}

.container, .content, .main, .header, .footer {
    width: 100%;
    box-sizing: border-box;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity:0; transform:translateY(-40px);}
    to {opacity:1; transform:none;}
}
@keyframes fadeInLeft {
    from { opacity:0; transform:translateX(-40px);}
    to {opacity:1; transform:none;}
}
@keyframes fadeInUp {
    from { opacity:0; transform:translateY(40px);}
    to {opacity:1; transform:none;}
}
@keyframes fadeIn {
    from { opacity:0; }
    to { opacity:1; }
}
@keyframes popIn {
    0% {transform:scale(0.8); opacity:0;}
    100% {transform:scale(1); opacity:1;}
}

/* Esempio di media query per schermi piccoli */
@media (max-width: 600px) {
    body {
        font-size: 1rem;
        padding: 0 5px;
    }
    .navbar, .menu, .header, .footer {
        flex-direction: column;
        align-items: stretch;
    }
    .container, .content, .main {
        padding: 0;
        margin: 0;
    }
    /* ...aggiungi altre regole specifiche per mobile se necessario... */
}

/* Responsive hero section */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.2em;
    }
    .hero-desc {
        font-size: 1.1em;
    }
    .ip-box {
        font-size: 1.1em;
        padding: 18px 10px;
    }
    .hero-logo {
        max-width: 180px;
    }
}

/* Responsive main-content and sections */
@media (max-width: 900px) {
    .main-content,
    .tutorial-section,
    .sidebar {
        padding: 18px 8px;
    }
    .main-title {
        font-size: 2em;
    }
    .staff-title {
        font-size: 2em;
    }
    .staff-section-title {
        font-size: 1.2em;
        padding: 10px 8px;
    }
    .staff-row {
        padding: 10px 0;
        gap: 10px;
    }
    .staff-card {
        width: 100%;
        min-width: 0;
        max-width: 300px;
        margin-bottom: 18px;
    }
}

/* Responsive images */
img, video, .tutorial-img {
    max-width: 100%;
    height: auto;
}

/* Responsive footer */
@media (max-width: 900px) {
    .footer {
        font-size: 1em;
        padding: 10px 0;
    }
}

/* Responsive modal */
@media (max-width: 600px) {
    .modal-content, .main-content, .sidebar, .tutorial-section {
        max-width: 98vw !important;
        padding: 10px !important;
    }
    .modal-header, .modal-body, .modal-footer {
        padding: 18px !important;
    }
}
