:root {
  --blue: #0c06e3;
  --blue-deep: #0904b8;
  --orange: #ff541e;
  --orange-deep: #d63f10;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --surface: #ffffff;
  --wash: #f6f6f8;
  --navy: #0b0f1a;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(15, 10, 60, 0.12);
  --font-display: "Anek Bangla", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:target,
.section,
.mission,
.story,
.hero {
  scroll-margin-top: 72px;
}

body.home {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}

/* ── Buttons & links ── */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 84, 30, 0.35);
}

.btn--primary:hover {
  background: var(--orange-deep);
}

.btn--white {
  background: #fff;
  color: var(--orange);
}

.btn--white:hover {
  background: #fff7f3;
}

.btn--ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(26, 26, 26, 0.18);
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.btn--ghost-dark:hover {
  border-color: var(--ink);
}

.link-accent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

.link-accent::after {
  content: "→";
  transition: transform 160ms ease;
}

.link-accent:hover::after {
  transform: translateX(3px);
}

.link-accent--on-blue {
  color: #fff;
}

.link-accent--on-blue:hover {
  color: #ffe6dc;
}

/* ── Top bar (pill flottante sul blu) ── */
.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(var(--max), calc(100% - 32px));
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.topbar__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding: 8px 10px 8px 20px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(8, 4, 80, 0.16);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-width: 0;
}

.topbar__brand img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.topbar__brand-text {
  display: grid;
  line-height: 1.15;
}

.topbar__brand-text strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.topbar__brand-text small {
  font-size: 0.68rem;
  font-weight: 500;
  color: #6b6b6b;
  white-space: nowrap;
}

.topbar__nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.topbar__nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: #2a2a2a;
}

.topbar__nav a:hover {
  color: var(--blue);
}

.topbar__cta {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 16px;
  background: #2a3140;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 140ms ease, transform 140ms ease;
}

.topbar__cta:hover {
  background: #1b2029;
  transform: translateY(-1px);
}

.topbar__menu {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--wash);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.topbar__menu span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 39;
  display: grid;
  gap: 4px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0;
  padding: 14px 18px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 36px rgba(8, 4, 80, 0.12);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  text-decoration: none;
  padding: 12px 4px;
  font-weight: 600;
}

@media (min-width: 820px) {
  .topbar__nav {
    display: flex;
  }

  .topbar__cta {
    display: inline-flex;
  }

  .topbar__menu,
  .mobile-nav {
    display: none !important;
  }
}

/* ── Hero ── */
.hero {
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  padding: 100px 0 0;
}

.hero__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) clamp(16px, 4vw, 40px) 0;
  display: grid;
  gap: 28px;
  align-items: end;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: min(860px, 92vh);
    align-items: center;
    padding-bottom: 0;
  }
}

