/* ==========================================================
   ALTARIS RP — Luxury Minimal
   Clean, tight sections, no gaps, no scroll-snap, no overflow-hidden
   ========================================================== */

/* --- Reset & Variables --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #c9a227;
    --accent-dim: rgba(201, 162, 39, 0.15);
    --text: #e0dcd2;
    --text-dim: #7a756a;
    --text-muted: #3d3a34;
    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) #050508;
}

body {
    font-family: var(--font-body);
    background: #050508;
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050508; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

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

.accent { color: var(--accent); }

/* --- Shared Section --- */
.section {
    position: relative;
    padding: 100px 0;
}

.label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
}

.desc {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 540px;
    line-height: 1.7;
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 22px 0;
    transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
    padding: 12px 0;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 36px;
    mix-blend-mode: lighten;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
}

.nav-menu a {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #fff;
}

.nav-cta {
    color: var(--accent) !important;
    border: 1px solid rgba(201, 162, 39, 0.3);
    padding: 8px 20px;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.nav-cta:hover {
    background: var(--accent);
    color: #050508 !important;
    border-color: var(--accent);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050508;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    will-change: transform;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
    border: 1px solid rgba(201, 162, 39, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-logo {
    width: 120px;
    margin: 0 auto 28px;
    mix-blend-mode: lighten;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    color: #fff;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: #050508;
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.25);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    background: transparent;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.btn-large {
    padding: 18px 48px;
    font-size: 0.85rem;
}

/* ==========================================================
   MARQUEE
   ========================================================== */
.marquee {
    background: rgba(201, 162, 39, 0.04);
    border-top: 1px solid rgba(201, 162, 39, 0.08);
    border-bottom: 1px solid rgba(201, 162, 39, 0.08);
    padding: 14px 0;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-right: 16px;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================
   CHI SIAMO
   ========================================================== */
.section-about {
    background: #080810;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-left {
    display: flex;
    flex-direction: column;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s ease;
}

.about-card:hover {
    border-color: rgba(201, 162, 39, 0.15);
    transform: translateY(-3px);
}

.about-num {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.about-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 8px;
}

.about-card p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ==========================================================
   FEATURES
   ========================================================== */
.section-features {
    background: #060610;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 36px 28px;
    transition: border-color 0.3s, transform 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(201, 162, 39, 0.15);
    transform: translateY(-4px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ==========================================================
   SHOP
   ========================================================== */
.section-shop {
    background: #050508;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.shop-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s ease;
}

.shop-card:hover {
    border-color: rgba(201, 162, 39, 0.15);
    transform: translateY(-4px);
}

.shop-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--accent);
}

.shop-icon svg {
    width: 100%;
    height: 100%;
}

.shop-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 8px;
}

.shop-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 16px;
}

.shop-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(201, 162, 39, 0.2);
    padding: 5px 14px;
    border-radius: 50px;
}

.shop-tebex {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 32px;
}

/* ==========================================================
   DONAZIONI
   ========================================================== */
.section-donate {
    background: #0a0a12;
}

.donate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.donate-left {
    display: flex;
    flex-direction: column;
}

.perks-list {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.perks-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text);
}

.perk-check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent);
}

.donate-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 162, 39, 0.1);
    border-radius: 12px;
    padding: 48px 36px;
    text-align: center;
}

.donate-heart {
    width: 52px;
    height: 52px;
    color: var(--accent);
    margin: 0 auto 24px;
}

.donate-box h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 12px;
}

.donate-box p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 24px;
    line-height: 1.6;
}

.donate-box .btn {
    margin-bottom: 16px;
}

.donate-note {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================
   TEAM
   ========================================================== */
.section-team {
    background: #070710;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.team-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s ease;
}

.team-card:hover {
    border-color: rgba(201, 162, 39, 0.15);
    transform: translateY(-4px);
}

.team-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 18px;
    color: var(--accent);
}

.team-icon svg {
    width: 100%;
    height: 100%;
}

.team-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 8px;
}

.team-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.team-cta {
    text-align: center;
    margin-top: 40px;
}

.team-cta p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 16px;
}

/* ==========================================================
   FIVEM BANNER
   ========================================================== */
.section-banner {
    padding: 0;
    background: #070710;
}

.banner-wrap {
    position: relative;
    width: 100%;
}

.banner-img {
    width: 100%;
    display: block;
}

.banner-fade {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
}

.banner-fade-top {
    top: 0;
    background: linear-gradient(to bottom, #070710, transparent);
}

.banner-fade-bottom {
    bottom: 0;
    background: linear-gradient(to top, #050508, transparent);
}

/* ==========================================================
   FINAL CTA
   ========================================================== */
.section-cta {
    background: #050508;
    text-align: center;
    padding: 100px 0 80px;
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin-bottom: 56px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 8px;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
}

.cta-headline {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 40px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
    background: #030306;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 48px 0 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-logo img {
    height: 32px;
    mix-blend-mode: lighten;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text);
}

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

.footer-bottom p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==========================================================
   FADE-UP REVEAL ANIMATION
   ========================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 72px 0;
    }

    /* Nav mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(5, 5, 8, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 40px;
        transition: right 0.4s ease;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu a {
        font-size: 0.85rem;
    }

    /* Hero */
    .hero-title {
        font-size: clamp(2.8rem, 12vw, 4.5rem);
    }

    .hero-logo {
        width: 90px;
    }

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

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Shop */
    .shop-grid {
        grid-template-columns: 1fr;
    }

    /* Donate */
    .donate-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .stats-row {
        gap: 24px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-divider {
        height: 32px;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
