/* =========================================================
   Polline: tagliando.css
   Il tagliando della comunicazione. Solo ciò che non può stare inline:
   pulsanti con ombra piena (hover/active), focus e stato di ripresa.
   I colori sono quelli di tokens/base.css; qui restano in esadecimale come nel design.
   ========================================================= */

/* chi riprende un tagliando già iniziato non vede l'intro (lo imposta uno script in pagina) */
[data-tg-resume] #tg-intro { display: none; }
#tg-app[hidden], #tg-intro[hidden] { display: none; }

/* il contenuto cambia da una schermata all'altra: si tiene un'altezza minima così il piè di pagina non salta */
#tg-app { min-height: 85vh; }

#tg-intro button:focus-visible, #tg-intro a:focus-visible,
#tg-app button:focus-visible, #tg-app a:focus-visible { outline: 3px solid #3AB3D9; outline-offset: 3px; }

#tg-intro a, #tg-app p a { color: #1A2B4A; text-decoration-color: #FCDE3D; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* pulsanti a pillola con ombra piena: ogni variante dichiara colore e ombra, l'altezza dell'ombra cambia in hover e active */
.tg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; color: #1A2B4A; font-family: Figtree, sans-serif; font-weight: 800; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tg-sky { min-height: 58px; padding: 17px 36px; background: #3AB3D9; box-shadow: 0 10px 0 0 #298CAB; font-size: 18px; }
.tg-sky:hover { transform: translateY(2px); box-shadow: 0 8px 0 0 #298CAB; }
.tg-sky:active { transform: translateY(8px); box-shadow: 0 2px 0 0 #298CAB; }

.tg-vera, .tg-falsa { flex: 1 1 0; min-width: 0; min-height: 60px; padding: 16px; font-size: 17px; }
.tg-vera { background: #3AB3D9; box-shadow: 0 9px 0 0 #298CAB; }
.tg-vera:hover { transform: translateY(2px); box-shadow: 0 7px 0 0 #298CAB; }
.tg-vera:active { transform: translateY(7px); box-shadow: 0 2px 0 0 #298CAB; }
.tg-falsa { background: #FFFFFF; box-shadow: 0 9px 0 0 #E8D6C2; }
.tg-falsa:hover { transform: translateY(2px); box-shadow: 0 7px 0 0 #E8D6C2; }
.tg-falsa:active { transform: translateY(7px); box-shadow: 0 2px 0 0 #E8D6C2; }

.tg-yellow { min-height: 58px; padding: 17px 38px; background: #FCDE3D; box-shadow: 0 8px 0 0 #E3BB19; font-size: 18px; }
.tg-yellow:hover { transform: translateY(2px); box-shadow: 0 6px 0 0 #E3BB19; }
.tg-yellow:active { transform: translateY(6px); box-shadow: 0 2px 0 0 #E3BB19; }

/* pulsanti con solo contorno: Indietro (su crema) e Rifai il tagliando (su navy) */
.tg-ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(26,43,74,0.18); font-weight: 700; font-size: 16px; min-height: 44px; padding: 10px 18px; transition: box-shadow .15s ease; }
.tg-ghost:hover { box-shadow: inset 0 0 0 2px #1A2B4A; }
.tg-ghost-inv { background: transparent; color: #FFF6EC; box-shadow: inset 0 0 0 2px rgba(255,246,236,0.5); font-weight: 700; font-size: 17px; min-height: 52px; padding: 14px 26px; transition: box-shadow .15s ease; }
.tg-ghost-inv:hover { box-shadow: inset 0 0 0 2px #FFF6EC; }

@media (prefers-reduced-motion: reduce) {
  .tg-btn, .tg-ghost, .tg-ghost-inv, #tg-intro *, #tg-app * { transition: none !important; animation: none !important; }
}
