/* ============================================================
   PAGINA BOMBONIERE · catalogo fotografico e richiesta
   Stesse fondamenta del tema Maiolica: crema, blu, terracotta,
   oro, verde. Fraunces per i titoli, Manrope per il testo.
   Si carica dopo mobile-nav.css e prima di mobile-foundation.css,
   che resta l'ultimo foglio di tutte le pagine pubbliche.
   Le schede, le mattonelle e il collage li scrive
   scripts/genera_bomboniere.py dentro bomboniere.html.
   ============================================================ */

.bv-page {
  --bv-ink: #16314f;
  --bv-blu: #133f63;
  --bv-blu-chiaro: #1c5b8c;
  --bv-terra: #c8642f;
  --bv-terra-ink: #b0521f;
  --bv-oro: #c79a3e;
  --bv-verde: #3f8f73;
  --bv-carta: #fffaf0;
  --bv-carta-forte: #fffdf7;
  --bv-muto: #5c6876;
  --bv-linea: rgba(22, 49, 79, 0.13);
  --bv-fuga: #e6dccb;
  --bv-ombra-card: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 12px 26px rgba(22, 49, 79, 0.13);
  --bv-ombra-alta: 0 22px 44px rgba(16, 38, 69, 0.22);
  --bv-raggio: 20px;
  --bv-molla: cubic-bezier(0.2, 0.9, 0.25, 1.15);
  --bv-dolce: cubic-bezier(0.2, 0.8, 0.2, 1);
  --bv-titolo: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --bv-testo: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

/* "hidden" deve vincere su ogni display scritto qui sotto */
.bv-page [hidden] { display: none !important; }

.bv-i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bv-i-pieno { fill: currentColor; stroke: none; }

.bv-main {
  display: grid;
  gap: 18px;
  padding-bottom: 120px;
}

/* ---------- Sezioni come card di carta ---------- */
.bv-intro,
.bv-catalogo,
.bv-richiesta,
.bv-faq {
  position: relative;
  background:
    radial-gradient(circle at 100% 0%, rgba(199, 154, 62, 0.1), transparent 34%),
    var(--bv-carta);
  border: 1px solid var(--bv-linea);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(22, 49, 79, 0.08);
  padding: 26px 18px;
}

.bv-testa h2,
.bv-intro h1 {
  font-family: var(--bv-titolo);
  font-weight: 600;
  color: var(--bv-blu);
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 6px 0 0;
}

.bv-testa h2 {
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  line-height: 1.04;
}

.bv-testa h2::after,
.bv-intro h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bv-terra), var(--bv-oro));
}

.bv-testa p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--bv-muto);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 60ch;
}

.bv-testa p strong { color: var(--bv-ink); }

/* ---------- Apertura ---------- */
.bv-intro {
  display: grid;
  gap: 24px;
  overflow: hidden;
  padding-top: 28px;
  padding-bottom: 28px;
}

.bv-intro h1 {
  font-size: clamp(2.3rem, 9.5vw, 4.4rem);
  line-height: 1;
  max-width: 14ch;
}

.bv-lead {
  margin: 16px 0 0;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--bv-muto);
  max-width: 42ch;
}

.bv-fatti {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bv-fatti li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 11px 6px 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--bv-linea);
  font-family: var(--bv-testo);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: center;
  color: var(--bv-ink);
}

.bv-fatti .bv-i { color: var(--bv-terra-ink); width: 20px; height: 20px; }

/* Collage di pezzi veri: in cima da telefono, a destra su schermi larghi */
.bv-collage {
  order: -1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 132px;
  margin: -4px 0 2px;
}

.bv-polaroid {
  position: relative;
  flex: none;
  width: 92px;
  margin: 0 0 0 -16px;
  padding: 5px 5px 15px;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 14px 26px rgba(22, 49, 79, 0.2);
  transform: rotate(var(--r));
  animation: bv-collage 0.8s var(--bv-dolce) both;
}

.bv-polaroid:first-child { margin-left: 0; }
.bv-polaroid img { display: block; width: 100%; height: auto; border-radius: 3px; }

