:root {
  --paper: #f3efe4;
  --ink: #111111;
  --blue: #2ea3dc;
  --yellow: #ffd21f;
  --red: #ff4a2e;
  --white: #ffffff;
  --muted: #55524a;
  --display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .giant, .mega { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .92; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
figure { margin: 0; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--yellow); padding: 8px 14px; z-index: 99; }
a:focus-visible, button:focus-visible, canvas:focus-visible, input:focus, select:focus, textarea:focus, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Testata */
.top { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand b { font: 800 19px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; display: block; }
.brand small { font-size: 9px; letter-spacing: .25em; text-transform: uppercase; opacity: .6; }
.menu { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.menu a { text-decoration: none; font: 600 14px var(--display); text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.menu a:hover, .menu a[aria-current] { opacity: 1; }
.menu-btn { display: none; background: none; border: 2px solid var(--white); color: var(--white); padding: 6px 12px; font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .1em; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 800 15px var(--display); text-transform: uppercase; letter-spacing: .08em;
  padding: 15px 24px; background: var(--ink); color: var(--white); border: 3px solid var(--ink); border-radius: 0;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--blue); }
.btn.light { background: var(--white); color: var(--ink); }
.menu a.btn { opacity: 1; background: var(--yellow); color: var(--ink); border-color: var(--yellow); padding: 9px 16px; font-weight: 800; }

/* Slider con i giochi */
.slider { position: relative; border-bottom: 4px solid var(--ink); overflow: hidden; }
.slide { display: none; grid-template-columns: 1fr 1.05fr; height: clamp(480px, 100vh, 780px); }
.slide.on { display: grid; }
.s1 { background: var(--blue); }
.s2 { background: var(--yellow); }
.s3 { background: var(--red); }
.slide .txt { padding: clamp(28px, 5vw, 72px); padding-bottom: 110px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; }
.kick { font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .2em; }
.giant { font-size: clamp(38px, min(6.4vw, 11.5vh), 104px); }
.slide .txt p.sub { font-size: clamp(17px, 1.6vw, 20px); max-width: 44ch; font-weight: 500; }
.slide canvas { width: 100%; height: 100%; min-height: 320px; display: block; cursor: pointer; touch-action: manipulation; border-left: 4px solid var(--ink); }
.ctrl { position: absolute; left: clamp(28px, 5vw, 72px); bottom: 34px; display: flex; align-items: center; gap: 14px; }
.ctrl button { background: none; border: 0; padding: 6px; cursor: pointer; line-height: 0; }
.ctrl .arrow { width: 46px; height: 46px; border: 3px solid var(--ink); font: 800 20px/1 var(--display); background: var(--white); }
.ctrl .arrow:hover { background: var(--ink); color: var(--white); }
.ctrl svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 3; }
.ctrl [aria-selected="true"] svg { fill: var(--ink); }

/* Fascia di parole */
.band { background: var(--ink); color: var(--paper); padding: 22px 0; overflow: hidden; white-space: nowrap; font: 800 clamp(22px, 3vw, 38px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.band i { font-style: normal; display: inline-block; width: .6em; height: .6em; margin: 0 .6em; background: var(--yellow); }
.band i:nth-of-type(3n+1) { border-radius: 50%; background: var(--blue); }
.band i:nth-of-type(3n+2) { background: var(--red); transform: rotate(45deg) scale(.8); }

/* Sezioni */
.section { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 4px solid var(--ink); }
.section.dark { background: var(--ink); color: var(--paper); }
.section.blue { background: var(--blue); }
.label { font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .2em; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.label::before { content: ""; width: 14px; height: 14px; background: var(--red); border-radius: 50%; }
.big { font-size: clamp(44px, 9vw, 150px); }
.intro { font-size: clamp(18px, 1.8vw, 22px); max-width: 56ch; margin-top: 24px; color: var(--muted); }
.dark .intro { color: #c9c4b6; }

/* Servizi: righe */
.rows { list-style: none; padding: 0; margin: 56px 0 0; border-top: 4px solid var(--ink); }
.rows li { display: grid; grid-template-columns: 64px 1.2fr 1fr; gap: 24px; align-items: center; padding: 22px 12px; border-bottom: 4px solid var(--ink); transition: background .2s, color .2s, padding .2s; }
.rows li:hover { background: var(--ink); color: var(--paper); padding-left: 28px; }
.rows h3 { font-size: clamp(26px, 4vw, 54px); }
.rows p { font-size: 16px; }
.rows sup { font: 800 11px var(--display); letter-spacing: .12em; background: var(--yellow); color: var(--ink); padding: 3px 7px; margin-left: 10px; vertical-align: middle; position: relative; top: -.6em; }
.shape { width: 48px; height: 48px; display: block; background: var(--blue); }
.shape.c { border-radius: 50%; }
.shape.t { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.shape.h { border-radius: 48px 48px 0 0; height: 24px; }
.shape.y { background: var(--yellow); }
.shape.r { background: var(--red); }
.rows li:hover .shape { transform: rotate(90deg); transition: transform .4s; }

/* Lavori */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 56px; border: 4px solid var(--paper); }
.work { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid var(--paper); }
.work img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .4s, transform .6s; }
.work:hover img { filter: none; transform: scale(1.04); }
.work figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); color: var(--ink); padding: 14px 18px; max-width: 86%; }
.work small { font: 700 11px var(--display); text-transform: uppercase; letter-spacing: .16em; color: var(--red); }
.work h3 { font-size: clamp(20px, 2.2vw, 30px); margin: 4px 0; }
.work p { font-size: 14px; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border: 4px solid var(--ink); }
.post { display: flex; flex-direction: column; gap: 14px; text-decoration: none; padding: 28px; min-height: 340px; border-right: 4px solid var(--ink); transition: transform .2s; }
.post:last-child { border-right: 0; }
.post:nth-child(3n+1) { background: var(--blue); }
.post:nth-child(3n+2) { background: var(--yellow); }
.post:nth-child(3n) { background: var(--red); }
.post:hover { background: var(--ink); color: var(--paper); }
.post .tag { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .18em; }
.post h3, .post h2 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1; }
.post p { font-size: 15.5px; flex: 1; font-weight: 500; }
.post .more { font: 800 14px var(--display); text-transform: uppercase; letter-spacing: .1em; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.topics span { border: 3px solid var(--ink); padding: 6px 14px; font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .08em; }
.join { margin-top: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; background: var(--white); border: 4px solid var(--ink); padding: 32px; box-shadow: 10px 10px 0 var(--ink); }
.join h3 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 10px; }

/* Alza la testa */
.alza { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: end; }
.alza .arrowup { width: min(260px, 60%); aspect-ratio: 1; background: var(--ink); clip-path: polygon(50% 0, 100% 50%, 72% 50%, 72% 100%, 28% 100%, 28% 50%, 0 50%); justify-self: end; }

/* Prezzi e domande */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border: 4px solid var(--ink); }
.price { padding: 28px; border-right: 4px solid var(--ink); background: var(--white); }
.price:last-child { border-right: 0; }
.price.hot { background: var(--yellow); }
.price .n { font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .2em; }
.price b { font: 800 clamp(48px, 6vw, 84px)/1 var(--display); display: block; margin: 10px 0 6px; }
.price ul { list-style: none; padding: 0; margin: 16px 0 0; font-size: 15px; }
.price li { padding: 7px 0; border-top: 2px solid var(--ink); }
.faq { margin-top: 48px; }
details { border-top: 4px solid var(--ink); padding: 20px 0; }
details:last-child { border-bottom: 4px solid var(--ink); }
summary { cursor: pointer; font: 800 clamp(19px, 2.2vw, 28px)/1.1 var(--display); text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3em; line-height: .8; }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; max-width: 70ch; color: var(--muted); }

