@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/bricolage.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --paper: #f7f5ef;
  --ink: #14201b;
  --muted: #56645c;
  --green: #1f5a43;
  --green-soft: #e4efe8;
  --sun: #f2b632;
  --line: #e2ddd1;
  --card: #ffffff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
.brand span,
.app-name {
  font-family: 'Bricolage', 'Figtree', system-ui, sans-serif;
  letter-spacing: -0.025em;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Barra in alto */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand span {
  font-size: 1.55rem;
  font-weight: 800;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top nav a,
.lang {
  font: 600 0.95rem/1 'Figtree', system-ui, sans-serif;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
}
.top nav a:hover {
  background: var(--green-soft);
}
.lang {
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}

/* Apertura */
.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 40px 0 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
}
h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.02;
  font-weight: 800;
}
h1 em {
  font-style: normal;
  color: var(--green);
}
.lead {
  max-width: 34rem;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 1.15rem;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgb(31 90 67 / 0.55);
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(340px, 66vw);
  aspect-ratio: 1;
}
.halo {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0%, var(--green-soft) 70%);
  border: 1px solid var(--line);
}
.hero-art img {
  position: relative;
  width: 72%;
  height: auto;
  animation: grow 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: 50% 92%;
}
@keyframes grow {
  from {
    opacity: 0;
    transform: scale(0.86) translateY(10px);
  }
}

/* Sezioni */
section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.1;
  font-weight: 800;
}
.what,
.apps {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.cards {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.cards li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sun);
  font: 800 1rem/1 'Bricolage', sans-serif;
  color: var(--ink);
}
.cards h3 {
  margin: 14px 0 6px;
  font-size: 1.25rem;
}
.cards p {
  margin: 0;
  color: var(--muted);
}

.sub {
  margin: 0;
  color: var(--muted);
}
.app-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.app-list li {
  display: flex;
}
.app {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s, box-shadow 0.2s;
}
.app:hover {
  transform: translateY(-2px);
  border-color: #c9d8cf;
  box-shadow: 0 14px 30px -18px rgb(20 32 27 / 0.35);
}
.app img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.app-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.app-name {
  font-size: 1.3rem;
  font-weight: 800;
}
.app-desc {
  color: var(--muted);
}
.app-url {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.arrow {
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--green);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.foot a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}
.foot .tag {
  margin-left: auto;
}

/* Pagine di testo (privacy) */
.doc {
  max-width: 46rem;
  padding: 24px 0 56px;
}
.doc article + article {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.doc h1 {
  font-size: clamp(2.2rem, 6vw, 3rem);
}
.doc h2 {
  margin: 32px 0 6px;
  font-size: 1.35rem;
}
.doc p,
.doc li {
  color: #34423b;
}
.doc ul {
  padding-left: 1.2rem;
}
.doc li + li {
  margin-top: 8px;
}
.doc a {
  color: var(--green);
  font-weight: 600;
  text-underline-offset: 3px;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.5fr 1fr;
    padding: 64px 0 96px;
  }
  h1 {
    font-size: clamp(3rem, 5.6vw, 4.6rem);
  }
  h1 span,
  h1 em {
    white-space: nowrap;
  }
}

@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .app-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .foot .tag {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
