/* natale.css - V3.0 */

/* --- PALETTE --- */
:root {
    --primary: #b71c1c;   /* Rosso Natale */
    --secondary: #2d2d2d; /* antracite */
    --gold: #fbc02d;      /* Oro */
    --green: #2e7d32;     /* Verde */
    --bg-light: #fffcf5;
    --text-dark: #333;
}

/* --- BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
h1, h2, h3 { font-family: 'Playfair Display', serif; }
img { max-width: 100%; height: auto; }

/* --- HEADER (Dark & White Text) --- */
header { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 15px 5%; 
    background-color: #2d2d2d; /* Sfondo Scuro */
    position: sticky; top: 0; z-index: 1000; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

.logo-img { height: 45px; width: auto; }

.bf-nav { display: flex; gap: 20px; }

.bf-nav a { 
    font-weight: 700; font-size: 0.9rem; 
    color: #fff; /* Testo Bianco */
    text-transform: uppercase; 
    opacity: 0.9; /* Leggera eleganza */
}
.bf-nav a:hover { 
    color: var(--primary); /* Diventa rosso/arancio al passaggio */
    opacity: 1; 
}

.btn-shop-back { 
    border: 1px solid #fff; /* Bordo Bianco */
    padding: 8px 20px; border-radius: 50px; 
    font-size: 0.8rem; font-weight: 600; 
    color: #fff; /* Testo Bianco */
    transition: 0.3s;
}
.btn-shop-back:hover { 
    background: #fff; /* Sfondo Bianco */
    color: #2d2d2d;   /* Testo Scuro */
}

/* --- HERO FULL --- */
.hero {
    /* Immagine Piena senza overlay */
    background: url('img/xmas-hero.png') no-repeat center center/cover;
    height: 70vh; min-height: 500px;
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 50px;
}
.hero-title-box {
    background: rgba(255,255,255,0.95); padding: 30px 60px; border-radius: 4px; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); max-width: 900px;
    border-bottom: 5px solid var(--primary);
}
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin: 0; color: var(--primary); }
.hero em { font-style: italic; color: var(--secondary); font-size: 0.6em; display:block; margin-top:5px; font-weight:normal; }

