:root{
    --primary-color: #CA0010;
    --secondary-color: white;
    --third-color: #CCB909;
    --diete-color: #1C8F6D;
    --bio-color: #1F59A4;

    --bg-btn: #CA0010;
    --text-btn: white;
    --bg-btn-h: white;
    --text-btn-h: black;

    --bg-btn-sec: white;
    --text-btn-sec: #CA0010;
    --bg-btn-h-sec: black;
    --text-btn-h-sec: white;

    --bg-btn-t: white;
    --text-btn-t: #CCB909;
    --bg-btn-h-t: black;
    --text-btn-h-t: white;

    --bg-footer: #CA0010;

    --swiper-navigation-color: #000;

    --bs-btn-disabled-border-color: transparent;
}

/* ELEMENTI */
body{
    font-family: 'Jost', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image:url(/image/bg-app-del-monte-desktop.jpg);
    background-size:cover;
    background-position:center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

footer{
    background-color: var(--bg-footer);
    height: 8rem;
    margin-top: auto;
    padding: 1.3rem;
}

form label, .btn-primary, .btn-secondary, .btn-third, .btn-link, h1, h2, h3, .nav-link, h5 {
    text-transform: uppercase;
    font-weight: 800;
}

a{
    text-decoration: none;
    color: inherit;
}

h1{
    font-size: 3.5rem;
}

h2{
    font-size: 20px;
}

h3{
    font-size: 16px;
}

h4{
    font-size: 14px;
    font-weight: 600;
}

textarea{
    border-color: #00000061 !important;
    border-radius: 20px;
    resize: none;
}

button{
    cursor: pointer;
}

tr{
    vertical-align: middle;
}

/* CLASSI */
.menu-card button{
    border: none !important;
    border-width: 0px !important;
}

.nav-link.active, .nav-link:hover{
    color: var(--primary-color) !important;
}

.nav-link{
    color: black;
}

.border-header{
    border-top: 8px solid var(--primary-color);
}

.btn-container button{
    width: 100%;
}

.labelform{
    font-weight: 800;
}

.menu-title{
    color: var(--primary-color);
    font-size: 2rem;
}

.card-title{
    font-size: 2rem;
}

.red-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #CA0010;
}

.card{
    background-color: grey;
    border-radius: 12px;
    box-shadow: 0px 3px 6px lightgray;
}

.overlay-dark {
    height: 100%;
    border-radius: 12px;
}

