:root {
    --hero_height: calc(100vh - var(--header_height));
}

nav {
    z-index: 2;
    position: absolute;
    left: 0; 
    right: 0; 
    margin-left: auto; 
    margin-right: auto;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    position: relative;
    
}

.home-carousel {
    width: 100%;
    position: relative;
    top: 0;
    z-index: 0;
    height: var(--hero_height);
}

.hero-text {
    font-size: 3.5em;
    padding: 10px 20px;
    background-color: #554f3cbb;
    font-weight: 500;
    position: absolute;
    color: #fff;
    bottom: 80px;
}

.hero-text-container {
    position: relative;   
}

.stakeholder-carousel{
    text-align: center;
    height: 250px;
    background-color: #fff;
    margin-bottom: 50px;
}

.stakeholder-carousel img {
    object-fit: contain;
    height: 100%;
    max-width: 100%;
}

.stakeholder-carousel-title {
    margin-top: 50px;
    width: 100%;
    text-align: center;
    color: var(--main_red);
    font-size: 3em;
    font-weight: 500;
}

.novita {
    background-image: url('../assets/prodotti/foodness/prodotto3_2g.jpg');
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    height: 250px;
    margin: 30px 0;
    position: relative;
}

.novita-content {
    position: absolute;
    width: 50%;
    right: 0px;
    height: 100%;
    color: #fff;
    display: flex;
    justify-content: space-between;
}

div > .novita-content {
    width: 50%;
    text-align: right;
    font-size: 2em;
}

.novita-texts {
    position: relative;
    padding: 20px;
    /*max-width: 35%;*/
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    text-align: left;
}

.novita-texts div {
    width: 100%;
}

.novita-texts button {
    width: 80px;
    height: 30px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    background-color: #eee;
    color: #333;
    font-size: 0.6em;
}

.novita-texts button:hover {
    background-color: #fff;
    color: var(--main_red);
    cursor: pointer;
    transform: scale(1.05);
}

.novita-animation {
    position: absolute;
    padding: 4px 14px;
    background-color: #fff;
    color: var(--main_red);
    box-shadow: 0 0 10px rgba(33, 33, 33, 0.5);
    border-radius: 10px;
    font-size: 1.6em;
    font-weight: bold;
    top: 85px;
    left: 25px;
    transform: rotate(-5deg);
    animation: novita-anim 2.5s infinite ease;

}

@keyframes novita-anim {
    0% {transform: rotate(-5deg);}
    25% {transform: rotate(-15deg);}
    50% {transform: rotate(-5deg);}
    75% {transform: rotate(-15deg);}
  }

  .diventa-cliente {
    background-color: var(--main_red);
    color: #fff;
    margin: 120px 0;
    padding: 25px;
  }

  .diventa-cliente div {
    display: flex;
    font-size: 4em;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
  }

  .diventa-cliente button {
    padding: 18px 28px;
    font-size: 0.28em;
    font-weight: bold;
    color: #666;
    border-radius: 8px;
    border: none
  }

  .diventa-cliente button:hover {
    background-color: #fff;
    color: var(--main_red);
    cursor: pointer;;
  }


  /* Storia */
.storia1 h1 {
    font-size: 4em;
    color: var(--content_red)
}

.storia1 {
    text-align: center;
    /*max-width: 850px;*/
    margin: auto;
    margin-bottom: 150px;
}

.storia1 p {
    text-align: justify;
    color: #333;
}

.storia1 button:hover {
    cursor: pointer;
    transform: scale(1.1);
}


.numeri-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.numeri-scheda {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: space-between;
    color: var(--main_red);
    align-items: center;
    margin: 0px 10px;
}

.numeri-scheda span:last-child {
    font-size: 2em;
}


.numeri-scheda img {
    max-height: 120px;
    padding: 35px;
}

.numeri {
    font-size: 5em;
}
