#cc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: #0e1628; color: #f5f5f7; padding: 1rem 1.25rem; box-shadow: 0 -2px 12px #0004; font-family: system-ui, -apple-system, sans-serif; }
#cc-banner .cc-wrap { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
#cc-banner p { margin: 0; font-size: .88rem; line-height: 1.5; color: #d4d4dc; flex: 1 1 320px; }
#cc-banner a { color: #f39200; }
#cc-banner .cc-actions { display: flex; gap: .6rem; flex-shrink: 0; }
#cc-banner .cc-btn { padding: .55rem 1.1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; font-family: inherit; border: none; cursor: pointer; }
#cc-banner .cc-btn-solid { background: #f39200; color: #0e1628; }
#cc-banner .cc-btn-solid:hover { background: #d65a14; color: #fff; }
#cc-banner .cc-btn-ghost { background: transparent; color: #d4d4dc; border: 1px solid #3a4358; }
#cc-banner .cc-btn-ghost:hover { border-color: #d4d4dc; color: #fff; }
@media (max-width: 480px) {
  /* Bug reale segnalato da Dario (screenshot mobile): "flex: 1 1 320px"
     sul paragrafo ha senso in riga (320px = larghezza minima prima di
     andare a capo), ma qui sotto il contenitore passa a
     flex-direction: column — nello stesso asse "principale" quel
     320px diventa un'ALTEZZA minima del testo, non una larghezza,
     creando un enorme spazio vuoto tra il testo e i bottoni. Va
     azzerato esplicitamente per il layout a colonna. */
  #cc-banner .cc-wrap { flex-direction: column; align-items: stretch; }
  #cc-banner p { flex: none; }
  #cc-banner .cc-actions { justify-content: flex-end; }
}
/* Banner delle notifiche web (push.js): stessa famiglia del banner dei cookie, bordo arancione in alto. */
#pn-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; background: #0e1628; color: #f5f5f7; padding: 1rem 1.25rem; border-top: 3px solid #f39200; box-shadow: 0 -2px 12px #0004; font-family: system-ui, -apple-system, sans-serif; }
#pn-banner .pn-wrap { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
#pn-banner p { margin: 0; font-size: .92rem; line-height: 1.5; color: #e6e6ee; flex: 1 1 320px; }
#pn-banner .pn-actions { display: flex; gap: .6rem; flex-shrink: 0; }
#pn-banner .pn-btn { padding: .55rem 1.1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; font-family: inherit; border: none; cursor: pointer; }
#pn-banner .pn-btn-solid { background: #f39200; color: #0e1628; }
#pn-banner .pn-btn-solid:hover { background: #d65a14; color: #fff; }
#pn-banner .pn-btn-ghost { background: transparent; color: #d4d4dc; border: 1px solid #3a4358; }
#pn-banner .pn-btn-ghost:hover { border-color: #d4d4dc; color: #fff; }
body:has(#pn-banner:not(.pn-modal)) .to-top { bottom: 7.5rem; }
/* Aspetto "finestra al centro": sfondo scurito e scheda al centro, tutto sopra il resto della pagina. */
#pn-banner.pn-modal { top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; padding: 1rem; border-top: 0; background: rgba(8, 12, 24, .72); box-shadow: none; z-index: 10000; }
#pn-banner.pn-modal .pn-wrap { flex-direction: column; justify-content: center; gap: 1.2rem; max-width: 420px; width: 100%; margin: 0; padding: 1.7rem 1.4rem 1.4rem; background: #0e1628; border-top: 4px solid #f39200; border-radius: 18px; box-shadow: 0 12px 40px #0008; text-align: center; }
#pn-banner.pn-modal p { flex: none; font-size: 1.08rem; line-height: 1.55; }
#pn-banner.pn-modal .pn-actions { justify-content: center; flex-wrap: wrap; }
#pn-banner.pn-modal .pn-btn { padding: .7rem 1.5rem; font-size: .95rem; }
@media (max-width: 560px) {
  #pn-banner:not(.pn-modal) .pn-wrap { flex-direction: column; align-items: stretch; }
  #pn-banner:not(.pn-modal) p { flex: none; }
  #pn-banner:not(.pn-modal) .pn-actions { justify-content: flex-end; }
}