/* CosmoSpaceKids · foglio di stile unico. Font ospitati nel sito (SIL OFL). */
@font-face { font-family: "Fredoka"; src: url("font/Fredoka.woff2") format("woff2"); font-weight: 300 700; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("font/Nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("font/Caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --notte: #0E1A4F;
  --notte-2: #18276E;
  --notte-3: #22348A;
  --arancio: #FF801F;
  --arancio-scuro: #B8470A;
  --giallo: #FFC828;
  --crema: #FFF7EC;
  --cielo: #E8F3FF;
  --blu: #4D9BFF;
  --rosa: #F4788C;
  --verde: #2E9E5B;
  --testo: #0E1A4F;
  --testo-2: #3A4573;
  --bianco: #FFFFFF;
  --raggio: 28px;
  --ombra: 0 18px 40px -18px rgba(14, 26, 79, .45);
  --ombra-forte: 0 30px 60px -20px rgba(4, 10, 40, .65);
  --titoli: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --corpo: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--corpo); font-size: 1.0625rem; line-height: 1.6; color: var(--testo); background: var(--crema); overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titoli); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.piccolo { font-size: .95rem; color: var(--testo-2); }
.contenitore { width: min(1180px, 100% - 32px); margin-inline: auto; }
.contenitore--stretto { width: min(820px, 100% - 32px); }

:focus-visible { outline: 3px solid var(--giallo); outline-offset: 3px; border-radius: 10px; }
.sezione--crema :focus-visible, .sezione--cielo :focus-visible { outline-color: var(--arancio-scuro); }
.salta { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--giallo); color: var(--notte); padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.salta:focus { top: 12px; }

