/* =====================================================================
   Guida: tipi di attivazione + attivazione telefonica interattiva
   ===================================================================== */
.act-types { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.act-type { margin: 0; transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.js .act-type[data-reveal] { transition: transform .5s var(--ease-out), opacity .9s var(--ease-out) var(--d, 0s), translate .9s var(--ease-out) var(--d, 0s), filter .9s var(--ease-out) var(--d, 0s); }
.act-type h3 { margin: 12px 0 8px; font-size: 1.25rem; }
.act-type p { color: var(--muted); }
.act-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #f1f5f9; font-size: 1.6rem; }
.act-type-phone { border-color: #f5d98a; background: linear-gradient(160deg, #fff8e6, #fff 60%); }
.act-type-phone .act-icon { background: var(--primary); }

.tel-guide { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; margin-top: 36px; align-items: start; }
.tel-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tel-step { border: 1px solid var(--border); border-radius: 16px; background: #fff; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.tel-step.active { border-color: var(--primary); box-shadow: 0 12px 30px -14px rgba(240, 177, 29, .6); }
.tel-step-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; background: none; border: 0; font: inherit; font-weight: 700; text-align: left; cursor: pointer; color: var(--text); }
.tel-num { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: #f1f5f9; color: var(--muted); font-weight: 800; transition: background .3s, color .3s, transform .3s var(--ease-spring); }
.tel-step.active .tel-num { background: var(--primary); color: #1a1405; transform: scale(1.08); }
.tel-step.done .tel-num { background: #dcfce7; color: var(--success); }
.tel-step-body { display: grid; grid-template-rows: 1fr; }
.js .tel-step-body { grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.tel-step-body > p { overflow: hidden; margin: 0; padding: 0 16px 16px 62px; color: #334155; }
.js .tel-step-body > p { padding-bottom: 0; }
.js .tel-step.active .tel-step-body { grid-template-rows: 1fr; }
.js .tel-step.active .tel-step-body > p { padding-bottom: 16px; }

.tel-stage { position: sticky; top: 90px; background: linear-gradient(160deg, #0f2e27, var(--ink)); border-radius: 24px; padding: 22px; color: #fff; box-shadow: 0 30px 60px -25px rgba(11, 34, 29, .6); overflow: hidden; }
.tel-progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); margin-bottom: 16px; overflow: hidden; }
.tel-progress span { display: block; height: 100%; width: 14%; background: linear-gradient(90deg, var(--primary), #f7d774); transition: width .5s var(--ease-out); }
.tel-panel-label { display: block; font-size: .8rem; font-weight: 600; color: #f7d774; margin-bottom: 12px; }
.tel-panel { min-height: 360px; margin-bottom: 20px; }
.js .tel-panel { margin-bottom: 0; }
.js .tel-panel:not(.active) { display: none; }
.js .tel-panel.active { animation: panelIn .55s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; translate: 24px 0; scale: .98; } }
.tel-nav { display: none; justify-content: space-between; margin-top: 18px; }
.js .tel-nav { display: flex; }
.tel-nav .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.tel-nav .btn:disabled { opacity: .4; cursor: default; }

/* Finestra Windows simulata */
.ms-dialog { background: #fff; color: #1f1f1f; border: 1px solid #8a8a8a; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); font-family: "Segoe UI", Tahoma, Arial, sans-serif; font-size: 12.5px; line-height: 1.45; }
.ms-title { display: flex; justify-content: space-between; padding: 7px 10px; font-size: 12px; }
.ms-title span { color: #555; }
.ms-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid #ddd; }
.ms-head b { display: block; font-size: 12px; }
.ms-head small { color: #444; }
.ms-logo { color: #d83b01; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.ms-body { padding: 12px; min-height: 220px; }
.ms-body p { margin: 0 0 10px; }
.ms-label { font-weight: 600; }
.ms-small { margin-top: 26px !important; color: #555; font-size: 11.5px; }
.ms-radio { display: flex; align-items: center; gap: 8px; margin: 6px 0 6px 10px; padding: 2px 6px; border-radius: 4px; width: fit-content; }
.ms-radio i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid #555; display: grid; place-items: center; }
.ms-radio.on i::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f1f1f; }
.ms-row { display: grid; grid-template-columns: 82px 1fr; gap: 6px; margin-bottom: 14px; }
.ms-select { display: inline-block; margin-top: 4px; padding: 2px 6px; border: 1px solid #aaa; font-size: 11.5px; color: #333; }
.ms-id { display: block; margin-top: 4px; padding: 4px 6px; font-weight: 700; letter-spacing: .02em; word-spacing: 3px; border-radius: 4px; }
.ms-boxes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; padding: 4px; border-radius: 6px; }
.ms-boxes > span { display: grid; justify-items: center; gap: 2px; }
.ms-boxes small { font-size: 10px; }
.ms-boxes i { display: block; width: 46px; height: 20px; border: 1px solid #999; font-style: normal; font-size: 11.5px; text-align: center; line-height: 18px; }
.ms-foot { display: flex; gap: 6px; padding: 10px 12px; background: #f0f0f0; border-top: 1px solid #ddd; }
.ms-spacer { flex: 1; }
.ms-btn { display: inline-grid; place-items: center; min-width: 72px; height: 23px; padding: 0 10px; border: 1px solid #adadad; background: #e1e1e1; font-size: 12px; }
.ms-btn-primary { border-color: #0078d7; box-shadow: inset 0 0 0 1px #0078d7; }
.ms-btn-off { color: #a0a0a0; border-color: #ccc; background: #ececec; box-shadow: none; }
.ms-help { min-width: 52px; }

/* Evidenzia dove cliccare */
.hl { position: relative; outline: 2px solid var(--primary); outline-offset: 2px; animation: hlPulse 1.6s ease-in-out infinite; }
@keyframes hlPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 177, 29, .7); } 50% { box-shadow: 0 0 0 8px rgba(240, 177, 29, 0); } }
.ms-btn.hl { background: #fff4d6; }

/* Telefono simulato */
.phone-mock { width: 270px; max-width: 100%; margin: 0 auto; padding: 18px; border-radius: 36px; background: #111; border: 3px solid #2a2a2a; box-shadow: 0 30px 60px rgba(0, 0, 0, .5), inset 0 0 0 2px #333; }
.phone-screen { display: grid; justify-items: center; gap: 6px; padding: 22px 12px 18px; border-radius: 22px; background: linear-gradient(180deg, #12332b, #0b221d); text-align: center; }
.phone-screen small { color: #86efac; font-weight: 600; }
.phone-number { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.7rem; letter-spacing: .02em; }
.phone-hint { font-size: .8rem; color: #cbd5e1; }
.phone-hint b { color: #f7d774; }
.phone-wave { display: flex; gap: 4px; height: 26px; align-items: center; }
.phone-wave i { width: 4px; height: 100%; border-radius: 2px; background: var(--primary); animation: wave 1s ease-in-out infinite; }
.phone-wave i:nth-child(2) { animation-delay: -.8s; }
.phone-wave i:nth-child(3) { animation-delay: -.6s; }
.phone-wave i:nth-child(4) { animation-delay: -.4s; }
.phone-wave i:nth-child(5) { animation-delay: -.2s; }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.keypad span { display: grid; place-items: center; height: 46px; border-radius: 50%; background: #262626; color: #fff; font-size: 1.25rem; font-weight: 600; transition: background .15s, transform .15s, color .15s; }
.keypad span.press { background: var(--primary); color: #1a1405; transform: scale(1.12); box-shadow: 0 0 20px rgba(240, 177, 29, .7); }

.tel-done { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 10px; }
.tel-done h3 { font-size: 1.6rem; margin: 0; }
.tel-done .muted { color: #cbd5e1; }

.tel-call { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; align-items: center; margin-top: 28px; background: linear-gradient(135deg, #fff8e6, #fff); border-color: #f5d98a; }
.tel-call small { display: block; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.tel-call-number { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--text); }
.tel-combo { font-size: 1.3rem; }

@media (max-width: 1000px) {
    .tel-guide { grid-template-columns: 1fr; }
    .tel-stage { position: static; order: -1; }
}
@media (max-width: 720px) {
    .act-types, .tel-call { grid-template-columns: 1fr; }
    .tel-stage { padding: 14px; border-radius: 18px; }
    .ms-dialog { font-size: 11px; }
    .ms-row { grid-template-columns: 1fr; gap: 2px; }
    .ms-boxes i { width: 40px; }
    .ms-btn { min-width: 0; padding: 0 6px; font-size: 11px; }
}
