/* ===== BUPPI — Design tokens (dai loghi ufficiali + app Buppi Loop) ===== */
:root {
  --cream:   #FEFCF8;   /* sfondo caldo e luminoso */
  --cream-2: #F7F2EB;   /* sezioni chiare (banda soft) */
  --ink:     #2F3A46;   /* testo scuro */
  --ink-soft:#5b6672;   /* testo secondario */

  /* colori del gradiente del logo */
  --teal:    #16A9AD;
  --orange:  #F5820B;
  --pink:    #EC4E86;
  --purple:  #8E44AD;
  --blue:    #2B3A94;
  --teal-d:  #0f8a8f;
  --orange-d:#d96f04;

  /* colori funzionali (aree dell'app) */
  --sun:     #E9B44C;   /* ambra · avvisi, cucina */
  --sky:     #8250C8;   /* viola · diario, foto */
  --line:    #E6EDF1;   /* bordi e separatori */

  --brand-grad: linear-gradient(90deg, #16A9AD 0%, #F5820B 30%, #EC4E86 55%, #8E44AD 78%, #2B3A94 100%);

  --radius:  24px;
  --radius-sm: 14px;
  --shadow:  0 10px 30px rgba(47,58,70,.08);
  --shadow-lg: 0 22px 55px rgba(47,58,70,.16);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3 { font-family: "Baloo 2", "Nunito", sans-serif; line-height: 1.12; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* logo "buppi" usato inline al posto della parola (immagine già rifilata) */
.logo-inline { display: inline-block; width: auto; height: 1.02em; vertical-align: -0.22em; margin: 0 .08em; }
h1 .logo-inline { height: 1.18em; vertical-align: -0.26em; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 16px;
  padding: 13px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(245,130,11,.35); }
.btn-primary:hover { background: var(--orange-d); }
.btn-ghost { background: #fff; color: var(--ink); border-color: rgba(47,58,70,.12); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-header { padding: 10px 22px; font-size: 15px; }
.btn-login { gap: 9px; }
.btn-login::before {
  content: ""; width: 17px; height: 17px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M15%203h4a2%202%200%200%201%202%202v14a2%202%200%200%201-2%202h-4'/%3E%3Cpath%20d='M10%2017l5-5-5-5'/%3E%3Cpath%20d='M15%2012H3'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M15%203h4a2%202%200%200%201%202%202v14a2%202%200%200%201-2%202h-4'/%3E%3Cpath%20d='M10%2017l5-5-5-5'/%3E%3Cpath%20d='M15%2012H3'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,250,245,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47,58,70,.06);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 12px 24px; }
.logo img { height: 40px; width: auto; }
.main-nav { display: flex; gap: 24px; margin-left: auto; }
.main-nav a { font-weight: 700; color: var(--ink); font-size: 15px; }
.main-nav a:hover { color: var(--teal); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* Selettore lingua */
.lang { display: inline-flex; align-items: center; gap: 2px; font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 14px; }
.lang a { padding: 6px 9px; border-radius: 9px; color: var(--ink-soft); line-height: 1; }
.lang a.on { color: var(--ink); background: rgba(47,58,70,.08); }
.lang a:not(.on):hover { color: var(--teal-d); }

/* ===== Hero ===== */
.hero { padding: 84px 0 56px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.02fr 1.2fr; gap: 20px; align-items: center; }
.eyebrow { font-family: "Baloo 2", sans-serif; font-weight: 700; color: var(--teal-d); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 500px; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { position: relative; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.hero-glow {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,169,173,.30), rgba(142,68,173,.20) 45%, rgba(253,250,245,0) 70%);
  filter: blur(6px);
}
.hero-planet { position: relative; width: 280px; max-width: 74%; border-radius: 26%; box-shadow: 0 24px 50px rgba(47,58,70,.22); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Hero a livelli: scena + pianeta mobile + parallax */
.hero-scene { position: relative; width: 112%; max-width: 820px; margin: 0 -6% 0 auto; --px: 0; --py: 0; }
.hero-plate { display: block; width: 100%; height: auto;
  transform: translate3d(calc(var(--px) * 6px), calc(var(--py) * 6px), 0);
  transition: transform .5s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.planet-orbit { position: absolute; left: 57.2%; top: 14.3%; width: 24.2%;
  transform: translate3d(calc(var(--px) * 16px), calc(var(--py) * 13px), 0);
  transition: transform .5s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.hero-planet-move { display: block; width: 100%; height: auto; transform-origin: 50% 50%;
  animation: planetDrift 46s ease-in-out infinite; }
@keyframes planetDrift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(6%, 11%) rotate(2.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* la linea d'orbita che prosegue verso la sezione "I mondi" */
#mondi { position: relative; }
.orbit-tail-wrap { position: absolute; top: -148px; right: 25%; width: 320px; height: 210px; pointer-events: none; z-index: 0; }
.orbit-tail-wrap svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 900px) { .orbit-tail-wrap { display: none; } }

/* ===== Sections ===== */
.section { padding: 76px 0; }
.section.soft { background: var(--cream-2); }
.section-eyebrow { font-family: "Baloo 2", sans-serif; font-weight: 700; color: var(--teal-d); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin: 0 0 10px; }
.section-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-bottom: 12px; }
.section-sub { font-size: 18px; color: var(--ink-soft); max-width: 640px; margin: 0 0 8px; }
.section-sub.big { font-size: 20px; max-width: 760px; }

/* ===== Worlds (4 mondi) ===== */
.worlds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.world {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); overflow: hidden;
  display: flex; gap: 20px; align-items: flex-start; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
  border-top: 5px solid var(--teal);
}
.world:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.w-teal   { border-top-color: var(--teal); }
.w-pink   { border-top-color: var(--pink); }
.w-blue   { border-top-color: var(--blue); }
.w-purple { border-top-color: var(--purple); }

.world-badge {
  flex: none; width: 66px; height: 66px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
}
.w-teal   .world-badge { background: rgba(22,169,173,.14); }
.w-pink   .world-badge { background: rgba(236,78,134,.14); }
.w-blue   .world-badge { background: rgba(43,58,148,.12); }
.w-purple .world-badge { background: rgba(142,68,173,.14); }
.world-badge-img { background: #fff !important; box-shadow: var(--shadow); padding: 8px; width: 76px; height: 76px; }
.world-badge-img img { width: 100%; height: auto; }

.world-kicker { font-family: "Baloo 2", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: var(--ink-soft); }
.world h3 { font-size: 24px; font-weight: 800; margin: 4px 0 8px; }
.world p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15.5px; }
.world-link { font-family: "Baloo 2", sans-serif; font-weight: 700; color: var(--teal-d); }
.w-pink   .world-link { color: var(--pink); }
.w-blue   .world-link { color: var(--blue); }
.w-purple .world-link { color: var(--purple); }
.world-link:hover { text-decoration: underline; }

.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; background: rgba(142,68,173,.1); color: var(--purple); }
.social:hover { background: var(--purple); color: #fff; }

/* ===== About ===== */
.about { text-align: center; display: flex; flex-direction: column; align-items: center; }
.about .section-sub { margin-left: auto; margin-right: auto; }

/* ===== CTA ===== */
.cta { text-align: center; }
.cta-inner { background: var(--cream-2); border-radius: 32px; padding: 60px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-inner::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--brand-grad); }
.cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 10px; }
.cta p { font-size: 18px; color: var(--ink-soft); margin: 0 auto 26px; max-width: 480px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #fff; padding: 46px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; align-items: flex-start; }
.footer-logo { height: 40px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,.7); max-width: 280px; margin: 0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: rgba(255,255,255,.85); font-weight: 600; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 24px; text-align: center; color: rgba(255,255,255,.6); font-size: 14px; }

/* ===== Pagine interne ===== */
.page-hero { padding: 64px 0 44px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background: linear-gradient(160deg, var(--accent, var(--teal)) 0%, transparent 62%); }
.page-hero .container { position: relative; }
.breadcrumb { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent, var(--teal)); }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; margin: 0 0 14px; }
.page-hero .lead { margin: 0; }
.page-badge { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); font-size: 42px; margin-bottom: 18px; }
.page-badge img { width: 100%; height: auto; }
.logo-plate { display: inline-block; background: #fff; border-radius: 20px; padding: 18px 26px; box-shadow: var(--shadow); margin-bottom: 20px; }
.logo-plate img { width: 260px; max-width: 60vw; height: auto; }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 0 0 14px; }
.prose h3 { font-size: 22px; font-weight: 700; margin: 26px 0 8px; }
.prose p { font-size: 18px; color: var(--ink-soft); margin: 0 0 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.feature { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature .fi { font-size: 30px; margin-bottom: 10px; }
.feature h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); font-size: 16px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent, var(--teal)); font-weight: 800; }