.bv-polaroid--1 { --r: -7deg; top: 14px; z-index: 2; }
.bv-polaroid--2 { --r: 4deg; top: 0; z-index: 1; animation-delay: 0.08s; }
.bv-polaroid--3 { --r: -3deg; top: 18px; z-index: 3; animation-delay: 0.16s; }
.bv-polaroid--4 { --r: 6deg; top: 4px; z-index: 2; animation-delay: 0.24s; }

/* ---------- Catalogo ---------- */
.bv-griglia {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 12px;
}

.bv-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.bv-foto {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: var(--bv-raggio);
  overflow: hidden;
  background: #efe6d6;
  box-shadow: var(--bv-ombra-card);
  cursor: zoom-in;
  transition: box-shadow 0.25s var(--bv-dolce), transform 0.25s var(--bv-dolce);
  -webkit-tap-highlight-color: transparent;
}

.bv-foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--bv-dolce);
}

.bv-foto:focus-visible {
  outline: 3px solid var(--bv-blu-chiaro);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .bv-foto:hover { box-shadow: var(--bv-ombra-alta); transform: translateY(-2px); }
  .bv-foto:hover img { transform: scale(1.05); }
}

.bv-foto-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.92);
  color: var(--bv-blu);
  font-family: var(--bv-testo);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(16, 38, 69, 0.16);
}

.bv-foto-badge .bv-i { width: 13px; height: 13px; stroke-width: 2.2; }

.bv-spunta {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bv-blu);
  color: #fff;
  box-shadow: 0 0 0 3px var(--bv-carta), 0 6px 14px rgba(16, 38, 69, 0.3);
  transform: scale(0);
  transition: transform 0.35s var(--bv-molla);
}

.bv-spunta .bv-i { width: 17px; height: 17px; stroke-width: 2.6; }

.bv-card.is-scelto .bv-foto {
  box-shadow: 0 0 0 3px var(--bv-carta), 0 0 0 6px var(--bv-blu), var(--bv-ombra-card);
}

.bv-card.is-scelto .bv-spunta { transform: scale(1); }

.bv-nome {
  margin: 0;
  font-family: var(--bv-testo);
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bv-ink);
}

.bv-aggiungi {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(19, 63, 99, 0.32);
  background: #fff;
  color: var(--bv-blu);
  font-family: var(--bv-testo);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s var(--bv-dolce), color 0.2s var(--bv-dolce),
    border-color 0.2s var(--bv-dolce), transform 0.12s ease;
}

