/* NumaNeon - Foglio di Stile Principale */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700;900&display=swap');

/* --- VARIABILI DESIGN SYSTEM --- */
:root {
    --bg-primary: #060b13;
    --bg-secondary: #0c1523;
    --bg-card: #132135;
    
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-light: #ffffff;
    
    /* Colore Brand e Neon Principale */
    --brand-primary: #083D76;
    --brand-primary-glow: rgba(8, 61, 118, 0.5);
    
    /* Neon Colors */
    --neon-pink: #083D76; /* Sostituito con Brand Blue per compatibilità */
    --neon-pink-glow: rgba(8, 61, 118, 0.4);
    --neon-blue: #00a8cc;
    --neon-blue-glow: rgba(0, 168, 204, 0.5);
    --neon-purple: #00f0ff;
    --neon-purple-glow: rgba(0, 240, 255, 0.4);
    --neon-green: #10b981;
    --neon-green-glow: rgba(16, 185, 129, 0.4);
    --neon-yellow: #ff9f1c;
    --neon-yellow-glow: rgba(255, 159, 28, 0.4);
    --neon-orange: #ff5e00;
    --neon-orange-glow: rgba(255, 94, 0, 0.4);
    --neon-red: #ef4444;
    --neon-red-glow: rgba(239, 68, 68, 0.4);
    --neon-white: #ffffff;
    --neon-white-glow: rgba(255, 255, 255, 0.4);

    /* UI Colors */
    --color-success: #10b981;
    --color-warning: #ff9f1c;
    --color-error: #ef4444;
    
    --border-color: #1e2e48;
    --border-hover: #2e4466;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* --- RESET & STILI BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* --- GLOW EFFECTS --- */
.glow-pink {
    text-shadow: 0 0 5px var(--neon-pink-glow), 0 0 15px var(--neon-pink);
}
.glow-blue {
    text-shadow: 0 0 5px var(--neon-blue-glow), 0 0 15px var(--neon-blue);
}
.glow-purple {
    text-shadow: 0 0 5px var(--neon-purple-glow), 0 0 15px var(--neon-purple);
}

.border-glow-pink {
    box-shadow: 0 0 5px var(--neon-pink-glow), inset 0 0 5px var(--neon-pink-glow);
    border: 1px solid var(--neon-pink);
}
.border-glow-blue {
    box-shadow: 0 0 5px var(--neon-blue-glow), inset 0 0 5px var(--neon-blue-glow);
    border: 1px solid var(--neon-blue);
}

/* --- CONTAINER & LAYOUT --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--neon-pink);
    color: var(--text-light);
    box-shadow: 0 0 15px var(--neon-pink-glow);
}

.btn-primary:hover {
    background: #e60072;
    box-shadow: 0 0 25px var(--neon-pink);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--text-light);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-secondary:hover {
    background: var(--neon-blue);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--neon-blue);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--border-hover);
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
    background: var(--color-error);
    color: var(--text-light);
}
.btn-danger:hover {
    background: #d32f2f;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* --- HEADER & NAVIGATION (3 BANDE) --- */
header {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Banda 1: Top Bar Promozionale */
.header-topbar {
    background: #00a896; /* Turchese elegante */
    color: #ffffff;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    padding: 0 16px;
}

/* Banda 2: Main Bar (Sfondo Grigio Chiaro) */
.header-mainbar {
    background: #f8fafc; /* Grigio chiaro pulito ed elegante */
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
}

.header-mainbar-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
}

/* Form Ricerca */
.header-search-form {
    justify-self: center;
    width: 100%;
    max-width: 850px;
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-input {
    width: 100%;
    background: #ffffff;
    color: #0f172a;
    padding: 10px 48px 10px 20px;
    border-radius: 50px;
    border: 1px solid #cbd5e1; /* Bordo grigio chiaro per contrasto */
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.header-search-input::placeholder {
    color: #64748b;
}

.header-search-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 8px rgba(8, 61, 120, 0.15);
}

.header-search-btn {
    position: absolute;
    right: 4px;
    width: 32px;
    height: 32px;
    background: var(--brand-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.header-search-btn:hover {
    background: #0b519c; /* Blu più luminoso e coerente con il brand */
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(11, 81, 156, 0.3);
}

/* Contenitore Azioni Destra */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px; /* Spazio ridotto tra i blocchi */
    justify-self: end;
}

/* Info Box Assistenza (Testi Scuri per Sfondo Chiaro) */
.header-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.header-info-box i {
    font-size: 1.65rem;
    color: var(--brand-primary); /* Blu brand su chiaro */
}

.header-info-details {
    display: flex;
    flex-direction: column;
    gap: 2px; /* Spazio tra i due numeri di telefono */
}

.header-info-val {
    font-weight: 700;
    color: #64748b; /* Grigio più chiaro elegante */
    line-height: 1.2; /* Avvicina verticalmente i due numeri */
}

/* Box Carrello Esteso (Testi Scuri) */
.header-cart-box {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid #e2e8f0;
    padding-left: 12px; /* Ridotto lo spazio a sinistra */
}

.header-cart-icon-btn {
    position: relative;
    font-size: 1.65rem;
    color: var(--brand-primary); /* Icona del colore blu brand */
    transition: var(--transition-fast);
    padding: 4px;
}

.header-cart-icon-btn:hover {
    color: #0b519c; /* Hover blu più chiaro */
}

.header-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--brand-primary); /* Sfondo blu brand */
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(8, 61, 118, 0.4);
}

.header-cart-details {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    gap: 1px; /* Ridotto lo spazio interno */
}

.header-cart-price {
    font-weight: 700;
    color: #64748b; /* Grigio più chiaro elegante */
    font-family: 'Outfit', sans-serif;
    line-height: 1.1; /* Ridotto per avvicinare alla riga successiva */
}

.header-cart-qty {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.1; /* Ridotto per avvicinare alla riga precedente */
}

/* Banda 3: Nav Bar (Menu) */
.header-navbar {
    background: var(--brand-primary);
    height: 50px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Barra di ricerca mobile dentro il menu (nascosta su desktop) */
.mobile-search-item {
    display: none;
}

/* Classi utility per menu responsive */
.mobile-nav-text {
    display: none;
}
.desktop-nav-text {
    display: inline;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center; /* Centra il menu */
    list-style: none;
    gap: 28px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 6px; /* Ridotto il margine tra la linea e la voce del menu */
    left: 0;
    width: 0;
    height: 3px;
    background: #ffffff; /* Colore bianco */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.5); /* Effetto neon bianco */
    transition: var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem; /* Ingrandito per maggiore impatto visivo */
    font-weight: 900;
    color: var(--brand-primary); /* Colore primario brand #083D76 */
    text-transform: uppercase; /* Scritta in maiuscolo */
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
    justify-self: start;
}

.logo span {
    color: var(--neon-blue); /* Seconda parola con azzurro neon */
}

.logo-glow {
    text-shadow: 0 0 3px rgba(8, 61, 118, 0.2), 0 0 10px rgba(0, 168, 204, 0.4);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    background-color: #1e293b; /* Grigio antracite ardesia, decisamente più chiaro del nero */
    border-bottom: 1px solid var(--border-color);
}

/* --- HERO PUZZLE GALLERY --- */
.hero-puzzle {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 580px; /* Ingrandito da 500px per rendere le immagini più grandi */
    position: relative;
    margin: 0 auto;
}

.puzzle-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.puzzle-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.puzzle-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Effetti di Hover con rotazione asimmetrica 3D e bagliore neon coordinato */
.puzzle-item-1:hover {
    transform: translateY(-10px) rotate(-1.5deg) scale(1.04);
    border-color: #ff007f;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 0, 127, 0.6);
}

.puzzle-item-2:hover {
    transform: translateY(-10px) rotate(2deg) scale(1.04);
    border-color: var(--neon-blue);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 168, 204, 0.6);
}

.puzzle-item-3:hover {
    transform: translateY(-10px) rotate(-2deg) scale(1.04);
    border-color: #a855f7;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.6);
}

.puzzle-item-4:hover {
    transform: translateY(-10px) rotate(1.5deg) scale(1.04);
    border-color: #10b981;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.6);
}

.puzzle-item:hover img {
    transform: scale(1.08);
}

/* Dimensioni ingrandite e posizionamento asimmetrico */
.puzzle-item-1 {
    height: 220px; /* Ingrandito da 180px */
}

.puzzle-item-2 {
    height: 280px; /* Ingrandito da 240px */
}

.puzzle-item-3 {
    height: 260px; /* Ingrandito da 220px */
}

.puzzle-item-4 {
    height: 200px; /* Ingrandito da 160px */
}

.hero-glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

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

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 900;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

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

.hero-buttons .btn-primary {
    background: var(--brand-primary);
    color: var(--text-light);
    border: 2px solid var(--brand-primary);
    box-shadow: 0 4px 15px rgba(8, 61, 118, 0.4);
}

.hero-buttons .btn-primary:hover {
    background: transparent;
    color: var(--text-light);
    box-shadow: none;
    transform: translateY(-2px);
}

.hero-buttons .btn-secondary {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--text-light);
    box-shadow: none;
}

