
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/nunito-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/nunito-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/nunito-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/nunito-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/nunito-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/nunito-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/nunito-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/nunito-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/lora-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/lora-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/lora-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/lora-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/lora-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/lora-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/lora-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/static/fonts/lora-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("/static/fonts/lora-latin-500-italic.woff2") format("woff2"); }
:root {
  --accento: #7c5cff;
  --accento-scuro: #5b3fd6;
  --accento-tenue: rgba(124, 92, 255, 0.14);
  --accento-blu: #4aa8ff;
  
  --accento-oro: #e8a33d;

  --sfondo: #0e0c18;
  --sfondo-alt: #16132a;
  --card: #1b1733;
  --card-bordo: rgba(255, 255, 255, 0.08);
  --testo: #ece9f7;
  --testo-tenue: #a49fc4;
  
  --testo-debole: #8a85ad;

  --successo: #2a9d8f;
  --errore: #e5566d;
  --attenzione: #e9b949;

  --raggio: 16px;
  --raggio-piccolo: 10px;
  
  --spazio-sopra: 32px;
  --ombra: 0 10px 40px rgba(0, 0, 0, 0.45);
  --vetro: rgba(22, 19, 42, 0.72);
  --alone: 0 8px 30px rgba(124, 92, 255, 0.35);
  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}
:root { color-scheme: dark; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sfondo);
  color: var(--testo);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  
  overflow-x: hidden;
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.18s ease-out both sfuma-via; }
::view-transition-new(root) { animation: 0.26s ease-out both sfuma-dentro; }
@keyframes sfuma-via { to { opacity: 0; } }
@keyframes sfuma-dentro { from { opacity: 0; } }
@keyframes sale-dentro { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .contenuto > main > .card, .contenuto > main > section, .contenuto > main > .griglia-tema > * { animation: sale-dentro .45s cubic-bezier(.2, .7, .2, 1) both; }
  .contenuto > main > :nth-child(2) { animation-delay: .05s; }
  .contenuto > main > :nth-child(3) { animation-delay: .1s; }
  .contenuto > main > :nth-child(4) { animation-delay: .15s; }
  .contenuto > main > .griglia-tema > :nth-child(2) { animation-delay: .08s; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
.acc-vai, .sn-vai, .tl-anteprima, .segnale-novita, .guarda-altra, .guarda-novita, .persone-affinita-btn {
  transition: transform 0.18s, border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}
.acc-vai:hover, .sn-vai:hover, .tl-anteprima:hover, .segnale-novita:hover, .guarda-altra:hover, .guarda-novita:hover, .persone-affinita-btn:hover {
  transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}
.persone-vuote:hover { transform: none; box-shadow: none; }
.btn:not(.btn-secondario):not(.btn-pericolo):hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(124, 92, 255, 0.45); }
.btn:not(.btn-secondario):not(.btn-pericolo):active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(124, 92, 255, 0.3); }
@media (prefers-reduced-motion: reduce) {
  .acc-vai:hover, .sn-vai:hover, .tl-anteprima:hover, .segnale-novita:hover, .guarda-altra:hover, .guarda-novita:hover, .persone-affinita-btn:hover, .btn:hover { transform: none; }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 15% 12%, rgba(124, 92, 255, 0.20), transparent 45%),
    radial-gradient(circle at 85% 6%, rgba(74, 168, 255, 0.13), transparent 42%),
    radial-gradient(circle at 60% 90%, rgba(232, 163, 61, 0.08), transparent 45%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("/static/img/stelle.png");
  background-repeat: repeat;
  
  background-size: 620px 620px;
  opacity: 0.03;
}

.contenuto { position: relative; z-index: 1; padding-top: var(--spazio-sopra); flex: 1; }