/* --- INTRO SECTION --- */
.intro-section { padding: 80px 10%; text-align: center; background: #fff; }
.intro-text { font-size: 1.25rem; color: #555; max-width: 800px; margin: 0 auto 40px; line-height: 1.8; }
.opening-box { 
    display: inline-block; background: var(--bg-light); border: 1px solid var(--gold); 
    padding: 25px 50px; border-radius: 8px; margin-top: 10px; 
}
.opening-box h3 { color: var(--green); margin: 0 0 10px; font-size: 1.4rem; }
.opening-box p { font-size: 1.1rem; margin: 5px 0; }
.opening-box .address { margin-top: 15px; font-weight: bold; color: var(--secondary); border-top: 1px dashed #ccc; padding-top: 10px; font-size: 1rem; }

/* --- TOP SELECTION (3 BOX) --- */
.top-selection { padding: 60px 5%; background: var(--bg-light); }
.section-header-center { text-align: center; margin-bottom: 40px; }
.section-header-center h2 { font-size: 2.5rem; color: var(--secondary); }

.top-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.special-card { 
    background: #fff; padding: 30px 20px; text-align: center; border-radius: 12px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); border: 1px solid #eee; transition: transform 0.3s; 
    display: flex; flex-direction: column; align-items: center;
}
.special-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.special-card img { height: 200px; object-fit: contain; margin-bottom: 20px; }
.special-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--primary); min-height: 2.5em; line-height: 1.2; }
.special-card p { font-size: 0.95rem; color: #666; margin-bottom: 20px; min-height: 4em; }
.special-price { font-size: 1.5rem; color: var(--secondary); font-weight: bold; margin-bottom: 15px; display: block; }
.btn-special { display: inline-block; padding: 12px 30px; background: var(--secondary); color: #fff; border-radius: 50px; font-weight: bold; text-decoration: none; transition: 0.3s; }
.btn-special:hover { background: var(--primary); color: #fff; }

/* --- PANZENZERO BOX (CENTRALE) --- */
.panzenzero-section { padding: 80px 5%; background: #fff; }
.panzenzero-box { 
    max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 60px; 
    background: #fffcf5; padding: 50px; border-radius: 20px; border: 2px solid var(--gold); 
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.panz-img { flex: 1; text-align: center; }
.panz-img img { max-height: 400px; border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.panz-content { flex: 1; text-align: left; }
.panz-content h2 { font-size: 3rem; color: var(--primary); margin-bottom: 20px; line-height: 1.1; }
.panz-content p { font-size: 1.2rem; color: #555; margin-bottom: 30px; }
.panz-price { font-size: 2.2rem; font-weight: bold; color: var(--secondary); margin-bottom: 30px; display: block; }
.btn-panz { background: var(--primary); color: white; padding: 15px 40px; border-radius: 4px; font-weight: bold; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.btn-panz:hover { background: #921818; color: #fff; }

/* --- CAROSELLI --- */
.category-section { padding-top: 60px; }
.section-header { padding: 0 5%; border-bottom: 1px solid #ddd; margin-bottom: 30px; display: flex; align-items: center; gap: 15px; }
.section-header h2 { font-size: 2rem; color: var(--text-dark); margin: 0; }
.section-tag { padding: 5px 12px; border-radius: 4px; color: #fff; font-weight: bold; text-transform: uppercase; font-size: 0.8rem; }
.tag-budget { background: var(--green); }
.tag-mid { background: var(--gold); color: #333; }
.tag-premium { background: var(--secondary); }

.scrolling-wrapper {
    display: flex; overflow-x: auto; padding: 10px 5% 40px; gap: 25px; scroll-snap-type: x mandatory; 
}
.scrolling-wrapper::-webkit-scrollbar { display: none; }

.product-card {
    flex: 0 0 260px; background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); scroll-snap-align: start; border: 1px solid #eee;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card-img-container { height: 200px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 15px; }
.card-img-container img { max-width: 100%; max-height: 100%; object-fit: contain; transition: 0.5s; }
.product-card:hover img { transform: scale(1.08); }
.card-body { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; border-top: 1px solid #f9f9f9; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 5px; height: 2.6em; overflow: hidden; color: var(--secondary); }
.price-box { margin-top: auto; color: var(--primary); font-weight: 800; font-size: 1.1rem; }
.btn-card { display: block; width: 100%; text-align: center; padding: 8px; margin-top: 10px; background: #f4f4f4; color: #333; border-radius: 6px; font-weight: bold; font-size: 0.9rem; }
.btn-card:hover { background: var(--secondary); color: #fff; }


/* --- SEZIONE CORSI (NUOVA) --- */
.courses-section { padding: 60px 5%; background: #fffcf5; /* Sfondo leggermente diverso */ border-top: 1px solid #eee; }
.courses-header { text-align: center; margin-bottom: 40px; }
.courses-header h2 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 10px; }
.courses-header p { font-size: 1.1rem; color: #666; max-width: 600px; margin: 0 auto; }

/* Carosello Corsi */
.courses-wrapper {
    display: flex; overflow-x: auto; padding: 20px 5% 50px; gap: 30px; 
    scroll-snap-type: x mandatory; scrollbar-width: none;
}
.courses-wrapper::-webkit-scrollbar { display: none; }

.course-card {
    flex: 0 0 350px; /* Più largo dei prodotti */
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); scroll-snap-align: center; 
    border: 1px solid #eee; display: flex; flex-direction: column;
    transition: transform 0.3s;
}
.course-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }

.course-img { height: 200px; width: 100%; overflow: hidden; position: relative; }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.course-card:hover .course-img img { transform: scale(1.05); }

.course-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.course-title { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; line-height: 1.3; min-height: 2.6em; }
.course-desc { font-size: 0.9rem; color: #555; line-height: 1.5; margin-bottom: 20px; flex-grow: 1; } /* Testo flessibile */

.btn-course { 
    display: block; width: 100%; padding: 12px; text-align: center; 
    background: var(--secondary); color: #fff; border-radius: 6px; 
    font-weight: bold; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; 
}
.btn-course:hover { background: var(--primary); }

/* Mobile Corsi */
@media (max-width: 768px) {
    .course-card { flex: 0 0 300px; } /* Un po' più stretto su mobile */
    .courses-header h2 { font-size: 2rem; }
}

/* FOOTER */
footer { background: var(--secondary); color: #ccc; padding: 60px 0; text-align: center; margin-top: 80px; }

/* MOBILE */
@media (max-width: 768px) {
    .bf-nav { display: none; }
    .hero { height: 50vh; align-items: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero-title-box { padding: 20px; width: 90%; }
    .top-grid { grid-template-columns: 1fr; } 
    .panzenzero-box { flex-direction: column; text-align: center; padding: 20px; gap: 20px; }
    .panz-img img { max-height: 250px; }
    .panz-content h2 { font-size: 2rem; }
    .intro-section { padding: 40px 5%; }
}

/* --- BADGE STILE PALLINA DI NATALE (SEMPRE VISIBILE) --- */
.card-badge {
    position: absolute;
    top: 10px;
    right: 10px; /* A destra in alto */
    left: auto;  /* Reset sinistra */
    
    /* VISIBILITÀ FORZATA */
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 50; /* Z-index alto per stare sopra a tutto */

    /* STILE */
    background-color: var(--primary) !important; /* Rosso */
    color: #fff !important;
    
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Cerchio */
    
    align-items: center;
    justify-content: center;
    
    font-weight: 800;
    font-size: 0.85rem;
    font-family: 'Open Sans', sans-serif;
    line-height: 1;
    
    border: 2px solid #fff; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    
    transform: rotate(15deg); /* Inclinazione fissa */
    pointer-events: none; /* Così se ci clicchi sopra clicchi comunque il prodotto sotto */
}

/* Rimuoviamo qualsiasi effetto hover strano sul badge */
.product-card:hover .card-badge {
    transform: rotate(15deg) scale(1.1); /* Unico effetto: si ingrandisce appena appena se passi sul prodotto */
    transition: transform 0.3s;
}