.story-library{padding:44px 0}.story-library h2{font-size:40px}.story-cards{display:grid;grid-template-columns:1fr 1fr;gap:32px}.story-choice{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fffaf1;display:flex;flex-direction:column;scroll-margin-top:25px}.story-cover{display:block;background:#e9eee5;padding:22px;text-align:center}.story-cover img{display:block;width:100%;height:360px;object-fit:contain;margin:auto}.story-choice>div{padding:26px;display:flex;flex-direction:column;flex:1}.story-choice h3{font-size:32px;margin:10px 0}.story-choice p{margin:8px 0}.story-choice .button{align-self:flex-start;margin-top:auto}.story-choice>div>p:last-of-type{margin-bottom:24px}.adventure-heading{padding:38px 0 32px;border-bottom:1px solid var(--line);max-width:850px}.adventure-heading h1{font-size:clamp(38px,5vw,60px)}.adventure-heading>p:not(.eyebrow){font-size:21px}.adventure-heading .back-link{margin:0 0 24px}.adventure-heading .activity-links{width:auto;justify-content:flex-start;gap:12px}.adventure-heading .activity-links a{padding:12px 20px}.adventure-back{margin:35px 0}.crab-coloring,#leggiamo,#coloriamo,#guardiamo{scroll-margin-top:24px}@media(max-width:700px){.story-cards{grid-template-columns:1fr;gap:24px}.story-cover img{height:300px}.story-choice>div{padding:22px}.story-library h2{font-size:34px}.adventure-heading{padding-top:26px}.adventure-heading h1{font-size:39px}.adventure-heading .activity-links{gap:8px}.adventure-heading .activity-links a{padding:12px 15px}}
/* Numero stabile della storia: le nuove schede si aggiungono in alto. */
.story-choice{position:relative}
.story-choice::before{content:attr(data-story-number);display:grid;place-items:center;align-self:flex-start;min-width:64px;height:64px;margin:16px 0 12px 22px;padding:0 8px;box-sizing:border-box;border:4px solid #fffaf1;border-radius:48% 52% 46% 54%;background:#167783;color:#fffaf1;box-shadow:0 0 0 2px #167783,3px 4px 0 #eadfca;font-family:ui-rounded,'Trebuchet MS',sans-serif;font-size:38px;font-weight:800;line-height:1;transform:rotate(6deg)}
.story-choice[data-story-number="1"]::before{background:#e8a52d;color:#163f45;box-shadow:0 0 0 2px #e8a52d,3px 4px 0 #eadfca;transform:rotate(-7deg)}
@media(max-width:700px){.story-library{padding:28px 0}.story-cards{gap:24px}.story-choice::before{margin:12px 0 10px 18px;min-width:48px;height:48px;font-size:29px;border-width:3px}.story-cover{padding:14px}.story-cover img{height:auto;max-height:320px;object-fit:contain}.story-choice>div{padding:18px}.story-choice h3{font-size:28px;line-height:1.18}.story-choice .button{align-self:stretch;text-align:center;min-height:48px;display:flex;align-items:center;justify-content:center}.story-choice>div>p:last-of-type{margin-bottom:18px}}
