/*--------- Nascondere i div in mobile ---------- */
@media(max-width: 500px){
.nomobile{
    display:none;
    }
}

/*--------- Spazio tra un div ---------- */

@media only screen and (min-width: 481px) {
	.space10 {
	padding: 10px;
	}
	.space20 {
	padding: 20px;
	}
	.space20-article {
	padding: 20px 20px 20px 20px;
	}	
	.space30 {
	padding: 30px;
	}
	.space40 {
	padding: 40px;
	}
	.space50 {
	padding: 50px;
	}
	.space60 {
	padding: 60px;
	}
}
@media only screen and (max-width: 480px) {
	.space10 {
	padding: 5px;
	}
	.space20 {
	padding: 10px;
	}
	.space20-article {
	padding: 10px 10px 40px 10px;
	}
	.space30 {
	padding: 15px;
	}
	.space40 {
	padding: 20px;
	}
	.space50 {
	padding: 25px;
	}
	.space60 {
	padding: 30px;
	}
}

/*--------- Immagine responsive ---------- */
.responsive {
  width: 100%;
  height: auto;
}

/*--------- Inversione div in mobile ---------- */
 @media(max-width: 768px){
.invertdiv {
	display:flex;
	}
.invertdiv .a{
	order: 1
	}
.invertdiv .b{
	order: 2
	}
.invertdiv .c{
	order: 3
	}
.invertdiv .d{
	order: 4
	}
.invertdiv .e{
	order: 5
	}
.invertdiv .f{
	order: 6
	}
.invertdiv .g{
	order: 7
	}
.invertdiv .h{
	order: 8
	}
.invertdiv .i{
	order: 9
	}
}

/*--------- Controllo padding top ---------- */
{ 
  scroll-padding-top: 90px; /* = altezza navbar/sticky header */
  scroll-behavior: smooth;
}

/*--------- Modulo ordine Cocai ---------- */

  /* =============================
     AREA PRINCIPALE MODULO ORDINI
  ==============================*/
  #ordine {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  }

  /* =============================
     BLOCCO RIGHE ORDINE
  ==============================*/
  #righeContainer {
    position: relative; /* necessario per ::after */
  }

  #righeContainer.blurred {
    opacity: 0.4;
    pointer-events: none;
  }

  #righeContainer::after {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    color: #c00;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
  }

  /* =============================
     CAMPI FORM
  ==============================*/
  #ordineForm .form-select.input-lg.round,
  #ordineForm input.form-control {
    font-size: 16px;
    height: 54px;
    border-radius: 50px;
  }

  /* Campi cliente */
  #ordineForm input.campo-cliente {
    height: 64px;
    font-size: 17px;
    border-radius: 50px;
    padding: 0 22px;
    width: 100%;
  }

  /* Campo quantità */
  #ordineForm .campo-quantita {
    width: 90%;
    min-width: 70px;
    text-align: center;
  }

  /* Label */
  #ordineForm .form-group label {
    font-weight: 600;
    color: var(--color-dark-2);
    margin-bottom: 8px;
  }

  /* Pulsanti */
  #ordineForm .btn {
    min-width: 200px;
  }

  /* =============================
     RESPONSIVE DESIGN
  ==============================*/
  @media (max-width: 767px) {
    #ordine { padding: 30px 15px; }
    #ordineForm .col-md-4 { width: 100%; margin-bottom: 15px; }
  }
  
  @media (max-width: 991.98px) {
    #righeContainer .col-md-4,
    #righeContainer .col-md-2,
    #righeContainer .col-lg-1 {
      width: 100%;
      margin-bottom: 15px;
    }
    #ordineForm .text-end { text-align: center !important; }
    #ordineForm .btn {
      width: 100%;
      margin-bottom: 10px;
    }
  }

  @media (min-width: 992px) {
    #righeContainer .riga > .col-md-4,
    #righeContainer .riga > .col-md-2 {
      flex: 0 0 auto;
    }
  }

  @media (max-width: 575.98px) {
    #ordine { padding: 30px 10px; }
    #ordineForm .campo-cliente,
    #ordineForm .form-select.input-lg.round,
    #ordineForm input.form-control {
      font-size: 15px;
      height: 50px;
    }
  }

/* =============================
   RIEPILOGO ORDINE - RESPONSIVE
   =============================*/
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  margin-bottom: 1rem;
}
.table-responsive .table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}
.table-responsive th,
.table-responsive td {
  padding: 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 0.95rem;
}
#riepilogoOrdine {
  padding: 1rem 1.25rem;
  box-sizing: border-box;
}
#riepilogoOrdine h4 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}
#riepilogoOrdine .text-center .submit_btn {
  display: inline-block;
  min-width: 140px;
}
@media (max-width: 767.98px) {
  #riepilogoOrdine { padding: 0.75rem; }
  #riepilogoOrdine h4 { font-size: 1rem; }
  #riepilogoOrdine .text-center .submit_btn {
    display: block;
    width: 100%;
    margin: 0.4rem 0;
    box-sizing: border-box;
  }
  .table-responsive th,
  .table-responsive td {
    padding: 0.35rem 0.45rem;
    font-size: 0.92rem;
  }
  #riepilogoDati p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
  }
}
