/* ubies.it — fogli di stile (dalla grafica docs/grafica/ubies v3.dc.html) */
:root {
	--ac: #d7ff00;
	--ink: #111;
	--black: #0a0a0a;
	--paper: #f4f4f0;
	--soft: #f4f4f2;
	--line: #e3e3e0;
	--muted: #555;
	--label: #6b6b6b;
	--sans: 'Instrument Sans', Helvetica, Arial, sans-serif;
	--mono: 'IBM Plex Mono', monospace;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
input, textarea, button { font-family: inherit; }

/* Lingua: il body porta data-lang="it|en" */
[data-lang] [lang="en"] { display: none; }
[data-lang="en"] [lang="en"] { display: revert; }
[data-lang="en"] [lang="it"] { display: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) 24px; }
.wrap--narrow { max-width: 820px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px; }
.anchor { scroll-margin-top: 72px; }
.bt { border-top: 1px solid var(--line); }
.bg-soft { background: var(--soft); }

.icon { font-family: 'Material Symbols Outlined'; font-weight: 400; font-style: normal; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--ac); }

/* ---------- Header ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: rgb(10 10 10); transition: background .3s; backdrop-filter: blur(6px) saturate(1.4); -webkit-backdrop-filter: blur(6px) saturate(1.4); border-bottom: 1px solid #2a2a2a; }
.bar.is-scrolled { background: rgb(10 10 10 / .72); }
.bar__in { max-width: 1120px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.logo:hover { color: var(--paper); }
.logo__mark { position: relative; width: 28px; height: 28px; border: 2px solid var(--paper); border-radius: 50%; }
.logo__dot { position: absolute; left: 7px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--ac); }
.logo__next { position: absolute; left: 17px; top: 5px; width: 5px; height: 5px; border-radius: 50%; border: 1.5px solid var(--ac); }
.logo__word { font-family: 'Anton', sans-serif; font-size: 28px; line-height: 1; letter-spacing: -.01em; }

.burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 44px; height: 44px; margin: -8px -10px -8px 0; background: none; border: none; cursor: pointer; padding: 0; }
.burger span { width: 22px; height: 2px; background: var(--paper); }
.burger span:last-child { background: var(--ac); }

.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; color: #c9c9c4; transition: color .2s; }
.nav a:hover { color: #fff; }
.langs { display: flex; gap: 10px; font-family: var(--mono); font-size: 13px; }
.langs button { background: none; border: none; border-bottom: 2px solid transparent; padding: 4px 2px; cursor: pointer; color: #8f8f8a; font: inherit; }
.langs button[aria-pressed="true"] { color: var(--paper); border-bottom-color: var(--ac); }

@media (max-width: 760px) {
	.burger { display: flex; }
	.nav { display: none; }
	.nav.is-open { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 0; padding: 4px 0 8px; }
	.nav a { display: block; width: 100%; padding: 13px 0; font-size: 18px; border-top: 1px solid #2a2a2a; }
	.nav .langs { padding: 10px 0 0; gap: 18px; font-size: 15px; }
	.nav .langs button { min-width: 44px; min-height: 44px; }
}

/* ---------- Tipografia ---------- */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--label); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.eyebrow .icon { font-size: 22px; background: var(--black); border-radius: 50%; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.h1 { font-weight: 600; letter-spacing: -.035em; font-size: clamp(46px, 8.4vw, 112px); line-height: 1.1; margin: 0; max-width: 14ch; text-wrap: balance; }
.h1 em { font-style: normal; background: linear-gradient(transparent 14%, var(--ac) 14%, var(--ac) 90%, transparent 90%); padding: 0 .12em; }
.h2 { font-weight: 600; letter-spacing: -.035em; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; margin: 0; text-wrap: balance; }
.text { font-size: 17px; line-height: 1.55; margin: 0; color: var(--muted); text-wrap: pretty; }

/* ---------- Hero ---------- */
.hero { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 10vw, 128px) 24px clamp(48px, 8vw, 96px); }
.hero .eyebrow { margin-bottom: 28px; }
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; margin-top: 48px; align-items: end; }
.hero__lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; margin: 0; max-width: 34em; text-wrap: pretty; }

