/* AncheCasa Magazine — sfogliabile con carta da rivista.
   Le pagine sono disegnate a misura fissa (px) e il libro viene scalato per stare nello schermo. */

.mg-root {
  --mg-navy: #1a2432;
  --mg-orange: #e56b10;
  --mg-orange-ink: #c35a0c;
  --mg-paper: #ffffff;
  --mg-paper-2: #f4f2ee;
  --mg-ink: #1b1d24;
  --mg-ink-2: #555a66;
  --mg-rule: #e3e0da;
  --mg-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --mg-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mg-sans: Montserrat, "Segoe UI", Arial, sans-serif;
  --mg-body: 12.5px;
  position: relative;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, #3a4f6c 0%, #2a3c54 45%, #141c28 100%);
  color: var(--mg-ink);
  padding-block: 18px 14px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.mg-root.is-single { --mg-body: 13.6px; padding-block: 8px 8px; }
.mg-root:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, #3a4f6c 0%, #2a3c54 45%, #141c28 100%);
}
.mg-root:fullscreen .mg-stage { flex: 1 1 auto; min-height: 0; visibility: visible; }

/* La barra è quella del sito. La rivista riempie tutto lo schermo sotto la barra. */
body[data-page="magazine"] {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background: #141c28;
}
body[data-page="magazine"] #contenuto {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body[data-page="magazine"] .mg-root {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
body[data-page="magazine"] .site-footer {
  position: relative;
  z-index: 2;
  flex: none;
}
body[data-page="magazine"] .mg-stage {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  animation: none;
  visibility: hidden;
}
body[data-page="magazine"] .mg-root.is-ready .mg-stage { visibility: visible; }
body[data-page="magazine"] .mg-controls,
body[data-page="magazine"] .mg-hint { flex: none; }
body[data-page="magazine"] .testata { flex: none; position: relative; }
body[data-page="magazine"] .mg-hint,
body[data-page="magazine"] .mg-home { display: none; }
body[data-page="magazine"] .mg-root { background: #141c28; }
body[data-page="magazine"] .mg-root img { max-width: none; }

.mg-stage { position: relative; margin: 0 auto; touch-action: none; }
.mg-stage input, .mg-stage select, .mg-stage textarea, .mg-stage button, .mg-stage a { touch-action: manipulation; }
.is-single .mg-body { touch-action: pan-y; }
.mg-scaler { position: absolute; top: 0; left: 50%; transform-origin: top center; }
.mg-book {
  position: relative;
  perspective: 2600px;
  transition: transform .7s cubic-bezier(.3,.7,.2,1);
}
.mg-book::after { /* ombra sotto il libro */
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -26px; height: 40px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 70%);
  filter: blur(6px); z-index: -1;
}

.mg-leaf {
  position: absolute; top: 0; height: 100%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform .95s cubic-bezier(.45,.05,.2,1);
}
.mg-leaf.is-flipped { transform: rotateY(-180deg); }
.mg-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  overflow: hidden;
  background: var(--mg-paper);
}
.mg-face.back { transform: rotateY(180deg); }

/* grana della carta + bordo pagine */
.mg-face::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.38 0 0 0 0 0.36 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
/* ombra della rilegatura: pagine di destra (front) hanno la piega a sinistra, quelle di sinistra (back) a destra */
.mg-face::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; pointer-events: none; z-index: 6;
}
.mg-face.front::after { left: 0; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,.06) 30%, transparent); }
.mg-face.back::after { right: 0; background: linear-gradient(270deg, rgba(0,0,0,.22), rgba(0,0,0,.06) 30%, transparent); }
.is-single .mg-face.front::after { width: 18px; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent); }
.mg-face.is-cover::after { width: 10px; background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(0,0,0,.25)); }

/* luce che scorre sulla pagina mentre gira */
.mg-leaf .mg-shine {
  position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent 20%, rgba(255,255,255,.28) 48%, rgba(0,0,0,.12) 60%, transparent 80%);
}
.mg-leaf.is-turning .mg-shine { animation: mg-shine .95s ease; }
@keyframes mg-shine { 0% { opacity: 0; transform: translateX(30%); } 45% { opacity: 1; } 100% { opacity: 0; transform: translateX(-30%); } }

/* pila di pagine sui bordi */
.mg-edge { position: absolute; top: 3px; bottom: 3px; width: 6px; z-index: 0;
  background: repeating-linear-gradient(90deg, #e9e3d6 0 1px, #fbf8f2 1px 2px); box-shadow: 0 0 2px rgba(0,0,0,.3); }

/* ---------- controlli ---------- */
.mg-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; padding-inline: 16px; }
.is-single .mg-controls { margin-top: 18px; }
.mg-btn {
  font-family: var(--mg-sans); font-size: 13px; font-weight: 600; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  color: #fff; padding: 9px 16px; cursor: pointer; transition: background .2s;
}
.mg-btn:hover:not(:disabled) { background: rgba(255,255,255,.14); }
.mg-btn:disabled { opacity: .3; cursor: default; }
.mg-btn.primary { background: var(--mg-orange); border-color: var(--mg-orange); color: #fff; }
.mg-btn.primary:hover:not(:disabled) { background: #f07c22; }
.mg-btn:focus-visible { outline: 2px solid var(--mg-orange); outline-offset: 2px; }
.mg-counter { font-family: var(--mg-sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); min-width: 120px; text-align: center; font-variant-numeric: tabular-nums; }
.mg-hint { text-align: center; font-family: var(--mg-sans); font-size: 11px; color: rgba(255,255,255,.45); margin-top: 10px; letter-spacing: .04em; }

/* ---------- impaginazione ---------- */
.mg-page { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; font-family: var(--mg-serif); font-size: var(--mg-body); line-height: 1.52; color: var(--mg-ink); }
.mg-pad { padding: 38px 40px 46px; }
.is-single .mg-pad { padding: 30px 26px 44px; }
.mg-body { flex: 1; min-height: 0; overflow: hidden; }
.is-single .mg-body { overflow-y: auto; scrollbar-width: thin; }

.mg-kicker { font-family: var(--mg-sans); font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--mg-orange-ink); display: flex; align-items: center; gap: 10px; }
.mg-kicker::after { content: ""; flex: 1; height: 1px; background: var(--mg-rule); }
.mg-h1 { font-family: var(--mg-display); font-weight: 600; font-size: 40px; line-height: 1.02; letter-spacing: -.01em; margin: 12px 0 10px; text-wrap: balance; color: var(--mg-navy); }
.mg-h1 em { font-style: italic; color: var(--mg-orange-ink); }
.mg-h2 { font-family: var(--mg-display); font-weight: 600; font-size: 28px; line-height: 1.06; margin: 10px 0 8px; text-wrap: balance; color: var(--mg-navy); }
.mg-h3 { break-after: avoid; font-family: var(--mg-sans); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin: 12px 0 4px; color: var(--mg-navy); }
.mg-dek { font-family: var(--mg-serif); font-style: italic; font-size: calc(var(--mg-body) + 2.5px); line-height: 1.42; color: var(--mg-ink-2); margin: 0 0 12px; }
.mg-p { margin: 0 0 8px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.mg-cols { column-count: 2; column-gap: 22px; column-rule: 1px solid var(--mg-rule); }
.is-single .mg-cols { column-count: 1; }
.mg-dropcap::first-letter { font-family: var(--mg-display); float: left; font-size: 54px; line-height: .82; padding: 5px 7px 0 0; color: var(--mg-orange-ink); font-weight: 600; }
.mg-quote { font-family: var(--mg-display); font-style: italic; font-size: 21px; line-height: 1.2; color: var(--mg-navy); border-top: 2px solid var(--mg-orange); padding-top: 8px; margin: 10px 0; break-inside: avoid; }
.mg-small { font-family: var(--mg-sans); font-size: 9.5px; color: var(--mg-ink-2); letter-spacing: .02em; line-height: 1.4; }
.mg-list { margin: 4px 0 8px; padding: 0; list-style: none; }
.mg-list li { position: relative; padding-left: 16px; margin-bottom: 5px; break-inside: avoid; }
.mg-list li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; background: var(--mg-orange); transform: rotate(45deg); }
.mg-box { background: var(--mg-paper-2); border-top: 3px solid var(--mg-navy); padding: 10px 12px; margin: 8px 0; break-inside: avoid; }
.mg-table { width: 100%; border-collapse: collapse; font-family: var(--mg-sans); font-size: 10.5px; font-variant-numeric: tabular-nums; margin: 6px 0 10px; }
.mg-table th { text-align: left; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mg-ink-2); border-bottom: 2px solid var(--mg-navy); padding: 5px 4px; }
.mg-table td { border-bottom: 1px solid var(--mg-rule); padding: 6px 4px; vertical-align: top; }
.mg-table td.num { font-family: var(--mg-display); font-size: 17px; font-weight: 600; color: var(--mg-orange-ink); }

.mg-folio { position: absolute; bottom: 16px; left: 40px; right: 40px; display: flex; justify-content: space-between; font-family: var(--mg-sans); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mg-ink-2); z-index: 4; }
.is-single .mg-folio { left: 26px; right: 26px; }
.mg-folio b { color: var(--mg-navy); font-size: 10px; }
.mg-face.front .mg-folio { flex-direction: row-reverse; }
.mg-folio.on-photo { color: rgba(255,255,255,.85); }
.mg-folio.on-photo b { color: #fff; }

.mg-photo { position: relative; overflow: hidden; background: #ddd5c6; }
.mg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-caption { font-family: var(--mg-sans); font-size: 9px; color: var(--mg-ink-2); margin-top: 5px; letter-spacing: .02em; }
.mg-bleed { position: absolute; inset: 0; }
.mg-shade-b { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(8,12,22,.55) 62%, rgba(8,12,22,.9) 100%); }
.mg-shade-t { position: absolute; inset: 0; background: linear-gradient(0deg, transparent 55%, rgba(8,12,22,.55) 100%); }

/* copertina */
.mg-cover { color: #fff; }
.mg-masthead { position: absolute; top: 26px; left: 0; right: 0; text-align: center; z-index: 3; }
.mg-masthead .name { font-family: var(--mg-display); font-weight: 700; font-size: 92px; line-height: .9; letter-spacing: -.02em; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.mg-masthead .name span { color: var(--mg-orange); }
.is-single .mg-masthead .name { font-size: 76px; }
.mg-masthead .sub { font-family: var(--mg-sans); font-size: 11px; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; margin-top: 6px; padding-left: .5em; }
.mg-issue { position: absolute; top: 140px; left: 30px; right: 30px; display: flex; justify-content: space-between; font-family: var(--mg-sans); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; border-top: 1px solid rgba(255,255,255,.55); border-bottom: 1px solid rgba(255,255,255,.55); padding: 5px 0; z-index: 3; }
.is-single .mg-issue { top: 122px; left: 22px; right: 22px; font-size: 8.5px; letter-spacing: .12em; }
.mg-coverlines { position: absolute; left: 30px; right: 30px; bottom: 30px; z-index: 3; display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: end; }
.is-single .mg-coverlines { left: 22px; right: 22px; bottom: 26px; grid-template-columns: 1fr; gap: 12px; }
.mg-cl-big .n { font-family: var(--mg-display); font-size: 84px; line-height: .85; font-weight: 700; color: var(--mg-orange); }
.mg-cl-big .t { font-family: var(--mg-display); font-size: 22px; line-height: 1.08; font-style: italic; }
.mg-cl { border-left: 2px solid var(--mg-orange); padding-left: 9px; margin-top: 10px; }
.mg-cl b { display: block; font-family: var(--mg-sans); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mg-orange); }
.mg-cl span { font-family: var(--mg-serif); font-size: 13px; line-height: 1.3; }
.is-single .mg-cl span { font-size: 12.5px; }
.mg-slogan { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-family: var(--mg-sans); font-size: 8px; letter-spacing: .4em; text-transform: uppercase; color: rgba(255,255,255,.7); z-index: 3; }

/* sommario */
.mg-toc { list-style: none; margin: 8px 0 0; padding: 0; }
.mg-toc li { border-bottom: 1px solid var(--mg-rule); }
.mg-toc .row { box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 34px 1fr 54px; gap: 10px; align-items: center; padding: 7px 0; cursor: default; }
.mg-toc .pg { font-family: var(--mg-display); font-size: 22px; font-weight: 600; color: var(--mg-orange-ink); }
.mg-toc .tt { font-family: var(--mg-display); font-size: 15px; font-weight: 600; line-height: 1.1; color: var(--mg-navy); }
.mg-toc .sec { display: block; font-family: var(--mg-sans); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mg-ink-2); margin-bottom: 2px; }
.mg-toc img { width: 54px; height: 40px; object-fit: cover; }
.mg-toc .noimg { width: 54px; height: 40px; background: var(--mg-paper-2); }

/* numeri del mese */
.mg-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 6px; }
.mg-stat { border-top: 1px solid var(--mg-navy); padding: 8px 0 10px; }
.mg-stat .v { font-family: var(--mg-display); font-size: 44px; font-weight: 700; line-height: 1; color: var(--mg-navy); }
.mg-stat .v small { font-size: 22px; }
.mg-stat:nth-child(3n+1) .v { color: var(--mg-orange-ink); }
.mg-stat .l { font-size: 11.5px; line-height: 1.35; margin-top: 4px; }
.mg-stat .s { font-family: var(--mg-sans); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mg-ink-2); margin-top: 4px; }

