@font-face{font-family:"Luckiest Guy";src:url("luckiestguy.ttf") format("truetype");font-display:swap}  /* Apache 2.0, Astigmatic */
/* Giochiamo Inglese · VERIFICHE: the menu page (schools → years → tests). Same look as the worksheets,
   but alive: the years are speech bubbles that float and pulse, Wormy talks, the cards pop in. */
:root{
  --desk:#EEF1F6; --ink:#2B2320; --muted:#6E5F57;
  --navy:#14267a; --gi-yellow:#FFD84D; --gi-red:#E8283C; --key:#1f47c8;
  --display:"Luckiest Guy","Arial Rounded MT Bold","Trebuchet MS",sans-serif;
  --body:"Nunito",system-ui,sans-serif;
  --wide:1080px; --pad:16px;
  color-scheme:light;
}
*{box-sizing:border-box}
html{overflow-x:hidden}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--desk);color:var(--ink);font-family:var(--body);position:relative;overflow-x:hidden}
a{color:inherit}
:focus-visible{outline:3px solid var(--gi-yellow);outline-offset:3px}

/* ---------- Floating bubbles in the background ---------- */
.sky{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.sky i{position:absolute;bottom:-60px;border-radius:50%;opacity:.0;
  background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.9),color-mix(in srgb,var(--c) 40%,transparent) 60%);
  animation:rise var(--t) linear infinite;animation-delay:var(--w)}