a { color: var(--accento); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.01em; margin: 0 0 0.5em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
.contenitore {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.stretto { max-width: 460px; }
.barra {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--vetro);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-bordo);
  margin-bottom: 0;
}
.barra-interno {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
}
.marchio { display: flex; align-items: center; gap: 12px; color: var(--testo); }
.marchio:hover { text-decoration: none; }
.marchio .logo-marchio { width: 38px; height: 38px; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(124, 92, 255, 0.35)); }
.marchio-testo { display: flex; flex-direction: column; line-height: 1.1; }
.marchio-nome { font-family: var(--serif); font-size: 1.45rem; }
.marchio-slogan {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--testo-debole);
}
.barra nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.barra nav a {
  color: var(--testo-tenue);
  font-size: 0.94rem;
  padding: 8px 14px;
  border-radius: 999px;
}
.barra nav a:hover { color: var(--testo); background: var(--accento-tenue); text-decoration: none; }
.barra nav a.attivo { color: var(--testo); position: relative; }
.barra nav a.attivo::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accento);
}
.barra nav a.menu-area { padding: 0 2px; display: inline-flex; align-items: center; }
.barra nav a.menu-area img {
  display: block; height: 38px; width: auto;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.barra nav a.menu-area:hover { background: transparent; }
.barra nav a.menu-area:hover img { filter: brightness(1.12); transform: translateY(-1px); }
.barra nav a.menu-area.attivo img { filter: brightness(1.18) drop-shadow(0 0 6px rgba(124, 92, 255, 0.55)); }
.barra nav a.menu-area.attivo::after { display: none; }
.pillola {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--card-bordo);
  border-radius: 999px;
  padding: 7px 13px !important;
  font-size: 0.85rem !important;
}
.pillola:hover { border-color: var(--accento); }
.menu-interruttore {
  position: absolute; width: 1px; height: 1px; opacity: 0;
  pointer-events: none;
}
.menu-pulsante { display: none; }

@media (max-width: 760px) {
  
  .barra-interno { flex-wrap: wrap; gap: 0 10px; padding: 6px 14px; }
  .marchio .logo-marchio { width: 30px; height: 30px; }
  .marchio-nome { font-size: 1.2rem; }
  .marchio-slogan { display: none; }

  .menu-pulsante {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 40px; height: 40px; 
    border-radius: 12px; cursor: pointer; margin-bottom: 0;
    border: 1px solid var(--card-bordo);
  }
  .menu-interruttore:focus-visible + .menu-pulsante {
    outline: 2px solid var(--accento); outline-offset: 2px;
  }
  
  .menu-righe,
  .menu-righe::before,
  .menu-righe::after {
    display: block; width: 20px; height: 2px; border-radius: 2px;
    background: #c4b5fd; transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .menu-righe { position: relative; }
  .menu-righe::before, .menu-righe::after { content: ""; position: absolute; left: 0; }
  .menu-righe::before { top: -6px; }
  .menu-righe::after { top: 6px; }
  .menu-interruttore:checked + .menu-pulsante .menu-righe { background: transparent; }
  .menu-interruttore:checked + .menu-pulsante .menu-righe::before { transform: translateY(6px) rotate(45deg); }
  .menu-interruttore:checked + .menu-pulsante .menu-righe::after { transform: translateY(-6px) rotate(-45deg); }
  .barra nav { display: none; }
  .menu-interruttore:checked ~ nav {
    display: flex; flex-wrap: wrap; align-items: center;
    width: 100%; margin: 10px 0 6px; padding-top: 8px; gap: 2px 8px;
    border-top: 1px solid var(--card-bordo);
  }
  .menu-interruttore:checked ~ nav > a:not(.pillola):not(.btn) {
    flex: 1 1 100%; padding: 12px; border-radius: 10px; font-size: 1rem;
  }
  .menu-interruttore:checked ~ nav > a.attivo::after { left: 12px; right: auto; width: 24px; }
  
  .menu-interruttore:checked ~ nav > a.menu-area { padding: 8px 0; }
  .menu-interruttore:checked ~ nav > a.menu-area img { height: 44px; }
  
  .menu-interruttore:checked ~ nav > a.menu-area { order: -1; }
  .menu-interruttore:checked ~ nav > .pillola,
  .menu-interruttore:checked ~ nav > form,
  .menu-interruttore:checked ~ nav > .btn { margin-top: 10px; }
}
.card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), transparent 55%),
    var(--card);
  border: 1px solid var(--card-bordo);
  border-radius: var(--raggio);
  padding: 24px;
  box-shadow: var(--ombra);
}
.card + .card { margin-top: 20px; }
.card-titolo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-titolo h2, .card-titolo h3 { margin: 0; }
label { display: block; font-size: 0.86rem; color: var(--testo-tenue); margin-bottom: 6px; }
.campo { margin-bottom: 18px; }
.aiuto { font-size: 0.8rem; color: var(--testo-debole); margin-top: 4px; }

