@font-face { font-family: "Gabarito"; src: url("../fonts/gabarito.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

.sc-scuola-musica { --k-bg: #fff6e0; --k-ink: #1c2541; --k-muted: #5d6481; --k-ac: #ff6b4a; --k-ac-ink: #fff; --k-surface: #fff; --k-line: rgba(28,37,65,.12);
  --k-display: "Gabarito", system-ui, sans-serif; --k-body: "DM Sans", system-ui, sans-serif; --k-dw: 800; --k-track: -.045em; --k-r: 30px; --yel: #ffd23f; --purple: #8a6bff; --teal: #2ec4b6; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; min-height: calc(100vh - 110px); padding: 30px var(--k-pad) 60px; }
.hero h1 { margin: 0 0 18px; font-size: clamp(52px, 7.4vw, 120px); line-height: .92; }
.hero h1 span { color: var(--k-ac); }
.lead { max-width: 480px; color: var(--k-muted); font-size: 18px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.bento { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 170px 170px; gap: 12px; }
.bt { display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; border-radius: 28px; animation: pop .8s cubic-bezier(.34,1.56,.64,1) both; }
.b1 { background: var(--yel); } .b2 { background: var(--k-ink); color: #fff; grid-row: span 2; animation-delay: .1s; } .b3 { background: var(--purple); color: #fff; justify-content: center; align-items: center; font-size: 48px; animation-delay: .2s; } .b4 { background: var(--teal); color: #fff; animation-delay: .3s; }
@keyframes pop { from { transform: scale(.6) rotate(-6deg); opacity: 0; } }
.bt b { font: 800 56px/1 "Gabarito"; } .bt span { font-weight: 600; }
.b3 { animation: pop .8s .2s cubic-bezier(.34,1.56,.64,1) both, float 4s 1s ease-in-out infinite; }
@keyframes float { 50% { letter-spacing: .2em; } }
.eq { display: flex; align-items: flex-end; gap: 6px; height: 100%; margin-bottom: 14px; }
.eq i { flex: 1; height: 30%; border-radius: 6px; background: linear-gradient(var(--yel), var(--k-ac)); animation: eq 1.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.17s); transform-origin: bottom; }
@keyframes eq { to { height: 90%; } }
.eq.hit i { animation-duration: .25s; }

.play { background: var(--k-ink); color: #fff; --k-muted: #b7bdd6; --k-line: rgba(255,255,255,.18); }
.play .k-chips button { color: #fff; }
.play .k-chips button[aria-checked="true"] { background: var(--yel); border-color: var(--yel); color: var(--k-ink); }
.piano-wrap { position: relative; }
.notes-fly { position: absolute; left: 0; right: 0; bottom: 100%; height: 200px; pointer-events: none; overflow: hidden; }
.notes-fly span { position: absolute; bottom: 0; font-size: 30px; color: var(--c); animation: fly 1.4s ease-out forwards; }
@keyframes fly { to { transform: translateY(-180px) rotate(var(--r)); opacity: 0; } }
.piano { position: relative; display: flex; height: 230px; padding: 14px 14px 0; border-radius: 26px 26px 14px 14px; background: #0f1530; box-shadow: inset 0 6px 0 rgba(255,255,255,.06); outline-offset: 6px; }
.key { position: relative; flex: 1; border: 0; border-radius: 0 0 12px 12px; background: linear-gradient(#fff, #f1ede4); box-shadow: inset 0 -8px 0 #ddd5c6, 0 2px 0 #0f1530; color: #8a8fa8; font: 600 12px "DM Sans"; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; margin: 0 2px; transition: transform .05s, background .1s; }
.key.black { position: absolute; top: 14px; width: calc((100% - 28px) / 15 * .62); height: 58%; margin: 0; z-index: 2; background: linear-gradient(#2b2f45, #0b0d18); box-shadow: inset 0 -6px 0 #000; color: #9aa0c2; border-radius: 0 0 8px 8px; padding-bottom: 10px; }
.key.on { transform: translateY(3px); background: linear-gradient(var(--yel), #ffb300); box-shadow: inset 0 -3px 0 #e0a000; color: var(--k-ink); }
.key.black.on { background: linear-gradient(var(--k-ac), #d0402a); }
.key.hint { background: linear-gradient(#c9f2e3, #7fdcc6); }
.game { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.game .k-btn { background: var(--yel); color: var(--k-ink); }
.g-msg { flex-basis: 100%; margin: 0; font-weight: 600; }
.dots { display: flex; gap: 6px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.2); transition: background .2s, transform .3s cubic-bezier(.34,1.8,.64,1); }
.dots i.ok { background: var(--teal); transform: scale(1.2); } .dots i.ko { background: var(--k-ac); }

.filters { display: grid; gap: 10px; margin-bottom: 24px; }
.filters button[aria-pressed="true"] { background: var(--k-ink); color: #fff; border-color: var(--k-ink); }
.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.course { padding: 24px; border-radius: var(--k-r); background: var(--c); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.course:hover { transform: translateY(-6px) rotate(-1deg); }
.course .ic { font-size: 40px; }
.course h3 { margin: 18px 0 4px; font-size: 28px; }
.course p { margin: 0 0 10px; }
.course b { font-size: 18px; }
.course small { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.6); font-weight: 600; }
.empty { grid-column: 1 / -1; padding: 30px; border-radius: var(--k-r); background: var(--k-surface); text-align: center; }
.teach { background: var(--k-surface); }

@media (max-width: 899px) { .hero { grid-template-columns: 1fr; } .courses { grid-template-columns: 1fr; } .piano { height: 180px; padding: 10px 8px 0; } .key { font-size: 0; margin: 0 1px; } }
@media (prefers-reduced-motion: reduce) { .eq i, .b3 { animation: none; } }

/* fx · rifacimento */
.hero h1 b { font-weight: inherit; display: block; } .hero h1 span { --fx-delay: 200ms; }
.nb-inst { --fx-h-gap: 22px; background: #1c2541; color: #fff6e0; }
.nb-in-head { flex: none; width: min(400px, 74vw); align-self: center; } .nb-in-head h2 { margin: 0; font-size: clamp(56px, 6.4vw, 110px); line-height: .9; } .nb-in-head h2 span { color: #ffd23f; }
.nb-i { position: relative; flex: none; width: clamp(280px, 26vw, 400px); overflow: hidden; border-radius: 30px; background: var(--c); color: #1c2541; }
.nb-i .fx-ph { aspect-ratio: 4 / 4.4; } .nb-i > div { display: grid; padding: 18px 22px 24px; } .nb-i b { font-size: 32px; } .nb-i > div span { opacity: .75; font-weight: 600; }
.nb-eq { position: absolute; right: 18px; bottom: 26px; display: flex; align-items: end; gap: 4px; height: 34px; }
.nb-eq i { width: 6px; height: 30%; border-radius: 3px; background: #1c2541; animation: nb-eq 1s ease-in-out infinite alternate; }
.nb-eq i:nth-child(2) { animation-delay: -.3s; } .nb-eq i:nth-child(3) { animation-delay: -.6s; } .nb-eq i:nth-child(4) { animation-delay: -.15s; } .nb-eq i:nth-child(5) { animation-delay: -.45s; }
@keyframes nb-eq { to { height: 100%; } }
.nb-inst:not(:hover) .nb-eq i { animation-play-state: running; }
.nb-zoom { --fx-zi: 22%; --fx-zx: 30%; }
.nb-zoom .fx-z-media { clip-path: inset(calc((1 - var(--p, 0)) * 22%) calc((1 - var(--p, 0)) * 30%) round calc((1 - var(--p, 0)) * 60px)); }
.nb-zoom-t { position: absolute; inset: auto 0 10vh; display: grid; justify-items: center; margin: 0; color: #fff; font-size: clamp(48px, 7vw, 120px); font-weight: 800; line-height: .95; text-align: center; text-shadow: 0 10px 40px rgba(0,0,0,.4); opacity: clamp(0, calc((var(--p, 0) - .5) * 3), 1); }
.nb-zoom-t b { color: #ffd23f; }
.nb-teach-ph { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.nb-teach-ph .fx-ph { aspect-ratio: 4 / 3; border-radius: 26px; }
@media (max-width: 899px) { .nb-i { width: 72vw; } }
@media (prefers-reduced-motion: reduce) { .nb-eq i { animation: none; height: 60%; } .nb-zoom-t { opacity: 1; } }