.card-first{
    border: none;
    min-height: 400px;
    height: 100%;
    background:linear-gradient(0deg, #00000080, #00000080), url('../../image/pasta.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.card-evidenza{ 
    background:linear-gradient(0deg, #00000080, #00000080), url('../../image/ufficio.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.card-info-r{
    background-color: var(--primary-color) !important;
    color: white;
}

.card-info-s{
    background-color: var(--third-color) !important;
    color: white;
}

.info-date{
    color: var(--primary-color);
    font-weight: 600;
}
.navbar{
    background-color: var(--primary-color);
    color: white !important;
    height: 8rem;
}

.form-control{
    border-radius: 12px !important;
    border-width: 1px !important;
    border-color: black !important;
    padding: 10px !important; 
}


.form-control-date{
    border-radius: 12px !important;
    border-width: 1px !important;
    border-color: black !important;
    padding: 10px !important; 
}

.form-check-input{
    border-width: 1px !important;
    border-color: black !important;
}

.btn-log-form{
    flex-direction: column;
}

.btn-primary{
    background-color: var(--bg-btn);
    color: var(--text-btn);
    border-color: var(--bg-btn);
    border-radius: 25px;
}

.btn-primary:hover{
    background-color: var(--bg-btn-h);
    color: var(--text-btn-h);
}

.btn-secondary{
    background-color: var(--bg-btn-sec);
    color: var(--text-btn-sec);
    border-color: var(--bg-btn-sec);
    border-radius: 25px;
}

.btn-secondary:hover{
    background-color: var(--bg-btn-h-sec);
    color: var(--text-btn-h-sec);
}

.btn-third{
    background-color: var(--bg-btn-t);
    color: var(--text-btn-t);
    border-color: var(--bg-btn-t);
    border-radius: 25px;
}

.btn-third:hover{
    background-color: var(--bg-btn-h-t);
    color: var(--text-btn-h-t);
}

.btn-link{
    text-decoration: none;
    background-color: var(--third-color);
    color: var(--text-btn);
    border-radius: 25px;
}

.btn-diete{
    background-color: var(--diete-color);
    border-color: var(--diete-color);
    font-size:0.8rem;
}

.btn-diete:hover{
    background-color: white;
    color: var(--diete-color);
}

.btn-info{
    background-color: var(--bio-color);
    border-color: var(--bio-color);
    font-size:0.8rem;
}

.btn-info:hover{
    background-color: white;
    color: var(--bio-color);
}

.app{
    min-height: calc(100vh - 16rem);
}

.card-day{
    box-shadow: none;
    background-color: white;
    color: black;
    border-color: black;
    border-width: 1px;
    width: 100%;
}

.selected{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.selected-rew{
    background-color: var(--third-color);
    border-color: var(--third-color);
    color: white;
}

.menu-card{
	display: flex;
	margin-top: 15px;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 3px 6px lightgray;
    border-radius: 12px;
    width: 700px;
}
		  
.img-menu{
	width:50px;
}

.img-fluid{
    max-width: none;
}

.freccia-dx{
    width:28px;
}
.card-title-menu{
	color:black;
	font-weight:900;
	margin-bottom:5px;
	font-size:1rem;
    text-transform: none;
}
h5.green-check:after {
    background-image: url(/image/green-check.png);
    background-size: 15px 15px;
    display: inline-block;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    content: "";
    position: relative;
    top: 8px;
    left: 5px;
}
    
h5.blu-check:after {
    background-image: url(/image/blu-check.png);
    background-size: 15px 15px;
    display: inline-block;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    content: "";
    position: relative;
    top: 8px;
    left: 5px;
}
    
.btn-scarti{
    color:white;
    font-weight:900;
    border-radius:50px;
    background-color:var(--primary-color);
    text-transform: uppercase;
    padding: 10px;
    padding-right: 20px;
    padding-left: 20px;
    font-size:0.8rem;
}
.btn-reviews{
    color:white;
    font-weight:900;
    border-radius:50px;
    background-color:#CCB909;
    text-transform: uppercase;
    padding: 10px;
    padding-right: 20px;
    padding-left: 20px;
    font-size:0.8rem;
}

.btn-container{
    max-width: 540px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom:40px;
}
.custom-container{
    padding-top: 3rem;
}

.container-menu{
    display: flex;
    flex-direction: column;
    align-items: center;
	margin-bottom:40px;
}		  
   
.main-title{
	text-align: center;
	text-transform: uppercase;
	font-weight: 900;
	color:black;
	font-size:1.3rem;
}

.subtitle-menu{
	color:#CA0010;
	font-weight:900;
	text-align:center;
	margin-top:2rem;
	font-size:0.9rem;
}	
    
.accordion{
    --bs-accordion-btn-icon-width:1.45rem;
}
            
.accordion-item{
    margin:20px;
}	
            
.accordion-item{
    box-shadow: 0px 3px 6px lightgray;
    border-radius: 12px;
}	  

.accordion-button{
    border-radius:12px !important;
    font-weight: 900;
    font-size: 1.18rem;
}
            
.accordion-item:first-of-type .accordion-button, .accordion-item:last-of-type .accordion-button, .accordion-item:last-of-type .accordion-button.collapsed, .accordion-item:last-of-type {
    border-radius:12px !important;
}
            
        
.btn-news {
    width: 30px;
    height: 30px;
    background-image: url('/image/freccia-dx.png');
    background-repeat: no-repeat;
    background-size: var(--bs-accordion-btn-icon-width);
}
        
.data-news{
    font-size: 14px;
    font-weight: 900;
    font-family: 'Jost';
    color: #CA0010;
    position: relative;
}
       
.drop-cap p{
    margin: 0;
}

.drop-cap p:first-of-type::first-letter {
    font-size: 3em;
    line-height: 1;
    color: var(--primary-color);
}
              
.numerazione-news{
    display: flex;
    justify-content: center;
    margin:20px;
}
            
.numerazione-news .page-link {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    font-weight: 900;
    border: 1.5px solid black;
    margin: 10px;
}

.active>.page-link, .page-link.active {
    background-color: #CA0010;
    color:white;border:1.5px solid white;
}

.page-item.disabled .page-link{
    border: none;
    background-color: transparent;
}

.del:disabled, .add:disabled{
    border: none;
}

.modal-valori{
    min-width: 30%;
}

.modal-valori .modal-content{
    background-color: var(--secondary-color);
    color: black;
    border: var(--primary-color) 4px solid;
}

.modal-header{
    justify-content: center !important;
}

.accordion-button{
    background-color: transparent;
}

.rating {
    display: inline-block;
    cursor: pointer;
    font-size: 25px;
}

.rating-star {
    color: lightgray;
}

.rating-star.active {
    color: gold;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: var(--primary-color);
    overflow-x: hidden;
    transition: 0.5s;
  }
  
  .overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
  }
  
  .overlay a {
    text-transform:uppercase;
    text-decoration: none;
    font-size: 36px;
    font-weight: 800;
    color: white;
    display: block;
    transition: 0.3s;
    font-weight: 500;
  }
  
  .overlay a:hover, .overlay a:focus {
    color: white;
  }
  
  .overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
  }

  .col-scarti{
    display: flex;
    flex-direction: row;
  }
 
  .navbar-toggler{
    border: none;
  }

  .circle-title {
    display: inline-block;
    width: 100px; 
    height: 100px;
    line-height: 90px; 
    text-align: center; 
    border-radius: 50%;
    border: 7px solid var(--primary-color);
  }

  .border-danger{
    border-color: var(--primary-color) !important;
  }

  .icon-piatti:hover{
    border: 2px blue solid;
  }

  .icon-piatti.selected{
    border: 2px blue solid;
    background-color: transparent;
  }

  .cart-icon {
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: 10px;
    margin-left: 20px;
    background-color: white;
    color: black;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 800;
    border: 2px solid var(--primary-color);
}

.card-subtitle.month{
    text-transform: capitalize;
}

.menu-card{
    -webkit-transition: all 1s linear;
    -moz-transition: all 1s linear;
    -o-transition: all 1s linear;
    transition: all 1s linear;
}

.menu-card.disabled{
    background-color: lightgray;
}

.menu-card.disabled img, .add:disabled, .del:disabled{
    filter: grayscale(1);
}

.menu-card.disabled .card-title-menu{
    color: dimgray;
}

.takeaway{
    width: 20px;
    accent-color: var(--bg-btn);
}

.card-sel{
    border: solid 3px transparent;
    transition: none !important;
    cursor: pointer;
}

.card-sel:hover{
    border: solid 3px #CA0010;
    transition: none !important;
}

.card-sel.sel{
    border: solid 3px #CA0010;
    transition: none !important;
}

.card-sel.rew:hover{
    border: solid 3px var(--third-color);
    transition: none !important;
}

.card-sel.rew.sel{
    border: solid 3px var(--third-color);
    transition: none !important;
}

.sel-comp, .sel-mensa{
    width: 60%;
    font-size: 1rem; 
    font-weight: 600; 
    padding: 1rem !important;
}

.count-kcal{
    display: block;
    position: fixed; 
    width: 100px; 
    height: 80px; 
    background-color: var(--primary-color); 
    bottom: 0; 
    left: 15%; 
    border-top-left-radius: 10px; 
    border-top-right-radius: 10px;
}

.span-accordion{
    cursor: pointer;
}

.check-all {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #95A435;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    position: relative;
}


.check-all:checked {
    background-color: #95A435;
    border-color: #95A435;
    background-clip: content-box;    
}

.check-all:checked::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 10px;
    height: 5px;
    border: solid white;
    border-width: 0 0 2px 2px;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    opacity: 1;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%; 
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%; 
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ID */
.err-order p{
    color: var(--primary-color);
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    
    :root{
        --swiper-navigation-size: 30px !important;
    }    

    .navbar-nav .nav-link.active{
        color: black !important;
    }

    .mySwiper .card-body{
        padding: 0.75rem;
    }

    .mySwiper .card-title{
        font-size: 1.5rem;
    }

    .mySwiper .card-subtitle{
        font-size: 1rem;
    }

    .mySwiper .card-subtitle.month{
        font-size: 0.75rem;
    }

    /*#calendar{
        margin-right: calc(-1.25 * var(--bs-gutter-x));
        margin-left: calc(-1.25 * var(--bs-gutter-x));
    }*/

    .app{
        min-height: calc(100vh - 12rem);
    }

    .custom-container{
        padding-top: 0px;
    }
    
    h1{
        font-size: 2rem;
    }

    .overlay a {
        font-size: 20px
    }

    .overlay .closebtn {
      font-size: 40px;
      top: 15px;
      right: 35px;
    }
    
    .card-title {
      font-size: 1rem;
    }

    .card-subtitle {
        font-size: 0.75rem;
    }

    .menu-title{
        font-size: 1.3rem;
    }

    /*.row{
        margin-right: calc(-1.25 * var(--bs-gutter-x));
        margin-left: calc(-1.25 * var(--bs-gutter-x));
    }*/

    .row > * {
        padding-right: 0.2rem;
        padding-left: 0.2rem;
    }        

    .style-home{
        justify-content: center !important;
    }

    .menu-card{
        width: 350px;
	align-items: flex-start;
    }

    .col-scarti{
        flex-direction: column;
    }

    .cont-menu{
        flex-wrap: nowrap !important;
        justify-content: space-between;
    }

    .navbar-collapse{
        z-index: 999;
        height: 100vh;
        background-color: var(--primary-color);
        left: 0;
        top: 0;
        right: 0;
        justify-content: center !important;
        bottom: 0;
        display: flex;
        position: fixed;    
    }

    .navbar-collapse .nav-link {
        color: white;
    }

    .preview-menu{
        padding: 0rem;
    }

    .cart-count{
        padding: 6px 8px;
        top: -12px;
        right: -15px;
    }

    .navbar-toggler.nav-item{
        position: absolute;
        padding-right: 0;        
        right: 65px;
    }

    .count-kcal{
        display: flex;
        position: fixed; 
        width: 100%; 
        height: auto;
        justify-content: center;
        align-items: center;
        background-color: var(--primary-color); 
        bottom: 0; 
        left: 0; 
        right: 0;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
    }

    .count-kcal h2{
        margin-bottom: 0px;        
    }

    .count-kcal p{
        order: 2;        
    }

    .menu-card button{
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .sub-btn{
        padding-top: 0.5rem;
    }
}

@media (max-width: 360px) {
    .menu-card {
        width: 300px !important;
    }
}