/* Four reading formats, one visual identity. No builder CSS. */
.nvva-story{--story-gap:clamp(36px,5vw,72px);--story-section:80px;--story-title:clamp(42px,4.9vw,76px);--story-heading:clamp(32px,3.3vw,46px);--story-rule:1px solid var(--line);color:var(--ink)}
.nvva-story-hero{background:var(--hero-bg);border-top:var(--story-rule)}
.nvva-story-hero__grid{display:grid;grid-template-columns:1.08fr .92fr;gap:var(--story-gap);padding-block:64px 72px;align-items:center}
.nvva-story-hero__grid--no-photo{grid-template-columns:1fr;max-width:1000px}
.nvva-story-hero h1{font-size:var(--story-title);line-height:1.08;letter-spacing:-.05em;overflow-wrap:break-word;margin:28px 0 32px;text-wrap:pretty}
.nvva-story-hero .eyebrow a:hover{text-decoration:underline;text-underline-offset:5px}
.nvva-story-intro{font-size:18px;line-height:1.7;margin:0 0 30px}.nvva-story-intro p+p{margin-top:18px}
.nvva-story-meta{display:flex;gap:12px 22px;flex-wrap:wrap;font-size:12px;border-top:1px solid #a4b4a8;padding-top:20px;margin-bottom:20px;color:var(--muted)}
.nvva-story-meta a{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.nvva-story-hero .text-link{min-height:44px;font-size:13px}
.nvva-story-hero__photo img{width:100%;height:auto;max-height:580px;aspect-ratio:1/1;object-fit:cover}
.nvva-story-hero__photo figcaption{font-size:12px;line-height:1.6;color:var(--muted);margin-top:12px}
.nvva-story-layout{display:grid;grid-template-columns:minmax(0,1fr) 248px;gap:var(--story-gap);margin-top:var(--story-section);align-items:start}
.nvva-story-reading{min-width:0}.nvva-story-content{max-width:760px;font-size:17px;line-height:1.85;overflow-wrap:break-word}
.nvva-story-content h2{font-size:var(--story-heading);line-height:1.15;margin:1.6em 0 .7em}
.nvva-story-content h3{font-size:clamp(26px,2.7vw,34px);line-height:1.2}
.nvva-story-content>p:first-child{font-size:21px;line-height:1.65;color:var(--ink);margin-bottom:36px}
.nvva-story-content :is(h2,h3){scroll-margin-top:120px}
.nvva-story-content figure img{object-fit:contain;max-height:none}
.nvva-story-content .wp-block-table{overflow-x:auto}
.nvva-story-content .wp-block-table table{width:100%;min-width:440px;border-collapse:collapse;font-size:15px}
.nvva-story-content .wp-block-table :is(th,td){padding:16px;border:var(--story-rule);text-align:left;vertical-align:top}
.nvva-story-content .wp-block-table thead{background:var(--hero-bg)}
.nvva-story-content .nvva-editorial-section>h2{margin-top:0}
.nvva-story-contents{background:var(--hero-bg);padding:26px 30px 30px;margin-bottom:44px}
.nvva-story-contents ol{margin:18px 0 0;padding-left:23px;display:grid;gap:12px;list-style:decimal-leading-zero}
.nvva-story-contents li{padding-left:8px;font-size:14px;line-height:1.6}
.nvva-story-contents a{display:inline-block;border-bottom:1px solid transparent;min-height:30px}.nvva-story-contents a:is(:hover,:focus-visible){border-color:var(--ink)}
.nvva-story .nvva-article-sidebar__about img{aspect-ratio:1.06;clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}
.nvva-story .nvva-article-sidebar__about h2{font-size:30px}.nvva-story .nvva-article-sidebar__post small{color:var(--muted)}
.nvva-story .nvva-article-sidebar__about a{position:relative;min-height:44px}.nvva-story .nvva-article-sidebar__post strong{position:relative;padding-bottom:8px;width:fit-content}
.nvva-story .nvva-article-sidebar__post strong:after,.nvva-story .nvva-article-sidebar__about a:after{content:'';position:absolute;inset:auto 0 -3px;height:6px;background:var(--zigzag) repeat-x left center;transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease);animation:story-zigzag 2.4s linear infinite paused}
.nvva-story .nvva-article-sidebar__post:is(:hover,:focus-visible) strong:after,.nvva-story .nvva-article-sidebar__about a:is(:hover,:focus-visible):after{transform:scaleX(1);animation-play-state:running}
.nvva-story .nvva-article-sidebar__post:is(:hover,:focus-visible) strong,.nvva-story .nvva-article-sidebar__about a:is(:hover,:focus-visible){color:var(--ink)}
.nvva-story-end{border-top:var(--story-rule);padding-top:24px;margin-block:64px 100px}
/* Alimentazione: a reference article, wide reading column and ruled headings. */
.nvva-story--alimentazione .nvva-story-content>h2{border-top:var(--story-rule);padding-top:28px}
/* Curiosità: the question leads; the supporting image has a quieter scale. */
.nvva-story--curiosita .nvva-story-hero{background:var(--paper)}
.nvva-story--curiosita .nvva-story-hero__grid{grid-template-columns:1.3fr .7fr;border-bottom:var(--story-rule)}
.nvva-story--curiosita .nvva-story-hero__photo{align-self:center}
.nvva-story--curiosita .nvva-story-hero__photo img{aspect-ratio:1;object-fit:contain;background:var(--hero-bg)}
.nvva-story--curiosita .nvva-story-content>p:first-child{border-left:2px solid var(--ink);padding-left:26px}
/* Dimensione bimbo: narrative rhythm and photographs with their original proportions. */
.nvva-story--dimensione-bimbo .nvva-story-hero__grid{grid-template-columns:1fr 1fr}
.nvva-story--dimensione-bimbo .nvva-story-hero__photo img{aspect-ratio:auto;object-fit:contain;max-height:560px}
.nvva-story--dimensione-bimbo .nvva-story-content{max-width:690px}
.nvva-story--dimensione-bimbo .nvva-story-content>p{margin-bottom:1.8em}
.nvva-story--dimensione-bimbo .nvva-story-content blockquote{border-left:0;border-block:var(--story-rule);padding:28px 0;font-size:28px}
/* Svezzamento: clear orientation and a visible sequence of sections. */
.nvva-story--svezzamento .nvva-story-hero__photo img{aspect-ratio:4/3;object-fit:contain}
.nvva-story--svezzamento .nvva-story-content{counter-reset:guide-section}
.nvva-story--svezzamento .nvva-story-content h2{counter-increment:guide-section;padding-top:26px;border-top:var(--story-rule)}
.nvva-story--svezzamento .nvva-story-content h2:before{content:counter(guide-section,decimal-leading-zero) ' / ';display:block;margin-bottom:14px;font:600 12px/1.5 DMSans,Arial,sans-serif;letter-spacing:.1em}
.nvva-story--svezzamento .nvva-story-contents ol{grid-template-columns:1fr 1fr;column-gap:32px}
.nvva-story .nvva-story-hero__grid--no-photo{grid-template-columns:1fr}
@keyframes story-zigzag{to{background-position:-48px center}}
@media(max-width:1000px){.nvva-story-layout{grid-template-columns:minmax(0,1fr) 220px;gap:36px}.nvva-story-hero__grid{gap:32px}.nvva-story-hero h1{font-size:clamp(40px,4.9vw,60px)}}
@media(max-width:900px){.nvva-story-layout{grid-template-columns:1fr;gap:64px}.nvva-story-content{max-width:100%}.nvva-story .nvva-article-sidebar{grid-template-columns:1fr 1fr}.nvva-story--svezzamento .nvva-story-contents ol{grid-template-columns:1fr}}
@media(max-width:700px){.nvva-story{--story-section:48px;--story-heading:34px}.nvva-story .nvva-story-hero__grid{grid-template-columns:1fr;padding-block:36px 40px;gap:32px}.nvva-story-hero h1{font-size:clamp(36px,9.7vw,54px);margin-block:24px}.nvva-story-hero__photo img{aspect-ratio:4/3;max-height:none}.nvva-story--dimensione-bimbo .nvva-story-hero__photo img{max-height:460px}.nvva-story--curiosita .nvva-story-hero__photo img{aspect-ratio:4/3}.nvva-story-intro{font-size:17px}.nvva-story-content>p:first-child{font-size:19px}.nvva-story-content{font-size:16px;line-height:1.8}.nvva-story-contents{padding:24px}.nvva-story .nvva-article-sidebar__about img{max-width:300px}.nvva-story-end{margin-block:48px 72px}.nvva-story .nvva-article-sidebar{display:block}}
@media(prefers-reduced-motion:reduce){.nvva-story .nvva-article-sidebar__post strong:after,.nvva-story .nvva-article-sidebar__about a:after{animation:none;transition:none}}

/* Curiosità: cover and title belong to the reading column, alongside the sidebar. */
.nvva-story--curiosita .nvva-story-hero--cover{border:0;font-size:var(--wp--custom--editorial--body, clamp(1.0625rem, 1rem + .18vw, 1.1875rem));max-width:62ch;margin-bottom:40px}
.nvva-story--curiosita .nvva-story-hero__stack{display:flex;flex-direction:column;gap:32px}
.nvva-story--curiosita .nvva-story-hero__stack .nvva-story-hero__photo{width:100%;margin:0}
.nvva-story--curiosita .nvva-story-hero__stack .nvva-story-hero__photo img{display:block;width:100%;height:auto;aspect-ratio:auto;max-height:none;background:transparent;object-fit:contain}
.nvva-story--curiosita .nvva-story-hero__stack h1{font-size:clamp(36px,4vw,60px);margin-block:24px 32px}
@media(max-width:700px){.nvva-story--curiosita .nvva-story-hero__stack{gap:24px}.nvva-story--curiosita .nvva-story-hero__stack h1{font-size:clamp(32px,8.5vw,44px)}}
