/* =========================================================
   WeFart – foglio di stile principale
   ========================================================= */
:root {
  --bg: #0b0b10;
  --bg-2: #111118;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .09);
  --border-2: rgba(255, 255, 255, .16);
  --text: #f4f4f6;
  --muted: #a3a3b0;
  --dim: #6e6e7c;
  --lime: #ccff00;
  --lime-2: #a6e000;
  --lime-soft: rgba(204, 255, 0, .12);
  --red: #ff4d5e;
  --violet: #8b5cf6;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Black", "Segoe UI Black", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: #e3ff70; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  background: var(--lime); color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }

/* Sfondo con aloni */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40rem 30rem at 12% -5%, rgba(204, 255, 0, .10), transparent 60%),
    radial-gradient(36rem 30rem at 100% 35%, rgba(139, 92, 246, .12), transparent 60%),
    radial-gradient(30rem 24rem at 0% 100%, rgba(204, 255, 0, .05), transparent 60%),
    var(--bg);
}

/* ---------------- Topbar ---------------- */
.topbar {
  width: 100%; max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--text); font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; letter-spacing: -.02em;
}
.brand em { color: var(--lime); font-style: italic; }
.brand:hover { color: var(--text); }
.page-home .brand { visibility: hidden; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 6px 5px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em;
}
.lang-switch a, .lang-switch span { padding: 3px 9px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: var(--text); background: var(--surface-2); }
.lang-switch .is-active { background: var(--lime); color: #111; }

/* ---------------- Hero ---------------- */
.hero {
  min-height: calc(100svh - 64px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 18px 40px; text-align: center; position: relative;
}
.hero-logo { margin: 0 0 6px; line-height: 0; }
.hero-logo img {
  width: min(420px, 82vw); height: auto;
  filter: drop-shadow(0 0 22px rgba(204, 255, 0, .18));
  animation: float 4.5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.hero-subtitle { color: var(--muted); max-width: 36ch; margin: 0 auto 26px; font-size: clamp(.98rem, 2.2vw, 1.1rem); }

.app-card {
  width: min(420px, 100%);
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ---------------- Bottoni ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px; width: 100%;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .01em;
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent; position: relative;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-play {
  min-height: 64px; font-size: 1.2rem;
  background: var(--lime); color: #111;
  box-shadow: 0 10px 30px -6px rgba(204, 255, 0, .45), inset 0 -3px 0 rgba(0,0,0,.12);
}
.btn-play:hover { background: #d8ff3d; box-shadow: 0 14px 40px -6px rgba(204, 255, 0, .6), inset 0 -3px 0 rgba(0,0,0,.12); transform: translateY(-1px); }
.upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-outline { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }
.btn-rec { background: rgba(255, 77, 94, .06); color: var(--red); border-color: rgba(255, 77, 94, .7); overflow: hidden; }
.btn-rec:hover { background: rgba(255, 77, 94, .14); }
.btn-rec .rec-icon-stop { display: none; }
.btn-rec.is-recording { background: var(--red); color: #111; border-color: var(--red); }
.btn-rec.is-recording .rec-icon-stop { display: inline-flex; }
.btn-rec.is-recording .rec-icon-mic { display: none; }
.rec-ring {
  position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--rec, 0) * 100%);
  background: rgba(0, 0, 0, .55); transition: width .2s linear;
}
.btn-rec.is-recording::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(255, 77, 94, .6); animation: rec-pulse 1.2s infinite;
}
@keyframes rec-pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 77, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); } }
.btn-small { min-height: 42px; width: auto; font-size: .92rem; padding: 0 18px; }
.btn-primary { background: var(--lime); color: #111; }
.btn-primary:hover { background: #d8ff3d; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--text); }
.btn-danger { background: var(--red); color: #111; }

.divider { height: 1px; background: var(--border); margin: 2px 4px; }

/* ---------------- Consenso upload ---------------- */
.consent-check {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  font-size: .8rem; line-height: 1.45; color: var(--muted); cursor: pointer;
  padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(0,0,0,.2); border: 1px solid var(--border);
}
.consent-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-box {
  flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  border: 1.5px solid var(--border-2); display: grid; place-items: center; color: transparent;
  transition: background-color .15s, border-color .15s;
}
.consent-check input:checked + .consent-box { background: var(--lime); border-color: var(--lime); color: #111; }
.consent-check input:focus-visible + .consent-box { outline: 3px solid var(--lime); outline-offset: 2px; }
.consent-check a { color: var(--text); }
.consent-check.shake { animation: shake .45s; border-color: var(--red); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.hint { margin: -4px 0 0; font-size: .74rem; color: var(--dim); }

/* ---------------- Player ---------------- */
.player {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border-radius: 20px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--border);
  animation: slide-up .35s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes slide-up { from { opacity: 0; transform: translateY(14px); } }
.player-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; text-align: left; }
.player-toggle {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--lime); color: #111; display: grid; place-items: center;
  box-shadow: 0 6px 20px -6px rgba(204, 255, 0, .6);
}
.player-toggle .i-pause { display: none; }
.player.is-playing .player-toggle .i-play { display: none; }
.player.is-playing .player-toggle .i-pause { display: block; }
.player-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.player-title { font-weight: 800; color: var(--lime); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-author { font-size: .8rem; color: var(--dim); }
.player-time { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--muted); }
.viz { width: 100%; height: 64px; }
.seek {
  --p: 0%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; margin: 2px 0;
  background: linear-gradient(90deg, var(--lime) var(--p), rgba(255,255,255,.12) var(--p)); cursor: pointer;
}
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(204,255,0,.25); }
.seek::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
.player-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-2);
  font-weight: 700; font-size: .9rem; cursor: pointer; transition: .15s;
}
.chip:hover { background: rgba(255,255,255,.12); }
.chip .count { font-variant-numeric: tabular-nums; min-width: 1ch; }
#vote-up[aria-pressed="true"] { color: var(--lime); border-color: var(--lime); background: var(--lime-soft); }
#vote-down[aria-pressed="true"] { color: var(--red); border-color: var(--red); background: rgba(255,77,94,.12); }
.chip.pop { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.15); } }
.chip-ghost { background: transparent; border-color: transparent; color: var(--dim); }
.chip-ghost:hover, .chip-ghost.is-done { color: var(--red); background: rgba(255,77,94,.08); }