/* Pricing / pacchetti */
.pkg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 34px; }
.pkg { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border-top: 5px solid var(--accent, var(--pink)); display: flex; flex-direction: column; }
.pkg h3 { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.pkg .pkg-meta { font-weight: 700; color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }
.pkg .price { font-family: "Baloo 2", sans-serif; font-size: 34px; font-weight: 800; color: var(--accent, var(--pink)); margin: 0 0 14px; }
.pkg .price small { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.pkg ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.pkg li { position: relative; padding-left: 26px; font-size: 15px; }
.pkg li::before { content: "✓"; position: absolute; left: 0; color: var(--accent, var(--pink)); font-weight: 800; }
.pkg .btn { margin-top: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); }

.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.social-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); text-align: center; font-family: "Baloo 2", sans-serif; font-weight: 700; transition: transform .15s ease, box-shadow .15s ease; }
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.social-card .si { font-size: 34px; display: block; margin-bottom: 10px; }

.note { display: inline-block; background: rgba(245,130,11,.12); color: var(--orange-d); font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px; margin-top: 16px; }

/* badge "Presto disponibile" */
.badge-soon { display: inline-flex; align-items: center; gap: 6px; background: rgba(245,130,11,.14); color: var(--orange-d); font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .3px; padding: 6px 14px; border-radius: 999px; }
.world .badge-soon { align-self: flex-start; margin-bottom: 8px; }
.world.is-soon { opacity: .96; }
.soon-wrap { text-align: center; max-width: 640px; margin: 0 auto; }
.soon-wrap .badge-soon { font-size: 15px; padding: 9px 18px; margin-bottom: 20px; }

