/* ══════════════════════════════════════════════════════════════
   FOREST - RHAMA COLLECTION (Part 1)
   Variables, reset, nav, hero, grid, cards
   ══════════════════════════════════════════════════════════════ */

/* === VARIABLES === */
:root {
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-rhama: 'Lora', serif;
    
    --bg-core: #000000;
    --bg-card: #0A0A0A;
    --bg-hover: #111111;
    
    --text-primary: #FFFFFF;
    --text-secondary: #888888;
    --text-muted: #555555;
    --text-subtle: #333333;
    
    --border: rgba(255,255,255,0.08);
    --border-light: rgba(255,255,255,0.05);
    
    --in1-accent: #22C55E;
    --in1-glow: rgba(34, 197, 94, 0.15);
    
    --radius-card: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-core);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* === NAVIGATION - Ghost Portal === */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    pointer-events: none; /* Lascia cliccare attraverso la barra vuota */
}

/* Brand IN-1 a sinistra */
.nav-brand {
    font-family: var(--font-display);
    font-weight: 700;
    color: #333; /* Molto scuro, quasi spento */
    text-decoration: none;
    font-size: 14px;
    pointer-events: auto;
    transition: color 0.4s ease;
}

.nav-brand:hover {
    color: var(--text-primary);
}

/* --- FOREST (Centro - Identico a IN-1) --- */
.forest-portal {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    
    /* Identico a .nav-brand */
    font-family: var(--font-display);
    font-weight: 700;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    pointer-events: auto;
    transition: color 0.4s ease;
}

/* HOVER: Solo verde */
.forest-portal:hover {
    color: var(--in1-accent); /* Verde IN-1 */
}

/* === HERO === */
.hero {
    min-height: 100vh;
    padding: 120px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* === RHAMA GRID === */
.rhama-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 48px;
}

/* === RHAMA CARDS WITH BILINGUAL HOVER === */
.rhama-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 48px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    transition: all 0.3s ease;
    cursor: pointer; /* Changed: now clickable for mobile */
    position: relative;
    overflow: hidden;
}

/* Glow effect verde (come IN-1 card su BlackTrails) */
.rhama-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--in1-glow) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.rhama-card:hover::before,
.rhama-card.active::before {
    opacity: 1;
}

.rhama-card:hover,
.rhama-card.active {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
    /* NO transform, NO translateY - card stays still */
}
