@font-face {
  font-family: "Quicksand";
  src: url("assets/Quicksand-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("assets/Quicksand-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("assets/Quicksand-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Englebert";
  src: url("assets/Englebert.ttf") format("truetype");
  font-display: swap;
}

/* Palette mirrors mobile/src/constants/Colors.ts */
:root {
  --pink: #f07aae;
  --pink-dark: #d63f8a;
  --pink-light: #fcced5;
  --blue: #9fd7f5;
  --blue-dark: #1e9fcf;
  --blue-light: #e6f6ff;
  --ink: #004d40;
  --text: #2f3b3a;
  --muted: #5b6766;
  --bg: #ffffff;
  --border: #e6ecec;
  --radius: 22px;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }

/* Bilingual copy: each string carries both languages; show the page's one. */
html[lang="es"] body [lang="it"],
html[lang="it"] body [lang="es"] { display: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--pink-dark);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(214, 63, 138, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #c4337b; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(214, 63, 138, 0.32); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.btn-light { background: #fff; color: var(--pink-dark); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); }
.btn-light:hover { background: #fff5f9; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand img { width: 84px; height: auto; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--blue-light);
}
.lang-switch button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
@media (max-width: 420px) { .header-actions .btn-small { display: none; } }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--blue-light) 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 24px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 24px;
}
@media (min-width: 760px) {
  .hero-grid { padding-top: 72px; padding-bottom: 56px; }
}
/* Two columns only when the QR code is there to fill the second. */
@media (min-width: 760px) and (hover: hover) and (pointer: fine) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--pink-dark);
  font-weight: 700;
  font-size: 14px;
}
.hero h1 {
  font-size: clamp(36px, 6.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.hero h1 em {
  white-space: nowrap;
  font-family: "Englebert", "Quicksand", cursive;
  font-style: normal;
  font-weight: 400;
  color: var(--pink-dark);
}
.lead {
  margin: 20px 0 32px;
  max-width: 34em;
  font-size: clamp(17px, 2vw, 19px);
  color: var(--muted);
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.btn-large { min-height: 58px; padding: 0 34px; font-size: 19px; }
.btn-icon { width: 22px; height: 22px; flex: none; }

/* The QR code takes the hero's right column on a computer. On a phone or
   tablet the button is the way in, so the column goes and the copy fills it. */
.hero-qr { display: none; }
@media (min-width: 760px) and (hover: hover) and (pointer: fine) {
  .hero-qr {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
  }
}
.hero-qr .blob {
  position: absolute;
  inset: 4% 2%;
  border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  background: var(--pink-light);
}
.qr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 28px 22px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 77, 64, 0.14);
}
.qr-code { --qr: 248px; position: relative; width: var(--qr); height: var(--qr); }
@media (min-width: 1000px) { .qr-code { --qr: 290px; } }
.qr-code > img { width: 100%; height: 100%; }
.qr-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--qr) * 0.27);
  height: calc(var(--qr) * 0.27);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--blue);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 77, 64, 0.08);
}
.qr-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4) translate(-4%, 6%); }
.qr-title { margin: 0 0 18px; font-size: 20px; font-weight: 700; color: var(--ink); }
.qr-hint { margin: 16px 0 0; white-space: nowrap; text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); }

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 720px) { .section { padding: 96px 0; } }
.section-tint { background: #fff7fa; }
.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 48px;
}
.section-title.left { text-align: left; margin-bottom: 20px; }

.features {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, 1fr); } }

.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 77, 64, 0.08); }
.feature-art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 180px;
  padding-top: 18px;
  border-radius: 16px;
  margin-bottom: 18px;
  overflow: hidden;
}
.feature-art img { height: 150px; width: auto; }
.art-blue { background: var(--blue-light); }
.art-rose { background: #ffeef4; }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.steps li {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

/* About */
.about {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 880px) { .about { grid-template-columns: 1.2fr 0.8fr; gap: 64px; } }
.about-copy p { margin: 0 0 16px; font-size: 18px; }
.note { font-size: 15px !important; color: var(--muted); }
.partners {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.partners-label {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.partner-logos img:first-child { width: 190px; }
.partner-logos img:last-child { width: 96px; }

/* Credits */
.credits { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.credits-title { font-size: 22px; margin: 0 0 20px; }
.credits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 880px) { .credits-list { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.credits-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.credit-role { font-size: 14px; color: var(--muted); }
.credit-name { font-size: 19px; font-weight: 700; color: var(--ink); }
.credits-list a { font-weight: 600; color: var(--pink-dark); text-decoration: none; }
.credits-list a:hover { text-decoration: underline; }

/* Closing */
.closing {
  background: linear-gradient(120deg, var(--pink) 0%, #f59bc4 55%, var(--blue) 140%);
  color: #fff;
}
.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.closing h2 {
  color: #fff;
  font-family: "Englebert", "Quicksand", cursive;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
}

/* Footer */
.site-footer { background: #f7f9f9; padding: 48px 0 24px; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer-grid img { width: 80px; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; font-weight: 600; color: var(--ink); }
.footer-links a:hover { text-decoration: underline; }
.small { font-size: 14px; color: var(--muted); margin: 0; }
.copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.copyright p + p { margin-top: 8px; max-width: 860px; font-size: 13px; }
.rights-title { font-weight: 600; }
