/* V21 — rifinitura editoriale: gerarchia, ritmo e leggibilità, senza cambiare le foto. */
#page { --aa-amber:#efbc84; --aa-cream:#fff4e5; --aa-dark:#160e0a; }
#page .aa-skip {
  position:fixed; z-index:120; top:10px; left:12px; padding:12px 18px;
  background:#fffaf4; color:#241710; border-radius:10px; font-weight:700;
  transform:translateY(-180%); text-decoration:none;
}
#page .aa-skip:focus { transform:none; }
#page :is(a,button,[tabindex="0"]):focus-visible { outline:2px solid #996137; outline-offset:4px; }
#page :is(.hero,.ch-pizze,.sf,.v19-reviews) :is(a,button,[tabindex="0"]):focus-visible { outline-color:#f2c68c; }
#page #contenuto:focus { outline:none; }

/* A restrained, compact navigation; stable dimensions as it becomes sticky. */
#nav.nav { height:94px; padding-inline:clamp(22px,5vw,90px); border-bottom-color:#e9ded0; }
#nav.nav.scrolled { box-shadow:0 5px 24px #2b1b100b; }
#nav .nav-logo { height:70px; }
#nav .nav-logo img { max-height:70px; max-width:140px; }
#nav .nav-links { gap:clamp(12px,1.55vw,28px); font-size:.84rem; }
#nav .nav-r { flex:none; gap:10px; }
#nav .pill { min-height:46px; justify-content:center; }
#nav .pill-ink { padding-inline:22px; }
#nav .nav-links a[aria-current="true"] { color:#82492e; }
#nav .nav-links a i::after,.chap a i::after { background:#9a603f; }
#page .chap { border-bottom-color:#e0ceba; background:#fbf7f1f7; visibility:hidden; }
#page .chap.on { visibility:visible; }
#page .chap-in { padding-inline:clamp(12px,4vw,40px); }
#page .chap a { min-height:44px; display:flex; align-items:center; }
#page .chap a[aria-current="true"] { color:#79452d; }
#page .notice { top:calc(var(--navh,94px) + 10px); }
#page :is(#pizza,#impasti,#senza-glutine,#pizze,#storia,#album,#vieni,#recensioni,[id^="history-"]) {
  scroll-margin-top:calc(var(--navh,94px) + 22px);
}

/* The oven starts immediately below the navigation. No location badge, no empty band. */
.site-v19 #fuoco.hero-v8 .scene { padding-top:clamp(30px,6vh,72px); align-items:center; }
.site-v19 #fuoco.hero-v8 .fire {
  translate:none; inset:0 0 0 20%; mask-image:none; -webkit-mask-image:none;
  background-position:65% 52%; will-change:auto;
}
.site-v19 #fuoco.hero-v8 .shade {
  background:linear-gradient(90deg,#140d09 0%,#140d09f5 22%,#140d09dc 38%,#140d0970 57%,#140d0912 78%,#140d0908 100%),
             linear-gradient(0deg,#140d09b0,transparent 26%,transparent 88%,#140d0920);
}
.site-v19 #fuoco.hero-v8 .content { width:min(57%,690px); min-width:0; }
.site-v19 #fuoco.hero-v8 .content h1 {
  font-size:clamp(52px,6.3vw,104px); line-height:1.00; letter-spacing:-.047em;
  margin:20px 0 22px; overflow:visible;
}
.site-v19 #fuoco.hero-v8 .v14-line { padding-bottom:.085em; }
.site-v19 #fuoco.hero-v8 .content .kicker { font-size:.76rem; letter-spacing:.14em; }
.site-v19 #fuoco.hero-v8 .content p { font-size:clamp(.98rem,1.2vw,1.13rem); line-height:1.62; max-width:42ch; margin-bottom:25px; }
.site-v19 #fuoco.hero-v8 .actions { gap:10px; }
.site-v19 #fuoco.hero-v8 .primary { box-shadow:0 6px 22px #10090535; border-color:#f2c68c; }
.site-v19 #fuoco.hero-v8 .secondary { background:#140d09a6; border-color:#f0d6b58c; }
.site-v19 #fuoco.hero-v8 .primary:hover { background:#ffdab0; }
.site-v19 #fuoco.hero-v8 .v8-live { margin-top:16px; }
.site-v19 #fuoco.hero-v8 .v8-live .hero-status {
  display:inline-flex; align-items:center; gap:10px; max-width:100%; padding:9px 14px;
  font-size:.82rem; font-weight:550; line-height:1.35; min-height:40px; white-space:normal;
}
#page #status::before,#page #status::after,#page #viStatus::before { flex:none; }
#page :is(#status,#viStatus,#nsStatus).is-upcoming::before { background:#e5ae63; box-shadow:0 0 0 4px #e5ae632a; }
#page #status.is-open::before { background:#6aca85; box-shadow:0 0 0 4px #6aca852b; }