.map { position: relative; aspect-ratio: 4 / 3; background: var(--black); border-radius: 24px; overflow: hidden; color: var(--paper); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.map__risk { position: absolute; left: 78%; top: 0; right: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgb(255 255 255 / .16) 0 2px, transparent 2px 12px); border-left: 2px dashed var(--paper); }
.map__risk-label { position: absolute; left: 89%; top: 50%; transform: translate(-50%, -50%); writing-mode: vertical-rl; background: var(--black); padding: 10px 4px; white-space: nowrap; }
.map__safe { position: absolute; left: 8%; top: 14%; width: 54%; aspect-ratio: 1; border: 2px solid var(--paper); border-radius: 50%; }
.map__safe-label { position: absolute; left: 35%; top: 74%; transform: translateX(-50%); white-space: nowrap; color: #c9c9c4; }
.map__person { position: absolute; left: 30%; top: 56%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 7px color-mix(in srgb, var(--ac) 28%, transparent); }
.map__traj { position: absolute; border-radius: 50%; border: 2px solid var(--ac); }
.map__traj--1 { left: 41%; top: 49%; width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.map__traj--2 { left: 51%; top: 43%; width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.map__traj--3 { left: 60.5%; top: 37.5%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
.map__traj--4 { left: 69.5%; top: 32%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.map__alert { position: absolute; left: 60.5%; top: 37.5%; transform: translate(-50%, calc(-100% - 16px)); background: var(--ac); color: var(--black); padding: 7px 11px; border-radius: 999px; white-space: nowrap; font-weight: 500; }

/* ---------- Come funziona ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.card { background: var(--soft); border-radius: 24px; padding: 32px; transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgb(0 0 0 / .1); }
.card__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--black); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.card__icon .icon { font-size: 32px; }
.card h3 { font-weight: 600; letter-spacing: -.035em; font-size: 30px; line-height: 1.1; margin: 0 0 12px; }

.drone { position: relative; width: 34px; height: 34px; }
.drone__arm { position: absolute; left: 3px; top: 15.75px; width: 28px; height: 2.5px; background: var(--ac); transform: rotate(45deg); }
.drone__arm--b { transform: rotate(-45deg); }
.drone__rotor { position: absolute; width: 13px; height: 13px; border: 2.5px solid var(--ac); border-radius: 50%; }
.drone__rotor--tl { left: 0; top: 0; } .drone__rotor--tr { right: 0; top: 0; }
.drone__rotor--bl { left: 0; bottom: 0; } .drone__rotor--br { right: 0; bottom: 0; }
.drone__body { position: absolute; left: 11.5px; top: 11.5px; width: 11px; height: 11px; border-radius: 3px; background: var(--ac); }

/* ---------- Tecnologia ---------- */
#tech .eyebrow { color: #444; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.compare__box { background: #fff; border-radius: 24px; padding: 32px; transition: transform .3s var(--ease); }
.compare__box:hover { transform: translateY(-6px); }
.compare__box--dark { background: #000; color: #fff; }
.compare__title { font-family: var(--mono); font-size: 13px; color: #444; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.compare__box--dark .compare__title { color: var(--ac); }
.compare__title i { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); outline: 2px solid #fff; }
.compare__list { display: flex; flex-direction: column; gap: 14px; font-size: 18px; line-height: 1.4; color: #444; }
.compare__box--dark .compare__list { color: inherit; }

/* ---------- Privacy ---------- */
.points { display: flex; flex-direction: column; }
.point { padding: 22px 0; border-top: 1px solid var(--line); }
.point:last-child { border-bottom: 1px solid var(--line); }
.point h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); padding: 22px 0; }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; font-size: 20px; font-weight: 500; transition: opacity .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { opacity: .6; }
.faq__plus { font-family: var(--mono); transition: transform .15s; }
.faq[open] .faq__plus { transform: rotate(45deg); }
.faq p { font-size: 17px; line-height: 1.6; margin: 14px 0 0; color: var(--muted); max-width: 40em; }

/* ---------- Contatti ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input, .field textarea { font-size: 17px; padding: 13px 14px; border: 1px solid #c4c4c0; background: #fff; border-radius: 12px; color: inherit; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.check a { color: var(--ink); text-underline-offset: 2px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn { align-self: flex-start; background: var(--ac); color: var(--ink); border: none; padding: 15px 28px; font: 500 16px var(--sans); border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form__error { margin: 0; padding: 12px 14px; border-left: 3px solid #c0392b; background: #fff; color: #8e2a1f; font-size: 15px; line-height: 1.5; }
.form__error[hidden], .sent[hidden], .form[hidden] { display: none; }
.sent { border-top: 2px solid var(--ink); padding-top: 24px; }
.sent__title { font-weight: 600; letter-spacing: -.03em; font-size: 36px; line-height: 1.1; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.footer__in { max-width: 1120px; margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--label); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Pagina privacy ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) 24px; }
.legal .h1 { font-size: clamp(40px, 6vw, 72px); max-width: none; margin-bottom: 16px; }
.legal__date { font-family: var(--mono); font-size: 13px; color: var(--label); margin: 0 0 48px; }
.legal__intro { font-size: 19px; line-height: 1.55; color: #444; margin: 0 0 16px; text-wrap: pretty; }
.legal__box { background: var(--soft); border-radius: 24px; padding: 28px 32px; margin: 32px 0 8px; }
.legal__box p { margin: 0; font-size: 18px; line-height: 1.55; }
.legal__box strong { background: linear-gradient(transparent 60%, var(--ac) 60%); }
.legal h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin: 48px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal p, .legal li { font-size: 17px; line-height: 1.6; color: var(--muted); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__back { display: inline-block; margin-top: 48px; font-family: var(--mono); font-size: 14px; }
