/* Banner cookie — stessi colori e carattere del sito */
.dgc {
  position: fixed;
  z-index: 2147483000;
  left: 16px;
  right: 16px;
  bottom: 56px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  max-width: 34rem;
  margin-left: auto;
  box-sizing: border-box;
  padding: 1.25rem 1.25rem 1.1rem;
  background: #f4ebdd;
  color: #1d1712;
  border: 1.5px solid #1d1712;
  box-shadow: 0 18px 50px rgba(29, 23, 18, 0.28);
  font: 400 0.9rem/1.5 'Geologica Variable', 'Geologica', system-ui, sans-serif;
}
.dgc * { box-sizing: border-box; }
.dgc-titolo {
  margin: 0 2rem 0.4rem 0;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.dgc-testo { margin: 0 0 1rem; }
.dgc a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.dgc-x {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.dgc-pannello { display: grid; gap: 0.6rem; margin: 0 0 1rem; padding: 0.9rem 0; border-top: 1px solid rgba(29, 23, 18, 0.25); border-bottom: 1px solid rgba(29, 23, 18, 0.25); }
.dgc-pannello[hidden] { display: none; }
.dgc-voce { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.6rem; align-items: start; cursor: pointer; }
.dgc-voce input { width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: #1d1712; }
.dgc-voce input:disabled { cursor: not-allowed; }
.dgc-azioni { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
/* "Rifiuta" e "Accetta tutti" identici: stessa forma, stesso colore, stessa misura */
.dgc-btn {
  flex: 1 1 8rem;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid #1d1712;
  background: #1d1712;
  color: #f4ebdd;
  font: 600 0.82rem/1.2 'Geologica Variable', 'Geologica', system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.dgc-btn--link { order: 3; flex-basis: 100%; min-height: 2.25rem; background: transparent; color: #1d1712; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.dgc-btn:focus-visible, .dgc-x:focus-visible, .dgc-voce input:focus-visible { outline: 2px solid #94462b; outline-offset: 2px; }
@media (min-width: 640px) { .dgc-btn--link { order: 0; flex: 0 0 auto; } }
