/* 16 — Hero F (scena a strati) + header a gradiente. Prefisso hf- per non toccare la Vetrina. */
:root{--hf-line:rgba(255,255,255,.1);--hf-grad:linear-gradient(90deg,#8a2387,#e94057,#f27121);--hf-cut:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px))}

/* ── header: logo | menu centrato | azioni ── */
html body header.h5-header{height:68px;padding:0 32px;gap:16px;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;border:0;grid-template-columns:1fr auto 1fr}
html body header.h5-header::before,html body header.h5-header::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;transition:opacity .25s ease-out}
html body header.h5-header::before{background:linear-gradient(rgba(5,5,5,.8),rgba(5,5,5,0))}
html body header.h5-header::after{opacity:0;background:linear-gradient(90deg,rgba(138,35,135,.08),rgba(233,64,87,.08),rgba(242,113,33,.08)),rgba(5,5,5,.84);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:inset 0 -1px 0 var(--hf-line)}
html body header.h5-header.hf-solid::after{opacity:1}
html body header.h5-header.hf-solid::before{opacity:0}
html body .h5-brand img{width:30px;height:30px}
html body .h5-brand span{font:900 15px/1 'Orbitron',sans-serif;letter-spacing:.2em;text-transform:uppercase}
html body .h5-menu{justify-self:center;gap:6px}
html body .h5-menu button{min-height:44px;padding:0 14px;border-radius:0;font:700 11px/1 'Orbitron',sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#9ca3af}
html body .h5-menu button:hover{background:none;color:#e5e7eb}
html body .h5-menu button[aria-current=page]{color:#e5e7eb;border-radius:0;box-shadow:inset 0 -2px 0 #f27121}
html body .h5-tools{justify-self:end}

@media (max-width:980px){
  html body header.h5-header{grid-template-columns:1fr auto;padding:0 16px}
  html body header.h5-header .h5-burger{display:inline-grid;width:50px;height:50px;place-items:center}
  html body header.h5-header .h5-menu{display:flex;flex-direction:column;gap:0;position:absolute;left:0;right:0;top:100%;z-index:-1;padding:8px 24px 24px;background:rgba(5,5,5,.99);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:inset 0 -1px 0 var(--hf-line);text-align:center;opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .2s ease-out,transform .2s ease-out,visibility 0s linear .2s}
  html body header.h5-header .h5-menu.is-open{display:flex;opacity:1;visibility:visible;transform:none;transition:opacity .2s ease-out,transform .2s ease-out}
  html body header.h5-header .h5-menu button{width:100%;min-height:52px;padding:0 16px;text-align:center;font-size:13px;color:#e5e7eb;border-bottom:1px solid rgba(255,255,255,.06)}
  html body header.h5-header .h5-menu button:last-child{border-bottom:0}
  html body header.h5-header .h5-menu button[aria-current=page]{box-shadow:none;color:#f27121;border-radius:0}
}

/* ── home: l'hero scorre sotto l'header ── */
html body #main:has(.hf-hero){max-width:none;padding-top:0;padding-left:0;padding-right:0;overflow-x:clip}
html body #main:has(.hf-hero)>:not(.hf-hero){padding-left:5%;padding-right:5%}
html body .hf-hero{position:relative;overflow:hidden;isolation:isolate;margin-top:-68px;height:calc((100vh - 40px)/var(--ui-zoom,1));min-height:560px;max-height:900px;padding:96px 32px;display:flex;align-items:center}
html body .hf-hero h1,html body .hf-hero h3{font-family:'Orbitron',sans-serif;text-transform:uppercase;letter-spacing:.05em;line-height:1.12;margin:0}
html body .hf-hero p{margin:0}
html body .hf-gt{background:var(--hf-grad);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
html body .hf-mono{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace}
html body .hf-lab{font:700 11px/1 'Orbitron',sans-serif;letter-spacing:.22em;text-transform:uppercase;color:#9ca3af}
html body .hf-hero :focus-visible{outline:2px solid #f27121;outline-offset:2px}
html body .hf-wrap{width:100%;max-width:1240px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:72px;align-items:center}
html body .hf-left{position:relative;min-width:0}
html body .hf-left::before{content:"";position:absolute;inset:-70px -90px -70px -60px;z-index:-1;background:radial-gradient(closest-side,rgba(5,5,5,.78) 55%,transparent)}
html body .hf-left h1{font-size:clamp(30px,4.2vw,58px);font-weight:900;margin-bottom:22px;color:#e5e7eb}
html body .hf-sub{color:#9ca3af;font-size:21px;line-height:1.4;max-width:470px}
html body .hf-cta{display:flex;gap:26px;align-items:center;margin:32px 0 28px;flex-wrap:wrap}
html body .hf-hero .hf-btn{min-height:52px;padding:0 30px;border:0;border-radius:0;cursor:pointer;font:800 12px/1 'Orbitron',sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#fff;background:var(--hf-grad);box-shadow:none;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));transition:filter .2s}
html body .hf-hero .hf-btn:hover{filter:brightness(1.1)}
html body .hf-hero .hf-btn.hf-small{min-height:44px;padding:0 20px;font-size:11px;margin-top:6px}
html body .hf-hero .hf-lnk{background:none;border:0;border-radius:0;box-shadow:none;cursor:pointer;min-height:44px;padding:4px 0;color:#9ca3af;font:500 18px/1.2 'Rajdhani',system-ui,sans-serif;border-bottom:1px solid var(--hf-line);transition:color .15s,border-color .15s}
html body .hf-hero .hf-lnk:hover{color:#e5e7eb;border-color:#9ca3af}
html body .hf-mini{display:flex;max-width:470px;box-shadow:inset 0 0 0 1px var(--hf-line);background:rgba(255,255,255,.03);margin:0}
html body .hf-mini input{flex:1;min-width:0;background:none;border:0;border-radius:0;box-shadow:none;padding:0 16px;min-height:52px;font:500 19px 'Rajdhani',system-ui,sans-serif;color:#e5e7eb}
html body .hf-mini input:focus{outline:none;box-shadow:none}
html body .hf-mini:focus-within{box-shadow:inset 0 0 0 1px #9ca3af}
html body .hf-mini input::placeholder{color:#7b8190}
html body .hf-mini button{width:52px;padding:0;border:0;border-radius:0;box-shadow:none;background:none;cursor:pointer;color:#9ca3af;display:grid;place-items:center}
html body .hf-mini button:hover{color:#e5e7eb;background:none}
html body .hf-mini svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.4}
html body .hf-pick{display:flex;gap:16px;align-items:center;margin-top:26px}
html body .hf-cube{width:46px;flex:none}
html body .hf-cube svg{width:100%;display:block;overflow:visible}
html body .hf-face{fill:none;stroke:rgba(255,255,255,.35);stroke-width:1;cursor:pointer;transition:fill .18s,stroke .18s;vector-effect:non-scaling-stroke}
html body .hf-face:hover{stroke:#e5e7eb}
html body .hf-face.on{fill:rgba(242,113,33,.28);stroke:#f27121}
html body .hf-chips{display:flex;gap:8px;flex-wrap:wrap}
html body .hf-hero .hf-chip{min-height:44px;padding:0 18px;background:none;border:0;border-radius:0;box-shadow:inset 0 0 0 1px var(--hf-line);cursor:pointer;font:700 11px/1 'Orbitron',sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#9ca3af;transition:color .15s,box-shadow .15s}
html body .hf-hero .hf-chip:hover,html body .hf-hero .hf-chip.on{color:#e5e7eb;box-shadow:inset 0 0 0 1px #f27121}

/* scena a strati */
html body .hf-scene{position:absolute;inset:0;z-index:-2;pointer-events:none;overflow:hidden;contain:paint;-webkit-mask-image:linear-gradient(#000 68%,transparent 100%);mask-image:linear-gradient(#000 68%,transparent 100%)}
html body .hf-l{position:absolute;inset:-40px;will-change:transform}
html body .hf-far{background:radial-gradient(55% 55% at 88% 6%,rgba(138,35,135,.34),transparent 72%),radial-gradient(75% 38% at 50% 108%,rgba(233,64,87,.12),rgba(242,113,33,.05) 55%,transparent 78%),radial-gradient(40% 40% at 20% 40%,rgba(138,35,135,.07),transparent 70%)}
html body .hf-floor{perspective:520px;perspective-origin:50% 0}
html body .hf-horizon{position:absolute;left:0;right:0;top:50%;height:1px;background:linear-gradient(90deg,transparent,rgba(233,64,87,.35),transparent)}
html body .hf-plane{position:absolute;left:-60%;right:-60%;top:50%;height:130%;transform-origin:50% 0;transform:rotateX(74deg);background-image:linear-gradient(rgba(255,255,255,.17) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.17) 1px,transparent 1px);background-size:70px 70px;-webkit-mask-image:linear-gradient(transparent,#000 22%,#000 60%,transparent);mask-image:linear-gradient(transparent,#000 22%,#000 60%,transparent)}
html body .hf-spot{position:absolute;left:0;top:0;width:640px;height:640px;margin:-320px 0 0 -320px;background:radial-gradient(closest-side,rgba(255,236,214,.075),transparent);will-change:transform;opacity:0;transition:opacity .6s}
html body .hf-spot.on{opacity:1}
html body .hf-prt{position:absolute;right:-9%;top:6%;height:84%;width:auto;opacity:.8;filter:blur(.6px)}
html body .hf-so{position:absolute}
html body .hf-so svg{display:block;width:100%;height:auto;overflow:visible}
html body .hf-sfar{opacity:.8;filter:blur(2px)}
html body .hf-sfar.hf-a{left:40%;top:52%;width:70px}
html body .hf-sfar.hf-b{left:51%;top:50%;width:54px;opacity:.4}
html body .hf-smid{left:34%;bottom:6%;width:120px;opacity:.85;filter:blur(1px)}
html body .hf-snear{filter:blur(3px);right:-3%;bottom:-14%;width:300px;opacity:.7}
html body .hf-fil{position:absolute;left:0;top:-2%;width:46%;filter:blur(2px)}
html body .hf-dark{position:absolute;left:-8%;bottom:-18%;width:46%;aspect-ratio:1;background:radial-gradient(closest-side,rgba(0,0,0,.85),transparent)}
html body .hf-vig{position:absolute;inset:0;background:radial-gradient(125% 105% at 50% 46%,transparent 55%,rgba(0,0,0,.8))}

/* carta in vetrina */
html body .hf-right{min-width:0}
html body .hf-cwrap{position:relative;transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));will-change:transform}
html body .hf-cshadow{position:absolute;inset:30px -6px -34px;background:rgba(0,0,0,.75);filter:blur(30px);z-index:-1;transform:translate(var(--sx,0px),var(--sy,0px))}
html body .hf-card{display:grid;grid-template-columns:1.25fr 1fr;min-height:320px;background:rgba(10,10,10,.88);clip-path:var(--hf-cut);box-shadow:inset 0 0 0 1px var(--hf-line)}
html body .hf-img{position:relative;overflow:hidden;background:#0b0b0b;min-height:200px}
html body .hf-img svg,html body .hf-img img{position:absolute;inset:0;width:100%;height:100%;display:block}
html body .hf-img img{object-fit:cover}
html body .hf-art{position:absolute;inset:0}
html body .hf-tag{position:absolute;top:14px;left:14px;z-index:2;padding:6px 10px;background:rgba(5,5,5,.8);box-shadow:inset 0 0 0 1px var(--hf-line);font:700 10px/1 'Orbitron',sans-serif;letter-spacing:.22em;color:#e5e7eb}
html body .hf-info{padding:26px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:14px;min-width:0;transition:opacity .45s ease-in-out}
html body .hf-info.swap{opacity:0}
html body .hf-card h3{font-size:16px;margin-top:10px;line-height:1.3;color:#e5e7eb;overflow-wrap:anywhere}
html body .hf-price{font:600 34px/1 ui-monospace,Menlo,Consolas,monospace;color:#e5e7eb}
html body .hf-meta{display:grid;gap:8px;color:#9ca3af;font-size:18px}
html body .hf-meta div{display:flex;align-items:center;gap:8px}
html body .hf-meta svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.3;flex:none}
html body .hf-hero .hf-open{min-height:44px;padding:0 20px;background:none;border:0;border-radius:0;cursor:pointer;color:#e5e7eb;font:700 11px/1 'Orbitron',sans-serif;letter-spacing:.2em;text-transform:uppercase;box-shadow:inset 0 0 0 1px var(--hf-line);transition:box-shadow .15s}
html body .hf-hero .hf-open:hover{box-shadow:inset 0 0 0 1px #9ca3af}
html body .hf-emp{color:#9ca3af;font-size:17px;line-height:1.4}
html body .hf-sk{display:block;background:rgba(255,255,255,.07);width:100%}
html body .hf-sk1{height:10px;width:40%}html body .hf-sk2{height:18px;width:80%}html body .hf-sk3{height:30px;width:55%}
html body .hf-dots{display:flex;align-items:center;margin-top:6px}
html body .hf-hero .hf-dots button{width:44px;height:44px;padding:0;background:none;border:0;border-radius:0;box-shadow:none;cursor:pointer;display:grid;place-items:center}
html body .hf-dots button i{display:block;width:18px;height:2px;background:rgba(255,255,255,.2);transition:background .3s}
html body .hf-dots button[aria-current=true] i{background:#f27121}
html body .hf-dots .hf-n{margin-left:auto;color:#9ca3af;font-size:13px}
html body .hf-last{margin:18px 0 0;list-style:none;padding:0}
html body .hf-last li{border-top:1px solid rgba(255,255,255,.07)}
html body .hf-hero .hf-row{width:100%;min-height:44px;padding:8px 2px;display:flex;justify-content:space-between;align-items:center;gap:12px;background:none;border:0;border-radius:0;box-shadow:none;cursor:pointer;text-align:left;color:#9ca3af;font:500 18px/1.2 'Rajdhani',system-ui,sans-serif}
html body .hf-row:hover b{color:#fff}
html body .hf-row span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .hf-row b{font-weight:600;color:#e5e7eb}
html body .hf-row small{font-size:14px;margin-left:8px}
html body .hf-row .hf-mono{color:#e5e7eb;font-size:16px;white-space:nowrap}

/* freccia */
html body .hf-hero .hf-down{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);z-index:5;display:flex;flex-direction:column;align-items:center;gap:4px;border:0;border-radius:0;box-shadow:none;background:none;cursor:pointer;padding:8px 14px;min-height:44px;color:#9ca3af;transition:opacity .3s ease-out,transform .3s ease-out,color .2s}
html body .hf-hero .hf-down:hover,html body .hf-hero .hf-down:focus-visible{color:#e5e7eb;background:none}
html body .hf-hero .hf-down.gone{opacity:0;pointer-events:none;transform:translateX(-50%) translateY(8px)}
html body .hf-down svg{width:22px;height:14px;stroke:currentColor;fill:none;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;animation:hf-bob 3.2s ease-in-out infinite}
html body .hf-down span{font:700 9px/1 'Orbitron',sans-serif;letter-spacing:.28em;text-transform:uppercase;color:inherit}
@keyframes hf-bob{0%,100%{transform:translateY(-2px);opacity:.6}50%{transform:translateY(4px);opacity:1}}

@media (max-width:980px){
  html body .hf-sfar,html body .hf-snear,html body .hf-fil,html body .hf-dark,html body .hf-spot,html body .hf-smid{display:none}
  html body .hf-prt{right:-14%;top:36%;height:62%;opacity:.45;filter:none}
  html body .hf-far{background:radial-gradient(70% 40% at 90% 4%,rgba(138,35,135,.24),transparent 72%),radial-gradient(90% 30% at 50% 100%,rgba(233,64,87,.1),transparent 75%)}
  html body .hf-plane{background-size:56px 56px;left:-20%;right:-20%}
  html body .hf-hero{height:auto;max-height:none;min-height:0;padding:96px 20px 108px;display:block}
  html body .hf-wrap{grid-template-columns:minmax(0,1fr);gap:44px}
}
@media (max-width:600px){
  html body .hf-card{grid-template-columns:minmax(0,1fr)}
  html body .hf-img{height:180px;min-height:0}
  html body .hf-info{padding:20px}
  html body .hf-cta{gap:20px}
  html body .hf-sub{font-size:19px}
}
@media (prefers-reduced-motion:reduce){
  html body .hf-hero *,html body header.h5-header,html body header.h5-header *{animation:none!important;transition-duration:.01ms!important}
  html body .hf-l,html body .hf-cwrap{transform:none!important}
}

/* Specificità superiore al CSS iniettato da home.js */
html body header.h5-header.h5-header{box-shadow:none;border:0;background-color:transparent}
html body header.h5-header .h5-menu button[aria-current=page],html body header.h5-header .h5-menu button[aria-current=page]:hover{background:none}

/* Tablet e mobile: categorie, Le più viste, banner sponsor */
@media (max-width:980px){
  html body main .j8-catfull .h5-cats{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body .sp-banner{margin:-30px 5.6vw 0}
}
@media (min-width:640px) and (max-width:980px){
  html body main .h5-grid3{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (pointer:coarse){
  html body input,html body select,html body textarea{font-size:16px}
}

/* Catalogo a tablet: filtri su due colonne invece di una pila lunga */
@media (min-width:651px) and (max-width:980px){
  html body #filter-panel.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
  html body #filter-panel.filters>:first-child,html body #filter-panel.filters fieldset.range,html body #filter-panel.filters .span-2,html body #filter-panel.filters #reset,html body #filter-panel.filters .filter-hint{grid-column:1/-1}
}

/* Dettaglio annuncio (dialog): svh su iOS, niente scroll dello sfondo, chiusura raggiungibile col pollice */
@supports (height:1svh){
  html body dialog{max-height:calc(90svh / var(--ui-zoom))}
}
html body dialog{overscroll-behavior:contain}
html:has(dialog[open]){overflow:hidden}
@media (pointer:coarse){
  html body dialog .close,html body dialog button.secondary{min-height:44px}
}

/* Menu aperto: safe-area iOS, pannello scorrevole se più alto dello schermo, sfondo bloccato */
@media (max-width:980px){
  html body header.h5-header .h5-menu{justify-self:stretch;padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right));padding-bottom:max(24px,env(safe-area-inset-bottom));max-height:calc(100vh - 72px);max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain}
  html:has(#h5-menu.is-open){overflow:hidden}
}

/* ── Passo 2: aree toccabili ≥44 px effettivi su touch (lo zoom globale le riduce: si compensa) ── */
@media (pointer: coarse) {
  html body .fx-prog a{min-height:calc(44px / var(--ui-zoom, 1));display:flex;flex-direction:column;justify-content:center}
  html body :is(button, select, [role="tab"], [role="menuitem"], summary):not(.heart-lg),
  html body :is(.sp-btn, header.h5-header a.pg-calc, .h5-brand, footer a, .h5-foot a, .pg-foot a) {
    min-height: calc(44px / var(--ui-zoom, 1));
  }
  html body :is(button, [role="tab"], .heart, .h5-icon, header.h5-header a.pg-calc):not(:is(.h5-burger, .h5-brand)) {
    min-width: calc(44px / var(--ui-zoom, 1));
  }
  html body :is(footer, .h5-foot, .pg-foot) :is(button, a) {
    display: inline-flex;
    align-items: center;
  }
  html body input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="file"]) {
    min-height: calc(44px / var(--ui-zoom, 1));
  }
}

/* Barra azione fissa nella scheda annuncio: solo schermi stretti, dentro l'area sicura */
.dlg-bar { display: none; }
@media (max-width: 700px) {
  html body dialog#modal .dlg-bar {
    display: block;
    position: sticky;
    bottom: 0;
    margin: 12px -4px 0;
    padding: 10px 4px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, #050505 70%, rgba(5, 5, 5, 0));
    z-index: 3;
  }
  html body dialog#modal .dlg-bar button {
    width: 100%;
    min-height: calc(48px / var(--ui-zoom, 1));
  }
}

/* Passo 3: Pubblica, campo foto con pulsante italiano e caselle con area 44 px */
html body #adform label:has(> .fx-file){position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
html body #adform label:has(> .fx-file) > :is(.fx-help){flex:1 1 100%}
html body #adform .fx-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0;margin:0;font-size:0}
html body #adform .fx-pick{display:inline-flex;align-items:center;min-height:calc(44px / var(--ui-zoom, 1));padding:0 18px;font:700 12px/1 'Orbitron',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#120a02;background:linear-gradient(90deg,#8a2387,#e94057,#f27121);clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px))}
html body #adform .fx-names{min-width:0;overflow-wrap:anywhere;font-size:.9rem}
html body #adform .fx-file:focus-visible ~ .fx-help,html body #adform label:has(> .fx-file:focus-visible) .fx-pick{outline:2px solid #f27121;outline-offset:3px}
@media (pointer: coarse) {
  html body #adform .check{position:relative;min-height:calc(44px / var(--ui-zoom, 1));padding:4px 0;cursor:pointer}
  html body #adform .check input{flex:none;width:calc(24px / var(--ui-zoom, 1)) !important;height:calc(24px / var(--ui-zoom, 1));min-height:0}
  html body #adform .check::after{content:"";position:absolute;inset:0;pointer-events:none}
}

/* Profilo · sezione Sicurezza (cambio password) */
html body dialog#modal .pw-sec{margin-top:28px;padding-top:20px;border-top:1px solid rgba(255,255,255,.1)}
html body dialog#modal .pw-sec h3{font-family:Orbitron,sans-serif;font-size:15px;letter-spacing:.08em;text-transform:uppercase;margin:4px 0 14px}
html body dialog#modal #pw-form{display:flex;flex-direction:column;gap:12px}
html body dialog#modal .pw-f{display:flex;flex-direction:column;gap:6px}
html body dialog#modal .pw-wrap{position:relative;display:block}
html body dialog#modal .pw-wrap input{width:100%;box-sizing:border-box;padding-right:calc(48px / var(--ui-zoom, 1))}
html body dialog#modal .pw-eye{position:absolute;top:0;right:0;bottom:0;width:calc(44px / var(--ui-zoom, 1));min-height:calc(44px / var(--ui-zoom, 1));padding:0;display:flex;align-items:center;justify-content:center;background:transparent;border:0;color:#9ca3af;clip-path:none}
html body dialog#modal .pw-eye:hover{color:#e5e7eb}
html body dialog#modal .pw-eye:focus-visible{outline:2px solid #f27121;outline-offset:-2px}
html body dialog#modal .pw-msg{margin:0;font-size:14px}
html body dialog#modal .pw-msg.err{color:#e94057}
html body dialog#modal .pw-msg.ok{color:#22c55e}
html body dialog#modal #pw-submit{min-height:calc(44px / var(--ui-zoom, 1))}
html body dialog#modal #pw-submit:disabled{opacity:.6;cursor:wait}
@media (pointer: coarse){html body dialog#modal .pw-wrap input{font-size:16px}}

/* Profilo · Zona pericolosa (elimina account) */
html body dialog#modal .del-sec{margin-top:28px;padding-top:20px;border-top:1px solid rgba(255,255,255,.1)}
html body dialog#modal .del-sec h3{font-family:Orbitron,sans-serif;font-size:15px;letter-spacing:.08em;text-transform:uppercase;margin:4px 0 8px;color:#e94057}
html body dialog#modal .del-sec h3{color:#e94057;-webkit-text-fill-color:#e94057}
/* Profilo · etichette di sezione (Account, Sicurezza, Zona pericolosa): eyebrow BlackHole */
html body dialog#modal .pw-sec .eyebrow,html body dialog#modal .del-sec .eyebrow{font-family:Orbitron,sans-serif;font-size:11px;font-weight:500;letter-spacing:.22em;text-transform:uppercase;color:#9ca3af;-webkit-text-fill-color:#9ca3af;margin:0 0 8px}
html body dialog#modal .del-lead{margin:0 0 14px;color:#9ca3af}
html body dialog#modal .del-open{background:transparent;color:#e94057;border:1px solid #e94057;min-height:calc(44px / var(--ui-zoom, 1));font-family:Orbitron,sans-serif;font-size:12px;letter-spacing:.1em;text-transform:uppercase;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));cursor:pointer;padding:0 18px}
html body dialog#modal .del-open:hover{background:rgba(233,64,87,.12)}
html body dialog#modal .del-open:focus-visible,html body dialog#modal .del-go:focus-visible{outline:2px solid #e5e7eb;outline-offset:2px}
html body dialog#modal .del-panel{background:rgba(5,5,5,.7);border:1px solid rgba(233,64,87,.5);padding:16px;clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px));scroll-margin-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
html body dialog#modal .del-panel h4{font-family:Orbitron,sans-serif;font-size:14px;letter-spacing:.06em;margin:0 0 10px;color:#e5e7eb}
html body dialog#modal .del-panel ul{margin:0 0 16px;padding-left:18px;display:flex;flex-direction:column;gap:6px;color:#e5e7eb}
html body dialog#modal #del-form{display:flex;flex-direction:column;gap:12px}
html body dialog#modal .del-actions{display:flex;gap:10px;flex-wrap:wrap;padding-bottom:env(safe-area-inset-bottom,0px)}
html body dialog#modal .del-actions button{flex:1 1 140px;min-height:calc(44px / var(--ui-zoom, 1))}
html body dialog#modal .del-go{background:#e94057;color:#050505;border:1px solid #e94057;font-family:Orbitron,sans-serif;font-size:12px;letter-spacing:.08em;text-transform:uppercase;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));cursor:pointer}
html body dialog#modal .del-go:disabled{opacity:.4;cursor:not-allowed}
@media (pointer: coarse){html body dialog#modal #del-form input{font-size:16px}}
