/* RESET E VARIABILI */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e94560;
    --dark: #0a0a15;
    --dark-2: #16213e;
    --dark-3: #1a1a2e;
    --light: #f5f5f5;
    --gray: #8892b0;
    --accent: #0f3460;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(10, 10, 21, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(233, 69, 96, 0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--light);
    border-radius: 2px;
    transition: 0.3s;
}

/* HERO */
.hero {
    min-height: 85vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 4rem 5%;
    background: radial-gradient(circle at 70% 50%, rgba(233, 69, 96, 0.15), transparent 60%);
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #c73650;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(233, 69, 96, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
}

/* DASHBOARD MOCK */
.hero-visual {
    display: flex;
    justify-content: center;
}

.dashboard-mock {
    background: var(--dark-3);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(233, 69, 96, 0.3);
    box-shadow: 0 20px 60px rgba(233, 69, 96, 0.2);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.gauge {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.gauge-value {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 30px rgba(233, 69, 96, 0.6);
}

.gauge-label {
    color: var(--gray);
    letter-spacing: 3px;
    font-size: 0.9rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stats span {
    display: block;
    color: var(--gray);
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.stats strong {
    font-size: 1.3rem;
    color: var(--light);
}

/* FEATURES */
.features {
    padding: 5rem 5%;
    background: var(--dark-2);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--dark-3);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(233, 69, 96, 0.2);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--gray);
}

/* PAGE HEADER */
.page-header {
    padding: 4rem 5% 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--dark-2), var(--dark));
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.page-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.page-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* PRODUCTS */
.products {
    padding: 3rem 5% 5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--dark-3);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.product-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(233, 69, 96, 0.2);
}

.badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.product-img {
    height: 180px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.product-card > p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.specs-mini {
    list-style: none;
    margin-bottom: 1.5rem;
}

.specs-mini li {
    padding: 0.4rem 0;
    color: var(--gray);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.specs-mini li::before {
    content: '▸ ';
    color: var(--primary);
}

.product-card .btn {
    width: 100%;
    padding: 0.7rem;
}

/* SPECS TABLE */
.specs-section {
    padding: 3rem 5% 5rem;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 15px;
    background: var(--dark-3);
    padding: 1rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.specs-table th {
    background: var(--dark-2);
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}

.specs-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--light);
}

.specs-table tbody tr:hover {
    background: rgba(233, 69, 96, 0.05);
}

.specs-table .highlight {
    background: rgba(233, 69, 96, 0.1);
    color: var(--primary);
    font-weight: 700;
}

/* TECH FEATURES */
.tech-features {
    margin-top: 4rem;
}

.tech-features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.tech-card {
    background: var(--dark-3);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s;
}

.tech-card:hover {
    transform: translateX(5px);
}

.tech-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.tech-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* GALLERY */
.gallery-section {
    padding: 3rem 5%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
}

.gallery-item {
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    cursor: pointer;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.gallery-item:hover::before {
    background: rgba(0,0,0,0);
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

/* CTA */
.cta-section {
    padding: 5rem 5%;
    text-align: center;
    background: linear-gradient(135deg, var(--dark-2), var(--accent));
    margin: 3rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* CONTACT */
.contact-section {
    padding: 3rem 5% 5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.info-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.info-item strong {
    display: block;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--gray);
}

.contact-form {
    background: var(--dark-3);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--dark);
    color: var(--light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 1.2rem 5%;
    font-size: 0.9rem;
    color: var(--gray);
    background: var(--dark);
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--light); font-weight: 600; }

/* ===== PRODUCT HERO ===== */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 5% 4rem;
    align-items: center;
}

.product-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.product-hero-info h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.5rem 0;
}

.product-cat {
    display: inline-block;
    background: rgba(233, 69, 96, 0.15);
    color: var(--primary);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-tagline {
    color: var(--gray);
    font-size: 1.1rem;
    margin: 1rem 0 1.5rem;
    line-height: 1.7;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.product-price .price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
}

.product-price .price-note {
    color: var(--gray);
    font-size: 0.9rem;
}

.quick-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.2rem;
    background: var(--dark-3);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.quick-spec {
    text-align: center;
}

.quick-spec strong {
    display: block;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.quick-spec span {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== DASH MOCK LARGE (RT-700) ===== */
.dash-mock-large {
    width: 100%;
    max-width: 520px;
}

.dash-screen {
    background: #0a0a15;
    border-radius: 20px;
    padding: 1.5rem;
    border: 3px solid #222;
    box-shadow: 0 25px 70px rgba(233, 69, 96, 0.25), inset 0 0 40px rgba(233, 69, 96, 0.05);
    position: relative;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dash-shiftlights {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dash-shiftlights span {
    width: 14px;
    height: 8px;
    border-radius: 3px;
    background: #1a1a2e;
}

.dash-shiftlights span.on { background: #00e676; box-shadow: 0 0 10px #00e676; }
.dash-shiftlights span.red { background: #ff1744; box-shadow: 0 0 12px #ff1744; }

.dash-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.dash-tag {
    color: var(--gray);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.dash-rpm {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.dash-center {
    text-align: center;
    position: relative;
}

.dash-speed {
    font-size: 5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    text-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
}

.dash-unit {
    color: var(--gray);
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.dash-gear {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    font-weight: 900;
    color: #00e676;
    border: 2px solid #00e676;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.dash-bottom > div {
    text-align: center;
}

.dash-bottom span {
    display: block;
    color: var(--gray);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
}

.dash-bottom strong {
    font-size: 1rem;
    color: var(--light);
}

/* ===== GAUGE MOCK LARGE (RG-62) ===== */
.gauge-mock-large {
    position: relative;
    width: 320px;
    height: 320px;
}

.gauge-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #1a1a2e, #0a0a15 80%);
    border: 8px solid #222;
    box-shadow:
        0 30px 80px rgba(233, 69, 96, 0.3),
        inset 0 0 40px rgba(0,0,0,0.8),
        inset 0 0 0 3px rgba(233, 69, 96, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-inner {
    position: relative;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: #06060f;
    border: 2px solid rgba(233, 69, 96, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transform-origin: left center;
    transform: translateY(-50%) rotate(-30deg);
    box-shadow: 0 0 15px var(--primary);
    animation: needle 4s ease-in-out infinite;
}

@keyframes needle {
    0%, 100% { transform: translateY(-50%) rotate(-30deg); }
    50% { transform: translateY(-50%) rotate(45deg); }
}

.gauge-needle::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
}

.gauge-readout {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 60px;
}

.gauge-readout strong {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.6);
}

.gauge-readout span {
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-weight: 700;
}

.gauge-ticks span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--r)) translateY(-130px);
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 700;
}

.gauge-label-bottom {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gray);
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== PRODUCT TABS ===== */
.product-tabs {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--gray);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: inherit;
}

.tab-btn:hover { color: var(--light); }

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--light);
}

.tab-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ===== FEATURES LIST (tab) ===== */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background: var(--dark-3);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s;
}

.feature-item:hover { transform: translateX(5px); }

.feature-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== SPECS DETAIL TABLE ===== */
.specs-detail {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--dark-3);
    border-radius: 12px;
    overflow: hidden;
}

.specs-detail tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.specs-detail tr:last-child { border-bottom: none; }

.specs-detail td {
    padding: 1rem 1.5rem;
}

.specs-detail td:first-child {
    color: var(--gray);
    font-weight: 600;
    width: 40%;
}

.specs-detail td:last-child {
    color: var(--light);
    font-weight: 500;
}

.specs-detail tr:hover {
    background: rgba(233, 69, 96, 0.05);
}

/* ===== COMPAT GRID ===== */
.compat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.compat-card {
    background: var(--dark-3);
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.compat-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== PARAMS GRID ===== */
.params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.param-card {
    background: var(--dark-3);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.param-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.param-card strong {
    display: block;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.param-card span {
    color: var(--gray);
    font-size: 0.8rem;
}

/* ===== PRODUCT CTA ===== */
.product-cta {
    padding: 4rem 5%;
    text-align: center;
    background: linear-gradient(135deg, var(--dark-2), var(--accent));
    margin: 3rem 0 0;
}

.product-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-cta p {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .product-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-hero-info .quick-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-actions {
        justify-content: center;
    }

    .product-price {
        justify-content: center;
    }

    .gauge-mock-large {
        width: 260px;
        height: 260px;
    }

    .gauge-ticks span {
        transform: translate(-50%, -50%) rotate(var(--r)) translateY(-105px);
    }

    .gauge-needle {
        width: 70px;
    }
}

@media (max-width: 600px) {
    .dash-speed { font-size: 3.5rem; }
    .dash-gear { width: 48px; height: 48px; font-size: 1.8rem; }
    .dash-mock-large { max-width: 100%; }

    .specs-detail td {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .specs-detail td:first-child { width: 50%; }
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
    padding: 3rem 5% 5rem;
    max-width: 1300px;
    margin: 0 auto;
}

/* Toolbar */
.download-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.6;
    pointer-events: none;
}

.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chip {
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--gray);
    padding: 0.5rem 1.1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--light);
}

.chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Contatore risultati */
.results-count {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Grid download */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 1.2rem;
}

.download-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    background: var(--dark-3);
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
    position: relative;
}

.download-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.file-icon {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: white;
}

.file-icon.pdf {
    background: linear-gradient(135deg, #e94560, #c73650);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.file-icon.exe {
    background: linear-gradient(135deg, #0f3460, #16213e);
    box-shadow: 0 6px 20px rgba(15, 52, 96, 0.4);
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-cat {
    display: inline-block;
    background: rgba(233, 69, 96, 0.12);
    color: var(--primary);
    font-size: 0.7rem;
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.file-info h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--light);
}

.file-info p {
    color: var(--gray);
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--gray);
}

.file-meta span {
    white-space: nowrap;
}

.btn-download {
    flex-shrink: 0;
    align-self: center;
    background: var(--primary);
    color: white;
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-download:hover {
    background: #c73650;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.4);
}

/* No results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

/* Support CTA */
.support-cta {
    margin-top: 5rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--dark-2), var(--accent));
    border-radius: 20px;
    text-align: center;
}

.support-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.support-cta p {
    color: var(--gray);
    margin-bottom: 1.8rem;
}

/* ===== RESPONSIVE DOWNLOAD ===== */
@media (max-width: 900px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .download-card {
        flex-direction: column;
        align-items: stretch;
    }

    .file-icon {
        width: 48px;
        height: 48px;
    }

    .btn-download {
        text-align: center;
    }

    .file-meta {
        gap: 0.4rem;
    }
}