.hero-buttons .btn-secondary:hover {
    background: var(--brand-primary);
    color: var(--text-light);
    box-shadow: 0 6px 20px rgba(8, 61, 118, 0.4);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-neon-box {
    border: 3px solid var(--neon-pink);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: 0 0 20px var(--neon-pink-glow), inset 0 0 15px var(--neon-pink-glow);
    text-align: center;
    background: rgba(15, 18, 25, 0.5);
    backdrop-filter: blur(8px);
    animation: neonPulse 3s infinite alternate;
}

.hero-neon-box h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.hero-neon-box p {
    font-size: 1.2rem;
    color: var(--neon-blue);
    font-weight: 600;
    text-shadow: 0 0 5px var(--neon-blue-glow);
}

@keyframes neonPulse {
    0% {
        box-shadow: 0 0 15px var(--neon-pink-glow), inset 0 0 10px var(--neon-pink-glow);
    }
    100% {
        box-shadow: 0 0 30px var(--neon-pink), inset 0 0 20px var(--neon-pink);
    }
}

/* --- SECTION GENERALS --- */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--neon-pink);
    box-shadow: 0 0 8px var(--neon-pink);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- CATEGORIES CARDS --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    z-index: 1;
    transition: var(--transition-normal);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 6, 8, 0.9) 85%);
    z-index: 2;
}

