:root{
    --bgcolor: #fff;
    --txtcolor: #000;
    --bgcolor2: #cd492a;
    --bgcolor3: #414143;
}

/*
============
HEADER MOBILE
============
*/
#menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bgcolor);
    padding: 0.3em;
    box-shadow: 0px -4px 6px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

#menu ul{
    display: flex;
    justify-content: space-evenly;
}

.menuMobile-version{
    display: inline-block;
}

#menu li:not(.menuMobile-version, #currentLink){
    display: none;
}

#menu li:not(.menuMobile-version){
    margin: 0;
    padding: 0.3em;
    line-height: 2em;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--bgcolor2);
}

#menu li #currentLink{
    margin-bottom: 2em;
}

#menu li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--bgcolor2);
    padding: 0.3em;
}

#menu li a img {
    margin-bottom: 0.3em;
    width: 2.3em;
    height: 2.3em;
    object-fit: contain;
}

/*
============
FOOTER MOBILE
============
*/
#footer-top {
    flex-direction: column;
    padding: 1em;
}

.footer-column {
    margin: 1em;
}

#footer-bottom {
    margin-bottom: 3em;
}

/*
============
INDEX MOBILE
============
*/
#important-info{
    flex-direction: column;
}

#important-info div {
    padding: 0.3em;
    width: auto;
}

#titolo {
    background-image: none;
    padding: 0;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

#titolo img{
    height: 5em;
    flex: 0 0 auto;
    align-self: flex-start;
    margin-right: auto;
}

#titolo h1 {
    font-size: 1.3em;
    flex: 1;
    margin-top: 1em;
    line-height: 1em;
}

#titolo h2 {
    flex-basis: 100%;
    margin-bottom: 0.5em;
    text-align: center;
    line-height: 1em;
    font-size: 1em;
    margin-top: 0;
    max-width: 100%;
}

#container{
    flex-direction: column;
}

#container div{
    width: 10em;
    height: 7em;
}

#container #img3, #container #img4{
    display: none;
}

#download-container{
    flex-direction: column;
}

.home-section{
    padding: 0.5em;
}

/*
============
FILTRI MOBILE
============
*/
#filtri div {
    display: block;
    margin: 0.4em;
}

/*
============
TABELLE MOBILE
============
*/

#tabella-ordini{
    padding: 1.5em;
}

#tabella-ordini thead{
    display: none;
}

#tabella-ordini tr, th, td{
    display: block;
    padding: 0;
}

#tabella-ordini td{
    padding-left: 0;
    padding-right: 0;
}

#tabella-ordini table, body, tr{
    border: none;
}

#tabella-ordini th{
    margin-top: 1em;
    padding: 0.6em;
    background-color: var(--bgcolor2);
    color: var(--bgcolor);
    border: none;
}

#tabella-ordini tfoot tr td{
    border-bottom: 2px solid var(--txtcolor);
    background-color: var(--bgcolor3);
    color: var(--bgcolor);
}

#tabella-ordini td[data-title]:before{
    content: attr(data-title) ": ";
    font-weight: bold;
}

#tabella-ordini tfoot th{
    display: none;
}

#tabella-ordini td:empty{
    display: none;
}

#tabella-ordini caption h2{
    font-size: 1.5em;
}

/*
============
DASHBOARD MOBILE
============
*/
.dashboard .home-button{
    width: 90%;
    font-size: 1em;
    gap:2.5%;
}

.dashboard div .home-button {
    width: 75%;
}

.dashboard .home-button img {
    height: 1.5em;
}

/*
============
FORM-AGGIUNTA MOBILE
============
*/
#aggiunta-content{
    padding: 1em;
    margin: 0.5em;
}

.form-aggiunta label{
    font-size: 1em;
}

.form-aggiunta p{
    font-size: 1em;
}

/*
============
DETTAGLI-ORDINE MOBILE
============
*/
#DO{
    flex-direction: column;
    min-height: 0;
}

#DO-intro{
    margin: 0.5em;
    min-width: 90%;
    min-height: 0;
}

#DO-intro h1{
    padding: 1em;
}

#DO-intro .home-button{
    padding: 0.5em;
    margin: 1em;
    width: 90%;
    text-align: center;
}

#DO #tabella-ordini{
    margin-right: 0;
    min-height: 0;
    min-width: 90%;
    margin-left: 0;
}

#note {
    font-size: 0.9em;
}

/*
============
AREA-RISERVATA MOBILE
============
*/
#container-form {
    width: 90%;
    min-height: 0;
    margin: auto auto 0.3em;
}

#container-form form{
    padding: 1.5em;
}

