/*
 * Check&Love — bozza di concept del nuovo sito.
 * Token: lib/theme/app_palette.dart dell'app (stessi valori di checkandlove-eventi-web).
 * Layout: sezioni alternate sabbia / bianco / inchiostro, telefoni con screenshot reali,
 * un solo motivo ricorrente: due punti (due persone) che si incontrano.
 */

@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "BricolageCond"; src: url("fonts/BricolageGrotesque-CondBold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "FABrands"; src: url("fonts/fa-brands-400.woff2") format("woff2"); font-display: block; }

:root {
  --brand: #FF6E81;
  --brand-dark: #E13E57;
  --brand-light: #FFA6B2;
  --brand-soft: #FFDFE3;
  --moment: #E7B84B;
  --success: #2E9E6B;
  --ink: #1C1714;
  --nav-bg: #211B16;
  --sand: #F7F1EC;
  --sand-2: #F0E5DC;
  --sand-3: #E9DCD0;
  --white: #FFFFFF;
  --text: #1C1714;
  --text-body: #332E29;
  --text-muted: #6B6358;
  --on-ink: #F3EDE7;
  --on-ink-muted: #C9BFB1;

  --font: "Bricolage", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "BricolageCond", "Bricolage", system-ui, sans-serif;

  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 2px 6px rgba(28, 23, 20, .05), 0 18px 40px rgba(28, 23, 20, .10);
  --shadow-phone: 0 30px 60px -20px rgba(28, 23, 20, .45), 0 10px 20px -10px rgba(28, 23, 20, .25);
  --max: 1200px;
  --gutter: 20px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}
@media (min-width: 760px) { :root { --gutter: 40px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sand); color: var(--text-body);
  font: 400 18px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { color: var(--text); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- icone (Font Awesome Pro dell'app, colorate con currentColor) ---------- */
.ico { display: inline-block; width: 1em; height: 1em; background: currentColor; flex: none;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-users    { --i: url("icons/users-regular.svg"); }
.ico-bt       { --i: url("icons/bluetooth-solid.svg"); }
.ico-heart    { --i: url("icons/heart-solid.svg"); }
.ico-heart-o  { --i: url("icons/heart-regular.svg"); }
.ico-check    { --i: url("icons/check-solid.svg"); }
.ico-lock     { --i: url("icons/lock-solid.svg"); }
.ico-pin      { --i: url("icons/location-dot-solid.svg"); }
.ico-shield   { --i: url("icons/shield-halved-solid.svg"); }
.ico-key      { --i: url("icons/key-skeleton-regular.svg"); }
.ico-cal      { --i: url("icons/calendar-check-regular.svg"); }
.ico-book     { --i: url("icons/address-book-regular.svg"); }
.ico-msg      { --i: url("icons/message-heart-solid.svg"); }
.ico-eye      { --i: url("icons/eye-regular.svg"); }

/* ---------- tipografia ---------- */
.display {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(56px, 9vw, 116px); line-height: .92;
}
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5.2vw, 64px); line-height: 1; letter-spacing: -.005em; }
.h3 { font-weight: 700; font-size: 22px; line-height: 1.2; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-body); max-width: 34em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dark); }
.brand-dot { color: var(--brand); }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; border: 0; border-radius: 999px;
  padding: 16px 28px; font-weight: 700; font-size: 17px; text-decoration: none;
  background: var(--brand); color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(225, 62, 87, .7);
  transition: transform .3s var(--ease-spring), box-shadow .3s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--brand-dark); box-shadow: 0 14px 28px -10px rgba(225, 62, 87, .8); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.link-arrow { display: inline-flex; gap: .4em; align-items: center; font-weight: 700; color: var(--brand-dark); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease-spring); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled { background: rgba(247, 241, 236, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 rgba(28, 23, 20, .07); }
.nav { display: flex; align-items: center; gap: 28px; height: 84px; transition: height .3s var(--ease-out); }
.scrolled .nav { height: 66px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: none; gap: 26px; margin: 0 auto; padding: 0; list-style: none; font-size: 16px; font-weight: 500; }
.nav-links a { text-decoration: none; position: relative; padding-block: 6px; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
@media (min-width: 1020px) { .nav-links { display: flex; } .nav-right { margin-left: 0; } }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 15px; padding: 8px 4px; display: inline-flex; align-items: center; gap: 8px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease-out); }
.lang[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lang ul { position: absolute; right: 0; top: 100%; margin: 8px 0 0; padding: 8px; list-style: none; background: var(--white); border-radius: 16px; box-shadow: var(--shadow); min-width: 170px; }
.lang li a { transition: background-color .25s; display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.lang li a:hover { background: var(--sand); }
.lang li a[aria-current] { color: var(--brand-dark); font-weight: 700; }
.burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; padding: 0; color: inherit; }
@media (min-width: 1020px) { .burger { display: none; } }
.nav .btn-sm { display: none; }
@media (min-width: 560px) { .nav .btn-sm { display: inline-flex; } }

/* ---------- 01 · apertura ---------- */
.hero { position: relative; isolation: isolate; padding-block: 24px 72px; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 24px; min-height: 620px; } }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero .display .line { display: block; overflow: clip; padding-bottom: .06em; }
.hero .display .line > span { display: inline-block; animation: rise 1s var(--ease-out) both; }
.hero .display .line:nth-child(2) > span { animation-delay: .12s; }
.hero .display .dot { display: inline-block; color: var(--brand); animation: drop .9s .75s var(--ease-spring) both; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes drop { 0% { transform: translateY(-1.2em) scale(.4); opacity: 0; } 70% { opacity: 1; } }
.hero-copy .lead, .hero-copy .btn { animation: fade-up .9s .35s var(--ease-out) both; }
.hero-copy .btn { animation-delay: .5s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }

/* telefoni */
.phones { position: relative; height: clamp(440px, 52vw, 600px); }
.phones-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease-out); }
.phone {
  position: absolute; width: clamp(170px, 19vw, 248px); aspect-ratio: 1080 / 2400;
  border-radius: clamp(26px, 3vw, 38px); border: clamp(6px, .7vw, 9px) solid var(--ink);
  background: var(--ink) center / cover no-repeat; box-shadow: var(--shadow-phone); overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
@keyframes phone-in { from { transform: translateY(40px) translateZ(60px); opacity: 0; } }

/* Telefoni dell'hero: il JS scrive --mx --my --ry --rx su ogni telefono; l'entrata anima
   --fan e --rise, così transform resta libera per il movimento 3D. */
@property --fan  { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --rise { syntax: "<length>"; inherits: false; initial-value: 0px; }
.phones .phone {
  --dx: 0%; --rot: 0deg; --z: 0px; --mx: 0px; --my: 0px; --ry: 0deg; --rx: 0deg;
  left: 50%; top: 50%; translate: -50% -50%;
  border: 0; background: none; overflow: visible; box-shadow: none; transform-style: preserve-3d;
  /* prospettiva propria di ogni telefono: il fianco dipende solo dalla sua inclinazione, su tutti i lati */
  transform: perspective(1100px) translateX(calc(var(--dx) * var(--fan))) translateY(var(--rise)) translateZ(var(--z))
             translate3d(var(--mx), var(--my), 0) rotateY(var(--ry)) rotateX(var(--rx)) rotate(calc(var(--rot) * var(--fan)));
}
.phones .p1 { z-index: 2; top: 50%; --dx: -24%; --rot: -4deg; --z: 60px; animation: hero-rise 1.1s .2s var(--ease-out) backwards; }
.phones .p3 { z-index: 1; top: 53%; --dx: 34%; --rot: 7deg; --z: -20px; animation: hero-fan 1.2s .4s var(--ease-out) backwards; }
@keyframes hero-rise { from { --rise: 40px; opacity: 0; } }
@keyframes hero-fan  { from { --fan: 0; opacity: 0; } }
/* lo schermo: cornice e riflesso che scorre con l'inclinazione */
.phones .screen { position: absolute; inset: 0; border-radius: inherit; border: clamp(6px, .7vw, 9px) solid var(--ink); background: var(--ink); overflow: hidden; }
.phones .screen::after { content: ""; position: absolute; inset: -10%; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,.05) 32%, rgba(255,255,255,.16) 45%, rgba(255,255,255,.16) 52%, rgba(255,255,255,.05) 65%, transparent 80%) no-repeat;
  background-size: 240% 100%; background-position: calc(50% + var(--g, 0) * 45%) 0; filter: blur(14px); mix-blend-mode: screen; }