.category-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.5;
    transition: var(--transition-slow);
}

.category-card-content {
    position: relative;
    z-index: 3;
}

.category-card h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    transition: var(--transition-fast);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

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

.category-card:hover .category-img {
    transform: scale(1.05);
    opacity: 0.7;
}

.category-card:hover h3 {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue-glow);
}

/* --- PRODUCTS GRID & CARDS --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-img-wrapper {
    aspect-ratio: 1;
    width: 100%;
    background: #0d1117;
    position: relative;
    overflow: hidden;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--neon-blue);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--neon-blue-glow);
    text-transform: uppercase;
}

.product-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.product-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
}

.product-card:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.2);
    transform: translateY(-4px);
}

.product-card:hover .product-card-img {
    transform: scale(1.05);
}

.product-card:hover h3 {
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--neon-pink-glow);
}

/* --- PRODUCT DETAIL PAGE --- */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-box {
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
}

.thumbnail-box {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.thumbnail-box.active,
.thumbnail-box:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 8px var(--neon-pink-glow);
}

.thumbnail-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.product-info-price {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink-glow);
    margin-bottom: 24px;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.product-config-option {
    margin-bottom: 24px;
}

.product-config-option label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.size-option {
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
    background: var(--bg-card);
}

.size-option:hover {
    border-color: var(--border-hover);
    color: var(--text-light);
}

.size-option.active {
    border-color: var(--neon-blue);
    color: var(--text-light);
    box-shadow: 0 0 10px var(--neon-blue-glow);
}

.quantity-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    height: 48px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 100%;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.qty-btn:hover {
    background: var(--border-hover);
    color: var(--text-light);
}

.qty-input {
    width: 50px;
    height: 100%;
    text-align: center;
    font-weight: 600;
    background: transparent;
}

/* Remove spin buttons from number input */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input[type=number] {
    -moz-appearance: textfield;
}

/* --- SHOPPING CART PAGE --- */
.cart-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 48px;
    margin-top: 40px;
}

