/* ABOARD — colori e font dalle Brand Guidelines 2026 */
/* Outfit (SIL Open Font License) servito dal sito, senza chiamate a Google */
@font-face{font-family:"Outfit";font-style:normal;font-weight:300 800;font-display:swap;src:url(assets/fonts/outfit-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Outfit";font-style:normal;font-weight:300 800;font-display:swap;src:url(assets/fonts/outfit-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  --nero:#141414; --bianco:#fff; --crema:#f7f3ec;
  --giallo:#F2B705; --rosso:#C93838; --blu:#2F6FDE;
  --verde:#23864B; --azzurro:#3CC8E8; --arancio:#F28C28;
  --grigio:#5a5a5a; --linea:#e6e0d6;
  --r:14px; --wrap:1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:72px;overflow-x:clip}
#attivita{overflow:clip}
body{margin:0;background:var(--bianco);color:var(--nero);font-family:"Outfit",system-ui,sans-serif;font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:clip}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{line-height:1.1;margin:0}
h2{font-size:clamp(30px,4.6vw,48px);font-weight:800;letter-spacing:-.01em;margin-bottom:14px}
h3{font-size:20px;font-weight:700}
p{margin:0 0 14px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.sec{padding:88px 0}
.sec-cream{background:var(--crema)}
.sec-dark{background:var(--nero);color:var(--bianco)}
.eyebrow{font-weight:700;text-transform:uppercase;letter-spacing:.12em;font-size:13px;color:var(--grigio);margin-bottom:10px}
.eyebrow-y{color:var(--giallo)}
.lead{font-size:19px;color:var(--grigio);max-width:560px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}

/* bottoni */
.btn{display:inline-block;font:inherit;font-weight:700;text-decoration:none;border-radius:999px;padding:14px 26px;border:2px solid var(--nero);cursor:pointer;transition:transform .15s,box-shadow .15s}
.btn:hover{transform:translateY(-2px);box-shadow:0 4px 0 var(--giallo)}
.btn-dark{background:var(--nero);color:var(--bianco)}
.sec-dark .btn-dark{background:var(--bianco);color:var(--nero);border-color:var(--bianco)}
.btn-line{background:transparent;color:var(--nero)}
.btn-sm{padding:9px 18px;font-size:15px}

/* header */
.top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--linea)}
.top-in{max-width:var(--wrap);margin:0 auto;padding:10px 20px;display:flex;align-items:center;gap:24px}
.top-logo{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:800;letter-spacing:.04em}
.top-logo img{width:30px}
.top-nav{display:flex;gap:22px;margin-left:auto}
.top-nav a{text-decoration:none;font-weight:500;font-size:15px}
.top-nav a:hover{text-decoration:underline;text-decoration-color:var(--giallo);text-decoration-thickness:3px;text-underline-offset:5px}

/* etichetta: nastro nero inclinato con ombra colorata */
.label{display:inline-block;margin:0}
.label span{display:inline-block;background:var(--nero);color:var(--giallo);font-weight:800;text-transform:uppercase;letter-spacing:.14em;font-size:clamp(13px,1.8vw,18px);padding:10px 22px;transform:rotate(-3deg);box-shadow:6px 6px 0 var(--giallo)}
.label-y span{background:var(--bianco);color:var(--nero)}