/* lo spessore: strati dietro lo schermo, dal bordo metallico chiaro al retro scuro */
.phones .edge { position: absolute; inset: 0; border-radius: inherit; transform: translateZ(calc(var(--i) * -2.4px));
  background: var(--ink); }
.phones .edge.last { box-shadow: var(--shadow-phone); }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }

/* ---------- sezioni ---------- */
.section { padding-block: clamp(80px, 11vw, 140px); position: relative; }
.section-white { background: var(--white); }
.section-head { display: grid; gap: 18px; justify-items: center; text-align: center; margin-bottom: 56px; }
.section-head .lead { margin-inline: auto; }

/* due punti che si incrociano sotto il titolo */
.passing { position: relative; width: min(520px, 100%); height: 24px; margin: 6px auto 0; }
.passing::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--sand-3) 20%, var(--sand-3) 80%, transparent); }
.passing i { position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; }
.passing .a { left: calc(50% - 16px); background: var(--brand); }
.passing .b { left: calc(50% + 2px); background: var(--ink); }
.passing .spark { left: calc(50% - 22px); width: 44px; height: 44px; margin-top: -22px; background: none; border: 2px solid var(--brand); opacity: .0; }

/* card */
.cards { display: grid; gap: 20px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--sand); border-radius: var(--radius); padding: 32px; display: grid; gap: 14px; align-content: start;
  transition: translate .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.section-white .card { background: var(--sand); }
