/* Avvisi (cookie e lingua) e link Privacy · Cookie nel footer. Vedi js/notices.js. */
.nt {
  position: fixed;
  z-index: 2147483000;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(392px, calc(100vw - 32px));
  pointer-events: none;
  font: 400 13px/1.5 -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}
.nt,
.nt * {
  box-sizing: border-box;
  cursor: auto;
}
.nt-card {
  position: relative;
  margin: 0;
  padding: 18px 20px 20px;
  color: #f2f2f0;
  background: rgba(14, 14, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.nt-card.is-in {
  opacity: 1;
  transform: none;
}
.nt-title {
  margin: 0 0 8px;
  padding-right: 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.nt-text {
  margin: 0;
  padding-right: 24px;
  color: rgba(242, 242, 240, 0.82);
}
.nt-lang .nt-text {
  color: #f2f2f0;
}
.nt-now {
  color: #fff;
}
.nt-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.nt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.nt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f2f2f0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.nt .nt-btn,
.nt .nt-x {
  cursor: pointer;
}
.nt-btn:hover {
  color: #0e0e0e;
  background: #f2f2f0;
  border-color: #f2f2f0;
}
.nt-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: rgba(242, 242, 240, 0.7);
}
.nt-x span,
.nt-x span::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.nt-x span::before {
  content: '';
  transform: translate(-50%, -50%) rotate(90deg);
}
.nt-x:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nt :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .nt {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
  }
  .nt-card {
    padding: 16px 16px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nt-card {
    transition: none;
    transform: none;
  }
}
@media print {
  .nt {
    display: none;
  }
}

/* Privacy · Cookie: prende carattere e colore dal footer della pagina. */
.site-legal {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.45em;
  white-space: nowrap;
}
.site-legal a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.site-legal a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Pagine senza footer (impaginazione Readymag). */
.site-legal-bar {
  position: relative;
  z-index: 5;
  clear: both;
  display: flex;
  justify-content: center;
  padding: 18px 16px 22px;
  font: 400 11px/1.4 'custom_146852', Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
  background: #0b0b0b;
}
/* Telefono: Privacy · Cookie va su una riga sua, sotto le altre voci del footer. */
@media (max-width: 700px) {
  :is(.footer-bottom, .wm-footer-bottom, .am-contact-footer):has(> .site-legal) {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  :is(.footer-bottom, .wm-footer-bottom, .am-contact-footer) > .site-legal {
    order: 99;
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    justify-content: flex-start;
  }
}
