/* --- IMPOSTAZIONI GENERALI --- */
:root {
    --primary-color: #b71c1c; /* Rosso scuro (colore carne/macelleria) */
    --secondary-color: #212121; /* Nero */
    --text-color: #333;
    --bg-color: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a { text-decoration: none; }

/* --- HEADER & MENU --- */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.logo span { color: var(--primary-color); }

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover { color: var(--primary-color); }

/* --- HERO SECTION (SFONDO CON IMMAGINE) --- */
.hero {
    /* I due punti (..) servono per uscire dalla cartella css ed entrare in images */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/sfondo-home.jpg');
    
    background-size: cover;    /* Copre tutto lo spazio */
    background-position: center; /* Centra la foto */
    background-repeat: no-repeat;
    
    height: 80vh; /* Altezza: 80% dello schermo */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
    font-weight: 800;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    max-width: 700px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.btn {
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #8e0000;
    transform: scale(1.05);
}

/* --- SEZIONE HOME (GRID) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.feature-box {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-box:hover { transform: translateY(-5px); }
.feature-box i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
.feature-box h3 { margin-bottom: 15px; color: var(--secondary-color); }

/* --- PAGINA PRODOTTI (Stili extra per non rompere le altre pagine) --- */
.page-title { text-align: center; margin: 40px 0 10px; color: var(--primary-color); }
.section-subtitle { text-align: center; margin-bottom: 40px; color: #666; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 20px; }
.card-content h3 { color: var(--primary-color); margin-bottom: 10px; }

/* --- FOOTER --- */
footer {
    background: var(--secondary-color); /* Sfondo scuro */
    color: white;
    text-align: center;
    padding: 40px 0 20px; /* Più spazio sopra e sotto */
    margin-top: auto;
}

footer h3 {
    color: var(--primary-color); /* Nome negozio in rosso */
    margin-bottom: 10px;
}

footer p {
    margin-bottom: 5px;
}

footer .divider {
    border-top: 1px solid #444; /* Una linea sottile grigia */
    margin: 20px auto;
    width: 80%;
}

footer .signature {
    font-size: 0.9rem;
    color: #aaa; /* Colore grigio chiaro */
    font-style: italic;
    margin-top: 5px;
}