.bv-aggiungi:active { transform: scale(0.97); }
.bv-aggiungi:focus-visible { outline: 3px solid var(--bv-blu-chiaro); outline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
  .bv-aggiungi:hover { border-color: var(--bv-blu); background: #f4f8fc; }
}

.bv-aggiungi .bv-i-ok { display: none; }

.bv-aggiungi[aria-pressed="true"] {
  background: var(--bv-blu);
  border-color: var(--bv-blu);
  color: #fff;
}

.bv-aggiungi[aria-pressed="true"] .bv-i-piu { display: none; }
.bv-aggiungi[aria-pressed="true"] .bv-i-ok { display: block; animation: bv-pop 0.35s var(--bv-molla); }

/* ---------- Barra dei modelli scelti ---------- */
.bv-barra {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #17497a, var(--bv-blu));
  color: #fff;
  box-shadow: 0 18px 40px rgba(10, 30, 55, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: translateY(140%);
  transition: transform 0.38s var(--bv-molla);
}

.bv-barra.is-visibile { transform: translateY(0); }

/* Come sulla scheda prodotto: finche' la barra e' visibile, su telefono
   il dock WhatsApp/Instagram si toglie di mezzo (il modulo ha gia' il
   suo collegamento WhatsApp). Senza dock mobile-nav.js azzera
   --cc-fab-reserve e Mora scenderebbe dietro la barra: qui la riserva
   diventa l'altezza della barra, cosi' Mora resta sopra. Vale per i
   discendenti di body, dove la variabile scritta su :root e' scavalcata. */
@media (max-width: 760px) {
  body.bv-barra-attiva { --cc-fab-reserve: 76px; }
  body.bv-barra-attiva .cc-fab { display: none; }
}

/* Su un telefono stretto, con piu' di due modelli scelti, le miniature cedono
   spazio al testo e al bottone: si tagliano a sinistra le piu' vecchie, cosi'
   resta visibile l'ultima scelta (dove atterra la foto che vola). */
.bv-barra-miniature {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  min-width: 48px;
  overflow: hidden;
  padding-left: 12px;
}

.bv-barra-miniature img {
  width: 38px;
  height: 38px;
  margin-left: -12px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: #efe6d6;
}

.bv-barra-altri {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: -12px;
  border-radius: 50%;
  background: var(--bv-oro);
  color: #fff;
  font-family: var(--bv-testo);
  font-size: 0.8rem;
  font-weight: 800;
  border: 2px solid #fff;
}

.bv-barra-testo {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
  font-family: var(--bv-testo);
  font-size: 0.9rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
}

.bv-barra-numero {
  display: inline-block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.bv-barra-bottone {
  display: inline-flex;
  flex: 0 0 auto;
  margin-left: auto;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--bv-blu) !important;
  font-family: var(--bv-testo);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.bv-barra-bottone .bv-i { width: 17px; height: 17px; stroke-width: 2.3; }

/* ---------- Richiesta ---------- */
.bv-richiesta { overflow: hidden; }

.bv-richiesta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg,
    var(--bv-blu-chiaro) 0 18px,
    var(--bv-terra) 18px 36px,
    var(--bv-oro) 36px 54px,
    var(--bv-verde) 54px 72px);
}

.bv-page .site-shell main section > form.bv-form { padding-inline: 0; }

.bv-form {
  display: grid;
  gap: 26px;
  margin-top: 26px;
}

.bv-blocco {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.bv-blocco legend,
.bv-campo {
  font-family: var(--bv-testo);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--bv-ink);
}

.bv-blocco legend { padding: 0; margin-bottom: 12px; }

.bv-facoltativo {
  margin-left: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--bv-muto);
}

.bv-aiuto {
  margin: -4px 0 14px;
  color: var(--bv-muto);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* modelli scelti */
.bv-scelti-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.bv-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 6px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--bv-linea);
  animation: bv-entra-chip 0.35s var(--bv-dolce);
}

.bv-chip img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  object-fit: cover;
  flex: none;
}

.bv-chip-nome {
  flex: 1;
  min-width: 0;
  font-family: var(--bv-testo);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bv-ink);
}

.bv-chip-togli {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bv-muto);
  cursor: pointer;
}

