/* impresaidea – foglio di stile
   Tipografia di sistema: SF Pro / New York sui dispositivi Apple, fallback eleganti altrove.
   Nessun font esterno: più veloce e nessun dato inviato a terzi. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-elev: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, .09);
  --line-strong: rgba(0, 0, 0, .16);
  --accent: #2F6FED;
  --accent2: #7B5CFA;
  --link: #0066cc;
  --dark: #1d1d1f;
  --on-dark: #ffffff;
  --glass: rgba(255, 255, 255, .72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .05);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 44px rgba(0, 0, 0, .09);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .18);
  --radius: 22px;
  --radius-lg: 32px;
  --wrap: 1140px;
  --gutter: 22px;
  --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #0d0d0f;
    --bg-elev: #161618;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: rgba(255, 255, 255, .1);
    --line-strong: rgba(255, 255, 255, .2);
    --accent: #5B8CFF;
    --accent2: #9B85FF;
    --link: #4aa3ff;
    --dark: #f5f5f7;
    --on-dark: #000000;
    --glass: rgba(18, 18, 20, .72);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 18px 44px rgba(0, 0, 0, .5);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .7);
  }
  .brand-logo, .sc-card img { filter: invert(1); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.55 var(--font); letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.022em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.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(--dark); color: var(--on-dark); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow, .narrow { max-width: calc(780px + var(--gutter) * 2); }

/* ---------- Tipografia ---------- */
.display {
  font-size: clamp(2.6rem, 1.4rem + 5.6vw, 5.75rem);
  line-height: 1.02; letter-spacing: -.045em; font-weight: 700;
  text-wrap: balance;
}
.display--md { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem); }
.display--article { font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4.1rem); letter-spacing: -.04em; }
.title { font-size: clamp(2rem, 1.25rem + 3.3vw, 3.5rem); line-height: 1.05; letter-spacing: -.038em; text-wrap: balance; }
.display em, .title em, .contact-band em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em;
  background: linear-gradient(100deg, var(--accent), var(--accent2) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .1em; margin-right: -.1em;
}
.lead { font-size: clamp(1.12rem, 1rem + .45vw, 1.38rem); line-height: 1.45; color: var(--text-2); letter-spacing: -.016em; text-wrap: pretty; }
.kicker { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.kicker--pill {
  display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: -.005em; font-size: .92rem;
  padding: 7px 14px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--line); color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.kicker--pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); }

/* ---------- Pulsanti ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.actions--center { justify-content: center; }
.btn {
  --b-bg: var(--bg-elev); --b-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, opacity .25s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-dark { --b-bg: var(--dark); --b-fg: var(--on-dark); }
.btn-light { --b-bg: #fff; --b-fg: #1d1d1f; }
.btn-ghost { --b-bg: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { --b-bg: var(--bg-elev); }
.btn-small { min-height: 36px; padding: 0 15px; font-size: .9rem; }
.btn-wide { width: 100%; }
.btn-store { --b-bg: #000; --b-fg: #fff; gap: 11px; padding: 0 22px 0 18px; min-height: 52px; text-align: left; }
@media (prefers-color-scheme: dark) { .btn-store { --b-bg: #fff; --b-fg: #000; } }
.btn-store .ico { width: 24px; height: 24px; }
.btn-store:hover .ico { transform: translateY(2px); }
.btn-store span { display: flex; flex-direction: column; line-height: 1.05; }
.btn-store small { font-size: .7rem; font-weight: 500; opacity: .85; letter-spacing: 0; }
.btn-store b { font-size: 1.16rem; letter-spacing: -.02em; }
.btn-store.btn-small { min-height: 36px; padding: 0 14px 0 12px; }
.btn-store.btn-small small { display: none; }
.btn-store.btn-small b { font-size: .9rem; }
.btn-store.btn-small .ico { width: 18px; height: 18px; }
.store-badge { display: inline-block; transition: transform .35s var(--ease); }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 50px; width: auto; }
.store-badge.btn-small img { height: 36px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--link); }
.link-arrow .ico { transition: transform .35s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-arrow--light { color: rgba(255, 255, 255, .85); }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.linklike:hover { color: var(--text); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, body:not(.page-home) .site-header {
  background: var(--glass); border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 21px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text); font-size: .94rem; font-weight: 500; opacity: .8; transition: opacity .2s, background-color .2s; }
.main-nav a:hover { opacity: 1; text-decoration: none; background: var(--line); }
.main-nav a[aria-current] { opacity: 1; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; color: var(--text-2); font-size: .86rem; font-weight: 600; border: 1px solid var(--line); }
.lang-switch:hover { color: var(--text); text-decoration: none; border-color: var(--line-strong); }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; align-items: center; justify-content: center; }
.menu-toggle .ico { width: 24px; height: 24px; }
.menu-toggle .ico-close { display: none; }
.menu-toggle[aria-expanded="true"] .ico-open { display: none; }
.menu-toggle[aria-expanded="true"] .ico-close { display: block; }
/* Il menu sta fuori dall'header: l'effetto vetro (backdrop-filter) dell'header
   altrimenti lo confinerebbe nei suoi 60px su Safari e Chrome. */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 999; background: var(--bg);
  padding: 24px var(--gutter) max(40px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  isolation: isolate; -webkit-transform: translateZ(0); transform: translateZ(0); /* livello proprio su Safari */
}
/* Con il menu aperto la pagina sotto sparisce: Safari a volte disegna gli elementi animati
   (titolo, iPhone, card della vetrina) sopra i pannelli fissi, indipendentemente dallo z-index. */