.rec-preview { padding: 14px; border-radius: 18px; background: rgba(255, 77, 94, .06); border: 1px dashed rgba(255, 77, 94, .5); }
.rec-preview-title { margin: 0 0 8px; font-weight: 700; font-size: .9rem; }
.rec-preview audio { width: 100%; height: 40px; }
.rec-preview-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

.stats { margin: 26px 0 0; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; }
.stats strong { display: block; color: var(--lime); font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 0; line-height: 1.1; text-shadow: 0 0 24px rgba(204, 255, 0, .35); }
.scroll-hint { margin-top: 18px; color: var(--dim); animation: bob 2s ease-in-out infinite; }
.scroll-hint:hover { color: var(--lime); }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------------- Sezioni ---------------- */
.section { width: 100%; max-width: 1080px; margin: 0 auto; padding: 72px 20px; }
.section-narrow { max-width: 760px; padding-top: 24px; }
.section-title { text-align: center; font-family: var(--font-display); font-size: clamp(1.6rem, 4.4vw, 2.4rem); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 36px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; padding: 26px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); counter-increment: step;
  transition: transform .2s ease, border-color .2s ease;
}
.step:hover { transform: translateY(-3px); border-color: rgba(204, 255, 0, .35); }
.step::after { content: "0" counter(step); position: absolute; top: 18px; right: 22px; font-family: var(--font-display); color: rgba(255,255,255,.07); font-size: 2.4rem; line-height: 1; }
.step-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--lime-soft); color: var(--lime); margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .2s; color: var(--muted); }
.faq-item[open] summary .icon { transform: rotate(180deg); color: var(--lime); }
.faq-item p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(0, 0, 0, .35); padding: 30px 20px 90px; text-align: center; font-size: .85rem; color: var(--dim); }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 14px; }
.footer-nav a, .linklike { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.footer-nav a:hover, .linklike:hover { color: var(--lime); }
.footer-support { margin: 0 0 10px; }
.footer-legal { margin: 0; line-height: 1.7; }
.footer-legal a { color: var(--muted); }

/* ---------------- Toast ---------------- */
.toast-region { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 9990; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; padding: 13px 16px; border-radius: 14px; font-size: .92rem; line-height: 1.4;
  background: rgba(20, 20, 28, .96); border: 1px solid var(--border-2); border-left: 4px solid var(--lime);
  box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s;
}
.toast.is-in { opacity: 1; transform: none; }
.toast--error { border-left-color: var(--red); }
.toast--info { border-left-color: var(--violet); }

/* ---------------- Modali ---------------- */
.modal {
  width: min(420px, calc(100% - 32px)); padding: 24px; border-radius: var(--radius);
  background: #15151d; color: var(--text); border: 1px solid var(--border-2); box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.modal h2 { margin: 0 0 8px; font-size: 1.2rem; display: flex; gap: 8px; align-items: center; }
.modal p { color: var(--muted); margin: 0 0 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------------- Pagine interne / legali ---------------- */
.page { width: 100%; max-width: 820px; margin: 0 auto; padding: 24px 20px 72px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -.02em; line-height: 1.1; margin: 10px 0 10px; }
.page-head p { color: var(--muted); margin: 0; }
.back-link { color: var(--muted); text-decoration: none; font-size: .9rem; }
.back-link:hover { color: var(--lime); }
.legal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); }
.legal h2 { font-size: 1.25rem; margin: 2em 0 .6em; color: var(--text); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 1.5em 0 .4em; }
.legal p, .legal li { color: #cfcfd8; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .35em; }
.legal .box { background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; }
.table-wrap { overflow-x: auto; margin: 12px 0 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.legal table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { background: rgba(255,255,255,.05); color: var(--text); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .75rem; font-weight: 700; background: var(--lime-soft); color: var(--lime); white-space: nowrap; }
.tag--blue { background: rgba(37, 99, 235, .18); color: #8db4ff; }
.tag--violet { background: rgba(139, 92, 246, .18); color: #c4b2ff; }

/* ---------------- Modulo contatti ---------------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field .req { color: var(--lime); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; font: inherit; color: var(--text);
  background: rgba(0, 0, 0, .35); border: 1.5px solid var(--border-2); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(204, 255, 0, .15); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; }
.alert--ok { background: var(--lime-soft); border: 1px solid rgba(204,255,0,.4); color: #e8ff99; }
.alert--error { background: rgba(255,77,94,.1); border: 1px solid rgba(255,77,94,.5); color: #ffb3bb; }
.form-note { font-size: .82rem; color: var(--dim); margin: 0; }

/* =========================================================
   COOKIE BANNER – nero, testo bianco, pulsanti blu
   ========================================================= */
.cc-banner {
  position: fixed; z-index: 9999; left: 16px; right: 16px; bottom: 16px;
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px 28px;
  padding: 22px 26px; padding-right: 56px;
  background: #000; color: #fff;
  border: 1px solid #262626; border-radius: 18px;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, .9);
  font-size: .9rem; line-height: 1.55;
  animation: cc-in .45s cubic-bezier(.2, .9, .3, 1);
}
@keyframes cc-in { from { opacity: 0; transform: translateY(24px); } }
.cc-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.05rem; color: #fff; }
.cc-text { margin: 0; color: #fff; }
.cc-banner a, .cc-prefs a { color: #fff; text-decoration: underline; font-weight: 600; }
.cc-banner a:hover, .cc-prefs a:hover { color: #9cc0ff; }
.cc-actions { display: flex; flex-direction: column; gap: 10px; min-width: 190px; }
.cc-btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--blue); color: #fff;
  padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: .95rem; line-height: 1.2;
  transition: background-color .15s ease, transform .1s ease;
}
.cc-btn:hover { background: var(--blue-hover); }
.cc-btn:active { transform: scale(.98); }
.cc-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cc-close {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: transparent; border: 0; color: #fff; cursor: pointer;
}
.cc-close:hover { background: rgba(255, 255, 255, .12); }
.cc-close:focus-visible { outline: 3px solid #fff; }
.cc-close--static { position: static; }

.cc-prefs {
  width: min(640px, calc(100% - 24px)); max-height: min(88dvh, 820px); padding: 0;
  background: #000; color: #fff; border: 1px solid #2a2a2a; border-radius: 18px;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, .9);
}
.cc-prefs::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.cc-prefs-inner { padding: 24px; }
.cc-prefs-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.cc-prefs-head h2 { margin: 0; font-size: 1.3rem; color: #fff; }
.cc-prefs-intro { margin: 0 0 18px; font-size: .9rem; color: #fff; }
.cc-cat { border: 1px solid #2a2a2a; border-radius: 14px; padding: 16px; margin-bottom: 12px; background: #0a0a0a; }
.cc-cat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cc-cat h3 { margin: 0 0 4px; font-size: 1rem; color: #fff; }
.cc-cat p { margin: 0; font-size: .85rem; color: #fff; opacity: .85; }
.cc-always { flex: none; font-size: .78rem; font-weight: 700; color: #fff; background: var(--blue); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.cc-services { margin-top: 10px; font-size: .84rem; }
.cc-services summary { cursor: pointer; color: #9cc0ff; font-weight: 600; }
.cc-services ul { margin: 8px 0 0; padding-left: 18px; }
.cc-services li { margin-bottom: 6px; color: #fff; }
.cc-services li span { opacity: .8; }
.cc-none { margin: 8px 0 0 !important; opacity: .7; }
.cc-id { font-size: .78rem; color: #fff; opacity: .7; margin: 6px 0 16px; word-break: break-all; }
.cc-id code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cc-actions--prefs { flex-direction: row; flex-wrap: wrap; min-width: 0; }
.cc-actions--prefs .cc-btn { flex: 1 1 160px; }

.switch { position: relative; flex: none; display: inline-block; width: 50px; height: 28px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch-track { position: absolute; inset: 0; border-radius: 99px; background: #3a3a3a; transition: background-color .2s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .switch-track { background: var(--blue); }
.switch input:checked + .switch-track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch-track { outline: 3px solid #fff; outline-offset: 2px; }

/* Pulsante di richiamo cookie – in basso a destra */
.cc-recall {
  position: fixed; right: 18px; bottom: 18px; z-index: 9998;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: #000; color: #fff; border: 2px solid var(--blue);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .9);
  transition: transform .15s ease, background-color .15s ease;
}
.cc-recall:hover { transform: scale(1.08) rotate(-8deg); background: var(--blue); }
.cc-recall:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .cc-banner { grid-template-columns: 1fr; padding: 20px 18px; padding-top: 22px; left: 10px; right: 10px; bottom: 10px; max-height: 80dvh; overflow-y: auto; }
  .cc-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .cc-actions .cc-btn { flex: 1 1 140px; }
  .cc-title { padding-right: 34px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .app-card { padding: 16px; border-radius: 24px; }
  .cc-banner { font-size: .85rem; }
  .cc-actions .cc-btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