/* hero */
.hero{position:relative;overflow:hidden;padding:72px 0 96px;min-height:min(86vh,760px);display:flex;align-items:center}
.hero-in{position:relative;z-index:2;max-width:var(--wrap);margin:0 auto;padding:0 20px;width:100%;pointer-events:none}
.hero-in>*{pointer-events:auto}
.hero-logo,.hero-text{width:fit-content;max-width:min(640px,100%)}
.hero-logo{max-width:640px;margin-bottom:26px}
.hero-sub{margin:30px 0 8px;font-weight:700;text-transform:uppercase;letter-spacing:.2em;font-size:14px}
.hero-text{font-size:21px;max-width:520px;color:#333}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.meeples{position:absolute;inset:0;pointer-events:none}
.m{position:absolute;width:120px;height:120px;--k:1;--d:0s;transform:translateY(calc(var(--sy,0px) * var(--k) * -.25))}
.m svg{display:block;width:100%;height:100%;fill:inherit;pointer-events:auto;cursor:pointer}
.m1{fill:var(--rosso);width:170px;height:170px;right:6%;top:16%;rotate:-14deg;--k:.6;--d:.15s}
.m2{fill:var(--blu);right:24%;top:8%;rotate:12deg;--k:1.2;--d:0s}
.m3{fill:var(--giallo);width:90px;height:90px;right:30%;top:52%;rotate:-20deg;--k:1.6;--d:.45s}
.m4{fill:var(--verde);right:12%;top:58%;rotate:8deg;--k:.9;--d:.3s}
.m5{fill:var(--azzurro);width:100px;height:100px;right:2%;top:2%;rotate:24deg;--k:1.4;--d:.6s}
.m6{fill:var(--arancio);width:80px;height:80px;right:4%;bottom:6%;rotate:-8deg;--k:.5;--d:.75s}
.die{position:absolute;width:54px;height:54px}
.die svg{display:block;width:100%;height:100%;pointer-events:auto;cursor:pointer;overflow:visible;transition:scale .2s}
.die svg:hover{scale:1.1}
.die svg,.m svg{-webkit-tap-highlight-color:transparent;outline:none}
.die svg:focus-visible{outline:3px solid var(--azzurro);outline-offset:4px;border-radius:10px}
.die rect{fill:var(--bianco);stroke:var(--nero);stroke-width:3}
.die circle{fill:var(--nero)}
.d1{right:21%;top:38%;rotate:-12deg;transform:translateY(calc(var(--sy,0px) * -.4))}
.d2{right:21%;bottom:12%;rotate:16deg;transform:translateY(calc(var(--sy,0px) * -.1))}
.d2 rect{fill:var(--nero)} .d2 circle{fill:var(--bianco)}

/* fasce diagonali */
.bands{list-style:none;margin:36px 0 0;padding:0;display:flex;flex-direction:column;gap:14px}
.band{display:flex;align-items:center;gap:22px;padding:22px 9% 22px max(20px,calc((100vw - var(--wrap))/2 + 20px));width:88%;color:var(--bianco);clip-path:polygon(0 0,100% 0,calc(100% - 48px) 100%,0 100%)}
.band:nth-child(even){margin-left:auto;padding:22px max(20px,calc((100vw - var(--wrap))/2 + 20px)) 22px 9%;clip-path:polygon(48px 0,100% 0,100% 100%,0 100%);justify-content:flex-start}
.band h3{font-size:clamp(19px,2.4vw,26px);margin-bottom:4px}
.band p{margin:0;opacity:.92;font-size:16px;max-width:620px}
.band a{font-weight:700}
.ico{flex:none;width:44px;height:44px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ico .f{fill:currentColor;stroke:none}
.b-giallo{background:var(--giallo);color:var(--nero)}
.b-rosso{background:var(--rosso)}
.b-blu{background:var(--blu)}
.b-verde{background:var(--verde)}
.b-azzurro{background:var(--azzurro);color:var(--nero)}
.b-arancio{background:var(--arancio);color:var(--nero)}

/* chi siamo */
.ideas{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.ideas li{display:flex;gap:18px;background:var(--bianco);border-radius:var(--r);padding:22px;border:1px solid var(--linea)}
.ideas .n{flex:none;width:40px;height:40px;border-radius:50%;background:var(--nero);color:var(--giallo);font-weight:800;display:grid;place-items:center}
.ideas h3{margin-bottom:4px}
.ideas p{margin:0;color:var(--grigio)}

/* eventi */
.empty{margin-top:30px;display:flex;align-items:center;gap:36px;border:2px dashed #cfc8bb;border-radius:var(--r);padding:36px}
.empty p{font-size:19px;max-width:560px}
.dashed{flex:none;width:130px;height:130px;fill:none;stroke:var(--nero);stroke-width:2.2;stroke-dasharray:6 6}
.events{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px;margin-top:30px}
.event{border-radius:var(--r);overflow:hidden;border:1px solid var(--linea);border-top:8px solid var(--nero)}
.event.e-rosso{border-top-color:var(--rosso)}
.event-body{padding:20px}
.event-tag{font-weight:700;text-transform:uppercase;font-size:13px;letter-spacing:.1em;color:var(--grigio)}

/* tessera */
.sec-dark p{color:#ddd}
.note{font-size:14px;color:#aaa!important}
.card{background:var(--bianco);color:var(--nero);border-radius:20px;padding:26px;rotate:2deg;box-shadow:10px 10px 0 var(--giallo);max-width:460px;justify-self:center;width:100%}
.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}
.card-head img{width:150px}
.card-head span{font-weight:700;text-transform:uppercase;font-size:12px;letter-spacing:.12em;color:var(--grigio)}
.stamps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.stamps li{aspect-ratio:1;border:2px dashed #bbb;border-radius:50%;display:grid;place-items:center;font-weight:700;color:#999;font-size:15px}
.stamps li.on{border:none;background:var(--rosso);color:var(--bianco);rotate:-10deg}
.stamps li.on:nth-child(2){background:var(--blu)} .stamps li.on:nth-child(3){background:var(--verde)}
.stamps li.free{border:2px solid var(--nero);background:var(--giallo);color:var(--nero);line-height:1;align-content:center;font-size:14px}
.stamps small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em}

/* feste + form */
.checks{list-style:none;padding:0;margin:18px 0 0}
.checks li{padding-left:30px;position:relative;margin-bottom:8px}
.checks li::before{content:"";position:absolute;left:0;top:6px;width:16px;height:16px;border-radius:50%;background:var(--azzurro)}
.form{background:var(--bianco);border-radius:20px;padding:28px;border:1px solid var(--linea);display:flex;flex-direction:column;gap:14px}
.form label{display:flex;flex-direction:column;gap:6px;font-weight:500;font-size:15px}
.form .opt{font-weight:400;color:var(--grigio)}
.form input,.form select,.form textarea{font:inherit;font-size:16px;padding:11px 13px;border:1.5px solid #cfc8bb;border-radius:10px;background:var(--bianco);color:var(--nero);width:100%}
.form input:focus,.form select:focus,.form textarea:focus{outline:none;border-color:var(--nero);box-shadow:0 0 0 3px rgba(60,200,232,.35)}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form .consent{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400;color:var(--grigio)}
.form .consent input{width:auto;margin:0 8px 0 0;vertical-align:-2px}
.form .consent a{color:var(--nero);font-weight:500}
.form .btn{align-self:flex-start}
.hp{position:absolute;left:-9999px}

/* footer */
.foot{position:relative;overflow:hidden;background:var(--nero);color:var(--bianco);padding:80px 0 40px}
.foot-logo{width:min(420px,80%);margin-bottom:26px}
.foot-title{margin-top:40px;font-weight:700;text-transform:uppercase;letter-spacing:.14em;font-size:13px;color:#aaa}
.contacts{list-style:none;padding:0;margin:0 0 50px;display:flex;flex-wrap:wrap;gap:14px 34px}
.contacts a{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:19px;font-weight:500}
.contacts a:hover{color:var(--giallo)}
.contacts svg{width:24px;height:24px;fill:none;stroke:var(--giallo);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.contacts svg .f{fill:var(--giallo);stroke:none}
.copy{font-size:14px;color:#888;margin:0}
.foot-meeple{position:absolute;right:-40px;bottom:-60px;width:320px;height:320px;fill:#222;rotate:calc(-18deg + var(--fy,0) * .06deg)}
.foot .wrap{position:relative;z-index:1}

/* tablet e telefono */
@media (max-width:900px){
  .top-nav{display:none}
  .top-in .btn{margin-left:auto}
  .two{grid-template-columns:1fr;gap:36px}
  .hero{min-height:0;padding:40px 0 230px}
  .m1{width:120px;height:120px;right:52%;top:auto;bottom:30px}
  .m2{width:90px;height:90px;right:30%;top:auto;bottom:110px}
  .m3{width:64px;height:64px;right:6%;top:auto;bottom:150px}
  .m4{width:90px;height:90px;right:12%;top:auto;bottom:20px}
  .m5{display:none}
  .m6{width:60px;height:60px;right:auto;left:4%;bottom:150px}
  .d1{right:38%;top:auto;bottom:40px;width:42px;height:42px}
  .d2{right:4%;bottom:96px;width:40px;height:40px}
  .band,.band:nth-child(even){width:96%;padding:18px 40px 18px 20px}
  .band:nth-child(even){padding:18px 20px 18px 40px}
  .ico{width:36px;height:36px}
  .empty{flex-direction:column;align-items:flex-start;padding:26px}
  .dashed{width:90px;height:90px}
}
@media (max-width:520px){
  body{font-size:16px}
  .sec{padding:64px 0}
  .wrap,.hero-in,.top-in{padding-left:16px;padding-right:16px}
  .hero-text{font-size:18px}
  .band p{font-size:15px}
  .form{padding:20px}
  .form .row{grid-template-columns:1fr}
  .card{rotate:0deg}
  .contacts a{font-size:17px}
  .top-logo span{display:none}
}
/* ---------- movimento ---------- */
@media (prefers-reduced-motion:no-preference){
  /* meeple e dadi cadono sul tavolo, poi ondeggiano */
  .m{animation:drop .9s cubic-bezier(.3,1.4,.5,1) var(--d) both}
  .m svg{transform-origin:50% 100%}
  /* ognuno il suo carattere (a riposo) */
  .m2 svg{animation:hop 3.4s ease-in-out 2s infinite}
  .m3 svg{transform-origin:50% 55%;animation:spin 5s cubic-bezier(.5,0,.3,1) 2.6s infinite}
  .m4 svg{animation:waddle 1.4s ease-in-out 1.6s infinite}
  .m5 svg{animation:float 4.5s ease-in-out 1.6s infinite}
  .m6 svg{animation:wave 4.2s ease-in-out 3s infinite}
  /* al clic */
  .m1 svg.act{animation:squish .5s cubic-bezier(.3,1.5,.5,1)}
  .m2 svg.act,.m4 svg.act,.m5 svg.act{animation:jump .6s cubic-bezier(.3,1.5,.5,1)}
  .m3 svg.act{animation:spinFast .8s cubic-bezier(.3,1.2,.5,1)}
  .m6 svg.act{animation:waveFast .9s ease-in-out}
  .die{animation:dieDrop 1s cubic-bezier(.3,1.3,.5,1) .9s both}
  .d2{animation-delay:1.05s}
  .die svg.roll{animation:roll .8s cubic-bezier(.25,.8,.35,1)}
  .label span{animation:labelIn .7s cubic-bezier(.3,1.5,.5,1) .25s both}

  /* comparsa allo scorrimento */
  .js .reveal{opacity:0;translate:0 28px;transition:opacity .7s ease,translate .7s cubic-bezier(.2,.8,.3,1)}
  .js .reveal.in{opacity:1;translate:0 0}

  /* fasce: entrano alternate da sinistra e da destra */
  .js .band{opacity:0;translate:-90px 0;transition:opacity .6s ease,translate .7s cubic-bezier(.2,.9,.3,1.1)}
  .js .band:nth-child(even){translate:90px 0}
  .js .band.in{opacity:1;translate:0 0}
  .band .ico{transition:rotate .4s}
  .band:hover .ico{rotate:-12deg}

  /* tre idee una dopo l'altra */
  .js .ideas li{opacity:0;translate:40px 0;transition:opacity .6s ease,translate .6s cubic-bezier(.2,.8,.3,1)}
  .js .ideas li:nth-child(2){transition-delay:.12s}
  .js .ideas li:nth-child(3){transition-delay:.24s}
  .js .ideas li.in{opacity:1;translate:0 0}

  /* posto libero: il meeple tratteggiato aspetta */
  .js .empty{opacity:0;scale:.96;transition:opacity .6s,scale .6s cubic-bezier(.3,1.4,.5,1)}
  .js .empty.in{opacity:1;scale:1}
  .dashed{animation:wait 2.8s ease-in-out infinite;transform-origin:50% 100%}
  .dashed use{animation:dash 6s linear infinite}

  /* tessera: arriva ruotando, poi i timbri si stampano */
  .js .card{opacity:0;translate:0 70px;rotate:-8deg;transition:opacity .7s,translate .9s cubic-bezier(.2,1.2,.4,1),rotate .9s cubic-bezier(.2,1.2,.4,1)}
  .js .card.in{opacity:1;translate:0 0;rotate:2deg}
  .js .card .stamps li.on{opacity:0}
  .js .card.in .stamps li.on{animation:stamp .45s cubic-bezier(.3,1.6,.5,1) both}
  .js .card.in .stamps li.on:nth-child(1){animation-delay:.7s}
  .js .card.in .stamps li.on:nth-child(2){animation-delay:1.05s}
  .js .card.in .stamps li.on:nth-child(3){animation-delay:1.4s}
  .js .card.in .stamps li.free{animation:pulse 1.6s ease-in-out 2s infinite}
}
@keyframes drop{0%{opacity:0;translate:0 -160px}60%{opacity:1}100%{opacity:1;translate:0 0}}
@keyframes float{0%,100%{translate:0 0}50%{translate:0 -12px}}
@keyframes dieDrop{0%{opacity:0;translate:0 -200px;scale:.6}100%{opacity:1;translate:0 0;scale:1}}
@keyframes jump{0%{translate:0 0;scale:1}15%{scale:1.1 .88}40%{translate:0 -48px;scale:.95 1.08}72%{translate:0 0;scale:1.12 .86}100%{translate:0 0;scale:1}}
@keyframes hop{0%,66%,100%{translate:0 0;scale:1}72%{scale:1.08 .9}82%{translate:0 -26px;scale:.96 1.05}92%{translate:0 0;scale:1.06 .94}}
@keyframes spin{0%,55%{rotate:0deg}85%,100%{rotate:360deg}}
@keyframes spinFast{0%{rotate:0deg;scale:1}50%{scale:1.12}100%{rotate:720deg;scale:1}}
@keyframes waddle{0%,100%{rotate:-6deg;translate:-3px 0}50%{rotate:6deg;translate:3px 0}}
@keyframes wave{0%,62%,100%{rotate:0deg}68%{rotate:-14deg}74%{rotate:12deg}80%{rotate:-10deg}86%{rotate:6deg}92%{rotate:0deg}}
@keyframes waveFast{0%,100%{rotate:0deg}15%{rotate:-18deg}35%{rotate:16deg}55%{rotate:-14deg}75%{rotate:10deg}}
@keyframes squish{0%,100%{scale:1}30%{scale:1.18 .78}60%{scale:.94 1.08}}
@keyframes roll{0%{translate:0 0;rotate:0deg}35%{translate:0 -70px;rotate:300deg;scale:1.15}70%{translate:0 0;rotate:640deg;scale:1}82%{translate:0 -12px}100%{translate:0 0;rotate:720deg}}
@keyframes labelIn{0%{opacity:0;scale:.6;rotate:6deg}100%{opacity:1;scale:1;rotate:-3deg}}
@keyframes wait{0%,100%{rotate:0deg}25%{rotate:-6deg}75%{rotate:6deg}}
@keyframes dash{to{stroke-dashoffset:-120}}
@keyframes stamp{0%{opacity:0;scale:2.4}70%{opacity:1;scale:.9}100%{opacity:1;scale:1}}
@keyframes pulse{0%,100%{scale:1}50%{scale:1.12}}
@media (max-width:520px){.js .card.in{rotate:0deg}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn{transition:none}}