.bv-chip-togli:hover { background: #f3ede2; color: var(--bv-ink); }
.bv-chip-togli:focus-visible { outline: 3px solid var(--bv-blu-chiaro); }

.bv-scelti-vuoto {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1.5px dashed rgba(22, 49, 79, 0.22);
  color: var(--bv-muto);
  font-size: 0.95rem;
  line-height: 1.55;
}

.bv-scelti-vuoto p { margin: 0; }
.bv-scelti-vuoto a { color: var(--bv-blu); font-weight: 700; }

/* campi */
.bv-campi {
  display: grid;
  gap: 16px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bv-campi--festa .bv-campo--occasione,
.bv-campi--contatti .bv-campo { grid-column: 1 / -1; }

.bv-campo {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
}

.bv-etichetta { display: block; }

.bv-campo input,
.bv-campo select,
.bv-campo textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(22, 49, 79, 0.18);
  background: #fff;
  color: var(--bv-ink);
  font-family: var(--bv-testo);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bv-campo textarea { min-height: 96px; resize: vertical; line-height: 1.5; }

.bv-campo input:focus,
.bv-campo select:focus,
.bv-campo textarea:focus {
  outline: none;
  border-color: var(--bv-blu-chiaro);
  box-shadow: 0 0 0 4px rgba(28, 91, 140, 0.16);
}

.bv-campo.is-errore input { border-color: #b3261e; }

.bv-errore {
  margin: 0;
  color: #b3261e;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Parete di mattonelle ---------- */
.bv-parete {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 16px;
  background: var(--bv-fuga);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 10px 24px rgba(22, 49, 79, 0.1);
}

.bv-mattonella {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s var(--bv-molla), box-shadow 0.28s var(--bv-dolce);
}

.bv-mattonella input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.bv-mattonella img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bv-mattonella .bv-spunta {
  top: 50%;
  left: 50%;
  right: auto;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
}

.bv-insieme {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  background: var(--bv-carta-forte);
  color: var(--bv-terra-ink);
  font-family: var(--bv-testo);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.bv-insieme .bv-i { width: 22px; height: 22px; }

.bv-mattonella:has(input:checked) {
  z-index: 2;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--bv-blu), 0 14px 26px rgba(16, 38, 69, 0.34);
  border-radius: 10px;
}

.bv-mattonella:has(input:checked) .bv-spunta { transform: scale(1); }
.bv-mattonella:has(input:checked) .bv-insieme { opacity: 0.35; }

.bv-mattonella:has(input:focus-visible) {
  outline: 3px solid var(--bv-blu-chiaro);
  outline-offset: 2px;
  z-index: 3;
}

.bv-decoro-scelto {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.bv-decoro-nome {
  margin: 0;
  font-family: var(--bv-testo);
  font-size: 0.95rem;
  color: var(--bv-muto);
}

.bv-decoro-nome strong { color: var(--bv-blu); }

.bv-decoro-usi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--bv-muto);
}

.bv-decoro-usi span.bv-uso {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--bv-linea);
  color: var(--bv-ink);
  font-weight: 700;
  animation: bv-entra-chip 0.3s var(--bv-dolce) both;
}

.bv-decoro-usi .bv-uso-altri {
  font-weight: 700;
  color: var(--bv-blu);
}

.bv-decoro-usi img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- Errore d'invio ---------- */
.bv-errore-invio {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff4ef;
  border: 1.5px solid rgba(176, 82, 31, 0.35);
  color: var(--bv-ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

.bv-errore-invio p { margin: 0; }
.bv-errore-invio p strong { color: #8f3a12; }

.bv-errore-azioni {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.bv-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bv-blu) !important;
  font-family: var(--bv-testo);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Invio ---------- */
.bv-invio {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.bv-invia {
  position: relative;
  width: 100%;
  min-height: 56px;
  font-family: var(--bv-testo);
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  cursor: pointer;
}

.bv-invia-attesa {
  display: none;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: bv-gira 0.8s linear infinite;
  vertical-align: -4px;
}

.bv-invia.is-attesa .bv-invia-attesa { display: inline-block; }

.bv-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  min-height: 44px;
  color: #0f7a3d !important;
  font-family: var(--bv-testo);
  font-size: 0.95rem;
  text-decoration: none;
}

.bv-whatsapp .bv-i { width: 22px; height: 22px; color: #25d366; }
.bv-whatsapp strong { text-decoration: underline; text-underline-offset: 3px; }

.bv-privacy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--bv-muto);
}

.bv-privacy a { color: inherit; }

/* ---------- Grazie ---------- */
.bv-grazie {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px 4px 6px;
  outline: none;
  animation: bv-entra-chip 0.5s var(--bv-dolce);
}

.bv-grazie[hidden] { display: none; }

.bv-ventaglio {
  position: relative;
  width: 210px;
  height: 140px;
  margin-bottom: 8px;
}

.bv-ventaglio img {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 112px;
  height: 112px;
  margin-left: -56px;
  border-radius: 16px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 12px 26px rgba(16, 38, 69, 0.22);
  animation: bv-apri-ventaglio 0.7s var(--bv-molla) both;
}

.bv-ventaglio img:nth-child(1) { --r: -14deg; --x: -58px; }
.bv-ventaglio img:nth-child(2) { --r: 12deg; --x: 58px; animation-delay: 0.06s; }
.bv-ventaglio img:nth-child(3) { --r: 0deg; --x: 0px; z-index: 2; animation-delay: 0.12s; }

.bv-ventaglio .bv-ventaglio-ok {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  background: var(--bv-oro);
  color: #fff;
  box-shadow: 0 0 0 4px var(--bv-carta), 0 8px 18px rgba(199, 154, 62, 0.45);
  animation: bv-pop 0.5s 0.35s var(--bv-molla) both;
}

.bv-ventaglio .bv-ventaglio-ok .bv-i { width: 24px; height: 24px; stroke-width: 2.6; }

.bv-grazie-titolo {
  margin: 0;
  font-family: var(--bv-titolo);
  font-weight: 600;
  font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  line-height: 1.1;
  color: var(--bv-blu);
  text-wrap: balance;
  max-width: 22ch;
}

.bv-grazie-testo {
  margin: 0;
  color: var(--bv-muto);
  line-height: 1.6;
  max-width: 46ch;
}

/* ---------- Domande ---------- */
.bv-faq-lista {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.bv-page .site-shell main section > div > details { padding-inline: 0; }

.bv-faq details {
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--bv-linea);
  overflow: hidden;
}

.bv-faq summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
  font-family: var(--bv-testo);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--bv-ink);
}

.bv-faq summary::-webkit-details-marker { display: none; }

.bv-faq-segno {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4ede1;
  transition: transform 0.3s var(--bv-dolce), background-color 0.3s;
}

.bv-faq-segno::before,
.bv-faq-segno::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--bv-blu);
}