.campo-avanzato > summary {
  cursor: pointer; width: fit-content; list-style: none;
  font-size: 0.86rem; color: var(--testo-tenue);
}
.campo-avanzato > summary::-webkit-details-marker { display: none; }
.campo-avanzato > summary::before {
  content: "›"; display: inline-block; margin-right: 8px;
  transition: transform 0.15s ease; color: var(--accento);
}
.campo-avanzato[open] > summary { margin-bottom: 12px; }
.campo-avanzato[open] > summary::before { transform: rotate(90deg); }
.campo-avanzato > summary:hover { color: var(--testo); }
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="url"], input[type="tel"],
input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  padding: 11px 13px;
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.10), rgba(124, 92, 255, 0.03) 60%),
    #100d20;
  border: 1px solid color-mix(in srgb, var(--accento) 26%, var(--card-bordo));
  border-radius: var(--raggio-piccolo);
  color: var(--testo);
  font-family: inherit;
  font-size: 0.97rem;
}

input:-webkit-autofill, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--testo);
  -webkit-box-shadow: 0 0 0 1000px #15112a inset;
  caret-color: var(--testo);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accento);
  box-shadow: 0 0 0 3px var(--accento-tenue);
}
input:disabled, select:disabled { opacity: 0.45; cursor: not-allowed; }
.campo-password { position: relative; display: block; }
.campo-password input { padding-right: 46px; }
.mostra-password {
  position: absolute; top: 50%; right: 5px; transform: translateY(-50%);
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--testo-debole); cursor: pointer;
}
.mostra-password:hover { color: var(--testo); background: var(--accento-tenue); }
.mostra-password:focus-visible { outline: 2px solid var(--accento); outline-offset: 1px; }
.mostra-password[aria-pressed="true"] { color: #c4b5fd; }
.mostra-password[aria-pressed="true"] .sbarra { display: none; }

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.75);
}

.riga { display: flex; gap: 16px; flex-wrap: wrap; }
.riga > * { flex: 1 1 180px; }

