/* The legal pages (legale/pagina.js): the living evening of the threshold over its living sea (ui/fondale.js, drawn
   on .lg-fondale), and the document standing in that sea as cards of the way. Below the waterline (.lg-acqua) the
   page is under the water: dimmed, blurred, tinted by the sea, with a line of light where the surface meets it.
   Every card is built by the script as it comes out of the water (outline, glass, letters, number, lines); here is
   how the pieces look, and how they are at rest. Same palette, letters and marks as the site. */
:root {
  --ink: #212121; --testo: #F3EEF7; --menta: #B3F5A0; --molla: cubic-bezier(.2, .8, .2, 1); --bordo: clamp(16px, 2.1vw, 32px);
  --serif: "Instrument Serif", "Times New Roman", serif; --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* until the sea is drawn, only the haze of the threshold's evening: no shape, no horizon */
html { background: #8E818B radial-gradient(130% 90% at 50% 56%, #A89A9F 0%, #918491 45%, #7A6E7D 100%) fixed; -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-width: none; }
/* a tap never shows its box, and a long press on a control opens no menu: on a phone the site is touched as it is
   pointed at with a mouse (ui/dito.js) */
html { -webkit-tap-highlight-color: transparent; }
/* the page never reloads under the finger: no pull to refresh, no rubber band at its ends */
html, body { overscroll-behavior: none; }
a, button, [role="button"], .bottone-4d, label, .lingua { -webkit-touch-callout: none; touch-action: manipulation; }
/* no scrollbar at the side: the page moves with the wheel, the finger and the keys, as the site does */
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { scrollbar-width: none; }
body { margin: 0; font-family: var(--sans); color: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── the sea and the sky ── */
.lg-fondale { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.lg-fondale.pronto { opacity: 1; }
/* a breath of shade at the top, where the head stands, and at the corners */
.lg-velo { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(40, 24, 70, .32) 100%), linear-gradient(180deg, rgba(50, 34, 86, .36), transparent 22%); }

/* while the sea is drawn: the horizon of the evening, a line of light opening from the middle and breathing */
.lg-attesa { position: fixed; z-index: 1; left: 0; right: 0; top: 70.5vh; height: 0; pointer-events: none; transition: opacity 1.1s ease; }
.lg-attesa i { position: absolute; left: 50%; top: -1px; width: min(70rem, 92vw); height: 2px; translate: -50% 0; transform-origin: 50% 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 246, .8) 30%, #fff 50%, rgba(255, 236, 246, .8) 70%, transparent);
  box-shadow: 0 0 18px 2px rgba(255, 210, 230, .45), 0 0 60px 8px rgba(233, 180, 255, .18);
  animation: lg-orizzonte 2.6s cubic-bezier(.2, .7, .2, 1) both, lg-respiro 3.2s 2.6s ease-in-out infinite; }
@keyframes lg-orizzonte { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: .9; } }
@keyframes lg-respiro { 0%, 100% { opacity: .9; } 50% { opacity: .55; } }
html.pronta .lg-attesa, html.mare .lg-attesa { opacity: 0; }

/* ── the water the page stands in: under its line the page is in the sea ── */
.lg-acqua { position: fixed; z-index: 3; top: 86vh; bottom: 0; left: 50%; width: min(60rem, 100vw); translate: -50% 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease .3s;
  -webkit-backdrop-filter: blur(3px) saturate(.72) brightness(.8); backdrop-filter: blur(3px) saturate(.72) brightness(.8);
  background: linear-gradient(180deg, rgba(176, 150, 214, .16) 0%, rgba(84, 58, 140, .34) 35%, rgba(36, 20, 74, .62) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%); }
/* light that the surface lets down, moving with the swell */
.lg-acqua::after { content: ""; position: absolute; inset: 0; opacity: .32; mix-blend-mode: screen;
  background: radial-gradient(40% 9% at 30% 20%, rgba(255, 226, 238, .35), transparent 70%), radial-gradient(32% 7% at 70% 45%, rgba(233, 200, 255, .3), transparent 70%), radial-gradient(45% 8% at 50% 75%, rgba(255, 214, 230, .22), transparent 70%);
  background-size: 140% 100%; animation: lg-caustiche 9s ease-in-out infinite alternate; }
html.mare .lg-acqua { opacity: 1; }
@keyframes lg-caustiche { 0% { background-position: 0% 0%, 100% 0%, 50% 0%; } 100% { background-position: 100% 0%, 0% 0%, 20% 0%; } }
/* the meniscus: a line of light where the surface meets what stands in it, quivering */
.lg-menisco { position: absolute; left: 0; right: 0; top: -1px; height: 2px; display: block;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 250, .85) 18%, rgba(255, 255, 255, .95) 50%, rgba(255, 244, 250, .85) 82%, transparent);
  box-shadow: 0 0 10px 1px rgba(255, 214, 236, .5), 0 3px 14px rgba(255, 214, 236, .25); animation: lg-menisco 3.4s ease-in-out infinite; }