/* blocco foto+titolo a tutta pagina */
.mg-opener { position: absolute; left: 34px; right: 34px; bottom: 54px; color: #fff; z-index: 3; }
.mg-opener .mg-kicker { color: var(--mg-orange); }
.mg-opener .mg-kicker::after { background: rgba(255,255,255,.4); }
.mg-opener .mg-h1 { color: #fff; font-size: 46px; }
.mg-opener .mg-h1 em { color: var(--mg-orange); }
.mg-opener .mg-dek { color: rgba(255,255,255,.88); }
.is-single .mg-opener { left: 24px; right: 24px; }
.is-single .mg-opener .mg-h1 { font-size: 40px; }

/* retro copertina */
.mg-back { background: var(--mg-navy); color: #fff; }
.mg-back .mg-h2, .mg-back .mg-h1 { color: #fff; }
.mg-back .mg-kicker { color: var(--mg-orange); }
.mg-back .mg-kicker::after { background: rgba(255,255,255,.25); }
.mg-back .mg-list li::before { background: var(--mg-orange); }

/* CTA */
.mg-cta { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; background: var(--mg-orange); color: #fff; font-family: var(--mg-sans); font-weight: 700; font-size: 13px; padding: 11px 18px; border-radius: 3px; }
.mg-cta:hover { background: #c85d0d; }
.mg-cta:focus-visible { outline: 2px solid var(--mg-navy); outline-offset: 2px; }
.mg-cta.ghost { background: transparent; color: var(--mg-navy); border: 1px solid var(--mg-navy); }
.mg-cta[disabled] { opacity: .6; }

/* ---------- strumento lettura bolletta ---------- */
.mg-tool { font-family: var(--mg-sans); font-size: 12px; }
.mg-seg { display: inline-flex; border: 1px solid var(--mg-navy); border-radius: 3px; overflow: hidden; }
.mg-seg button { all: unset; cursor: pointer; padding: 6px 16px; font-weight: 700; font-size: 12px; color: var(--mg-navy); }
.mg-seg button[aria-pressed="true"] { background: var(--mg-navy); color: #fff; }
.mg-seg button:focus-visible { outline: 2px solid var(--mg-orange); outline-offset: -2px; }
.mg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 10px 0; }
.mg-field label { display: block; font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mg-ink-2); margin-bottom: 3px; font-weight: 600; }
.mg-field input, .mg-field select { box-sizing: border-box; width: 100%; font: 600 15px var(--mg-sans); color: var(--mg-ink); background: #fff; border: 1px solid #cfc7b7; border-radius: 3px; padding: 7px 8px; user-select: text; }
.mg-field input:focus, .mg-field select:focus { outline: 2px solid var(--mg-orange); outline-offset: 0; border-color: var(--mg-orange); }
.mg-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--mg-navy); border-bottom: 1px solid var(--mg-rule); margin: 8px 0; }
.mg-results div { padding: 8px 6px 8px 0; }
.mg-results div + div { padding-left: 8px; border-left: 1px solid var(--mg-rule); }
.mg-results .v { font-family: var(--mg-display); font-size: 22px; font-weight: 700; color: var(--mg-navy); font-variant-numeric: tabular-nums; line-height: 1.05; }
.mg-results .l { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mg-ink-2); margin-top: 3px; }
.mg-verdict { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; margin: 6px 0; font-family: var(--mg-serif); font-size: 12px; line-height: 1.4; }
.mg-chip { font-family: var(--mg-sans); font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px; white-space: nowrap; margin-top: 1px; }
.mg-chip.ok { background: #dcefe1; color: #1d5a32; }
.mg-chip.warn { background: #fde7c7; color: #7a4300; }
.mg-chip.bad { background: #f8d4cf; color: #8a1f12; }
.mg-tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mg-tool-actions a.mg-cta { text-decoration: none; }
.mg-example { font-size: 9px; color: var(--mg-orange-ink); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mg-error { color: #8a1f12; font-size: 11px; margin: 4px 0; }

@media (prefers-reduced-motion: reduce) {
  .mg-leaf, .mg-book { transition-duration: .01s; }
  .mg-leaf.is-turning .mg-shine { animation: none; }
}
.mg-root [hidden] { display: none !important; }

.mg-root h1, .mg-root h2, .mg-root h3 { text-transform: none; }
.mg-root .mg-h3 { text-transform: uppercase; }
.is-single .mg-controls { gap: 6px; flex-wrap: nowrap; padding-inline: 8px; }
.is-single .mg-btn { padding: 8px 12px; font-size: 12px; }
.is-single .mg-counter { min-width: 0; font-size: 10px; letter-spacing: .06em; flex: 1; }
.mg-opener .mg-kicker { text-shadow: 0 1px 6px rgba(0,0,0,.5); }

.is-spread .mg-toc .row { padding: 2px 0; grid-template-columns: 32px 1fr 42px; }
.is-spread .mg-toc img, .is-spread .mg-toc .noimg { width: 42px; height: 28px; }
.is-spread .mg-toc .pg { font-size: 19px; }
.is-spread .mg-toc .tt { font-size: 14px; }

/* ===== v2: pagine grafiche ===== */
/* lucentezza della carta patinata */
.mg-face .mg-page::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.10) 45%, rgba(255,255,255,0) 60%); }
.mg-ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.mg-ico svg { width: 100%; height: 100%; }
.mg-ico.big { width: 30px; height: 30px; color: var(--mg-orange); }
.mg-sign { font-family: var(--mg-display); font-style: italic; font-size: 17px; color: var(--mg-orange-ink); margin: 4px 0 0; }

/* numeri su foto */
.mg-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,40,.82) 0%, rgba(20,28,40,.55) 45%, rgba(20,28,40,.78) 100%); }
.mg-numeri .mg-kicker { color: var(--mg-orange); }
.mg-numeri .mg-kicker::after { background: rgba(255,255,255,.3); }
.mg-numeri .mg-h1 em { color: var(--mg-orange); }
.mg-bignums { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.mg-bignums > div { border-top: 1px solid rgba(255,255,255,.35); padding: 9px 0 12px; color: #fff; }
.mg-bignums .v { font-family: var(--mg-display); font-weight: 700; font-size: 50px; line-height: .95; color: #fff; }
.mg-bignums > div:nth-child(odd) .v { color: var(--mg-orange); }
.mg-bignums .v small { font-size: 24px; }
.mg-bignums .l { font-family: var(--mg-serif); font-size: 12px; line-height: 1.35; margin-top: 4px; color: rgba(255,255,255,.9); }
.mg-bignums .s { font-family: var(--mg-sans); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 4px; }
.is-single .mg-bignums .v { font-size: 42px; }

/* grafico bonus */
.mg-bars { width: 100%; height: auto; margin: 6px 0 4px; }
.mg-bars .t1 { font: 700 10px var(--mg-sans); letter-spacing: .1em; text-transform: uppercase; fill: var(--mg-navy); }
.mg-bars .t2 { font: 600 11px var(--mg-sans); fill: var(--mg-ink-2); }
.mg-bars .on { fill: var(--mg-orange); }
.mg-bars .off { fill: #c9ced6; }
.mg-bars .tv { font: 700 15px var(--mg-display); fill: var(--mg-navy); }
.mg-split { display: grid; grid-template-columns: 118px 1fr; gap: 16px; align-items: start; margin: 4px 0 6px; }
.mg-ring { width: 118px; height: 118px; }
.mg-ring .bg { fill: none; stroke: #eceae5; stroke-width: 11; }
.mg-ring .fg { fill: none; stroke: var(--mg-orange); stroke-width: 11; stroke-linecap: round; }
.mg-ring .n { font: 700 34px var(--mg-display); fill: var(--mg-navy); }
.mg-ring .l { font: 700 8.5px var(--mg-sans); letter-spacing: .18em; fill: var(--mg-ink-2); }
.mg-bigstat { font-family: var(--mg-display); font-weight: 700; font-size: 58px; line-height: .9; color: var(--mg-orange); }
.mg-bigstat small { font-size: 28px; }

/* pagina arancio bonifico */
.mg-orange { background: linear-gradient(160deg, #ef7a20, #d65f0b); color: #fff; }
.mg-orange .mg-kicker { color: #fff; }
.mg-orange .mg-kicker::after { background: rgba(255,255,255,.45); }
.mg-orange .mg-folio, .mg-orange .mg-folio b { color: rgba(255,255,255,.9); }
.mg-receipt { background: #fff; color: var(--mg-ink); border-radius: 4px; padding: 12px 14px 10px; transform: rotate(-1.6deg); box-shadow: 0 14px 30px rgba(80,30,0,.35), 0 2px 4px rgba(0,0,0,.15); margin: 6px 4px 14px; position: relative; font-family: var(--mg-sans); }
.mg-receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 8px; background: radial-gradient(circle at 6px -2px, transparent 6px, #fff 6.5px) 0 0 / 12px 8px repeat-x; }
.mg-receipt .rh { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--mg-ink-2); border-bottom: 2px solid var(--mg-navy); padding-bottom: 6px; margin-bottom: 4px; }
.mg-receipt .rh span:first-child { font-weight: 800; color: var(--mg-navy); font-size: 11px; }
.mg-receipt .rr { display: grid; grid-template-columns: 22px 108px 1fr; gap: 4px; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed #ddd; font-size: 10px; }
.mg-receipt .rr span { color: var(--mg-ink-2); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; grid-column: 2; }
.mg-receipt .rr b { grid-column: 3; font-size: 11px; font-weight: 700; color: var(--mg-navy); }
.mg-receipt .rr b.cz { font-weight: 600; font-family: var(--mg-serif); font-size: 11px; line-height: 1.3; }
.mg-receipt .rr.hl { background: linear-gradient(90deg, rgba(229,107,16,.13), rgba(229,107,16,.04)); }
.mg-receipt .rr i, .mg-bill i, .mg-3steps i { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--mg-orange); color: #fff; font: 800 10px var(--mg-sans); grid-column: 1; }
.mg-steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 11.5px; line-height: 1.35; margin-bottom: 12px; }
.mg-steps3 b { display: block; font-family: var(--mg-sans); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.mg-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-family: var(--mg-sans); font-size: 10.5px; line-height: 1.35; font-weight: 600; }
.mg-checks > div { display: flex; gap: 7px; align-items: flex-start; }
.mg-checks .mg-ico { width: 18px; height: 18px; background: #fff; color: var(--mg-orange); border-radius: 50%; padding: 3px; box-sizing: border-box; }
.mg-checks.dark { grid-template-columns: 1fr; color: var(--mg-navy); }
.mg-checks.dark .mg-ico { background: var(--mg-orange); color: #fff; }
.is-single .mg-steps3 { grid-template-columns: 1fr; gap: 6px; }
.is-single .mg-checks { grid-template-columns: 1fr; }

/* bolletta smontata */
.mg-bill-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.mg-bill { background: #fff; border: 1px solid #e6e2da; border-radius: 4px; padding: 10px 11px; font-family: var(--mg-sans); font-size: 9.5px; color: var(--mg-ink); box-shadow: 0 10px 24px rgba(26,36,50,.16); transform: rotate(-2deg); }
.mg-bill .bh { font-weight: 800; font-size: 11px; color: var(--mg-navy); display: flex; justify-content: space-between; border-bottom: 2px solid var(--mg-orange); padding-bottom: 5px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.mg-bill .bh span { font-weight: 600; color: var(--mg-ink-2); text-transform: none; letter-spacing: 0; }
.mg-bill .bl, .mg-bill .btot, .mg-bill .blg { display: flex; align-items: center; gap: 6px; margin: 6px 0; flex-wrap: wrap; }
.mg-bill b { color: var(--mg-navy); }
.mg-bill em { font-style: normal; background: #dcefe1; color: #1d5a32; font-size: 8px; padding: 1px 5px; border-radius: 2px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mg-bill .bstack { display: flex; height: 14px; border-radius: 2px; overflow: hidden; margin: 8px 0 4px; }
.mg-bill .bstack span:nth-child(1) { background: var(--mg-orange); } .mg-bill .bstack span:nth-child(2) { background: #2a3c54; }
.mg-bill .bstack span:nth-child(3) { background: #8a9bb0; } .mg-bill .bstack span:nth-child(4) { background: #d9c9ae; }
.mg-bill .blg span { display: inline-flex; align-items: center; gap: 3px; font-size: 8px; color: var(--mg-ink-2); }
.mg-bill .blg s { width: 7px; height: 7px; border-radius: 1px; display: inline-block; }
.mg-bill .btot { border-top: 1px solid #e6e2da; padding-top: 6px; font-size: 10px; }
.mg-bill .btot b { font-size: 17px; font-family: var(--mg-display); margin-left: auto; }
.mg-callouts { list-style: none; margin: 0; padding: 0; counter-reset: c; font-size: 11.5px; line-height: 1.35; }
.mg-callouts li { counter-increment: c; position: relative; padding-left: 26px; margin-bottom: 9px; }
.mg-callouts li::before { content: counter(c); position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--mg-orange); color: #fff; font: 800 10px/18px var(--mg-sans); text-align: center; }
.mg-callouts b { color: var(--mg-navy); }
.mg-flag { margin-top: 10px; background: var(--mg-navy); color: #fff; padding: 10px 12px; font-size: 11.5px; line-height: 1.4; border-left: 4px solid var(--mg-orange); }
.mg-flag b { color: var(--mg-orange); }
.mg-flag span { display: flex; align-items: center; gap: 6px; margin-top: 5px; font: 700 10px var(--mg-sans); letter-spacing: .1em; text-transform: uppercase; }
.mg-flag span svg { width: 14px; height: 14px; }
.is-single .mg-bill-wrap { grid-template-columns: 1fr; }
.is-single .mg-bill { max-width: 250px; }

/* energia: passi */
.mg-stepsv { display: grid; gap: 0; margin: 6px 0 4px; }
.mg-stepv { display: grid; grid-template-columns: 50px 36px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--mg-rule); }
.mg-stepv:last-child { border-bottom: 1px solid var(--mg-rule); }
.mg-stepv .num { font-family: var(--mg-display); font-weight: 700; font-size: 54px; line-height: .8; color: var(--mg-orange); }
.mg-stepv b { display: block; font-family: var(--mg-display); font-size: 21px; color: var(--mg-navy); }
.mg-stepv div:last-child { font-size: 12px; line-height: 1.38; }

/* pratiche: percorso */
.mg-flow { display: grid; grid-template-columns: 1fr 20px 152px; gap: 8px; align-items: center; margin: 5px 0; font-size: 11.5px; line-height: 1.3; }
.mg-flow .ar { color: var(--mg-ink-2); } .mg-flow .ar svg { width: 18px; height: 18px; }
.mg-flow .p { padding: 7px 10px; border-radius: 3px; color: #fff; }
.mg-flow .p b { display: block; font: 800 12px var(--mg-sans); letter-spacing: .02em; }
.mg-flow .p span { font-size: 9.5px; opacity: .85; font-family: var(--mg-sans); }
.mg-flow.l1 .p { background: #7c9a7e; } .mg-flow.l2 .p { background: #e9a05c; }
.mg-flow.l3 .p { background: var(--mg-orange); } .mg-flow.l4 .p { background: var(--mg-navy); }
.is-single .mg-flow { grid-template-columns: 1fr 16px 128px; }

/* stagioni */
.mg-seasons { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 4px; }
.mg-season { border-radius: 4px; overflow: hidden; background: var(--mg-paper-2); }
.mg-season .h { display: flex; align-items: center; gap: 7px; padding: 8px 10px; color: #fff; font: 800 11px var(--mg-sans); letter-spacing: .12em; text-transform: uppercase; }
.mg-season ul { list-style: none; margin: 0; padding: 7px 10px 9px; font-size: 11px; line-height: 1.5; }
.mg-season li::before { content: "· "; color: var(--mg-orange); font-weight: 800; }
.mg-season.au .h { background: #c35a0c; } .mg-season.wi .h { background: #2a3c54; }
.mg-season.sp .h { background: #6f8f6b; } .mg-season.su .h { background: #d9a02b; }

/* glossario */
.mg-gloss { background: radial-gradient(ellipse at 80% 0%, #2f4462, #1a2432 70%); color: #fff; position: relative; overflow: hidden; }
.mg-gloss .mg-kicker { color: var(--mg-orange); } .mg-gloss .mg-kicker::after { background: rgba(255,255,255,.25); }
.mg-gloss .mg-h1 em { color: var(--mg-orange); }
.mg-gloss .az { position: absolute; right: -14px; top: 6px; font-family: var(--mg-display); font-weight: 700; font-style: italic; font-size: 170px; line-height: 1; color: rgba(255,255,255,.05); pointer-events: none; }
.mg-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mg-tiles > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 8px 10px; }
.mg-tiles > div.hot { background: var(--mg-orange); border-color: var(--mg-orange); }
.mg-tiles b { display: block; font-family: var(--mg-display); font-size: 22px; line-height: 1; color: var(--mg-orange); margin-bottom: 3px; }
.mg-tiles .hot b { color: #fff; }
.mg-tiles span { font-size: 10.5px; line-height: 1.3; color: rgba(255,255,255,.85); display: block; }

/* tre passi su foto */
.mg-3steps { display: grid; gap: 7px; margin-top: 8px; }
.mg-3steps > div { display: flex; gap: 9px; align-items: center; font-size: 13px; color: #fff; }
.mg-cta.ghost.light { color: #fff; border-color: rgba(255,255,255,.7); }

/* richiamo Check Bollette in copertina: titolo di copertina, non un bollino */
.mg-sticker { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; z-index: 6; top: 186px; right: 30px; width: 178px;
  display: flex; flex-direction: column; align-items: flex-end; text-align: right; color: #fff;
  border-right: 2px solid var(--mg-orange); padding-right: 11px; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.mg-sticker::before { content: ""; position: absolute; z-index: -1; inset: -40px -40px -40px -70px; background: radial-gradient(ellipse at 70% 50%, rgba(12,18,28,.55), rgba(12,18,28,0) 68%); pointer-events: none; }
.mg-sticker .k { font: 800 8.5px var(--mg-sans); letter-spacing: .28em; text-transform: uppercase; color: #fff; background: var(--mg-orange); padding: 3px 6px 3px 8px; margin-bottom: 6px; text-shadow: none; }
.mg-sticker .h { font-family: var(--mg-display); font-weight: 700; font-size: 29px; line-height: .98; letter-spacing: -.01em; }
.mg-sticker .h em { font-style: italic; font-weight: 600; }
.mg-sticker .d { font-family: var(--mg-serif); font-size: 11.5px; line-height: 1.3; margin-top: 6px; color: rgba(255,255,255,.92); }
.mg-sticker .p { font: 700 9px var(--mg-sans); letter-spacing: .24em; text-transform: uppercase; margin-top: 7px; padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.6); }
.mg-sticker:hover .p { border-bottom-color: var(--mg-orange); color: var(--mg-orange); }
.mg-sticker:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.is-single .mg-sticker { top: 160px; right: 22px; width: 160px; }
.is-single .mg-sticker .h { font-size: 26px; }

/* ===== app Check Bollette ===== */
.mg-app-page { background: radial-gradient(ellipse at 15% 0%, #33496a 0%, #1a2432 60%, #121a26 100%); color: #fff; padding: 30px 30px 44px; box-sizing: border-box; }
.is-single .mg-app-page { padding: 16px 16px 36px; }
.mg-app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.mg-app-head .mg-kicker { color: var(--mg-orange); } .mg-app-head .mg-kicker::after { display: none; }
.mg-app-title { font-family: var(--mg-display); font-weight: 700; font-size: 40px; line-height: 1; margin: 6px 0 4px; color: #fff; }
.mg-app-title em { color: var(--mg-orange); }
.mg-app-sub { font-size: 12.5px; color: rgba(255,255,255,.75); margin: 0; max-width: 300px; }
.mg-free { font: 800 11px var(--mg-sans); letter-spacing: .2em; background: var(--mg-orange); color: #fff; padding: 7px 10px; border-radius: 999px; box-shadow: 0 6px 16px rgba(229,107,16,.45); white-space: nowrap; }
.mg-app { background: #fff; color: var(--mg-ink); border-radius: 16px; padding: 14px 16px 14px; box-shadow: 0 24px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); font-family: var(--mg-sans); }
.mg-app-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.mg-app .mg-seg { border: 0; background: #eef0f4; border-radius: 999px; padding: 3px; }
.mg-app .mg-seg button { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 6px 14px; font-size: 12px; }
.mg-app .mg-seg button[aria-pressed="true"] { background: var(--mg-navy); color: #fff; box-shadow: 0 2px 6px rgba(26,36,50,.3); }
.mg-app .mg-example { font-size: 8.5px; color: var(--mg-ink-2); background: #fff4e9; color: #b45309; padding: 3px 8px; border-radius: 999px; letter-spacing: .06em; }
.mg-check-prompt { font-size: 13px; line-height: 1.35; color: #1a2432; background: #fff4e9; border-radius: 10px; padding: 12px; margin: 8px 0 2px; }
.mg-check-prompt b { color: #c2560a; }
.mg-app .mg-fields { gap: 8px 10px; margin: 10px 0 8px; }
.mg-app .mg-field label { font-size: 8.5px; letter-spacing: .1em; margin-bottom: 4px; color: #6b7280; }
.mg-inp { display: flex; align-items: center; background: #f6f7f9; border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 0 10px; transition: border-color .15s, box-shadow .15s; }
.mg-inp:focus-within { border-color: var(--mg-orange); box-shadow: 0 0 0 3px rgba(229,107,16,.15); background: #fff; }
.mg-inp input, .mg-inp select { border: 0 !important; background: transparent !important; outline: none !important; padding: 8px 0 !important; font: 700 16px var(--mg-sans) !important; color: var(--mg-navy) !important; width: 100%; min-width: 0; }
.mg-inp span { font: 700 11px var(--mg-sans); color: #9ca3af; margin-left: 4px; }
.mg-app-res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; background: #f8f9fb; border-radius: 12px; padding: 8px 10px 10px; margin: 4px 0 8px; }
.mg-gauge-box { text-align: center; }
.mg-gauge { width: 100%; max-width: 190px; height: auto; display: block; margin: 0 auto; }
.mg-gauge path { fill: none; stroke-width: 15; }
.mg-gauge .g-ok { stroke: #3f9d63; } .mg-gauge .g-warn { stroke: #f2b33d; } .mg-gauge .g-bad { stroke: #e0533d; }
.mg-gauge .g-needle { stroke: var(--mg-navy); stroke-width: 4; stroke-linecap: round; }
.mg-gauge .g-hub { fill: var(--mg-navy); }
.mg-gauge .g-l { font: 700 8px var(--mg-sans); fill: #9ca3af; text-transform: uppercase; }
.mg-gauge g { transition: transform .6s cubic-bezier(.3,1.4,.5,1); }
.mg-gauge-v { font-family: var(--mg-display); font-weight: 700; font-size: 25px; color: var(--mg-navy); line-height: 1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.mg-gauge-v small { display: block; font: 600 8.5px var(--mg-sans); color: #6b7280; margin-top: 4px; letter-spacing: .02em; }
.mg-tiles2 { display: grid; gap: 6px; }
.mg-tiles2 > div { background: #fff; border-radius: 9px; padding: 7px 10px; box-shadow: 0 1px 3px rgba(26,36,50,.08); }
.mg-tiles2 b { display: block; font: 800 17px var(--mg-sans); color: var(--mg-navy); font-variant-numeric: tabular-nums; }
.mg-tiles2 span { font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.mg-tiles2 .save { background: #fff4e9; } .mg-tiles2 .save b { color: #c2560a; }
.mg-app .mg-verdict { font-family: var(--mg-sans); font-size: 10.5px; margin: 5px 0; color: #374151; }
.mg-app .mg-chip { border-radius: 999px; padding: 3px 8px; }
.mg-app .mg-tool-actions { margin-top: 9px; }
.mg-cta.wide { flex: 1; justify-content: center; border-radius: 10px; padding: 11px 14px; box-shadow: 0 8px 18px rgba(229,107,16,.35); }
.mg-app .mg-cta.ghost { border-radius: 10px; }
.mg-app-note { font-family: var(--mg-sans); font-size: 8px; line-height: 1.35; color: rgba(255,255,255,.55); margin: 4px 2px 0; }
.is-single .mg-app-res { grid-template-columns: 1.05fr 0.95fr; }
.is-single .mg-tiles2 { grid-template-columns: 1fr; }
.is-single .mg-app-title { font-size: 34px; }

/* angolo che si solleva */
.mg-curl { position: absolute; bottom: 0; width: 0; height: 0; z-index: 9; pointer-events: none; transition: width .35s ease, height .35s ease; }
.mg-face.front .mg-curl { right: 0; background: linear-gradient(315deg, transparent 50%, #f1efea 50%, #fff 62%, #d8d4cc 100%); box-shadow: -4px -4px 10px rgba(0,0,0,.18); border-top-left-radius: 8px; }
.mg-face.back .mg-curl { left: 0; background: linear-gradient(45deg, transparent 50%, #f1efea 50%, #fff 62%, #d8d4cc 100%); box-shadow: 4px -4px 10px rgba(0,0,0,.18); border-top-right-radius: 8px; }
@media (hover: hover) and (pointer: fine) {
  .is-spread .mg-face:hover .mg-curl { width: 54px; height: 54px; }
}

.mg-folio span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mg-folio { gap: 10px; }

.is-single .mg-p17 { flex-direction: column !important; }
.is-single .mg-p17 > .mg-photo { width: 100% !important; height: 24% !important; }
.is-single .mg-p17 > .mg-pad { padding: 18px 26px 44px !important; }
.is-single .mg-p17 .mg-folio { left: 26px !important; }

/* ===== Check Bollette: modulo guidato (09.10.2026 14:40) ===== */
.mg-step { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; font-family: var(--mg-sans); }
.mg-step:first-child { margin-top: 0; }
.mg-step .n { width: 20px; height: 20px; border-radius: 50%; background: var(--mg-navy); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.mg-step .t { font-size: 13px; font-weight: 800; color: var(--mg-navy); }
.mg-app .mg-seg.big { display: flex; width: 100%; }
.mg-app .mg-seg.big button { flex: 1; justify-content: center; padding: 9px 12px; font-size: 13.5px; }
.mg-app .mg-fields { margin: 0; }
.mg-hint-f { display: block; font-family: var(--mg-sans); font-size: 10px; color: #6b7280; margin-top: 3px; line-height: 1.25; }
.mg-inp input::placeholder { color: #b8bec9; font-weight: 600; }
.mg-inp.ok { border-color: #3f9d63; background: #f3fbf6; }
.mg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 5px 0; font-family: var(--mg-sans); }
.mg-row .l { font-size: 11.5px; font-weight: 700; color: #374151; white-space: nowrap; }
.mg-chips { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.mg-chips button { all: unset; box-sizing: border-box; cursor: pointer; min-width: 34px; text-align: center; padding: 6px 9px; border-radius: 999px; border: 1.5px solid #e5e7eb; background: #f6f7f9; font: 700 12px var(--mg-sans); color: var(--mg-navy); }
.mg-chips button:hover { border-color: #cbd2dc; }
.mg-chips button[aria-checked="true"] { background: var(--mg-navy); border-color: var(--mg-navy); color: #fff; }
.mg-chips button:focus-visible { outline: 2px solid var(--mg-orange); outline-offset: 2px; }
.mg-prog { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; font-family: var(--mg-sans); }
.mg-prog .bar { flex: 1; height: 6px; border-radius: 999px; background: #eef0f4; overflow: hidden; }
.mg-prog .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f2b33d, var(--mg-orange)); border-radius: 999px; transition: width .3s ease; }
.mg-prog span { font-size: 10.5px; font-weight: 700; color: #6b7280; white-space: nowrap; }
#mg-b-go { width: 100%; box-sizing: border-box; justify-content: center; }
#mg-b-go:disabled { background: #d7dbe2; color: #6b7280; box-shadow: none; cursor: not-allowed; }
.mg-demo { font-family: var(--mg-sans); font-size: 10.5px; color: #6b7280; text-align: center; margin: 8px 0 0; }
.mg-demo button { all: unset; cursor: pointer; color: var(--mg-navy); font-weight: 700; text-decoration: underline; }
.mg-demo button:focus-visible { outline: 2px solid var(--mg-orange); }
.mg-res-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; font-family: var(--mg-sans); }
.mg-res-head > span { font-size: 13px; font-weight: 800; color: var(--mg-navy); display: flex; align-items: center; gap: 6px; }
.mg-res-head button { all: unset; cursor: pointer; font-size: 11px; font-weight: 700; color: var(--mg-navy); padding: 4px 10px; border: 1.5px solid #e5e7eb; border-radius: 999px; }
.mg-res-head button:hover { background: #f6f7f9; }
.mg-tag-es { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #fff4e9; color: #b45309; padding: 2px 7px; border-radius: 999px; }
.mg-app-sub { display: block; }
.mg-app-note { font-size: 9.5px; }
.is-single .mg-step .t { font-size: 13.5px; }
.is-single .mg-hint-f, .is-single .mg-prog span, .is-single .mg-demo { font-size: 11px; }
.is-single .mg-row .l { font-size: 12px; }
.is-single .mg-chips button { padding: 6px 8px; min-width: 30px; }
.is-single .mg-app-note { font-size: 10.5px; }

/* ===== 09.10.2026 15:00 · rivista più grande, solo Indietro e Avanti, pagina 2 «app raccolta» ===== */
body[data-page="magazine"] .mg-controls { margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 12px; flex-wrap: nowrap; }
body[data-page="magazine"] .mg-counter,
body[data-page="magazine"] [data-act="toc"],
body[data-page="magazine"] [data-act="fs"] { display: none; }
.mg-controls .mg-btn.primary { min-width: 132px; justify-content: center; padding: 10px 20px; font-size: 14px; font-weight: 700; border-radius: 999px; }
.mg-controls .mg-btn.primary:disabled { opacity: .35; }
.is-single .mg-controls .mg-btn.primary { flex: 1; max-width: 190px; min-width: 0; padding: 11px 14px; font-size: 14px; }

.mg-p2app { color: #fff; }
.mg-p2-top { position: absolute; top: 30px; left: 34px; right: 34px; z-index: 3; }
.mg-p2-top .mg-kicker { color: #ffd23f; }
.mg-p2-top .mg-kicker::after { background: rgba(255,255,255,.35); }
.mg-p2-top .mg-h1 { color: #fff; font-size: 44px; margin: 10px 0 8px; }
.mg-p2-top .mg-h1 em { color: var(--mg-orange); }
.mg-p2-dek { font-family: var(--mg-serif); font-size: 14.5px; line-height: 1.42; color: rgba(255,255,255,.92); margin: 0; max-width: 400px; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.mg-p2-dek b { color: #ffd23f; font-weight: 600; }
.mg-p2-card { position: absolute; left: 22px; right: 22px; bottom: 36px; z-index: 4; background: #fff; color: var(--mg-ink); border-radius: 14px; padding: 12px 14px 12px; box-shadow: 0 20px 40px rgba(0,0,0,.35); font-family: var(--mg-sans); }
.mg-p2-feat { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #eef0f4; }
.mg-p2-feat span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--mg-navy); }
.mg-p2-feat svg { width: 15px; height: 15px; color: #fff; background: #3f9d63; border-radius: 50%; padding: 2px; box-sizing: border-box; }
.mg-avvisi .t { font-size: 11.5px; line-height: 1.38; margin: 0 0 8px; color: #374151; }
.mg-avvisi .t b { color: var(--mg-navy); }
.mg-avvisi .r { display: grid; grid-template-columns: 1.35fr 1fr; gap: 6px; }
.mg-avvisi input[type=email], .mg-avvisi input[type=text] { box-sizing: border-box; width: 100%; min-width: 0; font: 600 13px var(--mg-sans); color: var(--mg-navy); background: #f6f7f9; border: 1.5px solid #e5e7eb; border-radius: 9px; padding: 9px 10px; user-select: text; }
.mg-avvisi input:focus { outline: none; border-color: var(--mg-orange); box-shadow: 0 0 0 3px rgba(229,107,16,.15); background: #fff; }
.mg-avvisi .ok { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #6b7280; margin: 7px 0 8px; }
.mg-avvisi .ok a { color: var(--mg-navy); font-weight: 700; text-decoration: underline; }
.mg-avvisi .mg-cta.wide { width: 100%; box-sizing: border-box; justify-content: center; border-radius: 10px; }
.mg-avvisi .esito { font-size: 11.5px; font-weight: 700; margin: 7px 0 0; text-align: center; }
.mg-avvisi .esito.si { color: #1d5a32; }
.mg-avvisi .esito.no { color: #8a1f12; }
.is-single .mg-p2-top { top: 24px; left: 24px; right: 24px; }
.is-single .mg-p2-top .mg-h1 { font-size: 38px; }
.is-single .mg-p2-card { left: 14px; right: 14px; bottom: 34px; }
.is-single .mg-avvisi .r { grid-template-columns: 1fr; }
.is-single .mg-p2-feat span, .is-single .mg-avvisi .ok { font-size: 11px; }
.is-single .mg-avvisi .t { font-size: 12px; }

/* ===== 09.10.2026 15:15 · pagina 2 senza testo sul volto, modulo a scomparsa, pulsanti in vetro ===== */
.mg-p2app { display: flex; flex-direction: column; background: var(--mg-navy); }
.mg-p2-band { position: relative; z-index: 3; flex: none; padding: 30px 34px 20px; background: linear-gradient(180deg, #16304d, #1a2432); color: #fff; }
.mg-p2-band .mg-kicker { color: #ffd23f; }
.mg-p2-band .mg-kicker::after { background: rgba(255,255,255,.25); }
.mg-p2-band .mg-h1 { color: #fff; font-size: 38px; margin: 10px 0 8px; }
.mg-p2-band .mg-h1 em { color: var(--mg-orange); }
.mg-p2-band .mg-p2-dek { font-family: var(--mg-serif); font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.88); margin: 0; max-width: none; text-shadow: none; }
.mg-p2-band .mg-p2-dek b { color: #ffd23f; font-weight: 600; }
.mg-p2-photo { position: relative; flex: 1; min-height: 0; }
.mg-p2-photo img { object-position: 50% 22%; }
.mg-p2-photo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: linear-gradient(180deg, #1a2432, rgba(26,36,50,0)); z-index: 1; }
.mg-p2-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(0deg, rgba(8,12,22,.75), rgba(8,12,22,0)); }

/* barra in vetro, chiusa: una riga sola */
.mg-p2-glass { position: absolute; z-index: 4; left: 22px; right: 22px; bottom: 36px; border-radius: 16px;
  background: rgba(20, 28, 40, .42); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 30px rgba(0,0,0,.3); color: #fff; font-family: var(--mg-sans); overflow: hidden; }
.mg-p2-open { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 34px 1fr 30px; gap: 10px; align-items: center; padding: 10px 12px; }
.mg-p2-open .bell { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,210,63,.18); color: #ffd23f; }
.mg-p2-open .bell svg { width: 18px; height: 18px; }
.mg-p2-open .tx b { display: block; font-size: 13.5px; font-weight: 700; }
.mg-p2-open .tx small { display: block; font-size: 10.5px; color: rgba(255,255,255,.72); margin-top: 1px; }
.mg-p2-open .go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mg-orange); font-size: 20px; line-height: 1; transition: transform .25s; }
.mg-p2-glass.is-open .mg-p2-open .go { transform: rotate(90deg); }
.mg-p2-open:focus-visible { outline: 2px solid #ffd23f; outline-offset: -2px; border-radius: 16px; }
.mg-p2-glass .mg-avvisi { padding: 0 12px 10px; }
.mg-p2-glass .mg-avvisi .r { display: grid; grid-template-columns: 1.4fr 1fr 38px; gap: 6px; }
.mg-p2-glass .mg-avvisi input[type=email], .mg-p2-glass .mg-avvisi input[type=text] { background: rgba(255,255,255,.92); border-color: transparent; color: var(--mg-navy); padding: 8px 10px; font-size: 13px; }
.mg-p2-send { all: unset; cursor: pointer; display: grid; place-items: center; border-radius: 9px; background: var(--mg-orange); color: #fff; font: 700 22px/1 var(--mg-sans); }
.mg-p2-send:disabled { opacity: .5; }
.mg-p2-glass .mg-avvisi .ok { color: rgba(255,255,255,.8); margin: 7px 0 0; font-size: 10.5px; }
.mg-p2-glass .mg-avvisi .ok a { color: #fff; }
.mg-p2-glass .mg-avvisi .esito { margin: 6px 0 0; font-size: 11.5px; padding: 0; background: none; }
.mg-p2-glass .mg-avvisi .esito.si { color: #9be3b4; }
.mg-p2-glass .mg-avvisi .esito.no { color: #ffb4a6; }
.is-single .mg-p2-band { padding: 24px 24px 16px; }
.is-single .mg-p2-band .mg-h1 { font-size: 34px; }
.is-single .mg-p2-glass { left: 14px; right: 14px; bottom: 34px; }
.is-single .mg-p2-glass .mg-avvisi .r { grid-template-columns: 1fr 38px; }
.is-single .mg-p2-glass .mg-avvisi input[name=comune] { grid-column: 1; grid-row: 2; }
.is-single .mg-p2-glass .mg-p2-send { grid-row: 1 / span 2; grid-column: 2; }
.is-single .mg-p2-open .tx small, .is-single .mg-p2-glass .mg-avvisi .ok { font-size: 11px; }

/* pulsanti Indietro / Avanti in vetro */
body[data-page="magazine"] .mg-root { background: radial-gradient(ellipse at 50% 120%, rgba(229,107,16,.16), rgba(229,107,16,0) 45%), radial-gradient(ellipse at 50% 0%, #22324a, #141c28 60%); }
.mg-controls .mg-btn.mg-glass { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 150px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 26px rgba(0,0,0,.35);
  color: #fff; font: 600 13px Montserrat, "Segoe UI", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; transition: background .2s, border-color .2s, transform .15s; }
.mg-controls .mg-btn.mg-glass[data-act="next"] { padding: 8px 8px 8px 18px; }
.mg-controls .mg-btn.mg-glass .ar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mg-orange); color: #fff; font-size: 20px; line-height: 1; letter-spacing: 0; box-shadow: 0 4px 12px rgba(229,107,16,.45); }
.mg-controls .mg-btn.mg-glass:hover:not(:disabled) { background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.08)); border-color: rgba(255,255,255,.34); }
.mg-controls .mg-btn.mg-glass:active:not(:disabled) { transform: translateY(1px); }
.mg-controls .mg-btn.mg-glass:disabled { opacity: .35; }
.mg-controls .mg-btn.mg-glass:focus-visible { outline: 2px solid #ffd23f; outline-offset: 3px; }
.is-single .mg-controls .mg-btn.mg-glass { flex: 1; max-width: 180px; min-width: 0; font-size: 12px; }

/* 2026-10-09 15:30 · pagina 2 "Cosa porto fuori stasera?": foto in cucina + schermata app */
.mg-p2-photo img { object-position: 50% 30%; }
.mg-p2-app { position: absolute; z-index: 3; right: 18px; top: 40%; width: 178px; padding: 10px 11px 9px; border-radius: 14px;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(10,16,28,.28); color: var(--mg-navy); font-family: var(--mg-sans); }
.mg-p2-app .hd { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7686; margin-bottom: 7px; }
.mg-p2-app .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mg-orange); box-shadow: 0 0 0 3px rgba(240,120,30,.2); }
.mg-p2-app .it { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid rgba(26,36,50,.08); }
.mg-p2-app .it i { width: 22px; height: 22px; border-radius: 7px; }
.mg-p2-app .it b { display: block; font-size: 12px; line-height: 1.15; }
.mg-p2-app .it small { display: block; font-size: 10px; color: #6b7686; margin-top: 1px; }
.mg-p2-app .nx { margin-top: 4px; padding-top: 6px; border-top: 1px dashed rgba(26,36,50,.15); font-size: 10px; font-weight: 600; color: var(--mg-orange); }
.is-single .mg-p2-app { right: 12px; width: 162px; top: 36%; }

/* 2026-10-09 15:35 · pagina 2 a tutta foto: titolo navy sul muro, barra avvisi compatta a destra */
.mg-p2app { display: block; position: relative; background: #d9cbb8; color: var(--mg-navy); }
.mg-p2-bg img { object-position: 30% 40%; }
.mg-p2-bg::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(120% 70% at 0% 0%, rgba(246,239,229,.78) 0%, rgba(246,239,229,.35) 38%, rgba(246,239,229,0) 60%),
  linear-gradient(0deg, rgba(10,14,22,.45) 0%, rgba(10,14,22,0) 18%); }
.mg-p2-head { position: absolute; z-index: 3; top: 30px; left: 32px; width: 44%; }
.mg-p2-head .mg-kicker { color: var(--mg-orange); }
.mg-p2-head .mg-kicker::after { display: none; }
.mg-p2-head .mg-h1 { color: var(--mg-navy); font-size: 40px; line-height: 1.02; margin: 10px 0 12px; }
.mg-p2-head .mg-h1 em { color: var(--mg-orange); display: block; }
.mg-p2-head .mg-p2-dek { font-family: var(--mg-serif); font-size: 14px; line-height: 1.45; color: #2a3442; margin: 0; text-shadow: 0 0 14px rgba(246,239,229,.9); }
.mg-p2-head .mg-p2-dek b { color: var(--mg-navy); font-weight: 700; }
.mg-p2app .mg-p2-glass { left: auto; right: 20px; width: 236px; bottom: 36px; transition: width .3s ease; }
.mg-p2app .mg-p2-glass.is-open { width: calc(100% - 40px); }
.is-single .mg-p2-head { top: 24px; left: 22px; width: 46%; }
.is-single .mg-p2-head .mg-h1 { font-size: 33px; }
.is-single .mg-p2-head .mg-p2-dek { font-size: 13px; }
.is-single .mg-p2-bg img { object-position: 22% 40%; }
.is-single .mg-p2app .mg-p2-glass { right: 14px; width: 226px; }
.is-single .mg-p2app .mg-p2-glass.is-open { width: calc(100% - 28px); }
/* 15:40 · niente testo lungo sulla foto: la spiegazione sta nella barra in vetro */
.mg-p2-head { width: 40%; }
.mg-p2app .mg-p2-glass { width: 258px; }
.mg-p2app .mg-p2-open .tx small { line-height: 1.35; margin-top: 3px; }
.is-single .mg-p2-head { width: 44%; }
.is-single .mg-p2app .mg-p2-glass { width: 240px; }
.mg-p2app .mg-p2-glass { width: 236px; background: rgba(18,26,38,.62); }
.mg-p2-head .mg-kicker { white-space: nowrap; }
.is-single .mg-p2app .mg-p2-glass { width: 222px; }

/* 2026-10-09 15:50 · Condividi: pulsante tondo in vetro tra Indietro e Avanti + pannello */
.mg-controls .mg-share-btn { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 26px rgba(0,0,0,.35); color: #fff; transition: background .2s, border-color .2s, transform .15s; }
.mg-controls .mg-share-btn svg { width: 19px; height: 19px; }
.mg-controls .mg-share-btn:hover, .mg-controls .mg-share-btn[aria-expanded="true"] { background: linear-gradient(180deg, rgba(229,107,16,.55), rgba(229,107,16,.3)); border-color: rgba(255,170,100,.6); }
.mg-controls .mg-share-btn:active { transform: translateY(1px); }
.mg-controls .mg-share-btn:focus-visible { outline: 2px solid #ffd23f; outline-offset: 3px; }
.is-single .mg-controls .mg-share-btn { width: 44px; height: 44px; }

.mg-share { position: fixed; z-index: 1000; width: 300px; max-width: calc(100vw - 24px); padding: 14px 14px 10px; border-radius: 20px; color: #fff;
  background: linear-gradient(180deg, rgba(36,48,66,.82), rgba(20,28,40,.86)); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 24px 50px rgba(0,0,0,.45);
  font-family: Montserrat, "Segoe UI", Arial, sans-serif; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.mg-share.is-on { opacity: 1; transform: none; }
.mg-share .t { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffd23f; text-align: center; }
.mg-share .g { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.mg-share .s { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; border-radius: 12px; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.9); text-align: center; }
.mg-share .s svg { width: 22px; height: 22px; box-sizing: content-box; padding: 11px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: transform .15s; }
.mg-share .s:hover svg, .mg-share .s:focus-visible svg { transform: scale(1.08); }
.mg-share .s:focus-visible { outline: 2px solid #ffd23f; }
.mg-share .s-wa svg { background: #25d366; }
.mg-share .s-fb svg { background: #1877f2; }
.mg-share .s-tg svg { background: #2aabee; }
.mg-share .s-ml svg { background: var(--mg-orange, #e56b10); }
.mg-share .ok { margin: 6px 0 0; min-height: 15px; font-size: 11px; text-align: center; color: #8ee6a8; }
.mg-share-cta { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font: 700 12px Montserrat, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.mg-share-cta svg { width: 16px; height: 16px; }

/* 15:58 · riquadro trasparente "Stasera / Domani" sulla foto */
.mg-p2app .mg-p2-app { top: 37%; right: 18px; width: 176px; background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); box-shadow: 0 16px 34px rgba(10,16,28,.22); }
.mg-p2app .mg-p2-app .hd { color: var(--mg-navy); margin-bottom: 4px; }
.mg-p2app .mg-p2-app .it { align-items: start; }
.mg-p2app .mg-p2-app .it i { margin-top: 2px; }
.mg-p2app .mg-p2-app .it small:first-child { margin: 0 0 1px; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mg-orange); }
.mg-p2app .mg-p2-app .it small { color: #4a5565; }
.is-single .mg-p2app .mg-p2-app { top: 41%; right: 12px; width: 156px; }

/* 2026-10-09 16:10 · Check Bollette: schermata "cosa scopri / cosa vedrai", guida sulla bolletta, verdetto grande */
#mg-b-intro .mg-cta.wide, #mg-b-form .mg-cta.wide { width: 100%; box-sizing: border-box; }
.mg-b-lab { margin: 2px 0 8px; font: 700 10.5px var(--mg-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mg-orange); }
.mg-b-promise { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mg-b-promise > div { display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: start; background: #f6f7fa; border-radius: 12px; padding: 10px; }
.mg-b-promise i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--mg-navy); color: #fff; }
.mg-b-promise i svg { width: 19px; height: 19px; }
.mg-b-promise > div:nth-child(3) i { background: #3f9d63; }
.mg-b-promise > div:nth-child(4) i { background: var(--mg-orange); }
.mg-b-promise b { display: block; font-size: 12.5px; line-height: 1.2; color: var(--mg-navy); }
.mg-b-promise small { display: block; font-size: 10.5px; line-height: 1.3; color: #5b6575; margin-top: 2px; }
.mg-b-preview { all: unset; box-sizing: border-box; cursor: pointer; position: relative; width: 100%; display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 12px 14px 10px; border-radius: 14px; background: linear-gradient(135deg, #1f2c3d, #2c3e57); color: #fff; box-shadow: 0 10px 22px rgba(26,36,50,.25); margin-bottom: 12px; transition: transform .15s; }
.mg-b-preview:hover { transform: translateY(-1px); }
.mg-b-preview:focus-visible { outline: 2px solid var(--mg-orange); outline-offset: 2px; }
.mg-b-preview .tag { position: absolute; top: 8px; right: 10px; font: 700 9px var(--mg-sans); letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.14); padding: 3px 7px; border-radius: 6px; }
.mg-b-preview .mini { width: 96px; height: auto; grid-row: 1 / span 2; }
.mg-b-preview .mini path { fill: none; stroke-width: 16; }
.mg-b-preview .mini .g-ok { stroke: #3f9d63; } .mg-b-preview .mini .g-warn { stroke: #f2b33d; } .mg-b-preview .mini .g-bad { stroke: #e0533d; }
.mg-b-preview .mini .g-needle { stroke: #fff; stroke-width: 5; stroke-linecap: round; } .mg-b-preview .mini .g-hub { fill: #fff; }
.mg-b-preview .tx b { display: block; font-size: 16px; font-weight: 800; color: #ffb27a; }
.mg-b-preview .tx small { display: block; font-size: 10.5px; color: rgba(255,255,255,.75); margin-top: 2px; }
.mg-b-preview .tx em { display: block; font-style: normal; font-size: 12px; font-weight: 700; margin-top: 5px; color: #8ee6a8; }
.mg-b-preview .go { grid-column: 2; font-size: 11px; font-weight: 700; color: #ffd23f; margin-top: 6px; }
.mg-b-need { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-bottom: 10px; font-size: 11px; font-weight: 600; color: #4a5565; }
.mg-b-need span { display: inline-flex; align-items: center; gap: 5px; }
.mg-b-need svg { width: 14px; height: 14px; color: #3f9d63; }
.mg-b-back { all: unset; cursor: pointer; font: 700 11px var(--mg-sans); color: #6b7686; margin: -2px 0 6px; display: inline-block; }
.mg-b-back:hover { color: var(--mg-orange); }
.mg-b-bill { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; background: #f6f7fa; border-radius: 12px; padding: 8px 10px; margin: 2px 0 10px; }
.mg-b-bill svg { width: 104px; height: auto; display: block; }
.mg-b-bill p { margin: 0; font-size: 11px; line-height: 1.35; color: #4a5565; }
.mg-b-bill p > b { display: block; font-size: 12px; color: var(--mg-navy); margin-bottom: 3px; }
.mg-b-bill p span { display: grid; grid-template-columns: 18px 1fr; gap: 4px; align-items: start; margin-top: 3px; }
.mg-b-bill i, .mg-b-ab { width: 15px; height: 15px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 9px Arial, sans-serif; font-style: normal; color: #fff; }
.mg-b-bill i.a, .mg-b-ab.a { background: var(--mg-orange); } .mg-b-bill i.b, .mg-b-ab.b { background: #2f74d0; }
.mg-b-ab { margin-right: 5px; vertical-align: -3px; }
.mg-b-big { border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; text-align: center; }
.mg-b-big b { display: block; font: 800 19px var(--mg-sans); line-height: 1.15; }
.mg-b-big span { display: block; font-size: 12px; margin-top: 3px; }
.mg-b-big.bad { background: #fdecea; color: #8a1f12; } .mg-b-big.warn { background: #fff4e0; color: #7a4300; } .mg-b-big.ok { background: #e6f4ea; color: #1d5a32; }
.is-single .mg-b-promise { gap: 6px; }
.is-single .mg-b-promise > div { grid-template-columns: 1fr; gap: 6px; padding: 9px; }
.is-single .mg-b-promise i { width: 30px; height: 30px; }
.is-single .mg-b-preview { grid-template-columns: 78px 1fr; padding: 10px 12px; }
.is-single .mg-b-preview .mini { width: 78px; }
.is-single .mg-b-preview .tx b { font-size: 15px; }
.is-single .mg-b-bill { grid-template-columns: 86px 1fr; }
.is-single .mg-b-bill svg { width: 86px; }

/* ===== 2026-10-09 ~16:10 · Check Bollette: una schermata sola, grafici dal vivo (come la prima versione) ===== */
.mg-cb .mg-app-head { margin-bottom: 8px; }
.mg-cb .mg-app-sub { max-width: 330px; }
.mg-cb-steps { list-style: none; display: flex; gap: 6px; margin: 0 0 10px; padding: 0; font: 600 10.5px var(--mg-sans); color: rgba(255,255,255,.82); }
.mg-cb-steps li { display: flex; align-items: center; gap: 6px; flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 4px 9px 4px 4px; white-space: nowrap; }
.mg-cb-steps i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--mg-orange); color: #fff; font: 800 10px var(--mg-sans); flex: none; }
.mg-cb .mg-app { padding: 12px 14px 12px; }
.mg-cb-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mg-cb-badge { font: 800 9px var(--mg-sans); letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: #eef0f4; color: #6b7280; transition: background .25s, color .25s; }
.mg-cb-badge.is-tuo { background: #dcefe1; color: #1d5a32; }
.mg-cb .mg-fields { margin: 9px 0 8px; gap: 7px 10px; }
.mg-cb .mg-field label { display: flex; align-items: center; gap: 5px; font-size: 8.5px; letter-spacing: .08em; }
.mg-cb .mg-field label i { font-style: normal; width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; background: var(--mg-orange); color: #fff; font: 800 8px var(--mg-sans); letter-spacing: 0; }
.mg-cb .mg-field label small { margin-left: auto; font-size: 8px; letter-spacing: 0; text-transform: none; color: #9ca3af; font-weight: 600; }
.mg-cb .mg-inp select { width: 100%; cursor: pointer; appearance: auto; }
.mg-cb .mg-inp input { width: 100%; }
.mg-cb .mg-inp input { min-width: 0; }

.mg-cb-res { position: relative; border-radius: 12px; background: #f7f8fa; padding: 9px 10px 6px; margin-bottom: 9px; }
.mg-cb-body { transition: opacity .3s, filter .3s; }
.mg-cb-res.is-esempio .mg-cb-body { opacity: .42; filter: saturate(.55); }
.mg-cb-ribbon { position: absolute; z-index: 2; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 84%; text-align: center;
  background: var(--mg-navy); color: #fff; font: 700 11.5px/1.35 var(--mg-sans); padding: 9px 12px; border-radius: 10px; box-shadow: 0 10px 24px rgba(26,36,50,.3); }
.mg-cb-ribbon::before { content: "ESEMPIO"; display: block; font-size: 8.5px; letter-spacing: .18em; color: #ffd23f; margin-bottom: 2px; }
.mg-cb-ribbon.shake { animation: mgShake .45s; }
@keyframes mgShake { 20%,60% { transform: translate(calc(-50% - 5px), -50%); } 40%,80% { transform: translate(calc(-50% + 5px), -50%); } }
.mg-cb-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 7px; }
.mg-cb-big b { font: 700 17px var(--mg-display); color: var(--mg-navy); }
.mg-cb-big.bad b { color: #c2412b; } .mg-cb-big.ok b { color: #2f7d4d; }
.mg-cb-big span { font: 600 11px var(--mg-sans); color: #4b5563; }
.mg-cb-big span em { font-style: normal; font-weight: 800; color: #2f7d4d; }
.mg-cb-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; }
.mg-cb-card { background: #fff; border-radius: 10px; padding: 7px 9px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 0 0 1px #eceef2; }
.mg-cb-card .t { display: block; font: 700 8.5px var(--mg-sans); letter-spacing: .1em; text-transform: uppercase; color: #6b7280; margin-bottom: 3px; text-align: left; }
.mg-cb .mg-gauge { max-width: 150px; }
.mg-cb .mg-gauge .g-l { font-size: 9px; text-transform: none; }
.mg-cb .mg-gauge-v { font-size: 21px; }
.mg-cb-side { display: flex; flex-direction: column; gap: 8px; }
.mg-cb-bars .br { display: grid; grid-template-columns: 62px 1fr 40px; align-items: center; gap: 6px; margin: 5px 0; font: 600 9.5px/1.15 var(--mg-sans); color: #374151; }
.mg-cb-bars .tr { height: 10px; border-radius: 999px; background: #eef0f4; overflow: hidden; }
.mg-cb-bars .tr i { display: block; height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.3,1.2,.5,1); }
.mg-cb-bars .tr i.ok { background: #3f9d63; } .mg-cb-bars .tr i.warn { background: #f2b33d; } .mg-cb-bars .tr i.bad { background: #e0533d; }
.mg-cb-bars .tr i.ref { background: #9aa6b8; }
.mg-cb-bars .br b { font: 800 11px var(--mg-sans); color: var(--mg-navy); text-align: right; font-variant-numeric: tabular-nums; }
.mg-cb-bars .u { display: block; text-align: right; font: 600 8.5px var(--mg-sans); color: #9ca3af; }
.mg-cb-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mg-cb-tiles div { background: #fff; border-radius: 10px; padding: 7px 9px; box-shadow: 0 0 0 1px #eceef2; }
.mg-cb-tiles b { display: block; font: 700 17px var(--mg-display); color: var(--mg-navy); font-variant-numeric: tabular-nums; }
.mg-cb-tiles span { display: block; font: 600 8.5px var(--mg-sans); color: #6b7280; text-transform: uppercase; letter-spacing: .06em; margin-top: 1px; }
.mg-cb-tiles .save { background: #effaf2; box-shadow: 0 0 0 1px #cde9d6; } .mg-cb-tiles .save b { color: #2f7d4d; }
.mg-cb .mg-verdict { margin: 6px 0 2px; font-size: 10.5px; line-height: 1.38; }
.mg-cb .mg-tool-actions { display: flex; gap: 8px; }
.mg-cb .mg-tool-actions .mg-cta { font-size: 13px; }
.mg-cb .mg-tool-actions .mg-cta.ghost { justify-content: center; padding: 10px 14px; }
.mg-cb #mg-b-pdf.is-off { opacity: .55; box-shadow: none; }
.is-single .mg-cb-steps { font-size: 9.5px; gap: 4px; }
.is-single .mg-cb-steps li { padding-right: 6px; gap: 4px; }
.is-single .mg-cb .mg-app { padding: 10px 11px; }
.is-single .mg-cb-grid { grid-template-columns: 1fr 1.2fr; gap: 6px; }
.is-single .mg-cb-bars .br { grid-template-columns: 48px 1fr 36px; gap: 4px; font-size: 9px; }
.is-single .mg-cb-tiles b { font-size: 15px; }
.is-single .mg-cb .mg-tool-actions .mg-cta { font-size: 12px; padding: 10px 10px; }
/* compattazione per stare nella pagina */
.mg-cb .mg-app-sub { display: none; }
.mg-cb .mg-app-head { margin-bottom: 10px; }
.mg-cb .mg-inp input, .mg-cb .mg-inp select { padding: 6px 0 !important; font-size: 15px !important; }
.mg-cb .mg-field label { margin-bottom: 3px; }
.mg-cb .mg-fields { margin: 8px 0 7px; gap: 6px 10px; }
.mg-cb-res { padding: 8px 9px 4px; margin-bottom: 8px; }
.mg-cb-big { margin-bottom: 6px; }
.mg-cb .mg-verdict { margin: 4px 0 3px; font-size: 10px; line-height: 1.32; }
.mg-cb .mg-app-note { font-size: 8.5px; margin-top: 5px; }
.is-single .mg-cb .mg-app-note { font-size: 9px; padding-right: 22px; }
.is-single .mg-cb .mg-app-sub { display: block; font-size: 12px; }
/* retro: solo l'app della raccolta */
.mg-back-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mg-back-cta .mg-share-cta { margin-top: 0; }
.mg-share-cta.is-orange { background: var(--mg-orange); border-color: var(--mg-orange); box-shadow: 0 8px 18px rgba(229,107,16,.4); }


/* ===== 2026-10-09 ~17:00 · Telefono: rivista a schermo pieno, capsula di pulsanti in vetro sopra la pagina ===== */
.mg-only-phone { display: none !important; }
/* (17:00 la testata spariva; dalle 18:00 resta, più sottile: vedi in fondo) */
body.mg-phone .mg-root { position: relative; }
body.mg-phone .mg-stage { height: 100%; }
body.mg-phone .mg-controls { position: absolute; z-index: 20; left: 50%; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: auto; padding: 5px !important; gap: 6px !important; border-radius: 999px;
  background: linear-gradient(180deg, rgba(30,42,60,.55), rgba(16,24,36,.62)); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 30px rgba(0,0,0,.4); }
body.mg-phone .mg-only-phone { display: grid !important; }
body.mg-phone .mg-only-phone[hidden] { display: none !important; }
body.mg-phone .mg-controls .mg-btn.mg-glass { flex: none; min-width: 0; width: 44px; height: 44px; padding: 0 !important; border-radius: 50%; gap: 0;
  background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.mg-phone .mg-controls .mg-btn.mg-glass > span:not(.ar) { display: none; }
body.mg-phone .mg-controls .mg-btn.mg-glass .ar { width: 40px; height: 40px; font-size: 24px; }
body.mg-phone .mg-controls .mg-btn.mg-glass:disabled { opacity: .3; }
body.mg-phone .mg-controls .mg-share-btn { width: 40px; height: 40px; margin: 2px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); box-shadow: none; text-decoration: none; color: #fff; }
body.mg-phone .mg-controls .mg-share-btn svg { width: 18px; height: 18px; }
body.mg-phone .mg-controls .mg-share-btn.is-on { background: rgba(229,107,16,.5); }
body.mg-phone .mg-controls a.mg-only-phone { order: -1; }

/* ===== 2026-10-09 ~17:10 · Pulsanti sempre in vetro quasi invisibile (PC e telefono) ===== */
body[data-page="magazine"] .mg-controls .mg-btn.mg-glass {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12); color: rgba(255,255,255,.82); font-weight: 500; }
body[data-page="magazine"] .mg-controls .mg-btn.mg-glass .ar {
  background: transparent; box-shadow: none; border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.9); font-weight: 300; }
body[data-page="magazine"] .mg-controls .mg-btn.mg-glass:hover:not(:disabled) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); color: #fff; }
body[data-page="magazine"] .mg-controls .mg-btn.mg-glass:hover:not(:disabled) .ar { border-color: rgba(255,255,255,.5); }
body[data-page="magazine"] .mg-controls .mg-btn.mg-glass:disabled { opacity: .28; }
body[data-page="magazine"] .mg-controls .mg-share-btn {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); color: rgba(255,255,255,.82); }
body[data-page="magazine"] .mg-controls .mg-share-btn:hover,
body[data-page="magazine"] .mg-controls .mg-share-btn[aria-expanded="true"] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.26); color: #fff; }
body[data-page="magazine"] .mg-controls .mg-share-btn svg { stroke-width: 1.6; }

/* telefono: capsula appena percettibile, icone sottili */
body.mg-phone .mg-controls { background: rgba(14,20,30,.18); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 8px 24px rgba(0,0,0,.18); }
body.mg-phone .mg-controls .mg-btn.mg-glass { background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.mg-phone .mg-controls .mg-btn.mg-glass .ar { width: 40px; height: 40px; border-color: rgba(255,255,255,.22); font-size: 24px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
body.mg-phone .mg-controls .mg-share-btn { background: transparent; border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.mg-phone .mg-controls .mg-share-btn svg { filter: drop-shadow(0 1px 4px rgba(0,0,0,.35)); }
body.mg-phone .mg-controls .mg-share-btn.is-on { background: rgba(255,255,255,.14); }

/* ===== 2026-10-09 ~17:20 · Copertina: disposizione di prima (richiami in basso), più leggibile ===== */
.mg-cover .mg-shade-t { background: linear-gradient(180deg, rgba(8,12,22,.5) 0%, rgba(8,12,22,.2) 22%, rgba(8,12,22,0) 40%); }
.mg-cover .mg-shade-b { background: linear-gradient(180deg, rgba(8,12,22,0) 55%, rgba(8,12,22,.32) 72%, rgba(8,12,22,.62) 90%, rgba(8,12,22,.72) 100%); }
.mg-cover .mg-masthead .name { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.mg-cover .mg-issue { text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.mg-cover .mg-coverlines, .mg-cover .mg-sticker { text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 0 12px rgba(0,0,0,.35); }
.mg-cover .mg-sticker::before { inset: -40px -36px -40px -70px; background: radial-gradient(ellipse at 72% 50%, rgba(12,18,28,.42), rgba(12,18,28,.16) 48%, rgba(12,18,28,0) 72%); }
.mg-cover .mg-sticker .d { color: #fff; }
.mg-cover .mg-cl span { color: #fff; font-size: 13.5px; }
.mg-cover .mg-cl b { color: #ff9a4a; font-size: 10.5px; }
.mg-cover .mg-cl-big .n { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.is-single .mg-cover .mg-cl span { font-size: 13px; }
body.mg-phone .is-single .mg-cover .mg-coverlines { bottom: 70px; gap: 10px; }
body.mg-phone .is-single .mg-cover .mg-cl-big .n { font-size: 64px; }
body.mg-phone .is-single .mg-cover .mg-cl { margin-top: 8px; }
body.mg-phone .is-single .mg-cover .mg-slogan { bottom: 8px; opacity: 0; }
/* telefono: foto spostata a destra e colonna dei richiami più stretta a sinistra, così i volti restano liberi */
.is-single .mg-cover .mg-bleed img { object-position: 4% 50%; }
.is-single .mg-cover .mg-coverlines { right: auto; width: 51%; }
.is-single .mg-cover .mg-cl-big .t { font-size: 19px; }
/* alone morbido solo dietro i blocchi di testo: la foto resta luminosa */
.mg-cover .mg-sticker::before { background: radial-gradient(ellipse at 72% 52%, rgba(12,18,28,.5), rgba(12,18,28,.2) 50%, rgba(12,18,28,0) 74%); }
.mg-cover .mg-coverlines::before { content: ""; position: absolute; z-index: -1; inset: -50px -40px -30px -40px; pointer-events: none;
  background: radial-gradient(ellipse at 40% 60%, rgba(12,18,28,.42), rgba(12,18,28,.16) 52%, rgba(12,18,28,0) 75%); }

/* ===== 2026-10-09 ~17:35 · Rifinitura impaginazione ===== */
/* sillabazione italiana: niente buchi tra le parole nelle colonne giustificate */
.mg-page p, .mg-page li { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3; }
/* PC: foto più grandi dove restava bianco in fondo */
.is-spread .mg-ph-grow { height: 370px !important; }
/* editoriale: "In questo numero" */
.mg-inside { margin: 12px 0 10px; border-top: 2px solid var(--mg-navy); padding-top: 8px; }
.mg-inside .t { font: 700 9.5px var(--mg-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mg-orange); margin-bottom: 4px; }
.mg-inside button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 5px 0; border-bottom: 1px dotted rgba(26,36,50,.25); font-family: var(--mg-serif); font-size: 13.5px; color: var(--mg-ink); }
.mg-inside button span { flex: 1; }
.mg-inside button em { font-style: normal; font: 800 8px var(--mg-sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--mg-orange); padding: 2px 5px; border-radius: 2px; vertical-align: 2px; margin-left: 4px; }
.mg-inside button b { font: 700 13px var(--mg-display); color: var(--mg-orange); min-width: 20px; text-align: right; }
.mg-inside button:hover span { color: var(--mg-orange); }
.mg-inside button:focus-visible { outline: 2px solid var(--mg-orange); outline-offset: 2px; }
.is-single .mg-inside button { padding: 4px 0; font-size: 13px; }
/* telefono: sul piè di pagina resta solo il numero, la capsula non si sovrappone a scritte */
body.mg-phone .mg-folio span:last-child:not(:first-child) { visibility: hidden; }
.is-spread .mg-ph-grow2 { height: 330px !important; }
.mg-ph-ed { height: 40% !important; }
.is-single .mg-ph-ed { height: 36% !important; }
.is-single .mg-ph-boll { height: 28% !important; }
.is-single .mg-ph-cant { height: 238px !important; }
.mg-inside { margin: 8px 0 6px; padding-top: 6px; }

/* ===== 2026-10-09 ~17:50 · Check Bollette: si capisce dove scrivere, pulsante Analizza, esempio più nitido ===== */
.mg-cb-ribbon { display: none; }
.mg-cb-res.is-esempio .mg-cb-body { opacity: .78; filter: saturate(.85); }
.mg-cb-hint { display: flex; align-items: center; gap: 8px; margin: -1px 0 7px; font: 600 10.5px/1.3 var(--mg-sans); color: #4b5563; }
.mg-cb-hint .tag { flex: none; font: 800 8.5px var(--mg-sans); letter-spacing: .14em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: #fff1e6; color: #b4520b; border: 1px dashed #e56b10; }
.mg-cb-hint b { color: var(--mg-navy); }
.mg-cb-hint.is-tuo .tag { background: #dcefe1; color: #1d5a32; border: 1px solid #b9dfc6; }
.mg-cb-hint.shake { animation: mgShake2 .45s; }
@keyframes mgShake2 { 20%,60% { transform: translateX(-5px); } 40%,80% { transform: translateX(5px); } }
/* campi da riempire: bianchi, bordo arancio, si fanno notare */
.mg-cb .mg-inp.vuoto { background: #fff; border: 2px solid #e56b10; box-shadow: 0 0 0 3px rgba(229,107,16,.12); animation: mgInvita 2.2s ease-in-out infinite; }
.mg-cb .mg-inp.vuoto:focus-within { animation: none; box-shadow: 0 0 0 4px rgba(229,107,16,.2); }
.mg-cb .mg-inp.vuoto input::placeholder { color: #e56b10; font-weight: 700; opacity: .75; }
@keyframes mgInvita { 0%,100% { box-shadow: 0 0 0 3px rgba(229,107,16,.10); } 50% { box-shadow: 0 0 0 6px rgba(229,107,16,.22); } }
.mg-cb .mg-inp.scuoti { animation: mgShake2 .45s; }
@media (prefers-reduced-motion: reduce) { .mg-cb .mg-inp.vuoto { animation: none; } }
/* riga 2: periodo, persone, Analizza */
.mg-cb-row2 { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 8px; align-items: end; margin: 0 0 9px; }
.mg-cb-row2 .mg-field label { font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; display: block; margin-bottom: 3px; font-weight: 600; }
.mg-cb-go { justify-content: center; border-radius: 10px; height: 38px; padding: 0 14px; font-size: 14px; box-shadow: 0 8px 18px rgba(229,107,16,.35); }
.mg-cb-go span { font-size: 18px; line-height: 1; }
.mg-cb .mg-fields { margin-bottom: 6px; }
.mg-cb-res.appena .mg-cb-body { animation: mgAppena .5s ease-out; }
@keyframes mgAppena { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.is-single .mg-cb-row2 { grid-template-columns: 1fr .9fr 1.1fr; gap: 6px; }
.is-single .mg-cb-go { font-size: 13px; padding: 0 8px; }
/* Check Bollette: qualche pixel in meno per stare nella pagina */
.mg-cb .mg-gauge { max-width: 132px; }
.mg-cb .mg-gauge-v { font-size: 19px; }
.mg-cb-steps { margin-bottom: 8px; }
.mg-cb .mg-app { padding: 10px 13px 11px; }
.mg-cb .mg-verdict { margin: 3px 0 2px; }
.mg-cb-res { margin-bottom: 7px; }
body.mg-phone .mg-cb .mg-app-note { display: none; }

/* ===== 2026-10-09 ~18:00 · Telefono: torna la testata (più sottile), pagina grande quanto lo schermo ===== */
body.mg-phone .testata .wrap { min-height: 58px; }
body.mg-phone .marchio img { height: 30px; }
body.mg-phone .testata .btn { min-height: 36px; font-size: 14px; padding: 0 14px; }
body.mg-phone .testata .hamburger { width: 40px; height: 40px; }
/* pagina corta (telefono): Check Bollette senza sottotitolo e passi, che lì sono superflui */
.mg-corto .mg-cb .mg-app-sub, .mg-corto .mg-cb-steps { display: none !important; }
.mg-corto .mg-cb .mg-app-head { margin-bottom: 8px; }
.mg-corto .mg-cb .mg-app-title { font-size: 30px; }
.mg-corto .mg-ph-ed .mg-h1 { font-size: 31px !important; }
.mg-corto .mg-ph-ed .mg-opener { bottom: 14px !important; }
.mg-corto .mg-flag + .mg-small { display: none; }
/* telefono con testata: la capsula sta subito sotto la pagina (non copre più pulsanti o testi) */
body.mg-phone .mg-controls { position: relative; left: auto; bottom: auto; transform: none; align-self: center; flex: none;
  margin: 6px auto calc(6px + env(safe-area-inset-bottom, 0px)); }
body.mg-phone .mg-folio span:last-child:not(:first-child) { visibility: visible; }
body.mg-phone .mg-controls { margin: 4px auto calc(4px + env(safe-area-inset-bottom, 0px)); padding: 3px !important; gap: 4px !important; }
body.mg-phone .mg-controls .mg-btn.mg-glass { width: 40px; height: 40px; }
body.mg-phone .mg-controls .mg-btn.mg-glass .ar { width: 36px; height: 36px; font-size: 22px; }
body.mg-phone .mg-controls .mg-share-btn { width: 36px; height: 36px; }
body.mg-phone .testata .wrap { min-height: 54px; }
/* copertina telefono con pagina corta: richiami in fondo e più compatti, volti liberi */
body.mg-phone .is-single .mg-cover .mg-coverlines { bottom: 22px; gap: 6px; }
body.mg-phone .is-single .mg-cover .mg-cl-big .n { font-size: 54px; }
body.mg-phone .is-single .mg-cover .mg-cl-big .t { font-size: 17px; }
body.mg-phone .is-single .mg-cover .mg-cl { margin-top: 6px; }
body.mg-phone .is-single .mg-cover .mg-cl span { font-size: 12.5px; line-height: 1.25; }
body.mg-phone .is-single .mg-cover .mg-slogan { opacity: 0; }
body.mg-phone .is-single .mg-cover .mg-coverlines { width: 47%; }

/* ===== 2026-10-09 ~17:20 · Check Bollette SEMPLICE: tre domande, un pulsante, poi solo la risposta ===== */
.mg-cb2 .mg-app-head { margin-bottom: 14px; }
.mg-cb2 .mg-app-sub { display: block; font-size: 13px; }
.mg-cb2 .mg-app { padding: 16px 16px 14px; }
.mg-cb2 .mg-seg.big { display: flex; width: 100%; margin-bottom: 12px; }
.mg-cb2 .mg-seg.big button { flex: 1; justify-content: center; padding: 9px 12px; font-size: 14px; }
.mg-q { display: grid; grid-template-columns: 26px 1fr 128px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef0f4; cursor: text; }
.mg-q .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--mg-orange); color: #fff; font: 800 12px var(--mg-sans); }
.mg-q .d b { display: block; font: 700 14.5px/1.2 var(--mg-sans); color: var(--mg-navy); }
.mg-q .d small { display: block; font: 500 11px/1.3 var(--mg-sans); color: #8a94a3; margin-top: 2px; }
.mg-q .mg-inp { background: #fff; border: 2px solid #d9dee6; border-radius: 10px; }
.mg-q .mg-inp:focus-within { border-color: var(--mg-orange); box-shadow: 0 0 0 3px rgba(229,107,16,.15); }
.mg-q .mg-inp input, .mg-q .mg-inp select { width: 100%; text-align: right; padding: 8px 0 !important; font-size: 17px !important; }
.mg-q .mg-inp select { text-align: left; font-size: 15px !important; cursor: pointer; }
.mg-q .mg-inp input::placeholder { color: #c3c9d3; font-weight: 600; }
.mg-q.manca .mg-inp { border-color: #d64b2a; animation: mgShake2 .45s; }
.mg-b-msg { min-height: 18px; margin: 8px 0 4px; font: 700 12.5px var(--mg-sans); color: #c0392b; }
.mg-b-go { width: 100%; box-sizing: border-box; justify-content: center; font-size: 16px !important; padding: 14px 16px !important; }
.mg-b-cosa { margin: 12px 0 0; font: 500 12px/1.45 var(--mg-sans); color: #6b7280; text-align: center; }
.mg-b-cosa b { color: var(--mg-navy); }
/* risultato */
.mg-r-cosa { margin: 0 0 2px; font: 700 10px var(--mg-sans); letter-spacing: .14em; text-transform: uppercase; color: #8a94a3; }
.mg-r-big { font: 700 25px/1.12 var(--mg-display); color: var(--mg-navy); margin-bottom: 8px; }
.mg-r-big.bad { color: #c2412b; } .mg-r-big.ok { color: #2f7d4d; }
.mg-r-save { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; background: #effaf2; border-radius: 12px; padding: 10px 12px; font: 600 13px var(--mg-sans); color: #2f5a40; }
.mg-r-save b { font: 700 28px/1 var(--mg-display); color: #2f7d4d; }
.mg-r-save.ok { background: #f3f5f8; color: #4b5563; }
.mg-r-gauge { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; margin: 12px 0 6px; }
.mg-cb2 .mg-gauge { max-width: 170px; }
.mg-r-prezzi { display: grid; gap: 8px; }
.mg-r-prezzi div { border-left: 3px solid #c2412b; padding-left: 10px; }
.mg-r-prezzi div.giusto { border-left-color: #3f9d63; }
.mg-r-prezzi small { display: block; font: 600 10.5px var(--mg-sans); color: #8a94a3; }
.mg-r-prezzi b { display: block; font: 700 21px/1.1 var(--mg-display); color: var(--mg-navy); }
.mg-r-cons { border-top: 1px solid #eef0f4; padding-top: 10px; margin-bottom: 12px; }
.mg-r-cons p { margin: 0 0 8px; font: 500 13px/1.4 var(--mg-sans); color: #374151; }
.mg-r-cons p b { color: var(--mg-navy); }
.mg-r-cons small { color: #8a94a3; }
.mg-r-pers { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.mg-r-pers span { font: 600 11.5px var(--mg-sans); color: #6b7280; margin-right: 4px; }
.mg-r-pers button { all: unset; cursor: pointer; min-width: 30px; height: 28px; border-radius: 999px; display: grid; place-items: center; font: 700 12px var(--mg-sans); color: var(--mg-navy); background: #eef0f4; }
.mg-r-pers button[aria-pressed="true"] { background: var(--mg-navy); color: #fff; }
.mg-cb2 .mg-tool-actions { display: flex; gap: 8px; }
.mg-cb2 .mg-tool-actions .mg-cta { font-size: 13.5px; }
.mg-cb2 .mg-tool-actions .mg-cta.ghost { justify-content: center; padding: 10px 14px; }
.mg-b-edit { all: unset; cursor: pointer; display: block; margin: 10px auto 0; font: 700 12.5px var(--mg-sans); color: #6b7280; }
.mg-b-edit:hover { color: var(--mg-orange); }
.is-single .mg-q { grid-template-columns: 24px 1fr 112px; gap: 8px; }
.is-single .mg-r-big { font-size: 23px; }
.mg-corto .mg-cb2 .mg-app-sub { display: none; }
.mg-corto .mg-q { padding: 8px 0; }
