/* Valerio Pescatore — stile del sito (variante E "Corrente") */

/* caratteri serviti dal sito (sottoinsieme latino; licenze in assets/fonts/LICENZE.txt) */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif.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: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-italic.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: "Geist"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/assets/fonts/geist.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: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/geist-mono.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; }
/* caratteri di riserva regolati sulle misure di quelli veri (stessa larghezza e altezza delle lettere):
   finché i caratteri non arrivano il testo va a capo negli stessi punti, e la pagina non salta */
@font-face { font-family: "Instrument Serif Fallback"; font-style: normal; src: local("Georgia"), local("Times New Roman"); size-adjust: 74.9%; ascent-override: 132%; descent-override: 41%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Serif Fallback"; font-style: italic; src: local("Georgia Italic"), local("Georgia-Italic"), local("Times New Roman Italic"); size-adjust: 77.6%; ascent-override: 128%; descent-override: 40%; line-gap-override: 0%; }
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 98.4%; ascent-override: 103%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: "Geist Mono Fallback"; src: local("Courier New"), local("Menlo"); size-adjust: 100%; ascent-override: 101%; descent-override: 29%; line-gap-override: 0%; }
:root {
  --bg: #041A21;
  --fg: #E8F0EE;
  --fg-2: rgba(232, 240, 238, .66);
  --fg-3: rgba(232, 240, 238, .56);
  --line: rgba(232, 240, 238, .14);
  --acc: #BFE3E6;
  --serif: "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;
  --sans: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 3.4vw, 48px);
  --side: clamp(20px, 6.9vw, 132px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 300 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color .2s linear; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--acc); color: #04121A; }
:focus-visible { outline: 1px solid var(--acc); outline-offset: 4px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font: 400 11px/1.5 var(--mono); letter-spacing: .06em; }

