/* Tema chiaro / scuro (20/10/2026). Base del tema scuro + tasto. Le regole scure dei singoli componenti stanno nei
   "gemelli" in assets/css/tema-scuro/ (generati), stampati subito dopo ciascun foglio. Tutto vale solo con
   <html data-asser-theme="dark">: senza l'attributo il sito resta identico. */

html[data-asser-theme="dark"] { color-scheme: dark; background-color: #120d10; }
html[data-asser-theme="dark"] body { background-color: #120d10; color: #ece3e7; }
html[data-asser-theme="dark"] ::selection { background: rgba(196, 92, 108, .55); color: #fff; }
html[data-asser-theme="dark"] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]), textarea, select) {
  background-color: #1d1519; color: #ece3e7; border-color: rgba(255, 255, 255, .14);
}
html[data-asser-theme="dark"] :where(input, textarea)::placeholder { color: rgba(236, 227, 231, .45); }
html[data-asser-theme="dark"] :where(img.asser-logo-3d__wordmark, img[src*="asser-logo-wordmark"]) {
  filter: invert(1) hue-rotate(180deg) brightness(1.06) saturate(1.15);
}
html[data-asser-theme="dark"] :where(hr) { border-color: rgba(255, 255, 255, .12); }
html[data-asser-theme="dark"] :where(code, pre, kbd) { background-color: rgba(255, 255, 255, .07); color: #f0e6ea; }

/* Passaggio morbido solo durante il cambio (la classe resta 450 ms) */
html.asser-tema-switching, html.asser-tema-switching *, html.asser-tema-switching *::before, html.asser-tema-switching *::after {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease, fill .4s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  html.asser-tema-switching, html.asser-tema-switching * { transition: none !important; }
}

/* ---------- Tasto nell'intestazione: un cerchio con sole e luna (stile Apple) ---------- */
.asser-tema-btn {
  position: relative; display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 34px; height: 34px; margin: 0; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(29, 29, 31, .1); background: rgba(255, 255, 255, .72); color: #1d1d1f;
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  font: inherit; line-height: 1; -webkit-tap-highlight-color: transparent;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), background-color .25s ease, border-color .25s ease;
}
.asser-tema-btn:hover { transform: scale(1.06); background: #fff; }
.asser-tema-btn:active { transform: scale(.94); }
.asser-tema-btn:focus-visible { outline: 3px solid rgba(176, 66, 79, .45); outline-offset: 2px; }
.asser-tema-btn__icons { position: relative; display: block; width: 18px; height: 18px; }
.asser-tema-btn__icons svg {
  position: absolute; inset: 0; width: 18px; height: 18px;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.asser-tema-btn__sun { opacity: 1; transform: rotate(0) scale(1); }
.asser-tema-btn__moon { opacity: 0; transform: rotate(-70deg) scale(.5); }
html[data-asser-theme="dark"] .asser-tema-btn__sun { opacity: 0; transform: rotate(70deg) scale(.5); }
html[data-asser-theme="dark"] .asser-tema-btn__moon { opacity: 1; transform: rotate(0) scale(1); }
html[data-asser-theme="dark"] .asser-tema-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #f3e9ed; box-shadow: none; }
html[data-asser-theme="dark"] .asser-tema-btn:hover { background: rgba(255, 255, 255, .14); }
.asser-tema-btn__label, .asser-tema-btn__switch { display: none; }
/* Barra dello staff: da 1440 punti in su (la barra ha una larghezza massima, non si allarga) "Sito Asser" lascia il
   posto al tasto; sotto i 1440 il sito lo nasconde gia' da se'. Vedi asser-ai-tema.js */
@media (min-width: 1440px) {
  body .asser-ai-app .portal-nav--tema-stretto .portal-nav__actions > a.asser-tema-nascondibile { display: none; }
}

/* In fondo all'intestazione, staccato dai tasti principali da una linea verticale sottile (20/10/2026, titolare) */
@media (min-width: 921px) {
  .portal-nav__actions > .asser-tema-btn { margin-left: 6px; }
  .portal-nav__actions > .asser-tema-btn::before {
    content: ""; position: absolute; left: -13px; top: 50%; width: 1px; height: 20px; transform: translateY(-50%);
    background: rgba(29, 29, 31, .14); pointer-events: none;
  }
  html[data-asser-theme="dark"] .portal-nav__actions > .asser-tema-btn::before { background: rgba(255, 255, 255, .16); }
}

.asser-tema-btn__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Telefono: nel menu a tutto schermo il tasto diventa una riga con l'interruttore */
@media (max-width: 920px) {
  .portal-nav .portal-nav__actions > .asser-tema-btn {
    order: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; height: auto; min-height: 52px; padding: 0 18px; border-radius: 999px;
    background: rgba(29, 29, 31, .05); border: 0; box-shadow: none; transform: none;
    font: 600 16px/1.2 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1d1d1f;
  }
  .portal-nav .portal-nav__actions > .asser-tema-btn:hover { transform: none; background: rgba(29, 29, 31, .08); }
  .portal-nav .portal-nav__actions > .asser-tema-btn .asser-tema-btn__label { display: inline-flex; align-items: center; gap: 10px; }
  .portal-nav .portal-nav__actions > .asser-tema-btn .asser-tema-btn__switch { display: inline-block; }
  .portal-nav .portal-nav__actions > .asser-tema-btn .asser-tema-btn__icons--solo { display: none; }
  html[data-asser-theme="dark"] .portal-nav .portal-nav__actions > .asser-tema-btn { background: rgba(255, 255, 255, .08); color: #f3e9ed; }
}

/* Interruttore iOS (riga del telefono e barra laterale dell'area clienti) */
.asser-tema-btn__switch, .dnav-tema__switch {
  position: relative; flex: 0 0 auto; width: 42px; height: 25px; border-radius: 999px;
  background: rgba(120, 120, 128, .24); transition: background-color .3s ease;
}
.asser-tema-btn__switch::after, .dnav-tema__switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .22);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
html[data-asser-theme="dark"] .asser-tema-btn__switch, html[data-asser-theme="dark"] .dnav-tema__switch { background: #b0424f; }
html[data-asser-theme="dark"] .asser-tema-btn__switch::after, html[data-asser-theme="dark"] .dnav-tema__switch::after { transform: translateX(17px); }

/* ---------- Voce nella barra laterale dell'area clienti ---------- */
.dashboard-view-nav a.dashboard-view-nav__tema { display: flex; align-items: center; }
.dashboard-view-nav a.dashboard-view-nav__tema .dnav-label { flex: 1 1 auto; min-width: 0; }
.dashboard-view-nav a.dashboard-view-nav__tema .dnav-tema__switch { margin-left: auto; transform: scale(.86); transform-origin: right center; }

/* Grafico a ciambella della dashboard: i colori sono attributi dell'SVG, il generatore non li vede */
html[data-asser-theme="dark"] .professional-dashboard__donut circle[stroke="#f0eef1"] { stroke: rgba(255, 255, 255, .1); }
html[data-asser-theme="dark"] .professional-dashboard__donut circle[stroke="#1f5148"] { stroke: #3f9a87; }
html[data-asser-theme="dark"] .professional-dashboard__donut circle[stroke="#7d445e"] { stroke: #c47a9a; }
html[data-asser-theme="dark"] .professional-dashboard__donut circle[stroke="#8d5915"] { stroke: #d39b4c; }
html[data-asser-theme="dark"] .professional-dashboard__donut circle[stroke="#4b2338"] { stroke: #a65a7c; }
html[data-asser-theme="dark"] .professional-dashboard__donut circle[stroke="#b9b4b7"] { stroke: #6f676b; }
html[data-asser-theme="dark"] .professional-dashboard__donut text { fill: #f3e9ed; }

/* Calendario in tema scuro: i giorni con rate o date utili un po' PIU' chiari dei giorni vuoti (non piu' scuri) */
html[data-asser-theme="dark"] .pay-cal__cell.has-events,
html[data-asser-theme="dark"] .pay-cal__cell.has-notes { background: rgba(255, 255, 255, .075); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
html[data-asser-theme="dark"] .pay-cal__cell.has-events:hover, html[data-asser-theme="dark"] .pay-cal__cell.has-notes:hover,
html[data-asser-theme="dark"] .pay-cal__cell.has-events:focus-visible, html[data-asser-theme="dark"] .pay-cal__cell.has-notes:focus-visible { background: rgba(255, 255, 255, .11); }

/* Asserina sulla pratica (20/10/2026): anelli di selezione, riflesso del bottone "moneta" e barra di vetro nel tema
   scuro (il generatore scurisce gli anelli e il riflesso bianco; qui restano nei colori ASSER e luminosi) */
html[data-asser-theme="dark"] body .case-chat__action.is-on { box-shadow: inset 0 0 0 2px #c4515e, 0 6px 16px rgba(176, 66, 79, .22); background: #2a2123; }
html[data-asser-theme="dark"] body .case-chat__action--rianalisi.is-on { background: linear-gradient(135deg, #c4515e 0%, #a8475a 42%, #7d3a5a 100%); box-shadow: 0 0 0 3px rgba(196, 81, 94, .35), 0 8px 22px rgba(176, 66, 79, .36); }
html[data-asser-theme="dark"] body .case-chat__form:focus-within { box-shadow: inset 0 0 0 2px #c4515e; }
html[data-asser-theme="dark"] body .case-chat__form.is-drop { box-shadow: inset 0 0 0 2px #c4515e, 0 0 0 4px rgba(196, 81, 94, .18); }
html[data-asser-theme="dark"] body .case-chat__send.is-pill::after { background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .3) 48%, rgba(255, 255, 255, 0) 64%); }
html[data-asser-theme="dark"] body .case-chat__thumb { border-color: rgba(255, 255, 255, .28); background: linear-gradient(90deg, rgba(255, 255, 255, .34) 0%, rgba(214, 160, 172, .4) 45%, rgba(196, 81, 94, .55) 100%); box-shadow: 0 2px 8px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
html[data-asser-theme="dark"] body .case-chat__rail { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08); }
html[data-asser-theme="dark"] body .case-chat__zoom-btn:hover { background: rgba(255, 255, 255, .1); }

/* ---- marchio "ASSER AI" (21/10/2026, titolare: «togliamo AI nel pallino verde a fianco al logo e mettiamolo meglio») ----
   La parola AI diventa parte del nome: stessa altezza delle lettere di ASSER, centrata su di esse, nei colori ASSER.
   Il foglio si carica in testa a ogni pagina dei due siti: il vecchio pallino verde non compare nemmeno per un istante. */
.asser-ai-app .portal-brand__ai {
  display: block; width: auto; height: auto; margin: 0 0 0 1px; padding: 0; border-radius: 0; box-shadow: none;
  align-self: center; transform: translateY(-5.8px);
  font: 400 32px/1 "Sora", "Manrope", system-ui, sans-serif; letter-spacing: -0.02em;
  color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, #f08ab4 0%, #c4486f 52%, #7d2f57 100%); -webkit-background-clip: text; background-clip: text;
}
@media (max-width: 920px) {
  .asser-ai-app .portal-brand__ai { font-size: 27.5px; transform: translateY(-4.9px); }
}
html[data-asser-theme="dark"] body .asser-ai-app .portal-brand__ai {
  color: transparent; -webkit-text-fill-color: transparent; box-shadow: none;
  background: linear-gradient(135deg, #ffc1d8 0%, #ff7aa8 50%, #d1477a 100%); -webkit-background-clip: text; background-clip: text;
}

/* gemma fotorealistica del logo e della chat (21/10/2026): compare subito come sfondo; lo script poi la sostituisce con la
   versione animata (stesso file) e, se la foto mancasse, con la gemma 3D di prima */
.asser-ai-app .asser-logo-3d__stage:not([data-asser-gem-ready]),
.asser-ai-app .portal-chat__gem:not([data-asser-gem-ready]) {
  background: url("../img/asser-gem.webp?v=20261021") center / contain no-repeat;
}

/* Asserina con il logo (21/10/2026, titolare: «chiedi ad Asserina metterei il logo questa volta statico»): dove c'era la
   "A" (barra "Chiedi ad Asserina", pannello, riquadro della pratica, esempio della home) c'e' la gemma, ferma. La lettera
   resta nella pagina (nascosta) per chi legge il codice; !important perche' i gemelli scuri di quei fogli hanno un prefisso
   piu' specifico. */
.asserina-launch__dot,
.asserina-sheet__avatar,
.case-chat__avatar,
.case-chat__mini,
.asser-ai-app .hf-chat__av {
  color: transparent !important; font-size: 0 !important; -webkit-text-fill-color: transparent;
  background: url("../img/asser-gem.webp?v=20261021") center / 74% no-repeat, radial-gradient(circle at 34% 28%, #ffffff 0%, #fbf3f6 55%, #f1dde6 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(176, 66, 79, 0.18), 0 4px 12px rgba(75, 35, 56, 0.14) !important;
}
html[data-asser-theme="dark"] .asserina-launch__dot,
html[data-asser-theme="dark"] .asserina-sheet__avatar,
html[data-asser-theme="dark"] .case-chat__avatar,
html[data-asser-theme="dark"] .case-chat__mini,
html[data-asser-theme="dark"] .asser-ai-app .hf-chat__av {
  background: url("../img/asser-gem.webp?v=20261021") center / 74% no-repeat, radial-gradient(circle at 34% 28%, #4a3640 0%, #2e2228 60%, #221a1e 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}
.asserina-launch__field--brand .asserina-launch__dot { width: 26px !important; height: 26px !important; }

/* =====================================================================================================================
   Piede di pagina "liquid glass" (21/10/2026, titolare: «curiamo meglio il footer mettendo come colore una liquid glass con
   colore del brand e curiamo meglio la sezione in generale»). Solo stile, stesse classi dei modelli di pagina dei due siti:
   fondo nei colori ASSER con riflessi che si muovono piano, sopra un pannello di vetro con bordo luminoso; marchio con "AI"
   come in testata; collegamenti in colonne ordinate; contatti in pillole di vetro. Uguale nel tema chiaro e scuro.
   Prefisso "html body .asser-ai-app" per stare sopra il foglio del telefono e ai gemelli scuri.
   ===================================================================================================================== */
@property --pf-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
html body .asser-ai-app .portal-footer {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(32px, 5vw, 64px);
  padding: clamp(44px, 6vw, 76px) max(16px, calc((100vw - 1180px) / 2)) 26px;
  border-radius: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 44px) 0 0;
  background: #22101b;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
}
/* i colori del marchio dietro al vetro: tre luci che si muovono piano */
html body .asser-ai-app .portal-footer::before {
  content: ""; position: absolute; inset: -30%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 46% at 18% 30%, rgba(224, 120, 159, 0.62), rgba(224, 120, 159, 0) 70%),
    radial-gradient(34% 42% at 78% 22%, rgba(176, 66, 79, 0.7), rgba(176, 66, 79, 0) 70%),
    radial-gradient(44% 50% at 62% 88%, rgba(122, 58, 140, 0.55), rgba(122, 58, 140, 0) 72%),
    radial-gradient(30% 36% at 30% 92%, rgba(240, 138, 180, 0.4), rgba(240, 138, 180, 0) 70%),
    linear-gradient(160deg, #3b1730 0%, #24101d 55%, #170a12 100%);
  animation: pf-aurora 26s ease-in-out infinite alternate;
}
/* grana leggera, come il vetro vero */
html body .asser-ai-app .portal-footer::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 60%);
}
@keyframes pf-aurora {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(4%, -3%, 0) scale(1.08) rotate(6deg); }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.04) rotate(-5deg); }
}
/* il pannello di vetro */
html body .asser-ai-app .portal-footer__inner {
  position: relative; z-index: 1;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.65fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 3.2vw, 44px);
  border-radius: clamp(24px, 3vw, 34px);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.1) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 30px 80px rgba(8, 2, 6, 0.38), 0 2px 6px rgba(8, 2, 6, 0.2);
}
/* riflesso in alto a sinistra e bordo di luce che scorre piano tutto intorno */
html body .asser-ai-app .portal-footer__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(70% 90% at 0% 0%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 55%);
}
html body .asser-ai-app .portal-footer__inner::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--pf-a), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.08) 22%, rgba(255, 188, 214, 0.55) 48%, rgba(255, 255, 255, 0.08) 74%, rgba(255, 255, 255, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: pf-edge 14s linear infinite;
}
@keyframes pf-edge { to { --pf-a: 360deg; } }

/* marchio: gemma, scritta e "AI" come in testata */
html body .asser-ai-app .portal-footer__brandmark { gap: 2px; align-items: center; }
html body .asser-ai-app .portal-footer .asser-logo-3d--footer .asser-logo-3d__stage { width: 54px; height: 54px; }
html body .asser-ai-app .portal-footer .asser-logo-3d--footer .asser-logo-3d__wordmark { width: 150px; filter: brightness(0) invert(1); opacity: 0.94; }
html body .asser-ai-app .portal-footer .portal-footer__ai {
  display: block; width: auto; height: auto; margin: 0 0 0 2px; padding: 0; border-radius: 0; box-shadow: none;
  align-self: center; transform: translateY(-6.4px);
  font: 400 35px/1 "Sora", "Manrope", system-ui, sans-serif; letter-spacing: -0.02em;
  color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, #ffc9dd 0%, #ff86b1 50%, #e0578b 100%); -webkit-background-clip: text; background-clip: text;
}
html body .asser-ai-app .portal-footer__brand p { max-width: 380px; margin: 18px 0 0; color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; line-height: 1.6; }

/* colonne di collegamenti */
html body .asser-ai-app .portal-footer .portal-footer__links { gap: 2px; align-content: start; }
html body .asser-ai-app .portal-footer nav.portal-footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
html body .asser-ai-app .portal-footer .portal-footer__links > strong {
  grid-column: 1 / -1; margin: 0 0 10px; color: rgba(255, 255, 255, 0.96);
  font: 800 0.72rem/1.2 "Manrope", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
}
html body .asser-ai-app .portal-footer .portal-footer__links > a,
html body .asser-ai-app .portal-footer .portal-footer__links > span,
html body .asser-ai-app .portal-footer .portal-footer__links .portal-footer__cookie {
  display: flex; align-items: center; min-height: 36px; margin: 0 0 0 -10px; padding: 6px 10px; border-radius: 12px;
  color: rgba(255, 255, 255, 0.78); font: 600 0.92rem/1.3 "Manrope", system-ui, sans-serif; text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
html body .asser-ai-app .portal-footer .portal-footer__links > a:hover,
html body .asser-ai-app .portal-footer .portal-footer__links .portal-footer__cookie:hover {
  background: rgba(255, 255, 255, 0.12); color: #fff; transform: translateX(2px);
}
html body .asser-ai-app .portal-footer .portal-footer__links > a:focus-visible,
html body .asser-ai-app .portal-footer .portal-footer__links .portal-footer__cookie:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.85); outline-offset: 1px; }
/* contatti: l'e-mail e' una pillola di vetro */
html body .asser-ai-app .portal-footer .portal-footer__links:not(nav) > a[href^="mailto:"] {
  justify-self: start; gap: 8px; margin: 0 0 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 8px 20px rgba(8, 2, 6, 0.25);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
html body .asser-ai-app .portal-footer .portal-footer__links:not(nav) > a[href^="mailto:"]::before {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body .asser-ai-app .portal-footer .portal-footer__links:not(nav) > a[href^="mailto:"]:hover { background: rgba(255, 255, 255, 0.22); transform: none; }
html body .asser-ai-app .portal-footer .portal-footer__links:not(nav) > span { color: rgba(255, 255, 255, 0.62); }

/* riga in basso: copyright e avvertenza, sotto il vetro */
html body .asser-ai-app .portal-footer__bottom {
  position: relative; z-index: 1; gap: 12px 32px; margin-top: 22px; padding: 18px 6px 0;
  border-top: 0; color: rgba(255, 255, 255, 0.58); font-size: 0.74rem; line-height: 1.5;
}
html body .asser-ai-app .portal-footer__bottom span:last-child { max-width: 720px; text-align: right; text-wrap: balance; }

@media (max-width: 920px) {
  html body .asser-ai-app .portal-footer { padding-top: 36px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  html body .asser-ai-app .portal-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 24px 20px; }
  html body .asser-ai-app .portal-footer .portal-footer__links > a,
  html body .asser-ai-app .portal-footer .portal-footer__links > span,
  html body .asser-ai-app .portal-footer .portal-footer__links .portal-footer__cookie { min-height: 44px; font-size: 15px; }
  html body .asser-ai-app .portal-footer__bottom { flex-direction: column; padding-top: 16px; }
  html body .asser-ai-app .portal-footer__bottom span:last-child { text-align: left; }
  html body .asser-ai-app .portal-footer .portal-footer__ai { font-size: 30px; transform: translateY(-5.4px); }
  html body .asser-ai-app .portal-footer .asser-logo-3d--footer .asser-logo-3d__wordmark { width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  html body .asser-ai-app .portal-footer::before, html body .asser-ai-app .portal-footer__inner::after { animation: none; }
}
