/* Difetti di fabbrica: stili del tool, dal design di Polline (cartellini di controllo qualità). */
[data-df] [hidden] { display: none !important; }
[data-df] :focus-visible { outline: 3px solid #3AB3D9; outline-offset: 3px; }
[data-df] a { color: #1A2B4A; text-decoration: none; }
[data-df] button { font-family: inherit; }
@media (prefers-reduced-motion: reduce) { [data-df] *, [data-df] *::before, [data-df] *::after { transition: none !important; animation: none !important; } }

.df-eyebrow { margin: 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(26,43,74,0.75); }
.df-h2 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }

/* bottoni */
.df-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 14px 28px; border: 0; border-radius: 999px; background: #FCDE3D; color: #1A2B4A; font-weight: 800; font-size: 1.05rem; cursor: pointer; box-shadow: 0 5px 0 #E3BB19; transition: transform .15s ease, opacity .2s ease; }
.df-cta:hover:not(:disabled) { transform: translateY(-2px); }
.df-cta:disabled { opacity: .45; cursor: not-allowed; }
.df-solid { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 24px; border: 0; border-radius: 999px; background: #1A2B4A; color: #FFF6EC; font-weight: 800; font-size: 1rem; cursor: pointer; }
.df-solid:hover { color: #FCDE3D; }
.df-ring { min-height: 52px; padding: 12px 22px; border: 0; border-radius: 999px; background: transparent; color: #1A2B4A; font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: inset 0 0 0 2px #1A2B4A; }
.df-ring:hover { background: #FFFFFF; }
.df-ghost { min-height: 52px; padding: 12px 18px; border: 0; border-radius: 999px; background: transparent; color: #1A2B4A; font-weight: 800; font-size: 1rem; cursor: pointer; }
.df-ghost:hover { background: #FFFFFF; }

/* hero */
.df-hero-tag { position: relative; width: min(320px, 100%); padding-top: 6px; transform-origin: 50% 0; transition: transform 1.1s cubic-bezier(0.3,1.7,0.5,1); }
.df-stamp { display: inline-block; padding: 5px 12px; border: 3px solid #1F6F8B; border-radius: 8px; box-shadow: inset 0 0 0 2px #F9DF5E, inset 0 0 0 4px #1F6F8B; color: #1F6F8B; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: 0.16em; mix-blend-mode: multiply; transition: transform .32s cubic-bezier(0.2,1.8,0.4,1), opacity .2s ease; transform: rotate(-9deg) scale(1); opacity: 1; }
.df-stamp.is-out { transform: rotate(-9deg) scale(1.9); opacity: 0; }

/* passaggi */
.df-steps { margin: 0; padding: 6px; list-style: none; display: flex; gap: 4px; overflow-x: auto; border-radius: 999px; background: #FFFFFF; align-self: center; max-width: 100%; }
.df-steps li { flex: 0 0 auto; }
.df-stepbtn { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 8px; border: 0; border-radius: 999px; font-weight: 800; font-size: 0.92rem; white-space: nowrap; transition: background .2s ease; cursor: pointer; background: transparent; color: #1A2B4A; }
.df-stepbtn:disabled { cursor: not-allowed; opacity: .45; }
.df-stepbtn[aria-current="step"] { background: #1A2B4A; color: #FFF6EC; opacity: 1; }
.df-stepbtn.is-narrow { padding-right: 8px; }
.df-stepdot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 0.8rem; background: #FFF6EC; color: #1A2B4A; }
.df-stepbtn[aria-current="step"] .df-stepdot { background: #FCDE3D; color: #1A2B4A; }
.df-stepbtn.is-done .df-stepdot { background: #1A2B4A; color: #FFF6EC; }

/* passo 1: interruttore e cartellini appesi */
.df-modes { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: #FFF6EC; }
.df-modes button { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; font-weight: 800; font-size: 0.95rem; cursor: pointer; transition: background .2s ease; background: transparent; color: #1A2B4A; }
.df-modes button[aria-checked="true"] { background: #1A2B4A; color: #FFF6EC; }
.df-rack { display: grid; gap: 28px 18px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); padding-top: 6px; }
.df-hang { position: relative; padding-top: 22px; }
.df-hang::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 34px; margin-left: -1px; background: rgba(26,43,74,0.5); }
.df-hang::after { content: ""; position: absolute; top: -4px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #1A2B4A; }
.df-tagbtn { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 40px 18px 18px; border: 0; text-align: left; color: #1A2B4A; cursor: pointer; clip-path: polygon(30px 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%, 0 30px); transform-origin: 50% 0; transition: transform .35s cubic-bezier(0.3,1.6,0.5,1), background .2s ease; background: #FFF0DF; transform: rotate(var(--rot, 0deg)); }
.df-tagbtn.is-on { background: #F9DF5E; }
.df-tagbtn:hover { transform: rotate(0deg) translateY(-2px); background: #F9DF5E; }
.df-tagbtn .df-hole { position: absolute; top: 8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #FFFFFF; box-shadow: inset 0 0 0 3px rgba(26,43,74,0.22); }
.df-lotto { white-space: nowrap; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(26,43,74,0.75); }
.df-tagname { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.22rem; line-height: 1.1; letter-spacing: -0.015em; }
.df-tagsub { font-size: 0.88rem; line-height: 1.4; color: rgba(26,43,74,0.82); text-wrap: pretty; }

/* passo 2: modulo d'ispezione */
.df-stripes { height: 14px; background: repeating-linear-gradient(-45deg, #1A2B4A 0 14px, #FCDE3D 14px 28px); }
.df-piece { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 40px 18px 18px; background: #FFF0DF; clip-path: polygon(30px 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%, 0 30px); transform: rotate(-2deg); transform-origin: 50% 0; }
.df-piece .df-hole { position: absolute; top: 8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #FFFFFF; box-shadow: inset 0 0 0 3px rgba(26,43,74,0.22); }
.df-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; transition: opacity .25s ease; }
.df-legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 12px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.15; letter-spacing: -0.02em; }
.df-num { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #1A2B4A; color: #FCDE3D; font-size: 1rem; }
.df-opt { display: flex; align-items: center; gap: 16px; min-height: 62px; padding: 12px 18px; border: 0; border-radius: 18px; text-align: left; color: #1A2B4A; cursor: pointer; transition: background .2s ease, box-shadow .2s ease; background: #FFF6EC; box-shadow: inset 0 0 0 2px rgba(26,43,74,0.1); }
.df-opt:hover { box-shadow: inset 0 0 0 2px #1A2B4A; }
.df-opt[aria-checked="true"] { background: #FFF3B8; box-shadow: inset 0 0 0 2px #1A2B4A; }
.df-opt .df-box { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; box-shadow: inset 0 0 0 2.5px #1A2B4A; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.2rem; background: #FFFFFF; }
.df-opt[aria-checked="true"] .df-box { background: #F9DF5E; }
.df-opt span.df-t { font-weight: 800; font-size: 1.05rem; }

/* ispezione */
.df-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.df-checks li { display: flex; align-items: center; gap: 14px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.2; transition: opacity .3s ease, transform .3s ease; opacity: .25; transform: translateX(8px); }
.df-checks li.is-active { opacity: .6; transform: translateX(0); }
.df-checks li.is-done { opacity: 1; transform: translateX(0); }
.df-checks .df-box { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; box-shadow: inset 0 0 0 2.5px #1A2B4A; font-size: 1.1rem; background: #FFFFFF; }
.df-checks li.is-done .df-box { background: #F9DF5E; }
.df-progress { height: 14px; border-radius: 999px; background: #FFF0DF; overflow: hidden; }
.df-progress > div { height: 100%; border-radius: 999px; background: repeating-linear-gradient(-45deg, #1A2B4A 0 8px, #2C4066 8px 16px); transition: width .55s ease; width: 0; }

/* passo 3: il cartellino */
.df-result { display: grid; gap: 28px 32px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.df-bigtag { position: relative; background: #F9DF5E; clip-path: polygon(64px 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 0 100%, 0 64px); padding: 66px clamp(22px, 4vw, 36px) 28px; display: flex; flex-direction: column; gap: 16px; }
.df-bigtag .df-hole { position: absolute; top: 8px; left: 50%; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: #FFF6EC; box-shadow: inset 0 0 0 5px #D9BE3A; }
.df-bigstamp { flex: 0 0 auto; padding: 7px 14px; border: 3px solid #1F6F8B; border-radius: 9px; box-shadow: inset 0 0 0 2px #F9DF5E, inset 0 0 0 4px #1F6F8B; color: #1F6F8B; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: 0.16em; mix-blend-mode: multiply; transition: transform .34s cubic-bezier(0.2,1.8,0.4,1), opacity .18s ease; transform: rotate(-8deg) scale(1); opacity: 1; }
.df-bigstamp.is-out { transform: rotate(-8deg) scale(2.2); opacity: 0; }
.df-cols { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.df-col { border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.df-col h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.2rem; }
.df-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.df-col li { display: flex; gap: 10px; line-height: 1.4; }
.df-col li > span:first-child { flex: 0 0 auto; font-weight: 800; }
.df-moves { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.df-move { border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.df-move p:first-child { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.df-move p:first-child span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #1A2B4A; color: #FCDE3D; font-size: 0.8rem; }
.df-move p:last-child { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.45; text-wrap: pretty; }

/* chiusura */
.df-close-a { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 16px 30px; border-radius: 999px; background: #FCDE3D; color: #1A2B4A !important; font-weight: 800; font-size: 1.05rem; transition: background .25s ease; }
.df-close-a:hover { background: #FFF6EC; }
.df-close-b { display: inline-flex; align-items: center; min-height: 56px; padding: 16px 26px; border-radius: 999px; color: #FFF6EC !important; font-weight: 800; font-size: 1.05rem; box-shadow: inset 0 0 0 2px rgba(255,246,236,0.5); transition: box-shadow .25s ease; }
.df-close-b:hover { box-shadow: inset 0 0 0 2px #FFF6EC; }

/* difetto e superpotere hanno lo stesso peso: stessa dimensione, il difetto è barrato */
.df-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(26,43,74,0.8); }
.df-big { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 3.6rem); line-height: 0.95; letter-spacing: -0.04em; text-wrap: balance; }
.df-big s { text-decoration-thickness: 0.07em; }
.df-hero-big { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
