/* Menu Acqua e Farina — dentro la pagina del sito, con lo stile del sito
   (Poppins, azzurro #57BBDA, arancio del menu #F69F0F, testo nero su bianco).
   Tutto e' sotto .afm per non toccare il resto della pagina; niente <button> per non ereditare
   lo stile dei pulsanti del tema. */
.afm {
  --azzurro: #57BBDA;
  --azzurro-scuro: #2F9BBD;
  --arancio: #F69F0F;
  --sabbia: #E2BF92;
  --nero: #000;
  --testo: #4F4F4F;
  --grigio: #8A8A8A;
  --chiaro: #F4F4F4;
  --linea: #EEEEEE;
  --bianco: #FFFFFF;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font);
  color: var(--nero);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
.afm *, .afm *::before, .afm *::after { box-sizing: border-box; }
.afm [role="button"] { cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; outline-offset: 2px; }
.afm svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
.afm p { margin: 0; }
.afm h2, .afm h3 { font-family: var(--font); letter-spacing: normal; }

#af-menu { --lato: 1rem; max-width: 1200px; margin: 2rem auto; padding: 0 var(--lato); overflow-x: clip; }
@media (max-width: 600px) { #af-menu { --lato: 12px; margin-top: 1rem; } }

/* ============ BARRA IN ALTO (resta attaccata mentre si scorre) ============ */
.afm .barra {
  position: sticky; top: 0; z-index: 30;
  background: var(--bianco);
  border-bottom: 2px solid var(--nero);
  margin: 0 calc(-1 * var(--lato));
  padding: 0 var(--lato);
}
.afm .barra-riga { display: flex; align-items: center; gap: 8px; }
.afm .sezioni { flex: 1; overflow-x: auto; scrollbar-width: none; position: relative; }
.afm .sezioni::-webkit-scrollbar { display: none; }
.afm .sezioni-riga { display: flex; position: relative; width: max-content; min-width: 100%; }
.afm .sezione-tab {
  padding: 16px 12px 14px;
  font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  color: var(--grigio); white-space: nowrap;
  transition: color .25s;
}
.afm .sezione-tab.attiva { color: var(--nero); }
.afm .indicatore {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--arancio); width: 40px;
  will-change: transform, width;
}
.afm .azioni { display: flex; gap: 4px; flex: none; }
.afm .tondo {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--nero);
  transition: background .2s, color .2s;
}
.afm .tondo:hover { color: var(--arancio); }
.afm .pillole { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 12px; }
.afm .pillole::-webkit-scrollbar { display: none; }
.afm .pillola {
  flex: none;
  padding: 7px 14px; border-radius: 30px;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  background: var(--chiaro); color: var(--testo);
  transition: background .2s, color .2s;
}
.afm .pillola.attiva { background: var(--azzurro); color: var(--bianco); }

/* ============ SCHEDE CHE SCORRONO DI LATO ============ */
.afm .binario {
  display: flex; align-items: flex-start;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  transition: height .35s ease;
  margin: 0 calc(-1 * var(--lato));
}
.afm .binario::-webkit-scrollbar { display: none; }
.afm .pannello { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; padding: 0 var(--lato) 1rem; min-width: 0; }

/* ============ CATEGORIE E PIATTI (come il menu attuale del sito) ============ */
.afm .categoria { scroll-margin-top: 120px; }
.afm .categoria > h2 {
  text-align: center; text-transform: uppercase;
  color: var(--nero); font-size: 2rem; font-weight: 700; line-height: 1.2;
  margin: 2.5rem 0 1rem; padding-bottom: 10px;
  border-bottom: 2px solid var(--arancio);
}
.afm .titoletto {
  color: var(--azzurro); font-size: 1.1rem; font-weight: 700; text-transform: uppercase;
  margin: 1.8rem 0 .2rem;
}
.afm .nota {
  background: #F9F9F9; border: 1px solid var(--linea); border-radius: 15px;
  padding: 1rem 1.2rem; margin: 1rem 0;
  font-size: .95rem; line-height: 1.5; color: var(--testo);
}
.afm .nota b.nota-t { display: block; color: var(--nero); font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; text-transform: uppercase; }
.afm .nota strong { color: var(--nero); }
.afm .nota .allergeni { margin: 6px 0 2px; }

/* 4 impasti biologici: schede con la sezione dell'impasto */
.afm .impasti { margin: 1rem 0 .6rem; }
.afm .impasti .nota-t { display: block; color: var(--azzurro); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }
.afm .imp-intro { margin: 2px 0 .9rem; color: var(--testo); font-size: .95rem; }
/* telefono: schede a scorrimento orizzontale, cosi' le pizze non finiscono tre schermate piu' giu' */
.afm .imp-griglia {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin;
}
.afm .imp-griglia > .imp { scroll-snap-align: start; }
@media (min-width: 600px) {
  .afm .imp-griglia { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; }
}
.afm .imp {
  display: flex; flex-direction: column; gap: 6px;
  background: #FCFAF6; border: 1px solid #F0E8DA; border-radius: 15px; padding: 14px 16px 12px;
}
.afm .imp-foto { width: 100%; max-width: 220px; height: auto; aspect-ratio: 4 / 3; object-fit: contain; margin: 0 auto 4px; display: block; mix-blend-mode: multiply; }
.afm .imp-svg { width: 100%; max-width: 200px; height: auto; margin: 2px auto 6px; display: block; }
.afm .imp-nome { color: var(--nero); font-size: 1.05rem; font-weight: 700; text-transform: uppercase; line-height: 1.25; }
.afm .imp-tag { display: flex; flex-wrap: wrap; gap: 5px; }
.afm .imp-tag span {
  font-size: .75rem; font-weight: 600; color: #8A5A12; background: color-mix(in srgb, var(--arancio) 14%, white);
  border-radius: 999px; padding: 2px 9px;
}
.afm .imp-testo { margin: 2px 0 0; font-size: .9rem; line-height: 1.5; color: var(--testo); flex: 1; }
.afm .imp-all { margin-top: 4px; }
.afm .imp-all .all-btn { width: 26px; height: 26px; }
.afm .imp-all .all-btn svg.i { width: 15px; height: 15px; }

