/* =============================================================
   fotocamere-digitali.css
   Stili per la pagina Fotocamere Digitali - ReflexList
   In linea con attrezzatura.css
   ============================================================= */

/* ==================== VARIABILI CSS ==================== */
:root {
    --primary:       #374151;
    --primary-light: #4b5563;
    --secondary:     #6b7280;
    --accent:        #9ca3af;
    --dark:          #1f2937;
    --light:         #f9fafb;
    --white:         #ffffff;
    --text:          #1f2937;
    --text-light:    #6b7280;
    --border:        #e5e7eb;
    --primary-rgb:   55, 65, 81;

    --shadow-sm:   0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md:   0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg:   0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-glow: 0 0 15px rgba(55,65,81,0.2);

    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius:     8px;
    --border-radius-lg:  12px;
}

/* ==================== BODY ==================== */
body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(55,65,81,0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(55,65,81,0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ==================== GRIGLIA MARCHE ==================== */
.brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.aa1-third {
    flex: 1 1 280px;
}

/* ==================== CARD MARCA ==================== */
.aa1-third.aa1-container {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.aa1-third.aa1-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.aa1-third.aa1-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.aa1-third.aa1-container:hover::before {
    transform: scaleX(1);
}

/* Ritardi animazione per le prime card */
.aa1-third.aa1-container:nth-child(1) { animation-delay: 0.05s; }
.aa1-third.aa1-container:nth-child(2) { animation-delay: 0.10s; }
.aa1-third.aa1-container:nth-child(3) { animation-delay: 0.15s; }
.aa1-third.aa1-container:nth-child(4) { animation-delay: 0.20s; }
.aa1-third.aa1-container:nth-child(5) { animation-delay: 0.25s; }
.aa1-third.aa1-container:nth-child(6) { animation-delay: 0.30s; }

/* ==================== CONTENUTO CARD ==================== */
.brand-content {
    padding: 1.5rem;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    text-align: center;
}

/* ==================== STATISTICHE ==================== */
.category-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.stat-box {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: var(--light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.stat-box:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== PULSANTE VEDI MODELLI ==================== */
.brand-cta {
    margin-top: 1.25rem;
    text-align: center;
}

.brand-cta form {
    width: 100%;
    display: flex;
    justify-content: center;
}

.aa1-button.aa1-dark-grey {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 220px;
}

.aa1-button.aa1-dark-grey:hover {
    background: var(--primary-light) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ==================== NESSUNA MARCA ==================== */
.no-brands-container {
    width: 100%;
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.4rem;
}

/* ==================== ANIMAZIONE ENTRY ==================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
