/* Nuovo design — pagina APP */

/* --- apertura --- */
.app-hero::before{content:'';position:absolute;top:-20%;right:-12%;width:70vw;height:70vw;max-width:900px;max-height:900px;border-radius:50%;background:radial-gradient(circle,rgba(196,165,116,.12) 0%,transparent 65%);pointer-events:none}
.ah-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:clamp(40px,6vw,100px);align-items:center}
.ah-badge{display:inline-flex !important;align-items:center;gap:10px;padding:10px 16px;border:1px solid rgba(196,165,116,.35);border-radius:999px}
.ah-badge svg{width:11px;height:11px;fill:currentColor}
.app-hero h1{max-width:12ch}
.ah-dl{margin-top:44px;display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.ah-id{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px}
.ah-icon{width:clamp(140px,16vw,190px);aspect-ratio:1;border-radius:22%;overflow:hidden;background:#fff;padding:3px;box-shadow:0 30px 70px rgba(0,0,0,.55),0 0 0 1px rgba(196,165,116,.45),0 0 80px rgba(196,165,116,.18);animation:ahFloat 6s ease-in-out infinite}
.ah-icon img{width:100%;height:100%;object-fit:cover;border-radius:20%}
.ah-icon.sm{width:64px;animation:none;box-shadow:0 10px 30px rgba(0,0,0,.5),0 0 0 1px rgba(196,165,116,.4)}
.ah-brand{margin-top:16px;font:300 clamp(26px,2.4vw,34px)/1.1 var(--serif);color:var(--fg)}
.ah-sub{line-height:1.6}
@keyframes ahFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}

/* --- pulsante App Store --- */
.store-btn{display:inline-flex;align-items:center;gap:16px;padding:14px 28px 14px 22px;background:var(--fg);color:var(--bg);border:1px solid var(--fg);transition:background .45s var(--ease),border-color .45s var(--ease),transform .45s var(--ease);max-width:100%}
.store-btn:hover{background:var(--gold);border-color:var(--gold);transform:translateY(-2px)}
.store-btn .apl{width:24px;height:30px;fill:currentColor;flex:none}
.store-btn .st{display:flex;flex-direction:column;line-height:1.2;text-align:left;min-width:0}
.store-btn small{font:500 9px/1.3 var(--sans);letter-spacing:.2em;text-transform:uppercase;opacity:.75}
.store-btn b{font:600 17px/1.25 var(--sans);letter-spacing:.01em}

/* --- telefono + elenco funzioni --- */
.show-head{max-width:900px;margin-bottom:clamp(50px,8vh,90px)}
.show-head .h2{font-size:clamp(32px,3.6vw,56px);line-height:1.12}
.show-grid{display:grid;grid-template-columns:1fr auto;gap:clamp(40px,7vw,120px);align-items:center}
.show-hint{margin-bottom:22px}
.show-list{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.sel{display:flex;gap:24px;align-items:flex-start;text-align:left;width:100%;padding:28px 6px 28px 0;border-bottom:1px solid var(--line);position:relative;transition:padding .5s var(--ease)}
.sel::before{content:'';position:absolute;left:0;top:-1px;height:1px;width:0;background:var(--gold);transition:width .7s var(--ease)}
.sel .k{flex:none;width:30px;padding-top:9px;font:500 10px/1 var(--sans);letter-spacing:.3em;color:var(--mute);transition:color .4s}
.sel-t{display:flex;flex-direction:column;gap:8px;min-width:0}
.sel-h{font:300 clamp(22px,2vw,29px)/1.2 var(--serif);color:var(--fg);transition:color .4s}
.sel-p{color:var(--mute);font-size:15px;line-height:1.65;max-height:0;overflow:hidden;opacity:0;transition:max-height .7s var(--ease),opacity .5s}
.sel:hover .sel-h{color:var(--gold)}
.sel.on::before{width:100%}
.sel.on .k,.sel.on .sel-h{color:var(--gold)}
.sel.on .sel-p{max-height:16em;opacity:1}
.sel:focus-visible{outline:1px solid var(--gold);outline-offset:4px}

.show-phone{position:relative;display:flex;justify-content:center}
.show-phone::before{content:'';position:absolute;inset:-10% 0;background:radial-gradient(circle,rgba(196,165,116,.14) 0%,transparent 62%);pointer-events:none}

.phone{--g:#c4a574;position:relative;width:320px;max-width:100%;aspect-ratio:1/2;background:#000;border-radius:46px;padding:11px;box-shadow:0 40px 80px -20px rgba(0,0,0,.8),0 0 0 4px #262422,0 0 0 5px #403c39,0 0 40px 2px rgba(196,165,116,.14);overflow:hidden}
.ph-island{position:absolute;top:18px;left:50%;transform:translateX(-50%);width:95px;height:25px;background:#000;border-radius:20px;z-index:5;display:flex;align-items:center;justify-content:flex-end;padding:0 10px}
.ph-island i{width:7px;height:7px;border-radius:50%;background:#111;box-shadow:inset 0 0 2px rgba(255,255,255,.2)}
.ph-screen{position:relative;width:100%;height:100%;background:#121110;border-radius:36px;overflow:hidden;display:flex;flex-direction:column;color:#fff;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-weight:400;line-height:1.4}
.ph-status{height:40px;flex:none;display:flex;justify-content:space-between;align-items:flex-end;padding:0 24px 5px;font-size:11px;font-weight:600;color:rgba(255,255,255,.85);position:relative;z-index:3}
.ph-icons{display:flex;gap:5px;align-items:center}
.ph-icons svg{height:10px;width:auto;fill:currentColor}
.ph-view{flex:1;display:none;flex-direction:column;gap:11px;padding:10px 16px 18px;position:relative;overflow-y:auto;scrollbar-width:none;min-height:0}
.ph-view::-webkit-scrollbar{display:none}
.ph-view.on{display:flex;animation:phIn .5s var(--ease) both}
@keyframes phIn{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:none}}
.ph-h{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-bottom:8px;border-bottom:1px solid rgba(196,165,116,.12)}
.ph-h b{font-size:14px;font-weight:600;line-height:1.25}
.ph-h span{flex:none;font-size:10px;font-weight:500;padding:2px 8px;border-radius:10px;background:rgba(196,165,116,.15);color:var(--g);text-transform:uppercase;letter-spacing:.04em}
.ph-h span.live{background:rgba(76,217,100,.15);color:#4cd964}

/* AR */
#app-screen-ar{padding:0;margin-top:-40px}
.ar-bg{position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.75)),url('/images/about-chantal.webp') center/cover no-repeat,#1c1916;opacity:.9}
.ar-ov{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;justify-content:space-between;padding:50px 16px 18px}
.ar-head{background:rgba(0,0,0,.35);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:8px 12px;text-align:center;font-size:12px;font-weight:600;color:var(--g);letter-spacing:.03em}
.ar-find{align-self:center;width:130px;height:130px;border:1.5px dashed var(--g);border-radius:50%;display:grid;place-items:center;animation:arPulse 3s infinite}
.ar-tat{width:80px;height:80px;background:url('/images/dotwork-mandala.webp') center/contain no-repeat;filter:invert(1) brightness(1.5) opacity(.85);animation:arRot 30s linear infinite}
.ar-ctl{background:rgba(18,17,16,.95);border:1px solid rgba(196,165,116,.15);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:8px}
.ar-row{display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:.02em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.ar-row span:first-child{width:74px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ar-row .bar{flex:1;height:3px;margin:0 10px;background:rgba(255,255,255,.15);border-radius:2px;position:relative}
.ar-row .bar b{position:absolute;top:50%;width:10px;height:10px;margin-left:-5px;transform:translateY(-50%);border-radius:50%;background:var(--g);box-shadow:0 0 8px var(--g)}
.ar-shoot{align-self:center;margin-top:4px;width:44px;height:44px;border:3px solid #fff;border-radius:50%;display:grid;place-items:center}
.ar-shoot i{width:32px;height:32px;border-radius:50%;background:var(--g)}
@keyframes arPulse{0%,100%{transform:scale(1);opacity:.8}50%{transform:scale(1.03);opacity:1}}
@keyframes arRot{to{transform:rotate(360deg)}}

/* diario */
.ring{align-self:center;position:relative;width:110px;height:110px;margin:8px 0;display:grid;place-items:center}
.ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:8}
.ring .r0{stroke:rgba(255,255,255,.06)}
.ring .r1{stroke:var(--g);stroke-linecap:round;stroke-dasharray:282.6;stroke-dashoffset:98.9}
#app-screen-diary.on .r1{animation:ringIn 1.5s ease-out both}
@keyframes ringIn{from{stroke-dashoffset:282.6}to{stroke-dashoffset:98.9}}
.ring div{position:relative;display:flex;flex-direction:column;align-items:center}
.ring b{font-size:22px;font-weight:700;line-height:1}
.ring small{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:rgba(255,255,255,.5)}
.chk{display:flex;flex-direction:column;gap:9px;padding:12px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.05)}
.chk p{display:flex;align-items:center;gap:10px;font-size:12px;color:rgba(255,255,255,.85)}
.chk i{flex:none;width:16px;height:16px;border-radius:4px;border:1px solid var(--g);display:grid;place-items:center;font-style:normal;font-size:9px;color:var(--g)}
.chk .done i{background:var(--g);color:#121110}
.chk .done span{text-decoration:line-through;color:rgba(255,255,255,.4)}

/* chat */
.bub{font-size:11.5px;line-height:1.45;padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.05);max-width:92%}
.bub.me{align-self:flex-start;border-top-left-radius:2px;background:rgba(196,165,116,.08);border-color:rgba(196,165,116,.15)}
.bub.you{align-self:flex-end;border-top-right-radius:2px;background:rgba(255,255,255,.06)}
.t .ph-in{width:100%;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:8px 12px;font:400 11px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;color:#fff}
.ph-send{background:var(--g);color:#121110;border-radius:8px;padding:10px;font:700 11px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;letter-spacing:.05em;text-transform:uppercase;cursor:default}

/* portfolio */
.pf-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.pf-tabs span{flex:none;padding:4px 10px;border-radius:20px;font-size:10px;color:rgba(255,255,255,.6);background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.pf-tabs span.on{background:var(--g);border-color:var(--g);color:#121110;font-weight:600}
.pf-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pf-grid div{position:relative;height:96px;border-radius:10px;overflow:hidden;background:#1c1916}
.pf-grid img{width:100%;height:100%;object-fit:cover}
.pf-grid i{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:10px;color:#ff3b30;background:rgba(0,0,0,.5);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}

/* barra in basso del telefono */
.ph-tabs{flex:none;height:58px;padding-bottom:12px;display:flex;justify-content:space-around;align-items:center;background:rgba(18,17,16,.98);border-top:1px solid rgba(255,255,255,.05);position:relative;z-index:3}
.ph-tabs a{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:9px;color:rgba(255,255,255,.4);transition:color .3s;padding:4px 6px}
.ph-tabs a.on{color:var(--g)}
.ph-tabs svg{width:18px;height:18px;fill:currentColor}

/* --- quattro schede --- */
.app-cols{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.app-cols h3{font-size:clamp(25px,2.2vw,30px)}

/* --- dettagli tecnici --- */
.specs{border-top:1px solid var(--line);margin-top:10px}
.specs > div{display:grid;grid-template-columns:minmax(120px,.8fr) 1.6fr;gap:24px;padding:22px 0;border-bottom:1px solid var(--line)}
.specs dt{font:500 10px/1.8 var(--sans);letter-spacing:.28em;text-transform:uppercase;color:var(--gold)}
.specs dd{color:#c9c1b5}
.specs-dl{margin-top:48px;display:flex;align-items:center;flex-wrap:wrap;gap:22px}

/* --- telefono / tablet --- */
@media (max-width:980px){
  .ah-grid{grid-template-columns:1fr}
  .ah-id{order:-1;display:grid;grid-template-columns:96px 1fr;align-items:center;justify-items:start;text-align:left;gap:4px 20px}
  .ah-id .ah-icon{width:96px;grid-row:span 2;animation:none}
  .ah-id .ah-brand{margin:0;align-self:end}
  .ah-id .ah-sub{align-self:start}
  .show-grid{grid-template-columns:1fr}
  .show-phone{order:-1}
  .sel-p{max-height:none;opacity:1}
}
@media (max-width:520px){
  .specs > div{grid-template-columns:1fr;gap:6px}
  .store-btn{width:100%;justify-content:center}
  .phone{border-radius:40px}
  .ph-screen{border-radius:30px}
}
@media (prefers-reduced-motion:reduce){ .ah-icon,.ar-find,.ar-tat{animation:none} }
.app-show{overflow:hidden}
