/* ============================================================
   VIBEST — tema "fiume di fumo" per le pagine contenuto
   (privacy, termini, elimina-account, child-safety, scarica)
   Stessi token del sito principale (next2/next2.css).
   ============================================================ */
:root {
  --bg: #05020f;
  --viola: #7A00FF;
  --viola-soft: #c084fc;
  --ciano: #00F0FF;
  --oro: #FFD24A;
  --fucsia: #FF3DA8;
  --text: #fff;
  --text-soft: #cfcfcf;
  --text-dim: #888;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); }

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg);
  color: var(--text-soft);
  line-height: 1.75;
  position: relative;
  min-height: 100vh;
}

/* Nebbia del fiume: stessa palette della home, fissa e in lenta deriva */
body::before {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(45vmax 35vmax at 25% 30%, rgba(255,61,168,0.13), transparent 65%),
    radial-gradient(50vmax 40vmax at 75% 60%, rgba(122,0,255,0.15), transparent 65%),
    radial-gradient(40vmax 32vmax at 50% 85%, rgba(0,240,255,0.07), transparent 65%);
  filter: blur(30px);
  animation: fogDrift 16s ease-in-out infinite alternate;
}
@keyframes fogDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

header, main, footer { position: relative; z-index: 1; }

/* ==================== HEADER ==================== */
header {
  background: rgba(5,2,15,0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122,0,255,0.28);
  padding: 16px 28px;
  padding-top: calc(16px + env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}

.logo-link { display: block; line-height: 0; }
.logo-img {
  height: 64px; width: auto; display: block;
  /* Come la home: doppia mask (orizzontale + verticale, intersecate)
     sfuma tutti e 4 i bordi della targa del jpeg, resta solo il neon */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0, #000 26%, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0, #000 26%, #000 74%, transparent 100%);
  mask-composite: intersect;
  filter: drop-shadow(0 0 14px rgba(122,0,255,0.35));
}

/* Barra di lettura: filo gradiente in alto che avanza con lo scroll.
   Solo CSS (scroll-driven animation): dove non è supportata non appare. */
@supports (animation-timeline: scroll()) {
  body::after {
    content: '';
    position: fixed; top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 20;
    background: linear-gradient(90deg, var(--fucsia), var(--viola-soft) 45%, var(--ciano));
    box-shadow: 0 0 10px rgba(0,240,255,0.45);
    transform-origin: left center;
    transform: scaleX(0);
    animation: readProgress linear both;
    animation-timeline: scroll(root);
  }
  @keyframes readProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ==================== MENU A TENDINA (come la home) ==================== */
.menu-wrap { position: relative; }
.menu-toggle {
  background: transparent; border: none; cursor: pointer;
  padding: 8px; display: inline-flex; flex-direction: column;
  gap: 5px; align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; width: 26px; height: 2px;
  background: #fff; border-radius: 2px;
  box-shadow: 0 0 8px rgba(0,240,255,0.5);
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: rgba(10, 5, 35, 0.98);
  border: 1px solid rgba(122,0,255,0.3);
  border-radius: 12px; padding: 8px 0; min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 24px rgba(122,0,255,0.18);
  opacity: 0; transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000;
}
.menu-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.menu-dropdown a {
  display: block; padding: 11px 22px;
  color: #ccc; text-decoration: none;
  font-size: 0.92em; margin: 0;
  transition: background 0.15s, color 0.15s, text-shadow 0.15s;
}
.menu-dropdown a:hover {
  background: rgba(122,0,255,0.12); color: #fff;
  text-shadow: 0 0 10px rgba(0,240,255,0.5);
  text-decoration: none;
}

/* ==================== CONTENUTO ==================== */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.page-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: clamp(1.7em, 5vw, 2.4em);
  line-height: 1.15;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--fucsia) 0%, var(--viola-soft) 45%, var(--ciano) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(122,0,255,0.45)) drop-shadow(0 2px 4px rgba(0,0,0,0.9));
  margin-bottom: 10px;
}

.meta {
  font-size: 0.83em;
  color: var(--text-dim);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(122,0,255,0.22);
}
.meta strong { color: #aaa; }

h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1em;
  font-weight: 700;
  color: var(--ciano);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 48px 0 14px;
  text-shadow: 0 0 12px rgba(0,240,255,0.45), 0 1px 3px rgba(0,0,0,0.9);
}

h3 {
  color: #fff;
  font-size: 0.95em;
  margin: 24px 0 8px;
  text-shadow: 0 0 10px rgba(255,255,255,0.25);
}

p, li {
  font-size: 0.95em;
  color: #bbb;
  margin-bottom: 10px;
}
p strong, li strong { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.22); }

ul, ol { padding-left: 20px; }
li { margin-bottom: 6px; }
li::marker { color: var(--ciano); }

a { color: var(--ciano); text-decoration: none; transition: text-shadow 0.15s; }
a:hover { text-decoration: underline; text-shadow: 0 0 12px rgba(0,240,255,0.55); }

/* Navigazione da tastiera: focus visibile ovunque, in tinta */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ciano);
  outline-offset: 3px;
  border-radius: 4px;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(255,61,168,0.07), rgba(122,0,255,0.10) 55%, rgba(0,240,255,0.06));
  border: 1px solid rgba(122,0,255,0.35);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 0.92em;
  color: #ccc;
  box-shadow: 0 0 24px rgba(122,0,255,0.14), inset 0 0 32px rgba(122,0,255,0.05);
}

.warning-box {
  background: rgba(255, 90, 90, 0.07);
  border: 1px solid rgba(255, 90, 90, 0.35);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,90,90,0.10);
}
.warning-box strong { color: #ff8080; text-shadow: 0 0 10px rgba(255,90,90,0.4); }

.urgent-box {
  background: rgba(255, 100, 100, 0.10);
  border: 1px solid rgba(255, 100, 100, 0.45);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(255,90,90,0.16);
}
.urgent-box strong { color: #ff8080; text-shadow: 0 0 10px rgba(255,90,90,0.4); }

/* ==================== FOOTER ==================== */
footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid rgba(122,0,255,0.2);
  font-size: 0.8em;
  color: #8a8a9a;
}
footer a { color: #a8a8b8; text-decoration: none; margin: 0 10px; transition: color 0.15s, text-shadow 0.15s; }
footer a:hover { color: var(--ciano); text-decoration: none; text-shadow: 0 0 10px rgba(0,240,255,0.5); }

::selection { background: rgba(122,0,255,0.5); color: #fff; }
