@media (hover: hover) and (pointer: fine) {
  :root { --dito: image-set(url("/immagini/cursore-stella-dito.png") 1x, url("/immagini/cursore-stella-dito@2x.png") 2x) 15 15, pointer;
    cursor: url("/immagini/cursore-stella.png") 12 12, auto;
    cursor: image-set(url("/immagini/cursore-stella.png") 1x, url("/immagini/cursore-stella@2x.png") 2x) 12 12, auto; }
}
:where(a[href], button:not(:disabled), summary, label:has(input), select, [role="button"], input[type="radio"], input[type="checkbox"]) { cursor: var(--dito, pointer); }

.barra { --barra-h: 52px; --barra-bordo: clamp(16px, 2.4vw, 40px); --barra-c: #fff; --barra-tenue: rgba(255, 255, 255, .66);
  --barra-vetro: rgba(10, 12, 20, .44); --barra-riga: rgba(255, 255, 255, .1); --barra-tasto: rgba(255, 255, 255, .14); --barra-orlo: rgba(255, 255, 255, .22);
  position: fixed; z-index: 40; top: 0; left: 0; right: 0; box-sizing: border-box; height: calc(var(--barra-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--barra-bordo), env(safe-area-inset-right)) 0 max(var(--barra-bordo), env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--barra-c);
  font: 500 13px/1 var(--font-testo); letter-spacing: 0; text-transform: none; transition: color .3s, opacity .6s, visibility 0s; }
.barra.chiara { --barra-c: #121212; --barra-tenue: rgba(18, 18, 18, .6); --barra-vetro: rgba(248, 246, 241, .66); --barra-riga: rgba(18, 18, 18, .08);
  --barra-tasto: rgba(18, 18, 18, .06); --barra-orlo: rgba(18, 18, 18, .14); }
.barra::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--barra-vetro); box-shadow: 0 1px 0 var(--barra-riga);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); opacity: 0; transition: opacity .35s, background-color .3s; }
.barra.vetro::before { opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .barra::before { background: rgba(10, 12, 20, .92); } .barra.chiara::before { background: rgba(248, 246, 241, .96); } }

