:root {
    --bg-main: #000000;
    --card-bg: #121318;
    --neon-blue: #00f0ff;
    --neon-purple: #d800ff;
    --neon-green: #00ff66;
    --text-white: #ffffff;
    --text-muted: #a0a0a0;
    --border-dark: #22222b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

/* Header & Navbar Navigazione Avanzata */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(8, 8, 8, 0.95);
    border-bottom: 2px solid var(--neon-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    position: relative;
    margin: 0 10px;
}

nav ul li a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 12px;
    display: block;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--neon-blue);
}

/* Dropdown Sub-menu */
nav ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0a0b0e;
    border: 1px solid var(--border-dark);
    border-top: 2px solid var(--neon-blue);
    border-radius: 0 0 8px 8px;
    min-width: 260px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.8);
    z-index: 1100;
}

nav ul li:hover .dropdown {
    display: block;
}

nav ul li .dropdown a {
    padding: 12px 16px;
    font-size: 0.92rem;
    border-bottom: 1px solid #1a1a24;
}

nav ul li .dropdown a:hover {
    background: #14161f;
    color: var(--neon-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.btn-shopify {
    background: transparent;
    border: 2px solid var(--neon-purple);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(216, 0, 255, 0.3);
    transition: all 0.3s;
}

.btn-shopify:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 20px rgba(216, 0, 255, 0.8);
}

/* Layout Containers & Cards */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 0 0 15px var(--neon-blue);
}

.hero-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.15);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #e0e0e0;
}

.form-control {
    width: 100%;
    padding: 14px;
    background: #000;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.form-control:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.btn-action {
    width: 100%;
    padding: 15px;
    background: var(--neon-blue);
    border: none;
    color: #000;
    font-weight: bold;
    font-size: 1.05rem;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
    transition: background 0.3s;
}

.btn-action:hover {
    background: #33f3ff;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--card-bg);
}

.table-custom th, .table-custom td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-dark);
}

.table-custom th {
    background: #080808;
    color: var(--neon-blue);
}

footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border-dark);
    margin-top: 60px;
    color: var(--text-muted);
}
/* Blocco definitivo dello scroll orizzontale su mobile */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}