@keyframes lg-menisco { 0%, 100% { transform: translateY(0) scaleY(1); opacity: .85; } 50% { transform: translateY(1.5px) scaleY(1.4); opacity: 1; } }

/* ── the head: the mark, the language, the way back ── */
.lg-testa { position: fixed; z-index: 5; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: var(--bordo); isolation: isolate; }
/* the words of the page go under the head into a soft blur, never behind the mark */
.lg-testa::before { content: ""; position: absolute; inset: 0 0 -28px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(58, 44, 94, .7), rgba(58, 44, 94, 0));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.marchio { display: flex; align-items: center; gap: .6em; font-size: clamp(1.05rem, 1.35vw, 1.4rem); font-weight: 500; letter-spacing: .16em; text-decoration: none; }
.marchio-nome { text-transform: uppercase; }
.marchio-segno { width: 1.55em; height: 1.55em; transition: transform 1.2s var(--molla); }
.marchio:is(:hover, .dito) .marchio-segno { transform: rotate(360deg); }
.lg-destra { display: flex; align-items: center; gap: .8rem; }
/* the way back: the site's button in three blocks, a size smaller */
.lg-torna .b4 { height: 46px; gap: .7rem; padding: 0 1.3rem; font-size: .92rem; }
.lg-torna .b4-freccia { width: 36px; height: 36px; }
/* the language switch as tall as the way back beside it */
.lg-destra .lingua { height: 46px; }
.lg-destra .lingua-voce { height: 40px; min-width: 50px; }
.lg-freccia { width: .8em; height: .8em; flex: none; }

/* ── the page: a column of cards in the sea ── */
.lg-foglio { position: relative; z-index: 2; width: min(52rem, calc(100vw - 2 * var(--bordo))); margin: calc(var(--bordo) + 6.5rem) auto 40vh; visibility: hidden; }
html.pronta .lg-foglio { visibility: visible; }
.lg-carta { position: relative; isolation: isolate; margin-top: 2.4rem; padding: clamp(1.6rem, 3.2vw, 2.8rem) clamp(1.3rem, 3.6vw, 3.2rem) clamp(1.7rem, 3.2vw, 2.6rem); transform-style: preserve-3d; }
.lg-carta:first-child { margin-top: 0; }
/* its glass, poured down behind the two lights */
/* the card stands out of the screen: its thickness, a slab of soft layers of violet, lies on the side away from the
   hand (--kx --ky follow --vx --vy), and a long shade falls under it */