/* Shared rhythm and contrast throughout the editorial chapters. */
#page.site-v19 .proof { gap:12px; }
#page.site-v19 .proof li { border:1px solid #e6d6c4; background:#fffaf4; border-radius:14px; }
#page.site-v19 .proof li b { letter-spacing:-.025em; }
#page.site-v19 .an-det .an-p { line-height:1.65; }
#page.site-v19 .an-picks span { line-height:1.3; overflow-wrap:break-word; }
#page.site-v19 .an-picks button { width:100%; border-radius:12px; }
#page.site-v19 .im-list button { transition:background .2s,color .2s,border-color .2s; }
#page.site-v19 .gf { padding:clamp(22px,4vw,48px); background:#fdf7ee; border:1px solid #e4d3bd; }
#page.site-v19 .ch-pizze .pz-desc { color:#e0cfbc; margin-top:9px; min-height:0; }
#page.site-v19 .ch-pizze .pz-hint { color:#d9c8b6; }
#page.site-v19 .ch-pizze .pz-plate.photo { border-radius:18px; box-shadow:none; overflow:visible; }
#page.site-v19 .ch-pizze .pz-plate.photo img { object-fit:contain; transform:none; border-radius:18px; }
#page.site-v19 .ch-pizze .pz-card { display:block; min-width:0; }
#page.site-v19 .ch-pizze .pz-stage { min-width:0; }
#page.site-v19 .v16-photo button { border-radius:16px; }
#page.site-v19 .v16-photo figcaption { line-height:1.4; }
#page.site-v19 .v16-dialog { border-radius:20px; }
#page.site-v19 .v19-action { box-shadow:0 4px 14px #3826190c; }
#page.site-v19 .v19-reviews h2 { line-height:1.10; }
#page.site-v19 .sf .sf-big { line-height:1.13; }
#page.site-v19 .sf-cols { gap:clamp(22px,4vw,52px); }
#page.site-v19 .sf-cols h3 { color:#d8c4af; }
#page.site-v19 .sf-legal { line-height:1.5; }
#page.site-v19 .sf-cols a:hover { text-decoration:underline; text-underline-offset:4px; }

/* Vector icons: no reliance on operating-system fonts for arrows and controls. */
#page .aa-icon { display:inline-flex; width:1.15em; height:1.15em; align-items:center; justify-content:center; flex:none; vertical-align:-.17em; }
#page .aa-icon svg { width:100%; height:100%; display:block; }
#page :is(.v19-action-icon,.v19-news-symbol) svg { width:24px; height:24px; }
#page .v19-review-controls button { font-size:0; position:relative; }
#page .v19-review-controls button:is([data-review-prev],[data-review-next])::before {
  content:""; width:10px; height:10px; border-top:1.7px solid currentColor; border-right:1.7px solid currentColor;
}
#page .v19-review-controls button[data-review-prev]::before { transform:translateX(2px) rotate(-135deg); }
#page .v19-review-controls button[data-review-next]::before { transform:translateX(-2px) rotate(45deg); }
#page .v19-review-controls button[data-review-pause]::before { content:""; width:11px; height:14px; border-inline:3px solid currentColor; }
#page .v19-review-controls button[data-review-pause][aria-pressed="true"]::before { width:0; height:0; border:7px solid transparent; border-left:11px solid currentColor; border-right:0; transform:translateX(1px); }

/* Text stays legible while scrolling; reveal movement is deliberately subtle. */
#page.site-v12.unfold-ready :is([data-unfold],.proof,.pr-foot,.sf-cols,.timeline-copy) {
  opacity:calc(.88 + .12 * var(--unfold,1)); translate:0 calc((1 - var(--unfold,1))*9px);
}
#page.site-v15 :is(.an-picks li,.gf-list li,.week li,.sf-cols>div,.proof li) {
  opacity:calc(.88 + .12 * var(--item-p,1)); translate:0 calc((1 - var(--item-p,1))*8px);
}