.bv-faq-segno::after { transform: rotate(90deg); }

.bv-faq details[open] .bv-faq-segno { transform: rotate(45deg); background: #e8eef5; }

.bv-faq details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--bv-muto);
  line-height: 1.65;
}

/* ---------- Vista ingrandita ---------- */
.bv-vista {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bv-ink);
}

.bv-vista::backdrop {
  background: rgba(12, 28, 48, 0.62);
  backdrop-filter: blur(4px);
}

.bv-vista[open] { animation: bv-sfuma 0.25s var(--bv-dolce); }
.bv-vista[open] .bv-vista-scheda { animation: bv-sale 0.38s var(--bv-dolce); }

.bv-vista-scheda {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 100%;
  overflow: auto;
  border-radius: 26px 26px 0 0;
  background: var(--bv-carta);
  box-shadow: 0 -10px 40px rgba(12, 28, 48, 0.3);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bv-vista-barra {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 10px 6px;
  background: linear-gradient(var(--bv-carta) 70%, transparent);
}

.bv-vista-nav,
.bv-vista-chiudi {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f1e9db;
  color: var(--bv-blu);
  cursor: pointer;
}

.bv-vista-chiudi { margin-left: auto; background: var(--bv-blu); color: #fff; }
.bv-vista-nav:focus-visible,
.bv-vista-chiudi:focus-visible { outline: 3px solid var(--bv-blu-chiaro); outline-offset: 2px; }

.bv-vista-conta {
  min-width: 64px;
  text-align: center;
  font-family: var(--bv-testo);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bv-muto);
}

.bv-vista-corpo {
  display: grid;
  gap: 16px;
  padding: 0 16px 20px;
}

.bv-vista-foto {
  position: relative;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: #efe6d6;
  box-shadow: var(--bv-ombra-card);
}

.bv-vista-foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: bv-sfuma 0.3s var(--bv-dolce);
}

.bv-vista-miniature {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding: 3px;
}

.bv-vista-miniature button {
  flex: none;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 0.2s, box-shadow 0.2s;
}

.bv-vista-miniature button[aria-pressed="true"] {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--bv-carta), 0 0 0 4px var(--bv-blu);
}

.bv-vista-miniature img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bv-vista-testo h3 {
  margin: 0;
  font-family: var(--bv-titolo);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.08;
  color: var(--bv-blu);
}

.bv-vista-descrizione {
  margin: 10px 0 0;
  line-height: 1.6;
  color: var(--bv-ink);
}

.bv-vista-nota {
  margin: 8px 0 18px;
  font-size: 0.9rem;
  color: var(--bv-muto);
}

.bv-vista-aggiungi {
  width: 100%;
  min-height: 54px;
  font-family: var(--bv-testo);
  font-weight: 800 !important;
  color: #fff !important;
  cursor: pointer;
}

.bv-vista-aggiungi[aria-pressed="true"] {
  background: var(--bv-blu) !important;
  border-color: var(--bv-blu) !important;
  box-shadow: 0 12px 26px rgba(19, 63, 99, 0.28) !important;
}

html:has(.bv-vista[open]) { overflow: hidden; }

/* ---------- Volo verso la barra ---------- */
.bv-volo {
  position: fixed;
  z-index: 120;
  margin: 0;
  object-fit: cover;
  border-radius: var(--bv-raggio);
  pointer-events: none;
  box-shadow: 0 16px 32px rgba(16, 38, 69, 0.3);
  will-change: transform, opacity;
}

