@font-face {
  font-family: "Fredoka";
  src: url("referenza/fonts/X7nP4b87HvSqjb_WIi2yDCRwoQ_k7367_B-i2yQag0-mac3O8SLMFg.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("referenza/fonts/X7nP4b87HvSqjb_WIi2yDCRwoQ_k7367_B-i2yQag0-mac3OwyLMFg.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("referenza/fonts/X7nP4b87HvSqjb_WIi2yDCRwoQ_k7367_B-i2yQag0-mac3OLyXMFg.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("referenza/fonts/X7nP4b87HvSqjb_WIi2yDCRwoQ_k7367_B-i2yQag0-mac3OFiXMFg.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("referenza/fonts/pe1mMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp5F5bxqqtQ1yiU4G1ilntA.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("referenza/fonts/pe1mMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp5F5bxqqtQ1yiU4GCC5ntA.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("referenza/fonts/pe1mMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp5F5bxqqtQ1yiU4GMS5ntA.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("referenza/fonts/pe1mMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp5F5bxqqtQ1yiU4GVi5ntA.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Patrick Hand";
  src: url("referenza/fonts/LDI1apSQOAYtSuYWp8ZhfYeMWQ.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --color-teal: #005260;
  --color-teal-dark: #073d48;
  --color-orange: #f4511e;
  --color-cream: #fffdf8;
  --color-parchment: #f5e3bf;
  --color-text: #123d4a;
  --color-muted: #536970;
  --radius-card: 8px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 22px rgba(7, 61, 72, .08);
  --container-width: 1280px;
  --section-spacing: 54px;
  --font-display: "Fredoka", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
  --font-handwritten: "Patrick Hand", cursive;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #e88700;
  outline-offset: 4px;
}

.container {
  width: min(var(--container-width), calc(100% - 48px));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-teal-dark);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(7, 61, 72, .08);
  box-shadow: 0 4px 18px rgba(7, 61, 72, .045);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  width: 142px;
  align-items: center;
}

.brand img,
.footer-brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  color: var(--color-teal-dark);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.main-nav a,
.footer-nav a {
  transition: color .18s ease;
}

.main-nav a:hover,
.footer-nav a:hover {
  color: var(--color-orange);
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(7, 61, 72, .14);
}

.button-primary {
  background: var(--color-orange);
  color: #fff;
}

.button-primary:hover {
  filter: brightness(1.05);
}

.button-secondary {
  border-color: var(--color-teal);
  background: #fff;
  color: var(--color-teal-dark);
}

.header-cta {
  min-height: 46px;
  padding-inline: 20px;
  font-size: 14px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

.hero {
  background: #fff;
}

.hero-inner {
  min-height: 510px;
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: stretch;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-block: 40px 34px;
}

.hero-note {
  position: absolute;
  top: 28px;
  right: -82px;
  width: 100px;
  margin: 0;
  color: var(--color-teal-dark);
  font-family: var(--font-handwritten);
  font-size: 21px;
  font-weight: 400;
  line-height: .95;
  text-align: center;
  transform: rotate(-6deg);
}

.hero h1 {
  margin: 18px 0 12px;
  color: var(--color-teal-dark);
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: .94;
}

.hero h1 span {
  color: var(--color-orange);
  white-space: nowrap;
}

.hero-summary {
  max-width: 495px;
  margin: 0 0 20px 2px;
  color: var(--color-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: 2px;
}

.play-icon {
  width: 22px;
  height: 22px;
  color: var(--color-teal);
  flex: 0 0 auto;
}

.values {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  width: 88%;
  margin: 28px 0 0;
}

.value-item {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--color-teal);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.value-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.hero-art {
  position: relative;
  z-index: 1;
  width: 104%;
  min-width: 0;
  margin-left: -4%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
}

.hero-art img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  object-position: center bottom;
}

.section-space {
  padding-block: var(--section-spacing);
}

.welcome {
  background: #fff;
}

.welcome-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.welcome-paper {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.welcome-paper > img {
  width: 100%;
  height: auto;
}

.welcome-paper p {
  position: absolute;
  top: 53%;
  left: 19%;
  width: 59%;
  margin: 0;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
}

.welcome-copy h2,
.section-heading h2,
.missions-heading h2,
.community-copy h2 {
  margin: 0;
  color: var(--color-teal-dark);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.02;
}

.welcome-copy h2 span {
  color: var(--color-orange);
}

.welcome-copy > p {
  max-width: 565px;
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.5;
}

.house-doodle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 0 auto;
  width: max-content;
  color: var(--color-teal-dark);
  font-family: var(--font-handwritten);
  font-size: 24px;
  line-height: .98;
  text-align: center;
  transform: rotate(-5deg);
}

.house-doodle img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.features {
  padding-top: 12px;
}

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

.feature-card {
  min-width: 0;
  min-height: 176px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: 15px;
  padding: 18px 20px 16px;
  border: 1px solid #e7eceb;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 72px;
  height: 72px;
  grid-row: 1 / span 2;
  object-fit: contain;
}

.feature-copy h3 {
  margin: 2px 0 5px;
  color: var(--color-teal-dark);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.feature-copy p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.34;
}

.feature-link {
  grid-column: 2;
  justify-self: end;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: var(--color-orange);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.feature-link b {
  font-family: var(--font-body);
  font-size: 27px;
  font-weight: 600;
  line-height: .75;
}

.characters {
  padding-top: 28px;
}

.section-heading {
  margin-bottom: 25px;
  text-align: center;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--color-teal-dark);
  font-size: 20px;
  font-weight: 700;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.character-card {
  min-width: 0;
  padding: 0 16px 20px;
  border: 1px solid #edf0ef;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 4px 14px rgba(7, 61, 72, .04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.character-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.character-art {
  min-height: 450px;
  height: auto;
  display: grid;
  place-items: center;
  align-content: center;
  overflow: visible;
}

.character-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.character-card h4 {
  margin: 0 0 9px;
  color: var(--color-teal-dark);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
}

.character-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.35;
}

.missions {
  padding-top: 52px;
}

.missions-heading {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 20px;
}

.missions-heading p {
  margin: 0;
  color: var(--color-text);
  font-weight: 700;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.mission-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 18px 22px;
  border: 1px solid #edf0ef;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.mission-art {
  width: 100%;
  height: 320px;
  object-fit: contain;
}

.mission-card > p {
  max-width: 450px;
  min-height: 48px;
  margin: 2px 0 14px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.4;
}

.community {
  min-height: max(430px, 33.333vw);
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
  background: var(--color-teal-dark);
}

.community-art {
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  pointer-events: none;
}

.community-art img {
  width: 100%;
  height: auto;
}

.community-copy {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  color: #fff;
  text-align: center;
}

.community-copy h2 {
  color: #fff;
  font-size: 42px;
}

.community-copy p {
  margin: 8px auto 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.32;
}

.community-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.site-footer {
  position: relative;
  z-index: 2;
  background: #fff;
}

.footer-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  padding-block: 12px;
}

.footer-brand {
  width: 116px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 17px;
}

.social-links a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--color-teal-dark);
}

.social-links a:hover {
  color: var(--color-orange);
}

.social-links svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links .social-dot,
.social-links .social-fill {
  fill: currentColor;
  stroke: none;
}

.footer-motto {
  margin: 0;
  color: var(--color-teal-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.footer-motto span {
  color: var(--color-orange);
  font-size: 21px;
  vertical-align: middle;
}

@media (max-width: 1080px) {
  :root {
    --section-spacing: 44px;
  }

  .header-inner {
    grid-template-columns: 140px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .brand {
    width: 128px;
  }

  .main-nav {
    gap: 14px;
    font-size: 12px;
  }

  .header-cta {
    padding-inline: 15px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-summary {
    font-size: 18px;
  }

  .values {
    gap: 8px;
  }

  .value-item {
    font-size: 10px;
  }

  .feature-grid {
    gap: 12px;
  }

  .feature-card {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    padding-inline: 14px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
  }

  .footer-inner {
    grid-template-columns: 120px minmax(0, 1fr) auto;
  }

  .footer-motto {
    display: none;
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 78px;
  }

  .site-header,
  .header-inner {
    min-height: 72px;
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    position: relative;
  }

  .brand {
    width: 112px;
  }

  .header-cta {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1.5px solid var(--color-teal);
    border-radius: 50%;
    background: #fff;
    color: var(--color-teal-dark);
    cursor: pointer;
  }

  .menu-toggle-lines {
    width: 19px;
    display: grid;
    gap: 4px;
  }

  .menu-toggle-lines i {
    height: 2px;
    display: block;
    border-radius: 2px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: -24px;
    left: -24px;
    display: none;
    padding: 12px 24px 18px;
    border-bottom: 1px solid #e6edeb;
    background: #fff;
    box-shadow: 0 12px 18px rgba(7, 61, 72, .08);
  }

  .main-nav.is-open {
    display: grid;
    justify-content: stretch;
    gap: 0;
  }

  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #edf1f0;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-block: 38px 10px;
  }

  .hero-note {
    top: 28px;
    right: 8px;
    width: 82px;
    font-size: 18px;
  }

  .hero h1 {
    max-width: 600px;
    margin-top: 14px;
    font-size: 56px;
  }

  .hero-summary {
    max-width: 470px;
    font-size: 19px;
  }

  .values {
    max-width: 520px;
    width: 100%;
    margin-top: 24px;
  }

  .hero-art {
    width: min(100%, 690px);
    max-height: 470px;
    margin: -2px auto 0;
  }

  .hero-art img {
    height: auto;
    max-height: 470px;
  }

  .welcome-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .welcome-paper {
    width: min(100%, 520px);
  }

  .welcome-copy h2,
  .section-heading h2,
  .missions-heading h2 {
    font-size: 38px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card:last-child {
    grid-column: 1 / -1;
  }

  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .character-card {
    padding-inline: 14px;
  }

  .character-art {
    min-height: 480px;
    height: auto;
    overflow: visible;
  }

  .mission-grid {
    gap: 18px;
  }

  .mission-card {
    padding-inline: 12px;
  }

  .mission-art {
    height: 250px;
  }

  .community {
    min-height: 430px;
    margin-top: 0;
    padding-top: 0;
  }

  .community-art {
    left: 50%;
    width: 100%;
  }

  .community-copy {
    padding-top: 70px;
  }

  .community-copy h2 {
    font-size: 36px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    gap: 12px 24px;
  }

  .footer-brand {
    width: 105px;
  }

  .footer-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 12px 22px;
  }

  .social-links {
    justify-self: end;
  }
}

@media (max-width: 560px) {
  :root {
    --section-spacing: 36px;
  }

  .container {
    width: calc(100% - 36px);
  }

  .header-inner {
    width: calc(100% - 28px);
    gap: 8px;
  }

  .brand {
    width: 96px;
  }

  .header-cta {
    min-height: 42px;
    gap: 5px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .main-nav {
    right: -14px;
    left: -14px;
    padding-inline: 18px;
  }

  .hero-copy {
    padding-top: 28px;
  }

  .hero-note {
    top: 25px;
    right: 0;
    width: 74px;
    font-size: 16px;
  }

  .hero h1 {
    max-width: 355px;
    font-size: 46px;
  }

  .hero h1 span {
    white-space: normal;
  }

  .hero-summary {
    max-width: 320px;
    font-size: 17px;
  }

  .desktop-break {
    display: none;
  }

  .hero-actions {
    width: min(100%, 330px);
    flex-direction: column;
    align-items: stretch;
  }

  .values {
    gap: 10px 6px;
  }

  .value-item {
    font-size: 10px;
  }

  .value-item img {
    width: 36px;
    height: 36px;
  }

  .hero-art {
    width: calc(100% + 12px);
    margin-left: -6px;
  }

  .welcome-paper p {
    top: 52%;
    left: 18%;
    width: 60%;
    font-size: 13px;
    line-height: 1.25;
  }

  .welcome-copy h2,
  .section-heading h2,
  .missions-heading h2 {
    font-size: 34px;
  }

  .welcome-copy > p {
    font-size: 16px;
  }

  .house-doodle {
    margin-top: 20px;
    font-size: 22px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:last-child {
    grid-column: auto;
  }

  .feature-card {
    min-height: 150px;
  }

  .character-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .character-card {
    padding: 0 18px 18px;
  }

  .character-art {
    min-height: 560px;
    height: auto;
    overflow: visible;
  }

  .character-art img {
    width: 76%;
  }

  .character-card h4 {
    font-size: 19px;
  }

  .character-card p {
    font-size: 15px;
  }

  .missions-heading {
    display: block;
  }

  .missions-heading p {
    margin-top: 6px;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mission-card {
    padding: 10px 14px 18px;
  }

  .mission-art {
    height: 260px;
  }

  .mission-card > p {
    min-height: 0;
  }

  .community {
    min-height: 430px;
    margin-top: 0;
    padding-top: 0;
  }

  .community-art {
    left: 50%;
    width: 100%;
  }

  .community-copy {
    padding-top: 48px;
  }

  .community-copy h2 {
    font-size: 32px;
  }

  .community-copy p {
    max-width: 360px;
    font-size: 16px;
  }

  .community-actions {
    width: min(100%, 330px);
    margin-inline: auto;
    flex-direction: column;
    gap: 10px;
  }

  .footer-inner {
    min-height: 142px;
    gap: 12px 16px;
  }

  .footer-nav {
    gap: 10px 18px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 42px;
  }

  .header-cta {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* Content hub — Phase 1 */
.eyebrow {
  margin: 0 0 6px;
  color: var(--color-orange) !important;
  font-family: var(--font-display);
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.features .section-heading {
  margin-bottom: 24px;
}

.features .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.features .feature-card {
  grid-template-columns: 64px minmax(0, 1fr);
}

.features .feature-icon {
  width: 58px;
  height: 58px;
}

.missions-heading > div {
  min-width: 0;
}

.mission-card-latest {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: center;
  gap: 28px;
  padding: 22px;
  border-color: rgba(244, 81, 30, .24);
  background: linear-gradient(135deg, #fff 0%, #fff9f2 100%);
  text-align: left;
}

.mission-card-latest .mission-art {
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  object-fit: cover;
}

.mission-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mission-card-copy h3 {
  margin: 12px 0 10px;
  color: var(--color-teal-dark);
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.04;
}

.mission-card-copy p {
  margin: 0 0 20px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.5;
}

.content-badge,
.coming-label {
  display: inline-flex;
  width: max-content;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: #fff0e8;
  color: var(--color-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.kids {
  background: #f5fbfa;
}

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

.video-card {
  overflow: hidden;
  border: 1px solid #e1ecea;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(7, 61, 72, .14);
}

.video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-teal-dark);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-badge {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--color-orange);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 5px 14px rgba(7, 61, 72, .24);
}

.video-copy {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}

.video-copy h3 {
  flex: 1;
  margin: 13px 0 18px;
  color: var(--color-teal-dark);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.12;
}

.video-copy .button {
  min-height: 44px;
}

.name-songs {
  max-width: 830px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px auto 0;
  padding: 20px 24px;
  border: 2px dashed rgba(0, 82, 96, .28);
  border-radius: 14px;
  background: #fff;
}

.name-songs > span {
  color: var(--color-orange);
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1;
}

.name-songs h3 {
  margin: 0 0 3px;
  color: var(--color-teal-dark);
  font-family: var(--font-display);
  font-size: 23px;
}

.name-songs p {
  margin: 0;
  color: var(--color-muted);
}

.house-life {
  background: #fff;
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.life-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid #e7eceb;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.life-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-teal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
}

.life-card:nth-child(even) .life-symbol {
  background: var(--color-orange);
}

.life-card h3,
.coming-card h3 {
  margin: 18px 0 8px;
  color: var(--color-teal-dark);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.08;
}

.life-card p,
.coming-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.45;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.coming {
  padding-top: 24px;
  background: #fffdf8;
}

.coming-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.coming-card {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border: 1px solid #eadfcd;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.coming-label {
  position: absolute;
  top: 20px;
  right: 20px;
}

.coming-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-parchment);
  color: var(--color-teal-dark);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}

.coming-card h3 {
  font-size: 27px;
}

@media (max-width: 1080px) {
  .features .feature-grid,
  .life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .mission-card-latest {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: left;
  }

  .mission-card-latest .mission-art {
    order: -1;
  }

  .video-card-grid {
    grid-template-columns: 1fr;
  }

  .video-card {
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
  }

  .video-copy {
    min-height: 0;
  }

  .coming-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .features .feature-grid,
  .life-grid {
    grid-template-columns: 1fr;
  }

  .mission-card-latest {
    padding: 14px;
  }

  .mission-card-copy h3 {
    font-size: 27px;
  }

  .name-songs {
    align-items: flex-start;
    padding: 18px;
  }

  .life-card {
    min-height: 0;
  }

  .coming-label {
    position: static;
    margin-bottom: 16px;
  }

  .coming-card {
    min-height: 0;
    padding: 22px;
  }
}


/* Vita nella Casa: contenuti reali */
.missions-heading {
  display: block;
  margin-bottom: 24px;
}

.missions-intro {
  max-width: 520px;
  margin: 8px 0 0 !important;
  color: var(--color-text) !important;
  font-size: 19px;
  font-weight: 700;
}

.life-card-video {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.life-card-video:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(7, 61, 72, .14);
}

.life-card-media,
.coming-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-teal-dark);
}

.life-card-media img,
.coming-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
}

.life-card-video:hover .life-card-media img,
.coming-card-live:hover .coming-card-media img {
  transform: scale(1.04);
}

.life-video-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: var(--radius-pill);
  background: rgba(0, 45, 55, .88);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.life-card-body {
  min-height: 186px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 18px 20px;
}

.life-kicker {
  margin: 0 !important;
  color: var(--color-orange) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.life-card-video h3 {
  margin: 11px 0 16px;
  font-size: 22px;
}

.life-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--color-orange);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.life-action b {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: .7;
}

.coming .section-heading > p:last-child {
  max-width: 680px;
  margin: 10px auto 0;
  color: var(--color-muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.coming-card-live {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.coming-card-live:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(7, 61, 72, .14);
}

.coming-card-media .coming-label {
  position: absolute;
  top: 14px;
  right: 14px;
}

.coming-card-copy {
  min-height: 220px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 24px 24px;
}

.coming-card-copy h3 {
  margin-top: 14px;
}

.coming-card-copy .life-action {
  margin-top: 16px;
}

.coming-card-download {
  overflow: hidden;
  padding-right: 38%;
}

.coming-card-download .coming-label {
  position: static;
  margin-bottom: 16px;
}

.coming-card-illustration {
  position: absolute;
  right: -9%;
  bottom: -17%;
  width: 47%;
  height: auto;
  opacity: .96;
  transform: rotate(9deg);
}

.coming-card-download .coming-icon {
  position: relative;
  z-index: 1;
}

.coming-card-download h3,
.coming-card-download p {
  position: relative;
  z-index: 1;
}

@media (max-width: 780px) {
  .missions-intro {
    font-size: 17px;
  }

  .life-card-body {
    min-height: 0;
  }

  .coming-card-download {
    min-height: 250px;
  }
}

@media (max-width: 560px) {
  .missions-intro {
    margin-top: 7px !important;
    font-size: 16px;
  }

  .coming-card-media .coming-label {
    position: absolute;
    margin: 0;
  }

  .coming-card-download {
    padding-right: 42%;
  }

  .coming-card-illustration {
    right: -13%;
    width: 58%;
  }
}


/* Tablet: il testo resta sempre dentro la pergamena di benvenuto */
@media (min-width: 781px) and (max-width: 1080px) {
  .welcome-inner {
    gap: 32px;
  }

  .welcome-paper p {
    top: 51%;
    left: 19%;
    width: 60%;
    font-size: clamp(10px, 1.25vw, 13px);
    line-height: 1.23;
  }
}


/* Desktop: la Missione 3 allinea la copertina alla colonna delle Missioni precedenti */
@media (min-width: 1081px) {
  .mission-card-latest {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    padding-inline: 42px;
  }
}


/* Desktop: composizione a L per allineare Missione 3 sopra Missione 2 */
@media (min-width: 1081px) {
  .missions .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .missions-heading {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    margin: 0;
  }

  .mission-grid {
    display: contents;
  }

  .mission-card-latest {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 12px 18px 22px;
    border-color: #edf0ef;
    background: #fff;
    text-align: center;
  }

  .mission-grid > .mission-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .mission-grid > .mission-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .mission-card-latest .mission-art {
    order: -1;
    width: 100%;
    height: 320px;
    aspect-ratio: auto;
    border-radius: 0;
    object-fit: cover;
  }

  .mission-card-latest .mission-card-copy {
    width: 100%;
    display: flex;
    align-items: center;
  }

  .mission-card-latest .content-badge,
  .mission-card-latest h3 {
    display: none;
  }

  .mission-card-latest .mission-card-copy p {
    max-width: 450px;
    min-height: 48px;
    margin: 16px 0 14px;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.4;
  }
}


/* La copertina della Missione più recente usa lo stesso taglio delle altre */
.mission-card-latest .mission-art {
  border-radius: 0;
}


/* Missione 3: stessa card delle altre, soltanto nella posizione più recente */
@media (min-width: 1081px) {
  .mission-card-current {
    grid-column: 2;
    grid-row: 1;
  }
}


/* Caroselli editoriali: stessi contenuti, più spazio per le nuove uscite */
.carousel-shell {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  grid-template-columns: none !important;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track > * {
  width: auto;
  scroll-snap-align: start;
}

.carousel-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--color-teal-dark);
  border-radius: 50%;
  background: #fff;
  color: var(--color-teal-dark);
  font-family: Arial, sans-serif;
  font-size: 35px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(7, 61, 72, .18);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
}

.carousel-button:hover:not(:disabled),
.carousel-button:focus-visible:not(:disabled) {
  background: var(--color-teal-dark);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}

.carousel-button:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}

.carousel-button:disabled {
  cursor: default;
}

.carousel-shell:not(.has-overflow) .carousel-button,
.carousel-button:disabled {
  visibility: hidden;
  pointer-events: none;
}

.carousel-button-prev {
  left: -23px;
}

.carousel-button-next {
  right: -23px;
}

.video-card-grid.carousel-track .video-card,
.life-grid.carousel-track .life-card {
  margin: 0;
}

@media (max-width: 1080px) {
  .carousel-track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}

@media (max-width: 780px) {
  .carousel-track {
    grid-auto-columns: minmax(84%, 440px);
  }

  .carousel-button {
    width: 42px;
    height: 42px;
    font-size: 31px;
  }

  .carousel-button-prev {
    left: -13px;
  }

  .carousel-button-next {
    right: -13px;
  }
}


/* Casi Impossibili: raccolta reale e archivio pronto a crescere */
.cases {
  background: #fffaf2;
}

.cases .section-heading > p:last-child,
.downloads .section-heading > p:last-child {
  max-width: 650px;
  margin: 10px auto 0;
  color: var(--color-muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.case-card .video-copy {
  min-height: 185px;
}

.case-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: var(--color-teal-dark);
  color: #fff;
}

.downloads .coming-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.downloads .coming-card-download {
  min-height: 245px;
}

@media (max-width: 560px) {
  .cases .section-heading > p:last-child,
  .downloads .section-heading > p:last-child {
    font-size: 16px;
  }
}


/* Hub Gioca: due raccolte sorelle, una per indovinare e una per investigare */
.play-hub {
  background: #fffaf2;
}

.play-hub .section-heading > p:last-child,
.downloads .section-heading > p:last-child {
  max-width: 720px;
  margin: 10px auto 0;
  color: var(--color-muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.play-collections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.play-collection {
  min-width: 0;
  padding: 26px;
  border: 1px solid #eadfcd;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.play-collection-heading {
  min-height: 148px;
}

.play-collection-heading .eyebrow {
  margin-bottom: 7px;
}

.play-collection-heading h3 {
  margin: 0 0 8px;
  color: var(--color-teal-dark);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.06;
}

.play-collection-heading > p:last-child {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.42;
}

.play-collection .carousel-track {
  grid-auto-columns: 100%;
}

.play-collection .carousel-button {
  top: 50%;
}

.play-collection .video-copy {
  min-height: 172px;
}

.play-collection .video-copy h4 {
  flex: 1;
  margin: 0 0 18px;
  color: var(--color-teal-dark);
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.12;
}

.case-badge,
.riddle-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: var(--color-teal-dark);
  color: #fff;
}

.riddle-badge {
  background: var(--color-orange);
}

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

.play-collection-link:hover,
.play-collection-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.downloads .coming-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.downloads .coming-card-download {
  min-height: 245px;
}

@media (max-width: 900px) {
  .play-collections {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .play-collection {
    padding: 22px 18px;
  }

  .play-collection-heading {
    min-height: 0;
    margin-bottom: 18px;
  }

  .play-collection-heading h3 {
    font-size: 28px;
  }

  .play-hub .section-heading > p:last-child,
  .downloads .section-heading > p:last-child {
    font-size: 16px;
  }
}


/* Fascia Scarica: promessa editoriale a tutta larghezza */
.downloads .coming-grid {
  grid-template-columns: 1fr;
  max-width: none;
}

.downloads .coming-card-download {
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 46px 48% 46px 48px;
  border-color: rgba(0, 82, 96, .2);
  background:
    radial-gradient(circle at 70% 24%, rgba(255, 203, 61, .28) 0 6%, transparent 6.2%),
    linear-gradient(118deg, #fffdf8 0%, #f0faf8 100%);
}

.download-copy {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.downloads .coming-card-download .coming-label {
  display: inline-flex;
  margin-bottom: 18px;
}

.downloads .coming-card-download .coming-icon {
  margin-bottom: 16px;
}

.downloads .coming-card-download h3 {
  max-width: 510px;
  margin: 0 0 12px;
  font-size: clamp(29px, 3vw, 40px);
}

.downloads .coming-card-download p {
  margin: 0 0 8px;
  color: var(--color-teal-dark);
  font-weight: 800;
}

.download-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--color-muted);
  list-style: none;
  line-height: 1.45;
}

.download-list li {
  position: relative;
  padding-left: 22px;
}

.download-list li::before {
  position: absolute;
  top: .2em;
  left: 0;
  color: var(--color-orange);
  content: "✦";
}

.download-characters {
  position: absolute;
  right: 3%;
  bottom: 0;
  width: 47%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.download-characters::before {
  position: absolute;
  right: 13%;
  bottom: 10%;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  content: "";
}

.download-characters img {
  position: absolute;
  bottom: -7%;
  z-index: 1;
  width: auto;
  max-width: none;
  height: 106%;
  object-fit: contain;
  object-position: bottom;
}

.download-bimbi {
  right: 48%;
  height: 96% !important;
}

.download-jasper {
  right: -2%;
  height: 96% !important;
}

@media (max-width: 900px) {
  .downloads .coming-card-download {
    min-height: 400px;
    padding-right: 45%;
  }

  .download-characters {
    right: 0;
    width: 52%;
  }
}

@media (max-width: 620px) {
  .downloads .coming-card-download {
    min-height: 560px;
    align-items: flex-start;
    padding: 34px 26px 230px;
  }

  .download-characters {
    width: 100%;
    height: 260px;
  }

  .download-characters::before {
    right: 18%;
    bottom: 3%;
    width: 58%;
  }

  .download-characters img {
    height: 112%;
    bottom: -8%;
  }

  .download-bimbi {
    right: 49%;
    height: 104% !important;
  }

  .download-jasper {
    right: -3%;
    height: 100% !important;
  }
}