/* ---------- livelli fissi: WebGL, luce, grana, vignetta ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.gl .vignette, .gl .grain { display: none; } /* con la scena attiva vignetta e grana le disegna lei (ocean.js, post): un livello in meno da ricomporre */
.fade { position: fixed; left: 0; right: 0; z-index: 8; pointer-events: none; }
.fade--t { top: 0; height: 110px; background: linear-gradient(var(--bg), transparent); opacity: var(--fade-t, 0); }
.fade--b { bottom: 0; height: 130px; background: linear-gradient(transparent, var(--bg)); }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 120% 95% at 58% 38%, transparent 50%, rgba(0, 6, 10, .4) 100%); }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .16; mix-blend-mode: overlay; /* grana che non ingrigisce l'acqua */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* ---------- loader ---------- */
/* le particelle si raccolgono nel marchio (quelle d'oro nel nodo), il marchio diventa pieno, poi si disperdono */
.loader { --m: 124px; position: fixed; inset: 0; z-index: 100; background: radial-gradient(70% 60% at 50% 46%, #0D303B 0%, #08202A 72%);
  transition: opacity 1s var(--ease) .15s, visibility 0s 1.2s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__fig { position: absolute; left: 50%; top: 50%; width: var(--m); height: var(--m); translate: -50% -50%; transition: opacity .6s; }
.loader__mark { display: block; width: 100%; height: 100%; color: var(--fg); overflow: visible; opacity: 0; transition: opacity .5s var(--ease); }
.loader.is-tied .loader__mark { opacity: 1; }
.no-motion .loader__dust { display: none; }
.no-motion .loader__mark { opacity: .35; }
.loader__mark circle { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.loader.is-tied .loader__mark circle { transform: scale(1); }
.loader__ripple { position: absolute; left: 62.44%; top: 18.38%; width: 96px; height: 96px; margin: -48px; border-radius: 50%; border: 1px solid #F0C987; opacity: 0; }
.loader.is-tied .loader__ripple { animation: loader-ripple 1.2s var(--ease) forwards; }
@keyframes loader-ripple { from { opacity: .9; transform: scale(.1); } to { opacity: 0; transform: scale(1); } }
.loader__text { position: absolute; inset: calc(50% + var(--m) / 2 + 28px) 0 auto; text-align: center; transition: opacity .6s; }
.loader__name { margin: 0; font: 400 28px/1 var(--serif); opacity: var(--n, 0); }
.loader__pct { margin: 14px 0 0; color: var(--fg-3); letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.loader.is-done .loader__fig, .loader.is-done .loader__text { opacity: 0; }
.loader__meta { position: absolute; left: var(--pad); bottom: var(--pad); display: grid; grid-template-columns: 110px auto; gap: 4px 24px; color: var(--fg-3); }
.loader__meta b { font-weight: 400; color: var(--fg-2); }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 24; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px var(--pad); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; white-space: nowrap; }
.logo__mark { width: 34px; height: 34px; flex: none; transition: transform .6s var(--ease); }
.logo:hover .logo__mark { transform: translateY(-2px); }
.logo__name { font: 400 23px/1 var(--serif); letter-spacing: .005em; }
.logo--lg { margin-bottom: 16px; }
.logo--lg .logo__mark { width: 44px; height: 44px; }
.logo--lg .logo__name { font-size: 30px; }
.header__cta { font-size: .86rem; text-decoration: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .3s, background-color .3s, color .3s; }
.header__cta:hover { border-color: var(--fg); background: var(--fg); color: #06161D; }
.header .logo__name, .header__cta { text-shadow: 0 0 2px rgba(2, 14, 18, .85), 0 0 12px rgba(2, 14, 18, .6); }
.header__cta:hover { text-shadow: none; }

/* ---------- menu: Servizi, Settori, Guide e Zone aprono un pannello ---------- */
.nav { display: flex; align-items: center; gap: 30px; }
.nav__top { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; border: 0; background: none; color: rgba(232, 240, 238, .9); font: inherit; font-size: .9rem; text-shadow: 0 0 2px rgba(2, 14, 18, .9), 0 0 10px rgba(2, 14, 18, .7), 0 1px 18px rgba(0, 20, 26, .5); text-decoration: none; cursor: pointer; transition: color .3s; }
.nav__top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--acc); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav__top:hover, .nav__top.is-active, .nav__btn[aria-expanded="true"] { color: var(--fg); }
.nav__top:hover::after, .nav__top.is-active::after, .nav__btn[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__btn i { width: 5px; height: 5px; border: solid currentColor; border-width: 0 1px 1px 0; rotate: 45deg; translate: 0 -2px; transition: rotate .45s var(--ease), translate .45s var(--ease); }
.nav__btn[aria-expanded="true"] i { rotate: 225deg; translate: 0 1px; }
/* sezione inglese: ritorno al sito italiano */
.nav__lang { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: rgba(232, 240, 238, .9); font-size: 11px; letter-spacing: .08em; text-decoration: none; transition: color .3s, border-color .3s; }
.nav__lang:hover { color: var(--fg); border-color: var(--fg-2); }
.mega { position: absolute; top: calc(100% - 6px); left: var(--pad); right: var(--pad); max-width: 1240px; margin-inline: auto; padding: 30px 32px 20px;
  border: 1px solid var(--line); border-radius: 20px; background: rgba(5, 20, 26, .9); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75); opacity: 0; visibility: hidden; translate: 0 -10px;
  transition: opacity .3s var(--ease), translate .5s var(--ease), visibility 0s .3s; }
.mega.is-open { opacity: 1; visibility: visible; translate: none; transition: opacity .35s var(--ease), translate .6s var(--ease); }
.mega a { color: var(--fg); text-decoration: none; }
.mega__label { margin: 0 0 12px; color: var(--acc); }
.mega__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .85fr); gap: 32px; }
.mega__item { display: block; margin: 0 -14px; padding: 11px 14px; border-radius: 12px; transition: background-color .3s; }
.mega__item:hover, .mega__item:focus-visible { background: rgba(232, 240, 238, .06); }
.mega__item b, .mega__card b, .mega__cities b, .mega__italy b { display: block; font: 400 1.45rem/1.12 var(--serif); }
.mega__item span, .mega__card span { display: block; margin-top: 4px; color: var(--fg-2); font-size: .86rem; line-height: 1.45; }
.mega__card { display: flex; flex-direction: column; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(160deg, rgba(191, 227, 230, .08), rgba(191, 227, 230, 0) 65%); transition: border-color .3s; }
.mega__card:hover, .mega__card:focus-visible { border-color: rgba(232, 240, 238, .4); }
.mega__card span { margin-top: 8px; }
.mega__go { margin-top: auto; padding-top: 18px; font-style: normal; }
.mega__go::after, .mega__foot a::after { content: ' →'; color: var(--acc); }
.mega__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .86rem; }
.mega__foot .mono { margin-left: auto; color: var(--fg-3); }
.mega__groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 0 26px; }
.mega__groups > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; }  /* titoli su due righe: le liste partono comunque allineate */
.mega__groups ul { list-style: none; margin: 0; padding: 0; }
.mega__groups li a { display: block; padding: 5px 0; color: var(--fg-2); font-size: .88rem; line-height: 1.35; transition: color .25s; }
.mega__groups li a:hover, .mega__groups li a:focus-visible { color: var(--fg); }
.mega__guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mega__guides b { font-size: 1.3rem; }
.mega__guides span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mega__zone { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; }
.mega__cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.mega__cities a, .mega__italy { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mega__cities b, .mega__italy b { transition: translate .5s var(--ease); }
.mega__cities a:hover b, .mega__cities a:focus-visible b, .mega__italy:hover b { translate: 6px 0; font-style: italic; }
.mega__cities .mono, .mega__italy .mono { color: var(--fg-3); }
.mega__italy { margin-top: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; }
.mega__map { display: block; width: 100%; height: auto; }
.mega__map .depth { fill: none; stroke: rgba(191, 227, 230, .24); stroke-width: 1.5; stroke-dasharray: 2 9; }
.mega__map .coast { fill: none; stroke: rgba(232, 240, 238, .4); stroke-width: 2; stroke-linejoin: round; }
.mega__map .link { stroke: rgba(232, 240, 238, .28); stroke-width: 1.6; stroke-dasharray: 3 7; transition: stroke .3s; }
.mega__map .dot { fill: var(--fg); transition: fill .3s; }
.mega__map .dot--home, .mega__map .dot--home.is-on { fill: #F0C987; }
.mega__map .ring { fill: none; stroke: #F0C987; stroke-opacity: .55; stroke-width: 1.5; }
.mega__map .lbl { font: 400 24px var(--mono); letter-spacing: .04em; fill: var(--fg-3); transition: fill .3s; }
.mega__map .link.is-on { stroke: var(--acc); stroke-dasharray: none; }
.mega__map .dot.is-on { fill: var(--acc); }
.mega__map .lbl.is-on { fill: var(--fg); }
.mega a[aria-current="page"], .mega a[aria-current="page"] b, .mnav a[aria-current="page"] { color: var(--acc); }
.scrim { position: fixed; inset: 0; z-index: 22; background: rgba(3, 12, 16, .5); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.has-mega .scrim { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }

/* ---------- telefono e tablet: menu a tutto schermo ---------- */
.menu-btn { display: none; align-items: center; gap: 10px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(4, 14, 19, .35);
  color: var(--fg); font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.menu-btn i { position: relative; width: 16px; height: 7px; }
.menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: top .45s var(--ease), rotate .45s var(--ease); }
.menu-btn i::before { top: 0; }
.menu-btn i::after { top: 6px; }
.menu-open .menu-btn i::before { top: 3px; rotate: 45deg; }
.menu-open .menu-btn i::after { top: 3px; rotate: -45deg; }
.mnav { position: fixed; inset: 0; z-index: 23; overflow-y: auto; overscroll-behavior: contain; padding: 100px var(--pad) 48px;
  background: radial-gradient(120% 70% at 85% 0%, #0B2A33 0%, #05141A 65%); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
html.menu-open { overflow: hidden; }
.menu-open .mnav { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.mnav__inner { max-width: 560px; }
.mnav__link, .mnav summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; color: var(--fg); font: 400 clamp(1.9rem, 8vw, 2.6rem)/1.1 var(--serif); text-decoration: none; list-style: none; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary::after { content: '+'; font: 300 1.5rem/1 var(--sans); color: var(--fg-3); transition: rotate .4s var(--ease); }
.mnav details[open] summary::after { rotate: 45deg; }
.mnav__link, .mnav details { border-bottom: 1px solid var(--line); }
.mnav ul { list-style: none; margin: 0 0 16px; padding: 0; }
.mnav ul a { display: block; padding: 7px 0; color: var(--fg-2); font-size: 1rem; text-decoration: none; }
.mnav ul li:last-child a { color: var(--fg); }
.mnav ul li:last-child a::after { content: ' →'; color: var(--acc); }
.mnav__foot { display: grid; justify-items: start; gap: 18px; margin-top: 34px; }
.mnav__foot .mono { color: var(--fg-2); text-decoration: none; }
.menu-open .mnav__inner > * { animation: mnav-in .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + 80ms); }
@keyframes mnav-in { from { opacity: 0; translate: 0 14px; } }
@media (min-width: 1101px) { .mnav { display: none; } }

/* ---------- HUD in basso, profondimetro ---------- */
.hud { position: fixed; left: var(--pad); right: var(--pad); bottom: 22px; z-index: 20; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud__meta { display: grid; grid-template-columns: 96px auto; gap: 3px 18px; color: var(--fg-3); }
.hud__meta b { font-weight: 400; color: var(--fg); font-variant-numeric: tabular-nums; }
.chapters { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.chapters li { font: italic 400 1.02rem/1 var(--serif); color: var(--fg-3); transition: color .5s; }
.chapters li.is-on { color: var(--acc); }
.chapters li span { font: 400 9px var(--mono); font-style: normal; margin-right: 5px; vertical-align: 2px; }

.gauge { position: fixed; right: var(--pad); top: 50%; z-index: 20; height: 34vh; width: 1px; translate: 0 -50%; background: var(--line); pointer-events: none; }
.gauge::before { content: ''; position: absolute; left: -3px; width: 7px; inset-block: 0; background: repeating-linear-gradient(to bottom, var(--fg-3) 0 1px, transparent 1px 10px); opacity: .6; }
.gauge__cur { position: absolute; right: 0; top: 0; display: flex; align-items: center; gap: 10px; will-change: transform; }
.gauge__cur::after { content: ''; width: 18px; height: 1px; background: var(--acc); }
.gauge__cur span { font: 400 11px var(--mono); white-space: nowrap; color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- cursore ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
.cursor__dot { width: 5px; height: 5px; background: #fff; }
.cursor__ring { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .7); transition: width .4s var(--ease), height .4s var(--ease), background-color .3s; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; background: rgba(255, 255, 255, .12); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- contenuti ---------- */
main { position: relative; z-index: 5; }
.sec { position: relative; min-height: 100vh; padding: 22vh 0; display: flex; align-items: center; }
.wrap { width: min(2240px, 100% - 2 * var(--side)); margin-inline: auto; }
.col { max-width: 600px; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
/* alone scuro stretto attorno alle lettere: la scena resta visibile tra le righe, ma particelle e luce non attraversano le parole */
main, .col, .site-footer { text-shadow: 0 0 2px rgba(2, 14, 18, .85), 0 0 10px rgba(2, 14, 18, .7), 0 2px 22px rgba(0, 0, 0, .45); }
.pill--solid { text-shadow: none; }
.label { display: flex; align-items: center; gap: 14px; margin: 0 0 30px; color: var(--acc); transition: color .5s; }
.label::after { content: ''; width: 46px; height: 1px; background: currentColor; opacity: .6; }
.h2 { font: 400 clamp(2.6rem, 5.2vw, 5.2rem)/1.02 var(--serif); letter-spacing: -.012em; }
.h2 em { font-style: italic; color: var(--acc); transition: color .5s; }
.lead { margin: 28px 0 0; color: var(--fg-2); font-size: clamp(1.02rem, 1.25vw, 1.16rem); max-width: 34em; }

/* blur reveal parola per parola */
[data-blur] .w { display: inline-block; white-space: pre; }
html.js [data-blur] .w { filter: blur(12px); opacity: 0; transform: translateY(.18em); transition: filter 1.2s var(--ease), opacity 1.2s var(--ease), transform 1.4s var(--ease); transition-delay: calc(var(--i) * 42ms); }
html.js [data-blur].is-in .w { filter: blur(0); opacity: 1; transform: none; }
html.js .rv { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter 1.1s var(--ease); transition-delay: var(--d, 0s); }
html.js .rv.is-in { opacity: 1; transform: none; filter: none; }
/* i pulsanti in cima alla pagina compaiono senza trasparenza: i colori restano pieni (e leggibili) anche durante l'animazione */
html.js .hero .hero__actions.rv { opacity: 1; transform: translateY(24px) scale(.98); filter: blur(10px); }
html.js .hero .hero__actions.rv.is-in { transform: none; filter: none; }

/* hero */
.hero { min-height: 100svh; align-items: flex-end; padding: 0 0 15vh; }
.hero h1 .kicker { display: block; margin-bottom: 26px; font: 400 11px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
/* il motto della home sta su due righe: la seconda, in corsivo, è larga circa 4,9 volte la dimensione del carattere */
.hero h1 .display { display: block; font: 400 clamp(3.4rem, calc((100vw - 40px) / 5.1), 7.4rem)/.88 var(--serif); letter-spacing: -.02em; }
.hero h1 .display em { font-style: italic; }
.hero__lead { margin: 30px 0 0; max-width: 32em; color: var(--fg-2); font-size: clamp(1rem, 1.25vw, 1.15rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
/* telefono: la scena sta dietro al testo. Etichette più chiare, un alone scuro attorno alle lettere
   (la scena resta visibile tra le righe), logo e briciole leggibili anche sotto la superficie luminosa */
@media (max-width: 700px) {
  .logo__name { text-shadow: 0 0 2px rgba(2, 14, 18, .8), 0 0 12px rgba(2, 14, 18, .6); }
  .hero .crumbs, .hero .crumbs a { color: rgba(232, 240, 238, .9); }
  .fade--t { opacity: max(var(--fade-t, 0), .45); } /* la superficie resta, più morbida dietro al logo */
  .hero h1 .kicker { color: var(--fg); }
}
@media (min-width: 1101px) {
  .hero:not(.page-hero) .col { max-width: min(900px, 52vw); }
  .hero:not(.page-hero) h1 .kicker { font-size: 12.5px; color: var(--fg); }
  .hero:not(.page-hero) h1 .display { font-size: min(8vw, 11rem); }
  .hero:not(.page-hero) .hero__lead { max-width: min(31em, 36vw); font-size: clamp(1.05rem, 1.2vw, 1.3rem); color: rgba(232, 240, 238, .78); }
  .hero:not(.page-hero) .hero__actions .pill { padding: 18px 30px; font-size: 1.05rem; }
}
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px; border: 1px solid rgba(232, 240, 238, .5); text-decoration: none; font-size: .95rem; transition: background-color .35s, color .35s, border-color .35s; }
.pill--solid { background: var(--fg); color: #06161D; border-color: var(--fg); }
.pill--solid:hover { background: var(--acc); border-color: var(--acc); }
.pill:not(.pill--solid):hover { border-color: var(--fg); background: rgba(232, 240, 238, .08); }
.pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* chi sono */
.stats { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 820px; }
.stats li { border-top: 1px solid var(--line); padding-top: 16px; }
.stats b { display: block; font: 400 clamp(2.8rem, 4.4vw, 4rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 8px; color: var(--fg-2); font-size: .86rem; line-height: 1.45; }

/* servizi: elenco + schermo inclinato */
.services { display: block; padding-bottom: 12vh; }
.services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.svc { list-style: none; margin: 48px 0 0; padding: 0; counter-reset: s; }
.svc li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 5.5vh 0; border-top: 1px solid var(--line); }
.svc li:last-child { border-bottom: 1px solid var(--line); }
/* su desktop la voce in primo piano segue lo scroll: le altre attenuano numero e titolo, il testo resta leggibile */
@media (min-width: 1101px) {
  .svc__n, .svc h3, .svc p, .svc a { transition: opacity .6s var(--ease); }
  .svc li:not(.is-active) h3 { opacity: .45; }
  .svc li:not(.is-active) .svc__n { opacity: .65; }
  .svc li:not(.is-active) p:not(.tags), .svc li:not(.is-active) a { opacity: .8; }
}
.svc__n { font: 400 11px/2.6 var(--mono); color: var(--acc); transition: color .5s; }
.svc h3 { font: 400 clamp(1.9rem, 2.8vw, 2.7rem)/1.05 var(--serif); }
.svc p { margin: 12px 0 0; color: var(--fg-2); max-width: 30em; }
.svc .tags { margin-top: 14px; color: var(--fg-3); font: 400 10.5px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.svc a { display: inline-block; margin-top: 14px; font-size: .9rem; text-underline-offset: 5px; text-decoration-color: var(--acc); }
.svc a + a { margin-left: 20px; }
.stage { position: sticky; top: 18vh; height: 64vh; perspective: 1400px; display: grid; place-items: center; }
.screen {
  position: relative; width: min(100%, 620px); aspect-ratio: 4 / 3;
  border-radius: 16px; border: 1px solid rgba(232, 240, 238, .2);
  background: rgba(6, 22, 30, .94);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 7deg));
  transform-style: preserve-3d; transition: transform .8s var(--ease);
  overflow: hidden;
}
.screen__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--fg-3); }
.screen__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(232, 240, 238, .2); }
.screen__bar span { margin-left: 8px; }
.screen__count { margin-left: auto !important; color: var(--fg-2); }
.mock { position: absolute; inset: 42px 0 0; padding: clamp(16px, 2.4vw, 28px); opacity: 0; filter: blur(14px); transform: translateY(14px) scale(.98); transition: opacity .7s var(--ease), filter .9s var(--ease), transform .9s var(--ease); pointer-events: none; display: grid; align-content: start; gap: 14px; font-size: .9rem; }
.mock.is-on { opacity: 1; filter: none; transform: none; }
.mock .mono { color: var(--fg-3); }
.chart { height: 46%; border-bottom: 1px solid var(--line); position: relative; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart path.ln { fill: none; stroke: var(--acc); stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2s var(--ease) .3s; }
.chart path.ar { fill: url(#gr); opacity: .5; }
.mock.is-on .chart path.ln { stroke-dashoffset: 0; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.kpi b { display: block; font: 400 1.5rem/1 var(--serif); margin-top: 6px; }
.kpi i { display: block; height: 3px; margin-top: 10px; background: var(--line); border-radius: 2px; overflow: hidden; }
.kpi i::after { content: ''; display: block; height: 100%; width: var(--w); background: var(--acc); }
.sbar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); }
.sbar svg { width: 14px; height: 14px; fill: none; stroke: var(--fg-2); stroke-width: 1.6; }
.serp-r { padding: 10px 12px; border-radius: 10px; }
.serp-r b { display: block; font-weight: 500; }
.serp-r small { color: var(--fg-3); }
.serp-r.top { background: rgba(232, 240, 238, .07); border: 1px solid rgba(232, 240, 238, .2); }
.serp-r.top b { color: var(--acc); }
.serp-r.dim { opacity: .4; }
.bub { max-width: 86%; padding: 11px 14px; border-radius: 14px; line-height: 1.45; }
.bub.q { justify-self: end; background: rgba(232, 240, 238, .1); }
.bub.a { border: 1px solid rgba(232, 240, 238, .2); }
.bub.a mark { background: var(--acc); color: #04121A; padding: 0 4px; border-radius: 3px; }
.src { display: flex; gap: 6px; }
.src span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-3); font: 400 10px var(--mono); }
.flow { display: grid; gap: 10px; }
.flow div { display: flex; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; position: relative; }
.flow div.ai { border-color: var(--acc); }
.flow div + div::before { content: ''; position: absolute; left: 24px; top: -11px; width: 1px; height: 10px; background: var(--fg-3); }
.flow small { color: var(--fg-3); font: 400 10px var(--mono); }
.wire { display: grid; gap: 10px; }
.wire i { display: block; height: 12px; border-radius: 3px; background: rgba(232, 240, 238, .1); }
.wire i.h { height: 52px; width: 76%; background: rgba(232, 240, 238, .16); }
.wire i.b { height: 30px; width: 30%; background: var(--acc); opacity: .8; }
.wire i.m { width: 60%; }
.wire .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.wire .cols i { height: 64px; }
.road { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.road li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.road li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--acc); flex: none; }
.road li.ok::before { background: var(--acc); }

/* AI */
.caps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.caps li { padding: 18px 0 20px; border-top: 1px solid var(--line); position: relative; }
.caps li::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--acc); box-shadow: 0 0 12px var(--acc); transition: width .9s var(--ease); }
.caps li:hover::before { width: 100%; }
.caps h3 { font: 400 1.45rem/1.15 var(--serif); }
.caps p { margin: 6px 0 0; color: var(--fg-2); font-size: .94rem; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
/* velo scuro dietro ai passaggi del metodo: lo sciame di particelle resta visibile attorno, ma non attraversa il testo */
.steps { position: relative; isolation: isolate; }
.steps::before { content: ''; position: absolute; inset: -48px calc(-1 * var(--pad)); z-index: -1; pointer-events: none; /* mai oltre il margine della pagina, che sui telefoni è stretto */
  background: radial-gradient(closest-side, rgba(3, 13, 17, .78), rgba(3, 13, 17, .62) 62%, rgba(3, 13, 17, 0)); }
.steps li { border-top: 1px solid var(--line); padding-top: 16px; }
.steps .mono { color: var(--acc); }
.steps h3 { margin: 10px 0 6px; font: italic 400 1.9rem/1 var(--serif); }
.steps p { margin: 0; color: var(--fg-2); font-size: .92rem; }

/* zone */
.cities { list-style: none; margin: 44px 0 0; padding: 0; max-width: 520px; }
.cities a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; transition: padding-left .5s var(--ease); }
.cities li:last-child a { border-bottom: 1px solid var(--line); }
.cities a:hover, .cities a:focus-visible { padding-left: 14px; }
.cities b { font: 400 clamp(1.7rem, 2.6vw, 2.4rem)/1 var(--serif); transition: color .3s; }
.cities a:hover b, .cities a:focus-visible b { color: var(--acc); font-style: italic; }
.cities span { color: var(--fg-3); }
.also { margin: 22px 0 0; color: var(--fg-2); font-size: .94rem; max-width: 520px; }
.maplabels { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.maplabels span { position: absolute; left: 0; top: 0; font: 400 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg); opacity: 0; white-space: nowrap; will-change: transform, opacity; }
.maplabels span.major { font: italic 400 1.15rem/1 var(--serif); letter-spacing: 0; text-transform: none; }
.maplabels span.home { color: var(--acc); }

/* faq */
.faq__list { margin-top: 44px; max-width: 760px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font: 400 clamp(1.3rem, 1.9vw, 1.7rem)/1.2 var(--serif); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 300 1.4rem/1 var(--sans); color: var(--acc); transition: transform .5s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 40px 24px 0; color: var(--fg-2); }

/* contatti */
.contact .display { font: 400 clamp(4rem, 11vw, 11rem)/.9 var(--serif); letter-spacing: -.02em; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 110px); margin-top: 48px; align-items: start; }
.mail { font: italic 400 clamp(1.5rem, 2.6vw, 2.3rem)/1.2 var(--serif); text-decoration: none; border-bottom: 1px solid var(--acc); }
.direct { margin: 26px 0 0; color: var(--fg-2); }
form { display: grid; gap: 22px; }
label { display: grid; gap: 4px; color: var(--fg-3); font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
input, textarea { font: 300 1.05rem var(--sans); color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; letter-spacing: 0; text-transform: none; transition: border-color .3s; }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--acc); }
textarea { min-height: 90px; resize: vertical; }
.form__ok { margin: 0; min-height: 1.4em; color: var(--acc); }
form .pill { justify-content: center; cursor: pointer; font-family: var(--sans); }

footer { position: relative; z-index: 5; padding: 40px 0 110px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--fg-3); border-top: 1px solid var(--line); padding-top: 22px; }
.foot a { color: var(--fg-2); }

/* switch varianti (solo bozza) */
.vswitch { position: fixed; left: 50%; bottom: 18px; translate: -50% 0; z-index: 30; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(4, 14, 19, .9); border: 1px solid var(--line); font: 400 10.5px/1 var(--mono); }
.vswitch a { padding: 7px 10px; border-radius: 999px; color: var(--fg-2); text-decoration: none; white-space: nowrap; }
.vswitch a:hover { color: var(--fg); }
.vswitch a[aria-current] { background: var(--fg); color: #06161D; }

html.no-motion .grain { animation: none; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .header__cta { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .gauge { display: none; }
  .wrap { width: calc(100% - 2 * var(--pad)); }
  .services__grid { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; height: auto; margin-top: 24px; order: -1; }
  .svc li { opacity: 1; padding: 4vh 0; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .chapters { display: none; }
  .stats, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caps { grid-template-columns: 1fr; }
  .sec { padding: 14vh 0; }
  .hero { padding-bottom: 20vh; }
  .vswitch { left: auto; right: 12px; translate: none; bottom: 64px; }
  .loader__meta { display: none; }
  .header__cta { display: none; }
  .maplabels { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
}

/* ==========================================================================
   Pagine interne (servizi, città, legali)
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--fg-3); }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .6; }
.crumbs a { text-decoration: none; color: var(--fg-2); }
.crumbs a:hover { color: var(--fg); }
.page-hero h1 .display { font-size: clamp(3.2rem, 8vw, 8.2rem); }
.prose { max-width: 640px; color: var(--fg-2); }
.prose p { margin: 0 0 18px; }
.prose h3 { margin: 34px 0 10px; font: 400 1.7rem/1.15 var(--serif); color: var(--fg); }
.prose ul { margin: 0 0 18px; padding-left: 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--fg); text-decoration-color: var(--acc); text-underline-offset: 4px; }
.prose strong { color: var(--fg); font-weight: 500; }

/* foto: firma in home, ritratto in Chi sono, autore delle guide */
.sign { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 30px; }
.sign__img, .byline img { flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.sign__img { width: 56px; height: 56px; }
.sign__who { display: grid; gap: 5px; margin: 0 14px 0 0; }
.sign__who b { font: 400 1.3rem/1 var(--serif); color: var(--fg); }
.sign__who span { color: var(--fg-3); }
.portrait { width: min(260px, 64vw); margin: 34px 0 32px; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 14px; filter: saturate(.9);
  box-shadow: 0 0 0 1px var(--line), 0 34px 70px -28px rgba(0, 0, 0, .7); }
.portrait figcaption { margin-top: 12px; color: var(--fg-3); }
.byline { display: flex; align-items: center; gap: 10px; color: var(--fg-3); }
.byline img { width: 28px; height: 28px; }
.checks { list-style: none; margin: 36px 0 0; padding: 0; max-width: 640px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--fg-2); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ''; width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; border: 1px solid var(--acc); box-shadow: 0 0 10px var(--acc); }
.checks b { color: var(--fg); font-weight: 500; }
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 40px; max-width: 900px; }
.links a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: rgba(4, 14, 19, .35); transition: border-color .3s, background-color .3s; }
.links a:hover { border-color: var(--acc); background: rgba(4, 14, 19, .6); }
.links b { font: 400 1.35rem/1.1 var(--serif); }
.links span { color: var(--fg-3); }
.by-sector { max-width: 640px; }
.by-sector .caps { margin-top: 10px; }
.by-sector .links { margin-top: 14px; }
.legal .prose { max-width: 760px; }
.page-hero.legal { min-height: 62vh; padding-bottom: 6vh; }
.legal .prose h2 { margin: 40px 0 12px; font: 400 2rem/1.1 var(--serif); color: var(--fg); }
.note { margin: 24px 0 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; color: var(--fg-3); font-size: .9rem; max-width: 640px; }

/* footer completo */
.site-footer { position: relative; z-index: 5; padding: 64px 0 120px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.site-footer h2 { margin: 0 0 14px; font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.site-footer p, .site-footer address { margin: 0; color: var(--fg-2); font-style: normal; line-height: 1.7; font-size: .92rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--fg-2); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--fg); }

.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; color: var(--fg-3); font: 400 11px/1.5 var(--mono); letter-spacing: .04em; }

@media (max-width: 1100px) {
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .links { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* guide e collegamenti nelle card */
.article { max-width: 620px; }
.article h2 { margin: 44px 0 12px; font: 400 clamp(1.8rem, 2.6vw, 2.4rem)/1.1 var(--serif); color: var(--fg); }
.article h3 { font-size: 1.45rem; }
.article a { color: var(--fg); }
.caps h3 a { text-decoration: none; }
.caps h3 a:hover { color: var(--acc); }
.hero__lead + .hero__actions .pill, .rv > .pill { cursor: pointer; }

/* ---------- consenso ai cookie (assets/js/consent.js) ---------- */
.linklike { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-footer__bottom a, .site-footer__bottom .linklike { font: inherit; color: var(--fg-2); text-decoration: none; }
.site-footer__bottom a:hover, .site-footer__bottom .linklike:hover { color: var(--fg); }
.consent { position: fixed; left: var(--pad); bottom: var(--pad); z-index: 60; width: min(430px, calc(100% - 2 * var(--pad))); padding: 22px 22px 18px;
  border: 1px solid var(--line); border-radius: 20px; background: rgba(5, 20, 26, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .85); color: var(--fg); text-shadow: none; animation: consent-in .8s var(--ease) both; }
.consent[hidden], .consent-prefs[hidden] { display: none; }
@keyframes consent-in { from { opacity: 0; translate: 0 18px; } }
.consent__title { margin: 0 0 8px; font: 400 1.7rem/1 var(--serif); }
.consent__text { margin: 0; padding-right: 18px; color: var(--fg-2); font-size: .9rem; line-height: 1.5; }
.consent a, .consent-prefs a { color: var(--fg); text-decoration-color: var(--acc); text-underline-offset: 3px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
/* «Rifiuta» e «Accetta» hanno lo stesso peso visivo, come chiede il Garante */
.consent__btn { flex: 1 1 auto; padding: 12px 16px; border: 1px solid rgba(232, 240, 238, .55); border-radius: 999px; background: none; color: var(--fg);
  font: 400 .9rem/1 var(--sans); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.consent__btn:hover, .consent__btn:focus-visible { background: var(--fg); border-color: var(--fg); color: #06161D; }
.consent__btn--ghost { border-color: transparent; color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.consent__btn--ghost:hover, .consent__btn--ghost:focus-visible { background: rgba(232, 240, 238, .08); border-color: transparent; color: var(--fg); }
.consent__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--fg-2);
  font: 300 1.5rem/1 var(--sans); cursor: pointer; }
.consent__x:hover, .consent__x:focus-visible { color: var(--fg); background: rgba(232, 240, 238, .08); }
.consent-prefs { position: fixed; inset: 0; z-index: 61; display: grid; place-items: center; padding: 16px; background: rgba(2, 10, 13, .62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html.consent-open { overflow: hidden; }
.consent-prefs__panel { position: relative; width: min(580px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: 28px 26px 22px; border: 1px solid var(--line); border-radius: 22px; background: #071C23; color: var(--fg); text-shadow: none; outline: none;
  animation: consent-in .5s var(--ease) both; }
.consent-prefs__title { margin: 0 0 8px; font: 400 2rem/1.05 var(--serif); }
.consent-prefs__lead { margin: 0 0 16px; padding-right: 24px; color: var(--fg-2); font-size: .92rem; line-height: 1.5; }
.consent-cat { padding: 14px 0; border-top: 1px solid var(--line); }
.consent-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 400 1.2rem/1.2 var(--serif); cursor: pointer; }
.consent-cat__head:has(input:disabled) { cursor: default; }
.consent-cat__head input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.consent-cat__head i { position: relative; flex: none; width: 42px; height: 24px; border: 1px solid rgba(232, 240, 238, .45); border-radius: 999px; transition: background-color .3s, border-color .3s; }
.consent-cat__head i::after { content: ''; position: absolute; top: 4px; left: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg-2); transition: transform .35s var(--ease), background-color .3s; }
.consent-cat__head input:checked + i { background: var(--acc); border-color: var(--acc); }
.consent-cat__head input:checked + i::after { transform: translateX(18px); background: #06161D; }
.consent-cat__head input:disabled + i { opacity: .5; }
.consent-cat__head input:focus-visible + i { outline: 1px solid var(--acc); outline-offset: 3px; }
.consent-cat p { margin: 6px 0 0; color: var(--fg-2); font-size: .88rem; line-height: 1.5; }
.consent-cat ul { margin: 8px 0 0; padding-left: 18px; color: var(--fg-3); font-size: .82rem; line-height: 1.6; }
.consent-cat ul b { color: var(--fg-2); font-weight: 500; }
.consent-cat .consent-cat__none { color: var(--fg-3); font-size: .82rem; font-style: italic; }
@media (max-width: 700px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 16px 14px; }
  .consent__btn { padding: 12px; }
}

/* pagina cookie: elenco degli strumenti */
.legal .prose ul.cookies { list-style: none; padding: 0; margin: 0 0 22px; }
.legal .cookies li { display: grid; gap: 4px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.legal .cookies li:last-child { border-bottom: 1px solid var(--line); }
.legal .cookies b { color: var(--fg); font: 500 .85rem/1.4 var(--mono); }
.legal .cookies .mono { color: var(--fg-3); }
.legal .updated { margin-top: 40px; color: var(--fg-3); }
.legal .linklike { color: var(--fg); text-decoration-color: var(--acc); }

/* contatti: telefono e nota privacy sotto il modulo */
.contact .phone { margin: 14px 0 0; color: var(--fg-3); }
.contact .phone a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact .phone a:hover { border-color: var(--acc); }
.form__note { margin: -8px 0 0; color: var(--fg-3); font-size: .82rem; }
.form__note a { color: var(--fg-2); text-underline-offset: 3px; }
