/* Font ospitati nel sito, così i visitatori non si collegano a server esterni */
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

/* ============ COLORI E FONT: modifica qui per cambiare l'aspetto di tutto il sito ============ */
:root {
  --primary: #e4572e;
  --accent: #e4572e;
  --bg: #ffffff;
  --bg-soft: #f6f5f3;
  --text: #000000;
  --muted: #5f5d5a;
  --radius: 20px;
  --header-h: 95px;
  --gradient: var(--primary);
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
section { padding: 88px 0; }
.soft { background: var(--bg-soft); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.grad { color: var(--primary); }

/* Header */
header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
/* Sfondo della barra solo dopo lo scroll, per lasciare libera la sfumatura in cima alla pagina */
@supports (animation-timeline: scroll()) {
  @keyframes header-bg { to { background: rgba(255, 255, 255, .88); } }
  header { animation: header-bg linear both; animation-timeline: scroll(); animation-range: 0 80px; }
}
.nav { display: flex; align-items: center; justify-content: space-between; max-width: 1920px; margin-inline: auto; padding: 24px 64px; }
.brand { display: flex; align-items: center; gap: 24px; font-family: "Inter", var(--font); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 24px; font-weight: 500; letter-spacing: -.005em; }
.nav-links a { text-decoration: none; color: #000; }
.nav-links a:hover { color: var(--primary); }
.lang { background: #000; color: #fff; border-radius: 12px; padding: 12px 16px; line-height: 1.45; }
.lang b { font-weight: 500; }
.nav-links .lang a { color: #fff; opacity: .65; }
.nav-links .lang a:hover { color: #fff; opacity: 1; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 14px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn small { display: block; font-size: .7rem; font-weight: 500; opacity: .75; line-height: 1.1; }
.btn span { line-height: 1.2; }
.btn svg { width: 24px; height: 24px; fill: currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btn-row { justify-content: center; }

/* Hero */
.hero { overflow: clip; margin-top: calc(-1 * var(--header-h)); padding: var(--header-h) 0 0; background: radial-gradient(900px 420px at 85% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: 1920px; margin-inline: auto; padding-inline: 64px; }
.hero-text { padding: min(4.06vw, 78px) 0 0 calc(min(9.84vw, 189px) - 64px); }
.hero h1 { font-size: clamp(2.25rem, 2.92vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.br-mobile { display: none; }
.hero p.lead { margin-top: 16px; max-width: 623px; font-size: clamp(1.1rem, 1.25vw, 1.5rem); font-weight: 500; line-height: 1.45; letter-spacing: -.005em; color: rgba(0, 0, 0, .55); }
.hero p.soon { margin-right: -4px; font-size: clamp(1.1rem, 1.25vw, 1.5rem); font-weight: 500; line-height: 1.45; letter-spacing: -.005em; color: rgba(0, 0, 0, .55); }
.hero .btn-row { align-items: center; gap: 26px; margin-top: clamp(40px, 4.375vw, 84px); }
.btn.store { justify-content: center; width: 136px; height: 36px; padding: 10px 14px; border-radius: 10.2px; font-weight: 700; font-size: 15.3px; letter-spacing: -.005em; }

/* Card attività: tutte le misure sono in em, così le tre card scalano con il font-size */
.hero-cards { position: relative; aspect-ratio: 896 / 985; container-type: inline-size; }
.confetti { position: absolute; left: 12.39%; top: 53.5%; width: 66.9%; height: auto; }
.acard { position: absolute; text-align: left; width: 34.3em; height: 29.7em; background: #fff; border: .1em solid #e0e0e0; border-radius: 2em; overflow: hidden; box-shadow: 0 .4em .4em rgba(0, 0, 0, .25); }
.acard .cover { height: 17.3em; overflow: hidden; }
.acard .cover img { width: 100%; height: auto; margin-top: -1em; }
.acard .body { display: flex; flex-direction: column; gap: .11em; padding: 1em 1.5em 0; }
.acard .cat { display: block; font-size: 1.2em; font-weight: 600; line-height: 1.4; color: var(--primary); }
.acard h3 { font-size: 1.5em; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.acard p { font-size: 1.2em; line-height: 1.4; color: #808080; }
.acard .dots { position: absolute; left: 1.9em; bottom: 1.4em; display: flex; gap: .5em; }
.acard .dots i { width: 1.2em; height: 1.2em; border-radius: 50%; background: #000; }
.acard .dots i.free { background: none; border: .22em solid var(--primary); }
.acard .who { position: absolute; right: 1.9em; bottom: 1.11em; display: flex; flex-direction: column; align-items: center; }
.acard .who img { width: 3.2em; height: 3.2em; border-radius: 50%; }
.acard .who span { font-size: 1.2em; font-weight: 600; line-height: 1.4; }
/* Stessa posizione e scala del mockup: 100cqw = 896px */
.acard.c1 { left: 16.07%; top: 18.58%; font-size: 1.2277cqw; }
.acard.c3 { left: 33.26%; top: 64.87%; font-size: .6138cqw; }
.acard.c2 { left: 52.46%; top: 44.97%; font-size: .9208cqw; }
.acard.c3 .who { right: 1.8em; }
.acard.c2 .body { gap: .21em; padding-top: .5em; }
.acard.c2 .dots { left: 1.6em; }
.acard.c2 .who { right: 1.2em; bottom: 1em; gap: .1em; }

/* Telefono */
.phone { height: clamp(400px, min(100svh - 340px, (100vw - 104px) / 1.93), 640px); aspect-ratio: 270/560; border-radius: 40px; border: 9px solid #000; background: #000; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .3); flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; background: #fff; }
.hero .phone { margin-inline: auto; transform: rotate(4deg); }

/* Come funziona: --u vale 1/100 di 1920px, così a 1920×1080 le misure coincidono con il mockup */
.how { --u: min(1vw, 19.2px); display: flex; flex-direction: column; justify-content: center; min-height: 100svh; max-width: 1920px; margin-inline: auto; padding: calc(var(--header-h) + 5 * var(--u)) calc(7.45 * var(--u)) calc(4.95 * var(--u)); }
.how h2 { margin: 0; text-align: center; font-size: clamp(2rem, calc(2.708 * var(--u)), 3.25rem); font-weight: 700; line-height: 1.1; }
.how-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: calc(5.72 * var(--u)); margin-top: calc(5.64 * var(--u)); padding: 0; list-style: none; }
.how-step { position: relative; }
.how-step + .how-step::before { content: ""; position: absolute; left: calc(-2.86 * var(--u)); top: 37.3%; width: 1px; height: 49.3%; background: #cac4d0; }
.how-step > h3, .how-step > p { padding-inline: calc(2 * var(--u)) calc(1.86 * var(--u)); letter-spacing: 0; }
.how-step > h3 { margin-top: calc(1.77 * var(--u)); font-size: clamp(.875rem, calc(.792 * var(--u)), .95rem); font-weight: 700; line-height: 1.4; }
.how-num { display: grid; place-items: center; width: 1.5em; height: 1.5em; margin: calc(4.04 * var(--u)) auto 0; border-radius: 50%; background: #000; color: #fff; font-size: clamp(1rem, calc(1.042 * var(--u)), 1.25rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.how-step:last-child .how-num { background: radial-gradient(closest-side, transparent 73.9%, var(--primary) 74.5% 92%, transparent 92.6%); color: #000; }
.how-step > p { display: flex; align-items: center; min-height: 4.2em; margin-top: 6px; font-size: clamp(1rem, calc(.99 * var(--u)), 1.1875rem); font-weight: 500; line-height: 1.4; color: #808080; }

/* Le card occupano tutta la colonna: 100cqw = 34.3em */
.how-card { container-type: inline-size; }
.how-card .acard { position: relative; height: 40.1em; font-size: 2.9155cqw; }
.acard.shot img { position: absolute; top: -.1em; max-width: none; height: auto; }
.acard.esplora img { left: -1.1em; width: 36.3em; }
.acard.organizza img { left: -1em; width: 35.8em; }
.acard.divertiti img { left: -.1em; width: 34.4em; }
.acard.join .cover img { margin-top: -.32em; }
.acard.join .body { display: flex; flex-direction: column; gap: .21em; padding: 1.1em 1.4em 0; }
.acard.join .dots { left: 1.8em; top: 27.5em; bottom: auto; }
.acard.join .who { right: 1.2em; top: 24.3em; bottom: auto; }
.acard.join .note { position: absolute; left: 1.17em; top: 26.1em; width: 25.8em; line-height: 1.667; color: #000; }

/* App: pagina a tutto schermo, l'header copre i primi --header-h pixel */
.app-page { display: flex; flex-direction: column; justify-content: center; min-height: 100svh; padding: calc(var(--header-h) + 48px) 0 0; }
.app-page h2 { font-size: clamp(2rem, 2.708vw, 3.25rem); line-height: 1.1; }
.shots { display: flex; gap: 24px; overflow-x: auto; padding: 40px 16px 48px; scroll-snap-type: x mandatory; justify-content: safe center; }
.shots .phone { scroll-snap-align: center; }

/* FAQ */
#faq, #download { scroll-margin-top: var(--header-h); }
.faq { max-width: 760px; margin: 40px auto 0; }
details { background: var(--bg); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin-top: 10px; }

/* CTA finale */
.cta { background: #000; color: #fff; text-align: center; border-radius: 32px; padding: 64px 24px; }
.cta .lead { color: rgba(255, 255, 255, .85); }
.cta .btn { background: #fff; color: #000; }
.cta .grad { color: var(--primary); }

/* Footer */
footer { padding: 40px 0; color: var(--muted); font-size: .9rem; }
.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Pagine legali */
.legal { padding: 56px 0 88px; max-width: 760px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }

@media (max-width: 1100px) {
  .how { padding: calc(var(--header-h) + 40px) 32px 64px; }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; margin-top: 48px; }
  .how-step + .how-step::before { display: none; }
  .how-step > h3, .how-step > p { padding-inline: 0; }
  .how-num { margin-top: 24px; }
  .how-step > h3 { margin-top: 16px; }
  .how-step > p { display: block; min-height: 0; }
}
@media (max-width: 600px) {
  .how { padding-inline: 16px; }
  .how-steps { grid-template-columns: minmax(0, 340px); justify-content: center; }
}
@media (max-width: 820px) {
  :root { --header-h: 67px; }
  section { padding: 64px 0; }
  .nav { padding: 14px 16px; }
  .brand { gap: 10px; font-size: 1.25rem; }
  .brand img { width: 32px; height: 32px; }
  .nav-links > a { display: none; }
  .lang { padding: 8px 12px; }
  .hero-grid { grid-template-columns: 1fr; padding: 0; text-align: center; }
  .hero-text { padding: 43px 16px 47px; }
  .hero h1 { font-size: 2rem; }
  .br-mobile { display: inline; }
  .hero p.lead { margin: 13px auto 0; max-width: 312px; font-size: 1rem; }
  .btn-row { justify-content: center; }
  .phone { height: min(100svh - 300px, 560px); }
  .hero .btn-row { gap: 6px 13px; margin-top: 34px; }
  .hero p.soon { flex-basis: 100%; margin-right: 0; font-size: 1rem; }
  .btn.store { width: 68px; height: 18px; padding: 0; border-radius: 5.1px; font-size: 7.65px; }
  /* Mockup telefono: 100cqw = 402px, altezza 562px per mostrare tutto il cono dei coriandoli */
  .hero-cards { width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 402 / 562; }
  .acard.c1 { left: 6.965%; top: 0; font-size: 1.5393cqw; }
  .acard.c2 { left: 47.26%; top: 29.18%; font-size: 1.3344cqw; }
  .acard.c3 { left: 19.9%; top: 50%; font-size: 1.0261cqw; }
  .confetti { left: -11.69%; top: 45.55%; width: 95.27%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