/* ========================================================================
   BUPPI LOOP · pagina prodotto
   ======================================================================== */

/* Hero più chiaro e app-like (velo teal leggero invece del blu scuro) */
.loop-page .page-hero { background: var(--cream); }
.loop-page .page-hero::before { background: linear-gradient(160deg, var(--teal) 0%, transparent 60%); opacity: .10; }

/* Reveal on scroll (leggero, rispetta reduced-motion) */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Chip di navigazione interna */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.jump a { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.jump a:hover { border-color: var(--teal); color: var(--teal-d); }

/* Riga tipi di struttura */
.types-row { margin-top: 24px; font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.types-row b { color: var(--ink); font-weight: 700; }

/* ---- Cornice dispositivo (telefono) ---- */
.device { width: 300px; max-width: 82%; margin: 0 auto; background: #2a333c; border-radius: 40px; padding: 12px; box-shadow: 0 20px 50px rgba(47,58,70,.20); }
.device-screen { background: var(--cream); border-radius: 30px; overflow: hidden; }
.dscreen-top { background: #fff; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.dscreen-top .mini-logo { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 16px; }
.dscreen-top .mini-logo b { color: var(--teal); } .dscreen-top .mini-logo i { color: var(--sky); font-style: normal; }
.dscreen-top .mini-sub { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.dscreen-body { padding: 14px; display: grid; gap: 10px; }

/* ---- Logo + slogan Buppi Loop (hero) ---- */
.loop-wordmark { width: 220px; max-width: 62%; height: auto; display: block; margin: 4px 0 8px; }
.loop-slogan { font-style: italic; font-weight: 600; color: var(--ink-soft); font-size: 17px; margin: 0 0 20px; }

/* ---- Carosello telefono (screenshot reali) ---- */
.phone-carousel { display: flex; flex-direction: column; align-items: center; width: 100%; }
.phone { width: 268px; max-width: 72%; margin: 0 auto; background: #2a333c; border-radius: 42px; padding: 11px; box-shadow: 0 26px 55px rgba(47,58,70,.24); }
.phone-screen { position: relative; border-radius: 32px; overflow: hidden; background: #F7FAFB; aspect-ratio: 100 / 199; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.phone-screen img.is-active { opacity: 1; }
.phone-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.phone-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(47,58,70,.22); cursor: pointer; transition: background .2s, width .2s; }
.phone-dots button.on { background: var(--teal); width: 22px; border-radius: 5px; }

/* ---- Pezzi di interfaccia ricostruiti ---- */
.ui { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.ui-title { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.ui-title .tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-left: auto; }

.row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; font-family: "Baloo 2", sans-serif; }
.row .nm { font-weight: 700; font-size: 14px; }
.row .meta { margin-left: auto; font-size: 12.5px; font-weight: 700; }
.dot-in { color: var(--teal-d); } .dot-out { color: var(--ink-soft); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 10px; }

/* colori area */
.a-teal { --area: var(--teal); --area-d: var(--teal-d); }
.a-sky  { --area: var(--sky);  --area-d: #6a3fb0; }
.a-sun  { --area: #b9852a;     --area-d: #9a6f1f; }
.a-pink { --area: var(--pink); --area-d: #c53a72; }
.tag.t-teal, .pill.t-teal { background: rgba(22,169,173,.14); color: var(--teal-d); }
.tag.t-sky,  .pill.t-sky  { background: rgba(130,80,200,.14); color: #6a3fb0; }
.tag.t-sun,  .pill.t-sun  { background: rgba(233,180,76,.22); color: #8a6412; }
.tag.t-pink, .pill.t-pink { background: rgba(229,83,155,.14); color: #c53a72; }

/* ---- La giornata (blocchi alternati) ---- */
.day { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 40px 0; }
.day:nth-child(even) .day-text { order: 2; }
.day-kicker { font-family: "Baloo 2", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; color: var(--area, var(--teal-d)); margin: 0 0 8px; }
.day h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0 0 12px; }
.day p { font-size: 17px; color: var(--ink-soft); margin: 0; max-width: 46ch; }
.day-media { display: flex; justify-content: center; }
.day-media .ui { width: 100%; max-width: 380px; box-shadow: var(--shadow); }

/* ---- Tabella chi vede cosa ---- */
.roles-wrap { margin-top: 34px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.roles { width: 100%; border-collapse: collapse; min-width: 640px; }
table.roles th, table.roles td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--line); }
table.roles thead th { font-family: "Baloo 2", sans-serif; font-size: 13px; color: var(--ink); background: var(--cream-2); position: sticky; left: auto; }
table.roles tbody th { text-align: left; font-weight: 700; font-size: 14.5px; white-space: nowrap; position: sticky; left: 0; background: #fff; }
table.roles tbody tr:last-child th, table.roles tbody tr:last-child td { border-bottom: 0; }
.mark { display: inline-flex; align-items: center; justify-content: center; min-width: 62px; font-size: 12px; font-weight: 800; font-family: "Baloo 2", sans-serif; padding: 5px 8px; border-radius: 999px; }
.m-scrive { background: rgba(245,130,11,.15); color: var(--orange-d); }
.m-vede { background: rgba(22,169,173,.14); color: var(--teal-d); }
.m-no { background: #f0f2f4; color: var(--ink-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.legend .mark { margin-right: 6px; }
.role-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.role-note { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 16px; padding: 20px 22px; font-weight: 700; font-size: 16px; }
.role-note.pink { border-left-color: var(--pink); }

/* ---- Diciamolo chiaro (cosa non fa) ---- */
.honest { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; margin-top: 28px; }
.honest li { list-style: none; padding-left: 28px; position: relative; font-size: 16px; color: var(--ink); }
.honest li::before { content: "→"; position: absolute; left: 0; color: var(--teal-d); font-weight: 800; }
.honest li b { font-weight: 800; }

/* ---- Privacy ---- */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.priv { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.priv .pi { font-size: 26px; margin-bottom: 10px; }
.priv h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.priv p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---- Come si comincia ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; }
.step .n { counter-increment: step; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 20px; color: #fff; background: var(--teal); width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step .n::before { content: counter(step); }
.step h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-planet, .hero-planet-move { animation: none; }
  .hero-plate, .planet-orbit { transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .btn-header { display: none; }
  .nav-toggle { display: block; margin-left: 8px; }
  .lang { margin-left: auto; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 14px 2px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { height: auto; min-height: 0; }
  .worlds { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .day { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
  .day:nth-child(even) .day-text { order: 0; }
  .day-media { order: -1; }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .role-notes { grid-template-columns: 1fr; }
  .honest { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .privacy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero { padding: 48px 0 24px; }
  .section { padding: 56px 0; }
  .world { flex-direction: column; }
}
