/* ==========================================================================
   Domus — domus.visionhome.me
   Impostazione delle pagine prodotto: sezioni nere e chiare alternate,
   titoli enormi, dispositivi disegnati in CSS, movimento leggero allo scroll.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-var-latin.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;
}

:root {
  --black: #000;
  --light: #f5f5f7;
  --white: #fff;
  --ink: #1d1d1f;
  --ink-dark: #f5f5f7;
  --grey: #86868b;          /* secondario su nero */
  --grey-light: #6e6e73;    /* secondario su chiaro: stesso tono, contrasto AA */
  --blue: #0071e3;
  --blue-dark: #2997ff;
  --card-light: #fff;
  --card-dark: #1c1c1e;
  --card-dark-2: #2c2c2e;
  --line-light: #d2d2d7;
  --line-dark: #424245;
  --green: #30d158;
  --yellow: #ffd60a;
  --red: #ff453a;
  --purple: #bf5af2;
  --cyan: #64d2ff;
  --orange: #ff9f0a;
  /* compatibilità con le pagine interne */
  --brass-ink: #fff;
  --text: var(--ink);
  --text-dim: var(--grey-light);
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, sans-serif;
  --text-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, sans-serif;
  --max: 980px;
  --wide: 1260px;
  --gutter: max(22px, 4vw);
  --gnav: 44px;
  --lnav: 52px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--lnav) + 12px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.47 var(--text-font); letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(0, 125, 250, 0.6); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- tipografia */