@media(max-width:1180px) {
  #page :is(#pizza,#impasti,#senza-glutine,#pizze,#storia,#album,#vieni,#recensioni,[id^="history-"]) {
    scroll-margin-top:calc(var(--navh,94px) + 58px);
  }
}
@media(max-width:960px) {
  #nav.nav { height:76px; padding-inline:clamp(18px,5.5vw,44px); }
  #nav .nav-logo { height:60px; }
  #nav .nav-logo img { max-width:119px; max-height:60px; }
  #nav .nav-r { gap:8px; }
  #nav .pill-line { width:46px; padding:0; }
  #nav .pill-ink { padding-inline:19px; font-size:.94rem; }
  .site-v19 #fuoco.hero-v8 { --gutter:clamp(20px,6vw,50px); }
}
@media(max-width:900px) {
  .site-v19 #fuoco.hero-v8 .scene {
    min-height:calc(100svh - var(--h)); height:auto; align-items:flex-end;
    padding:clamp(185px,32svh,340px) var(--gutter) clamp(25px,4vh,42px);
  }
  .site-v19 #fuoco.hero-v8 .fire { inset:0 -2% 28%; background-position:53% 45%; }
  .site-v19 #fuoco.hero-v8 .shade {
    background:linear-gradient(0deg,#140d09 0%,#140d09 26%,#140d09f2 37%,#140d0975 57%,#140d0910 77%,#140d0900 100%);
  }
  .site-v19 #fuoco.hero-v8 .content { width:100%; max-width:620px; }
  .site-v19 #fuoco.hero-v8 .content h1 { font-size:clamp(38px,10.8vw,68px); margin:12px 0 16px; }
  .site-v19 #fuoco.hero-v8 .content .kicker { font-size:clamp(.62rem,2.6vw,.75rem); letter-spacing:.12em; }
  .site-v19 #fuoco.hero-v8 .content p { font-size:clamp(.94rem,3.8vw,1.07rem); line-height:1.55; margin-bottom:21px; }
  .site-v19 #fuoco.hero-v8 .actions { gap:9px; }
  .site-v19 #fuoco.hero-v8 .primary,.site-v19 #fuoco.hero-v8 .secondary {
    min-height:50px; font-size:.88rem; padding-inline:20px; gap:10px;
  }
  .site-v19 #fuoco.hero-v8 .v8-live { margin-top:13px; }
  .site-v19 #fuoco.hero-v8 .v8-live .hero-status { font-size:.79rem; }
  #page.site-v19 .gf { padding:22px; }
}
@media(max-width:420px) {
  #nav.nav { height:72px; }
  #nav .nav-logo { height:56px; }
  #nav .nav-logo img { max-height:56px; }
  .site-v19 #fuoco.hero-v8 .primary,.site-v19 #fuoco.hero-v8 .secondary { padding-inline:17px; }
  #page.site-v19 .proof li { padding:12px 14px; }
  #page.site-v19 .v19-action { padding:15px; }
}
@media(max-width:360px) {
  .site-v19 #fuoco.hero-v8 .content h1 { font-size:clamp(33px,10.6vw,38px); }
  .site-v19 #fuoco.hero-v8 .scene { padding-inline:18px; }
  .site-v19 #fuoco.hero-v8 .primary,.site-v19 #fuoco.hero-v8 .secondary { font-size:.82rem; padding-inline:15px; }
  #page.site-v19 .gf { padding:18px; }
  #page.site-v19 .sf-cols { grid-template-columns:1fr; }
  #page.site-v19 .sf-cols>div:first-child { grid-column:auto; }
}
@media(max-height:550px) and (orientation:landscape) {
  .site-v19 #fuoco.hero-v8 .scene { padding-top:32px; padding-bottom:30px; min-height:460px; }
}
@media(prefers-reduced-motion:reduce) {
  #page.site-v12.unfold-ready :is([data-unfold],.proof,.pr-foot,.sf-cols,.timeline-copy),
  #page.site-v15 :is(.an-picks li,.gf-list li,.week li,.sf-cols>div,.proof li) { opacity:1!important; translate:none!important; }
}