.sky i:nth-child(1){left:4%;width:26px;height:26px;--c:#FF5A5F;--t:17s;--w:0s}
.sky i:nth-child(2){left:13%;width:14px;height:14px;--c:#FF9F1C;--t:12s;--w:-4s}
.sky i:nth-child(3){left:22%;width:34px;height:34px;--c:#3A86FF;--t:21s;--w:-9s}
.sky i:nth-child(4){left:33%;width:18px;height:18px;--c:#2BC46F;--t:15s;--w:-2s}
.sky i:nth-child(5){left:45%;width:12px;height:12px;--c:#8E7DFF;--t:11s;--w:-7s}
.sky i:nth-child(6){left:55%;width:30px;height:30px;--c:#F5C400;--t:19s;--w:-12s}
.sky i:nth-child(7){left:64%;width:16px;height:16px;--c:#FF70A6;--t:14s;--w:-5s}
.sky i:nth-child(8){left:73%;width:24px;height:24px;--c:#2EC4B6;--t:18s;--w:-1s}
.sky i:nth-child(9){left:82%;width:14px;height:14px;--c:#7E46CF;--t:13s;--w:-8s}
.sky i:nth-child(10){left:90%;width:32px;height:32px;--c:#11857A;--t:22s;--w:-15s}
.sky i:nth-child(11){left:96%;width:12px;height:12px;--c:#012169;--t:12s;--w:-3s}
.sky i:nth-child(12){left:38%;width:22px;height:22px;--c:#FF5A5F;--t:20s;--w:-11s}
@keyframes rise{0%{transform:translate(0,0);opacity:0}10%{opacity:.55}50%{transform:translate(18px,-55vh)}90%{opacity:.4}100%{transform:translate(-10px,-110vh);opacity:0}}
.top,.menu,.list,.bar{position:relative;z-index:1}

/* ---------- Speech bubbles (shared) ---------- */
.bubble{position:relative;background:#fff;border-radius:22px;box-shadow:0 4px 14px rgba(20,38,122,.10)}
.bubble::after{content:"";position:absolute;width:20px;height:20px;background:inherit;border:inherit;border-top:0;border-right:0;
  bottom:-9px;left:26px;transform:rotate(-45deg);border-radius:0 0 0 5px}

/* ---------- Top ---------- */
.top{background:#fff;padding:18px var(--pad) 0;text-align:center;box-shadow:0 2px 12px rgba(20,38,122,.08)}
.top h1{margin:0;font:400 clamp(46px,11vw,86px)/1 var(--display);letter-spacing:.03em;color:#fff;
  -webkit-text-stroke:3px #000;paint-order:stroke fill}
.top h1 span{display:inline-block;animation:wave 2.8s ease-in-out infinite;animation-delay:calc(var(--k) * .12s)}
@keyframes wave{0%,60%,100%{transform:translateY(0) rotate(0)}30%{transform:translateY(-9px) rotate(-4deg)}}
.sub{margin:8px 0 6px;font-weight:700;color:var(--muted)}
.hero{display:flex;align-items:flex-end;justify-content:center;gap:10px;margin:6px auto 12px;max-width:var(--wide)}
.hero .wormy{width:78px;flex:none;animation:bob 2.4s ease-in-out infinite;transform-origin:50% 100%}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-6px) rotate(3deg)}}
.talk{margin:0 0 34px;padding:12px 18px;font-weight:800;font-size:clamp(15px,3.6vw,18px);border:2.5px solid var(--yc,#2BC46F);
  max-width:430px;text-align:left;animation:breathe 2.6s ease-in-out infinite}
.talk::after{left:-9px;bottom:16px;transform:rotate(45deg)}
.talk.pop{animation:popin .45s cubic-bezier(.2,1.6,.4,1),breathe 2.6s ease-in-out .45s infinite}
@keyframes breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
@keyframes popin{0%{transform:scale(.6);opacity:0}100%{transform:scale(1);opacity:1}}
.stripe{height:8px;margin:0 calc(-1 * var(--pad));background:linear-gradient(#C8102E 0 33.3%,#fff 33.3% 66.6%,#C8102E 66.6%)}

/* ---------- Menu: two schools side by side, same height ---------- */
.menu{max-width:var(--wide);width:100%;margin:0 auto;padding:22px var(--pad) 6px;display:grid;gap:16px;align-items:stretch}
@media (min-width:880px){.menu{grid-template-columns:5fr 3fr}}
.school{background:rgba(255,255,255,.92);border-radius:22px;padding:16px 16px 22px;box-shadow:0 2px 12px rgba(20,38,122,.07);display:flex;flex-direction:column}
.school h2{margin:0 0 14px;display:flex;flex-direction:column;gap:1px}
.school h2 b{font:800 18px var(--body);color:var(--navy)}
.school h2 i{font-style:normal;font-weight:600;color:var(--muted);font-size:13px}
.years{flex:1;display:grid;gap:18px 12px;grid-template-columns:repeat(2,1fr);align-content:start}
@media (min-width:520px){.school-primaria .years{grid-template-columns:repeat(3,1fr)}.school-media .years{grid-template-columns:repeat(3,1fr)}}
@media (min-width:880px){.school-primaria .years{grid-template-columns:repeat(5,1fr)}}

/* each year = a speech bubble that floats; the chosen one glows and pulses */
.year{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:3px;min-height:112px;padding:12px 8px;
  text-decoration:none;border:3px solid color-mix(in srgb,var(--yc) 55%,#fff);background:color-mix(in srgb,var(--yc) 8%,#fff);
  animation:float 3.2s ease-in-out infinite;animation-delay:calc(var(--d) * -1);transition:background .2s,border-color .2s,box-shadow .2s}
.year::after{left:50%;margin-left:-10px;bottom:-11px}
.year b{font:400 30px/1 var(--display);color:var(--yc);padding-top:3px}
.year span{font-weight:800;font-size:14px;line-height:1.15}
.year em{font-style:normal;font-size:12px;font-weight:700;color:var(--muted)}
.year:hover{border-color:var(--yc)}
.year.on{background:var(--yc);border-color:var(--yc);animation:float 3.2s ease-in-out infinite,glow 1.6s ease-in-out infinite}
.year.on b,.year.on span,.year.on em{color:#fff}
@keyframes float{0%,100%{transform:translateY(0) rotate(-.6deg)}50%{transform:translateY(-6px) rotate(.6deg)}}
@keyframes glow{0%,100%{box-shadow:0 4px 14px color-mix(in srgb,var(--yc) 35%,transparent)}50%{box-shadow:0 6px 26px 4px color-mix(in srgb,var(--yc) 60%,transparent)}}

/* ---------- Tests of the chosen year ---------- */
.list{flex:1;max-width:var(--wide);width:100%;margin:0 auto;padding:18px var(--pad) 34px}
.yt{display:flex;align-items:center;gap:12px;margin:4px 0 16px;animation:slidein .4s ease-out}
.yt b{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--yc);color:#fff;font:400 22px var(--display);padding-top:3px;
  animation:glow 1.6s ease-in-out infinite}
.yt span{display:flex;flex-direction:column;font:800 22px/1.15 var(--body)}
.yt i{font-style:normal;font-weight:600;font-size:14px;color:var(--muted)}
@keyframes slidein{from{transform:translateX(-14px);opacity:0}to{transform:none;opacity:1}}
.cards{display:grid;gap:18px;grid-template-columns:repeat(auto-fill,minmax(min(100%,480px),1fr))}
.card{display:flex;gap:16px;background:#fff;border-radius:22px;padding:16px;border:3px solid color-mix(in srgb,var(--yc) 35%,#fff);
  box-shadow:0 4px 16px rgba(20,38,122,.09);animation:cardin .5s cubic-bezier(.2,1.4,.4,1) both;animation-delay:calc(var(--i) * .08s);transition:transform .2s,box-shadow .2s}
.card:hover{transform:translateY(-3px);box-shadow:0 10px 26px color-mix(in srgb,var(--yc) 30%,transparent)}
@keyframes cardin{from{transform:translateY(18px) scale(.96);opacity:0}to{transform:none;opacity:1}}
.thumb{flex:none;width:122px;align-self:flex-start;border-radius:6px;overflow:hidden;box-shadow:0 3px 10px rgba(0,0,0,.2);background:#fff;
  transform:rotate(-3deg);transition:transform .25s}
.card:hover .thumb{transform:rotate(0) scale(1.04)}
.thumb img{display:block;width:100%;aspect-ratio:210/297;object-fit:cover}
.info{min-width:0;display:flex;flex-direction:column;gap:8px;flex:1}
.info h3{margin:0;font:400 23px/1.1 var(--display);letter-spacing:.02em}
.info p{margin:0;line-height:1.45;font-size:15px}
.meta{display:flex;flex-wrap:wrap;gap:6px}
.meta span{font-size:12.5px;font-weight:800;color:var(--muted);background:var(--desk);border-radius:999px;padding:3px 10px}
.acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:4px}
.btn{text-decoration:none;font-weight:800;font-size:14px;padding:10px 16px;border-radius:999px;background:var(--yc);color:#fff;border:2px solid var(--yc);
  transition:transform .15s}
.btn:hover{transform:scale(1.05)}
.btn:first-child{animation:breathe 2.2s ease-in-out infinite}
.btn.key{background:#fff;color:var(--key);border-color:var(--key)}
@media (max-width:460px){.card{flex-direction:column;align-items:center;text-align:center}.thumb{width:62%;max-width:210px;align-self:center}
  .meta,.acts{justify-content:center}}
.empty{display:flex;align-items:flex-end;gap:14px;padding:6px 4px;animation:cardin .5s cubic-bezier(.2,1.4,.4,1) both}
.empty .wormy{width:84px;flex:none;animation:bob 2.4s ease-in-out infinite}
.empty .bubble{margin:0 0 30px;padding:16px 20px;font-size:16px;line-height:1.45;border:3px solid var(--yc);animation:breathe 2.6s ease-in-out infinite;max-width:520px}
.empty .bubble::after{left:-10px;bottom:18px;transform:rotate(45deg)}

/* ---------- Bottom banner ---------- */
.bar{background:var(--navy);color:#fff;display:flex;align-items:center;gap:14px;padding:12px var(--pad)}
.bar>*{position:relative}
.badge{width:74px;height:74px;flex:none;display:block;background:#fff;border-radius:50%}
.gi{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;line-height:1.05;min-width:0}
.gi-t{font:800 clamp(22px,5vw,32px)/1 "Baloo 2",var(--display);color:#fff}
.gi-t em,.gi-s em{font-style:normal;color:var(--gi-yellow)}
.gi-s{font:400 clamp(16px,3.6vw,22px)/1.2 "Kaushan Script",cursive;margin-top:3px}
.gi-s i{font-style:normal;color:var(--gi-red)}
.gi small{font-weight:800;font-size:12px;margin-top:4px;opacity:.9}
.qr{display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;flex:none;width:74px}
.qr img{width:56px;height:56px;background:#fff;border-radius:6px;padding:3px}
.qr small{font-size:10px;font-weight:800;text-align:center}
@media (max-width:420px){.badge,.qr{width:56px}.badge{height:56px}.qr img{width:44px;height:44px}}
.wbadge{display:block;width:100%;height:auto;overflow:visible}
.wbadge .bn{font-family:'Baloo 2',Fredoka,sans-serif;font-weight:800;font-size:56px;letter-spacing:4px;stroke:#012169;stroke-width:3px;paint-order:stroke fill}
.wbadge .bb{font-family:'Baloo 2',Fredoka,sans-serif;font-weight:800;font-size:27px;letter-spacing:1px;stroke:#012169;stroke-width:1.6px;paint-order:stroke fill}
.wbadge .bb .by{fill:#012169;stroke:none;font-weight:700}

/* calmer for people who ask for less movement */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.sky{display:none}}

/* ---------- alignment fixes ---------- */
.years{grid-template-columns:repeat(3,1fr)!important}
@media (min-width:880px){.school-primaria .years{grid-template-columns:repeat(5,1fr)!important}}
@keyframes float{0%,100%{transform:translateY(0) rotate(-.5deg)}50%{transform:translateY(-4px) rotate(.5deg)}}
.hero .wormy{width:96px}
@media (max-width:520px){
  .sub{font-size:13.5px}
  .years{gap:16px 8px}
  .year{min-height:98px;padding:10px 4px;border-radius:18px}
  .year b{font-size:26px}
  .year span{font-size:12.5px}
  .year em{font-size:11px}
  .hero .wormy{width:76px}
}

/* ---------- Schede & Verifiche: title size + the two tabs of each year ---------- */
.top h1{font-size:clamp(34px,8.6vw,78px)}
.yhead{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;margin:4px 0 22px}
.yhead .yt{margin:0}
.tabs{display:flex;gap:12px}
.tab{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:800;font-size:16px;padding:10px 18px;border:3px solid color-mix(in srgb,var(--yc) 50%,#fff);
  border-radius:999px;background:#fff;transition:background .2s,color .2s;animation:float 3.2s ease-in-out infinite}
.tab:nth-child(2){animation-delay:-1.6s}
.tab::after{left:50%;margin-left:-10px;bottom:-10px}
.tab small{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:999px;background:color-mix(in srgb,var(--yc) 15%,#fff);color:var(--ink);font-size:13px;padding:0 6px}
.tab.on{background:var(--yc);border-color:var(--yc);color:#fff;animation:float 3.2s ease-in-out infinite,glow 1.6s ease-in-out infinite}
.tab.on small{background:rgba(255,255,255,.3);color:#fff}
@media (max-width:520px){.yhead{flex-direction:column;align-items:stretch}.tabs{justify-content:stretch}.tab{flex:1;justify-content:center;font-size:15px;padding:9px 10px}}
.stripe{background:linear-gradient(var(--yc,#C8102E) 0 33.3%,#fff 33.3% 66.6%,var(--yc,#C8102E) 66.6%);transition:background .3s}

/* each worksheet names its test, each test its worksheet (13 Nov 2026) */
.card .pair{margin:.1em 0 .35em;font-weight:800;font-size:.86em;color:var(--yc)}
.card .pair a{color:inherit}
.card .pair.rip{color:#7a6a62}
.card:has(.mapthumb){flex-direction:column}
.mapthumb{width:100%;background:#0B1022;transform:none}
.mapthumb img{aspect-ratio:860/406;object-fit:cover}

/* 📝 Schede: two folders, Gioca online / Scarica o stampa (17 Nov 2026) */
.folders{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));margin:0 0 22px}
.folder{position:relative;display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--ink);background:#fff;border:3px solid color-mix(in srgb,var(--yc) 45%,#fff);
  border-radius:22px;padding:16px 18px 16px 14px;box-shadow:0 6px 0 color-mix(in srgb,var(--yc) 30%,#fff);animation:cardin .5s cubic-bezier(.2,1.4,.4,1) both;animation-delay:calc(var(--i)*.12s);transition:transform .15s}
.folder:hover{transform:translateY(-3px) scale(1.02)}
.folder .fic{flex:none;display:grid;place-items:center;width:62px;height:52px;font-size:30px;border-radius:8px 14px 12px 12px;background:color-mix(in srgb,var(--yc) 22%,#fff);
  position:relative;box-shadow:inset 0 -4px 0 color-mix(in srgb,var(--yc) 35%,#fff)}
.folder .fic::before{content:"";position:absolute;left:0;top:-8px;width:28px;height:10px;border-radius:6px 8px 0 0;background:color-mix(in srgb,var(--yc) 22%,#fff)}
.folder .ft{display:flex;flex-direction:column;gap:3px;min-width:0}
.folder .ft b{font-size:19px}
.folder .ft i{font-style:normal;font-size:13.5px;line-height:1.35;color:#5b6475}
.folder .fn{position:absolute;top:-10px;right:-8px;min-width:28px;height:28px;display:grid;place-items:center;border-radius:999px;background:var(--yc);color:#fff;font-weight:900;font-size:14px;padding:0 6px}
.folder.on{background:var(--yc);border-color:var(--yc);color:#fff;animation:cardin .5s both,glow 1.6s ease-in-out infinite}
.folder.on .ft i{color:rgba(255,255,255,.92)}
.folder.on .fic,.folder.on .fic::before{background:rgba(255,255,255,.25)}
.folder.on .fn{background:#fff;color:var(--yc)}
@media (prefers-reduced-motion:reduce){.folder,.folder.on{animation:none}}

/* v12: one year at a time */
body.solo .hero, body.solo #menu{display:none}
body.solo .top{padding-bottom:6px}
.allyears{display:inline-block;margin:10px 0 4px;padding:7px 14px;border-radius:999px;background:#fff;border:2px solid var(--yc,#14267a);color:#14267a;font:800 15px Nunito,sans-serif;text-decoration:none;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.allyears:hover{background:var(--yc,#14267a);color:#fff}