/* ---------- Animazioni ---------- */
@keyframes bv-pop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes bv-entra-chip {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes bv-sfuma { from { opacity: 0; } to { opacity: 1; } }
@keyframes bv-sale { from { transform: translateY(40px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes bv-gira { to { transform: rotate(360deg); } }

@keyframes bv-apri-ventaglio {
  from { transform: translateX(0) rotate(0deg) scale(0.6); opacity: 0; }
  to { transform: translateX(var(--x)) rotate(var(--r)) scale(1); opacity: 1; }
}

@keyframes bv-collage {
  from { opacity: 0; transform: translateY(18px) rotate(var(--r)); }
  to { opacity: 1; transform: translateY(0) rotate(var(--r)); }
}

/* ---------- Schermi grandi ---------- */
@media (min-width: 761px) {
  .bv-main { gap: 24px; }

  .bv-page .site-shell main.bv-main { padding-bottom: 110px; }

  .bv-intro,
  .bv-catalogo,
  .bv-richiesta,
  .bv-faq {
    padding: 44px 48px;
    border-radius: 34px;
  }

  .bv-griglia {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 22px;
    margin-top: 30px;
  }

  .bv-aggiungi { width: auto; align-self: flex-start; padding-inline: 18px; }

  .bv-form,
  .bv-grazie {
    max-width: 760px;
  }

  .bv-campi--festa { grid-template-columns: 1.3fr 1fr 1fr; }
  .bv-campi--festa .bv-campo--occasione { grid-column: auto; }
  .bv-campi--contatti .bv-campo { grid-column: auto; }
  .bv-campi--contatti .bv-campo--note { grid-column: 1 / -1; }

  .bv-scelti-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .bv-parete { max-width: 560px; }

  .bv-invio { justify-items: start; text-align: left; }
  .bv-invia { width: auto; padding-inline: 44px !important; }

  .bv-faq-lista { max-width: 820px; }

  .bv-barra {
    left: 50%;
    right: auto;
    width: min(540px, calc(100% - 32px));
    transform: translate(-50%, 140%);
  }

  .bv-barra.is-visibile { transform: translate(-50%, 0); }

  .bv-vista-scheda {
    left: 50%;
    top: 50%;
    bottom: auto;
    width: min(980px, calc(100% - 48px));
    max-height: calc(100% - 48px);
    border-radius: 30px;
    transform: translate(-50%, -50%);
  }

  .bv-vista[open] .bv-vista-scheda { animation: bv-sale-centro 0.36s var(--bv-dolce); }

  .bv-vista-corpo {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 32px;
    padding: 0 32px 32px;
    align-items: start;
  }

  .bv-vista-testo { padding-top: 8px; }
  .bv-vista-testo h3 { font-size: 2.4rem; }
}

@keyframes bv-sale-centro {
  from { transform: translate(-50%, -46%) scale(0.97); opacity: 0.4; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@media (min-width: 1000px) {
  .bv-intro {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    min-height: 460px;
  }

  .bv-collage {
    order: 0;
    display: block;
    position: relative;
    height: 400px;
    margin: 0;
  }

  .bv-polaroid {
    position: absolute;
    margin: 0;
    padding: 8px 8px 26px;
    border-radius: 8px;
    box-shadow: 0 22px 40px rgba(22, 49, 79, 0.2);
  }

  .bv-fatti { max-width: 520px; }

  .bv-polaroid--1 { --r: -6deg; width: 230px; left: 4%; top: 4%; z-index: 2; }
  .bv-polaroid--2 { --r: 5deg; width: 196px; right: 6%; top: 0; animation-delay: 0.08s; }
  .bv-polaroid--3 { --r: 3deg; width: 210px; left: 24%; top: auto; bottom: 0; z-index: 3; animation-delay: 0.16s; }
  .bv-polaroid--4 { --r: -4deg; width: 178px; right: 2%; top: auto; bottom: 8%; animation-delay: 0.24s; }

  .bv-griglia { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .bv-page *,
  .bv-page *::before,
  .bv-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