body.menu-open main, body.menu-open .site-footer, body.menu-open .lang-suggest, body.menu-open .consent { visibility: hidden; }
body.menu-open .site-header { z-index: 1000; }
@media (min-width: 821px) { .mobile-menu { display: none !important; } }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { opacity: 0; transform: translateY(10px); animation: menuIn .5s var(--ease) forwards; }
.mobile-menu li:nth-child(2) { animation-delay: .05s; } .mobile-menu li:nth-child(3) { animation-delay: .1s; } .mobile-menu li:nth-child(4) { animation-delay: .15s; }
.mobile-menu ul a { display: block; padding: 12px 0; font: 700 2rem/1.15 var(--font-display); letter-spacing: -.035em; color: var(--text); border-bottom: 1px solid var(--line); }
.mobile-menu-foot { margin-top: auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 28px; }
@keyframes menuIn { to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--bg); }

@media (max-width: 820px) {
  .main-nav, .header-cta, .header-actions > .lang-switch { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}

/* ---------- Sotto-navigazione delle app ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--glass); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.subnav-inner { display: flex; align-items: center; gap: 18px; height: 52px; }
.subnav-title { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 1.12rem var(--font-display); letter-spacing: -.02em; }
.subnav-title:hover { text-decoration: none; }
.subnav-links { list-style: none; display: flex; gap: 2px; margin-left: auto; }
.subnav-links a { display: block; padding: 6px 11px; font-size: .84rem; color: var(--text-2); border-radius: 999px; }
.subnav-links a:hover { color: var(--text); text-decoration: none; }
.subnav-links a[aria-current] { color: var(--text); font-weight: 600; }
@media (max-width: 760px) {
  .subnav-inner { gap: 10px; }
  .subnav-title span { display: none; }
  .subnav-links { margin-left: 0; overflow-x: auto; scrollbar-width: none; flex: 1; }
  .subnav-links::-webkit-scrollbar { display: none; }
  .subnav-links a { white-space: nowrap; padding: 6px 8px; }
}

/* ---------- Sezioni ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--tight { padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 8vw, 110px); }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); overflow: clip; }
.hero--home { padding-top: clamp(48px, 8vw, 110px); text-align: center; }
.hero--home .hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero--home .lead { max-width: 680px; margin-top: 26px; }
.hero--home .display { max-width: 1000px; margin-top: 8px; }
.hero--page .lead { margin-top: 20px; max-width: 640px; }
.hero--center { text-align: center; }
.hero--center .lead { margin-left: auto; margin-right: auto; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(40% 50% at 25% 35%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(35% 45% at 75% 30%, color-mix(in srgb, var(--accent2) 20%, transparent), transparent 70%);
  filter: blur(10px); animation: glow 16s ease-in-out infinite alternate;
}
@keyframes glow { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(2%, 3%, 0) scale(1.08); } }

.hero-in { opacity: 0; transform: translateY(26px); filter: blur(6px); animation: heroIn 1.1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }

/* Vetrina della home */
.showcase { position: relative; height: clamp(420px, 58vw, 640px); max-width: 1100px; margin: clamp(48px, 7vw, 90px) auto 0; }
.sc { position: absolute; will-change: transform; }
.sc-phone { left: 0; right: 0; margin: 0 auto; top: 0; width: clamp(210px, 26vw, 300px); z-index: 2; }
.sc-phone .device { animation: float 7s ease-in-out infinite; }
.sc-card {
  left: 4%; top: 16%; width: clamp(220px, 30vw, 360px); aspect-ratio: 85 / 55; border-radius: 18px; padding: 8% 9%;
  background: var(--bg-elev); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: flex; flex-direction: column; rotate: -9deg; animation: float 8s ease-in-out infinite -2s;
}
.sc-card img { width: 72%; }
.sc-card-line { margin-top: 6%; font-size: clamp(.5rem, .85vw, .76rem); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.sc-card-dots { margin-top: auto; display: flex; gap: 6px; }
.sc-card-dots i { width: 22%; height: 6px; border-radius: 3px; background: var(--line-strong); }
.sc-card-dots i:first-child { width: 34%; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.sc-palette {
  right: 4%; top: 30%; width: clamp(200px, 26vw, 320px); border-radius: 22px; padding: 18px;
  background: var(--bg-elev); box-shadow: var(--shadow-lg); border: 1px solid var(--line); rotate: 7deg;
  animation: float 9s ease-in-out infinite -4s;
}
.sc-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sc-swatches i { aspect-ratio: 1; border-radius: 12px; background: var(--c); }
.sc-type { display: flex; gap: 14px; align-items: baseline; margin-top: 16px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.sc-type b { font-family: var(--font-display); letter-spacing: -.04em; }
.sc-type em { font-family: var(--font-serif); font-weight: 400; }
.sc-palette-label { display: block; margin-top: 10px; font-size: .8rem; color: var(--text-2); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (max-width: 700px) {
  .showcase { height: 520px; }
  .sc-card { left: -4%; top: 6%; width: 210px; }
  .sc-palette { right: -4%; top: 52%; width: 190px; }
  .sc-phone { width: 230px; }
}

/* ---------- Dispositivi ---------- */
/* Cornice iPhone: l'altezza la decide lo screenshot (nessun ritaglio).
   Le misure sono in cqw (% della larghezza della cornice) per restare proporzionate a ogni dimensione. */
.device { width: 100%; container-type: inline-size; }
.device-body {
  position: relative; padding: 2.4cqw; border-radius: 16.4cqw; background: #0c0c0e;
  box-shadow:
    inset 0 0 0 .55cqw #3b3b40,
    inset 0 0 0 1.1cqw #1a1a1d,
    var(--shadow-lg);
}
.device-body::before { /* tasto laterale */
  content: ""; position: absolute; right: -0.9cqw; top: 26%; width: 1cqw; height: 11%;
  border-radius: 0 .6cqw .6cqw 0; background: #2b2b30;
}
.device picture { display: block; }
/* Selettore più specifico di .fig img / .prose img, che altrimenti cambierebbero gli angoli */
.device .device-body img {
  display: block; width: 100%; height: auto; border-radius: 14cqw;
  background: #f2f2f7; box-shadow: none;
}
.device-body::after { /* Dynamic Island */
  content: ""; position: absolute; top: 5.1cqw; left: 50%; width: 27.5cqw; height: 8.1cqw;
  transform: translateX(-50%); border-radius: 99px; background: #000;
}
@supports not (container-type: inline-size) {
  .device-body { padding: 2.4%; border-radius: 16% / 7.4%; }
  .device .device-body img { border-radius: 13.5% / 6.2%; }
  .device-body::after { top: 2.4%; width: 27.5%; height: 3.7%; }
}
.device--tilt { rotate: 4deg; }
.watch {
  width: clamp(150px, 20vw, 210px); padding: clamp(13px, 1.8vw, 19px); border-radius: 30% / 26%;
  background: #1b1b1d; box-shadow: inset 0 0 0 1.5px #3a3a3e, var(--shadow-lg); position: relative;
}
.watch::before { content: ""; position: absolute; right: -4%; top: 30%; width: 5%; height: 16%; background: #2c2c2e; border-radius: 4px; }
.watch img { width: 100%; height: auto; aspect-ratio: 416 / 496; border-radius: 22% / 19%; object-fit: cover; }

/* ---------- Servizi ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  padding: 34px 30px 36px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: var(--bg-elev); }
.service-ico {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.service-ico .ico { width: 26px; height: 26px; }
.service h3 { font-size: 1.45rem; letter-spacing: -.028em; }
.service p { margin-top: 12px; color: var(--text-2); }
@media (max-width: 900px) { .service-grid { grid-template-columns: minmax(0, 1fr); } .service-ico { margin-bottom: 24px; } }

/* ---------- Scheda app in evidenza ---------- */
.app-feature {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 40px; overflow: hidden; isolation: isolate;
  background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.app-feature + .app-feature { margin-top: 24px; }
.app-feature::before {
  content: ""; position: absolute; inset: auto -10% -40% 35%; height: 120%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
}
.app-feature-id { display: flex; align-items: center; gap: 16px; }
.app-feature-id h3 { font-size: 2rem; letter-spacing: -.035em; }
.app-feature-id p { color: var(--text-2); font-size: .95rem; }
.app-feature-tag { margin-top: 26px; font: 700 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1.08 var(--font-display); letter-spacing: -.035em; }
.app-feature-tag + p { margin-top: 14px; color: var(--text-2); font-size: 1.08rem; max-width: 520px; }
.app-feature-meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--text-2); font-size: .92rem; }
.app-feature-visual { display: flex; justify-content: center; margin-bottom: -38%; }
.app-feature-visual .device { width: min(300px, 80%); }
@media (max-width: 820px) {
  .app-feature { grid-template-columns: minmax(0, 1fr); }
  .app-feature-visual { margin-bottom: -60%; }
}

.app-icon { border-radius: 22.5%; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 8px 20px rgba(0, 0, 0, .14); flex: none; background: #fff; }
.app-icon--xs { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15); }
.app-icon--sm { width: 52px; height: 52px; }
.app-icon--md { width: 72px; height: 72px; }
.app-icon--lg { width: 112px; height: 112px; }

.stars { display: inline-flex; gap: 2px; color: #ff9f0a; }
.star { width: 16px; height: 16px; }
.star--off { color: var(--line-strong); }

/* ---------- Recensioni ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.review {
  margin: 0; padding: 30px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.section--soft .review { background: var(--bg-elev); }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review blockquote { margin: 0; }
.review-title { font: 700 1.3rem/1.2 var(--font-display); letter-spacing: -.025em; margin-bottom: 10px; }
.review blockquote p:not(.review-title) { color: var(--text-2); }
.review figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.review figcaption span { color: var(--text-3); }
.review-note { font-style: italic; font-size: .8rem; }

/* ---------- Articoli (card) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.post-card a { display: flex; flex-direction: column; height: 100%; color: inherit; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elev); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.post-card a:hover { text-decoration: none; transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-cover { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--bg-soft); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card a:hover .post-cover img { transform: scale(1.04); }
.post-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { font-size: .84rem; color: var(--text-3); }
.post-body h3 { font-size: 1.36rem; letter-spacing: -.026em; }
.post-body p:not(.post-meta) { color: var(--text-2); font-size: .98rem; }
.post-body .link-arrow { margin-top: auto; padding-top: 8px; }
.post-card:only-child { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .post-card:only-child a { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; }
  .post-card:only-child .post-cover { align-self: center; background: transparent; }
  .post-card:only-child .post-body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
  .post-card:only-child .post-body h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -.034em; }
  .post-card:only-child .post-body .link-arrow { margin-top: 10px; }
}

/* ---------- Fascia contatti ---------- */
.contact-band {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff;
  padding: clamp(56px, 8vw, 110px) clamp(24px, 5vw, 80px); border-radius: 44px; background: #0b0b0f;
}
.contact-band::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background: conic-gradient(from 180deg at 50% 50%, #2F6FED33, #7B5CFA44, #FF6B4A22, #2F6FED33);
  filter: blur(60px); animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.contact-band .title { color: #fff; }
.contact-band em { background: linear-gradient(100deg, #8FB2FF, #C3B4FF); -webkit-background-clip: text; background-clip: text; }
.contact-band .lead { color: rgba(255, 255, 255, .72); max-width: 600px; margin: 18px auto 0; }
.contact-band .actions { justify-content: center; }

/* ---------- Pagina app ---------- */
.hero--app { padding-top: clamp(40px, 6vw, 80px); }
.hero--app .display { font-size: clamp(2.6rem, 1.3rem + 4.4vw, 4.6rem); }
.hero-app-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero-app-text .app-icon { margin-bottom: 26px; }
.hero-app-text .lead { margin-top: 22px; max-width: 540px; }
.price-note { font-size: .84rem; color: var(--text-2); line-height: 1.35; }
.rating-line { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--text-2); font-size: .92rem; }
.hero-app-visual { position: relative; display: flex; justify-content: center; }
.device--hero { width: min(340px, 78%); }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--line); box-shadow: var(--shadow-md); font-weight: 600; font-size: .92rem;
  animation: float 7s ease-in-out infinite;
}
.float-chip .ico { color: var(--accent); }
.chip-a { left: 0; top: 22%; }
.chip-b { right: 0; bottom: 20%; animation-delay: -3.5s; }
.chip-c { left: 0; bottom: 7%; animation-delay: -1.8s; } /* badge iCloud: in basso a sinistra */
@media (max-width: 900px) {
  .hero-app-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-app-visual { margin-top: 10px; }
  .chip-a { left: 2%; } .chip-b { right: 2%; } .chip-c { left: 2%; }
}

.pillars { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar { padding: 26px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.pillar-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 18px; }
.pillar-ico .ico { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.14rem; letter-spacing: -.02em; }
.pillar p { margin-top: 8px; color: var(--text-2); font-size: .95rem; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

.feature { padding: clamp(60px, 9vw, 130px) 0; overflow: clip; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.feature--flip .feature-text { order: 2; }
.feature-text .lead { margin-top: 20px; }
.feature-visual { position: relative; display: flex; justify-content: center; }
.feature-visual .device { width: min(320px, 78%); transition: transform 1.2s var(--ease); }
.feature-glow { position: absolute; inset: 10% 5%; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: .5;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, transparent), color-mix(in srgb, var(--accent2) 30%, transparent) 50%, transparent 72%); }
.ticks { list-style: none; margin-top: 26px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { color: var(--accent); margin-top: .2em; }
.badge-coming {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 5px 11px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.feature-text .kicker { display: inline-block; margin-right: 10px; }
@media (max-width: 860px) {
  .feature-inner { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature-text { order: 0; }
}

.watch-section { text-align: center; }
.watch-section .section-head { margin-left: auto; margin-right: auto; }
.watch-row { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 4vw, 48px); flex-wrap: wrap; }
.watch-row .watch:nth-child(2) { transform: translateY(-24px) scale(1.08); }

.gallery { position: relative; }
.gallery-track {
  list-style: none; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 30px; scroll-padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track li { flex: none; width: clamp(210px, 24vw, 280px); scroll-snap-align: start; }
.gallery-track img { width: 100%; border-radius: 26px; box-shadow: var(--shadow-md); }
.gallery-btn {
  position: absolute; top: 45%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: opacity .3s, transform .3s var(--ease);
}
.gallery-btn:hover { transform: scale(1.06); }
.gallery-btn[disabled] { opacity: 0; pointer-events: none; }
.gallery-btn.prev { left: max(10px, calc((100vw - var(--wrap)) / 2 - 64px)); }
.gallery-btn.next { right: max(10px, calc((100vw - var(--wrap)) / 2 - 64px)); }
@media (hover: none) { .gallery-btn { display: none; } }

.faqs { display: grid; gap: 10px; }
.faq { border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 1.06rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .35s var(--ease); color: var(--text-3); }
.faq[open] summary .ico { transform: rotate(90deg); }
.faq p { padding: 0 24px 22px; color: var(--text-2); }

.final-cta {
  text-align: center; padding: clamp(50px, 8vw, 100px) 24px; border-radius: 44px; position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.final-cta::before { content: ""; position: absolute; inset: 40% -10% -60%; z-index: -1; filter: blur(40px);
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent2) 18%, transparent) 50%, transparent 75%); }
.final-cta .app-icon { margin: 0 auto 26px; }
.final-cta .lead { margin-top: 12px; }

/* Changelog */
.timeline { position: relative; display: grid; gap: 18px; }
.release { padding: 28px 30px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.release--coming { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.release-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.release-head h2 { font-size: 1.5rem; letter-spacing: -.03em; }
.release-head time { color: var(--text-3); font-size: .92rem; }
.release-head .badge-coming { margin: 0; }
.release ul { padding-left: 1.2em; display: grid; gap: 8px; color: var(--text-2); }
.release li::marker { color: var(--accent); }
.hero--page .app-icon { margin-bottom: 22px; }
.doc-meta { margin-top: 16px; color: var(--text-3); }

/* ---------- Articolo ---------- */
.article-head { padding: clamp(36px, 6vw, 80px) 0 0; }
.article-head .lead { margin-top: 20px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--text-3); margin-bottom: 22px; }
.crumbs .ico { width: 14px; height: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 24px; font-size: .92rem; color: var(--text-3); }
.article-meta b { color: var(--text); font-weight: 600; }
.article-cover { margin-top: clamp(32px, 5vw, 60px); }
.article-cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(60px, 8vw, 110px); }
.toc-inner { position: sticky; top: calc(var(--header-h) + 28px); }
.toc-title { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc ol a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); font-size: .9rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc ol a:hover { color: var(--text); text-decoration: none; }
.toc ol a.is-active { color: var(--text); border-left-color: var(--accent); font-weight: 600; }
.toc-app { margin-top: 28px; padding: 18px; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; gap: 12px; }
.toc-app p { display: flex; flex-direction: column; font-size: .88rem; }
.toc-app .btn, .toc-app .store-badge { justify-self: start; }
.toc-app p span { color: var(--text-2); }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}

.prose { font-size: 1.14rem; line-height: 1.72; letter-spacing: -.014em; max-width: 720px; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); letter-spacing: -.034em; line-height: 1.1; margin-top: 2.2em; }
.prose h3 { font-size: 1.35rem; letter-spacing: -.024em; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 650; }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent); text-underline-offset: .2em; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--text-2); }
.prose .callout { padding: 22px 24px; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 1.04rem; }
.prose .callout strong:first-child { display: block; margin-bottom: 4px; }
.prose .table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; line-height: 1.45; min-width: 560px; }
.prose th, .prose td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--bg-soft); font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.prose tbody th { font-weight: 600; }
.prose tr:last-child > * { border-bottom: 0; }
.prose td.yes { color: #1f9d55; font-weight: 600; }
.prose td.no { color: #d93025; font-weight: 600; }
@media (prefers-color-scheme: dark) { .prose td.yes { color: #30d158; } .prose td.no { color: #ff6961; } }
.prose .sources { font-size: .92rem; color: var(--text-2); }
.prose .steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.prose .steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 64px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); margin: 0; }
.prose .steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.prose .faq { font-size: 1.04rem; }
.prose .faq p { margin: 0; }
.fig { margin: 2em 0; }
.fig > img { border-radius: 20px; }
.fig figcaption, .fig-row figcaption { margin-top: 12px; font-size: .9rem; color: var(--text-3); text-align: center; }
.fig-phone .device { width: min(300px, 76%); margin: 0 auto; }
.fig-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 22px; margin: 2.2em 0; }
.fig-row figure { margin: 0; }
.fig-row .device { width: min(240px, 100%); margin: 0 auto; }
.store-row { margin: 1.6em 0; }

.app-promo {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin: 2.4em 0;
  padding: 26px; border-radius: 28px; background: var(--bg-soft); border: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate;
}
.app-promo::before { content: ""; position: absolute; inset: -50% 40% -50% -20%; z-index: -1; filter: blur(30px);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%); }
.app-promo-name { font: 700 1.4rem/1.1 var(--font-display); letter-spacing: -.03em; }
.app-promo-tag { color: var(--text-2); font-size: 1rem; margin-top: 4px !important; }
.app-promo-meta { display: flex; gap: 10px; align-items: center; margin-top: 8px !important; font-size: .86rem; color: var(--text-3); }
.app-promo-actions { display: grid; gap: 10px; justify-items: start; font-size: .95rem; }
.prose .app-promo a { text-decoration: none; }
@media (max-width: 640px) { .app-promo { grid-template-columns: auto 1fr; } .app-promo-actions { grid-column: 1 / -1; } }

/* Pagine legali */
.legal { font-size: 1.04rem; }
.legal h2 { font-size: 1.6rem; margin-top: 1.8em; }
.legal .summary { padding: 22px 26px; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--line); }
.legal .summary ul { margin-top: 8px; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg-elev);
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.select { position: relative; }
.select .ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(90deg); pointer-events: none; color: var(--text-3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
.contact-side { display: grid; gap: 16px; }
.contact-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); }
.contact-card h2 { font-size: 1.15rem; margin-bottom: 12px; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; color: var(--text); line-height: 1.45; }
.contact-line .ico { margin-top: .2em; color: var(--accent); }
a.contact-line:hover { text-decoration: none; color: var(--link); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.done-mark { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; margin-bottom: 26px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.done-mark .ico { width: 36px; height: 36px; }
.big-404 { font: 800 clamp(5rem, 18vw, 11rem)/1 var(--font-display); letter-spacing: -.06em; background: linear-gradient(120deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); font-size: .92rem; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand .brand-logo { height: 22px; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--text); font-weight: 500; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer ul a { color: var(--text-2); }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 34px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--text-3); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Banner lingua e consenso ---------- */
.lang-suggest {
  position: fixed; left: 50%; bottom: 18px; z-index: 60; transform: translateX(-50%); max-width: calc(100% - 28px);
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line); box-shadow: var(--shadow-md); font-size: .9rem; animation: toastIn .6s var(--ease);
}
.lang-suggest[hidden] { display: none; }
.lang-suggest a { display: flex; align-items: center; gap: 8px; color: var(--text); }
.lang-suggest a b { color: var(--link); white-space: nowrap; }
.lang-suggest button { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
@media (max-width: 560px) { .lang-suggest a span { display: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } }
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 560px; margin-left: auto;
  padding: 20px 22px; border-radius: 22px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: .92rem; color: var(--text-2); animation: fadeUp .6s var(--ease);
}
.consent[hidden] { display: none; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.consent-actions .btn { flex: 1; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Animazioni allo scorrimento ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-in, .js .reveal { opacity: 1; transform: none; filter: none; }
}
@media print {
  .site-header, .site-footer, .subnav, .toc, .lang-suggest, .consent { display: none !important; }
}

/* Nessun elemento può allargare la pagina oltre lo schermo */
.prose, .feature-text, .hero-app-text, .app-feature-text, .contact-form, .post-body { min-width: 0; overflow-wrap: break-word; }
.prose .table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) {
  .prose { font-size: 1.06rem; }
  .prose table { min-width: 520px; font-size: .9rem; }
  .prose th, .prose td { padding: 12px; }
  .prose .steps li { padding: 16px 16px 16px 56px; }
  .prose .steps li::before { left: 14px; }
  .app-promo { padding: 20px; gap: 16px; }
  .display--article { font-size: clamp(2rem, 8.4vw, 2.6rem); }
}