.hero__copy {
  padding-bottom: clamp(24px, 5vw, 72px);
  animation: rise 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__copy h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero__copy > p {
  margin: 0 0 28px;
  max-width: 34ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.hero__actions {
  margin-bottom: 28px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 14px 6px 12px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.store-badge:hover {
  transform: translateY(-1px);
}

.store-badge__icon {
  display: grid;
  place-items: center;
  width: 22px;
}

.store-badge__text {
  display: grid;
  line-height: 1.1;
}

.store-badge__text small {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.store-badge__text strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(520px, 100%);
  animation: rise 900ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__portrait {
  width: 100%;
  height: auto;
  border-radius: 28px 28px 0 0;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 900px) {
  .hero__portrait {
    border-radius: 28px 28px 0 0;
    max-height: 820px;
    object-fit: cover;
  }
}

.bubbles {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(300px, 82%);
  padding: 10px 14px 10px 10px;
  background: #fff;
  color: #111;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  animation: float 5.5s ease-in-out infinite;
}

.bubble__avatar {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.bubble__avatar::before {
  content: attr(data-initial);
}

.bubble__avatar::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='5' fill='%2325D366'/%3E%3Cpath fill='%23fff' d='M12.04 4.5c-4.1 0-7.42 3.28-7.42 7.32 0 1.29.35 2.55 1 3.65L4.5 19.5l4.2-1.08a7.5 7.5 0 0 0 3.34.78c4.1 0 7.42-3.28 7.42-7.32S16.14 4.5 12.04 4.5zm4.32 10.4c-.18.5-1.04.96-1.45 1.02-.37.05-.84.08-1.36-.08-.31-.1-.72-.23-1.24-.45-2.18-.93-3.6-3.1-3.71-3.24-.11-.14-.92-1.22-.92-2.33s.58-1.65.79-1.88c.2-.22.44-.28.59-.28h.43c.14 0 .32-.05.5.38.18.44.62 1.52.68 1.63.06.11.1.24.02.39-.08.14-.12.24-.24.37-.12.12-.25.28-.36.37-.12.1-.24.21-.1.41.14.2.62 1.01 1.33 1.64.91.8 1.68 1.05 1.92 1.17.24.11.38.1.52-.06.14-.16.6-.69.76-.93.16-.24.32-.2.54-.12.22.08 1.4.66 1.64.78.24.12.4.18.46.28.06.1.06.58-.12 1.08z'/%3E%3C/svg%3E")
      center / contain no-repeat;
  box-shadow: 0 0 0 2px #fff;
}

.bubble__body {
  flex: 1;
  min-width: 0;
  padding-right: 4px;
}

.bubble__body strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}

.bubble__body p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.25;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bubble__time {
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.65rem;
  font-weight: 500;
  color: #9a9a9a;
  white-space: nowrap;
}

.bubble--1 {
  top: 10%;
  left: -6%;
  animation-delay: 0s;
}

.bubble--2 {
  top: 26%;
  right: -8%;
  animation-delay: 0.4s;
}

.bubble--3 {
  top: 46%;
  left: -10%;
  animation-delay: 0.8s;
}

.bubble--4 {
  top: 64%;
  right: -4%;
  animation-delay: 1.1s;
}

.bubble--5 {
  bottom: 10%;
  left: 0;
  animation-delay: 1.5s;
}

@media (max-width: 720px) {
  .bubble--4,
  .bubble--5 {
    display: none;
  }

  .bubble {
    width: min(240px, 82%);
    padding: 8px 12px 8px 8px;
    gap: 8px;
  }

  .bubble__avatar {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  .bubble__avatar::after {
    width: 14px;
    height: 14px;
  }

  .bubble__body strong {
    font-size: 0.75rem;
  }

  .bubble__body p {
    font-size: 0.7rem;
  }
}

/* ── Sections ── */
.section {
  padding: clamp(64px, 10vh, 110px) clamp(16px, 4vw, 40px);
}

.section__intro {
  width: min(720px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.section__intro h2,
.faq h2,
.feature__text h2,
.story__copy h2,
.mission__copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section__intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section__intro p {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--muted);
}

/* Moments gallery */
.moments__grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

@media (min-width: 800px) {
  .moments__grid {
    grid-template-columns: 1.1fr 1.1fr 0.9fr;
    gap: 20px;
    align-items: stretch;
  }
}

.moments__grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--wash);
}

.moments__grid img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 700ms ease;
}

.moments__grid figure:hover img {
  transform: scale(1.03);
}

/* Features */
.features {
  display: grid;
  gap: clamp(48px, 8vh, 96px);
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

.feature {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 880px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .feature--reverse .feature__text {
    order: 2;
  }

  .feature--reverse .feature__media {
    order: 1;
  }
}

.feature__text h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  max-width: 14ch;
}

.feature__text p {
  margin: 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature__media {
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 50%, #fff 0%, #f0f0f4 70%, #e8e8ee 100%);
  box-shadow: var(--shadow);
}

.feature__media img {
  width: 100%;
  height: auto;
}

/* Ritaglia il testo già presente negli export Figma */
.feature__media--crop-formula,
.feature__media--crop-staff,
.feature__media--crop-attimi {
  aspect-ratio: 5 / 4;
}

.feature__media--crop-formula img,
.feature__media--crop-staff img,
.feature__media--crop-attimi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__media--crop-formula img {
  object-position: 70% 55%;
  transform: scale(1.35);
  transform-origin: 70% 60%;
}

.feature__media--crop-staff img {
  object-position: 50% 78%;
  transform: scale(1.45);
  transform-origin: 50% 80%;
}

.feature__media--crop-attimi img {
  object-position: 50% 48%;
  transform: scale(1.35);
  transform-origin: 55% 48%;
}

/* Orange story banner */
.story {
  padding: clamp(24px, 4vw, 40px);
}

.story__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  background: var(--orange);
  color: #fff;
  border-radius: 28px;
  display: grid;
  gap: 0;
  overflow: hidden;
}

@media (min-width: 880px) {
  .story__inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }
}

.story__copy {
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.story__copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  max-width: 14ch;
  scroll-margin-top: 88px;
}

.story__copy p {
  margin: 0 0 28px;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.92);
}

.story__media {
  min-height: 280px;
}

.story__media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

/* FAQ */
.faq {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.faq h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 36px;
}

.faq__grid {
  display: grid;
  gap: 28px 40px;
}

@media (min-width: 800px) {
  .faq__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.faq__item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.faq__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.faq__item a {
  color: var(--orange);
}

/* Mission */
.mission {
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 40px)
    clamp(48px, 8vh, 80px);
}

.mission__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  background:
    linear-gradient(135deg, rgba(12, 6, 227, 0.94), rgba(9, 4, 184, 0.96)),
    url("/assets/images/blue.webp") center / cover;
  color: #fff;
  border-radius: 28px;
  display: grid;
  gap: 28px;
  padding: clamp(28px, 4vw, 40px);
  overflow: hidden;
}

@media (min-width: 880px) {
  .mission__inner {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 40px;
  }
}

.mission__eyebrow {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
}

.mission__copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.mission__copy > p:last-of-type {
  margin: 0 0 8px;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.9);
}

.mission__media {
  margin: 0;
  position: relative;
}

.mission__media img {
  width: 100%;
  border-radius: var(--radius-sm);
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.mission__media figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Partners / prefooter */
.partners {
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 40px)
    clamp(28px, 5vw, 48px);
  background: var(--surface);
}

.partners__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px) clamp(20px, 4vw, 36px);
  background: #e8eef8;
  border-radius: 28px;
  text-align: center;
}

.partners__inner > p {
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
}

.partners__bar {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 10px 18px;
  background: #fff;
  border: 1.5px solid #2a2a2a;
  border-radius: 999px;
  overflow: hidden;
}

.partners__bar img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .partners__bar {
    border-radius: 22px;
    padding: 12px 14px;
  }
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  padding: 56px clamp(16px, 4vw, 40px) 28px;
}

.site-footer__inner {
  width: min(var(--max), 100%);
  margin: 0 auto 36px;
  display: grid;
  gap: 36px;
}

@media (min-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1.1fr 2fr;
    gap: 48px;
  }
}

.site-footer__brand img {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
}

.site-footer__brand p {
  margin: 0;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.site-footer__cols h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.site-footer__cols a {
  display: block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.site-footer__cols a:hover {
  color: #fff;
}

.site-footer__bottom {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 560px) {
  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__copy,
  .hero__visual,
  .bubble,
  .moments__grid img {
    animation: none !important;
    transition: none !important;
  }
}
