:root {
    --bg: #0a0a0a;
    --card: #141414;
    --border: #222;
    --text: #ffffff;
    --muted: #666;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.wrapper {
    width: 100%;
    max-width: 600px;
    padding: 60px 20px;
}

.main-header {
    margin-bottom: 50px;
}

.main-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.main-header h1 span {
    color: var(--muted);
}

.main-header p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.top-nav {
    margin-bottom: 20px;
}

.back-link {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* GRID SYSTEM */
.portal-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portal-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.portal-card:hover {
    border-color: #444;
    transform: translateY(-2px);
}

/* CATEGORY TAGS */
.category {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 8px;
    display: block;
}

.portal-card h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.portal-card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ACCENTI SOTTILI */
.portal-card.social:hover {
    border-left: 4px solid var(--accent-blue);
}

.portal-card.tools:hover {
    border-left: 4px solid var(--accent-green);
}

/* STATUS DOT PER PROGETTI */
.status-dot {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.disabled {
    opacity: 0.3;
    cursor: default;
}

.minimal-footer {
    margin-top: 80px;
    text-align: center;
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 3px;
}

.top-nav {
    margin-bottom: 25px;
}

.back-link {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: inline-block;
    transition: transform 0.2s, color 0.2s;
}

.back-link:hover {
    color: var(--text);
    transform: translateX(-5px);
    /* Effetto movimento verso sinistra */
}