/* =========================================================
   Polline: frequenza.css
   "Stessa frequenza?". Solo ciò che non può stare inline: pulsanti con ombra piena
   (hover/active), campo di testo, risposte, focus e animazioni minime.
   Le classi dei moduli email (.pl-*) arrivano da laboratorio.css.
   ========================================================= */

#fr-app[hidden], #fr-intro[hidden], #fr-lead[hidden] { display: none; }

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

#fr-intro button:focus-visible, #fr-intro a:focus-visible, #fr-intro input:focus-visible,
#fr-app button:focus-visible, #fr-app a:focus-visible { outline: 3px solid #3AB3D9; outline-offset: 3px; }
#fr-app p a, #fr-intro p a { color: #1A2B4A; text-decoration-color: #FCDE3D; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* pulsanti a pillola con ombra piena */
.fr-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;
}
.fr-sky { min-height: 58px; padding: 17px 36px; background: #3AB3D9; box-shadow: 0 10px 0 0 #298CAB; font-size: 18px; }
.fr-sky:hover { transform: translateY(2px); box-shadow: 0 8px 0 0 #298CAB; }
.fr-sky:active { transform: translateY(8px); box-shadow: 0 2px 0 0 #298CAB; }
.fr-yellow { min-height: 58px; padding: 17px 38px; background: #FCDE3D; box-shadow: 0 8px 0 0 #E3BB19; font-size: 18px; }
.fr-yellow:hover { transform: translateY(2px); box-shadow: 0 6px 0 0 #E3BB19; }
.fr-yellow:active { transform: translateY(6px); box-shadow: 0 2px 0 0 #E3BB19; }
.fr-btn[disabled] { cursor: not-allowed; background: #F1E6D6; box-shadow: 0 8px 0 0 #E8D6C2; color: rgba(26,43,74,0.6); transform: none; }
.fr-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; }
.fr-ghost:hover { box-shadow: inset 0 0 0 2px #1A2B4A; }
.fr-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; }
.fr-ghost-inv:hover { box-shadow: inset 0 0 0 2px #FFF6EC; }

/* campo del nome */
.fr-input { width: 100%; min-height: 58px; padding: 0 20px; border: 0; border-radius: 16px; background: #FFF6EC; color: #1A2B4A; font: inherit; font-size: 1.1rem; font-weight: 600; box-shadow: inset 0 0 0 2px rgba(26,43,74,0.22); outline: none; transition: box-shadow .15s ease; }
.fr-input::placeholder { color: rgba(26,43,74,0.55); }
.fr-input:focus { box-shadow: inset 0 0 0 2px #1A2B4A, 0 0 0 5px #FCDE3D; }
.fr-input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #C0492F; }
.fr-err { margin: 0; font-size: 0.92rem; font-weight: 700; color: #C0492F; }

/* risposte: schede grandi, la scelta diventa gialla */
.fr-ans { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 14px 20px 14px 16px; border: 0; border-radius: 22px; background: #FFFFFF; color: #1A2B4A; box-shadow: 0 8px 0 0 #E8D6C2; font-family: Figtree, sans-serif; font-size: 1.1rem; font-weight: 700; line-height: 1.3; text-align: left; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.fr-ans:hover { transform: translateY(2px); box-shadow: 0 6px 0 0 #E8D6C2; }
.fr-ans:active { transform: translateY(7px); box-shadow: 0 1px 0 0 #E8D6C2; }
.fr-ans[aria-pressed="true"] { background: #FCDE3D; box-shadow: 0 8px 0 0 #E3BB19; }
.fr-ans-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #FFF0DF; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1rem; }
.fr-ans[aria-pressed="true"] .fr-ans-badge { background: #1A2B4A; color: #FFF6EC; }
.fr-skip { align-self: center; min-height: 48px; padding: 11px 22px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 2px rgba(26,43,74,0.3); color: #1A2B4A; font-family: Figtree, sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; }
.fr-skip[aria-pressed="true"] { background: #FCDE3D; box-shadow: inset 0 0 0 2px #1A2B4A; }

/* card degli attriti: il titolo è un pulsante che apre il consiglio */
.fr-att-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; width: 100%; padding: 18px 20px; border: 0; background: #1A2B4A; color: #FFF6EC; text-align: left; cursor: pointer; font-family: inherit; }
.fr-att-head .fr-chev { flex: none; margin-top: 6px; transition: transform .25s ease; }
.fr-att-head[aria-expanded="true"] .fr-chev { transform: rotate(180deg); }
.fr-att-body[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .fr-btn, .fr-ghost, .fr-ghost-inv, .fr-ans, .fr-input, .fr-att-head .fr-chev, #fr-intro *, #fr-app * { transition: none !important; animation: none !important; }
}

/* si stampa solo il PDF scaricabile: la pagina non serve */
@media print { #fr-intro, #fr-app { display: none !important; } }