/* ---------- Bottoni ---------- */
.bottone { --sfondo: var(--arancio); --colore: var(--notte); display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--sfondo); color: var(--colore); font: 700 1.08rem/1 var(--titoli); text-decoration: none; cursor: pointer; box-shadow: 0 6px 0 rgba(0, 0, 0, .22), 0 14px 26px -10px rgba(255, 128, 31, .7); transition: transform .18s ease, box-shadow .18s ease, background .18s; position: relative; isolation: isolate; overflow: hidden; }
.bottone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s ease; z-index: -1; }
.bottone:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0, 0, 0, .2), 0 20px 30px -10px rgba(255, 128, 31, .75); }
.bottone:hover::after { transform: translateX(120%); }
.bottone:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.bottone svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bottone--vuoto { --sfondo: transparent; --colore: #fff; box-shadow: inset 0 0 0 2.5px rgba(255, 255, 255, .75); }
.bottone--vuoto:hover { --sfondo: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2.5px #fff; }
.bottone--vuoto-scuro { --sfondo: transparent; --colore: var(--notte); box-shadow: inset 0 0 0 2.5px var(--notte); }
.bottone--vuoto-scuro:hover { box-shadow: inset 0 0 0 2.5px var(--notte); --sfondo: rgba(14, 26, 79, .06); }
.bottone--notte { --sfondo: var(--notte); --colore: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .3), 0 14px 26px -10px rgba(14, 26, 79, .7); }
.bottone--bianco { --sfondo: #fff; --colore: var(--notte); box-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
.bottone--piccolo { min-height: 44px; padding: 0 20px; font-size: .98rem; }

/* ---------- Occhielli e intestazioni ---------- */
.occhiello { display: inline-flex; align-items: center; gap: .55em; font: 700 .8rem/1 var(--corpo); letter-spacing: .14em; text-transform: uppercase; color: var(--giallo); margin-bottom: 1rem; }
.occhiello--scuro { color: var(--arancio-scuro); }
.pallino { width: 9px; height: 9px; border-radius: 50%; background: var(--giallo); box-shadow: 0 0 0 4px rgba(255, 200, 40, .25); animation: pulsa 2.4s ease-in-out infinite; }
@keyframes pulsa { 50% { box-shadow: 0 0 0 9px rgba(255, 200, 40, 0); } }
.intestazione { position: relative; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.intestazione__sotto { font-size: 1.15rem; color: var(--testo-2); }
.intestazione--chiara { color: #fff; }
.intestazione--chiara .intestazione__sotto { color: #D5DDFB; }

/* ---------- Testata ---------- */
.testata { position: fixed; inset: 0 0 auto; z-index: 50; padding: 12px 0; transition: background .3s, box-shadow .3s, padding .3s; }
.testata.scorsa { background: rgba(14, 26, 79, .86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .5); padding: 6px 0; }
.testata__riga { display: flex; align-items: center; gap: 20px; }
.marchio { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 600 1.3rem/1 var(--titoli); margin-right: auto; }
.marchio img { width: 48px; height: 48px; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.marchio:hover img { transform: rotate(-14deg) scale(1.08); }
.marchio b { color: var(--arancio); font-weight: 600; }
.menu { display: flex; gap: 4px; }
.menu a { color: #fff; text-decoration: none; font-weight: 700; padding: 10px 14px; border-radius: 999px; transition: background .2s; }
.menu a:hover { background: rgba(255, 255, 255, .12); }
.hamburger { display: none; width: 48px; height: 48px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .12); cursor: pointer; padding: 13px 12px; flex-direction: column; justify-content: space-between; }
.hamburger span { display: block; height: 3px; border-radius: 3px; background: #fff; transition: transform .3s, opacity .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Eroe ---------- */
.eroe { position: relative; min-height: min(100svh, 940px); padding: 120px 0 150px; color: #fff; background: radial-gradient(120% 90% at 80% 10%, #2A3FA0 0%, transparent 55%), radial-gradient(90% 70% at 0% 100%, #3B1F72 0%, transparent 60%), linear-gradient(180deg, #0A1340 0%, var(--notte) 45%, var(--notte-2) 100%); overflow: hidden; display: flex; align-items: center; }
.cielo { position: absolute; inset: 0; width: 100%; height: 100%; }
.nebulosa { position: absolute; width: 60vmax; height: 60vmax; right: -20vmax; top: -18vmax; background: radial-gradient(closest-side, rgba(255, 128, 31, .22), transparent); filter: blur(10px); pointer-events: none; }
.eroe__griglia { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.eroe h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); font-weight: 600; margin-bottom: .35em; text-wrap: balance; }
.evidenza { color: var(--giallo); position: relative; white-space: nowrap; }
.evidenza::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .16em; border-radius: 99px; background: var(--arancio); transform-origin: left; animation: sottolinea 1.1s .6s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes sottolinea { from { transform: scaleX(0); } }
.eroe__sotto { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: #DCE3FF; max-width: 34em; margin-bottom: 1.8em; }
.eroe__azioni { display: flex; flex-wrap: wrap; gap: 14px; }
.eroe__fiducia { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; color: #DCE3FF; font-size: .98rem; }
.eroe__fiducia li { display: flex; align-items: center; gap: 8px; }
.eroe__fiducia svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--verde); fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

.eroe__scena { position: relative; aspect-ratio: 1; width: 100%; max-width: 580px; justify-self: center; }
.orbite { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.anello { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.anello--2 { stroke: rgba(255, 200, 40, .3); stroke-dasharray: 1 14; }
.giro { transform-origin: 300px 300px; transform-box: view-box; animation: gira 40s linear infinite; }
.giro--veloce { animation-duration: 14s; }
.giro--medio { animation-duration: 26s; animation-direction: reverse; }
@keyframes gira { to { transform: rotate(360deg); } }
.cosmo { position: absolute; z-index: 2; left: 25%; top: 9%; width: 52%; animation: fluttua 6s ease-in-out infinite; cursor: pointer; }
.cosmo img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); transform-origin: 40% 90%; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.cosmo:hover img, .cosmo.saluta img { animation: dondola .9s ease-in-out 2; }
@keyframes fluttua { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
@keyframes dondola { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(5deg); } }
.nuvoletta { position: absolute; left: -38%; top: 2%; background: #fff; color: var(--notte); font: 600 clamp(1rem, 2vw, 1.3rem)/1 var(--titoli); padding: 14px 20px; border-radius: 22px 22px 22px 6px; box-shadow: var(--ombra-forte); white-space: nowrap; animation: appare .6s 1s cubic-bezier(.3, 1.6, .5, 1) both; }
.nuvoletta::after { content: ""; position: absolute; left: 18px; bottom: -10px; border: 12px solid transparent; border-top-color: #fff; border-bottom: 0; border-left: 0; }
@keyframes appare { from { opacity: 0; transform: scale(.4) translateY(20px); } }
.razzo { position: absolute; width: 46px; left: 50%; top: 50%; offset-path: path("M -260 220 C -120 60 40 -40 300 -300"); offset-rotate: auto 90deg; animation: vola 9s 2s ease-in infinite; opacity: 0; }
@keyframes vola { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 45% { offset-distance: 100%; opacity: 1; } 46%, 100% { offset-distance: 100%; opacity: 0; } }
.fiamma { transform-origin: 32px 94px; animation: fiamma .14s ease-in-out infinite alternate; }
@keyframes fiamma { to { transform: scaleY(.72); } }
.orizzonte { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(60px, 9vw, 120px); }

/* ---------- Sezioni ---------- */
.sezione { position: relative; padding: clamp(72px, 10vw, 130px) 0; }
.sezione--crema { background: var(--crema); }
.sezione--cielo { background: var(--cielo); }
.sezione--puntini { background-image: radial-gradient(rgba(14, 26, 79, .09) 1.5px, transparent 1.6px); background-size: 22px 22px; }
.sezione--notte { background: linear-gradient(180deg, var(--notte) 0%, #16226A 60%, var(--notte) 100%); color: #fff; overflow: hidden; }
.onda { position: absolute; left: 0; width: 100%; height: clamp(40px, 6vw, 80px); }
.onda--su { top: -1px; }
.onda--giu { bottom: -1px; }
.stelline { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.6px 1.6px at 23px 41px, #fff 50%, transparent 52%), radial-gradient(1px 1px at 141px 97px, #FFE08A 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 77px 183px, #B9D6FF 50%, transparent 52%), radial-gradient(1px 1px at 251px 13px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 311px 227px, #FFE08A 50%, transparent 52%), radial-gradient(1px 1px at 199px 281px, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 57px 117px, #fff 50%, transparent 52%), radial-gradient(1px 1px at 163px 29px, #B9D6FF 50%, transparent 52%);
  background-size: 263px 211px, 263px 211px, 263px 211px, 263px 211px, 389px 331px, 389px 331px, 173px 157px, 173px 157px; }

.adesivo { position: absolute; width: clamp(110px, 16vw, 190px); background: #fff; border-radius: 34px; padding: 14px 18px; box-shadow: 0 0 0 6px #fff, var(--ombra); transform: rotate(8deg); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.adesivo:hover { transform: rotate(-4deg) scale(1.06); }
.adesivo--destra { right: calc(-1 * min(260px, 30vw)); top: -10px; }
.adesivo--libero { background: none; box-shadow: none; padding: 0; border-radius: 0; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .22)); }

/* ---------- Prodotto Etsy in evidenza ---------- */
.prodotto { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); background: #fff; border-radius: calc(var(--raggio) + 8px); padding: clamp(16px, 2.4vw, 28px); box-shadow: var(--ombra); position: relative; }
.galleria { min-width: 0; }
.galleria__principale { position: relative; border-radius: var(--raggio); overflow: hidden; background: var(--notte); aspect-ratio: 4 / 3; }
.galleria__binario { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.galleria__binario::-webkit-scrollbar { display: none; }
.galleria__binario img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.galleria__freccia { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--notte); display: grid; place-items: center; cursor: pointer; box-shadow: var(--ombra); transition: transform .2s; }
.galleria__freccia:hover { transform: scale(1.1); }
.galleria__freccia svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.galleria__freccia--prec { left: 12px; }
.galleria__freccia--succ { right: 12px; }
.galleria__miniature { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding: 4px 2px; scrollbar-width: thin; }
.galleria__miniature button { flex: 0 0 auto; width: 74px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 3px solid transparent; padding: 0; cursor: pointer; background: none; opacity: .65; transition: opacity .2s, border-color .2s, transform .2s; }
.galleria__miniature button:hover { opacity: 1; transform: translateY(-2px); }
.galleria__miniature button[aria-current="true"] { border-color: var(--arancio); opacity: 1; }
.galleria__miniature img { width: 100%; height: 100%; object-fit: cover; }
.prodotto__info { padding: 8px 6px 8px 0; display: flex; flex-direction: column; }
.prodotto__etichetta { font-weight: 800; color: var(--arancio-scuro); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: .5rem; }
.prodotto h3 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .1em; }
.prodotto__sottotitolo { font: 500 1.25rem/1.3 var(--titoli); color: var(--testo-2); margin-bottom: 1rem; }
.chip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.chip li { font-weight: 800; font-size: .88rem; padding: 6px 12px; border-radius: 999px; background: var(--cielo); color: var(--notte); }
.chip li:nth-child(1) { background: #FFE6D2; color: #8A3300; }
.chip li:nth-child(3n) { background: #DDF3E5; color: #1C6B3D; }
.chip li.eta { background: var(--notte); color: #fff; }
.spunte { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 9px; }
.spunte li { position: relative; padding-left: 34px; color: var(--testo-2); }
.spunte li::before { content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; background: var(--giallo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230E1A4F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.prodotto__acquisto { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; padding-top: 1rem; border-top: 2px dashed #E5E8F2; }
.prezzo { font: 600 2.2rem/1 var(--titoli); color: var(--notte); }
.prezzo small { display: block; font: 700 .78rem/1.4 var(--corpo); color: var(--testo-2); letter-spacing: .02em; }
.prodotto__nota { font-size: .9rem; color: var(--testo-2); margin: 12px 0 0; }
.bollino { position: absolute; top: -26px; right: -14px; width: 104px; height: 104px; border-radius: 50%; background: var(--giallo); color: var(--notte); display: grid; place-items: center; text-align: center; font: 600 1rem/1.05 var(--titoli); transform: rotate(12deg); box-shadow: var(--ombra); animation: bollino 4s ease-in-out infinite; z-index: 2; }
.bollino b { display: block; font-size: 1.5rem; }
@keyframes bollino { 50% { transform: rotate(4deg) scale(1.05); } }
.altre-missioni { margin: 28px auto 0; max-width: 640px; text-align: center; color: var(--testo-2); }
.altre-missioni a { font-weight: 800; color: var(--arancio-scuro); }

/* ---------- Come funziona ---------- */
.passi { list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: passo; }
.passo { position: relative; background: #fff; border-radius: var(--raggio); padding: 28px 24px 24px; box-shadow: 0 10px 30px -20px rgba(14, 26, 79, .4); transition: transform .3s; }
.passo:hover { transform: translateY(-6px) rotate(-.6deg); }
.passo h3 { margin-top: 14px; }
.passo p { color: var(--testo-2); margin: 0; }
.passo__numero { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 600 1.7rem/1 var(--titoli); color: #fff; background: radial-gradient(circle at 35% 30%, #FFB35C, var(--arancio) 60%, #C2470A); color: var(--notte); box-shadow: inset -6px -6px 0 rgba(0, 0, 0, .12); }
.passo__numero--blu { background: radial-gradient(circle at 35% 30%, #B9E0FF, var(--blu) 60%, #2554C7); color: var(--notte); }
.passo__numero--rosa { background: radial-gradient(circle at 35% 30%, #FFD0D8, var(--rosa) 60%, #C84466); color: var(--notte); }

/* ---------- Libri ---------- */
.evidenza-libro { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(48px, 7vw, 88px); }
.copertina-3d { perspective: 1200px; }
.copertina-3d__libro { position: relative; transform: rotateY(-16deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .8, .2, 1); border-radius: 4px 12px 12px 4px; box-shadow: var(--ombra-forte), 18px 20px 0 -6px rgba(0, 0, 0, .25); }
.copertina-3d__libro img { border-radius: 4px 12px 12px 4px; width: 100%; }
.copertina-3d__libro::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; border-radius: 4px 0 0 4px; background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .25) 50%, rgba(0, 0, 0, .1)); z-index: 1; }
.copertina-3d__libro::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255, 255, 255, .32) 0%, transparent 35%); pointer-events: none; }
.copertina-3d:hover .copertina-3d__libro { transform: rotateY(-4deg) rotateX(2deg) translateY(-6px); }
.evidenza-libro__info .etichetta { display: inline-block; background: var(--giallo); color: var(--notte); font-weight: 800; font-size: .85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 1rem; transform: rotate(-2deg); }
.evidenza-libro__info h3 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: .05em; color: var(--giallo); }
.evidenza-libro__info .sotto { font: 500 1.3rem/1.3 var(--titoli); color: #fff; margin-bottom: 1rem; }
.evidenza-libro__info p { color: #D5DDFB; }
.evidenza-libro__info .spunte li { color: #E8ECFF; }
.sfoglia { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 16px; margin: 1.4rem 0; scrollbar-width: thin; scrollbar-color: var(--arancio) transparent; }
.sfoglia img { flex: 0 0 auto; height: 150px; width: auto; border-radius: 16px; scroll-snap-align: start; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .6); transition: transform .3s; }
.sfoglia img:hover { transform: translateY(-4px) rotate(-1deg); }

.filtri { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filtro { font: 700 1rem/1 var(--corpo); padding: 12px 20px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filtro:hover { border-color: #fff; }
.filtro.attivo { background: var(--giallo); color: var(--notte); border-color: var(--giallo); }
.libri { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.libro { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--raggio); padding: 18px; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .3s; }
.libro:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .1); }
.libro[hidden] { display: none; }
.libro__cop { border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; background: rgba(255, 255, 255, .08); margin-bottom: 16px; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .7); }
.libro__cop img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.libro:hover .libro__cop img { transform: scale(1.04); }
.libro__eta { align-self: flex-start; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255, 200, 40, .16); color: var(--giallo); margin-bottom: 10px; }
.libro h3 { font-size: 1.25rem; margin-bottom: .2em; }
.libro__autore { font-size: .9rem; color: #B7C2EE; margin-bottom: .6em; }
.libro p { font-size: .97rem; color: #D5DDFB; }
.libro .bottone { margin-top: auto; align-self: flex-start; }

/* ---------- Colora ---------- */
.colora { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.colora__testo { position: relative; }
.colora__testo > p:not(.occhiello):not(.piccolo) { font-size: 1.15rem; color: var(--testo-2); }
.colora__testo a { font-weight: 800; color: var(--arancio-scuro); }
.adesivo--colora { position: relative; margin-top: 18px; transform: rotate(-6deg); }
.colora__tavolo { background: #fff; border-radius: calc(var(--raggio) + 6px); padding: clamp(14px, 2vw, 22px); box-shadow: var(--ombra); display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 14px; }
.tavolozza { display: grid; grid-template-columns: 1fr; gap: 10px; align-content: start; }
.tavolozza button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18), 0 0 0 2px rgba(14, 26, 79, .12); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.tavolozza button:hover { transform: scale(1.1); }
.tavolozza button[aria-checked="true"] { transform: scale(1.16); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18), 0 0 0 3px #fff, 0 0 0 6px var(--notte); }
.foglio { border-radius: 18px; overflow: hidden; background: #fff; border: 2px solid #EEF0F7; }
.foglio canvas { width: 100%; height: auto; cursor: crosshair; touch-action: manipulation; }
.colora__azioni { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ---------- Gratis ---------- */
.regali { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.regalo { position: relative; background: #fff; border-radius: var(--raggio); padding: 26px 24px 24px; box-shadow: 0 14px 34px -22px rgba(14, 26, 79, .5); display: flex; flex-direction: column; overflow: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.regalo:hover { transform: translateY(-8px) rotate(.4deg); }
.regalo { padding-top: 0; }
.regalo__testa { --t1: #FFE6D2; --t2: #FFC9A0; margin: 0 -24px 20px; height: 170px; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(circle at 30% 20%, var(--t1), var(--t2)); }
.regalo:nth-child(2) .regalo__testa { --t1: #FFF3C4; --t2: #FFD866; }
.regalo:nth-child(3) .regalo__testa { --t1: #E1EEFF; --t2: #A9CCFF; }
.regalo__testa::before, .regalo__testa::after { content: "★"; position: absolute; color: #fff; opacity: .8; font-size: 22px; left: 18%; top: 22%; animation: brilla 2.6s ease-in-out infinite; }
.regalo__testa::after { left: auto; right: 16%; top: 60%; font-size: 15px; animation-delay: 1.2s; }
@keyframes brilla { 50% { transform: scale(.6) rotate(20deg); opacity: .3; } }
.regalo__testa span { width: 138px; height: 138px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -12px rgba(14, 26, 79, .5); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.regalo__testa img { width: 96px; height: 106px; object-fit: contain; }
.regalo:hover .regalo__testa span { transform: rotate(-8deg) scale(1.08); }
.regalo__nota { align-self: flex-start; font-size: .8rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #DDF3E5; color: #1C6B3D; margin-bottom: .8rem; }
.regalo__nota--email { background: #FFE6D2; color: #8A3300; }
.regalo p { color: var(--testo-2); }
.regalo .bottone { margin-top: auto; align-self: flex-start; }

/* ---------- Chi siamo ---------- */
.sezione--chi { padding-top: clamp(100px, 12vw, 150px); }
.chi { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.chi__foto { margin: 0; position: relative; text-align: center; }
.chi__foto img { border-radius: 50%; width: min(400px, 100%); margin-inline: auto; border: 10px solid #fff; box-shadow: 0 0 0 10px var(--arancio), 0 0 0 24px rgba(77, 155, 255, .22), var(--ombra-forte); animation: fluttua 7s ease-in-out infinite; }
.chi__foto figcaption { margin-top: 30px; font-weight: 700; color: #B7C2EE; }
.chi__testo p { color: #DCE3FF; font-size: 1.1rem; }
.chi__testo strong { color: #fff; }
.chi__testo h2 { text-wrap: balance; }
.chi__testo .firma { font: 700 3rem/1 "Caveat", cursive; color: var(--giallo) !important; margin-top: .6em; transform: rotate(-3deg); transform-origin: left; }
.firma span { color: var(--arancio); }

/* ---------- Domande ---------- */
.domande { display: grid; gap: 12px; }
.domande details { background: #fff; border-radius: 20px; box-shadow: 0 8px 24px -18px rgba(14, 26, 79, .5); overflow: hidden; }
.domande summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font: 600 1.15rem/1.3 var(--titoli); position: relative; }
.domande summary::-webkit-details-marker { display: none; }
.domande summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--cielo); font-size: 1.4rem; transition: transform .3s, background .3s; }
.domande details[open] summary::after { transform: rotate(45deg); background: var(--giallo); }
.domande details p { padding: 0 24px 20px; margin: 0; color: var(--testo-2); }

/* ---------- Finale ---------- */
.finale { position: relative; background: radial-gradient(120% 120% at 100% 0%, #FFB35C 0%, var(--arancio) 45%, #F2600D 100%); color: var(--notte); padding: clamp(64px, 9vw, 110px) 0; overflow: hidden; }
.finale::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .35) 2px, transparent 2.5px); background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.finale__griglia { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.finale h2 { font-size: clamp(2.6rem, 7vw, 5rem); }
.finale p { font-size: 1.25rem; max-width: 30em; font-weight: 600; }
.finale__lancio { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.finale__cosmo { width: 150px; margin-right: -24px; position: relative; z-index: 1; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .25)); animation: fluttua 6s ease-in-out infinite; }
.lancio { position: relative; width: 200px; height: 260px; border: 0; background: none; cursor: pointer; display: block; }
.lancio__razzo { width: 92px; margin: 0 auto; transition: transform .2s; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .25)); }
.lancio:hover .lancio__razzo { transform: translateY(-6px) rotate(-3deg); }
.lancio__razzo .fiamma { opacity: .35; }
.lancio.in-volo .lancio__razzo { animation: decolla 1.6s cubic-bezier(.6, 0, .9, .4) forwards; }
.lancio.in-volo .lancio__razzo .fiamma { opacity: 1; }
.lancio.in-tremolio .lancio__razzo { animation: trema .08s linear infinite; }
.lancio.in-tremolio .lancio__razzo .fiamma { opacity: 1; }
@keyframes decolla { to { transform: translateY(-900px); } }
@keyframes trema { 50% { transform: translateX(2px); } }
.lancio__conto { position: absolute; left: 50%; bottom: 0; translate: -50% 0; white-space: nowrap; font: 600 1.1rem/1 var(--titoli); background: var(--notte); color: #fff; padding: 12px 18px; border-radius: 999px; }
.fumo { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: #fff; opacity: .9; pointer-events: none; animation: fumo 1.4s ease-out forwards; }
@keyframes fumo { to { transform: translate(var(--dx), 40px) scale(2.4); opacity: 0; } }

/* ---------- Piede ---------- */
.piede { background: #0A1340; color: #C9D2F5; padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); }
.piede__griglia { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.piede__marchio { display: flex; align-items: center; gap: 14px; }
.piede__marchio strong { color: #fff; font-family: var(--titoli); font-size: 1.2rem; }
.piede__marchio p { margin: 0; line-height: 1.35; }
.piede__link { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; }
.piede__link a { color: #fff; font-weight: 700; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.piede__link a:hover { border-bottom-color: var(--arancio); }
.piede__nota { grid-column: 1 / -1; font-size: .9rem; margin: 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- Comparsa al passaggio ---------- */
.js .entra { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--ritardo, 0s); }
.js .entra.visto { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
  .adesivo--destra { right: 0; top: -70px; width: 120px; }
  .intestazione { padding-right: 130px; }
  .prodotto { grid-template-columns: 1fr; }
  .regali { grid-template-columns: 1fr 1fr; }
  .colora { grid-template-columns: 1fr; }
  .adesivo--colora { display: none; }
}

/* ---------- Telefono ---------- */
@media (max-width: 760px) {
  body { font-size: 1.02rem; }
  .menu { position: absolute; top: calc(100% + 6px); left: 16px; right: 16px; flex-direction: column; background: var(--notte); border-radius: 22px; padding: 10px; box-shadow: var(--ombra-forte); transform-origin: top; transform: scaleY(.6); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s; }
  .menu.aperto { transform: none; opacity: 1; visibility: visible; }
  .menu a { padding: 14px 16px; font-size: 1.1rem; }
  .hamburger { display: flex; }
  .testata__cta { display: none; }
  .testata { background: rgba(14, 26, 79, .0); }
  .marchio { font-size: 1.15rem; }
  .marchio img { width: 42px; height: 42px; }
  .eroe { min-height: 0; padding: 84px 0 96px; display: block; }
  .eroe__griglia { grid-template-columns: 1fr; gap: 0; }
  .eroe__scena { order: -1; width: 66%; max-width: 290px; margin: -8px auto -10px; }
  .nuvoletta { left: -10%; top: -9%; padding: 10px 14px; }
  .evidenza { white-space: normal; }
  .eroe h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .eroe__azioni .bottone { flex: 1 1 100%; }
  .eroe__fiducia { gap: 8px 16px; font-size: .92rem; }
  .intestazione { padding-right: 0; }
  .adesivo--destra { position: relative; right: auto; top: auto; float: right; width: 96px; padding: 8px; margin: -10px 0 8px 12px; }
  .bollino { width: 84px; height: 84px; right: -4px; top: -20px; font-size: .85rem; }
  .bollino b { font-size: 1.2rem; }
  .prodotto { padding: 12px; border-radius: var(--raggio); }
  .prodotto__info { padding: 4px 6px 8px; }
  .galleria__freccia { width: 40px; height: 40px; }
  .prodotto__acquisto .bottone { flex: 1 1 100%; }
  .passi { grid-template-columns: 1fr; gap: 14px; }
  .passo { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; padding: 20px; }
  .passo__numero { grid-row: span 2; width: 52px; height: 52px; }
  .passo h3 { margin: 4px 0 4px; font-size: 1.2rem; }
  .evidenza-libro { grid-template-columns: 1fr; }
  .copertina-3d { width: 70%; max-width: 290px; margin: 0 auto; }
  .sfoglia img { height: 120px; }
  .filtri { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .filtro { flex: 0 0 auto; }
  .libri { grid-template-columns: 1fr 1fr; gap: 12px; }
  .libro { padding: 10px; border-radius: 20px; }
  .libro h3 { font-size: 1.02rem; }
  .libro p { display: none; }
  .libro__autore { font-size: .8rem; }
  .libro__eta { font-size: .66rem; }
  .libro .bottone { min-height: 42px; padding: 0 14px; font-size: .9rem; width: 100%; }
  .colora__tavolo { grid-template-columns: 1fr; padding: 12px; }
  .tavolozza { grid-template-columns: repeat(5, 1fr); justify-items: center; order: 2; }
  .foglio { order: 1; }
  .colora__azioni { order: 3; }
  .colora__azioni .bottone { flex: 1; }
  .regali { grid-template-columns: 1fr; }
  .chi { grid-template-columns: 1fr; text-align: left; }
  .chi__foto img { width: 64%; }
  .finale__griglia { grid-template-columns: 1fr; text-align: left; }
  .finale .bottone { flex: 1 1 100%; }
  .lancio { height: 220px; width: 170px; }
  .finale__cosmo { width: 120px; }
  .piede__griglia { grid-template-columns: 1fr; }
  .piede__link { justify-content: flex-start; }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .razzo { display: none; }
  .js .entra { opacity: 1; transform: none; }
}
