/* Imposta il font e i colori globali */
body {
    font-family: 'Roboto', sans-serif;
    color: black;
    background-color: snow;
}

/* Hero section styling */
#hero {
    position: relative;
    background-image: url('img/hero.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 80vh;
}
#hero-content {
    padding-top: 35vh;
    color: white;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#hero h1, #hero p, #btn-hero {
    position: relative;
    z-index: 2;
}

/* Navbar custom styles */
.navbar {
    background-color: #2c7a7b;
    box-shadow: 0px 2px 18px rgba(0, 0, 0, 0.2);
    color: white;
    top: 0;
}

.navbar a {
    color: white;
    text-decoration: none;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Cart overlay */
#cart-items li {
    margin-bottom: 10px;
    list-style-type: none;
}

#cart-items li button {
    margin-left: 10px;
}

/* Featured products and categories cards */
.card {
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Usare scroll-margin-top per le sezioni */
.target {
    scroll-margin-top: 85px; /* Altezza dinamica della navbar */
}
#backToTop {
    display: none; /* Inizialmente nascosto */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #2c7a7b;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease-in-out;
}

#backToTop:hover {
    background-color: #205f5f;
}