.barra-marchio { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: inherit; text-decoration: none; font: 500 15px/1 var(--font-testo); letter-spacing: -.005em; white-space: nowrap; }
.barra-marchio svg { width: 17px; height: 17px; flex: none; fill: var(--blu-luce, #8ea2ff); transition: transform .7s cubic-bezier(.3, 1.3, .5, 1), fill .3s; }
.barra-marchio i { font-style: normal; color: var(--barra-tenue); transition: color .3s; }
.barra.chiara .barra-marchio svg { fill: #2b3a8c; }
@media (hover: hover) { .barra-marchio:hover svg { transform: rotate(180deg); } }

.barra-comandi { display: flex; align-items: center; gap: 8px; }
.barra-wa, .barra-menu { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; box-sizing: border-box; height: 34px; margin: 0; border: 0; border-radius: 99px;
  font: 500 13px/1 var(--font-testo); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: var(--dito, pointer); -webkit-tap-highlight-color: transparent;
  transition: background-color .25s, color .25s, box-shadow .25s, transform .2s; }
.barra-wa::before, .barra-menu::before { content: ""; position: absolute; inset: -5px -3px; }
.barra-wa { padding: 0 17px 0 14px; background: #2b3a8c; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1px rgba(142, 162, 255, .28); }
.barra-wa svg { width: 15px; height: 15px; flex: none; fill: currentColor; }
.barra-menu { min-width: 72px; padding: 0 16px; background: var(--barra-tasto); color: inherit; box-shadow: inset 0 0 0 1px var(--barra-orlo); }
.barra-menu[aria-expanded="true"] { background: var(--barra-orlo); }
@media (hover: hover) { .barra-wa:hover { background: #3a4cab; } .barra-menu:hover { background: var(--barra-orlo); } }
.barra-wa:active, .barra-menu:active { transform: scale(.96); }
.barra a:focus-visible, .barra button:focus-visible { outline: 2px solid #8ea2ff; outline-offset: 3px; }
.barra.chiara a:focus-visible, .barra.chiara button:focus-visible { outline-color: #2b3a8c; }
html:not(.barra-pronta) .barra-menu { display: none; }

.barra-voci { position: absolute; top: calc(100% + 6px); right: max(var(--barra-bordo), env(safe-area-inset-right)); box-sizing: border-box; width: min(360px, calc(100vw - 2 * var(--barra-bordo)));
  padding: 8px; border-radius: 24px; color: #fff; background: rgba(16, 20, 40, .3); -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .3), 0 24px 60px -12px rgba(0, 0, 0, .45);
  transform-origin: top right; animation: barra-apre .34s cubic-bezier(.2, .8, .2, 1); }
.barra-voci[hidden] { display: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .barra-voci { background: rgba(17, 21, 44, .95); } .barra.chiara .barra-voci { background: rgba(248, 246, 241, .97); } }
.barra.chiara .barra-voci { color: #121212; background: rgba(250, 248, 243, .5); box-shadow: inset 0 0 0 1px rgba(18, 18, 18, .08), inset 0 1px 0 rgba(255, 255, 255, .7), 0 24px 60px -12px rgba(0, 0, 0, .22); }
.barra-voce { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 13px 14px 14px 16px; border-radius: 16px; color: inherit; text-decoration: none; text-align: right;
  font: 400 23px/1.12 var(--font-titoli); letter-spacing: -.01em; text-shadow: 0 1px 12px rgba(8, 10, 24, .35); animation: barra-voce .42s cubic-bezier(.2, .8, .2, 1) both; transition: background-color .2s, color .2s; }
.barra.chiara .barra-voce { text-shadow: none; }
.barra-voce:nth-child(2) { animation-delay: .03s; } .barra-voce:nth-child(3) { animation-delay: .06s; } .barra-voce:nth-child(4) { animation-delay: .09s; }
.barra-voce span { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.barra-voce svg { width: 14px; height: 14px; flex: none; fill: currentColor; opacity: .55; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), opacity .25s; }
.barra-voce:hover, .barra-voce:focus-visible { background: rgba(255, 255, 255, .13); }
.barra.chiara .barra-voce:hover, .barra.chiara .barra-voce:focus-visible { background: rgba(18, 18, 18, .06); }
.barra-voce:hover span, .barra-voce:focus-visible span { transform: translateX(-4px); }
.barra-voce:hover svg, .barra-voce:focus-visible svg { opacity: 1; transform: scale(1.2); }
.barra-voce[aria-current="page"] { color: #b4c2ff; }
.barra-voce[aria-current="page"] svg { opacity: 1; fill: #8ea2ff; filter: drop-shadow(0 0 6px rgba(142, 162, 255, .8)); }
.barra.chiara .barra-voce[aria-current="page"] { color: #2b3a8c; }
.barra.chiara .barra-voce[aria-current="page"] svg { fill: #2b3a8c; filter: drop-shadow(0 0 5px rgba(43, 58, 140, .45)); }
.barra-piede { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 0; padding: 8px 10px 2px 16px; border-top: 1px solid rgba(255, 255, 255, .2);
  font: 500 11px/1 var(--font-testo); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.barra-piede a { display: inline-block; padding: 8px 4px; color: inherit; text-decoration: none; }
.barra-piede a:hover, .barra-piede a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.barra.chiara .barra-piede { border-top-color: rgba(18, 18, 18, .12); color: rgba(18, 18, 18, .7); }
@keyframes barra-apre { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes barra-voce { from { opacity: 0; transform: translateY(-5px); } }

html.attesa .barra { opacity: 0; visibility: hidden; transition: none; }

.cornice .barra { position: relative; flex: none; background: var(--notte, #0b0e15); box-shadow: 0 1px 0 rgba(255, 255, 255, .1); }
.cornice .barra-voci { background: rgba(11, 14, 21, .8); }
.barra-titolo { position: absolute; left: 50%; top: calc(50% + env(safe-area-inset-top) / 2); transform: translate(-50%, -50%); margin: 0; white-space: nowrap;
  font: 400 15px/1 var(--font-titoli); letter-spacing: 0; color: #f4f1ea; }
.barra-titolo small { margin-left: 8px; font: 500 10px/1 var(--font-testo); letter-spacing: .14em; text-transform: uppercase; color: var(--blu-luce, #8ea2ff); }

@media (max-width: 860px) {
  .cornice .barra { flex-wrap: wrap; height: auto; row-gap: 0; padding-bottom: 8px; }
  .cornice .barra-marchio, .cornice .barra-comandi { height: var(--barra-h); }
  .barra-titolo { position: static; order: 3; flex-basis: 100%; transform: none; text-align: center; font-size: 13px; }
}
@media (max-width: 640px) {
  .barra { --barra-h: 50px; --barra-bordo: 14px; }
  .barra-voci { left: 10px; right: 10px; width: auto; border-radius: 22px; }
  .barra-voce { font-size: 25px; padding: 15px 14px 16px; }
}
@media (max-width: 380px) { .barra-wa svg { display: none; } .barra-wa { padding: 0 14px; } }
@media (max-width: 340px) { .barra { gap: 8px; } .barra-marchio { font-size: 14px; gap: 7px; } .barra-comandi { gap: 6px; } .barra-wa, .barra-menu { padding: 0 12px; } .barra-menu { min-width: 0; } }

.riduci .barra, .riduci .barra::before, .riduci .barra-voci, .riduci .barra-voce, .riduci .barra-voce span, .riduci .barra-voce svg, .riduci .barra-marchio svg { animation: none; transition: none; }
.salta-barra { position: fixed; z-index: 60; left: 16px; top: 16px; padding: 12px 20px; border-radius: 99px; background: #f4f1ea; color: #121212; font: 500 15px/1.2 system-ui, sans-serif; text-decoration: none; transform: translateY(-200%); }
.salta-barra:focus-visible { transform: none; outline: 2px solid #8ea2ff; outline-offset: 3px; }
#contenuto:focus { outline: none; }
.menu-aperto iframe { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .barra, .barra::before, .barra-voci, .barra-voce, .barra-voce span, .barra-voce svg, .barra-marchio svg { animation: none; transition: none; }
  .barra-voce:hover span, .barra-voce:focus-visible span, .barra-marchio:hover svg { transform: none; }
}
@media print { .barra { display: none; } }