.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.wrap-wide { width: min(var(--wide), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.eyebrow { display: block; font: 600 clamp(17px, 1.6vw, 21px)/1.2 var(--sans); letter-spacing: 0.01em; color: var(--grey-light); margin-bottom: 10px; }
.dark .eyebrow { color: var(--grey); }
.eyebrow.new { color: var(--orange); }
.dark .eyebrow.new { color: var(--orange); }
.h-hero { margin: 0; font: 700 clamp(48px, 9.6vw, 96px)/1.04 var(--sans); letter-spacing: -0.015em; }
.h-xl { margin: 0; font: 700 clamp(40px, 7vw, 80px)/1.05 var(--sans); letter-spacing: -0.015em; }
.h-l { margin: 0; font: 600 clamp(32px, 4.8vw, 56px)/1.07 var(--sans); letter-spacing: -0.005em; }
.h-m { margin: 0; font: 600 clamp(28px, 3vw, 32px)/1.125 var(--sans); letter-spacing: 0.004em; }
.h-s { margin: 0; font: 600 clamp(21px, 2vw, 24px)/1.17 var(--sans); letter-spacing: 0.009em; }
.lead { margin: 0; font: 400 clamp(19px, 1.9vw, 21px)/1.38 var(--text-font); letter-spacing: 0.011em; color: var(--grey-light); max-width: 40em; }
.dark .lead { color: var(--grey); }
.lead strong, .lead b { color: var(--ink); font-weight: 600; }
.dark .lead strong, .dark .lead b { color: var(--ink-dark); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.grad-green { background: linear-gradient(90deg, #30d158, #64d2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-warm { background: linear-gradient(90deg, #ff9f0a, #ff453a 60%, #bf5af2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-cool { background: linear-gradient(90deg, #64d2ff, #bf5af2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num { font-family: var(--rounded); font-variant-numeric: tabular-nums; }

/* link e pulsanti */
.links { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; margin-top: 18px; font: 400 clamp(17px, 1.9vw, 21px)/1.38 var(--text-font); }
.more { color: var(--blue); white-space: nowrap; }
.dark .more { color: var(--blue-dark); }
.more::after { content: "\203A"; display: inline-block; margin-left: 0.25em; font-size: 1.12em; line-height: 0; transform: translateY(0.02em); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 22px; border-radius: 980px; border: 0; cursor: pointer; font: 400 17px/1.17 var(--text-font); letter-spacing: -0.022em; text-decoration: none !important; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.btn-primary { background: var(--blue); color: #fff !important; }
.btn-primary:hover { background: #0077ed; }
.btn-ghost { background: transparent; color: var(--blue) !important; box-shadow: inset 0 0 0 1px var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff !important; }
.dark .btn-ghost { color: var(--blue-dark) !important; box-shadow: inset 0 0 0 1px var(--blue-dark); }
.dark .btn-ghost:hover { background: var(--blue-dark); color: #000 !important; }
.btn svg.i { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- sezioni */
.sec { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.dark { background: var(--black); color: var(--ink-dark); }
.lightbg { background: var(--light); }
.whitebg { background: var(--white); }
.sec-head { margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head .h-xl + .lead, .sec-head .h-l + .lead { margin-top: 22px; }
.sec-head.center { display: grid; justify-items: center; }

/* ---------------------------------------------------------------- navigazione globale */
.gnav { position: relative; z-index: 50; height: var(--gnav); background: rgba(22, 22, 23, 0.94); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); color: #e8e8ed; }
.gnav-in { height: 100%; width: min(1024px, calc(100% - 2 * var(--gutter))); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.gnav-logo { display: inline-flex; align-items: center; gap: 8px; color: #e8e8ed; font: 600 15px/1 var(--sans); letter-spacing: -0.01em; }
.gnav-logo img { width: 20px; height: 20px; border-radius: 5px; }
.gnav-logo:hover { text-decoration: none; color: #fff; }
.gnav-links { display: flex; flex: 1; justify-content: space-between; max-width: 720px; margin: 0 auto; }
.gnav-links a { color: #e8e8ed; font-size: 12px; letter-spacing: -0.01em; opacity: 0.88; padding: 0 8px; line-height: var(--gnav); }
.gnav-links a:hover { opacity: 1; text-decoration: none; color: #fff; }
.lang { display: inline-flex; gap: 2px; font-size: 12px; }
.lang a { color: #e8e8ed; opacity: 0.8; padding: 4px 6px; border-radius: 6px; font-weight: 500; }
.lang a[aria-current="true"] { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.lang a:hover { opacity: 1; text-decoration: none; }
.gnav-menu { display: none; background: none; border: 0; color: #e8e8ed; width: 44px; height: 44px; margin-right: -12px; cursor: pointer; }
.gnav-menu svg { width: 18px; height: 18px; margin: auto; }
@media (max-width: 833px) {
  .gnav-links { position: fixed; inset: var(--gnav) 0 auto; flex-direction: column; justify-content: flex-start; max-width: none; padding: 18px var(--gutter) 30px; background: rgba(22, 22, 23, 0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 240ms ease, transform 320ms var(--ease-out), visibility 0s 320ms; }
  .gnav-links a { font: 600 24px/2 var(--sans); opacity: 1; padding: 0; }
  .gnav.open .gnav-links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .gnav-menu { display: grid; }
  .gnav-in { gap: 10px; }
  .lang { margin-left: auto; }
}

/* sotto-barra appiccicosa */
.lnav { position: sticky; top: 0; z-index: 40; height: var(--lnav); color: var(--ink-dark); transition: background-color 300ms ease, box-shadow 300ms ease; }
.lnav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16); }
.lnav.light { color: var(--ink); }
.lnav.light::before { background: rgba(251, 251, 253, 0.8); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.16); }
.lnav-in { height: 100%; width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.lnav-title { font: 600 21px/1 var(--sans); letter-spacing: 0.011em; color: inherit; margin-right: auto; }
.lnav-title:hover { text-decoration: none; }
.lnav-links { display: flex; gap: 24px; font-size: 12px; }
.lnav-links a { color: inherit; opacity: 0.8; }
.lnav-links a[aria-current="true"] { opacity: 0.56; pointer-events: none; }
.lnav-links a:hover { opacity: 1; color: var(--blue-dark); text-decoration: none; }
.lnav.light .lnav-links a:hover { color: var(--blue); }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: 980px; background: var(--blue); color: #fff !important; font-size: 12px; line-height: 1.33; white-space: nowrap; }
.pill:hover { background: #0077ed; text-decoration: none; }
@media (max-width: 640px) { .lnav-links { display: none; } .lnav-title { font-size: 19px; } }

/* ---------------------------------------------------------------- comparse allo scroll */
.rv { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 900ms var(--ease), transform 1100ms var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
.rv-scale { opacity: 0; transform: scale(0.92) translate3d(0, 30px, 0); transition: opacity 1000ms var(--ease), transform 1400ms var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.rv-scale.in { opacity: 1; transform: none; }
.no-js .rv, .no-js .rv-scale { opacity: 1; transform: none; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; transform: translate3d(0, 105%, 0); transition: transform 1100ms var(--ease-out); transition-delay: calc(var(--l, 0) * 140ms + 150ms); }
.ready .line > span, .no-js .line > span { transform: none; }

/* ---------------------------------------------------------------- dispositivi (disegnati in CSS) */
.iphone { --w: 300px; position: relative; width: var(--w); aspect-ratio: 9 / 19.5; border-radius: calc(var(--w) * 0.18); padding: calc(var(--w) * 0.035); flex: none;
  background: linear-gradient(145deg, #5b5b60 0%, #2a2a2d 16%, #1a1a1c 50%, #2a2a2d 84%, #5b5b60 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 0 0 calc(var(--w) * 0.035) #050505, 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.iphone::before, .iphone::after { content: ""; position: absolute; width: calc(var(--w) * 0.011); border-radius: 2px; background: #3a3a3d; }
.iphone::before { left: calc(var(--w) * -0.008); top: 18%; height: 4%; box-shadow: 0 calc(var(--w) * 0.18) 0 #3a3a3d, 0 calc(var(--w) * 0.33) 0 #3a3a3d; }
.iphone::after { right: calc(var(--w) * -0.008); top: 28%; height: 10%; }
.lightbg .iphone, .whitebg .iphone { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 0 0 calc(var(--w) * 0.035) #050505, 0 40px 80px -36px rgba(0, 0, 0, 0.45); }
.scr { position: relative; height: 100%; border-radius: calc(var(--w) * 0.145); overflow: hidden; background: #000; color: #f5f5f7; font-family: var(--text-font); font-size: calc(var(--w) * 0.04); letter-spacing: -0.01em; isolation: isolate; }
.scr::after { content: ""; position: absolute; inset: 0; z-index: 30; pointer-events: none; border-radius: inherit; background: linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 32%); }
.di { position: absolute; z-index: 20; top: calc(var(--w) * 0.03); left: 50%; translate: -50% 0; height: calc(var(--w) * 0.098); width: calc(var(--w) * 0.33); border-radius: 999px; background: #000; display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--w) * 0.035); color: #fff; font-size: calc(var(--w) * 0.038); font-weight: 600; transition: width 600ms var(--ease-out); }
.di.wide { width: calc(var(--w) * 0.62); }
.sbar { position: relative; z-index: 10; display: flex; justify-content: space-between; align-items: center; height: calc(var(--w) * 0.16); padding: calc(var(--w) * 0.035) calc(var(--w) * 0.085) 0; font-size: calc(var(--w) * 0.045); font-weight: 600; }
.sbar i { display: inline-flex; gap: 4px; align-items: center; font-style: normal; }
.sbar i::before { content: ""; width: calc(var(--w) * 0.055); height: calc(var(--w) * 0.03); border-radius: 2px; background: repeating-linear-gradient(90deg, currentColor 0 18%, transparent 18% 27%); }
.sbar i::after { content: ""; width: calc(var(--w) * 0.075); height: calc(var(--w) * 0.035); border-radius: 3px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); background: linear-gradient(90deg, currentColor 70%, transparent 70%) 2px 2px / calc(100% - 4px) calc(100% - 4px) no-repeat; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ipad { --w: 760px; position: relative; width: var(--w); max-width: 100%; aspect-ratio: 1.43; border-radius: calc(var(--w) * 0.045); padding: calc(var(--w) * 0.024); flex: none;
  background: linear-gradient(160deg, #4a4a4e, #1c1c1e 30%, #121214 70%, #3a3a3d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 calc(var(--w) * 0.024) #050505, 0 50px 100px -40px rgba(0, 0, 0, 0.7); }
.ipad .scr { border-radius: calc(var(--w) * 0.024); font-size: calc(var(--w) * 0.017); }
.ipad::after { content: ""; position: absolute; left: 50%; top: calc(var(--w) * 0.009); width: calc(var(--w) * 0.007); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: #1a1a22; box-shadow: inset 0 0 0 1px #2c2c34; }

.droid { --w: 260px; position: relative; width: var(--w); aspect-ratio: 9 / 20; border-radius: calc(var(--w) * 0.12); padding: calc(var(--w) * 0.03); background: linear-gradient(90deg, #3c3c40, #18181b 12%, #18181b 88%, #3c3c40); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 0 0 calc(var(--w) * 0.03) #040404, 0 40px 80px -36px rgba(0, 0, 0, 0.6); flex: none; }
.droid .scr { border-radius: calc(var(--w) * 0.095); font-size: calc(var(--w) * 0.04); }
.droid .hole { position: absolute; z-index: 20; top: calc(var(--w) * 0.035); left: 50%; translate: -50% 0; width: calc(var(--w) * 0.042); aspect-ratio: 1; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #121215; }

.watch { --w: 190px; position: relative; width: var(--w); aspect-ratio: 0.84; border-radius: calc(var(--w) * 0.27); padding: calc(var(--w) * 0.06); background: linear-gradient(150deg, #5a5a5e, #222224 40%, #161618 70%, #44444a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 30px 60px -30px rgba(0, 0, 0, 0.6); flex: none; }
.watch::before { content: ""; position: absolute; right: calc(var(--w) * -0.05); top: 26%; width: calc(var(--w) * 0.07); height: calc(var(--w) * 0.17); border-radius: calc(var(--w) * 0.03); background: linear-gradient(90deg, #333, #6a6a70); }
.watch::after { content: ""; position: absolute; right: calc(var(--w) * -0.03); top: 52%; width: calc(var(--w) * 0.04); height: calc(var(--w) * 0.2); border-radius: 4px; background: #2c2c2f; }
.watch .scr { border-radius: calc(var(--w) * 0.2); font-size: calc(var(--w) * 0.07); background: #000; }

.dash { position: relative; width: min(560px, 100%); aspect-ratio: 2.3; border-radius: 22px; padding: 10px; background: linear-gradient(180deg, #2a2a2e, #0c0c0e); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.dash .scr { --w: 540px; border-radius: 14px; font-size: 12px; }

/* ---------------------------------------------------------------- UI dell'app (dentro i dispositivi) */
.app { position: absolute; inset: 0; padding: calc(var(--w) * 0.16) calc(var(--w) * 0.05) calc(var(--w) * 0.05); display: grid; align-content: start; gap: calc(var(--w) * 0.03); background: radial-gradient(120% 60% at 10% 0%, #232a4a 0%, transparent 60%), radial-gradient(90% 60% at 100% 100%, #3a2222 0%, transparent 60%), #08080c; }
.app-h { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 calc(var(--w) * 0.02); }
.app-h small { display: block; font-size: 0.72em; color: rgba(255, 255, 255, 0.55); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.app-h b { font: 700 1.9em/1.05 var(--sans); letter-spacing: -0.02em; }
.ava { display: flex; }
.ava span { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; font-size: 0.8em; font-weight: 700; color: #000; margin-left: -0.45em; box-shadow: 0 0 0 2px #08080c; }
.tile { border-radius: calc(var(--w) * 0.06); background: rgba(44, 44, 46, 0.72); padding: calc(var(--w) * 0.04); display: grid; gap: 0.2em; position: relative; overflow: hidden; }
.tile b { font-size: 1em; font-weight: 600; }
.tile small { font-size: 0.78em; color: rgba(255, 255, 255, 0.55); }
.tile .ti { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); margin-bottom: 0.3em; }
.tile .ti svg { width: 1.05em; height: 1.05em; }
.tile.on { background: rgba(255, 214, 10, 0.2); }
.tile.on .ti { background: var(--yellow); color: #000; }
.tile.on small { color: var(--yellow); }
.tile.ok .ti { background: var(--green); color: #000; }
.tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--w) * 0.03); }
.bar { height: 0.42em; border-radius: 1em; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.bar > i { display: block; height: 100%; width: var(--v, 50%); border-radius: inherit; background: var(--c, var(--green)); transition: width 1400ms var(--ease-out); }
.seg { display: flex; gap: 0.3em; padding: 0.25em; border-radius: 1em; background: rgba(0, 0, 0, 0.35); }
.seg span { flex: 1; text-align: center; padding: 0.45em 0; border-radius: 0.8em; font-size: 0.8em; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.seg span.on { background: rgba(255, 255, 255, 0.16); color: #fff; }
.dock { position: absolute; left: calc(var(--w) * 0.05); right: calc(var(--w) * 0.05); bottom: calc(var(--w) * 0.05); height: calc(var(--w) * 0.16); border-radius: 999px; background: rgba(60, 60, 64, 0.55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); display: flex; justify-content: space-around; align-items: center; }
.dock span { width: calc(var(--w) * 0.11); height: calc(var(--w) * 0.11); display: grid; place-items: center; border-radius: 50%; color: rgba(255, 255, 255, 0.7); }
.dock span.on { background: rgba(255, 255, 255, 0.16); color: #fff; }
.dock svg { width: 46%; height: 46%; }

/* notifiche e attività in tempo reale */
.lock { position: absolute; inset: 0; background: radial-gradient(100% 60% at 20% 10%, #3b3a8a 0%, transparent 60%), radial-gradient(90% 70% at 90% 90%, #7a2e1e 0%, transparent 65%), linear-gradient(180deg, #14142a, #1a0f12); }
.lock-time { position: relative; z-index: 5; text-align: center; margin-top: calc(var(--w) * 0.08); }
.lock-time small { display: block; font-size: 0.95em; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.lock-time b { display: block; font: 600 calc(var(--w) * 0.24)/1 var(--rounded); letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.92); }
.card-n { position: absolute; z-index: 5; left: calc(var(--w) * 0.04); right: calc(var(--w) * 0.04); border-radius: calc(var(--w) * 0.075); padding: calc(var(--w) * 0.045); background: rgba(30, 30, 34, 0.62); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.card-n.light { background: rgba(245, 245, 247, 0.78); color: #1d1d1f; }
.n-top { display: flex; align-items: center; gap: 0.6em; }
.n-top img { width: 2em; height: 2em; border-radius: 0.5em; }
.n-top b { font-size: 0.92em; display: block; }
.n-top small { font-size: 0.78em; opacity: 0.6; display: block; }
.n-top time { margin-left: auto; font-size: 0.75em; opacity: 0.55; align-self: flex-start; }
.n-body { margin: 0.5em 0 0; font-size: 0.88em; line-height: 1.35; }
.n-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4em; margin-top: 0.7em; }
.n-acts span { text-align: center; padding: 0.6em; border-radius: 0.9em; background: rgba(255, 255, 255, 0.12); font-size: 0.82em; font-weight: 600; }
.card-n.light .n-acts span { background: rgba(0, 0, 0, 0.06); }
.n-acts span.blue { background: var(--blue); color: #fff; }

/* anello della carica */
.ring { --p: 0.62; --c: var(--green); position: relative; width: var(--s, 3.4em); aspect-ratio: 1; border-radius: 50%; flex: none; background: conic-gradient(var(--c) calc(var(--p) * 360deg), rgba(255, 255, 255, 0.14) 0); transition: --p 1500ms var(--ease-out); }
.ring::before { content: ""; position: absolute; inset: 11%; border-radius: 50%; background: #1b1b1f; }
.ring > * { position: absolute; inset: 0; display: grid; place-items: center; }
.ring svg { width: 46%; height: 46%; margin: auto; color: var(--c); }
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }

/* ---------------------------------------------------------------- HERO */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 0; overflow: hidden; text-align: center; --hp: 0; }
.hero .eyebrow { color: var(--orange); }
.hero .h-hero { font-size: clamp(64px, 13vw, 140px); line-height: 1; letter-spacing: -0.02em; }
.hero-sub { margin: 14px auto 0; font: 600 clamp(24px, 3.2vw, 32px)/1.2 var(--sans); letter-spacing: 0.004em; max-width: 22em; }
.hero .links { margin-top: 26px; }
.hero-stage { position: relative; margin: clamp(48px, 7vw, 84px) auto 0; width: min(1100px, calc(100% - 2 * var(--gutter))); height: clamp(420px, 58vw, 640px); }
.hero-stage .ipad { --w: min(880px, 82vw); position: absolute; left: 50%; top: 0; translate: -54% 0; transform: perspective(1800px) rotateX(calc((1 - var(--hp)) * 22deg)) scale(calc(0.9 + var(--hp) * 0.1)); transform-origin: 50% 100%; }
.hero-stage .iphone { --w: min(250px, 30vw); position: absolute; right: max(0px, 4%); bottom: clamp(-160px, -12vw, -60px); transform: translate3d(0, calc((1 - var(--hp)) * 90px), 0) rotate(calc((1 - var(--hp)) * 4deg)); }
.hero-glow { position: absolute; left: 50%; top: 30%; width: 90%; height: 70%; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(100, 210, 255, 0.22), rgba(191, 90, 242, 0.1) 55%, transparent); filter: blur(30px); pointer-events: none; }
@media (max-width: 734px) {
  .hero-stage { height: 128vw; }
  .hero-stage .ipad { --w: 92vw; top: 0; translate: -50% 0; }
  .hero-stage .iphone { --w: 44vw; right: 4%; bottom: 0; }
}

/* ---------------------------------------------------------------- pannello (ipad) */
.wall { position: absolute; inset: 0; display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 1.4%; padding: 3% 3% 2.6%; background: radial-gradient(80% 90% at 0% 0%, #1c2240 0%, transparent 60%), radial-gradient(70% 80% at 100% 100%, #2a1717 0%, transparent 60%), #050507; }
.wall-col { display: grid; gap: 4%; align-content: start; min-width: 0; }
.wall-clock { font: 600 6.2em/0.9 var(--rounded); letter-spacing: -0.03em; display: flex; }
.wall-phrase { margin-top: 0.6em; font-size: 1.15em; color: rgba(255, 255, 255, 0.7); line-height: 1.3; }
.wall-date { font-size: 1.05em; font-weight: 600; color: rgba(255, 255, 255, 0.55); display: flex; align-items: center; gap: 0.5em; }
.live-dot { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.85em; font-weight: 700; color: var(--green); }
.live-dot::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.6); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.55); } 70%, 100% { box-shadow: 0 0 0 0.7em rgba(48, 209, 88, 0); } }
.wtile { --w: 760px; border-radius: 1.6em; background: rgba(36, 36, 40, 0.8); padding: 1.1em 1.2em; display: grid; gap: 0.25em; min-width: 0; }
.wtile b { font-size: 1.15em; font-weight: 600; }
.wtile small { font-size: 0.95em; color: rgba(255, 255, 255, 0.55); }
.wtile .row { display: flex; align-items: center; gap: 0.8em; }
.wtile .ti { width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); flex: none; }
.wtile .ti svg { width: 1.15em; height: 1.15em; }
.wtile.on { background: rgba(255, 214, 10, 0.18); } .wtile.on .ti { background: var(--yellow); color: #000; }
.wtile.ok .ti { background: var(--green); color: #000; }
.wtile.car { grid-template-columns: auto 1fr; align-items: center; column-gap: 1em; }
.wtile.car img { width: 7em; }
.wall .wtile { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
.wall.sleep .wtile { opacity: 0; transform: translateY(1.2em) scale(0.97); transition-delay: 0ms; }

/* cifre che rotolano */
.roll { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.roll > span { display: block; transition: transform 700ms var(--ease-out); }
.roll > span > i { display: block; height: 1em; font-style: normal; }
.colon { display: inline-block; width: 0.32em; text-align: center; opacity: 0.85; }

/* StandBy */
.standby { position: absolute; inset: 0; background: #000; overflow: hidden; --k: 0; }
.face { position: absolute; inset: 0; display: grid; place-items: center; padding: 4%; opacity: 0; transform: scale(0.96); transition: opacity 700ms var(--ease), transform 900ms var(--ease-out); }
.face.on { opacity: 1; transform: none; }
.standby.night { --k: 1; }
.standby.night .face { filter: grayscale(1) sepia(1) saturate(9) hue-rotate(-50deg) brightness(0.62); }
.standby { transition: filter 600ms ease; }
.f-big { display: flex; font: 700 17em/0.85 var(--rounded); letter-spacing: -0.04em; }
.f-big span:nth-child(1) { color: #ff9f0a; } .f-big span:nth-child(2) { color: #ffd60a; } .f-big span:nth-child(4) { color: #30d158; } .f-big span:nth-child(5) { color: #64d2ff; }
.f-big .colon { color: #8e8e93; }
.f-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4%; width: 100%; height: 100%; align-items: center; }
.f-panel { height: 100%; border-radius: 2.2em; background: #1c1c1e; padding: 8%; display: grid; align-content: center; gap: 0.6em; }
.f-panel .t { font: 700 7.4em/0.9 var(--rounded); letter-spacing: -0.03em; }
.f-panel small { font-size: 1.3em; color: #8e8e93; font-weight: 600; }
.f-panel b { font-size: 1.6em; }
.f-panel .ev { display: grid; grid-template-columns: 0.3em 1fr; gap: 0.2em 0.8em; align-items: stretch; font-size: 1.3em; }
.f-panel .ev i { border-radius: 1em; background: var(--c); }
.f-panel .ev small { grid-column: 2; font-size: 0.85em; }
.f-home { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8em; }
.f-home div { border-radius: 1.4em; background: #2c2c2e; padding: 0.9em 1em; display: grid; gap: 0.2em; }
.f-home div b { font-size: 1.15em; } .f-home div small { font-size: 0.95em; }
.f-car { display: flex; align-items: center; gap: 6%; }
.f-car .ring { --s: 15em; --c: var(--green); }
.f-car .ring::before { background: #000; }
.f-car .ring b { font: 700 4em/1 var(--rounded); color: #fff; }
.f-car img { width: 22em; }
.f-car .meta { display: grid; gap: 0.3em; }
.f-car .meta b { font-size: 2.4em; } .f-car .meta small { font-size: 1.5em; color: #8e8e93; }
.f-wx { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2em; text-align: center; align-items: end; }
.f-wx div { display: grid; gap: 0.6em; justify-items: center; font-size: 1.4em; }
.f-wx b { font: 600 1.6em/1 var(--rounded); }
.f-wx small { color: #8e8e93; }
.f-wx svg { width: 2em; height: 2em; color: var(--yellow); }
.f-wx .now { color: var(--cyan); }
.sb-dots { position: absolute; z-index: 3; left: 50%; bottom: 3%; translate: -50% 0; display: flex; gap: 0.6em; }
.sb-dots i { width: 0.6em; height: 0.6em; border-radius: 50%; background: rgba(255, 255, 255, 0.25); transition: background-color 300ms ease, width 300ms var(--ease-out); }
.sb-dots i.on { background: rgba(255, 255, 255, 0.85); width: 1.6em; border-radius: 1em; }

.sb-ctrl { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 16px; border-radius: 980px; border: 0; background: rgba(255, 255, 255, 0.1); color: var(--ink-dark); font-size: 14px; cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.chip:hover { background: rgba(255, 255, 255, 0.18); }
.chip[aria-pressed="true"] { background: var(--ink-dark); color: #000; }
.chip.red[aria-pressed="true"] { background: var(--red); color: #fff; }
.chip svg.i { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- statistiche grandi */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: clamp(54px, 7vw, 90px); }
.stat { border-top: 1px solid var(--line-light); padding-top: 22px; }
.dark .stat { border-color: var(--line-dark); }
.stat .big { display: block; font: 700 clamp(44px, 5.6vw, 72px)/1 var(--rounded); letter-spacing: -0.02em; }
.stat .big small { font-size: 0.45em; font-weight: 600; letter-spacing: 0; margin-left: 0.1em; }
.stat p { margin: 12px 0 0; color: var(--grey-light); font-size: 17px; }
.dark .stat p { color: var(--grey); }
@media (max-width: 734px) { .stats { grid-template-columns: 1fr; gap: 26px; } }

/* colonne di funzioni sotto i dispositivi */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; margin-top: clamp(54px, 7vw, 90px); }
.feat .fi { width: 40px; height: 40px; color: var(--c, var(--blue)); margin-bottom: 14px; }
.dark .feat .fi { color: var(--c, var(--blue-dark)); }
.feat .fi svg { width: 100%; height: 100%; stroke-width: 1.5; }
.feat h3 { margin: 0 0 8px; font: 600 21px/1.19 var(--sans); letter-spacing: 0.011em; }
.feat p { margin: 0; color: var(--grey-light); font-size: 17px; }
.dark .feat p { color: var(--grey); }
.feat p strong { color: var(--ink); font-weight: 600; }
.dark .feat p strong { color: var(--ink-dark); }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }

/* stage per i dispositivi delle sezioni */
.stage { display: flex; justify-content: center; align-items: flex-end; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split2 .sec-head { margin-bottom: 0; }
@media (max-width: 860px) { .split2 { grid-template-columns: 1fr; } .split2 .stage { order: -1; } }

/* ---------------------------------------------------------------- Novità (tessere) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tessera { position: relative; grid-column: span 2; min-height: 460px; border-radius: 28px; background: var(--card-light); padding: 34px 30px 0; display: flex; flex-direction: column; overflow: hidden; }
.tessera.s3 { grid-column: span 3; } .tessera.s4 { grid-column: span 4; } .tessera.s6 { grid-column: span 6; min-height: 520px; }
.tessera.black { background: #000; color: var(--ink-dark); } .tessera.black p { color: var(--grey); }
.tessera .tag { display: block; font: 600 14px/1.2 var(--sans); color: var(--orange); margin-bottom: 8px; }
.tessera h3 { margin: 0; font: 600 clamp(24px, 2.4vw, 28px)/1.14 var(--sans); letter-spacing: 0.007em; }
.tessera p { margin: 8px 0 0; color: var(--grey-light); font-size: 17px; max-width: 26em; }
.tessera .ill { margin-top: auto; padding-top: 28px; display: flex; justify-content: center; align-items: flex-end; min-height: 0; }
@media (max-width: 1068px) { .tessera, .tessera.s3 { grid-column: span 3; } .tessera.s4, .tessera.s6 { grid-column: span 6; } }
@media (max-width: 734px) { .bento { grid-template-columns: 1fr; gap: 14px; } .tessera, .tessera.s3, .tessera.s4, .tessera.s6 { grid-column: auto; min-height: 400px; padding: 28px 24px 0; } }

/* illustrazioni nelle tessere */
.mini-wall { --w: 520px; width: min(520px, 100%); aspect-ratio: 1.43; border-radius: 22px 22px 0 0; padding: 12px 12px 0; background: #1c1c1e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.mini-wall .scr { border-radius: 12px 12px 0 0; font-size: 9.5px; height: 100%; }
.red-clock { width: 100%; padding: 0 0 40px; display: grid; place-items: center; }
.red-clock .f-big { font-size: 96px; filter: grayscale(1) sepia(1) saturate(9) hue-rotate(-50deg) brightness(0.62); }
.red-clock small { margin-top: 10px; color: #8e1e18; font-weight: 600; font-size: 14px; }
.notif-ill { width: 100%; padding-bottom: 40px; display: grid; gap: 10px; }
.notif-ill .card-n { position: relative; left: auto; right: auto; --w: 340px; font-size: 14px; border-radius: 22px; padding: 14px 16px; background: rgba(242, 242, 247, 0.96); color: #1d1d1f; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.04); }
.notif-ill .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.notif-ill .chips span { font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 9px; background: rgba(0, 0, 0, 0.06); }
.pill-di { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 999px; background: #000; color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 70px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5); }
.pill-di .ph { color: var(--cyan); }
.pill-di .bar { width: 90px; } .pill-di .bar i { background: var(--cyan); }
.car-ill { display: grid; justify-items: center; gap: 14px; padding-bottom: 40px; }
.car-ill .ring { --s: 150px; }
.car-ill .ring::before { background: #fff; }
.car-ill .ring b { font: 700 38px/1 var(--rounded); color: var(--ink); }
.car-ill .when { font: 600 19px/1.2 var(--sans); color: var(--ink); }
.car-ill .when span { color: var(--green); }
.list-ill { width: min(440px, 100%); display: grid; gap: 8px; padding-bottom: 36px; }
.list-ill .r { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--light); font-size: 15px; }
.list-ill .r b { font-weight: 600; }
.list-ill .r small { color: var(--grey-light); display: block; font-size: 13px; }
.list-ill .r .v { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.list-ill .r.off { opacity: 0.55; }
.list-ill .r.off .v { text-decoration: line-through; }
.list-ill .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--c, var(--blue)); flex: none; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.list-ill .ic svg { width: 18px; height: 18px; }
.switch { width: 44px; height: 26px; border-radius: 999px; background: #e9e9eb; position: relative; flex: none; margin-left: auto; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 300ms var(--ease-out); }
.switch.on { background: var(--green); } .switch.on::after { transform: translateX(18px); }
.cam-ill { position: relative; width: min(460px, 100%); padding-bottom: 36px; }
.cams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cam { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #2d2924 url(/assets/cam-ingresso.svg) center / cover no-repeat; }
.cam.b { background-image: url(/assets/cam-giardino.svg); }
.cam.c { background-image: url(/assets/cam-garage.svg); }
.cam.d { background-image: url(/assets/cam-cancello.svg); }
.cam .tagl { position: absolute; z-index: 2; left: 8px; bottom: 7px; font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.cam .live { position: absolute; z-index: 2; left: 8px; top: 7px; font-size: 10px; font-weight: 700; color: #fff; padding: 2px 6px; border-radius: 6px; background: rgba(255, 69, 58, 0.9); }
.pip { position: absolute; right: -10px; bottom: 16px; width: 46%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5), 0 0 0 3px #fff; background: #2d2924 url(/assets/cam-citofono.svg) center / cover no-repeat; animation: floaty 6s ease-in-out infinite; }
.pip .tagl { position: absolute; left: 8px; bottom: 7px; font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.pip .snd { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); color: #fff; display: grid; place-items: center; }
.pip .snd svg { width: 12px; height: 12px; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.code-ill { display: grid; gap: 10px; width: min(340px, 100%); padding-bottom: 36px; }
.keypad { display: flex; gap: 10px; justify-content: center; margin-bottom: 4px; }
.keypad span { width: 48px; height: 58px; border-radius: 14px; display: grid; place-items: center; font: 700 28px/1 var(--rounded); background: var(--light); }
.kids-ill { width: min(360px, 100%); padding-bottom: 36px; display: grid; gap: 10px; }
.sync-ill { display: flex; align-items: center; gap: 12px; padding-bottom: 50px; }
.sync-ill .node { width: 70px; height: 70px; border-radius: 20px; display: grid; place-items: center; background: var(--light); color: var(--ink); }
.sync-ill .node svg { width: 30px; height: 30px; }
.sync-ill .node.ha { width: 86px; height: 86px; border-radius: 24px; background: #e6f6fe; color: #0a84c6; }
.sync-ill .flow { width: 40px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); background-size: 200% 100%; animation: flow 1.6s linear infinite; }
@keyframes flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.and-ill { display: flex; align-items: flex-end; justify-content: center; gap: 24px; }
.and-ill .droid { --w: 200px; margin-bottom: -60px; }
.and-ill .tab { width: min(520px, 60vw); aspect-ratio: 1.6; border-radius: 22px 22px 0 0; padding: 12px 12px 0; background: #1c1c1e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.and-ill .tab .scr { --w: 500px; border-radius: 12px 12px 0 0; height: 100%; font-size: 10px; }
@media (max-width: 734px) { .and-ill .tab { display: none; } }

/* UI Material (Android) */
.m3 { position: absolute; inset: 0; padding: 13% 5% 0; display: grid; align-content: start; gap: 0.6em; background: #121318; color: #e3e2e6; }
.m3 .ttl { font: 500 1.9em/1.1 var(--text-font); }
.m3 .ttl small { display: block; font-size: 0.42em; color: #9a9aa3; font-weight: 400; margin-top: 0.2em; }
.m3 .chips { display: flex; gap: 0.4em; overflow: hidden; }
.m3 .chips span { flex: none; font-size: 0.78em; padding: 0.45em 0.8em; border-radius: 0.6em; box-shadow: inset 0 0 0 1px #45464f; color: #c6c6d0; }
.m3 .chips span.on { background: #2f4a63; box-shadow: none; color: #cfe5ff; }
.m3 .mc { border-radius: 1.2em; padding: 0.85em; background: #1f2026; display: grid; gap: 0.15em; }
.m3 .mc b { font-size: 0.95em; font-weight: 500; }
.m3 .mc small { font-size: 0.76em; color: #9a9aa3; }
.m3 .mc.p { background: #2f4a63; color: #cfe5ff; }
.m3 .mc.t { background: #4a3d1e; color: #ffdf9b; }
.m3 .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; }
.m3 .fab { position: absolute; right: 6%; bottom: 17%; width: 3.6em; height: 3.6em; border-radius: 1.1em; display: grid; place-items: center; background: #cfe5ff; color: #00315a; }
.m3 .fab svg { width: 1.4em; height: 1.4em; }
.m3 .nav { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0.8em 0 1.2em; background: #1b1c22; }
.m3 .nav span { display: grid; justify-items: center; gap: 0.25em; font-size: 0.66em; color: #9a9aa3; }
.m3 .nav i { width: 3.4em; height: 1.9em; border-radius: 1em; display: grid; place-items: center; }
.m3 .nav span.on { color: #e3e2e6; } .m3 .nav span.on i { background: #2f4a63; color: #cfe5ff; }
.m3 .nav svg { width: 1.2em; height: 1.2em; }
.m3.land { padding: 4% 4% 0 13%; grid-template-columns: repeat(3, 1fr); align-content: start; }
.m3.land .ttl { grid-column: 1 / -1; }
.m3.land .rail { position: absolute; left: 0; top: 0; bottom: 0; width: 9%; background: #1b1c22; display: grid; align-content: start; justify-items: center; gap: 1em; padding-top: 2.5em; }
.m3.land .rail i { width: 2.4em; height: 1.6em; border-radius: 1em; display: grid; place-items: center; color: #9a9aa3; }
.m3.land .rail i.on { background: #2f4a63; color: #cfe5ff; }
.m3.land .rail svg { width: 1em; height: 1em; }

/* ---------------------------------------------------------------- sicurezza */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.box-card { border-radius: 28px; background: var(--card-light); padding: 34px 32px; display: grid; gap: 22px; align-content: space-between; min-height: 380px; overflow: hidden; }
.dark .box-card { background: var(--card-dark); }
.box-card h3 { margin: 0; font: 600 24px/1.17 var(--sans); }
.box-card p { margin: 8px 0 0; color: var(--grey-light); }
.dark .box-card p { color: var(--grey); }
.box-ill { display: flex; justify-content: center; align-items: center; min-height: 170px; }
@media (max-width: 860px) { .sec-grid { grid-template-columns: 1fr; } }
.modes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.modes span { padding: 9px 14px; border-radius: 12px; background: var(--light); font-size: 14px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.modes span.on { background: var(--ink); color: #fff; }
.modes span svg.i { width: 15px; height: 15px; }
.face-ok { width: 92px; height: 92px; border-radius: 26px; background: var(--light); display: grid; place-items: center; color: var(--green); margin: 0 auto 14px; }
.face-ok svg { width: 54px; height: 54px; stroke-width: 1.4; }
.hold { position: relative; width: 132px; height: 132px; border-radius: 50%; border: 0; cursor: pointer; background: var(--light); display: grid; place-items: center; color: var(--ink); -webkit-tap-highlight-color: transparent; touch-action: none; }
.hold::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(var(--blue) calc(var(--h, 0) * 360deg), rgba(0, 0, 0, 0.06) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.hold span { display: grid; justify-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.hold svg.i { width: 34px; height: 34px; stroke-width: 1.5; }
.hold.done { background: #e3f9e9; color: #1a7f37; }
.hold.done::before { background: var(--green); }

/* ---------------------------------------------------------------- ovunque */
.every { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.every .box-card { min-height: 460px; text-align: center; justify-items: center; align-content: start; }
.every .box-ill { min-height: 250px; margin-top: auto; }
@media (max-width: 1068px) { .every { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .every { grid-template-columns: 1fr; } }
.carplay { position: absolute; inset: 0; display: grid; grid-template-columns: 0.7fr 1fr 1fr; gap: 6px; padding: 8px; background: #0b0b0d; }
.carplay .side { border-radius: 10px; background: #1c1c1e; display: grid; align-content: space-between; justify-items: center; padding: 10px 0; color: #8e8e93; }
.carplay .side svg { width: 16px; height: 16px; }
.carplay .cp { border-radius: 10px; background: #1c1c1e; padding: 10px; display: grid; align-content: space-between; }
.carplay .cp b { font-size: 13px; } .carplay .cp small { color: #8e8e93; font-size: 11px; }
.carplay .cp .bigbtn { justify-self: start; padding: 8px 14px; border-radius: 10px; background: var(--blue-dark); color: #000; font-weight: 700; font-size: 12px; }
.widget { width: 150px; aspect-ratio: 1; border-radius: 30px; background: #fff; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.35); padding: 16px; display: grid; align-content: space-between; text-align: left; }
.dark .widget { background: #2c2c2e; }
.widget small { color: var(--grey-light); font-size: 12px; font-weight: 600; }
.widget b { font: 600 22px/1.05 var(--sans); }
.widget .wi { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #000; }
.widget .wi svg { width: 18px; height: 18px; }
.ctl { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; background: rgba(120, 120, 128, 0.3); color: #fff; }
.ctl.on { background: #fff; color: var(--blue); }
.ctl svg { width: 30px; height: 30px; }
.ctlgrid { display: grid; grid-template-columns: repeat(2, 70px); gap: 12px; padding: 16px; border-radius: 30px; background: #1c1c1e; }
.siri { width: 210px; padding: 16px; border-radius: 22px; background: rgba(28, 28, 30, 0.96); color: #fff; display: grid; gap: 10px; text-align: left; font-size: 14px; }
.siri .orb { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(#ff2d92, #5e5ce6, #64d2ff, #ffd60a, #ff2d92); animation: spin 6s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------------------------------------------------------------- privacy */
.priv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 54px 40px; }
.priv .feat .fi { --c: #f5f5f7; width: 52px; height: 52px; }
@media (max-width: 860px) { .priv { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .priv { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- installatori */
.inst { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.inst .item { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line-light); }
.inst .item .fi { width: 32px; height: 32px; color: var(--blue); }
.inst .item .fi svg { width: 100%; height: 100%; stroke-width: 1.5; }
.inst .item h3 { margin: 0 0 4px; font: 600 19px/1.21 var(--sans); }
.inst .item p { margin: 0; color: var(--grey-light); font-size: 17px; }
@media (max-width: 760px) { .inst { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- specifiche */
.specs { border-top: 1px solid var(--line-light); }
.spec { display: grid; grid-template-columns: minmax(180px, 0.32fr) 1fr; gap: 20px 40px; padding: 34px 0; border-bottom: 1px solid var(--line-light); }
.spec h3 { margin: 0; font: 600 24px/1.17 var(--sans); }
.spec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 17px; }
.spec ul li span { color: var(--grey-light); }
.spec .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 30px; }
.spec .cols b { display: block; font-weight: 600; }
.spec .cols span { color: var(--grey-light); }
@media (max-width: 734px) { .spec { grid-template-columns: 1fr; padding: 26px 0; } }

/* ---------------------------------------------------------------- domande */
.faq { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font: 600 clamp(19px, 2vw, 24px)/1.2 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 32px/1 var(--text-font); color: var(--grey-light); transition: transform 300ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans p { margin: 0 0 28px; color: var(--grey-light); font-size: 17px; max-width: 46em; }

/* ---------------------------------------------------------------- chiusura */
.closing { text-align: center; }
.closing .icon { width: 110px; height: 110px; border-radius: 26px; margin: 0 auto 30px; box-shadow: 0 30px 60px -20px rgba(100, 210, 255, 0.45); }
.closing .btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.closing .note { margin-top: 22px; color: var(--grey); font-size: 14px; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--light); color: var(--grey-light); font-size: 12px; line-height: 1.34; letter-spacing: -0.01em; padding: 18px 0 22px; }
.foot .wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); }
.foot-notes { padding-bottom: 14px; border-bottom: 1px solid var(--line-light); display: grid; gap: 8px; }
.foot-notes p { margin: 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.foot-nav a, .foot-legal a { color: var(--ink); opacity: 0.85; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 22px; padding-top: 14px; }
.foot-legal .links-l { display: flex; flex-wrap: wrap; gap: 6px 0; }
.foot-legal .links-l a { padding: 0 10px; border-left: 1px solid var(--line-light); }
.foot-legal .links-l a:first-child { padding-left: 0; border: 0; }

/* ---------------------------------------------------------------- pagine interne */
.doc { background: var(--white); padding: clamp(60px, 9vw, 110px) 0 clamp(80px, 10vw, 130px); }
.doc .wrap { max-width: 760px; }
.doc .eyebrow { color: var(--grey-light); }
.doc h1 { margin: 0 0 16px; font: 700 clamp(40px, 6vw, 64px)/1.06 var(--sans); letter-spacing: -0.015em; }
.doc h2 { margin: 50px 0 12px; font: 600 clamp(24px, 3vw, 32px)/1.15 var(--sans); }
.doc p, .doc li { font-size: 17px; color: #333336; }
.doc .lead { color: var(--grey-light); margin-bottom: 30px; }
.doc .updated { color: var(--grey-light); font-size: 14px; }
.doc ul, .doc ol { padding-left: 1.2em; display: grid; gap: 8px; }
.doc .box { margin: 26px 0; padding: 22px 24px; border-radius: 20px; background: var(--light); font-size: 17px; color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.doc th { font-weight: 600; }
.doc code { font-size: 0.92em; padding: 2px 6px; border-radius: 6px; background: var(--light); }
.doc .btn-primary { color: #fff !important; }
.doc .btn-ghost { box-shadow: inset 0 0 0 1px var(--blue); }

/* pagina Android */
.dl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 30px 0 10px; }
.dl-meta { display: grid; gap: 2px; }
.dl-meta b { font-weight: 600; }
.dl-meta span { color: var(--grey-light); font-size: 15px; }
.steps3 { counter-reset: s; list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px !important; margin: 20px 0; }
.steps3 li { counter-increment: s; border-radius: 22px; background: var(--light); padding: 24px 22px; }
.steps3 li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 17px/1 var(--rounded); margin-bottom: 14px; }
.steps3 li b { display: block; font-size: 19px; margin-bottom: 6px; }
@media (max-width: 734px) { .steps3 { grid-template-columns: 1fr; } }

/* suggerimento lingua */
.lang-suggest { position: fixed; z-index: 80; left: 50%; bottom: 18px; translate: -50% 140%; opacity: 0; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px; width: max-content; max-width: calc(100vw - 24px); background: rgba(29, 29, 31, 0.92); color: #f5f5f7; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6); font-size: 14px; transition: translate 600ms var(--ease-out), opacity 300ms ease; }
.lang-suggest span { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.lang-suggest.show { translate: -50% 0; opacity: 1; }
.lang-suggest a { white-space: nowrap; color: #fff; background: var(--blue); padding: 8px 14px; border-radius: 980px; }
.lang-suggest button { border: 0; background: rgba(255, 255, 255, 0.12); color: #f5f5f7; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; flex: none; }

/* ---------------------------------------------------------------- movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .rv, .rv-scale, .line > span { opacity: 1 !important; transform: none !important; }
  .hero-stage .ipad, .hero-stage .iphone { transform: none !important; }
}

/* ---- rifiniture */
.wtile b, .wtile small, .tile b, .tile small { display: block; }
.wtile .row > div { min-width: 0; }
.split2 .h-xl { font-size: clamp(40px, 4.4vw, 58px); }
.every .box-ill { width: 100%; }
.every .box-card { justify-items: stretch; }
.every .box-card > div:first-child { text-align: center; }
.every .box-ill > * { margin-inline: auto; }
.hero-stage { height: clamp(460px, 62vw, 700px); }
.hero-stage .iphone { bottom: 0; right: max(0px, 2%); }
@media (max-width: 734px) { .hero-stage { height: 120vw; } .hero-stage .iphone { bottom: 0; } }
body:has(.hero) { background: var(--black); }
main { background: var(--white); }
.mini-wall .scr { font-size: min(9.5px, 1.75vw); }
@media (max-width: 734px) { .mini-wall .wall { grid-template-columns: 1.2fr 1fr; } .mini-wall .wall-col:last-child { display: none; } }

/* prestazioni: le sezioni fuori schermo non si disegnano finché non servono */
.sec { content-visibility: auto; contain-intrinsic-size: auto 1100px; }

/* CarPlay: schermo flottante sul cruscotto */
.cpdash { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1.36; border-radius: 20px 20px 30px 30px; container-type: inline-size; overflow: hidden; background: linear-gradient(180deg, #3b3b3f 0%, #232326 48%, #141416 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 50px -28px rgba(0, 0, 0, 0.55); }
.cpdash::before { content: ""; position: absolute; left: 4%; right: 4%; top: 5%; border-top: 1px dashed rgba(255, 255, 255, 0.14); }
.cpscreen { position: absolute; left: 6%; right: 6%; top: 9%; aspect-ratio: 1.8; border-radius: 3.4cqw; padding: 1.3cqw; background: #050506; box-shadow: 0 3cqw 5cqw -1.5cqw rgba(0, 0, 0, 0.8), inset 0 0 0 0.35cqw #2c2c2f; }
.cpui { position: relative; width: 100%; height: 100%; border-radius: 2.2cqw; overflow: hidden; display: grid; grid-template-columns: 14% 1fr; background: #000; color: #fff; font-family: var(--sans); }
.cpui::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 38%); }
.cpside { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 2.2cqw 0 2cqw; background: #151517; }
.cpside > div:first-child { display: grid; justify-items: center; line-height: 1.1; }
.cpside .tm { font-size: 2.7cqw; font-weight: 700; } .cpside .sig { font-size: 1.8cqw; color: #aeaeb2; font-weight: 600; }
.cpside .apps { display: grid; gap: 1.5cqw; }
.cpside .apps span { width: 6.6cqw; height: 6.6cqw; border-radius: 1.7cqw; display: grid; place-items: center; overflow: hidden; }
.cpside .apps span svg { width: 3.8cqw; height: 3.8cqw; }
.cpside .apps span.on { box-shadow: 0 0 0 0.4cqw #151517, 0 0 0 0.7cqw rgba(255, 255, 255, 0.55); }
.cpside .apps img { width: 100%; height: 100%; display: block; }
.cpside .dashb { width: 4.2cqw; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5cqw; }
.cpside .dashb i { aspect-ratio: 1; border-radius: 0.5cqw; background: #8e8e93; }
.cpmain { display: grid; grid-template-rows: auto 1fr; gap: 1.6cqw; padding: 2cqw 2.4cqw; min-width: 0; }
.cpban { display: flex; align-items: center; gap: 1.4cqw; padding: 1.1cqw 1.3cqw; border-radius: 2cqw; background: #2c2c2e; text-align: left; }
.cpban img { width: 4.6cqw; height: 4.6cqw; border-radius: 1.1cqw; }
.cpban div { display: grid; line-height: 1.15; min-width: 0; }
.cpban b { font-size: 2.3cqw; } .cpban small { font-size: 1.8cqw; color: #aeaeb2; }
.cpban span { margin-left: auto; padding: 0.9cqw 2.4cqw; border-radius: 99px; background: #0a84ff; font-size: 2cqw; font-weight: 700; }
.cpgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8cqw 1cqw; align-content: center; }
.cpgrid div { display: grid; justify-items: center; gap: 0.5cqw; line-height: 1.1; }
.cpgrid i { width: 7.6cqw; height: 7.6cqw; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; margin-bottom: 0.3cqw; }
.cpgrid i svg { width: 4cqw; height: 4cqw; }
.cpgrid b { font-size: 2.1cqw; font-weight: 600; } .cpgrid small { font-size: 1.7cqw; color: #8e8e93; }
.cpvents { position: absolute; left: 12%; right: 12%; bottom: 7%; height: 10%; display: flex; align-items: center; gap: 4%; }
.cpvents i { flex: 1; height: 100%; border-radius: 1.6cqw; background: repeating-linear-gradient(180deg, #0b0b0c 0 0.8cqw, #2b2b2f 0.8cqw 1.3cqw); box-shadow: inset 0 0 0 0.35cqw #303034; }
.cpvents b { flex: none; width: 8.5cqw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #6a6a6f, #1b1b1d 70%); box-shadow: 0 0 0 0.5cqw #0e0e10; }
