/* LA SCHEDA DEL CLIENTE (proposte del buyer), famiglia `prp-`: si apre da telefono, dentro
   WhatsApp. Una colonna, foto grande, il prezzo che salta all'occhio e il bottone Ordina
   sempre in fondo allo schermo, a portata di pollice. Colori del brand Del Mar; il verde
   del bottone e' quello di WhatsApp perche' e' li' che porta. */

.prp-pagina {
  max-width: 36rem;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 2rem;
  background: #ffffff;
}

.prp-pagina.has-barra {
  padding-bottom: 6.5rem;
}

/* Piu' proposte: una card dopo l'altra, separate da una riga sottile. */
.prp-proposta + .prp-proposta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e3e8ef;
}

.prp-testata {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  color: #5f6368;
  font-size: 0.78rem;
}

.prp-testata strong {
  color: #26327e;
}

.prp-logo {
  height: 1.6rem;
  width: auto;
}

/* La foto INTERA, alla sua proporzione (Mattias 03/11/2026: «l'immagine si vede croppata»):
   e' il pesce che si compra, niente ritagli. */
.prp-foto {
  position: relative;
  margin: 0 1rem;
  overflow: hidden;
  background: #e9f5fc;
  border-radius: 1.2rem;
  box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
}

.prp-foto img {
  display: block;
  width: 100%;
  height: auto;
}

/* L'arrivo sulla foto: la prima cosa che un cuoco chiede. */
.prp-arrivo-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2rem;
  box-shadow: var(--shadow-1);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 800;
}

.prp-arrivo-badge svg {
  width: 1rem;
  height: 1rem;
}

.prp-corpo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem 1rem 0;
}

.prp-titolo {
  margin: 0;
  color: #1a1d21;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.prp-prezzo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(120deg, #26327e 0%, #3547ab 60%, #4f8fca 100%);
  border-radius: 1rem;
  color: #ffffff;
}

.prp-prezzo-etichetta {
  opacity: 0.85;
  font-size: 0.78rem;
  font-weight: 600;
}

.prp-prezzo strong {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.prp-descrizione {
  margin: 0;
  color: #1a1d21;
  font-size: 1rem;
  line-height: 1.55;
}

/* La scheda tecnica: i dati che un cuoco o un pescivendolo guarda per decidere. */
.prp-tecnica {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 1rem;
}

.prp-tecnica div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #e3e8ef;
}

.prp-tecnica div:nth-child(odd) {
  border-right: 1px solid #e3e8ef;
}

.prp-tecnica div:nth-last-child(-n + 2):nth-child(odd),
.prp-tecnica div:last-child {
  border-bottom: 0;
}

.prp-tecnica div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
}

.prp-tecnica dt {
  color: #5f6368;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prp-tecnica dd {
  margin: 0;
  color: #1a1d21;
  font-size: 0.95rem;
  font-weight: 600;
}

.prp-tecnica .is-nome_scientifico dd {
  font-style: italic;
  font-weight: 500;
}

.prp-vuoto {
  padding: 2rem 1rem;
  color: #5f6368;
  line-height: 1.5;
}

.prp-azione {
  padding: 1.2rem 1rem 0;
}

/* Il bottone resta in fondo allo schermo mentre si legge: e' l'unica cosa da fare. */
.prp-barra {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 35%);
}

.prp-ordina {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  max-width: 34rem;
  margin: 0 auto;
  padding: 1rem;
  background: #1fa855;
  border-radius: 1rem;
  box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
}

.prp-ordina:active {
  background: #17924a;
}

.prp-ordina-icona {
  width: 1.4rem;
  height: 1.4rem;
}

/* I tre dati che decidono l'acquisto, in riquadri: arrivo (in evidenza), pezzi, peso. */
.prp-fatti {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
}

.prp-fatti div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.75rem 0.85rem;
  background: var(--azure-soft);
  border-radius: 0.9rem;
}

.prp-fatti dt {
  color: var(--gray-text);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prp-fatti dd {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.prp-fatti small {
  color: var(--gray-text);
  font-size: 0.74rem;
}

.prp-fatti .is-arrivo {
  grid-column: 1 / -1;
  background: var(--navy);
}

.prp-fatti .is-arrivo dt {
  color: var(--azure);
}

.prp-fatti .is-arrivo dd {
  color: #ffffff;
  font-size: 1.25rem;
}

.prp-fatti .is-esaurito dd {
  color: #8a1c1c;
}

/* L'ORDINE in tre domande numerate (03/11/2026): quando, quanti, note. Si ordina da qui,
   senza WhatsApp, e il giorno si sceglie toccando una pillola. */
.prp-ordine {
  margin: 1.5rem 1rem 0;
  padding: 1.2rem 1.1rem 1.3rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  box-shadow: var(--shadow-2);
}

.prp-ordine-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.prp-ordine-form h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.prp-domanda {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.prp-domanda legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding: 0;
  color: #1a1d21;
  font-size: 1rem;
  font-weight: 800;
}

.prp-domanda legend small {
  color: var(--gray-text);
  font-weight: 500;
}

.prp-domanda-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--azure-soft);
  border-radius: 50%;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
}

.prp-giorni {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.prp-giorno {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  padding: 0.65rem 0.3rem 0.7rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 0.9rem;
  color: #1a1d21;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.prp-giorno:active {
  transform: scale(0.97);
}

.prp-giorno-settimana,
.prp-giorno-mese {
  color: var(--gray-text);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.prp-giorno-numero {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.prp-giorno-tag {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  padding: 0.1rem 0.45rem;
  background: #1fa855;
  border-radius: 1rem;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.prp-giorno:has(input:checked) {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.prp-giorno:has(input:checked) .prp-giorno-settimana,
.prp-giorno:has(input:checked) .prp-giorno-mese {
  color: var(--azure);
}

.prp-giorno:has(input:focus-visible) {
  outline: 2px solid var(--navy-bright);
  outline-offset: 2px;
}

.prp-pezzi {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-text);
  font-size: 0.85rem;
}

.prp-campo {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 0.8rem;
  font: inherit;
  font-size: 1rem;
}

.prp-campo:focus {
  border-color: var(--navy-bright);
  outline: 2px solid var(--azure);
  outline-offset: 0;
}

.prp-campo-pezzi {
  flex: 0 0 6rem;
  width: 6rem;
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
}

.prp-aiuto {
  color: var(--gray-text);
  font-size: 0.78rem;
}

.prp-aiuto-centro {
  margin-top: -0.4rem;
  text-align: center;
}

.prp-ordine-form .prp-ordina {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.prp-ordina svg {
  width: 1.3rem;
  height: 1.3rem;
}

.prp-ordine-form .prp-ordina:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.prp-esito {
  margin: 0 0 0.9rem;
  padding: 0.75rem 0.9rem;
  background: var(--azure-soft);
  border-radius: 0.8rem;
}

.prp-esito.is-ok {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #e6f6ec;
  color: #14532d;
}

.prp-esito.is-ok p {
  margin: 0;
  line-height: 1.45;
}

.prp-esito-icona {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  background: #1fa855;
  border-radius: 50%;
  color: #ffffff;
}

.prp-esito-icona svg {
  width: 1rem;
  height: 1rem;
}

.prp-esito.is-errore {
  background: #fdecec;
  color: #8a1c1c;
}