.checkbox { display: flex; align-items: center; gap: 9px; }
.checkbox input { width: auto; }
.checkbox label { margin: 0; font-size: 0.92rem; color: var(--testo); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accento), #9b6cff 55%, var(--accento-scuro));
  color: #fff;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.28);
  transition: box-shadow 0.18s, transform 0.08s, filter 0.18s;
}
.btn:hover {
  filter: brightness(1.08);
  box-shadow: var(--alone);
  text-decoration: none;
  color: #fff;
}
.btn:active { transform: translateY(1px); }
.btn-secondario {
  background: transparent;
  border: 1px solid var(--card-bordo);
  color: var(--testo);
  box-shadow: none;
}
.btn-secondario:hover { background: var(--accento-tenue); color: var(--testo); box-shadow: none; filter: none; }
.btn-piccolo { padding: 7px 15px; font-size: 0.86rem; }
.btn-pericolo {
  background: transparent;
  border: 1px solid rgba(229, 86, 109, 0.4);
  color: var(--errore);
  box-shadow: none;
}
.btn-pericolo:hover {
  background: rgba(229, 86, 109, 0.12);
  color: var(--errore);
  box-shadow: none;
  filter: none;
}
.avviso {
  padding: 13px 16px;
  border-radius: var(--raggio-piccolo);
  border-left: 3px solid;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.avviso-errore { background: rgba(229, 86, 109, 0.1); border-color: var(--errore); color: #ffb3c0; }
.avviso-attenzione { background: rgba(233, 185, 73, 0.1); border-color: var(--attenzione); color: #f2d79a; }
.avviso-info { background: var(--accento-tenue); border-color: var(--accento); color: var(--testo); }
.segnaposto-vuoto .logo-marchio { width: 84px; height: 84px; opacity: 0.4; }
.ruota-contenitore {
  border-radius: var(--raggio);
  padding: 8px 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.22), transparent 62%);
}
.ruota-svg { width: 100%; height: auto; max-width: 620px; display: block; filter: drop-shadow(0 0 18px rgba(124, 92, 255, 0.25)); }

.ruota-rilievo { perspective: 1000px; }
.ruota-rilievo .ruota-svg, .ruota-rilievo > svg {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .5s; will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .ruota-rilievo .ruota-svg, .ruota-rilievo > svg { transform: none !important; } }

.ruota-int { position: relative; }
.ruota-int.ruota-pronta .r-pia { cursor: pointer; outline: none; }
.ruota-int .r-linea, .ruota-int .r-pia { transition: opacity .25s ease; }
.ruota-int.ruota-sel .r-spenta { opacity: 0.07 !important; }
.ruota-int.ruota-sel .r-sp { opacity: 0.32 !important; }
.ruota-int.ruota-sel .r-viva path { stroke-width: 2.4px !important; stroke-opacity: 1 !important; filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.55)); }
.ruota-int .r-sel path { stroke: #fff !important; stroke-width: 2.4px !important; filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.85)); }

.ruota-int .r-casa { fill: rgba(196, 181, 253, 0); stroke: rgba(243, 207, 122, 0); stroke-width: 1.4px; pointer-events: none; transition: fill .25s ease, stroke .25s ease; }
.ruota-int .r-casa.r-casa-viva { fill: rgba(196, 181, 253, 0.22); stroke: rgba(243, 207, 122, 0.85); }
.ri-vuota { color: var(--testo-tenue); font-style: italic; }
@media (prefers-reduced-motion: reduce) { .ruota-int .r-casa { transition: none; } }
.ruota-info {
  min-height: 5.6rem; margin: 6px 4px 0; padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(184, 172, 240, 0.16);
  font-size: 0.86rem; line-height: 1.4; color: #e9e4fb; display: flex; flex-direction: column; justify-content: center; gap: 9px;
  transition: border-color .2s ease, background .2s ease;
}
.ruota-info.aperta { border-color: rgba(184, 172, 240, 0.4); background: rgba(124, 92, 255, 0.1); }
.ri-aiuto { color: var(--testo-tenue); text-align: center; }
.ri-testa { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-family: var(--serif); font-size: 1.05rem; color: #f3cf7a; }
.ri-testa .gl { width: 1.4em; height: 1.4em; color: #c4b5fd; }
.ri-pos { font-family: var(--sans); font-size: 0.86rem; color: #cfc8ee; }
.ri-asp { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ri-chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ri-chip .gl { width: 1.15em; height: 1.15em; color: #c4b5fd; }
@media (prefers-reduced-motion: reduce) { .ruota-int .r-linea, .ruota-int .r-pia, .ruota-info { transition: none; } }

body:has(.tlv-cielo) .card { background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), transparent 55%), rgba(27, 23, 51, 0.86); }
body:has(.tlv-cielo) .ruota-contenitore { background: none; }

body:has(.tlv-cielo) .card:has(> .ruota-contenitore) { background: none; border-color: transparent; box-shadow: none; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th {
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--testo-debole);
  padding: 8px 10px;
  border-bottom: 1px solid var(--card-bordo);
}
td { padding: 9px 10px; border-bottom: 1px solid var(--card-bordo); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--accento-tenue); }

.simbolo { font-size: 1.12rem; color: var(--accento); width: 1.6em; display: inline-block; }
.retrogrado { color: var(--errore); font-size: 0.78rem; font-weight: 600; }
.mono { font-variant-numeric: tabular-nums; }

.gr { display: inline-block; min-width: 4.9ch; text-align: right; font-variant-numeric: tabular-nums; }
table td, table th { font-variant-numeric: tabular-nums; }
.forza-forte { font-weight: 600; }
.forza-media { opacity: 0.88; }
.forza-debole { opacity: 0.62; }

.pallino { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.griglia { display: grid; gap: 20px; }
.griglia-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.griglia-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.griglia-tema { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: start; }

@media (max-width: 900px) { .griglia-tema { grid-template-columns: minmax(0, 1fr); } }
.schede { display: flex; gap: 4px; border-bottom: 1px solid var(--card-bordo); margin-bottom: 20px; flex-wrap: wrap; }
.scheda {
  padding: 10px 17px;
  color: var(--testo-tenue);
  border-bottom: 2px solid transparent;
  font-size: 0.93rem;
  cursor: pointer;
  background: none;
  border-top: none; border-left: none; border-right: none;
  font-family: inherit;
}
.scheda:hover { color: var(--testo); text-decoration: none; }
.scheda.attiva { color: var(--accento); border-bottom-color: var(--accento); font-weight: 600; }
.scheda.bloccata { opacity: 0.4; cursor: not-allowed; }
.scheda.bloccata:hover { color: var(--testo-tenue); }
.scheda { display: inline-flex; align-items: center; gap: 7px; }
.scheda-icona { font-size: 0.95em; opacity: 0.75; line-height: 1; }
.scheda.attiva .scheda-icona { opacity: 1; }
th a.ordina {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
th a.ordina:hover { color: var(--accento); text-decoration: none; }
.freccia-ordine { font-size: 0.75em; opacity: 0.45; }
th a.ordina.attivo { color: var(--accento); }
th a.ordina.attivo .freccia-ordine { opacity: 1; }

.pannello { display: none; }
.pannello.attivo { display: block; }
.persona-riga {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--card-bordo);
  border-radius: var(--raggio-piccolo);
  margin-bottom: 10px;
  background: var(--sfondo-alt);
}
.persona-riga:hover { border-color: var(--accento); }
.persona-riga.persona-tu {
  border-color: rgba(232, 184, 74, 0.55);
  background:
    linear-gradient(150deg, rgba(232, 184, 74, 0.10), transparent 60%),
    var(--sfondo-alt);
}
.persona-riga.persona-tu:hover { border-color: #e8b84a; }
.badge-tu {
  display: inline-block; margin-left: 10px; padding: 2px 10px;
  border-radius: 999px; vertical-align: middle;
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #2a1d0a;
  background: linear-gradient(135deg, #ffe9a8, #e8b84a 60%, #c9962a);
}
.persone-gruppo {
  margin: 18px 0 8px; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--testo-debole);
}
.sono-io-modulo { display: inline; }
.sono-io { white-space: nowrap; }
.sono-io .btn-ico { color: #c4b5fd; }
.sono-io:hover { border-color: #e8b84a; }
.sono-io:hover .btn-ico { color: #e8b84a; }
.legame-icona {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--icona, none) center / contain no-repeat;
  color: #e8b84a; font-size: 0.9rem; line-height: 1;
}
.legame-icona::before { content: attr(data-glifo); }
.legame-icona[style*="url"]::before { content: ""; }
.badge-legame {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 10px; padding: 1px 9px 1px 3px; border-radius: 999px;
  vertical-align: middle; font-size: 0.74rem; color: var(--testo-tenue);
  border: 1px solid var(--card-bordo);
}

.titolo-persona { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }

.persona-scelta { position: relative; }
.persona-scelta > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 2px 12px 2px 4px; margin-left: -4px; border-radius: 12px; border: 1px solid transparent;
}
.persona-scelta > summary::-webkit-details-marker { display: none; }
.persona-scelta > summary:hover, .persona-scelta[open] > summary { border-color: rgba(167, 139, 250, .45); background: rgba(124, 92, 255, .12); }
.persona-scelta[open] .as-persona-freccia { transform: rotate(180deg); }
.persona-scelta-lista { min-width: 260px; right: auto; font-family: var(--sans); font-size: 1rem; font-weight: 400; }
.stella-tu { color: #e8b84a; text-shadow: 0 0 10px rgba(232, 184, 74, .55); }
.titolo-persona .badge-tu { margin-left: 0; font-size: 0.72rem; padding: 3px 12px; font-family: var(--sans); font-weight: 600; }
.badge-legame-grande { margin-left: 0; font-size: 0.86rem; padding: 3px 12px 3px 5px; gap: 7px; font-family: var(--sans); font-weight: 500; }
.badge-legame-grande .legame-icona { width: 28px; height: 28px; }
.legami { display: flex; flex-wrap: wrap; gap: 8px; }
.legame-voce {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--card-bordo); font-size: 0.9rem; margin: 0;
}
.legame-voce input { width: auto; margin: 0; accent-color: #e8b84a; position: absolute; opacity: 0; pointer-events: none; }
.legame-voce:has(input:checked) { border-color: #e8b84a; background: rgba(232, 184, 74, 0.10); }
.legame-voce:has(input:focus-visible) { outline: 2px solid var(--accento); outline-offset: 2px; }
.legame-voce .legame-icona { width: 26px; height: 26px; font-size: 1rem; }
.legame-nessuno { color: var(--testo-debole); }
.prima-persona {
  margin: -6px 0 16px; padding: 8px 12px;
  border-left: 2px solid #e8b84a; border-radius: 0 8px 8px 0;
  background: rgba(232, 184, 74, 0.08); line-height: 1.5;
}
.persona-info { flex: 1; min-width: 0; }
.persona-nome { font-weight: 600; }
.persona-dettaglio { font-size: 0.85rem; color: var(--testo-tenue); }
@media (max-width: 620px) {
  .persona-riga { flex-wrap: wrap; gap: 12px 8px; }
  .persona-info { flex: 1 1 100%; }
  .persona-riga > form { margin: 0 0 0 auto; }
  .card-titolo { flex-wrap: wrap; row-gap: 10px; }
}
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-flex; }
.htmx-request.htmx-indicator { display: inline-flex; }

.rotella {
  width: 15px; height: 15px;
  border: 2px solid var(--accento-tenue);
  border-top-color: var(--accento);
  border-radius: 50%;
  animation: gira 0.7s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }
.bloccato { position: relative; opacity: 0.55; pointer-events: none; user-select: none; }
.etichetta-blocco {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.76rem; color: var(--accento);
  background: var(--accento-tenue);
  padding: 3px 11px; border-radius: 999px;
}
.ruota-pieno-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3; display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer; color: #e9e4fb;
  background: rgba(21, 17, 43, 0.72); border: 1px solid rgba(184, 172, 240, 0.35);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: border-color .15s, background .15s;
}
.ruota-pieno-btn:hover, .ruota-pieno-btn:focus-visible { border-color: #f0c24f; background: rgba(40, 32, 80, 0.9); }
.ruota-piena {
  position: fixed !important; inset: 0; z-index: 1600; margin: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; border-radius: 0;
  
  background: radial-gradient(circle at 50% 45%, rgba(124, 92, 255, 0.28), transparent 62%), #0d0a22 !important; overflow: hidden;
}
html.ruota-piena-aperta { overflow: hidden; }
.ruota-piena > .ruota-pieno-btn { display: none; }
.ruota-piena-barra { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; flex: none; padding: 10px 12px; }
.ruota-piena-aiuto { flex: 1; min-width: 0; font-size: 0.78rem; line-height: 1.35; color: var(--testo-tenue); }
.ruota-piena-barra button {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; cursor: pointer;
  color: #e9e4fb; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(184, 172, 240, 0.35);
}
.ruota-piena-barra button:hover, .ruota-piena-barra button:focus-visible { border-color: #f0c24f; }
.ruota-piena-barra .ruota-piena-chiudi { margin-left: 6px; }
.ruota-piena-scena { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.ruota-piena-tela { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; transform-origin: 50% 50%; will-change: transform; }
.ruota-piena .ruota-piena-tela .ruota-svg { width: 100%; height: 100%; max-width: none; transform: none !important; filter: none; }
.ruota-piena > .ruota-info { flex: none; margin: 0 12px 10px; min-height: 0; }
@media (prefers-reduced-motion: reduce) { .ruota-piena-tela { will-change: auto; } }
