/* ==========================================================================
   1. SETUP GLOBALE E SFONDO
   ========================================================================== */
@import url("general.css");

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Sfondo marrone scurissimo per far risaltare il panna */
    background: linear-gradient(135deg, #1a0f0d 0%, #0f0807 100%);
    font-family: 'Inter', sans-serif;
    color: #F5F5DC; 
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   2. SLIDER (Navigazione Categorie)
   ========================================================================== */
.slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(15, 8, 7, 0.85); /* Quasi nero marrone */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(245, 245, 220, 0.05);
}

.slider p {
    margin: 0;
    padding: 10px 25px;
    border-radius: 30px;
    background: rgba(245, 245, 220, 0.05);
    color: rgba(245, 245, 220, 0.6);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(245, 245, 220, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider p.active {
    /* Arancione bruciato/ruggine invece di quello acceso */
    background: #C1661D; 
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}

/* ==========================================================================
   3. LAYOUT MAIN E CARDS
   ========================================================================== */
main {
    height: fit-content;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.card {
    display: none;
    animation: fadeIn 0.5s ease;
}

.card.show {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ==========================================================================
   4. COMPONENTE PRODOTTO (Glass Style)
   ========================================================================== */
.listaProdotti {
    display: flex;
    flex-direction: row;
    height: 160px;
    background: rgba(245, 245, 220, 0.03); /* Overlay panna quasi impercettibile */
    backdrop-filter: blur(5px);
    /* Bordo panna soft invece che arancio */
    border: 1px solid rgba(245, 245, 220, 0.1); 
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: #F5F5DC;
    
    opacity: 0;
    transform: translateY(15px);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out, background 0.3s ease;
}

.listaProdotti:active {
    transform: scale(0.98);
    background: rgba(193, 102, 29, 0.1); /* Feedback ruggine al tocco */
}

.listaProdotti.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Sottocomponenti Prodotto --- */

.box {
    width: 110px;
    height: 100%;
    flex-shrink: 0;
    border-right: 1px solid rgba(245, 245, 220, 0.05);
}

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

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 15px;
    min-width: 0;
}

.content h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
    color: #F5F5DC; /* Titolo prodotto in Panna per massima eleganza */
}

.tag {
    display: flex;
    gap: 10px;
}

.tag img {
    height: 1.3rem;
    width: auto;
    object-fit: contain;
    /* Filtro per icone color panna/avorio */
    filter: invert(93%) sepia(13%) saturate(302%) hue-rotate(15deg) brightness(102%) contrast(92%);
    opacity: 0.6;
}

/* ==========================================================================
   5. ANIMAZIONI E UTILITY
   ========================================================================== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
