/* Webora · stile minimal, chiaro, con i colori del marchio (blu notte, indaco, viola, ciano) */

@font-face { font-family: "Poppins"; src: url("fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #0B0F2E;
  --navy-2: #141B52;
  --indigo: #2B3FE0;
  --violet: #7A2CF5;
  --cyan: #38C8F0;
  --grad: linear-gradient(115deg, #2B3FE0 0%, #6A2CF0 60%, #8B35F7 100%);

  --ink: #0E1230;
  --ink-2: #4B5170;
  --ink-3: #646A85;
  --line: #E4E6EF;
  --surface: #F4F5FB;
  --lavender: #EEF0FC;
  --white: #FFFFFF;
  --ok: #0B7A3B;

  --display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(14, 18, 48, .04), 0 12px 32px -12px rgba(14, 18, 48, .14);
  --shadow-lg: 0 2px 6px rgba(14, 18, 48, .06), 0 40px 80px -24px rgba(14, 18, 48, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, textarea { font: inherit; color: inherit; }
::selection { background: rgba(122, 44, 245, .18); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 16px; }
svg use { pointer-events: none; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--text); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(91, 44, 240, .6); }
.btn-grad:hover { box-shadow: 0 10px 24px -8px rgba(91, 44, 240, .75); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #EEF0FF; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262B52; }
.btn-soft { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { background: var(--lavender); }
.btn-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link { color: var(--violet); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Barra in alto ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px var(--gutter) 0; pointer-events: none; }
.pill-nav {
  pointer-events: auto;
  max-width: 980px; margin: 0 auto; height: 60px; padding: 0 10px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(14, 18, 48, .08); border-radius: 999px;
  box-shadow: 0 8px 30px -12px rgba(14, 18, 48, .25);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 700 22px/1 var(--display); letter-spacing: -0.03em; }
.brand img { width: 30px; height: 30px; }
.segments { position: relative; display: flex; align-items: center; padding: 4px; border-radius: 999px; background: rgba(14, 18, 48, .05); }
.segments a {
  position: relative; z-index: 1; padding: 8px 14px; border-radius: 999px;
  font: 500 14px/1 var(--text); color: var(--ink-2); text-decoration: none; transition: color .2s;
}
.segments a:hover { color: var(--ink); }
.segments a.is-on { color: var(--ink); }
.seg-ind {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px;
  background: #fff; box-shadow: 0 1px 3px rgba(14, 18, 48, .12), 0 0 0 .5px rgba(14, 18, 48, .06);
  opacity: 0; transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 55% at 85% 10%, rgba(106, 44, 240, .55), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(43, 63, 224, .35), transparent 70%),
    var(--navy);
  color: #fff;
  padding: 150px 0 0;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.orbits { position: absolute; z-index: -1; width: 900px; right: -300px; top: 90px; fill: none; opacity: .5; }
.orbits ellipse { stroke: var(--cyan); stroke-width: 6; opacity: .75; }
.orbits ellipse.o2 { stroke: #3A5BD9; stroke-width: 3; opacity: .55; }
.orbits .planet { fill: #5B2FE0; opacity: .9; }
.hero-in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
  font: 600 13px/1 var(--text); letter-spacing: .02em; color: #D6DBFF;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(56, 200, 240, .18); }
.hero-title { margin-top: 28px; max-width: 13ch; font-size: clamp(44px, 7.4vw, 96px); line-height: 1.02; letter-spacing: -0.035em; }
.accent { color: var(--cyan); }
.hero-sub { margin-top: 24px; max-width: 40rem; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: #C9CEEA; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.stage { position: relative; margin-top: 72px; height: clamp(240px, 46vw, 600px); }
.win {
  position: absolute; margin: 0; bottom: 0; overflow: hidden;
  border-radius: 18px 18px 0 0; background: #111;
  border: 1px solid rgba(255, 255, 255, .14); border-bottom: 0;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .6);
}
.win img { width: 100%; height: auto; }
.win-c { left: 50%; width: min(78%, 940px); transform: translateX(-50%); z-index: 2; }
.win-l, .win-r { width: min(46%, 560px); z-index: 1; bottom: -40px; opacity: .55; }
.win-l { left: var(--gutter); transform: rotate(-3deg); transform-origin: bottom right; }
.win-r { right: var(--gutter); transform: rotate(3deg); transform-origin: bottom left; }

/* ---------- Sezioni ---------- */
.sec { padding: clamp(80px, 11vw, 140px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker { font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.h2 { margin-top: 14px; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -0.03em; }
.sec-lead { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 40rem; }

/* ---------- Lavori ---------- */
.filter {
  position: relative; display: inline-flex; padding: 4px; margin-bottom: 28px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.filter button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; font: 600 14px/1 var(--text); color: var(--ink-2);
  transition: color .2s;
}
.filter button.is-on { color: var(--ink); }
.filter-ind {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px;
  background: #fff; box-shadow: 0 1px 3px rgba(14, 18, 48, .12), 0 0 0 .5px rgba(14, 18, 48, .06);
  transition: transform .35s var(--ease), width .35s var(--ease);
}
html:not(.js) .filter { display: none; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  min-height: 520px; border-radius: var(--r-xl); background: var(--surface);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card[hidden] { display: none; }
.card-text { padding: 32px 32px 0; position: relative; z-index: 1; }
.chip {
  display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff;
  font: 600 12px/1.2 var(--text); color: var(--ink-2); border: 1px solid var(--line);
}
.card-title { margin-top: 16px; font-size: clamp(26px, 2.6vw, 34px); }
.card-desc { margin-top: 8px; color: var(--ink-2); max-width: 30rem; }
.card-media { position: relative; flex: 1; margin-top: 28px; min-height: 240px; overflow: hidden; }
.media-shot img, .media-mac img {
  position: absolute; left: 32px; top: 0; width: calc(100% - 32px + 40px); max-width: none;
  border-radius: 14px 0 0 0; box-shadow: var(--shadow-lg);
  transition: transform .6s var(--ease);
}
.card:hover .media-shot img, .card:hover .media-mac img { transform: translateY(-6px); }
.media-logo { display: grid; place-items: center; padding: 0 32px 40px; }
.media-logo img { width: 52%; max-width: 230px; border-radius: 12px; background: #fff; padding: 18px; box-shadow: var(--shadow); }
.media-ui { display: grid; place-items: center; padding: 0 24px 40px; }

.card-link { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.card-link:focus-visible { outline-offset: -4px; }
.plus {
  position: absolute; right: 20px; top: 24px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  transition: transform .3s var(--ease), background-color .2s;
}
.plus svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.card:hover .plus { transform: rotate(90deg); background: var(--violet); }

.card-wide { grid-column: 1 / -1; flex-direction: row; min-height: 500px; }
.card-wide .card-text { flex: 0 0 38%; padding: 48px; align-self: center; }
.card-wide .card-media { margin-top: 48px; }
.card-wide .media-mac img { left: 0; width: calc(100% + 40px); border-radius: 16px 0 0 0; }
.card-wide .card-title { font-size: clamp(34px, 4vw, 52px); }
.card-wide .card-desc { font-size: 19px; }
.tone-navy { background: radial-gradient(70% 90% at 100% 0%, rgba(106, 44, 240, .5), transparent 70%), var(--navy); color: #fff; }
.tone-navy .card-desc { color: #C9CEEA; }
.tone-navy .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #D6DBFF; }
.tone-navy .plus { background: #fff; color: var(--ink); }

/* Frammenti d'interfaccia disegnati (HACCP, Locatio) */
.label {
  width: min(100%, 330px); background: #fff; border-radius: 18px; padding: 20px;
  box-shadow: var(--shadow-lg); font-size: 14px; transform: rotate(-2deg);
  transition: transform .6s var(--ease);
}
.card:hover .label, .card:hover .lc { transform: rotate(0); }
.lb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.lb-head b { font: 700 17px/1.2 var(--display); }
.lb-head span { font-size: 12px; color: var(--ink-3); }
.lb-grid { margin: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.lb-grid dt { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.lb-grid dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-exp { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--grad); color: #fff; }
.lb-exp span { font-size: 12px; opacity: .85; }
.lb-exp b { font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }

.lc {
  width: min(100%, 330px); background: #fff; border-radius: 22px; padding: 18px;
  box-shadow: var(--shadow-lg); font-size: 14px; transform: rotate(2deg); transition: transform .6s var(--ease);
}
.lc-top { display: flex; gap: 12px; align-items: center; }
.lc-top img { width: 40px; height: 40px; border-radius: 10px; }
.lc-top b { display: block; font-weight: 600; }
.lc-top span { font-size: 12px; color: var(--ink-3); }
.lc-fig { margin: 14px 0; padding: 14px; border-radius: 14px; background: var(--lavender); }
.lc-fig span { display: block; font-size: 12px; color: var(--ink-3); }
.lc-fig b { display: block; font: 700 28px/1.2 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lc-fig em { font-style: normal; font-size: 12px; color: var(--violet); font-weight: 600; }
.lc-rows li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 2px; border-top: 1px solid var(--line); }
.lc-rows b { font-weight: 600; }
.lc-rows .ok { color: var(--ok); }

/* ---------- Schede (foglio iOS) ---------- */
.sheet {
  padding: 0; border: 0; margin: auto; background: transparent; color: var(--ink);
  width: min(860px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px);
  overflow: visible;
}
.sheet::backdrop { background: rgba(11, 15, 46, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet-in {
  background: #fff; border-radius: 28px; max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain;
  box-shadow: var(--shadow-lg);
}
.sheet[open] .sheet-in { animation: sheet-in .45s var(--ease); }
.sheet[open]::backdrop { animation: fade .3s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(40px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.sheet-bar {
  position: sticky; top: 0; z-index: 2; height: 56px; display: flex; justify-content: center; align-items: center;
  background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.grabber { display: none; width: 40px; height: 5px; border-radius: 3px; background: #D5D8E5; }
.sheet-close {
  position: absolute; right: 14px; top: 10px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); color: var(--ink-2);
}
.sheet-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sheet-close:hover { background: var(--line); color: var(--ink); }
.sheet-body { padding: 0 clamp(22px, 5vw, 56px) clamp(32px, 5vw, 56px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 600 12px/1.2 var(--text); color: var(--ink-2); }
.sheet-title { margin-top: 16px; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; }
.sheet-lead { margin-top: 12px; font-size: 19px; color: var(--ink-2); }
.callout { margin-top: 28px; padding: 20px 24px; border-radius: 20px; background: var(--lavender); border-left: 4px solid var(--violet); }
.callout b { display: block; font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.gallery {
  margin: 28px calc(clamp(22px, 5vw, 56px) * -1) 0; padding: 4px clamp(22px, 5vw, 56px) 12px;
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  scroll-padding-inline: clamp(22px, 5vw, 56px);
}
.gallery img { flex: none; scroll-snap-align: start; border-radius: 16px; border: 1px solid var(--line); height: 320px; width: auto; max-width: none; background: var(--surface); }
.sheet-body h4 { margin-top: 32px; font-size: 20px; }
.checks { margin-top: 12px; display: grid; gap: 2px; }
.checks li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: radial-gradient(circle, #000 99%, transparent 100%);
}
.checks li::after {
  content: ""; position: absolute; left: 7px; top: 18px; width: 8px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.stack { margin-top: 24px; color: var(--ink-2); }
.stack b { display: block; font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.sheet-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
html:not(.js) .sheet:target { display: block; position: fixed; inset: 24px; z-index: 80; }

/* ---------- Servizi ---------- */
.services { background: var(--surface); }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile {
  background: #fff; border-radius: var(--r-lg); padding: 32px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.tile h3 { margin-top: 12px; font-size: 22px; }
.tile p { color: var(--ink-2); }
.ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(91, 44, 240, .6);
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-hero {
  grid-column: span 2; grid-row: span 2; justify-content: flex-end; min-height: 380px; border: 0;
  background: radial-gradient(80% 80% at 100% 0%, rgba(106, 44, 240, .55), transparent 70%), var(--navy); color: #fff;
}
.tile-hero h3 { font-size: clamp(28px, 3vw, 40px); }
.tile-hero p { color: #C9CEEA; font-size: 18px; max-width: 34rem; }
.tile-hero .ico { background: rgba(255, 255, 255, .1); box-shadow: none; border: 1px solid rgba(255, 255, 255, .2); color: var(--cyan); margin-bottom: auto; }
.tile-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tile-tags li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; color: #D6DBFF; }
.tile-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; }
.tile-wide h3 { margin-top: 0; }
.tile-wide .ico { flex: none; }

/* ---------- Metodo ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 12.5%; right: 12.5%; height: 3px; border-radius: 2px;
  background: var(--grad); opacity: .9;
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step-n {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px;
  border-radius: 50%; background: #fff; border: 3px solid var(--indigo);
  font: 700 20px/1 var(--display); color: var(--indigo);
}
.step-on .step-n { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 8px rgba(122, 44, 245, .14); }
.step h3 { font-size: 20px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

.method-grid { margin-top: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.list-card { background: var(--surface); border-radius: var(--r-lg); padding: 28px 32px; }
.list-card h3 { font-size: 20px; margin-bottom: 8px; }
.ios-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ios-list li:last-child { border-bottom: 0; }
.ios-list svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--violet); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ios-rows li { justify-content: space-between; }
.ios-rows b { font-weight: 600; color: var(--indigo); white-space: nowrap; }

/* ---------- Chi sono ---------- */
.about { padding-top: 0; }
.about-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  background: var(--lavender); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px);
}
.about-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, #DDE1FA, #C9C6F5); aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.about-text p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.about-text p.kicker { margin-top: 0; color: var(--violet); font-size: 13px; }
.about-text .h2 { margin-bottom: 8px; }
.about-text strong { color: var(--ink); font-weight: 600; }
.sign { margin-top: 28px !important; display: flex; flex-direction: column; gap: 2px; }
.sign b { font: 700 20px/1.2 var(--display); color: var(--ink); }
.sign span { font-size: 15px; color: var(--ink-3); }

/* ---------- Domande ---------- */
.faq { background: var(--surface); }
.faq-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-head { position: sticky; top: 110px; margin-bottom: 0; }
.ios-group { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.ios-group details { border-bottom: 1px solid var(--line); }
.ios-group details:last-child { border-bottom: 0; }
.ios-group summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; font: 600 18px/1.35 var(--display); letter-spacing: -0.01em;
}
.ios-group summary::-webkit-details-marker { display: none; }
.ios-group summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2.4px solid var(--ink-3); border-bottom: 2.4px solid var(--ink-3);
  transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease);
}
.ios-group details[open] summary::after { transform: rotate(-135deg) translateY(-3px); border-color: var(--violet); }
.ios-group summary:hover { background: #FAFAFE; }
.ios-group details p { padding: 0 24px 22px; color: var(--ink-2); }

/* ---------- Contatti ---------- */
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl); background: var(--grad); color: #fff;
  padding: clamp(32px, 6vw, 80px);
}
.orbits-sm { width: 700px; right: -260px; top: -120px; opacity: .55; }
.orbits-sm ellipse { stroke: #fff; opacity: .5; }
.orbits-sm ellipse.o2 { stroke: var(--cyan); opacity: .7; }
.contact-in { max-width: 720px; }
.contact-card .h2 { margin-top: 0; }
.contact-sub { margin-top: 16px; font-size: 18px; color: rgba(255, 255, 255, .96); }
.composer {
  margin-top: 32px; display: flex; align-items: flex-end; gap: 8px;
  background: #fff; border-radius: 28px; padding: 8px 8px 8px 22px;
  box-shadow: 0 20px 40px -16px rgba(11, 15, 46, .5);
}
.composer textarea {
  flex: 1; min-height: 44px; max-height: 260px; padding: 11px 0; border: 0; outline: 0; resize: none; background: none;
  color: var(--ink); font-size: 17px; line-height: 1.4; field-sizing: content;
}
.composer textarea::placeholder { color: var(--ink-3); }
.composer:focus-within { box-shadow: 0 0 0 4px rgba(56, 200, 240, .6), 0 20px 40px -16px rgba(11, 15, 46, .5); }
.send {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--grad); color: #fff; transition: transform .2s var(--ease);
}
.send:active { transform: scale(.92); }
.send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.c-match { min-height: 1.6em; margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.c-match a { color: #fff; font-weight: 600; }
.contact-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-rows { margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-rows div { background: var(--surface); border-radius: var(--r-md); padding: 20px 24px; }
.contact-rows dt { font-size: 13px; color: var(--ink-3); }
.contact-rows dd { margin: 4px 0 0; font-weight: 600; }
.contact-rows a { text-decoration: none; }
.contact-rows a:hover { color: var(--violet); }

/* ---------- Piè di pagina ---------- */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand-foot { font-size: 19px; }
.brand-foot img { width: 26px; height: 26px; }
.foot-tag, .foot-legal { font-size: 14px; color: var(--ink-3); }
.foot-legal a { color: var(--ink-2); }

/* ---------- Menu del telefono: la stessa pillola di vetro, che si apre ---------- */
.nav-end { display: flex; align-items: center; gap: 8px; }
.menu-btn, .m-menu { display: none; }

/* ---------- Entrate ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
  .segments a { padding: 8px 10px; }
  .segments a[data-spy="domande"] { display: none; }
  .card-wide { flex-direction: column; }
  .card-wide .card-text { padding: 36px 32px 0; }
  .card-wide .card-media { margin-top: 32px; min-height: 340px; }
  .card-wide .media-mac img { left: 32px; width: calc(100% - 32px + 40px); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-hero { grid-row: auto; min-height: 340px; }
  .tile-wide { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 10px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .method-grid { grid-template-columns: 1fr; }
}

/* ---------- Telefono: diventa un'app ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 80px; }
  .topbar { padding-top: 10px; }
  .pill-nav { height: 54px; padding: 0 6px 0 14px; }
  .segments { display: none; }
  .brand { font-size: 20px; }

  .hero { padding-top: 116px; border-radius: 0 0 28px 28px; }
  .orbits { width: 620px; right: -300px; top: 60px; opacity: .6; }
  .hero-title { font-size: clamp(40px, 11.5vw, 56px); }
  .hero-cta { width: 100%; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .stage { margin-top: 48px; height: 58vw; }
  .win-c { width: 92%; }
  .win-l, .win-r { display: none; }

  .filter { display: flex; width: 100%; }
  .filter button { flex: 1; padding: 10px 6px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { min-height: 0; border-radius: 28px; }
  .card-text { padding: 24px 24px 0; }
  .card-media { min-height: 220px; margin-top: 24px; }
  .media-shot img, .media-mac img, .card-wide .media-mac img { left: 24px; width: calc(100% - 24px + 30px); }
  .card-wide .card-text { padding: 28px 24px 0; }
  .card-wide .card-media { min-height: 240px; }
  .card-wide .card-desc { font-size: 17px; }
  .plus { top: 20px; right: 16px; width: 36px; height: 36px; }
  .media-ui { padding: 0 20px 28px; }
  .media-logo { padding: 0 24px 28px; }

  .bento { grid-template-columns: 1fr; gap: 14px; }
  .tile, .tile-hero, .tile-wide { grid-column: auto; padding: 24px; }
  .tile-hero { min-height: 0; gap: 10px; }
  .tile-hero .ico { margin-bottom: 20px; }
  .tile-wide { flex-direction: column; align-items: flex-start; gap: 10px; }

  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { text-align: left; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 0 0 28px; }
  .step-n { grid-row: span 2; margin: 0; }
  .step::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 3px; background: var(--grad); opacity: .35; border-radius: 2px; }
  .step:last-child::before { display: none; }
  .step h3 { align-self: end; padding-top: 6px; }
  .method-grid { margin-top: 24px; }
  .list-card { padding: 22px 22px; }

  .about-card { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 1 / 1; }
  .about-photo img { object-position: 50% 10%; }
  .about-text p { font-size: 17px; }

  .faq-in { grid-template-columns: 1fr; }
  .faq-head { position: static; margin-bottom: 28px; }
  .ios-group summary { padding: 18px 20px; font-size: 17px; }
  .ios-group details p { padding: 0 20px 18px; }

  .contact-card { border-radius: 28px; padding: 32px 22px; }
  .contact-actions .btn { width: 100%; }
  .contact-rows { grid-template-columns: 1fr; gap: 10px; }

  .foot { padding-bottom: 24px; }
  .foot-in { flex-direction: column; align-items: flex-start; }

  /* Menu: bottone tondo nella pillola, pannello di vetro sotto */
  .menu-btn {
    display: grid; place-content: center; gap: 5px; width: 42px; height: 42px; border-radius: 50%;
    border: 0; background: rgba(14, 18, 48, .06); cursor: pointer;
  }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .m-menu {
    pointer-events: auto; display: grid; gap: 4px; margin: 8px auto 0; padding: 8px;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(14, 18, 48, .08); border-radius: 28px;
    box-shadow: 0 20px 50px -16px rgba(14, 18, 48, .35);
    transform-origin: top right; animation: menu-in .32s var(--ease);
  }
  .m-menu[hidden] { display: none; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
  .m-menu a:not(.btn) {
    display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 18px;
    font: 600 17px/1 var(--display); letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
  }
  .m-menu a:not(.btn) svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .m-menu a.is-on { background: #fff; box-shadow: 0 1px 3px rgba(14, 18, 48, .12), 0 0 0 .5px rgba(14, 18, 48, .06); }
  .m-menu a.is-on svg { stroke: var(--violet); }
  .m-menu .m-cta { margin-top: 6px; width: 100%; min-height: 52px; font-size: 16px; }

  /* Il foglio sale dal basso */
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92dvh; }
  .sheet-in { border-radius: 24px 24px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); }
  .sheet[open] .sheet-in { animation: sheet-up .45s var(--ease); }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  .grabber { display: block; }
  .sheet-bar { height: 44px; }
  .sheet-close { top: 6px; right: 10px; width: 32px; height: 32px; }
  .sheet-lead { font-size: 17px; }
  .gallery img { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
