/* Guide per lo studio dentistico: lettura comoda, struttura chiara. */
.guide-meta { margin-top: 18px !important; font-size: 13px !important; color: #7b8e7f !important; letter-spacing: .02em; }

/* Indice a sinistra, testo al centro. */
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 64px; justify-content: center; padding: 40px 0 20px; border-top: 1px solid #dfe7dc; }
.guide-toc { position: sticky; top: 104px; align-self: start; font-size: 14px; }
.guide-toc > span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #61856c; margin-bottom: 14px; }
.guide-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid #dfe7dc; }
.guide-toc li a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: #5b6f60; text-decoration: none; line-height: 1.4; transition: color .2s, border-color .2s; }
.guide-toc li a:hover, .guide-toc li a.on { color: #244832; border-left-color: #397c58; }

/* Il testo. */
.guide-body { font-size: 18px; line-height: 1.8; color: #3f5446; min-width: 0; }
.guide-body p { margin: 0 0 20px; text-wrap: pretty; }
.guide-body strong { color: #1f3d2a; font-weight: 650; }
.guide-section { scroll-margin-top: 100px; }
.guide-section + .guide-section { margin-top: 52px; }
.guide-body h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.03em; font-weight: 650; color: #244832; margin: 0 0 18px; }
.guide-body ul, .guide-body ol { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 12px; }
.guide-body ul li { position: relative; padding-left: 28px; }
.guide-body ul li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 9px; height: 9px; border-radius: 50%; background: #5b9b75; box-shadow: 0 0 0 4px #5b9b751f; }
.guide-body a { color: #2c6a5f; text-underline-offset: 3px; }

/* Il problema: la scena iniziale. */
.guide-hook { position: relative; padding: 30px 32px 10px; border-radius: 22px; background: linear-gradient(150deg, #f6faf3, #ecf3e8); border: 1px solid #dbe7d4; }
.guide-hook h2 { font-size: 13px !important; letter-spacing: .16em; text-transform: uppercase; color: #61856c !important; margin-bottom: 12px !important; font-weight: 600 !important; }
.guide-hook p { font-size: 20px; line-height: 1.7; color: #2f4a37; }

/* Il ponte verso StudioMax. */
.guide-bridge { margin-top: 64px !important; padding: 36px 34px 30px; border-radius: 26px; background: #fff; border: 1px solid #d7e4d1; box-shadow: 0 30px 60px -40px #0e292066; }
.guide-bridge .eyebrow { color: #397c58; font-size: 11px; letter-spacing: .16em; margin: 0 0 8px; }
.guide-figure { margin: 26px 0 0; }
.guide-figure .art { min-height: 360px; }
.guide-figure figcaption { margin-top: 12px; font-size: 13.5px; color: #6b7f70; text-align: center; }

/* Invito finale, legato al tema dell'articolo. */
.guide-cta { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 56px 0; padding: 38px 36px; border-radius: 26px; color: #eef7ea;
  background: radial-gradient(90% 120% at 100% 0%, #1f5141, transparent 60%), linear-gradient(160deg, #0f2a23, #081611); }
.guide-cta > div { flex: 1 1 360px; }
.guide-cta .eyebrow { color: #9cc8aa; font-size: 11px; letter-spacing: .16em; margin: 0 0 10px; }
.guide-cta h2 { color: #f3faf1 !important; font-size: clamp(23px, 2.2vw, 29px) !important; margin: 0 0 10px !important; }
.guide-cta p { color: #b6cdbc; font-size: 16px; margin: 0; }
.guide-cta .button { background: #b9ebc7; color: #0d2620; white-space: nowrap; }
.guide-cta .button:hover { background: #d3f5dc; }

.guide-body .mini-faq { margin-top: 0; }
.guide-note { font-size: 13.5px !important; line-height: 1.7 !important; color: #7b8e7f; padding: 16px 18px; border-radius: 14px; background: #f5f8f3; margin-top: 40px !important; }
.guide-sources h2 { font-size: 15px !important; letter-spacing: .1em; text-transform: uppercase; color: #61856c !important; margin: 30px 0 10px !important; }
.guide-sources ul { gap: 6px !important; font-size: 15px; }
.guide-steps { counter-reset: s; }
.guide-steps li { counter-increment: s; position: relative; padding-left: 40px; }
.guide-steps li::before { content: counter(s); position: absolute; left: 0; top: .2em; width: 26px; height: 26px; border-radius: 50%; background: #0e2920; color: #cfebc6; font-size: 13px; font-weight: 700; display: grid; place-items: center; }

/* Schede degli articoli. */
.guide-related { padding: 40px 0 70px; border-top: 1px solid #dfe7dc; }
.guide-related > h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; color: #244832; margin: 0 0 24px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.guide-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 56px; border-radius: 22px; background: #fff; border: 1px solid #dbe6d5; color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.guide-card:hover { transform: translateY(-4px); border-color: #b9d3be; box-shadow: 0 26px 50px -30px #0e292055; }
.guide-card small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #61856c; }
.guide-card strong { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; color: #1f3d2a; }
.guide-card span { font-size: 14.5px; line-height: 1.65; color: #5b6f60; }
.guide-card em { position: absolute; left: 26px; bottom: 20px; font-style: normal; font-size: 13.5px; font-weight: 600; color: #2c6a5f; }
.guide-cat > p { font-size: 17px; color: #5b6f60; margin: -10px 0 26px; max-width: 760px; }
.guide-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.guide-chips a { padding: 10px 16px; border-radius: 999px; background: #edf4e8; border: 1px solid #d4e1cc; color: #2f5e45; font-size: 14px; font-weight: 600; text-decoration: none; }
.guide-chips a:hover { background: #e2eedc; }

/* Animazioni illustrative degli articoli. */
.anim .line { height: 8px; border-radius: 6px; background: #d9e6d6; margin: 10px 0; }
.anim .line.w60 { width: 60%; } .anim .line.w80 { width: 80%; } .anim .line.w40 { width: 40%; }
@keyframes anim-loop { 0% { transform: scaleX(0); } 45%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.cmp-rows { display: grid; gap: 16px; margin-top: 26px; }
.cmp-row { display: grid; grid-template-columns: 170px 1fr 80px; gap: 14px; align-items: center; font-size: 13px; color: #dcebdf; }
.cmp-bar { height: 12px; border-radius: 8px; background: #ffffff12; overflow: hidden; }
.cmp-bar i { display: block; height: 100%; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, #4f9a7a, #b9ebc7); transform-origin: left; animation: anim-loop 6s var(--d) cubic-bezier(.65, 0, .35, 1) infinite; }
.cmp-val { text-align: right; font-weight: 650; color: #f3faf1; }
.cmp-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 28px; padding: 16px 18px; font-size: 13.5px; color: #dcebdf; }
.cmp-formula b { color: #9cc8aa; font-weight: 400; }
.cmp-formula strong { font-size: 18px; color: #b9ebc7; }
.sig-doc { position: relative; width: 78%; margin: 26px auto 0; padding: 24px 24px 18px; border-radius: 18px; background: #f4f8f1; color: #1d3a2b; box-shadow: 0 30px 60px -25px #000c; }
.sig { display: block; width: 100%; height: 76px; margin-top: 12px; }
.sig path { fill: none; stroke: #1d3a5a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; animation: sig-draw 5s ease-in-out infinite; }
@keyframes sig-draw { 0% { stroke-dashoffset: 700; } 45%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.sig-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px dashed #c7d6c3; padding-top: 10px; font-size: 12px; color: #6b8571; }
.sig-ok { color: #2c6a5f; animation: sig-ok 5s ease-in-out infinite; }
@keyframes sig-ok { 0%, 40% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
.mag-gauge { position: relative; height: 220px; width: 120px; margin: 26px 0 0 18%; border-radius: 22px; background: #ffffff0c; border: 1px solid #ffffff1f; overflow: hidden; }
.mag-fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #8fd1a6, #2f6e5a); animation: mag-drop 6s ease-in-out infinite; }
@keyframes mag-drop { 0% { height: 88%; } 55% { height: 22%; } 80% { height: 22%; } 100% { height: 88%; } }
.mag-min { position: absolute; left: -6px; right: -6px; bottom: 34%; border-top: 2px dashed #f0b86e; }
.mag-min span { position: absolute; left: 132px; top: -10px; white-space: nowrap; font-size: 11px; color: #f0b86e; }
.an-mag .mag-alert { right: 26px; top: 90px; animation: mag-alert 6s ease-in-out infinite; }
@keyframes mag-alert { 0%, 42% { opacity: 0; transform: translateY(10px); } 52%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.lot-flow { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.lot-code { padding: 16px; }
.lot-code .bars { display: flex; gap: 3px; height: 54px; align-items: stretch; }
.lot-code .bars i { background: #eef7ec; border-radius: 1px; }
.lot-code small { display: block; margin-top: 8px; font-size: 10px; letter-spacing: .12em; color: #9cc8aa; }
.lot-arrow { flex: 1; height: 2px; background: #ffffff1f; position: relative; overflow: hidden; border-radius: 2px; }
.lot-arrow i { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #b9ebc7, transparent); animation: lot-run 2.4s linear infinite; }
@keyframes lot-run { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.lot-tooth { padding: 16px 18px; }
.lot-tooth strong { display: block; font-size: 18px; color: #f3faf1; } .lot-tooth span { font-size: 12.5px; color: #b6cdbc; }
.an-lotti .c1 { right: 26px; bottom: 60px; }
.rate-line { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; }
.rate-line::before { content: ''; position: absolute; left: 12%; right: 12%; top: 22px; height: 2px; background: #ffffff1f; }
.rate-dot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.rate-dot i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: #0c201b; border: 1.5px solid #ffffff2a; color: #dcebdf; animation: rate-on 6s var(--d) ease-in-out infinite; }
.rate-dot.ok i { border-color: #9fd8b1; color: #b9ebc7; }
.rate-dot.late i { border-color: #f0b86e; color: #f0b86e; box-shadow: 0 0 22px #f0b86e66; }
.rate-dot small { font-size: 12px; color: #b6cdbc; }
@keyframes rate-on { 0% { opacity: .2; transform: scale(.8); } 15%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: .2; } }
.an-rate .c1 { right: 26px; bottom: 56px; }
.pn-rows { display: grid; gap: 10px; margin-top: 24px; }
.pn-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 15px; border-radius: 12px; background: #ffffff0c; border: 1px solid #ffffff17; font-size: 13px; color: #dcebdf; opacity: 0; animation: pn-in 6s var(--d) ease-out infinite; }
.pn-row b { font-weight: 650; } .pn-row.in b { color: #b9ebc7; } .pn-row.out b { color: #f0b86e; }
@keyframes pn-in { 0% { opacity: 0; transform: translateX(-14px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.pn-file { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 12px 15px; border-radius: 14px; background: #f4f8f1; color: #1d3a2b; width: max-content; max-width: 100%; animation: pn-file 6s ease-out infinite; }
.pn-file > span { padding: 8px 9px; border-radius: 8px; background: #2c6a5f; color: #fff; font-size: 11px; font-weight: 700; }
.pn-file strong { display: block; font-size: 14px; } .pn-file small { font-size: 12px; color: #6b8571; }
@keyframes pn-file { 0%, 35% { opacity: 0; transform: translateY(8px); } 45%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.prev-arch .tooth.on { animation: art-glow 1.6s ease-in-out infinite; }
.prev-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.an-prev .c1 { right: 24px; top: 24px; }
.pol-wrap { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.pol-ring { position: relative; width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: conic-gradient(#9fd8b1 0 78%, #ffffff14 78% 100%); animation: pol-spin 6s ease-in-out infinite; }
.pol-ring::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: #0c201b; }
.pol-ring div { position: relative; } .pol-ring strong { display: block; font-size: 34px; letter-spacing: -.03em; color: #f3faf1; } .pol-ring span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #9cc8aa; }
@keyframes pol-spin { 0% { filter: saturate(.4); transform: scale(.96); } 50% { filter: none; transform: scale(1); } 100% { filter: saturate(.4); transform: scale(.96); } }
.pol-stats { display: grid; gap: 10px; flex: 1; min-width: 180px; }
.pol-stats .glass { padding: 12px 15px; } .pol-stats small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #9cc8aa; } .pol-stats strong { font-size: 18px; color: #f3faf1; }

@media (max-width: 980px) {
  .guide-layout { grid-template-columns: 1fr; gap: 26px; }
  .guide-toc { position: static; padding: 18px 20px; border-radius: 18px; background: #f5f8f3; }
}
@media (max-width: 640px) {
  .guide-body { font-size: 17px; }
  .guide-hook { padding: 24px 22px 6px; } .guide-hook p { font-size: 18px; }
  .guide-bridge { padding: 26px 20px 22px; }
  .guide-cta { padding: 28px 24px; } .guide-cta .button { width: 100%; }
  .cmp-row { grid-template-columns: 1fr 70px; } .cmp-row .cmp-bar { grid-column: 1 / -1; grid-row: 2; }
  .sig-doc { width: 100%; }
  .mag-gauge { margin-left: 4%; width: 96px; height: 190px; } .mag-min span { left: 104px; }
  .an-mag .mag-alert { right: 14px; top: auto; bottom: 52px; }
  .lot-flow { flex-direction: column; align-items: stretch; } .lot-arrow { height: 26px; width: 2px; margin: 0 auto; }
  .rate-dot small { font-size: 10.5px; }
  .an-rate .c1, .an-lotti .c1, .an-prev .c1 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .anim *, .anim *::before { animation: none !important; opacity: 1 !important; }
  .sig path { stroke-dashoffset: 0; }
}
/* Animazioni della seconda serie. */
.dia-list { display: grid; gap: 12px; margin-top: 26px; }
.dia-row { padding: 14px 16px; border-radius: 14px; background: #ffffff0c; border: 1px solid #ffffff17; opacity: 0; animation: pn-in 7s var(--d) ease-out infinite; }
.dia-row small { display: block; font-size: 11px; letter-spacing: .06em; color: #9cc8aa; margin-bottom: 4px; }
.dia-row span { font-size: 15px; color: #f3faf1; }
.dia-row em { display: block; font-style: normal; font-size: 12.5px; color: #b6cdbc; margin-top: 4px; }
.dia-void span { text-decoration: line-through; text-decoration-color: #f0b86e; color: #c9d6cc; }
.dia-void small { color: #f0b86e; }
.dia-fix { border-color: #9fd8b155; background: #9fd8b114; }
.bk-flow { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.bk-node { padding: 16px 18px; } .bk-node strong { display: block; font-size: 16px; color: #f3faf1; } .bk-node span { font-size: 12px; color: #b6cdbc; }
.bk-bar { height: 10px; border-radius: 8px; background: #ffffff12; overflow: hidden; margin-top: 30px; width: 70%; }
.bk-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #4f9a7a, #b9ebc7); transform-origin: left; animation: anim-loop 6s cubic-bezier(.65,0,.35,1) infinite; }
.an-backup .bk-ok { right: 26px; bottom: 56px; animation: mag-alert 6s ease-in-out infinite; }
@media (max-width: 640px) { .bk-flow { flex-direction: column; align-items: stretch; } .bk-flow .lot-arrow { height: 22px; width: 2px; margin: 0 auto; } .an-backup .bk-ok { display: none; } .bk-bar { width: 100%; } }

/* Dentro le illustrazioni il testo segue i colori dell'illustrazione, non quelli dell'articolo. */
.guide-body .art strong { color: #f3faf1; }
.guide-body .art .doc strong, .guide-body .art .sig-doc strong, .guide-body .art .pn-file strong, .guide-body .art .phone strong { color: #1d3a2b; }
.guide-body .art .cmp-formula strong { color: #b9ebc7; }
.guide-body .art p { margin: 0; font-size: inherit; line-height: inherit; }
.guide-figure .art { min-height: 410px; padding-bottom: 56px; }
.guide-figure .an-rate .c1, .guide-figure .an-backup .bk-ok, .guide-figure .an-lotti .c1 { top: auto; bottom: 46px; }
.guide-figure .an-mag .mag-alert { top: 110px; }

/* Il sito lascia già lo spazio per il menu: qui basta un piccolo respiro. */
.guide-section { scroll-margin-top: 18px; }