.afm .piatto { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.4rem 0; border-bottom: 1px solid var(--linea); }
.afm .piatto:last-child { border-bottom: 0; }
.afm .mini {
  flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--chiaro); color: var(--azzurro);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .1);
  overflow: hidden;
}
.afm .mini img { width: 100%; height: 100%; object-fit: cover; }
.afm .mini svg.i { width: 34px; height: 34px; stroke-width: 1.5; }
.afm .piatto-corpo { flex: 1; min-width: 0; }
.afm .piatto-testa { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.afm .piatto-nome { color: var(--azzurro); font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.afm .prezzo { color: var(--azzurro); font-size: 1.35rem; font-weight: 700; white-space: nowrap; }
.afm .piatto-desc { color: var(--nero); font-size: 1rem; line-height: 1.45; margin: .45rem 0 0; white-space: pre-line; }
.afm .formati { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.afm .formato {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--chiaro); padding: 5px 12px; border-radius: 15px;
  font-size: .88rem; color: #333; border-left: 3px solid var(--arancio);
}
.afm .formato b { font-weight: 700; }
.afm .piatto-piede { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.afm .bollini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.afm .bollino {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 6px; border-radius: 30px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, white);
}
.afm .bollino svg.i { width: 16px; height: 16px; }
/* Fra 09/11: bollino "Dal Brusignone" col timbro, come sulla carta */
.afm .timbro { position: relative; display: inline-block; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #8A5A3A; }
.afm .timbro::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: #FFFBF3; }
.afm .timbro img { position: absolute; left: 50%; top: 52%; width: 74%; height: auto; transform: translate(-50%, -50%); display: block; }
.afm .bollino.bollino-img { padding: 2px 11px 2px 2px; gap: 6px; font-weight: 700; letter-spacing: .04em; background: #F4E9D8; box-shadow: inset 0 0 0 1px #DCC6A6; }
.afm .bolla-t .timbro { width: 30px; height: 30px; }

.afm .allergeni { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.afm .all-btn {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, white);
  transition: transform .15s;
}
.afm .all-btn svg.i { width: 17px; height: 17px; stroke-width: 1.7; }
.afm .all-btn:active { transform: scale(.88); }
.afm .all-testo { font-size: .85rem; color: #666; }
.afm .mini-all .all-btn { width: 22px; height: 22px; }
.afm .mini-all .all-btn svg.i { width: 13px; height: 13px; }

.afm .scheda-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px 7px 11px; border-radius: 30px;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  color: var(--bianco); background: var(--azzurro);
  transition: background .2s, transform .15s;
}
.afm .scheda-btn:hover { background: var(--azzurro-scuro); }
.afm .scheda-btn:active { transform: scale(.95); }
.afm .scheda-btn svg.i { width: 16px; height: 16px; }

@media (max-width: 600px) {
  .afm .categoria > h2 { font-size: 1.6rem; }
  .afm .piatto { gap: .9rem; }
  .afm .mini { flex-basis: 56px; width: 56px; height: 56px; }
  .afm .mini svg.i { width: 28px; height: 28px; }
  .afm .piatto-nome, .afm .prezzo { font-size: 1.1rem; }
  .afm .piatto-desc { font-size: .92rem; }
  .afm .sezione-tab { font-size: 14px; padding: 14px 10px 12px; }
}

/* ============ FONDO: recensione e contatti (come il sito) ============ */
.afm .fondo { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--linea); }
.afm .recensione-box { padding: 2rem; background: #F9F9F9; border: 1px solid var(--linea); border-radius: 15px; text-align: center; }
.afm .recensione-box h4 { color: var(--nero); font-size: 1.3rem; margin: 0 0 1rem; font-family: var(--font); }
.afm .contatti { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 1rem; }
.afm .contatto, .afm .bottone-nero {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 18px; border-radius: 10px;
  font-weight: 600; color: #fff !important; text-decoration: none !important;
}
.afm .contatto svg.i { width: 18px; height: 18px; }
.afm .contatto.whatsapp { background: #25D366; }
.afm .contatto.telefono { background: var(--nero); }
.afm .contatto.mappa { background: #4285F4; }
.afm .bottone-nero { display: inline-flex; background: var(--nero); border-radius: 30px; padding: 12px 30px; }

/* ============ STRATI SOPRA LA PAGINA ============ */
.afm.strato { position: fixed; z-index: 99990; }

.afm.bolla {
  max-width: 270px;
  background: var(--nero); color: #fff;
  border-radius: 12px; padding: 12px 14px;
  font-size: 13px; line-height: 1.45;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(6px) scale(.96);
  transition: opacity .16s, transform .16s;
  pointer-events: none; z-index: 99999;
}
.afm.bolla.aperta { opacity: 1; transform: none; pointer-events: auto; }
.afm .bolla-t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.afm .bolla-t .num { font-size: 11px; opacity: .6; font-weight: 500; }
.afm .bolla-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }
.afm .bolla-ico svg.i { width: 16px; height: 16px; }
.afm.bolla::after { content: ""; position: absolute; left: var(--freccia, 20px); width: 12px; height: 12px; background: var(--nero); transform: rotate(45deg); }
.afm.bolla.sotto::after { top: -5px; }
.afm.bolla.sopra::after { bottom: -5px; }

.afm.velo { inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; }
.afm.velo.aperto { opacity: 1; }

.afm.scheda {
  left: 50%; max-width: min(720px, 100vw); bottom: 0; z-index: 99995;
  width: 100%; max-width: 720px; height: 92dvh;
  background: var(--bianco);
  border-radius: 18px 18px 0 0;
  transform: translate(-50%, 100%);
  transition: transform .38s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; overflow: hidden;
}
.afm.scheda.aperta { transform: translate(-50%, 0); }
.afm .scheda-maniglia { position: absolute; top: 8px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 5px; background: rgba(0, 0, 0, .2); z-index: 3; }
.afm .scheda-chiudi { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.afm .scheda-corpo { overflow-y: auto; flex: 1; overscroll-behavior: contain; }

.afm .palco {
  position: relative; height: min(42dvh, 360px);
  background: linear-gradient(#FFFFFF 0%, #FFFFFF 58%, #F1F1F1 100%);
  touch-action: none; overflow: hidden;
}
.afm .palco canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.afm .palco canvas:active { cursor: grabbing; }
.afm .palco-etichetta, .afm .palco-aiuto {
  position: absolute; bottom: 12px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--testo); background: rgba(255, 255, 255, .85); padding: 5px 10px; border-radius: 30px;
  display: inline-flex; align-items: center; gap: 6px;
}
.afm .palco-etichetta { left: 14px; }
.afm .palco-aiuto { right: 14px; transition: opacity .4s; }
.afm .palco-aiuto svg.i { width: 14px; height: 14px; }
.afm .palco-carica { position: absolute; inset: 0; display: grid; place-items: center; color: var(--testo); font-size: 14px; }
.afm .palco-carica::before {
  content: ""; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #DDEFF5; border-top-color: var(--azzurro);
  animation: afm-gira .8s linear infinite; position: absolute; top: calc(50% - 40px);
}
@keyframes afm-gira { to { transform: rotate(360deg); } }

.afm .scheda-info { padding: 18px 20px 6px; }
.afm .scheda-cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--arancio); }
.afm .scheda-info h3 { color: var(--azzurro); font-size: 1.7rem; line-height: 1.15; font-weight: 700; margin: 4px 0 0; }
.afm .scheda-info .piatto-desc { margin-top: 8px; }

.afm .scheda-tab { display: flex; gap: 4px; padding: 12px 20px 0; position: sticky; top: 0; background: var(--bianco); z-index: 2; border-bottom: 2px solid var(--nero); }
.afm .scheda-tab [role="button"] { padding: 10px 12px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--grigio); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.afm .scheda-tab [role="button"].attiva { color: var(--nero); border-bottom-color: var(--arancio); }
.afm .scheda-pannello { padding: 18px 20px 40px; }

/* valori nutrizionali */
.afm .nutri-testa { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.afm .nutri-anello { position: relative; width: 140px; height: 140px; flex: none; }
.afm .nutri-anello svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.afm .nutri-anello circle.pieno { transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.afm .nutri-anello .val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.afm .nutri-anello .val b { font-size: 34px; font-weight: 700; color: var(--nero); line-height: 1; }
.afm .nutri-anello .val span { font-size: 12px; color: var(--grigio); font-weight: 600; text-transform: uppercase; }
.afm .nutri-info { flex: 1; min-width: 180px; }
.afm .nutri-info .porzione { font-size: 15px; font-weight: 600; }
.afm .nutri-info .fabbisogno { font-size: 14px; color: var(--testo); margin-top: 4px; }
.afm .stima { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 30px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #FFF3DE; color: #B56F00; }
.afm .stima svg.i { width: 14px; height: 14px; }
.afm .nbarre { display: grid; gap: 14px; margin-top: 22px; }
.afm .nbarra-t { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-bottom: 6px; }
.afm .nbarra-t span { font-weight: 600; }
.afm .nbarra-t b { font-weight: 700; }
.afm .nbarra-t small { color: var(--grigio); font-weight: 500; margin-left: 6px; }
.afm .nbarra { height: 10px; border-radius: 10px; background: var(--chiaro); overflow: hidden; }
.afm .nbarra i { display: block; height: 100%; border-radius: 10px; background: var(--c); width: 0; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.afm .avviso { font-size: 12px; color: var(--grigio); margin-top: 18px; line-height: 1.5; }

/* allergeni nella scheda */
.afm .riassunto { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.afm .riassunto b { color: var(--nero); }
.afm .griglia-all { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.afm .tessera {
  border-radius: 12px; padding: 12px 6px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  font-size: 12px; font-weight: 600; line-height: 1.2;
  background: var(--chiaro); color: var(--grigio); opacity: .5;
}
.afm .tessera .all-btn { filter: grayscale(1); }
.afm .tessera.si { opacity: 1; color: var(--nero); background: color-mix(in srgb, var(--c) 10%, white); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, white); }
.afm .tessera.si .all-btn { filter: none; }

/* ricerca */
.afm.ricerca { inset: 0; z-index: 99992; background: var(--bianco); display: flex; flex-direction: column; opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.afm.ricerca.aperta { opacity: 1; transform: none; pointer-events: auto; }
.afm .ricerca-in { max-width: 900px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; height: 100%; }
.afm .ricerca-barra { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 2px solid var(--nero); }
.afm .ricerca-barra label { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--chiaro); border-radius: 30px; padding: 0 18px; margin: 0; }
.afm .ricerca-barra input[type="search"] {
  flex: 1; border: 0 !important; outline: 0; background: none !important; box-shadow: none !important;
  font: 500 16px var(--font) !important; padding: 12px 0 !important; color: #333; margin: 0; min-width: 0;
}
.afm .ricerca-filtri { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; align-items: center; }
.afm .ricerca-filtri::-webkit-scrollbar { display: none; }
.afm .filtro-t { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--testo); }
.afm .filtro { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 30px; font-size: 13px; background: var(--chiaro); color: var(--testo); }
.afm .filtro .all-btn { width: 22px; height: 22px; }
.afm .filtro .all-btn svg.i { width: 13px; height: 13px; }
.afm .filtro.attivo { background: var(--nero); color: #fff; text-decoration: line-through; }
.afm .ricerca-lista { flex: 1; overflow-y: auto; padding: 0 16px 40px; }
.afm .ricerca-vuota { text-align: center; color: var(--grigio); padding: 40px 0; }
.afm .ricerca-conta { font-size: 12px; color: var(--grigio); padding: 10px 0 0; }

/* legenda */
.afm .legenda-voce { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.afm .legenda-voce b { display: block; font-size: 15px; }
.afm .legenda-voce span.d { font-size: 13px; color: var(--testo); line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  .afm, .afm * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.afm [hidden] { display: none !important; }
/* anche con una sola categoria la riga delle pillole resta: la barra non cambia altezza */

/* ============ PIATTI A BLOCCHI, CON FOTO ============ */
.afm .categoria > h2 { margin-bottom: 1.2rem; }
.afm .piatto {
  background: var(--bianco);
  border: 1px solid #E6E6E6; border-radius: 14px;
  padding: 14px; margin: 0 0 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .04);
  gap: 14px;
}
.afm .piatto:last-child { border-bottom: 1px solid #E6E6E6; }
.afm .mini {
  flex: 0 0 104px; width: 104px; height: 104px; border-radius: 10px;
  box-shadow: none; position: relative; background: #F1F8FB;
}
.afm .mini.con-foto { background: var(--chiaro); }
.afm .mini img { border-radius: 10px; transition: transform .35s ease; }
.afm .piatto:hover .mini img { transform: scale(1.05); }
.afm .mini-video {
  position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center;
}
.afm .mini-video svg.i { width: 13px; height: 13px; stroke: none; }
.afm .nota { margin: 0 0 12px; }
.afm .titoletto { margin: 1.6rem 0 .8rem; }
@media (max-width: 600px) {
  .afm .piatto { padding: 12px; gap: 12px; }
  .afm .mini { flex-basis: 84px; width: 84px; height: 84px; }
  .afm .mini svg.i { width: 34px; height: 34px; }
}
.afm .palco-video { background: #ECECEC; }
.afm .palco-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.afm .crediti { margin-top: 18px; font-size: 12px; color: var(--testo); }
.afm .crediti summary { cursor: pointer; font-weight: 600; }
.afm .crediti ul { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 4px; }
.afm .crediti a { color: var(--azzurro-scuro); word-break: break-word; }

/* ============ ELENCO PULITO: niente allergeni, tasto "i" ============ */
.afm .piatto-piede { margin-top: 10px; align-items: flex-end; flex-wrap: nowrap; }
.afm .piatto-piede .bollini { margin-top: 0; }
.afm .info-btn {
  flex: none; margin-left: auto;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--azzurro); background: var(--bianco);
  box-shadow: inset 0 0 0 1.5px var(--azzurro);
  transition: background .2s, color .2s, transform .15s;
}
.afm .info-btn svg.i { width: 22px; height: 22px; stroke-width: 2; }
.afm .info-btn:hover { background: var(--azzurro); color: var(--bianco); }
.afm .info-btn:active { transform: scale(.92); }
.afm .nota-all { font-size: .82rem; color: var(--grigio); white-space: nowrap; }
.afm .aggiunte { margin-top: 18px; display: grid; gap: 8px; }
.afm .aggiunte > b { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.afm .aggiunta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--linea); }

/* foto dell'elenco piu' grandi (+50%) e tutta la foto apre la scheda */
.afm .mini { flex: 0 0 156px; width: 156px; height: 156px; border-radius: 12px; cursor: pointer; }
.afm .mini img { border-radius: 12px; pointer-events: none; }
.afm .mini svg.i { width: 48px; height: 48px; }
.afm .mini-video { width: 34px; height: 34px; right: 8px; bottom: 8px; }
.afm .mini-video svg.i { width: 16px; height: 16px; }
@media (max-width: 600px) {
  .afm .mini { flex-basis: 126px; width: 126px; height: 126px; }
  .afm .mini svg.i { width: 42px; height: 42px; }
}
@media (max-width: 380px) {
  .afm .mini { flex-basis: 108px; width: 108px; height: 108px; }
}

/* descrizione: due righe nell'elenco, completa e raccontata nella scheda */
.afm .piatto .piatto-desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden;
}
.afm .scheda-racconto { font-size: 1.05rem; line-height: 1.6; color: #222; margin: 10px 0 0; max-width: 62ch; text-wrap: pretty; }
.afm .scheda-ingredienti { margin-top: 12px; }
.afm .scheda-ingredienti span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grigio); margin-bottom: 3px; }
.afm .scheda-ingredienti p { font-size: 1rem; line-height: 1.55; color: var(--testo); white-space: pre-line; margin: 0; }
.afm .scheda-racconto { font-style: normal; font-size: 1.02rem; line-height: 1.65; }
.afm .scheda-ingredienti { padding-top: 12px; border-top: 1px dashed rgba(0,0,0,.15); margin-top: 14px; }
/* Fra 06/11: frase del piatto nell'elenco, mai oltre due righe */
.afm .piatto .piatto-gancio { color: #333; text-wrap: pretty; }

/* video del piatto: intero, sul fondo grigio chiaro dello studio del video */
.afm .palco-video { background: linear-gradient(#EEF0F2, #DADADA); }
.afm .palco-video video { object-fit: contain; }

/* allergeni della scheda compatti: pastiglie su tre colonne, niente scrolling */
.afm .scheda-pannello { padding-top: 14px; }
.afm .riassunto { font-size: 14px; margin-bottom: 10px; }
.afm .griglia-all { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.afm .tessera {
  flex-direction: row; justify-content: flex-start; gap: 6px;
  padding: 5px 8px 5px 5px; border-radius: 30px;
  font-size: 12px; line-height: 1.15; text-align: left; min-height: 34px;
}
.afm .tessera .all-btn { width: 24px; height: 24px; flex: none; }
.afm .tessera .all-btn svg.i { width: 14px; height: 14px; }
.afm .tessera.si { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, white); }
.afm .griglia-all + .aggiunte, .afm .aggiunte { margin-top: 12px; }
.afm .scheda-pannello .avviso { margin-top: 10px; }
@media (min-width: 640px) { .afm .griglia-all { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* sopra al traduttore flottante del sito */
.afm.velo { z-index: 2147483600; }
.afm.scheda, .afm.ricerca { z-index: 2147483640; }
.afm.bolla { z-index: 2147483646; }

/* linguette Allergeni / Valori nutrizionali: due grandi pulsanti ben visibili */
.afm .scheda-tab {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 12px 20px; border-bottom: 1px solid var(--linea);
  box-shadow: 0 6px 12px -10px rgba(0, 0, 0, .25);
}
.afm .scheda-tab [role="button"] {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0; padding: 12px 10px; border: 0; border-radius: 12px;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; text-align: center;
  color: var(--nero); background: var(--chiaro);
  box-shadow: inset 0 0 0 1.5px #DDDDDD;
  transition: background .2s, color .2s, box-shadow .2s;
}
.afm .scheda-tab [role="button"] svg.i { width: 18px; height: 18px; }
.afm .scheda-tab [role="button"].attiva {
  color: var(--bianco); background: var(--azzurro);
  box-shadow: 0 4px 12px rgba(87, 187, 218, .45);
}
@media (max-width: 380px) { .afm .scheda-tab [role="button"] { font-size: 12px; padding: 11px 6px; } }

/* ============ IMPASTI ============ */
.afm .impasti {
  margin: 0 0 16px; padding: 18px 16px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, #FBF3E6 0%, #F6ECDC 100%);
  border: 1px solid #EEDFC6;
}
.afm .impasti-testa { text-align: center; margin-bottom: 14px; }
.afm .impasti-occhiello { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #B7791F; }
.afm .impasti-testa h3 { margin: 2px 0 0; font-size: 1.6rem; font-weight: 700; text-transform: uppercase; color: var(--nero); text-wrap: balance; }
.afm .impasti-griglia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.afm .impasti-griglia[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 760px) { .afm .impasti-griglia[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .afm .impasti-griglia, .afm .impasti-griglia[data-n="3"] {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 2px 16px 6px; gap: 10px;
  }
  .afm .impasti-griglia::-webkit-scrollbar { display: none; }
  .afm .impasto { flex: 0 0 78%; scroll-snap-align: start; }
  .afm .impasti-griglia[data-n="2"] { display: grid; grid-template-columns: 1fr; margin: 0; padding: 0; }
}
.afm .impasto {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: var(--bianco); border-radius: 14px; padding: 14px;
  box-shadow: 0 1px 2px rgba(120, 80, 20, .08), 0 6px 16px rgba(120, 80, 20, .08);
  border-top: 4px solid var(--t);
}
.afm .impasto-top { display: flex; align-items: center; justify-content: space-between; }
.afm .impasto-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--t); background: color-mix(in srgb, var(--t) 14%, white); }
.afm .impasto-ico svg.i { width: 22px; height: 22px; }
.afm .impasto-num { font-size: 11px; font-weight: 700; color: var(--grigio); letter-spacing: .06em; text-transform: uppercase; }
.afm .impasto h4 { margin: 0; font-size: 1.05rem; font-weight: 700; text-transform: uppercase; line-height: 1.2; color: var(--nero); font-family: var(--font); }
.afm .impasto-punti { display: flex; flex-wrap: wrap; gap: 4px; }
.afm .impasto-punti span { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 30px; color: color-mix(in srgb, var(--t) 65%, black); background: color-mix(in srgb, var(--t) 14%, white); }
.afm .impasto p { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--testo); }
.afm .impasto-all { margin-top: auto; padding-top: 8px; border-top: 1px dashed #E6E0D6; font-size: 11px; color: var(--grigio); }
.afm .impasti-poi { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #B7791F; }
.afm .impasti-poi svg.i { width: 16px; height: 16px; animation: afm-giu 1.6s ease-in-out infinite; }
@keyframes afm-giu { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* foto dei piatti scontornate su bianco: niente riquadro, il piatto "appoggiato" sulla scheda */
.afm .mini, .afm .mini.con-foto { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.afm .mini img { border-radius: 0; object-fit: contain; transition: transform .35s ease; }
.afm .piatto:hover .mini img { transform: scale(1.06) rotate(-2deg); }
.afm .mini:not(.con-foto) { background: #F4FAFC; border-radius: 50%; }

/* pizze: foto orizzontali su bianco, spazio foto piu' largo */
.afm .mini.larga { flex: 0 0 190px; width: 190px; height: auto; aspect-ratio: 640 / 280; align-self: center; }
@media (max-width: 600px) { .afm .mini.larga { flex-basis: 150px; width: 150px; } }
@media (max-width: 380px) { .afm .mini.larga { flex-basis: 124px; width: 124px; } }

.afm .mini.larga { flex-basis: 230px; width: 230px; }
@media (max-width: 600px) { .afm .mini.larga { flex-basis: 178px; width: 178px; } }
@media (max-width: 380px) { .afm .mini.larga { flex-basis: 140px; width: 140px; } }

/* TEST: video che ruota direttamente nell'elenco (Margherita) */
.afm .mini .mini-vid { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }  /* il video dell'elenco ha gia' il fondo bianco pieno */

/* foto statica nella scheda (15/09: al posto di 3D e video) */
.afm .palco-foto { background: #fff; }
.afm .palco-video { background: #fff; }  /* palco-video piatto vero (17/09): i video hanno gia' il fondo bianco */
.afm .palco-foto img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* scheda con le scritte del menu originale (15/09) */
.afm .scheda-prezzo { color: var(--azzurro); font-size: 1.25rem; font-weight: 700; margin-top: 4px; }
.afm .scheda-desc { font-size: 1rem; line-height: 1.5; color: var(--nero); white-space: pre-line; margin: 10px 0 0; }
.afm .scheda-info .formati { margin-bottom: 4px; }
.afm .scheda-pannello .riassunto { margin-top: 6px; }

/* 17/09: icona provvisoria al posto della foto di esempio (niente sfondo ne' riquadro, come i video su bianco) */
.afm .mini.larga:not(.con-foto) { background: transparent; border-radius: 0; box-shadow: none; display: flex; align-items: center; justify-content: center; }
.afm .mini .mini-ico { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--azzurro); }
.afm .mini .mini-ico svg.i { width: 64px; height: 64px; stroke-width: 1.15; }
@media (max-width: 600px) { .afm .mini .mini-ico svg.i { width: 52px; height: 52px; } }
.afm .palco-icona { background: #fff; display: flex; align-items: center; justify-content: center; color: var(--azzurro); }
.afm .palco-icona svg.i { width: 34%; height: auto; max-height: 70%; stroke-width: .9; }
/* 17/09: su telefono l'icona non ha bisogno dello spazio largo dei video: piu' posto al nome */
@media (max-width: 600px) {
  .afm .mini.larga:not(.con-foto):has(.mini-ico) { flex-basis: 84px; width: 84px; }
  .afm .mini .mini-ico svg.i { width: 46px; height: 46px; }
}

/* ============ 05/11 SMARTPHONE: CARD CON VIDEO PROTAGONISTA ============
   Fra: "il 90% lo guardera da smartphone", "i video sono fighi". Su telefono il piatto col video
   diventa una card verticale: video a tutta larghezza, prezzo e 360° sopra il video, nome max 2 righe. */
.afm .giro-360, .afm .prezzo-video { display: none; }
@media (max-width: 600px) {
  .afm .piatto.con-video {
    display: block; padding: 0; overflow: hidden;
    border-radius: 18px; border-color: #EDEDED;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 10px 24px rgba(0, 0, 0, .06);
    margin-bottom: 16px;
  }
  .afm .piatto.con-video > .mini.larga {
    display: block; position: relative; width: 100%; height: auto; flex: none;
    aspect-ratio: 2 / 1; background: #fff; border-radius: 0;
  }
  .afm .piatto.con-video .mini-vid { width: 100%; height: 100%; object-fit: cover; }
  .afm .piatto.con-video .giro-360 {
    display: inline-flex; align-items: center; position: absolute; left: 12px; top: 12px;
    padding: 4px 9px; border-radius: 30px;
    font: 700 11px/1 var(--font); letter-spacing: .06em; color: var(--azzurro);
    background: rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 1.5px var(--azzurro);
  }
  .afm .piatto.con-video .prezzo-video {
    display: inline-flex; align-items: center; position: absolute; right: 12px; bottom: 12px;
    padding: 7px 13px; border-radius: 30px;
    font: 700 1rem/1 var(--font); color: #fff; background: var(--azzurro);
    box-shadow: 0 4px 12px rgba(87, 187, 218, .45);
  }
  .afm .piatto.con-video .piatto-corpo { padding: 12px 16px 14px; border-top: 1px solid #F1F1F1; }
  .afm .piatto.con-video .piatto-testa { display: block; }
  .afm .piatto.con-video .piatto-testa .prezzo { display: none; }
  .afm .piatto.con-video .piatto-nome {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
    font-size: 1.15rem; line-height: 1.25; text-align: left; text-wrap: balance;
  }
  .afm .piatto.con-video .piatto-nome.lungo { font-size: 1rem; }
  .afm .piatto.con-video .piatto-nome.lunghissimo { font-size: .92rem; }
  /* descrizione e tasto info sulla stessa riga */
  .afm .piatto.con-video .piatto-corpo { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: end; }
  .afm .piatto.con-video .piatto-testa { grid-column: 1 / -1; }
  .afm .piatto.con-video .piatto-desc { grid-column: 1; margin-top: 4px; font-size: .92rem; color: #444; }
  .afm .piatto.con-video .formati { grid-column: 1 / -1; grid-row: 4; }
  .afm .piatto.con-video .piatto-piede { grid-column: 2; grid-row: 2; margin: 0; }
  .afm .piatto.con-video .piatto-piede .bollini:empty { display: none; }
  .afm .piatto.con-video .info-btn { width: 34px; height: 34px; }
}
@media (max-width: 340px) {
  .afm .piatto.con-video .piatto-nome.lungo { font-size: .9rem; }
  .afm .piatto.con-video .piatto-nome.lunghissimo { font-size: .82rem; }
}
/* 05/11: piatti senza video su telefono: icona piccola, piu' spazio al nome */
@media (max-width: 600px) {
  .afm .piatto:not(.con-video) { gap: 10px; padding: 12px 14px; border-radius: 16px; }
  .afm .piatto:not(.con-video) > .mini.larga:not(.con-foto):has(.mini-ico),
  .afm .piatto:not(.con-video) > .mini:not(.con-foto) { flex: 0 0 48px; width: 48px; height: 48px; align-self: flex-start; margin-top: 2px; }
  .afm .piatto:not(.con-video) .mini .mini-ico svg.i { width: 40px; height: 40px; }
  .afm .piatto:not(.con-video) .piatto-testa { gap: 10px; }
  .afm .piatto:not(.con-video) .piatto-nome { font-size: 1.05rem; line-height: 1.25; }
  .afm .piatto:not(.con-video) .prezzo { font-size: 1.05rem; }
  .afm .piatto:not(.con-video) .piatto-desc { font-size: .9rem; color: #444; }
  .afm .piatto:not(.con-video) .info-btn { width: 34px; height: 34px; }
}
@media (max-width: 600px) {
  .afm .piatto:not(.con-video) {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto;
    column-gap: 12px; row-gap: 6px; align-items: start;
  }
  .afm .piatto:not(.con-video) > .piatto-corpo,
  .afm .piatto:not(.con-video) .piatto-testa { display: contents; }
  .afm .piatto:not(.con-video) .piatto-nome {
    grid-column: 1 / 3; grid-row: 1; text-align: left; text-wrap: balance;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  }
  .afm .piatto:not(.con-video) .piatto-nome.lungo { font-size: .95rem; }
  .afm .piatto:not(.con-video) .piatto-nome.lunghissimo { font-size: .88rem; }
  .afm .piatto:not(.con-video) .prezzo { grid-column: 3; grid-row: 1; }
  .afm .piatto:not(.con-video) > .mini,
  .afm .piatto:not(.con-video) > .mini.larga:not(.con-foto):has(.mini-ico) { grid-column: 1; grid-row: 2; flex: none; width: 44px; height: 44px; margin: 0; }
  .afm .piatto:not(.con-video) .mini .mini-ico svg.i { width: 38px; height: 38px; }
  .afm .piatto:not(.con-video) .piatto-desc { grid-column: 2; grid-row: 2; margin: 0; align-self: center; }
  .afm .piatto:not(.con-video) .piatto-piede { grid-column: 3; grid-row: 2; margin: 0; justify-self: end; align-self: end; }
  .afm .piatto:not(.con-video) .piatto-piede .bollini:empty { display: none; }
  .afm .piatto:not(.con-video) .formati { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; }
}
@media (max-width: 600px) {
  .afm .piatto:not(.con-video) .piatto-nome { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
}

/* ============ 05/11 "VIDEO IN ARRIVO": cuochini animati al posto del video mancante ============ */
.afm .ia { position: relative; width: 100%; height: 100%; background: linear-gradient(#FFFFFF 55%, #F3F9FB); overflow: hidden; }
.afm .ia svg { display: block; width: 100%; height: 100%; }
.afm .ia svg * { transform-box: view-box; }
.afm .ia-chip {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 2px;
  padding: 4px 9px; border-radius: 30px; font: 700 10.5px/1 var(--font); letter-spacing: .05em; text-transform: uppercase;
  color: #C77F06; background: rgba(255, 255, 255, .94); box-shadow: inset 0 0 0 1.5px var(--arancio);
}
.afm .ia-chip i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin-left: 1px; animation: ia-punto 1.2s infinite; }
.afm .ia-chip i:nth-child(2) { animation-delay: .2s; } .afm .ia-chip i:nth-child(3) { animation-delay: .4s; }
@keyframes ia-punto { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }

.afm .ia-cuoco { animation: ia-bob 2.4s ease-in-out infinite; }
@keyframes ia-bob { 50% { transform: translateY(-2.5px); } }
/* cucina */
.afm .ia-padella { transform-origin: 150px 128px; animation: ia-pan 1.3s ease-in-out infinite; }
@keyframes ia-pan { 0%, 100% { transform: rotate(0); } 28% { transform: rotate(-13deg); } 52% { transform: rotate(5deg); } 70% { transform: rotate(0); } }
.afm .ia-salto { transform-box: fill-box; transform-origin: center; animation: ia-salto 1.3s ease-in-out infinite; }
.afm .ia-salto.s2 { animation-delay: .07s; } .afm .ia-salto.s3 { animation-delay: .14s; }
@keyframes ia-salto { 0%, 22%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-30px) rotate(180deg); } 76% { transform: translateY(0) rotate(360deg); } }
.afm .ia-mestolo { transform-origin: 244px 130px; animation: ia-mescola 1.6s ease-in-out infinite; }
@keyframes ia-mescola { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(14deg); } }
.afm .ia-vapore { opacity: 0; animation: ia-vapore 2.4s ease-in infinite; }
.afm .ia-vapore.v2 { animation-delay: .8s; } .afm .ia-vapore.v3 { animation-delay: 1.6s; }
@keyframes ia-vapore { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: .95; } 100% { opacity: 0; transform: translateY(-16px); } }
/* pizza */
.afm .ia-pala { animation: ia-pala 3s ease-in-out infinite; }
@keyframes ia-pala { 0%, 100% { transform: translateX(-6px); } 45%, 62% { transform: translateX(22px); } }
.afm .ia-fuoco { transform-origin: 300px 166px; animation: ia-fuoco .45s ease-in-out infinite alternate; }
@keyframes ia-fuoco { from { transform: scale(.94, .82); } to { transform: scale(1.04, 1.08); } }
.afm .ia-fumo { opacity: 0; animation: ia-fumo 2.6s ease-out infinite; }
.afm .ia-fumo.f2 { animation-delay: 1.3s; }
@keyframes ia-fumo { 0% { opacity: 0; transform: translate(0, 4px) scale(.6); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(10px, -22px) scale(1.6); } }
/* dolce */
.afm .ia-frusta { transform-origin: 178px 112px; animation: ia-frusta .5s ease-in-out infinite alternate; }
@keyframes ia-frusta { from { transform: rotate(-16deg); } to { transform: rotate(14deg); } }
.afm .ia-ciliegia { animation: ia-ciliegia 1.4s ease-in-out infinite; }
@keyframes ia-ciliegia { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-9px); } 60% { transform: translateY(0); } 70% { transform: translateY(-3px); } }
.afm .ia-zucchero { opacity: 0; animation: ia-zucchero 1.8s linear infinite; }
.afm .ia-zucchero.z2 { animation-delay: .6s; } .afm .ia-zucchero.z3 { animation-delay: 1.2s; }
@keyframes ia-zucchero { 0% { opacity: 0; transform: translateY(-8px); } 20% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(20px); } }

/* ferme quando non si vedono (e per chi chiede meno movimento) */
.afm .ia:not(.vivo) *, .afm .ia:not(.vivo) .ia-chip i { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .afm .ia * { animation: none !important; } .afm .ia-vapore, .afm .ia-fumo, .afm .ia-zucchero { opacity: .6; } }

/* nella scheda: stesso palco, chip piu' grande */
.afm .palco-arrivo { background: #fff; }
.afm .palco-arrivo .ia-chip { font-size: 12px; padding: 6px 12px; left: 14px; top: 14px; }
/* desktop: lo slot largo dell'elenco */
.afm .mini.larga .ia { border-radius: 10px; }
@media (max-width: 600px) { .afm .piatto.con-video > .mini.larga .ia { border-radius: 0; } }
/* card "in arrivo" su telefono: prezzo accanto al nome, la scena resta libera */
@media (max-width: 600px) {
  .afm .piatto.arrivo .prezzo-video { display: none; }
  .afm .piatto.arrivo .piatto-testa { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .afm .piatto.arrivo .piatto-testa .prezzo { display: inline; font-size: 1.1rem; }
}

/* ============ 05/11 (2) MICRO CHEF SUL PIATTO (Fra: "tanti micro chef che lavorano al piatto, come Le Petit Chef") ============ */
.afm .ia svg * { transform-box: fill-box; }
.afm .ia { background: radial-gradient(120% 90% at 50% 100%, #F2F8FA 0%, #FFFFFF 70%); }
.afm .mc-respira { animation: mc-respira 2.2s ease-in-out infinite; }
@keyframes mc-respira { 50% { transform: translateY(-.8px); } }
.afm .mc-salta { animation: mc-salta 1.1s ease-in-out infinite; }
@keyframes mc-salta { 0%, 55%, 100% { transform: translateY(0); } 25% { transform: translateY(-6px); } }
/* chi cammina attraversa il piatto */
.afm .mc-va { animation: mc-va 7s linear infinite; }
.afm .mc-va.lento { animation-duration: 9s; animation-delay: -3s; }
@keyframes mc-va { 0% { transform: translateX(-40px); opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(70px); opacity: 0; } }
.afm .mc-gambe .g1, .afm .mc-gambe .g2 { transform-origin: top center; animation: mc-passo .32s ease-in-out infinite alternate; }
.afm .mc-gambe .g2 { animation-direction: alternate-reverse; }
@keyframes mc-passo { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
/* attrezzi */
.afm .mc-coltello { animation: mc-taglia .55s ease-in infinite; }
@keyframes mc-taglia { 0%, 100% { transform: translateY(-5px); } 45% { transform: translateY(5px); } }
.afm .mc-scuote { transform-origin: center bottom; animation: mc-scuote .35s ease-in-out infinite alternate; }
@keyframes mc-scuote { from { transform: rotate(-18deg); } to { transform: rotate(16deg); } }
.afm .mc-cade { opacity: 0; animation: mc-cade 1.4s linear infinite; }
@keyframes mc-cade { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(30px); } }
.afm .mc-flusso { stroke-dasharray: 5 4; animation: mc-flusso .5s linear infinite; }
@keyframes mc-flusso { to { stroke-dashoffset: -9; } }
.afm .mc-sugo { transform-origin: center; animation: mc-sugo 3s ease-in-out infinite; }
@keyframes mc-sugo { 0%, 100% { transform: scale(.85); } 50% { transform: scale(1.05); } }
.afm .mc-gratta { animation: mc-gratta .3s ease-in-out infinite alternate; }
@keyframes mc-gratta { from { transform: translateX(-2px); } to { transform: translateX(2px); } }
.afm .mc-gira { transform-origin: 50% 85%; animation: mc-gira 1.2s ease-in-out infinite; }
@keyframes mc-gira { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
.afm .mc-lembo { transform-origin: left bottom; animation: mc-lembo 2s ease-in-out infinite; }
@keyframes mc-lembo { 0%, 100% { transform: rotate(0); } 40%, 60% { transform: rotate(-28deg); } }
.afm .mc-leva { transform-origin: right center; animation: mc-leva 2s ease-in-out infinite; }
@keyframes mc-leva { 0%, 100% { transform: rotate(0); } 40%, 60% { transform: rotate(14deg); } }
.afm .mc-fumo { opacity: 0; animation: mc-fumo 2.6s ease-out infinite; }
.afm .mc-fumo.f2 { animation-delay: .9s; } .afm .mc-fumo.f3 { animation-delay: 1.7s; }
@keyframes mc-fumo { 0% { opacity: 0; transform: translateY(6px) scale(.6); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-22px) scale(1.7); } }
.afm .mc-foglia { animation: mc-foglia 1.1s ease-in-out infinite; }
@keyframes mc-foglia { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 28% { transform: translateY(-24px) rotate(160deg); } }
.afm .mc-rotola-g { animation: mc-rotola-g 5s ease-in-out infinite; }
@keyframes mc-rotola-g { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(40px); } }
.afm .mc-pomodoro { transform-origin: center; animation: mc-rotola 5s ease-in-out infinite; }
@keyframes mc-rotola { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(320deg); } }
.afm .mc-spinge { animation: mc-spinge .5s ease-in-out infinite alternate; }
@keyframes mc-spinge { from { transform: rotate(0); } to { transform: translateX(1px) rotate(6deg); } }
.afm .mc-mocio { animation: mc-mocio 1.2s ease-in-out infinite alternate; }
@keyframes mc-mocio { from { transform: translateX(-8px); } to { transform: translateX(14px); } }
.afm .mc-salsa { transform-origin: left center; animation: mc-salsa 6s ease-in-out infinite; }
@keyframes mc-salsa { 0% { transform: scaleX(.35); } 60%, 100% { transform: scaleX(1); } }
.afm .mc-rotella { animation: mc-rotella 4s ease-in-out infinite; }
@keyframes mc-rotella { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-34px); } }
.afm .mc-ruota { transform-origin: center; animation: mc-ruota .8s linear infinite; }
@keyframes mc-ruota { to { transform: rotate(-360deg); } }
.afm .mc-sac { transform-origin: right top; animation: mc-sac 1s ease-in-out infinite; }
@keyframes mc-sac { 0%, 100% { transform: scale(1); } 50% { transform: scale(.88, 1.06); } }
.afm .mc-ciuffo { transform-origin: center bottom; animation: mc-ciuffo 3s ease-out infinite; }
@keyframes mc-ciuffo { 0% { transform: scale(0); } 40%, 100% { transform: scale(1.15); } }
.afm .mc-setaccio { animation: mc-gratta .22s ease-in-out infinite alternate; }
.afm .mc-pallina { animation: mc-pallina 2.4s ease-in infinite; }
@keyframes mc-pallina { 0% { transform: translateY(-22px); opacity: 0; } 15% { opacity: 1; } 45%, 85% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }

/* ============ 05/11 SEZIONI IN ALTO: si capisce che scorrono ============ */
.afm .sezioni-box { flex: 1; min-width: 0; position: relative; display: flex; }
.afm .sezioni-box .sezioni { flex: 1; min-width: 0; }
.afm .sezioni-box.piu-dx .sezioni { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 46px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 46px), transparent); }
.afm .sezioni-box.piu-sx .sezioni { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.afm .sezioni-box.piu-sx.piu-dx .sezioni { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 46px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 46px), transparent); }
.afm .sez-freccia {
  position: absolute; top: 50%; z-index: 2; width: 28px; height: 28px; margin-top: -16px;
  display: none; place-items: center; padding: 0; border: 0; border-radius: 50%;
  color: #fff; background: var(--arancio); box-shadow: 0 2px 8px rgba(246, 159, 15, .45); cursor: pointer;
}
.afm .sez-freccia svg.i { width: 16px; height: 16px; }
.afm .sez-freccia.dx { right: 0; }
.afm .sez-freccia.sx { left: 0; }
.afm .sez-freccia.sx svg { transform: scaleX(-1); }
.afm .sezioni-box.piu-dx .sez-freccia.dx, .afm .sezioni-box.piu-sx .sez-freccia.sx { display: grid; }
.afm .sezioni-box.piu-dx .sez-freccia.dx { animation: sez-invito 1.6s ease-in-out infinite; }
@keyframes sez-invito { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .afm .sezioni-box.piu-dx .sez-freccia.dx { animation: none; } }

/* ============ 05/11 TELEFONO: cerca e allergeni fuori dalla barra delle sezioni ============ */
.afm .strumenti-tel { display: none; }
@media (max-width: 600px) {
  .afm .barra .azioni { display: none; }
  .afm .strumenti-tel { display: flex; gap: 8px; margin: 0 0 10px; }
  .afm .cerca-tel, .afm .allergeni-tel {
    display: flex; align-items: center; gap: 8px; height: 42px; border: 0; cursor: pointer;
    border-radius: 30px; background: #F4F6F7; color: #555; font: 500 14px/1 var(--font);
    box-shadow: inset 0 0 0 1px #E6E9EB;
  }
  .afm .cerca-tel { flex: 1; min-width: 0; padding: 0 14px; text-align: left; }
  .afm .cerca-tel span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .afm .allergeni-tel { flex: none; padding: 0 14px 0 12px; color: var(--azzurro); font-weight: 700; background: #fff; box-shadow: inset 0 0 0 1.5px var(--azzurro); }
  .afm .cerca-tel svg.i, .afm .allergeni-tel svg.i { width: 18px; height: 18px; flex: none; }
}

/* Fra 05/11: Le margherite in un blocco evidenziato dentro Pizze (fondo bianco: i video dei piatti sono su bianco puro) */
.afm .blocco {
  border: 2px solid var(--arancio); border-radius: 18px; background: var(--bianco);
  padding: 0 14px 6px; margin: 1.6rem 0 1.2rem; box-shadow: 0 6px 18px rgba(246, 159, 15, .12);
}
.afm .blocco > .titoletto:first-child {
  margin: 0 -14px 10px; padding: 12px 16px; border-radius: 15px 15px 0 0;
  background: var(--arancio); color: var(--bianco); font-size: 1.25rem; letter-spacing: .04em;
}
@media (max-width: 600px) { .afm .blocco { padding: 0 8px 4px; } .afm .blocco > .titoletto:first-child { margin: 0 -8px 8px; } }
/* Fra 09/11: su telefono il bollino "Dal Brusignone" va su una riga sua sotto la descrizione (non la stringe) */
@media (max-width: 600px) {
  .afm .piatto.con-video .piatto-piede:has(.bollino) { grid-column: 1 / -1; grid-row: 3; margin-top: 10px; justify-content: space-between; align-items: center; }
  .afm .piatto:not(.con-video) .piatto-piede:has(.bollino) { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; justify-self: stretch; justify-content: space-between; align-items: center; }
  .afm .piatto:not(.con-video):has(.bollino) .formati { grid-row: 4; }
}
/* Fra 09/11: le salse homemade in un riquadro a parte in fondo alla Steak House (non sembrano piatti) */
.afm .blocco-salse { border-color: var(--sabbia); box-shadow: 0 6px 18px rgba(226, 191, 146, .25); }
.afm .blocco-salse > .titoletto:first-child { background: var(--sabbia); color: var(--nero); }
.afm .blocco-salse > .nota { margin: 0 0 10px; padding: 0 4px; }

/* Fra 09/11: 3 impasti (pizze proteiche) su desktop in una riga sola */
@media (min-width: 760px) { .afm .imp-griglia[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Fra 09/11: I Risotti in un riquadro come sulla carta (rosso del sottotitolo della carta) */
.afm .blocco-risotti { border-color: #B42A22; box-shadow: 0 6px 18px rgba(180, 42, 34, .12); }
.afm .blocco-risotti > .titoletto:first-child { background: #B42A22; color: #fff; }
.afm .blocco-risotti > .nota { margin: 0 0 10px; padding: 0 4px; font-style: italic; }
