/* Carta Regalo Drako (30/11/2026): pagina della carta, namespace .dcr-* */
.dcr-page { color: #1f2933; }
.dcr-title { font-size: 28px; line-height: 1.2; margin: 0 0 6px; font-weight: 700; }
.dcr-lead { margin: 0 0 18px; font-size: 16px; color: #52606d; max-width: 62ch; }

.dcr-avviso, .dcr-blocco { border: 1px solid #f0d28a; background: #fff8e6; color: #5c4400; border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; font-size: 15px; }
.dcr-blocco p { margin: 6px 0 0; }

.dcr-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1000px) {
  .dcr-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .dcr-anteprima { position: sticky; top: 210px; }
}

/* anteprima */
.dcr-anteprima canvas { display: block; width: 100%; height: auto; aspect-ratio: 1536 / 960; border-radius: 14px; background: #3a404c; box-shadow: 0 8px 28px rgba(15, 23, 42, .22); }
.dcr-valida { margin: 12px 2px 0; font-size: 13px; color: #52606d; }

/* modulo */
.dcr-form { min-width: 0; }
.dcr-gruppo { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.dcr-gruppo > legend { font-weight: 700; font-size: 15px; padding: 0; margin: 0 0 8px; }
.dcr-campo { margin: 0 0 16px; min-width: 0; }
.dcr-campo > label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 5px; }
.dcr-facolt { font-weight: 400; color: #6b7785; }
.dcr-campo input[type="text"], .dcr-campo input[type="email"], .dcr-campo input[type="date"], .dcr-campo input[type="number"], .dcr-campo textarea {
  width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #b8c1cc; border-radius: 8px; font: inherit; font-size: 16px; color: #1f2933; background: #fff;
}
.dcr-campo textarea { resize: vertical; min-height: 84px; }
.dcr-campo input:focus, .dcr-campo textarea:focus { outline: 2px solid #1c63ab; outline-offset: 1px; border-color: #1c63ab; }
.dcr-campo-qta input { max-width: 110px; }
.dcr-aiuto { display: block; margin-top: 5px; font-size: 13px; color: #6b7785; }
.dcr-conta { display: block; text-align: right; font-size: 12px; color: #6b7785; margin-top: 3px; }
.dcr-riga2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
@media (min-width: 560px) { .dcr-riga2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.dcr-err { display: block; color: #b42318; font-size: 13px; margin-top: 4px; }
.dcr-err:empty { display: none; }
.dcr-err-generale, .dcr-err-bozza { font-size: 14px; margin: 0 0 12px; }
.dcr-form [aria-invalid="true"] { border-color: #b42318; }

/* importo e grafica: scelte a pulsante */
.dcr-scelte { display: flex; flex-wrap: wrap; gap: 10px; }
.dcr-tipi { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.dcr-tipo { flex: 0 0 auto; max-width: 100%; }
.dcr-tipo .dcr-grafica { width: 120px; }
.dcr-tipo .dcr-grafica img { width: 120px; }
.dcr-tipo-titolo { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5a6472; }
.dcr-pill, .dcr-grafica { position: relative; cursor: pointer; }
.dcr-pill { flex: 1 1 88px; max-width: 160px; margin: 0; }
.dcr-pill input, .dcr-grafica input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.dcr-pill span {
  display: block; min-width: 0; box-sizing: border-box; text-align: center; padding: 11px 8px; border: 1px solid #b8c1cc; border-radius: 10px;
  font-size: 17px; font-weight: 700; background: #fff; color: #1f2933; transition: background .15s, border-color .15s, color .15s;
}
.dcr-pill:hover span { border-color: #1c63ab; }
.dcr-pill input:checked + span { background: #1c63ab; border-color: #1c63ab; color: #fff; }
.dcr-pill input:focus-visible + span, .dcr-grafica input:focus-visible ~ img { outline: 3px solid #f59e0b; outline-offset: 2px; }
.dcr-grafica { display: block; width: 120px; text-align: center; }
.dcr-grafica img { display: block; width: 120px; height: auto; aspect-ratio: 1536 / 960; border-radius: 8px; border: 2px solid transparent; box-sizing: border-box; background: #dfe3e8; }
.dcr-grafica span { display: block; font-size: 13px; margin-top: 4px; color: #3e4c59; }
.dcr-grafica input:checked ~ img { border-color: #1c63ab; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1c63ab; }
.dcr-grafica input:checked ~ span { font-weight: 700; color: #1c63ab; }
@media (max-width: 420px) { .dcr-grafica { width: calc(50% - 5px); } .dcr-grafica img { width: 100%; } }

/* consegna */
.dcr-radio { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; font-size: 15px; }
.dcr-radio input { width: 20px; height: 20px; margin: 0; accent-color: #1c63ab; flex: 0 0 auto; }
.dcr-mail { margin: 4px 0 8px 30px; }
.dcr-mail[hidden] { display: none; }
@media (max-width: 420px) { .dcr-mail { margin-left: 0; } }

/* azioni: un pulsante non si sottolinea mai, nemmeno al passaggio del mouse */
.dcr-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }
.dcr-btn, a.dcr-vai { display: inline-block; box-sizing: border-box; padding: 13px 24px; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer; text-align: center; text-decoration: none; }
.dcr-btn:hover, .dcr-btn:focus, a.dcr-vai:hover, a.dcr-vai:focus { text-decoration: none; }
.dcr-btn-primario { background: #1c63ab; color: #fff; border: 1px solid #1c63ab; }
.dcr-btn-primario:hover { background: #17538f; }
.dcr-btn-primario[disabled] { opacity: .6; cursor: progress; }
.dcr-btn-secondario, a.dcr-vai { background: #fff; color: #1c63ab; border: 1px solid #1c63ab; }
.dcr-btn-secondario:hover, a.dcr-vai:hover { background: #eef5fc; }
.dcr-btn:focus-visible, a.dcr-vai:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.dcr-btn[hidden], a.dcr-vai[hidden] { display: none; }
@media (max-width: 480px) { .dcr-btn-primario { width: 100%; } }
.dcr-stato { margin: 12px 0 0; font-size: 14px; color: #1a7f37; min-height: 1.4em; }
.dcr-stato.dcr-stato-avviso { color: #8a5a00; }
.dcr-limiti { margin: 10px 0 0; font-size: 13px; color: #6b7785; }

/* riga della carta regalo nel carrello (shopping_cart.php) */
.dcr-cart-thumb { display: block; width: 100px; height: auto; aspect-ratio: 1536 / 960; border-radius: 6px; object-fit: cover; background: #dfe3e8; }
.dcr-cart-riepilogo { margin: 6px 0 2px; font-size: 14px; color: #3e4c59; line-height: 1.4; }
.dcr-cart-riga { font-weight: 600; color: #1f2933; }
.dcr-cart-dett { display: block; color: #6b7785; overflow-wrap: anywhere; }
a.dcr-cart-modifica { display: inline-block; margin-top: 3px; font-weight: 600; color: #1c63ab; text-decoration: none; }
a.dcr-cart-modifica:hover, a.dcr-cart-modifica:focus { text-decoration: none; color: #17538f; }
a.dcr-cart-modifica:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