/*
============
TORNA-SU MOBILE
============
*/
#mobile.torna-su, #mobile-plus.torna-su {
    position: fixed;
    bottom: 5em;
    right: 1em;
    z-index: 11;
    background-color: var(--bgcolor2);
}

#mobile.torna-su:hover, #mobile-plus.torna-su:hover {
    position: fixed;
    bottom: 5em;
    right: 1em;
    z-index: 11;
    background-color: var(--bgcolor);
}

.torna-su:not(#mobile):not(#mobile-plus){
    position: absolute;
    text-indent: -999em;
}

#menu-prenotaPage .torna-su:not(#mobile):not(#mobile-plus){
    position: relative;
    text-indent: -999em;
}

#mobile-plus.torna-su{
    text-indent: 0;
    padding: 0.5em;
}

/*
============
CHI-SIAMO
============
*/

#chi-siamo-intro {
    height: 30vh;
    font-size: 1em;
    margin: 0.25em;
    }

.title-container {
    padding: 1em 1.5em;
    width: 80%;
    }

#chi-siamo-intro h1 {
    font-size: 1.5em;
    letter-spacing: 0.1em;
    }

#chi-siamo-contenitore {
    flex-direction: column;
    margin: 0.3em;
    }

.chi-siamo-items {
    width: auto;
    padding: 1.5em;
}


.chi-siamo-boxes {
    flex-direction: column;
    gap: 2em;
    padding: 1.5em;
    text-align: center;
}

.chi-siamo-boxes:nth-child(even) {
    flex-direction: column-reverse;
}

.chi-siamo-img {
    width: 100%;
    padding-bottom: 60%;
}

.chi-siamo-ic {
    width: 20%;
    padding-bottom: 20%;
    margin-right: 1em;
}

.chi-siamo-testo {
    width: 100%;
}

.chi-siamo-testo p {
    font-size: 0.9em;
    line-height: 1.5em;
    margin: 0.5em 0;
}

.chi-siamo-testo h3 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

/*
============
MENU-PRENOTA
============
*/
#MP-intro {
    height: auto;
    margin: 0.2em;
}

#smallMenu {
    width: 90%;
    margin: 1em;
    padding: 1em;
}

#smallMenu h1 {
    font-size: 1.1em;
}

#smallMenu #infoOrdini {
    font-size: 0.7em;
}

#categoria{
    flex-direction: row;
    margin: 0.2em;
}

#categoria h2{
    margin: 0.5em;
    font-size: 1em;
}

#categoria a{
    margin: 0.5em;
    font-size: 0.9em;
}

#filtri form {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 1em;
}

#filtri select,
#filtri input[type="text"] {
    width: 100%;
    padding: 0.5em;
}

#filtri .invia-button {
    width: 100%;
    margin-top: 0.5em;
}

.menu-prodpercat h2 {
    padding: 0.5em 1em;
    width: 90%;
    font-size: 1.1em;
}

.pizza {
    flex-direction: column;
    width: 95%;
    text-align: center;
    padding-bottom: 1em;
}

.pizza img {
    width: 90%;
    height: auto;
    margin: 0.5em 0;
}

.pizza-testo {
    width: 100%;
    align-items: center;
    text-align: center;
}

.pizza-prezzo {
    width: auto;
    margin: 0.5em 0;
}

.order-actions {
    width: 100%;
    margin: 0.5em 0;
}

.quantity-controls {
    justify-content: center;
}

.quantity-controls button img,
.controlloQuantita button img {
    height: 1.2em;
    width: 1.2em;
}

.add-to-cart {
    width: 100%;
    margin: 0.5em 0;
}

.sez-intro {
    padding: 0.5em;
}

.menu-prodpercat {
    margin: 0.5em;
}

.pizza-testo h3 img {
    position: static;
    width: 1.2em;
    height: 1.2em;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

/*
============
CARRELLO
============
*/
.order-container {
    flex-direction: column;
    padding: 1em;
}

.order-form, .order-summary {
    min-width: 100%;
    margin: 1em 0;
}

.row {
    flex-direction: column;
    row-gap: 1em;
    column-gap: 0;
    align-items: flex-start;
    padding: 1em 0;
}

.dettaglioItem h4 {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5em;
}

.controlloQuantita {
    width: 100%;
    justify-content: space-between;
}

.controlloQuantita form {
    padding: 0 1em;
}

#proposta-mese #FM-content {
    padding: 1em 0;
    margin: 1em;
}

#proposta-mese #FM-content li img {
    height: 6em;
    margin-top: 1.5em;
}

#carrelloPage .messaggio {
    padding: 1em;
    margin-top: 0.5em;
}

#primadisp {
    font-size: 0.8em;
}

.order-summary h2 {
    font-size: 1.1em;
}