.cart-table-container {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    overflow: hidden;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: rgba(5, 6, 8, 0.4);
    padding: 16px 24px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.cart-table td {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #000;
}

.cart-item-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cart-item-remove {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.cart-item-remove:hover {
    color: var(--color-error);
}

.cart-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    height: fit-content;
}

.cart-summary-card h3 {
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.summary-row.total {
    border-bottom: none;
    padding-top: 24px;
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 700;
}

.summary-row.total span:last-child {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink-glow);
}

/* --- FORMS & CHECKOUT --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

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

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    margin-top: 40px;
}

.checkout-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
}

.checkout-box h3 {
    margin-bottom: 24px;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.payment-options {
    margin-top: 24px;
}

.payment-option {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.payment-option:hover {
    border-color: var(--border-hover);
}

.payment-option.active {
    border-color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.03);
}

.payment-option input[type="radio"] {
    accent-color: var(--neon-blue);
    width: 18px;
    height: 18px;
}

.payment-option-details {
    display: flex;
    flex-direction: column;
}

.payment-option-details span:first-child {
    font-weight: 600;
    color: var(--text-light);
}

.payment-option-details span:last-child {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- CONFERMA / TY PAGE --- */
.thank-you-box {
    max-width: 650px;
    margin: 60px auto;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 60px 40px;
}

.thank-you-icon {
    font-size: 4rem;
    color: var(--neon-blue);
    text-shadow: 0 0 15px var(--neon-blue-glow);
    margin-bottom: 24px;
}

.thank-you-box h1 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.thank-you-box p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.order-details-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.order-details-card h4 {
    margin-bottom: 16px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.bank-info-box {
    background: rgba(0, 240, 255, 0.03);
    border: 1px dashed var(--neon-blue);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: left;
    margin-top: 24px;
}

.bank-info-title {
    font-weight: 700;
    color: var(--neon-blue);
    margin-bottom: 12px;
}

.bank-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.bank-info-row span:first-child {
    color: var(--text-secondary);
}

.bank-info-row span:last-child {
    font-weight: 600;
    color: var(--text-light);
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-item-icon {
    font-size: 1.5rem;
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--neon-pink-glow);
}

.contact-item h4 {
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
}

.alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-weight: 500;
}
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

/* --- FOOTER --- */
footer {
    background: var(--brand-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 0 30px;
    color: rgba(255, 255, 255, 0.75);
}

footer .logo {
    color: var(--text-light);
}

footer .logo span {
    color: var(--neon-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 4px;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
}

.footer-contact-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
}

.footer-contact-list i {
    color: var(--neon-blue) !important; /* Forza il colore azzurro neon visibile su blu brand */
    margin-top: 4px;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition-fast);
}

.footer-contact-list a:hover {
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: var(--neon-blue);
    text-decoration: underline;
    transition: var(--transition-fast);
}

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

/* --- MEDIA QUERIES (RESPONSIVE) --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .product-detail-grid,
    .cart-grid,
    .checkout-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Nuove regole per header a 3 bande su Mobile */
    .header-topbar {
        display: flex; /* Mantiene la barra promozionale visibile */
        height: 36px;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem; /* Testo leggermente più piccolo per mobile */
        padding: 0 10px;
    }
    
    .header-navbar {
        display: block; /* Mantenuto visibile come contenitore per consentire l'apertura del menu fixed nav-links */
        height: 0;
        background: transparent;
        border: none;
    }
    
    .header-navbar-container {
        display: block;
        height: 0;
        padding: 0;
    }
    
    .header-info-box {
        display: none; /* Nasconde l'assistenza telefonica su mobile */
    }
    
    .header-mainbar-container {
        display: flex; /* Ripristina flex su mobile */
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px; /* Aggiunto padding laterale per non tagliare il logo */
    }
    
    .header-search-form {
        display: none; /* Nasconde la barra di ricerca principale su mobile */
    }
    
    .logo {
        font-size: 1.95rem; /* Logo ancora più grande su mobile */
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 2;
        font-size: 1.65rem; /* Ingrandito per essere uguale al carrello */
        color: var(--brand-primary);
        position: relative;
        z-index: 100; /* Rimane sopra alla tendina */
    }
    
    .header-cart-box {
        order: 1;
        border-left: none;
        padding-left: 0;
        position: relative;
        z-index: 100; /* Rimane sopra alla tendina */
    }
    
    .header-cart-details {
        display: none; /* Nasconde il prezzo testuale su mobile per spazio */
    }
    
    .nav-links {
        position: fixed;
        top: 0; /* Parte da sopra a tutto (inizio viewport) */
        left: -280px; /* Nascosto a sinistra di default */
        width: 280px; /* Larghezza ridotta, non occupa il 100% */
        height: 100vh; /* Tutta l'altezza dello schermo */
        background: #083D76; /* Sfondo del colore del brand */
        flex-direction: column;
        align-items: flex-start; /* Voci allineate a sinistra */
        justify-content: flex-start; /* Voci del menu dall'alto */
        padding: 40px 24px; /* Spaziatura interna */
        gap: 15px;
        transition: var(--transition-normal);
        z-index: 99; /* Sotto al toggle pulsante menu */
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        overflow-y: auto;
        box-shadow: none; /* Rimosso di default per evitare aloni sul bordo sinistro */
    }
    
    .nav-links.active {
        left: 0; /* Slitta da sinistra per apparire */
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.4); /* Mostrato solo quando attivo */
    }
    
    .nav-links a {
        padding: 12px 8px; /* Spazio sinistro per la linea attiva */
        font-size: 1.05rem;
        color: rgba(255, 255, 255, 0.65); /* Grigio chiaro per le voci non attive */
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Separatore leggero */
        border-left: 3px solid transparent; /* Linea verticale segnapagina invisibile */
        transition: all 0.25s ease;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        color: #ffffff; /* Testo bianco */
        border-left-color: #ffffff; /* Linea segnapagina attiva */
        padding-left: 14px; /* Slittamento elegante a destra */
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.6); /* Effetto neon sul testo */
    }
    
    .nav-links a::after {
        display: none; /* Rimuove l'effetto linea sotto su mobile */
    }

    /* Barra di ricerca dentro il menu mobile */
    .mobile-search-item {
        display: block; /* Rende visibile l'item nel menu a tendina */
        width: 100%;
        max-width: 100%; /* Si adatta alla larghezza del menu 280px */
        padding: 0;
        margin-bottom: 30px; /* Spazio tra la ricerca e la prima voce del menu */
    }
    
    .mobile-search-form {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    .mobile-search-input {
        width: 100%;
        background: rgba(255, 255, 255, 0.1); /* Chiara trasparente su blu brand */
        color: #ffffff;
        padding: 10px 42px 10px 18px;
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 0.9rem;
        font-weight: 500;
        transition: var(--transition-fast);
    }
    
    .mobile-search-input::placeholder {
        color: rgba(255, 255, 255, 0.7); /* Segnaposto chiaro */
    }
    
    .mobile-search-input:focus {
        border-color: #ffffff;
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }
    
    .mobile-search-btn {
        position: absolute;
        right: 4px;
        width: 32px;
        height: 32px;
        background: #ffffff;
        color: #083D76; /* Icona lente blu su bottone bianco */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: none;
    }

    .mobile-nav-text {
        display: inline;
    }

    .desktop-nav-text {
        display: none;
    }
    
    .hero {
        padding: 50px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .cart-table th {
        display: none;
    }
    
    .cart-table td {
        display: block;
        width: 100%;
        text-align: right;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .cart-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.8rem;
        color: var(--text-secondary);
    }
    
    .cart-item-info {
        justify-content: flex-end;
    }
}

/* --- PRODUCT CAROUSEL SYSTEM --- */
.section-header-carousel {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    gap: 20px;
    flex-wrap: wrap;
}

.section-header-carousel .section-title-wrapper {
    text-align: left;
    margin-bottom: 0;
}

.section-header-carousel .section-title::after {
    margin: 10px 0 0;
}

.carousel-nav {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.carousel-btn i {
    pointer-events: none; /* Impedisce alle icone interne di bloccare i tap su mobile */
}

.carousel-btn:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(8, 61, 118, 0.4);
}

.carousel-btn:focus {
    outline: none;
}

.carousel-track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    padding: 10px 4px 25px; /* Spazio per non tagliare le ombre al passaggio del mouse */
    margin: -10px -4px -5px; /* Compensa il padding */
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.carousel-track .product-card {
    flex: 0 0 280px; /* Larghezza fissa delle card nel carosello su desktop */
    height: auto;
}

@media (max-width: 768px) {
    .section-header-carousel {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .carousel-nav {
        width: 100%;
        justify-content: flex-end;
    }

    .carousel-track .product-card {
        flex: 0 0 240px; /* Card leggermente più piccole su Mobile per vedere l'anteprima di quella successiva */
    }
}