.lg-carta { --kx: calc(-.55 - var(--vx, 0) * .7); --ky: calc(1 - var(--vy, 0) * .5); }
.lg-vetro { position: absolute; inset: 0; z-index: -1; border-radius: 1.9rem; pointer-events: none;
  background: linear-gradient(180deg, rgba(64, 40, 108, .56), rgba(38, 22, 72, .68));
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28),
    calc(var(--kx) * 2px) calc(var(--ky) * 2px) 1px rgba(232, 204, 248, .6), calc(var(--kx) * 4px) calc(var(--ky) * 4px) 1px rgba(208, 168, 240, .55),
    calc(var(--kx) * 6px) calc(var(--ky) * 6px) 1px rgba(180, 134, 226, .52), calc(var(--kx) * 8px) calc(var(--ky) * 8px) 1px rgba(150, 104, 208, .5),
    calc(var(--kx) * 10px) calc(var(--ky) * 10px) 1.5px rgba(122, 80, 184, .48), calc(var(--kx) * 12px) calc(var(--ky) * 12px) 2px rgba(96, 58, 158, .46),
    calc(var(--kx) * 14px) calc(var(--ky) * 14px) 3px rgba(70, 40, 128, .44), 0 56px 90px -38px rgba(20, 8, 44, .9); }