.card:hover { translate: 0 -6px; box-shadow: var(--shadow); }
.card .badge-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); font-size: 24px; }
.card p { color: var(--text-muted); font-size: 17px; }
.card-demo { min-height: 150px; border-radius: var(--radius-sm); background: var(--white); position: relative; overflow: hidden; margin-top: 6px; }
.center-link { display: flex; justify-content: center; margin-top: 40px; }

/* demo: persone vere */
.faces { display: flex; align-items: center; justify-content: center; height: 150px; }
.faces span { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--white); margin-inline: -10px; background: var(--sand-3, #E9DCD0) center / cover no-repeat; box-shadow: 0 6px 14px rgba(28,23,20,.15); transition: transform .4s var(--ease-spring); }
.faces span:nth-child(1) { background-image: url("app/avatars/default/31.webp"); }
.faces span:nth-child(2) { background-image: url("app/avatars/default/32.webp"); }
.faces span:nth-child(3) { background-image: url("app/avatars/default/33.webp"); }
.faces span:nth-child(4) { background-image: url("app/avatars/default/34.webp"); }
.card:hover .faces span { transform: translateY(-6px); }
.card:hover .faces span:nth-child(2) { transition-delay: .05s; }
.card:hover .faces span:nth-child(3) { transition-delay: .1s; }
.card:hover .faces span:nth-child(4) { transition-delay: .15s; }

/* demo: bluetooth, non gps */
.bt-demo { display: grid; place-items: center; height: 150px; }
.bt-demo svg { width: 100%; height: 100%; }
.bt-ring { fill: none; stroke: var(--brand); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
.bt-ring.r2 { animation-delay: .8s; } .bt-ring.r3 { animation-delay: 1.6s; }
.bt-ring.b { stroke: var(--ink); }
@keyframes ring { from { transform: scale(.15); opacity: .9; } to { transform: scale(1); opacity: 0; } }
.bt-person-a { animation: walk-a 4.8s var(--ease-out) infinite alternate; }
.bt-person-b { animation: walk-b 4.8s var(--ease-out) infinite alternate; }
@keyframes walk-a { from { transform: translateX(-34px); } to { transform: translateX(0); } }
@keyframes walk-b { from { transform: translateX(34px); } to { transform: translateX(0); } }
.gps-off { position: absolute; right: 14px; top: 12px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.gps-off .ico { position: relative; font-size: 14px; }
.gps-off s { text-decoration-thickness: 2px; text-decoration-color: var(--brand-dark); }

/* demo: check anonimo */
.check-demo { padding: 18px; display: grid; gap: 12px; justify-items: center; text-align: center; height: auto; min-height: 150px; }
.cd-face { width: 64px; height: 64px; border-radius: 50%; background: url("app/avatars/default/32.webp") center / cover no-repeat; position: relative; transition: transform .5s var(--ease-spring); }
.cd-face.me { background-image: url("app/avatars/default/31.webp"); }
.cd-pair { display: flex; align-items: center; gap: 0; position: relative; }
.cd-pair .cd-face.me { width: 0; opacity: 0; transition: width .5s var(--ease-spring), opacity .3s, margin .5s; }
.cd-heart { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font-size: 16px; transform: scale(0); transition: transform .5s var(--ease-spring); z-index: 2; border: 3px solid var(--white); }
.cd-text { font-size: 15px; font-weight: 500; min-height: 2.6em; color: var(--text-body); }
.cd-text small { display: block; font-weight: 400; color: var(--text-muted); font-size: 13px; }
.cd-btn { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; background: var(--ink); color: var(--white); transition: background .3s, transform .3s var(--ease-spring); }
.cd-btn:hover { transform: scale(1.04); }
.cd-btn[disabled] { background: var(--sand-3); color: var(--text-muted); cursor: default; transform: none; }
.check-demo.sent .cd-face:not(.me) { transform: scale(.92); }
.check-demo.love .cd-pair .cd-face.me { width: 64px; opacity: 1; margin-left: -8px; }
.check-demo.love .cd-heart { transform: scale(1); }
.burst { position: absolute; pointer-events: none; color: var(--brand); font-size: 14px; animation: burst 1.1s var(--ease-out) forwards; }
@keyframes burst { from { transform: translate(0, 0) scale(.4); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1.1); opacity: 0; } }

/* ---------- 03 · lo dicono loro ---------- */
.quotes { display: grid; gap: 20px; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } .quotes figure:nth-child(2) { translate: 0 40px; } }
.quotes figure { margin: 0; padding: 32px; border-radius: var(--radius); background: var(--white); display: grid; gap: 22px; position: relative; }
.quotes figure::before { content: "“"; font-family: var(--font-display); font-size: 96px; line-height: .6; color: var(--brand); height: 34px; }
.quotes blockquote { margin: 0; font-size: 19px; font-weight: 500; color: var(--text); }
.quotes figcaption { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.quotes figcaption i { width: 40px; height: 40px; border-radius: 50%; background: var(--sand-2); }
.quotes figcaption b { display: block; color: var(--text); }
.placeholder-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px dashed var(--brand); color: var(--brand-dark); font-size: 13px; font-weight: 700; }

/* ---------- 04 · download ---------- */
.download { background: var(--nav-bg); color: var(--on-ink); border-radius: 40px 40px 0 0; margin-top: 40px; overflow: clip; }
.download h2 { color: var(--white); }
.download .lead { color: var(--on-ink-muted); }
.dl-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .dl-grid { grid-template-columns: .9fr 1.1fr; } }
.dl-copy { display: grid; gap: 24px; justify-items: start; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges img { height: 48px; width: auto; }
/* pulsanti degli store: uguali fra loro (stesso nero, stessi angoli), solo logo e nome dello store, che non si traducono */
.store { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 16px; border-radius: 14px; background: #000; color: #fff; font: 600 17px/1 var(--font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); transition: background-color .3s, transform .3s var(--ease-out); }
.store:hover { background: #222; }
.store-ico { width: 22px; height: 22px; flex: none; }
.store-ico.ap { background: #fff; -webkit-mask: url("icons/apple-brand.svg") center / contain no-repeat; mask: url("icons/apple-brand.svg") center / contain no-repeat; }
.store-ico.gp { background: url("icons/google-play-color.svg?v=2022") center / contain no-repeat; width: 20px; }
.foot-app .store { height: 42px; font-size: 15px; padding: 0 16px 0 13px; border-radius: 12px; }
.foot-app .store-ico { width: 19px; height: 19px; }

.stage-wrap { position: relative; }
.stage { position: relative; aspect-ratio: 1760 / 938; border-radius: 32px; overflow: hidden;
  background: linear-gradient(180deg, #FFE9EC 0%, var(--sand) 70%); }
.stage img { position: absolute; height: auto; }
.stage .l-clouds { left: 5.68%; top: 2%; width: 94.1%; opacity: .9; animation: drift 30s linear infinite alternate; }
.stage .l-plants { left: 0; top: 34.5%; width: 100%; }
.stage .l-grass  { left: 0; top: 64.8%; width: 100%; }
.stage .l-seat   { left: 22.27%; top: 39.2%; width: 55.68%; }
.stage .l-man    { left: 16.82%; top: 8.53%; width: 35.9%; }
.stage .l-woman  { left: 51.59%; top: 14.07%; width: 27.5%; }
.stage .l-heart  { left: 37.95%; top: 58.4%; width: 11.14%; }
@keyframes drift { to { translate: -4% 0; } }
.stage-phone { position: absolute; right: -2%; bottom: -14%; width: clamp(120px, 15vw, 180px); z-index: 3; rotate: 6deg; }
.stage-phone .phone { position: relative; width: 100%; }
.pop-heart { position: absolute; left: 44.5%; top: 34%; width: 13%; aspect-ratio: 1; z-index: 2; color: var(--brand); filter: drop-shadow(0 8px 16px rgba(225, 62, 87, .45)); }
.pop-heart .ico { width: 100%; height: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--nav-bg); color: var(--on-ink-muted); padding-block: 64px 28px; font-size: 15px; }
.foot-top { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .foot-top { grid-template-columns: 1fr 1.3fr 1fr auto; } }
.foot-col .foot-h { margin: 0 0 14px; color: var(--white); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-col a { text-decoration: none; transition: color .25s; }
.foot-col a:hover { color: var(--white); }
.foot-app .badges { gap: 10px; }
.foot-app .badges img { height: 40px; }
@media (max-width: 959px) {
  .foot-top { grid-template-areas: "nav social" "contact contact" "app app"; }
  .foot-top > :nth-child(1) { grid-area: nav; }
  .foot-top > :nth-child(2) { grid-area: contact; }
  .foot-top > :nth-child(3) { grid-area: social; }
  .foot-top > :nth-child(4) { grid-area: app; }
}
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { flex: none; width: 40px; height: 40px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(243, 237, 231, .08); color: var(--on-ink); text-decoration: none; font-family: "FABrands"; font-size: 18px; transition: background .2s, color .2s; }
.social a:hover { background: var(--brand); color: var(--white); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
/* logo a tutta larghezza: il viewBox è ritagliato sul disegno, così tocca i margini della colonna */
.foot-mark { display: block; margin-top: clamp(48px, 7vw, 96px); }
/* il logo grande prende il colore primary: l'immagine resta per l'alt e le misure, il colore lo dà la maschera */
.foot-mark { background: var(--brand); -webkit-mask: url("img/logo-wordmark-white-tight.svg") center / 100% 100% no-repeat; mask: url("img/logo-wordmark-white-tight.svg") center / 100% 100% no-repeat; transition: background-color .4s var(--ease-out); }
.foot-mark:hover { background: var(--brand-dark); }
.foot-mark img { display: block; width: 100%; height: auto; opacity: 0; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: baseline; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(243, 237, 231, .12); font-size: 13px; }
.foot-payoff { margin: 0; color: var(--on-ink); font-weight: 600; font-size: 15px; }

/* CTA mobile fissa */
.sticky-cta { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); translate: -50% 140%; z-index: 40; transition: translate .5s var(--ease-spring); }
.sticky-cta.show { translate: -50% 0; }
@media (min-width: 1020px) { .sticky-cta { display: none; } }

/* ---------- comparsa allo scroll (CSS scroll-driven, senza JS) ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(40px); } }
  .cards .card:nth-child(2) { animation-range: entry 8% entry 68%; }
  .cards .card:nth-child(3) { animation-range: entry 16% entry 76%; }

  /* testimonianze su piani diversi: le laterali salgono, la centrale scende piano (translate, non transform) */
  @media (min-width: 860px) {
    .quotes { view-timeline: --quotes block; }
    .quotes figure { animation: reveal linear both, q-up linear both; animation-timeline: view(), --quotes; animation-range: entry 0% entry 60%, cover 0% cover 100%; }
    .quotes figure:nth-child(2) { animation-name: reveal, q-down; }
    @keyframes q-up   { from { translate: 0 90px; }  to { translate: 0 -90px; } }
    @keyframes q-down { from { translate: 0 -30px; } to { translate: 0 110px; } }
  }

  .passing { view-timeline: --pass block; }
  .passing .a { animation: pass-a linear both; animation-timeline: --pass; animation-range: cover 10% cover 55%; }
  .passing .b { animation: pass-b linear both; animation-timeline: --pass; animation-range: cover 10% cover 55%; }
  .passing .spark { animation: spark linear both; animation-timeline: --pass; animation-range: cover 40% cover 60%; }
  @keyframes pass-a { from { left: 0; } }
  @keyframes pass-b { from { left: calc(100% - 14px); } }
  @keyframes spark { 0% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }

  .stage-wrap { view-timeline: --bench block; }
  .stage .l-man   { animation: man-in linear both; animation-timeline: --bench; animation-range: entry 30% cover 50%; }
  .stage .l-woman { animation: woman-in linear both; animation-timeline: --bench; animation-range: entry 30% cover 50%; }
  .stage .l-heart { animation: pop linear both; animation-timeline: --bench; animation-range: cover 44% cover 52%; }
  .pop-heart      { animation: big-heart linear both; animation-timeline: --bench; animation-range: cover 48% cover 60%; }
  .stage-phone    { animation: phone-up linear both; animation-timeline: --bench; animation-range: cover 50% cover 66%; }
  @keyframes man-in   { from { transform: translateX(-62%); } }
  @keyframes woman-in { from { transform: translateX(78%); } }
  @keyframes pop      { from { transform: scale(0); opacity: 0; } }
  @keyframes big-heart { 0% { transform: scale(0) translateY(30%); opacity: 0; } 60% { transform: scale(1.25) translateY(-10%); opacity: 1; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
  @keyframes phone-up { from { transform: translateY(70%); opacity: 0; } }
}

/* ---------- effetti spenti / movimento ridotto ---------- */
.fx-off *, .fx-off *::before, .fx-off *::after { animation: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ======================================================================
   STRUMENTI DEL CONCEPT (non fanno parte del sito)
   ====================================================================== */
.cm {
  position: absolute; z-index: 30; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--white);
  background: #6A3DE8; color: var(--white); font: 700 14px/1 var(--font); display: none; place-items: center;
  box-shadow: 0 4px 14px rgba(106, 61, 232, .5);
}
.notes-on .cm { display: grid; animation: cm-pulse 2s ease-in-out infinite; }
@keyframes cm-pulse { 50% { box-shadow: 0 0 0 8px rgba(106, 61, 232, .18); } }
.rel { position: relative; }

.concept-bar {
  position: fixed; z-index: 60; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(28, 23, 20, .92); color: var(--white);
  font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); backdrop-filter: blur(8px);
}
.concept-bar button, .concept-bar a { border: 0; background: none; color: inherit; padding: 9px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.concept-bar button[aria-pressed="true"] { background: #6A3DE8; }
.concept-bar .tag { padding: 9px 12px 9px 14px; color: #B9A5FF; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; display: none; }
@media (min-width: 700px) { .concept-bar .tag { display: block; } }
@media (max-width: 1019px) { .concept-bar { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

.drawer {
  position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--white);
  box-shadow: -20px 0 60px rgba(28, 23, 20, .25); transform: translateX(105%); transition: transform .5s var(--ease-out);
  display: flex; flex-direction: column; font-size: 15px;
}
.drawer.open { transform: none; }
.drawer header { padding: 22px 24px; border-bottom: 1px solid var(--sand-3); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer header h2 { font-size: 18px; }
.drawer header button { border: 0; background: var(--sand); width: 36px; height: 36px; border-radius: 50%; font-size: 18px; }
.drawer ol { list-style: none; margin: 0; padding: 12px 16px 40px; overflow-y: auto; display: grid; gap: 4px; }
.drawer li { padding: 14px 12px; border-radius: 14px; display: grid; grid-template-columns: 30px 1fr; gap: 4px 12px; }
.drawer li.active { background: #F1ECFF; }
.drawer li > b:first-child { grid-row: span 3; width: 30px; height: 30px; border-radius: 50%; background: #6A3DE8; color: #fff; display: grid; place-items: center; font-size: 13px; }
.drawer li h3 { font-size: 16px; }
.drawer li p { color: var(--text-muted); }
.drawer li .wf { font-size: 12.5px; color: #6A3DE8; font-weight: 600; }
.drawer li a { font-weight: 700; color: #6A3DE8; font-size: 13px; text-decoration: none; }

/* ======================================================================
   COMPONENTI CONDIVISI DELLE PAGINE INTERNE
   ====================================================================== */
.ico-crown    { --i: url("icons/crown-solid.svg"); }
/* icone dei piani, come nell'App (PlanBadges): Base dado, Premium stella, Business corona; sempre piene */
.ico-plan-base    { --i: url("icons/dice-d6-solid.svg"); }
.ico-plan-premium { --i: url("icons/star-christmas-solid.svg"); }
.ico-star     { --i: url("icons/star-christmas-regular.svg"); }
.ico-clock    { --i: url("icons/clock-regular.svg"); }
.ico-chevron  { --i: url("icons/chevron-right-regular.svg"); }
.ico-flag     { --i: url("icons/flag-regular.svg"); }
.ico-globe    { --i: url("icons/globe-regular.svg"); }
.ico-hands    { --i: url("icons/handshake-simple-regular.svg"); }
.ico-signal   { --i: url("icons/signal-stream-solid.svg"); }
.ico-cal-plus { --i: url("icons/calendar-plus-solid.svg"); }
.ico-cal-time { --i: url("icons/calendar-clock-solid.svg"); }
.ico-cal-star { --i: url("icons/calendar-star-solid.svg"); }
.ico-shield-o { --i: url("icons/shield-regular.svg"); }
.ico-book-open{ --i: url("icons/book-open-regular.svg"); }
.ico-sparkles { --i: url("icons/sparkles-regular.svg"); }
.ico-filter   { --i: url("icons/filter-regular.svg"); }
.ico-at       { --i: url("icons/solid-phone-at.svg"); }
.ico-card     { --i: url("icons/address-card-solid.svg"); }
.ico-user-ok  { --i: url("icons/user-check-solid.svg"); }
.ico-user     { --i: url("icons/user-solid.svg"); }
.ico-smile    { --i: url("icons/face-smile-hearts-regular.svg"); }
.ico-swap     { --i: url("icons/arrow-right-arrow-left-regular.svg"); }

/* burger e menu mobile */
.burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .3s var(--ease-out), background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 66px 0 0; z-index: 45; background: var(--sand); padding: 24px var(--gutter) 40px; display: grid; align-content: start; gap: 28px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mobile-menu a:not(.btn) { display: block; padding: 12px 0; font-family: var(--font-display); font-size: 34px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--sand-3); }
.mobile-menu a[aria-current] { color: var(--brand-dark); }
.mobile-menu .btn { justify-self: start; }
.menu-open { overflow: hidden; }
@media (min-width: 1020px) { .mobile-menu { display: none !important; } }

/* apertura delle pagine interne */
.page-hero { padding-block: 32px 80px; position: relative; isolation: isolate; }
.page-hero .grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .page-hero .grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.page-hero .copy { display: grid; gap: 24px; justify-items: start; }
.display-2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 7vw, 92px); line-height: .94; letter-spacing: -.01em; }
.page-hero .display-2 .line { display: block; overflow: clip; padding-bottom: .06em; }
.page-hero .display-2 .line > span { display: inline-block; animation: rise 1s var(--ease-out) both; }
.page-hero .display-2 .line:nth-child(2) > span { animation-delay: .1s; }
.page-hero .display-2 .line:nth-child(3) > span { animation-delay: .2s; }
.page-hero .copy .lead { animation: fade-up .9s .3s var(--ease-out) both; }
.page-hero .visual { position: relative; animation: fade-up 1s .2s var(--ease-out) both; }

/* griglie */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* fasce colorate a tutta larghezza, con angoli morbidi */
.band { border-radius: 40px; margin-inline: max(8px, env(safe-area-inset-left, 0px)); }
.band-pink { background: var(--brand-soft); }
.band-ink { background: var(--nav-bg); color: var(--on-ink-muted); }
.band-ink h2, .band-ink h3 { color: var(--white); }
.band-ink .lead { color: var(--on-ink-muted); }
.band-sand { background: var(--sand-2); }

/* intestazione allineata a sinistra */
.section-head.left { justify-items: start; text-align: left; }
.section-head.left .lead { margin-inline: 0; }

/* etichetta a pillola */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--brand-soft); color: var(--brand-dark); }
.pill-gold { background: rgba(231, 184, 75, .16); color: #9A7420; }
.band-ink .pill-gold { color: var(--moment); }

/* passaggi numerati */
.step { background: var(--white); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; position: relative; }
.step .n { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--brand); }
.step p { color: var(--text-muted); font-size: 17px; }
.section-white .step { background: var(--sand); }

/* box conclusivo con collegamenti */
.box-end { border-radius: var(--radius); background: var(--white); padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.box-end h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; }
.box-end p { color: var(--text-muted); margin-top: 8px; }
.box-end .links { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); box-shadow: none; }

/* foto segnaposto (in attesa delle foto vere) */
.photo-ph { position: relative; border-radius: var(--radius); background: repeating-linear-gradient(135deg, var(--sand-2) 0 14px, var(--sand-3) 14px 15px); display: grid; place-items: center; text-align: center; padding: 24px; color: var(--text-muted); font-size: 14px; font-weight: 600; min-height: 220px; }
.photo-ph .ico { font-size: 28px; margin-bottom: 8px; color: var(--brand-dark); }
.cb-pages { position: relative; }
.cb-pages summary { list-style: none; cursor: pointer; padding: 9px 14px; border-radius: 999px; }
.cb-pages summary::-webkit-details-marker { display: none; }
.cb-pages summary::after { content: " ▴"; font-size: 10px; }
.cb-pages ul { position: absolute; bottom: calc(100% + 10px); left: 0; margin: 0; padding: 8px; list-style: none; background: rgba(28, 23, 20, .96); border-radius: 16px; min-width: 200px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.cb-pages li a { transition: background-color .25s; display: block; padding: 8px 12px; border-radius: 10px; }
.cb-pages li a:hover { background: rgba(255,255,255,.1); }

/* selettore v1 | v2 nella barra del concept: porta alla stessa pagina nell'altra versione */
.concept-bar .cb-ver { display: flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.1); }
.concept-bar .cb-ver a { padding: 6px 12px; font-weight: 700; font-size: 13px; transition: background-color .25s, color .25s; color: #B9A5FF; }
.concept-bar .cb-ver a:hover { color: #fff; }
.concept-bar .cb-ver a[aria-current] { background: #6A3DE8; color: #fff; pointer-events: none; }

/* link per chi naviga con la tastiera: compare solo quando riceve il focus */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
