/* Dialy — sito (direzione «Banco»). Colori e caratteri del marchio: DESIGN.md dell'app. */

@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/inter-tight-600.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/geist-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/geist-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'Zalando Sans Expanded'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/zalando-sans-expanded-700.woff2') format('woff2'); }

:root {
  --nero: #000;
  --inchiostro: #111214;
  --g1: #474B54;
  --g2: #6B6F78;
  --g3: #A2A6AE;
  --filo: #C9CCD2;
  --filo-chiaro: #DDE0E4;
  --acciaio: #F2F3F5;
  --smalto: #fff;
  --arancio: #FF4D12;
  --arancio-testo: #CE3609;
  --arancio-chiaro: #FF8A5C;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tight: 'Inter Tight', Inter, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --big: 'Zalando Sans Expanded', 'Arial Black', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--acciaio); color: var(--nero); font: 400 16px/1.5 var(--sans); padding: 24px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--nero); }
a:hover { color: var(--arancio-testo); }
:focus-visible { outline: 3px solid var(--arancio); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.big { font-family: var(--big); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: #000; color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { top: 8px; color: #fff; }

.wrap { max-width: 1360px; margin: 0 auto; border: 1px solid var(--filo); background: var(--acciaio); }

/* Testata a celle */
/* una riga sola a ogni larghezza: le voci si stringono; sotto i 1080 px restano logo, lingua e beta */
.top { display: flex; border-bottom: 1px solid var(--filo); font: 400 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.top > * { flex: none; padding: 18px 20px; border-right: 1px solid var(--filo); color: var(--g1); text-decoration: none; display: flex; flex-direction: column; gap: 4px; justify-content: center; white-space: nowrap; }
.top > .nav, .top > .grow { flex: 1 1 0; min-width: 0; padding-left: 16px; padding-right: 16px; }
.top > .fill { display: none; flex: 1 1 auto; padding: 0; }
.top > :last-child { border-right: 0; }
.top .n { color: var(--g2); }
.top .logo { background: var(--smalto); flex-direction: row; align-items: center; }
.top .logo svg { width: 58px; height: 27px; }
.top .cta { background: #000; color: #fff; }
.top .cta .n { color: var(--g3); }
.top .cta:hover { color: #fff; background: var(--inchiostro); }
.top a.nav:hover { background: var(--smalto); color: #000; }
.top .lang a { color: var(--g1); }
.top .lang [aria-current] { color: #000; text-decoration: none; font-weight: 500; }

/* Apertura */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); border-bottom: 1px solid var(--filo); }
.hero-txt { padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; gap: 32px; justify-content: space-between; border-right: 1px solid var(--filo); min-height: 640px; }
.kicker { font: 400 12px/1.4 var(--mono); letter-spacing: .12em; color: var(--g1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hero h1 { margin: 0; font: 600 clamp(48px, 6.2vw, 96px)/.95 var(--tight); letter-spacing: -0.045em; text-wrap: balance; }
.lead { margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--g1); max-width: 30em; }
.stack { display: flex; flex-direction: column; gap: 28px; }

/* Modulo dell'invito */
.invite { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.invite .lbl { margin: 0; font: 400 12px/1.4 var(--mono); letter-spacing: .1em; color: var(--g1); }
.invite form { display: flex; flex-wrap: wrap; margin: 0; }
.invite input[type=email] { flex: 1 1 240px; min-width: 0; height: 60px; padding: 0 18px; border: 1px solid #000; border-radius: 0; background: #fff; color: #000; font: 500 17px var(--sans); outline-offset: -3px; appearance: none; }
.invite input::placeholder { color: var(--g2); }
.invite button { flex: 0 0 auto; height: 60px; padding: 0 24px; border: 1px solid #000; border-radius: 0; background: #000; color: #fff; font: 600 17px var(--sans); cursor: pointer; }
.invite button:hover { background: var(--inchiostro); }
.invite button[disabled] { opacity: .6; cursor: progress; }
.invite .note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--g2); }
.invite .note a { color: var(--g1); }
.invite .esito { margin: 0; font-size: 15px; line-height: 1.5; min-height: 0; }
.invite .esito:empty { display: none; }
.invite .esito.ok { color: #000; font-weight: 500; }
.invite .esito.ok::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--arancio); margin-right: 10px; vertical-align: 2px; }
.invite .esito.err { color: var(--arancio-testo); }
.invite .trappola { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* iPhone | Android: un link dritto al negozio (pieno) o un pulsante che apre la lista d'attesa (aperto = quadretto arancio).
   Prima dell'uscita sono due pulsanti: quello aperto diventa pieno. */
.invite .opts { display: flex; min-width: 0; }
.invite .opts .opt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; height: 72px; padding: 0 18px; border: 1px solid #000; border-radius: 0; background: #fff; color: #000; font: 600 19px/1.1 var(--sans); text-align: left; text-decoration: none; cursor: pointer; }
.invite .opts .opt + .opt { border-left: 0; }
.invite .opts .opt small { font: 400 11px/1.2 var(--mono); letter-spacing: .1em; color: var(--g2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.invite .opts .opt:hover { background: var(--acciaio); color: #000; }
.invite .opts a.opt { background: #000; color: #fff; }
.invite .opts a.opt small { color: var(--g3); }
.invite .opts a.opt:hover { background: var(--inchiostro); color: #fff; }
.invite .opts button.opt:first-child[aria-expanded=true], .invite .opts button.opt:first-child ~ button.opt[aria-expanded=true] { background: #000; color: #fff; }
.invite.dark .opts button.opt:first-child[aria-expanded=true], .invite.dark .opts button.opt:first-child ~ button.opt[aria-expanded=true] { background: #fff; color: #000; }
.invite .opts button.opt:first-child[aria-expanded=true] small, .invite .opts button.opt:first-child ~ button.opt[aria-expanded=true] small { color: var(--g3); }
.invite.dark .opts button.opt:first-child[aria-expanded=true] small, .invite.dark .opts button.opt:first-child ~ button.opt[aria-expanded=true] small { color: var(--g2); }
.invite .opts .opt[aria-expanded=true] span::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--arancio); vertical-align: 3px; }
.invite .opts .opt:focus-visible { outline: 3px solid var(--arancio); outline-offset: -5px; }
.invite [hidden] { display: none !important; }
.invite.dark .opts .opt { border-color: #fff; background: #000; color: #fff; }
.invite.dark .opts .opt small { color: var(--g3); }
.invite.dark .opts .opt:hover { background: var(--inchiostro); }
.invite.dark .opts a.opt { background: #fff; color: #000; }
.invite.dark .opts a.opt small { color: var(--g2); }
.invite.dark .opts a.opt:hover { background: var(--acciaio); color: #000; }
.invite .hint { margin: 0; font-size: 14px; line-height: 1.5; color: var(--g1); }
.invite.dark .hint { color: var(--g3); }
.invite .extra { margin: 4px 0 0; font: 400 12px/1.5 var(--mono); color: var(--g2); letter-spacing: .06em; }
.invite .extra a { color: #000; }
.invite.dark .lbl { color: var(--g3); }
.invite.dark input[type=email] { border-color: #fff; background: #000; color: #fff; }
.invite.dark input::placeholder { color: var(--g3); }
.invite.dark button { border-color: #fff; background: #fff; color: #000; }
.invite.dark button:hover { background: var(--acciaio); }
.invite.dark .esito.ok { color: #fff; }
.invite.dark .esito.err { color: var(--arancio-chiaro); }

/* Fig. 1: le schermate */
.fig1 { margin: 0; position: relative; background: #fff; min-height: 760px; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; }
.grid100 { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(10, minmax(0, 1fr)); }
.grid100 i { border-right: 1px solid var(--acciaio); border-bottom: 1px solid var(--acciaio); }
.phones { position: relative; width: min(270px, 52%); margin: 80px 0 80px 28%; }
.phone { overflow: hidden; background: #fff; }
.phone img { width: 100%; }
.phoneB { position: absolute; right: 64%; top: 9%; width: 86%; border: 9px solid var(--inchiostro); border-radius: 46px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.phoneA { position: relative; z-index: 1; border: 10px solid #000; border-radius: 52px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); }
.call { position: absolute; z-index: 2; height: 0; border-top: 1px solid #000; transform-origin: 0 0; }
.call::before { content: ''; position: absolute; left: -4px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: #000; }
.call span { position: absolute; left: 100%; top: -9px; padding-left: 10px; width: 150px; font: 400 11.5px/1.4 var(--mono); letter-spacing: .06em; color: #000; }
/* didascalie sul Profilo (davanti): quadrante personale, i tre numeri, il giorno di oggi nel diario, la griglia del mese */
.call.ca { top: 18%; left: 59%; width: calc(41% + 36px); }
.call.cb { top: 39.4%; left: 83%; width: calc(17% + 36px); }
.call.cc { top: 64%; left: 37%; width: calc(63% + 36px); }
.call.cd { top: 85.4%; left: 92%; width: calc(8% + 36px); }
.call.cc::before { left: -5px; top: -5px; width: 9px; height: 9px; background: var(--arancio); }
.call.cc span { color: var(--arancio-testo); }
.fig1 figcaption, .fig1 .foot-l, .fig1 .foot-r { position: absolute; font: 400 12px/1.4 var(--mono); color: var(--g1); letter-spacing: .06em; }
.fig1 figcaption { left: 20px; right: 20px; top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fig1 .foot-l { left: 20px; bottom: 18px; display: flex; align-items: center; gap: 10px; }
.fig1 .foot-r { right: 20px; bottom: 18px; }
.sq { width: 8px; height: 8px; background: var(--arancio); display: block; }

/* Scheda tecnica */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); border-bottom: 1px solid var(--filo); }
.specs-h { padding: 40px clamp(24px, 4vw, 48px); border-right: 1px solid var(--filo); display: flex; flex-direction: column; gap: 12px; }
.label { font: 400 12px/1.4 var(--mono); color: var(--g2); letter-spacing: .1em; text-transform: uppercase; }
h2 { margin: 0; font-family: var(--tight); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
.specs-h h2 { font-size: 32px; line-height: 1.05; letter-spacing: -0.03em; }
.specs dl { margin: 0; grid-column: span 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); font: 400 14px/1.4 var(--mono); }
.specs dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--filo-chiaro); border-right: 1px solid var(--filo-chiaro); }
.specs dt { color: var(--g2); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.specs dd { margin: 0; text-align: right; }

/* Sezioni */
.sec { border-bottom: 1px solid var(--filo); }
.pad { padding: clamp(28px, 4.5vw, 56px); }
.white { background: #fff; }
.col { display: flex; flex-direction: column; gap: 16px; }
.h2l { font-size: clamp(30px, 3vw, 44px); }
.h2xl { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.04em; line-height: 1.02; max-width: 14em; }
.body { margin: 0; font-size: 17px; line-height: 1.55; color: var(--g1); max-width: 26em; }

/* Fig. 2: righello */
.day { display: flex; flex-direction: column; gap: 36px; }
.day-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.count { display: flex; flex-direction: column; align-items: end; gap: 4px; }
.count .big { font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ruler { position: relative; padding-top: 34px; }
.ticks { display: flex; justify-content: space-between; align-items: end; height: 56px; }
.ticks i { display: block; width: 1px; height: 18px; background: #000; transform-origin: 50% 100%; }
.ticks i.h { height: 36px; }
.ticks i.m { width: 2px; height: 56px; }
.ticks i.past { background: var(--filo); }
.cur { position: absolute; top: 0; bottom: 0; left: 0; width: 0; transition: left 1s linear; }
.cur b { position: absolute; top: 0; left: 0; transform: translateX(-50%); background: var(--arancio); color: #000; font: 500 12px/1 var(--mono); padding: 5px 8px; white-space: nowrap; }
.cur i { position: absolute; top: 24px; bottom: 0; left: -1.5px; width: 3px; background: var(--arancio); }
.hours { display: flex; justify-content: space-between; margin-top: 12px; font: 400 12px/1 var(--mono); color: var(--g2); }

/* Fig. 3: il diario, come nell'app (DiaryCalendar) */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.split > .col { border-right: 1px solid var(--filo); }
.diary-wrap { grid-column: span 2; padding: clamp(24px, 3.5vw, 48px); display: flex; align-items: center; min-width: 0; container-type: inline-size; }
/* calendario e giorni al polso affiancati; sotto i 620 px uno sopra l'altro */
.diary { width: 100%; max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 392px) minmax(0, 1fr); gap: clamp(32px, 6cqi, 72px); align-items: start; }
.dm-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dm-t { font: 600 22px/1.2 var(--tight); letter-spacing: -0.01em; }
.dm-n { font: 400 12px/1.3 var(--mono); color: var(--g2); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.dm-l { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 12px; font: 500 11px/1 var(--sans); color: var(--g2); text-align: center; }
.dm-l i { font-style: normal; }
.dm-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.c { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; font: 500 12px/1 var(--sans); color: var(--g2); transition: opacity .25s; }
.c.x { background: var(--acciaio); }
.c.f { color: var(--g3); }
.c.s { cursor: pointer; }
.c.s img { position: absolute; inset: 0; width: 100%; height: 100%; }
.c.s::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.07); }
.c.s b { position: absolute; left: 4px; top: 4px; z-index: 1; min-width: 18px; padding: 1px 4px; border-radius: 7px; background: rgba(0,0,0,.42); color: #fff; font: 700 11px/14px var(--sans); text-align: center; }
.c.t { background: var(--acciaio); color: var(--arancio-testo); }
.c.t svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.c.t b { position: relative; font: 700 12px/1 var(--sans); }
.c.t .arc { stroke-dasharray: 0 252; transition: stroke-dasharray .9s cubic-bezier(.215,.61,.355,1), stroke-dashoffset .9s cubic-bezier(.215,.61,.355,1); }
/* giorni al polso: una tacca per giorno, il primo in arancio come nelle Statistiche dell'app */
.dm-sum { display: flex; flex-direction: column; }
.dm-sum .label { min-height: 26px; padding-bottom: 6px; display: flex; align-items: flex-end; }
.dm-sum .r { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm n" "tk n"; column-gap: 20px; row-gap: 10px; padding: 14px 0; border-top: 1px solid var(--filo-chiaro); cursor: pointer; transition: opacity .25s; }
.dm-sum .nm { grid-area: nm; font-size: 15px; line-height: 1.2; }
.dm-sum .tk { grid-area: tk; display: flex; flex-wrap: wrap; gap: 4px; }
.dm-sum .tk i { width: 3px; height: 16px; background: var(--inchiostro); }
.dm-sum .r:first-of-type .tk i { background: var(--arancio); }
.dm-sum .n { grid-area: n; align-self: end; font: 600 40px/.8 var(--tight); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.diary.hl .c.s:not(.lit), .diary.hl .c.x, .diary.hl .c.t { opacity: .22; }
.diary.hl .r:not(.lit) { opacity: .4; }
@container (max-width: 620px) {
  .diary { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .dm-sum .r { padding: 10px 0; row-gap: 8px; }
  .dm-sum .n { font-size: 30px; }
  .dm-sum .tk i { height: 12px; }
}

/* Fig. 4: community */
.feed-wrap { padding: clamp(20px, 3vw, 36px); border-right: 1px solid var(--filo); display: flex; align-items: center; min-width: 0; }
.feed { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.feed figure { margin: 0; position: relative; aspect-ratio: 1; overflow: hidden; background: #000; }
.feed img { width: 100%; height: 100%; object-fit: cover; }
.feed figcaption { position: absolute; left: 0; bottom: 0; background: #000; color: #fff; font: 400 10.5px/1.3 var(--mono); padding: 3px 6px; letter-spacing: .04em; }
.facts { margin: 0; display: flex; flex-direction: column; }
.facts > div { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px 24px; border-bottom: 1px solid var(--filo-chiaro); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font: 400 11.5px/1.3 var(--mono); color: var(--g2); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.45; }

/* Fig. 5 e 6 */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.pair > :first-child { border-right: 1px solid var(--filo); }
.scale { position: relative; margin-top: 28px; height: 110px; }
.scale .ticks { position: absolute; left: 0; right: 0; bottom: 26px; height: 44px; }
.scale .ticks i { height: 12px; background: var(--g3); }
.scale .ticks i.f { height: 28px; background: #000; }
.scale .ticks i.z { height: 44px; width: 2px; background: #000; }
.scale .ticks i.q { width: 2px; }
.needle { position: absolute; bottom: 26px; left: 56%; width: 0; height: 84px; animation: slide 8s cubic-bezier(.45,.05,.3,1) infinite; }
.needle::before { content: ''; position: absolute; left: -1.5px; bottom: 0; width: 3px; height: 100%; background: var(--arancio); }
.needle::after { content: ''; position: absolute; left: -7px; top: -8px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 10px solid var(--arancio); }
.scale-n { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font: 400 12px/1 var(--mono); color: var(--g2); }
.shops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 28px; align-items: center; }
.listing { margin: 0; position: relative; aspect-ratio: 3/4; overflow: hidden; border: 1px solid #000; background: #fff; }
.listing img { width: 100%; height: 100%; object-fit: cover; }
.listing .price { position: absolute; top: 0; right: 0; background: #fff; font-size: 20px; padding: 10px 14px; border-left: 1px solid #000; border-bottom: 1px solid #000; letter-spacing: -0.02em; }
.listing figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: #000; color: #fff; font: 400 11px/1.3 var(--mono); padding: 8px 12px; letter-spacing: .06em; display: flex; justify-content: space-between; gap: 8px; }
.listing figcaption span + span { color: var(--arancio-chiaro); }

/* Regole */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); border-bottom: 1px solid var(--filo); }
.rules > div { padding: 36px clamp(24px, 3vw, 40px); border-right: 1px solid var(--filo); display: flex; flex-direction: column; gap: 14px; }
.rules h3 { margin: 0; font: 600 22px/1.15 var(--tight); letter-spacing: -0.02em; }
.rules p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--g1); }

/* Chiusura */
.close { background: #000; color: #fff; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.close > div { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; gap: 28px; }
.close > div:first-child { border-right: 1px solid #2A2C31; }
.close > div:last-child { justify-content: end; gap: 0; }
.close .label { color: var(--g3); }
.close h2 { font-size: clamp(48px, 6vw, 92px); line-height: .95; letter-spacing: -0.045em; max-width: 9em; }
.close p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--g3); max-width: 26em; }
.close .invite { padding-bottom: 28px; max-width: none; }
.row { color: #fff; padding: 22px 0; border-top: 1px solid #2A2C31; display: flex; justify-content: space-between; align-items: center; font-size: 22px; font-weight: 600; text-decoration: none; }
.row:last-child { border-bottom: 1px solid #2A2C31; }
.row span + span { font: 400 13px/1 var(--mono); color: var(--g3); }
a.row:hover { color: var(--arancio-chiaro); }
.row.off { color: var(--g2); }
.row.off span + span { color: var(--g2); }

/* Piede */
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); font: 400 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.foot > * { padding: 18px 20px; border-right: 1px solid var(--filo); color: var(--g1); text-decoration: none; }
.foot > :last-child { border-right: 0; text-transform: none; }

/* Pagine di testo (privacy, termini, supporto, crediti, account) */
.doc { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); border-bottom: 1px solid var(--filo); }
.doc-side { padding: clamp(28px, 4vw, 48px); border-right: 1px solid var(--filo); display: flex; flex-direction: column; gap: 16px; }
.doc-side h1 { margin: 0; font: 600 clamp(36px, 4vw, 56px)/1 var(--tight); letter-spacing: -0.04em; }
.doc-side .meta { font: 400 12px/1.6 var(--mono); color: var(--g2); letter-spacing: .06em; }
.toc { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; line-height: 1.4; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 24px; }
.toc a { color: var(--g1); text-decoration: none; }
.toc a:hover { color: #000; text-decoration: underline; }
.doc-main { background: #fff; padding: clamp(28px, 4vw, 56px); min-width: 0; }
.doc-main > * { max-width: 42em; }
.doc-main section { padding: 28px 0; border-top: 1px solid var(--filo-chiaro); }
.doc-main section:first-child { border-top: 0; padding-top: 0; }
.doc-main h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px; scroll-margin-top: 24px; }
.doc-main p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: #1d1f23; }
.doc-main p:last-child { margin-bottom: 0; }
.doc-main .hl { background: var(--acciaio); border-left: 3px solid #000; padding: 22px 24px; }
.doc-main .hl.site { border-left-color: var(--arancio); }
.faq { margin: 0; }
.faq dt { font: 600 18px/1.3 var(--tight); letter-spacing: -0.01em; margin: 0 0 8px; }
.faq dd { margin: 0 0 28px; font-size: 16px; line-height: 1.65; color: #1d1f23; }
.mail { display: inline-block; font: 600 clamp(22px, 2.4vw, 32px)/1.2 var(--tight); letter-spacing: -0.02em; text-decoration: none; border-bottom: 2px solid var(--arancio); }
.credits { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.credits th { text-align: left; font: 400 11.5px/1.3 var(--mono); color: var(--g2); letter-spacing: .08em; text-transform: uppercase; padding: 0 12px 10px 0; border-bottom: 1px solid #000; }
.credits td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--filo-chiaro); vertical-align: top; overflow-wrap: anywhere; }

/* Pagine dell'account */
.acc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); border-bottom: 1px solid var(--filo); min-height: 560px; }
.acc > div { padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.acc > div:first-child { border-right: 1px solid var(--filo); }
.acc > div:last-child { background: #fff; }
.acc h1 { margin: 0; font: 600 clamp(40px, 5vw, 72px)/.98 var(--tight); letter-spacing: -0.045em; }
.acc p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--g1); max-width: 26em; }
.acc [hidden] { display: none !important; }
[data-page=invite] .acc [data-lang] { display: flex; flex-direction: column; gap: 18px; }
.acc .invite { margin-top: 6px; }
.acc .app-link { font-size: 15px; }
.acc .app-link a { color: var(--g1); }
.pw { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.pw label { font: 400 12px/1.4 var(--mono); letter-spacing: .1em; color: var(--g1); text-transform: uppercase; }
.pw input { height: 58px; padding: 0 16px; border: 1px solid #000; border-radius: 0; font: 500 17px var(--sans); background: #fff; }
.pw button { height: 58px; border: 1px solid #000; border-radius: 0; background: #000; color: #fff; font: 600 17px var(--sans); cursor: pointer; }
.pw button[disabled] { opacity: .6; cursor: progress; }
.pw .show { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--g1); }
.pw .show input { height: 18px; width: 18px; accent-color: #000; }
.pw .err { color: var(--arancio-testo); font-size: 15px; margin: 0; }
.pw .err:empty { display: none; }
.stamp { width: 96px; height: 96px; }

/* Animazioni */
@keyframes phoneIn { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes phoneBIn { from { opacity: 0; transform: translate(40px, 40px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lbl { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes dotp { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,18,.6); } 60% { box-shadow: 0 0 0 9px rgba(255,77,18,0); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes scan { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slide { 0% { left: 12%; } 18% { left: 78%; } 34% { left: 30%; } 50% { left: 62%; } 64% { left: 52%; } 78%, 94% { left: 56%; } 100% { left: 12%; } }
@keyframes tickIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.ln { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .3s; }
.phoneA { animation: phoneIn 1.1s cubic-bezier(.2,.8,.2,1) .2s both; }
.phoneB { animation: phoneBIn 1.2s cubic-bezier(.2,.8,.2,1) .5s both; }
.phones { animation: floaty 6s ease-in-out 2s infinite; }
.call { animation: line .7s cubic-bezier(.6,0,.2,1) both; }
.call span { animation: lbl .5s ease both; animation-delay: inherit; }
.call.ca { animation-delay: .9s; } .call.cb { animation-delay: 1.15s; } .call.cc { animation-delay: 1.4s; } .call.cd { animation-delay: 1.65s; }
.call.cc::before { animation: dotp 1.8s ease-out infinite; }
.blink { animation: blink .3125s steps(1) infinite; }
@keyframes dayIn { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
.diary:not(.on) .c:not([class="c"]) { opacity: 0; }
.diary.on .c { animation: dayIn .45s cubic-bezier(.2,.8,.2,1) backwards; }
.day .ticks i { animation: tickIn .4s cubic-bezier(.2,.8,.2,1) both; }

@supports (animation-timeline: view()) {
  .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  .rvs { animation: scan linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
}

@media (max-width: 1080px) {
  .top > .nav { display: none; }
  .top > .fill { display: block; }
}
@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; }
  .doc-side { border-right: 0; border-bottom: 1px solid var(--filo); }
  .toc { position: static; }
}
@media (max-width: 760px) {
  body { padding: 0; }
  .wrap { border: 0; }
  .top > * { padding-left: 16px; padding-right: 16px; }
  .top > .cta { white-space: normal; }
  .call { display: none; }
  /* il Profilo sporge a sinistra di metà larghezza: il gruppo va spinto a destra perché resti dentro */
  .phones { width: min(210px, 54%); margin: 72px 22px 96px auto; }
  .fig1 .foot-r { display: none; }
  .invite button { flex: 1 1 100%; border-top: 0; }
  .hero-txt { min-height: 0; border-right: 0; border-bottom: 1px solid var(--filo); }
  .fig1 { min-height: 0; }
  .split > .col, .pair > :first-child, .close > div:first-child, .acc > div:first-child, .feed-wrap { border-right: 0; border-bottom: 1px solid var(--filo); }
  .diary-wrap, .specs dl { grid-column: auto; }
  .count { align-items: start; }
  .rules > div { border-right: 0; border-bottom: 1px solid var(--filo); }
  .foot > * { border-right: 0; border-bottom: 1px solid var(--filo); }
}

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

.acc .big { font-size: clamp(96px, 14vw, 200px); letter-spacing: -0.04em; line-height: 1; }