/* Moduli */
form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font: 700 12px var(--display); letter-spacing: .16em; text-transform: uppercase; display: grid; gap: 6px; }
input, select, textarea { width: 100%; background: var(--white); border: 3px solid var(--ink); color: var(--ink); border-radius: 0; padding: 13px 14px; font: 400 16px var(--text); }
.note { font-size: 13px; opacity: .75; }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact dl { margin: 32px 0 0; display: grid; gap: 18px; }
.contact dt { font: 700 12px var(--display); letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.contact dd { margin: 2px 0 0; font: 800 clamp(20px, 2.4vw, 30px)/1.1 var(--display); }
.contact dd a { text-decoration: none; }
.dark input, .dark select, .dark textarea { border-color: var(--paper); }
.dark .btn { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* Piede */
.foot { background: var(--ink); color: var(--paper); padding: 56px 0 28px; overflow: hidden; }
.mega { font-size: clamp(3rem, 13.4vw, 15rem); line-height: .9; letter-spacing: -.04em; white-space: nowrap; text-align: center; margin: 0 0 40px; color: var(--ink); -webkit-text-stroke: 4px #8d897e; paint-order: stroke fill; }
.mega span { -webkit-text-stroke-color: var(--blue); }
/* Lettere a contorno: riempite col colore di fondo, cosi' il tratto interno non si vede */
.out { color: var(--paper); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.dark .out { color: var(--ink); -webkit-text-stroke-color: var(--paper); }
.blue .out { color: var(--blue); }
@media (max-width: 620px) { .out, .mega { -webkit-text-stroke-width: 3px; } }
.foot .line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; font-size: 14px; border-top: 2px solid #3a3a3a; padding-top: 20px; }
.foot a { text-decoration: none; margin-right: 18px; }
.foot a:hover { color: var(--yellow); }

/* Testata delle pagine del blog */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); border-bottom: 4px solid var(--ink); background: var(--yellow); }
.hero h1 { font-size: clamp(44px, 8vw, 120px); margin: 14px 0 20px; }
.hero h1 em { font-style: normal; }
.pill { font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .2em; }
.lead { font-size: clamp(18px, 1.8vw, 22px); max-width: 56ch; font-weight: 500; }

/* Articoli */
.article-head { padding: 64px 0 28px; }
.article-head h1 { font-size: clamp(34px, 5.4vw, 64px); margin: 16px 0; line-height: .98; }
.crumbs { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .14em; }
.crumbs a { text-decoration: none; }
.meta { color: var(--muted); font-size: 14px; }
.prose { width: min(740px, 100% - 40px); margin: 0 auto; padding-bottom: 80px; }
.prose p { margin: 0 0 20px; }
.prose h2 { font-size: 32px; margin: 46px 0 16px; padding-top: 18px; border-top: 4px solid var(--ink); }
.prose h3 { font-size: 20px; margin: 28px 0 8px; text-transform: none; letter-spacing: 0; line-height: 1.2; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: inherit; text-decoration-color: var(--blue); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose .box { background: var(--white); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--yellow); padding: 20px 22px; margin: 34px 0; }
.prose .box p:last-child { margin: 0; }

@media (max-width: 900px) {
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: var(--ink); padding: 22px 20px; }
  .menu.open { display: flex; }
  .menu-btn { display: block; }
  .slide.on { grid-template-columns: 1fr; height: auto; }
  .slide .txt { padding-bottom: 28px; }
  .slide canvas { height: 340px; border-left: 0; border-top: 4px solid var(--ink); margin-bottom: 84px; border-bottom: 4px solid var(--ink); }
  .ctrl { bottom: 20px; }
  .contact, .join, .alza { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 48px 1fr; }
  .rows p { grid-column: 2; }
  .posts, .prices { grid-template-columns: 1fr; }
  .post, .price { border-right: 0; border-bottom: 4px solid var(--ink); min-height: 0; }
  .post:last-child, .price:last-child { border-bottom: 0; }
  .alza .arrowup { justify-self: start; width: 140px; }
}
@media (max-width: 620px) {
  .works, .row { grid-template-columns: 1fr; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Scelta della versione della home (tre simboli nella barra nera) */
.vers { display: flex; gap: 6px; flex: none; }
.vers a, .vers span { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.35); color: #fff; }
.vers svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vers a:hover { border-color: #fff; }
.vers a[aria-current] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.vers .off { opacity: .35; }

/* Pagina dei giochi */
.giochi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 56px; }
.gioco { border: 4px solid var(--ink); background: var(--white); display: flex; flex-direction: column; }
.gioco.largo { grid-column: 1 / -1; }
.gioco header { padding: 18px 22px; border-bottom: 4px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.gioco h2 { font-size: clamp(26px, 3vw, 40px); }
.gioco header p { font-size: 15px; color: var(--muted); }
.gioco canvas { width: 100%; height: 420px; display: block; cursor: pointer; touch-action: manipulation; }
.gioco .blu { background: var(--blue); }
.gioco .giallo { background: var(--yellow); }
.gioco .rosso { background: var(--red); }
.gioco .dentro { padding: 22px; display: grid; gap: 16px; justify-items: center; flex: 1; align-content: center; }
.gioco .stato { font: 700 15px var(--display); text-transform: uppercase; letter-spacing: .08em; min-height: 1.4em; text-align: center; }
#memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(380px, 100%); }
#tris { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; width: min(300px, 100%); border: 4px solid var(--ink); }
.carta, .casella { aspect-ratio: 1; border: 4px solid var(--ink); background: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.casella { background: var(--paper); border-width: 2px; }
.casella:disabled { cursor: default; }
.carta .f { visibility: hidden; }
.carta.su { background: var(--paper); }
.carta.su .f { visibility: visible; }
.f { width: 56%; aspect-ratio: 1; display: block; }
.f.c { border-radius: 50%; }
.f.t { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.f.b { background: var(--blue); }
.f.y { background: var(--yellow); }
.f.r { background: var(--red); }
.btn.small { padding: 9px 16px; font-size: 13px; }
@media (max-width: 900px) { .giochi { grid-template-columns: 1fr; } .gioco canvas { height: 340px; } }.menu { order: 2; }
.vers { order: 3; }
.menu-btn { order: 4; }
@media (max-width: 900px) { .vers { margin-left: auto; } }.topics a { text-decoration: none; }
.brand img { height: 44px; }

/* Menu senza barra: resta solo il logo; le voci sono sbiadite e un po' sfocate,
   tornano nitide quando il mouse sale in alto (o con la tastiera). */
.top { position: static; background: none; border: 0; height: 0; }
.top .wrap { height: 0; display: block; width: auto; }
.brand { position: fixed; top: 12px; left: 18px; z-index: 60; }
.menu { position: fixed; top: 0; right: 0; z-index: 60; height: 70px; padding: 0 26px; margin: 0; mix-blend-mode: difference; opacity: .42; filter: blur(1.6px); transition: opacity .3s, filter .3s; }
.menu a, .menu a.btn, .menu a.btn:hover { color: #fff; opacity: 1; background: none; border: 0; padding: 0; box-shadow: none; transform: none; }
html.menu-su .menu, .menu:hover, .menu:focus-within { opacity: 1; filter: none; }
.menu-btn { position: fixed; top: 16px; right: 16px; z-index: 61; margin: 0; background: #111; color: #fff; border: 1px solid #fff; opacity: .6; }
@media (max-width: 900px) {
  .menu { mix-blend-mode: normal; opacity: 1; filter: none; left: 0; height: auto; padding: 78px 20px 24px; background: #111; }
}
@media (hover: none) { .menu { opacity: 1; filter: none; } .menu-btn { opacity: 1; } }.slide .txt { padding-top: 96px; }
.hero { padding-top: clamp(100px, 10vw, 130px); }
.article-head { padding-top: 110px; }.brand img { height: 96px; width: auto; }
@media (max-width: 620px) { .brand img { height: 68px; } }
