/*Stile del menu top e bottom*/
.barra-pulsanti-top {
  display: flex;
  position: absolute;
  align-items: center;
  justify-content: space-around;
  top: 0;
  right: 0;
  left: 0;
}

.barra-pulsanti-bottom {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--colore-primario);
}

.bottone-menu {
  flex: 1;
  display: flex;
  align-items:center;
  justify-content: space-between;
  padding: 0.9rem 0.2rem;
  background-color: var(--colore-primario);
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

.bottone-menu.sx {
  justify-content: flex-start;
}

.bottone-menu.dx {
  justify-content: flex-end;
  text-align: right;
}

.bottone-menu .freccia {
  font-size: 1.2rem;
  display: inline-block;
  margin: 0 0.5rem;
}

.bottone-menu .testo {
  line-height: 1.2;
  display: inline-block;
}


/*Stile della scheda*/
.contenitore {
  margin: 1.1rem auto 1rem auto; /* margine sopra e sotto, auto ai lati per centrare */
  padding: 0.6rem;
  padding-bottom: 2.5rem;
  background-color: #fff;
  border-radius: 12px;
  text-align: center;
  max-width: 800px;      /* larghezza massima su desktop (puoi regolare) */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.contenitore p {
  color: #444;
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

.codice-vino {
  font-size: 0.8rem;
}

.titolo-vino {
  color:  #444;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0rem;
}

.info-vino {
  font-size: 1rem;
  line-height: 1.4rem;
  color: #444;
  list-style: none;
  padding: 0;
}

.info-vino li {
  margin-bottom: 10px;
}

.colonna-bottoni {  
margin-top: 1rem;
margin-bottom: 2rem;
}

.button-nsv-scheda {  
  display: inline-block;
  padding: 0.4rem 0.8rem 0.5rem 0.6rem;
  color: var(--colore-secondario);
  margin: 0.4rem;
  border: 2px solid var(--colore-secondario);
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

.button-nsv-shop {
  display: inline-block;
  padding: 0.3rem 1rem 0.6rem 0.7rem;
  background-color: var(--colore-primario);
  color: #fff;
  margin: 0.4rem;
  border: 2px solid var(--colore-primario);
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

.colonna-tabella {
  font-size: 1rem;
  line-height: 1.1rem;
  color: #444;
}

.colonna-tabella h3 {
  color:  #444;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0rem;
}


/* GESTIONE tabella nutrizionale */
.nutritional-table {
  width: 100%;
  max-width: 400px; /* la larghezza massima della tabella */
  margin: 1rem auto; /* centrata */
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid #ddd;
}

.nutritional-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.nutritional-table tr:last-child td {
  border-bottom: none;
}

.nutritional-table td:nth-child(2) {
  text-align: left;
}

.nutritional-table td:last-child {
  text-align: right;

}

.nutritional-table tr td[colspan="3"] {
  text-align: center;
  font-style: italic;
  font-size: 0.8rem;
  color: #666;
  background-color: #f9f9f9;
}


.button-YT {
  display: inline-block;
  padding: 0.7rem 1.2rem 0.6rem 0.8rem;
  background-color: transparent;
  color: var(--colore-primario);
  border: 2px solid var(--colore-primario);
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  margin-top: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.button-YT .testo {
  line-height: 1.1rem;
  display: inline-block;
}

/* GESTIONE PALLINI CARATTERISTICHE */

.colonna-pallini {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.3rem;
  margin-bottom: 1rem;
}

.caratteristica {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: relative;
  line-height: 1;
  margin-right: 0.5rem;
}

.caratteristica-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.caratteristica-testo {
  font-size: 0.9rem;
  color: #444;
  font-weight: 500;
}

/* Colori vino */
.pallino-rosso {
  background-color: rgb(139, 0, 0);
  margin-left: 0.15rem;
}

.pallino-giallo {
  background-color: rgb(255, 243, 149);
  margin-left: 0.15rem;
}

.pallino-rosato {
  background-color: rgb(255, 121, 155);
  margin-left: 0.15rem;
}

/* Tipo vino */
.pallino-fermo::before {
  content: "🟰"; 
  font-size: 1.2rem;
  display: block;
  line-height: 1.1;
}

.pallino-brioso::before {
  content: "🌀"; 
  font-size: 1.2rem;
  display: block;
  line-height: 1.1;
}

.pallino-frizzante:before {
  content: "🫧"; 
  font-size: 1.2rem;
  display: block;
  line-height: 1.1;
}

.pallino-spumante:before {
  content: "✨"; 
  font-size: 1.2rem;
  display: block;
  line-height: 1.1;
}

.emoji-gusti {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: flex-start; /* per allineare tutto a sinistra */
}

.icon-dolce::before {
  content: "🍬"; 
  font-size: 1.2rem;
  display: block;
}

.icon-amabile::before {
  content: "🌸"; 
  font-size: 1.2rem;
  display: block;
}

.icon-fruttato::before {
  content: "🍓"; 
  font-size: 1.2rem;
  display: block;
}

.icon-morbido::before {
  content: "🪶";
  font-size: 1.2rem;
  display: block;
}

.icon-semisecco::before {
  content: "🌗";
  font-size: 1.2rem;
  display: block;
}

.icon-secco::before {
  content: "⚡";
  font-size: 1.2rem;
  display: block;
}

.icon-minerale::before {
  content: "🪨"; 
  font-size: 1.2rem;
  display: block;
}

.icon-sapido::before {
  content: "🧂"; 
  font-size: 1.2rem;
  display: block;
}

.icon-erbaceo::before {
  content: "🌿"; 
  font-size: 1.2rem;
  display: block;
}

.icon-legno::before {
  content: "🪵";
  font-size: 1.2rem;
  display: block;
}

.icon-strutturato::before {
  content: "🧱";
  font-size: 1.2rem;
  display: block;
}

/*Box sul VVI e divieti*/
.contenitore2 {
  margin: 0rem auto 2rem auto; /* margine sopra e sotto, auto ai lati per centrare */
  padding: 0.6rem;
  padding-bottom: 2.5rem;
  background-color: #fff;
  border-radius: 12px;
  text-align: center;
  max-width: 800px;      /* larghezza massima su desktop (puoi regolare) */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.contenitore2 p {
  color: #444;
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

.sezione-VVI {
  margin: 0.5rem auto 1rem auto; /* margine sopra e sotto, auto ai lati per centrare */
  padding: 0.6rem;
  padding-bottom: 1rem;
  border: 2px solid #02D102;
  border-radius: 12px;
  text-align: center;
  max-width: 800px;      /* larghezza massima su desktop (puoi regolare) */
}

.sezione-VVI img {
  margin: 0.5rem auto 1rem auto; /* margine sopra e sotto, auto ai lati per centrare */
  padding: 0.6rem;
  text-align: center;
  max-width: 250px;      /* larghezza massima su desktop (puoi regolare) */
}

/* GESTIONE tabella smaltimento */
.bin-table {
  width: 100%;
  max-width: 400px; /* la larghezza massima della tabella */
  margin: 1rem auto; /* centrata */
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid #ddd;
}

.bin-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.bin-table tr:last-child td {
  border-bottom: none;
}

.bin-table td:nth-child(2) {
  text-align: left;
}

.bin-table td:last-child {
  text-align: right;
}