/* its outline, a line of light; and the two lights that draw it */
.lg-traccia { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
.lg-traccia path { fill: none; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.lg-traccia .alone path { stroke: #FFC4D6; stroke-width: 7; opacity: .26; }
.lg-traccia .luce path { stroke: rgba(255, 255, 255, .72); stroke-width: 1.15; }
.lg-cometa { position: absolute; left: 0; top: 0; z-index: 1; width: 22px; height: 22px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, #fff, rgba(255, 214, 230, .85) 35%, rgba(233, 160, 255, .35) 62%, rgba(233, 160, 255, 0)); }
.lg-dentro { position: relative; z-index: 1; transform-style: preserve-3d; }
/* the hand's light over the glass (ui/quattrod.js) */
.q4d-luce { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.q4d-luce i { position: absolute; left: -60%; top: -60%; width: 220%; height: 220%; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 30%); }
.lg-carta > .q4d-luce { border-radius: 1.9rem; }

/* titles: words that hold together, letters that come out of the depth */
.lg-titolo { perspective: 640px; transform-style: preserve-3d; }
.lg-parola { display: inline-block; white-space: nowrap; transform-style: preserve-3d; }
.lg-lettera { display: inline-block; transform-origin: 50% 80%; }
.lg-kick { margin: 0 0 .9rem; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #FFC4D6; }
.lg-prima h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: .95; letter-spacing: -.015em;
  text-shadow: 0 6px 24px rgba(20, 8, 44, .45); }
/* the head: the title on the left and, on its right, a small card of the same glass with the document's details */
/* the two blocks of the head stand exactly as tall as each other: the left one's label on the top edge of the details
   card, the title's foot on the foot of the three documents */
.lg-capo { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 1.2rem 2rem; }
/* on the right: the details card and, under it, the three documents */
.lg-capo-d { display: flex; flex-direction: column; align-items: stretch; gap: 1.1rem; perspective: 900px; }
.lg-capo-d .lg-documenti { margin: 0; justify-content: space-between; }
.lg-capo-t { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
/* side by side on any screen but a phone: a long title goes onto two lines rather than pushing the card below */
@media (min-width: 701px) { .lg-capo { flex-wrap: nowrap; } .lg-capo-t { flex: 1 1 auto; } .lg-capo-d { flex: none; } }
.lg-capo-t .lg-kick { margin: .15rem 0 1rem; }
.lg-capo-t h1 { margin-bottom: -.12em; }
/* alive to the pointer wherever it is (--krx --kry, written by segui), coming forward when the pointer is on it
   (--klo); its thickness, soft layers of violet, on the side the turn shows (--kex --key); a light over it; its words
   at their own depths, standing out the same way */
.lg-stato { position: relative; display: flex; flex-direction: column; gap: .4rem; margin: 0; padding: .95rem 1.15rem 1rem; min-width: 14.5rem; border-radius: 1.15rem;
  font-size: .8rem; line-height: 1.3; color: rgba(255, 255, 255, .9); transform-style: preserve-3d;
  transform: rotateX(calc(var(--krx, 0) * 1deg)) rotateY(calc(var(--kry, 0) * 1deg)) translateZ(calc(var(--klo, 0) * 18px));
  /* coming in (--su from 0 to 1, pagina.js): glass, thickness and words appear together, never the card flat first */
  background: radial-gradient(60% 80% at var(--klx, 50%) var(--kly, 50%), rgba(255, 236, 246, calc(var(--klo, 0) * .22 * var(--su, 1))), transparent 72%), linear-gradient(180deg, rgba(255, 255, 255, calc(.1 * var(--su, 1))), rgba(255, 255, 255, calc(.05 * var(--su, 1))));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, calc(.34 * var(--su, 1))), inset 0 1px 0 rgba(255, 255, 255, calc(.34 * var(--su, 1))),
    calc(var(--kex, -.4) * 3px) calc(var(--key, 1) * 3px) 1px rgba(214, 176, 244, calc(.55 * var(--su, 1))), calc(var(--kex, -.4) * 6px) calc(var(--key, 1) * 6px) 1px rgba(176, 130, 226, calc(.5 * var(--su, 1))),
    calc(var(--kex, -.4) * 9px) calc(var(--key, 1) * 9px) 1.5px rgba(134, 92, 200, calc(.46 * var(--su, 1))), calc(var(--kex, -.4) * 12px) calc(var(--key, 1) * 12px) 2.5px rgba(92, 56, 154, calc(.42 * var(--su, 1))),
    0 28px 44px -24px rgba(20, 8, 44, calc(.9 * var(--su, 1))); }
.lg-stato span { display: block; opacity: var(--su, 1); transform: translateZ(14px); text-shadow: 0 2px 10px rgba(30, 14, 60, .5); }
.lg-stato small { transform: translateZ(6px); }
.lg-stato span + span { padding-top: .4rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.lg-stato small { display: block; margin-bottom: .15rem; font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #FFC4D6; }
.lg-documenti { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.8rem 0 0; }
.lg-documenti a { position: relative; padding: .58em 1.15em; border-radius: 999px; font-size: .86rem; font-weight: 500; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), -2px 3px 0 rgba(170, 120, 214, .35), -4px 6px 0 rgba(110, 68, 166, .25); transition: background .4s, color .4s; }
.lg-documenti a:is(:hover, .dito), .lg-documenti a:focus-visible { background: rgba(255, 255, 255, .14); outline: none; }
.lg-documenti a[aria-current="page"] { background: #fff; color: var(--ink); }
.lg-intro { margin: 2.2rem 0 0; padding-top: 1.8rem; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 1rem; line-height: 1.65; color: rgba(255, 255, 255, .92); }
.lg-intro p { margin: 0; }
.lg-intro ul, .lg-col ul { margin: .9rem 0 0; padding: 0; list-style: none; }
/* the bullet lives inside its line, so it is written with it */
.lg-intro li, .lg-col li { position: relative; margin: .35rem 0; padding-left: 1.1rem; line-height: 1.55; }
.lg-intro li::before, .lg-col li::before { content: ""; position: absolute; left: .15rem; top: .66em; width: 5px; height: 5px; border-radius: 50%; background: #FFC4D6; box-shadow: 0 0 8px rgba(255, 196, 214, .8); }

/* who runs the site, on one line: its details side by side, a small light between them */
.lg-dati { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: 1rem 0 0 !important; font-size: .92rem; line-height: 1.5; }
.lg-dati span { white-space: nowrap; }
.lg-dati i { width: 5px; height: 5px; border-radius: 50%; background: #FFC4D6; box-shadow: 0 0 8px rgba(255, 196, 214, .8); }

/* a section: its number large and italic, outside the card on its left, as on the cards of the way; its middle on the
   middle of the title's first line (the card's top padding and half the title's line) */
.lg-n { position: absolute; z-index: 2; right: calc(100% + .7rem); top: calc(clamp(1.6rem, 3.2vw, 2.8rem) + clamp(1.3rem, 1.9vw, 1.7rem) * .6 + .06em); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: .8; letter-spacing: -.02em; white-space: nowrap; transform-origin: 100% 50%;
  text-shadow: -1px 1.4px 3.4px rgba(226, 192, 244, 0.76), -2px 2.8px 6.7px rgba(182, 134, 226, 0.68), -3px 4.2px 10.1px rgba(134, 88, 194, 0.60), -4px 5.6px 13.4px rgba(92, 56, 154, 0.52), 0 14px 30px rgba(20, 8, 44, .6); }
/* under the hand a section's number comes forward and catches the light */
.lg-n { transition: scale .7s cubic-bezier(.16, 1, .3, 1), filter .6s; transform-origin: 100% 50%; }
.lg-sezione:is(:hover, .dito) .lg-n { scale: 1.16; filter: drop-shadow(0 0 14px rgba(233, 160, 255, .55)); }
.lg-sezione h2 { margin: 0 0 .9rem; font-size: clamp(1.3rem, 1.9vw, 1.7rem); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.lg-col { font-size: 1rem; line-height: 1.65; color: rgba(255, 255, 255, .92); }
.lg-col p { margin: 0 0 .9rem; }
/* the text set justified, as a book's page: both edges straight, the words broken at the end of a line where they must */
.lg-col p, .lg-col li, .lg-intro > p { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3; }
.lg-col h3 { margin: 1.4rem 0 .5rem; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.35rem; color: #fff; }
.lg-col h3:first-child { margin-top: 0; }
.inline { text-decoration: underline; text-decoration-color: rgba(255, 196, 214, .7); text-underline-offset: .22em; transition: text-decoration-color .3s; }
.inline:is(:hover, .dito), .inline:focus-visible { text-decoration-color: #fff; outline: none; }
code { white-space: nowrap; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .86em; padding: .12em .4em; border-radius: .4em; background: rgba(255, 255, 255, .12); }
.lg-tabella { margin: 1rem 0 1.2rem; overflow-x: auto; border-radius: 1rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.lg-tabella table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.45; }
.lg-tabella th { text-align: left; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #FFC4D6; padding: .9rem 1rem .6rem; }
.lg-tabella td { vertical-align: top; padding: .75rem 1rem; border-top: 1px solid rgba(255, 255, 255, .14); }

/* ── in four dimensions: under the hand the sheet leans (quattrod), and its pieces stand at their own depths and part
   as the hand moves (--vx --vy, eased in pagina.js): the title behind, the text, the number in front; a line under the
   hand comes toward you and catches a soft light ── */
.lg-col, .lg-intro { transform-style: preserve-3d; translate: calc(var(--vx, 0) * 3px) calc(var(--vy, 0) * 2px); }
.lg-titolo, .lg-kick { translate: calc(var(--vx, 0) * -6px) calc(var(--vy, 0) * -4px); }
.lg-n { translate: calc(var(--vx, 0) * 12px) calc(-50% + var(--vy, 0) * 9px); }
/* the details card and the pills slide in from the left as they appear (--su, pagina.js), whole, layers and all */
.lg-stato, .lg-documenti { translate: calc(var(--vx, 0) * 5px - (1 - var(--su, 1)) * 14px) calc(var(--vy, 0) * 3px); }
.lg-documenti { opacity: var(--su, 1); }
.lg-col > p, .lg-col li, .lg-intro > p, .lg-dati, .lg-tabella tr { position: relative; border-radius: .7rem; transition: translate .5s var(--molla), background .4s, text-shadow .4s; }
.lg-col > p:is(:hover, .dito), .lg-col li:is(:hover, .dito), .lg-intro > p:is(:hover, .dito), .lg-dati:is(:hover, .dito) { translate: 0 -1px 18px; background: radial-gradient(80% 140% at var(--hx, 50%) 50%, rgba(255, 220, 236, .1), transparent 72%); text-shadow: 0 2px 14px rgba(30, 14, 60, .55); }
.lg-col li:is(:hover, .dito)::before, .lg-intro li:is(:hover, .dito)::before { box-shadow: 0 0 14px 2px rgba(255, 196, 214, .9); }
.lg-tabella tr:is(:hover, .dito) td { background: rgba(255, 220, 236, .07); }
.lg-col h3 { transition: translate .5s var(--molla); }
.lg-col h3:is(:hover, .dito) { translate: 0 0 14px; }
.inline { display: inline-block; transition: text-decoration-color .3s, text-shadow .3s; }
.inline:is(:hover, .dito) { text-shadow: 0 0 12px rgba(255, 196, 214, .6); }

/* the sound switch, at the bottom on the left as in the site's bar */
.lettore { position: relative; flex: none; display: flex; align-items: center; justify-content: center; gap: 3px; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50% 50% 50% 0; cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1.6px rgba(255, 255, 255, .9), -2px 2px 0 rgba(150, 110, 200, .45), -4px 4px 0 rgba(110, 74, 168, .3), 0 12px 24px -12px rgba(30, 14, 60, .6);
  transition: background .5s, box-shadow .5s, color .4s; }
.lettore i { width: 3px; height: 17px; border-radius: 2px; background: currentColor; transform: scaleY(.28); transform-origin: 50% 50%; will-change: transform; }
.lettore::after { content: ""; position: absolute; left: 50%; top: 50%; width: 27px; height: 2.4px; margin: -1.2px 0 0 -13.5px; border-radius: 2px; background: currentColor; transform: rotate(-45deg); box-shadow: 0 0 0 1.5px rgba(60, 34, 104, .35); transition: opacity .3s, transform .45s var(--molla); }
.lettore.acceso { background: linear-gradient(135deg, #FFC4D6 0%, #E9A0FF 48%, #9F8BFF 100%); color: #3B2A5C; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), -2px 2px 0 rgba(176, 96, 200, .55), -4px 4px 0 rgba(122, 62, 168, .4), 0 14px 28px -12px rgba(120, 60, 170, .7); }
.lettore.acceso::after { opacity: 0; transform: rotate(-45deg) scaleX(.2); }
.lettore:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lg-suono { position: fixed; z-index: 6; left: var(--bordo); bottom: max(var(--bordo), env(safe-area-inset-bottom, 0px)); }

/* ── the index: under the mark, its left edge on the mark's, as wide as the column left of the page and level with the
   first card; it stands set back, behind the page (turned toward it, a little smaller and darker), and comes forward
   under the hand. The section in view is lit. On a narrower screen it is a list in the head card ── */
.lg-indice { position: fixed; z-index: 1; left: var(--bordo); top: calc(var(--bordo) + 6.5rem); width: calc(50vw - 26rem - 4.4rem - var(--bordo));
  max-height: calc(100vh - var(--bordo) * 2 - 8rem); display: flex; flex-direction: column;
  padding: 1.5rem .9rem 1.1rem; border-radius: 1.9rem; opacity: 0; transform-origin: 100% 30%;
  transform: perspective(1100px) translateZ(-90px) rotateY(10deg); filter: brightness(.82) saturate(.88);
  transition: opacity .9s .8s, transform .9s cubic-bezier(.2, .8, .2, 1), filter .6s; }
html.pronta .lg-indice { opacity: 1; }
.lg-indice:is(:hover, .dito), .lg-indice:focus-within { transform: perspective(1100px) translateZ(-10px) rotateY(3deg); filter: none; }
.lg-indice-vetro { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(64, 40, 108, .46), rgba(38, 22, 72, .58)); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .24), 0 30px 60px -34px rgba(20, 8, 44, .85); }
.lg-indice-t { margin: 0 0 .8rem .55rem; font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #FFC4D6; }
.lg-indice ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.lg-indice ol::-webkit-scrollbar { display: none; }
.lg-indice a, .lg-indice-testa a { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); align-items: baseline; gap: .35rem; padding: .38rem .5rem; border-radius: .8rem; text-decoration: none;
  font-size: .8rem; line-height: 1.28; color: rgba(255, 255, 255, .7); transition: background .35s, color .35s, translate .5s var(--molla); }
.lg-indice a i, .lg-indice-testa a i { font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1; color: #E9A0FF; text-align: right; transition: color .35s, scale .5s var(--molla); }
.lg-indice-testa a:is(:hover, .dito), .lg-indice-testa a:focus-visible { color: #fff; background: rgba(255, 255, 255, .08); outline: none; }
.lg-indice-testa a.qui { color: #fff; background: rgba(255, 255, 255, .13); }
.lg-indice a:is(:hover, .dito), .lg-indice a:focus-visible { color: #fff; outline: none; }
.lg-indice a.qui { color: #fff; }
.lg-indice ol { position: relative; }
.lg-indice li { position: relative; z-index: 1; }
/* the lens under the hand and the bar by the section in view (pagina.js, luci): moved there with a little delay */
.lg-lente { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 2.2em; border-radius: .8rem; pointer-events: none; opacity: 0; will-change: transform; transform-origin: 50% 50%;
  background: radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, .24), rgba(255, 214, 228, .1) 60%, rgba(255, 255, 255, .05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 16px -8px rgba(10, 0, 30, .6); }
.lg-segno { position: absolute; z-index: 1; left: 0; top: 0; width: 3px; height: 1.4em; border-radius: 2px; pointer-events: none; opacity: 0; will-change: transform;
  background: linear-gradient(180deg, #FFC4D6, #9F8BFF); box-shadow: 0 0 10px rgba(233, 160, 255, .75); }
.lg-indice a.qui i, .lg-indice-testa a.qui i { color: #FFC4D6; scale: 1.12; }
.lg-indice-testa { display: none; }
@media (max-width: 1380px) {
  .lg-indice { display: none; }
  .lg-indice-testa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1rem; margin: 1.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .22); }
}
@media (max-width: 700px) { .lg-indice-testa { grid-template-columns: minmax(0, 1fr); } }
/* a tablet: the sheet leaves room on both sides for the large numbers, and stays in the middle */
@media (min-width: 701px) and (max-width: 1100px) { .lg-foglio { width: min(52rem, calc(100vw - 2 * var(--bordo) - 7rem)); } }

/* the signature, at the end of every page */
.lg-firma { margin-top: 3rem; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.lg-firma p { margin: 0; }
.lg-firma a { display: inline-flex; align-items: center; gap: .3em; text-decoration: underline; text-decoration-color: rgba(255, 196, 214, .7); text-underline-offset: .2em; }
.lg-firma a:is(:hover, .dito) { text-decoration-color: #fff; }

/* ── the site's cursor ── */
html.con-cursore, html.con-cursore a, html.con-cursore button { cursor: none; }
.cursore { position: fixed; z-index: 100; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .3s; color: var(--testo); }
.cursore.visto { opacity: 1; }
.cu-anello { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border: 1.3px solid currentColor; border-radius: 50%; transition: transform .45s var(--molla), opacity .3s, background .3s; }
.cu-punto { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px 3px rgba(255, 255, 255, .55); transition: opacity .3s, scale .45s var(--molla), background .3s, box-shadow .3s; }
.cursore[data-modo="via"] .cu-anello { transform: scale(0); opacity: 0; }
.cursore[data-modo="via"] .cu-punto { scale: 2.6; background: linear-gradient(135deg, #FFC4D6, #9F8BFF); box-shadow: 0 0 0 .6px #fff, 0 0 10px 2px rgba(233, 160, 255, .7); }
.cu-azione { position: absolute; left: 0; top: 0; opacity: 0; scale: .45; transition: opacity .3s, scale .5s var(--molla); }
.cursore[data-modo="via"] .cu-azione { opacity: 1; scale: 1; }
.cu-orbita { position: absolute; left: -21px; top: -21px; width: 42px; height: 42px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 196, 214, 0) 0deg, #FFC4D6 70deg, #E9A0FF 170deg, #9F8BFF 250deg, rgba(159, 139, 255, 0) 330deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.4px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.4px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 1px rgba(59, 42, 92, .45)); transition: scale .5s var(--molla); }
.cu-onda { position: absolute; left: -21px; top: -21px; width: 42px; height: 42px; border-radius: 50%; border: 1.4px solid rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(59, 42, 92, .25); opacity: 0; pointer-events: none; display: none; }
.cursore.giu[data-modo="via"] .cu-orbita { scale: .72; }
.cursore.giu[data-modo="via"] .cu-punto { scale: 1.8; }
.cursore.giu .cu-anello { transform: scale(.7); }
.cu-tieni { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; transform: rotate(-90deg); opacity: 0; }
.cu-tieni circle { fill: none; stroke: var(--menta); stroke-width: 2.4; stroke-linecap: round; }
@keyframes cu-gira { to { rotate: 360deg; } }
@keyframes cu-onda { 0% { scale: .55; opacity: .85; } 100% { scale: 1.75; opacity: 0; } }

/* without the sea (no WebGL2) the page is a plain evening */
html.senza-mare { background: linear-gradient(180deg, #5E5682 0%, #8F7BA6 40%, #D3A5B8 64%, #7E6A98 66%, #4A3F6E 100%) fixed; }
html.senza-mare .lg-acqua { display: none; }

@media (max-width: 700px) {
  .lg-testa { padding: 14px 16px; }
  .marchio { letter-spacing: .06em; font-size: .98rem; gap: .45em; }
  .lg-torna .b4 { height: 40px; padding: 0 1rem; font-size: .8rem; }
  .lg-torna .b4-freccia { width: 32px; height: 32px; }
  .lg-destra .lingua { height: 40px; }
  .lg-destra .lingua-voce { height: 34px; min-width: 44px; }
  .lg-foglio { width: calc(100vw - 24px); margin-top: 5.2rem; }
  /* the numbers need room on the left: the sections step in */
  .lg-sezione { margin-left: 2.9rem; }
  .lg-n { right: calc(100% + .4rem); font-size: 2.1rem; }
  .lg-carta { padding: 1.4rem 1.15rem 1.5rem; }
  /* a table becomes one card per row, each cell with its name */
  .lg-tabella { box-shadow: none; overflow: visible; }
  .lg-tabella thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .lg-tabella tr { display: block; margin-bottom: .8rem; padding: .4rem 0; border-radius: 1rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
  .lg-tabella td { display: block; border: 0; padding: .45rem .9rem; }
  .lg-tabella td::before { content: attr(data-voce); display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #FFC4D6; margin-bottom: .15rem; }
  .lg-acqua { -webkit-backdrop-filter: blur(2px) saturate(.75) brightness(.82); backdrop-filter: blur(2px) saturate(.75) brightness(.82); }
}
/* a small phone: the name in capitals, the language and the way back stand side by side without touching the edge */
@media (max-width: 440px) {
  .lg-testa { gap: .5rem; }
  .marchio { font-size: .84rem; letter-spacing: .03em; gap: .35em; }
  .lg-destra { gap: .5rem; }
  .lg-torna .b4 { padding: 0 .8rem; font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-menisco, .lg-acqua::after, .cu-orbita, .cu-onda, .lg-attesa i { animation: none; }
  .lg-fondale { transition: none; }
}
