/* ==========================================================
   HARDYTECH — Pagina Timely
   ========================================================== */

/* ---------- Hero ---------- */
.tl-hero { position: relative; min-height: 560px; padding: 70px 0 0 84px; perspective: 1600px; }
.tl-hero__browser { position: relative; z-index: 1; transform: rotateY(-8deg) rotateX(3deg); transform-origin: 0% 50%; }
.tl-hero__phone.dev-phone { position: absolute; left: 0; top: 196px; z-index: 3; width: 176px; padding: 7px; border-radius: 30px; }
.tl-hero__phone.dev-phone::before { top: 13px; height: 14px; }
.tl-hero__phone .dev-phone__screen { border-radius: 24px; }
.tl-hero__phone .dev-phone__screen > img { padding-top: 20px; }
.tl-timer { position: absolute; right: -36px; top: -8px; z-index: 4; display: flex; align-items: center; gap: 14px; padding: 13px 18px 13px 13px; border-radius: 20px;
  background: rgba(8, 22, 40, 0.74); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); }
.tl-timer__ring { width: 58px; height: 58px; transform: rotate(-90deg); flex-shrink: 0; }
.tl-timer__ring circle { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 5; }
.tl-timer__ring .arc { stroke: #60A5FA; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 47; }
.tl-timer__txt small { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9FB1C7; }
.tl-timer__t { display: block; margin-top: 3px; font-family: var(--mono); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.tl-timer__txt > span { display: block; margin-top: 2px; font-size: 0.76rem; color: #B9C8DC; }
.tl-notif { position: absolute; right: 16px; bottom: 34px; z-index: 4; width: 290px; display: flex; gap: 11px; padding: 12px 14px; border-radius: 18px;
  background: rgba(244, 246, 250, 0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: var(--ink); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  font-size: 0.84rem; line-height: 1.35; font-weight: 600; }
.tl-notif__ic img { width: 30px; height: 30px; border-radius: 8px; }
.tl-notif__body > span { display: flex; justify-content: space-between; margin-bottom: 2px; font-size: 0.74rem; color: var(--muted); }
.tl-notif__body b { color: var(--ink); }

/* ---------- Tour: cielo che cambia con l'ora ---------- */
.tl-sky--1 { background: linear-gradient(165deg, #FFE5CF 0%, #FCEFE6 40%, #E6EEFF 100%); }
.tl-sky--2 { background: linear-gradient(165deg, #FFF2DA 0%, #EEF5FF 55%, #DAE8FF 100%); }
.tl-sky--3 { background: linear-gradient(165deg, #D9ECFF 0%, #EFF6FF 50%, #FFFFFF 100%); }
.tl-sky--4 { background: linear-gradient(165deg, #E6EDFF 0%, #DCE4FF 50%, #F2ECFF 100%); }
.tl-sky--5 { background: linear-gradient(165deg, #161E47 0%, #262B63 45%, #3A3173 100%); }
.tour__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(12, 30, 51, 0.07) 1px, transparent 1.2px); background-size: 22px 22px; transition: opacity .8s ease; }
.tour__sun { position: absolute; z-index: -1; left: 14%; top: 62%; width: 300px; height: 300px; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(255, 205, 140, 0.95) 0%, rgba(255, 214, 160, 0.35) 34%, rgba(255, 214, 160, 0) 68%);
  transition: left 1.4s var(--ease), top 1.4s var(--ease), background .9s ease; }
.tour__panel.is-dark { border-color: rgba(255, 255, 255, 0.1); }
.tour__panel.is-dark::after { background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.2px); }
.tour__panel.is-dark .tour__sun { background: radial-gradient(circle, rgba(214, 222, 255, 0.55) 0%, rgba(190, 200, 255, 0.15) 32%, rgba(190, 200, 255, 0) 66%); }
.tour__panel.is-dark .tour__clock b { color: #fff; }
.tour__panel.is-dark .tour__clock span { color: #C9D3F0; }
.tour__panel.is-dark .tour__bar { background: rgba(255, 255, 255, 0.16); }
.tour__panel.is-dark .tour__bar i { background: #93C5FD; }
.tour__clock b, .tour__clock span, .tour__panel { transition: color .6s ease, border-color .6s ease; }

/* scene */
.tl-sc-phone .tscene__wrap, .tl-sc-lock .tscene__wrap { height: 100%; }
.tl-sc-phone__dev.dev-phone, .tl-sc-lock__dev.dev-phone { height: min(100%, 640px); width: auto; max-width: none; }
.tl-sc-lock .tscene__wrap { grid-template-columns: auto auto; gap: clamp(20px, 3vw, 44px); justify-content: center; }
.tl-sc-totem .tscene__wrap, .tl-sc-dash .tscene__wrap, .tl-sc-report .tscene__wrap { max-width: 860px; }
.tl-chip { position: absolute; z-index: 5; display: flex; align-items: center; gap: 11px; padding: 11px 15px; border-radius: 16px; background: #fff; box-shadow: var(--sh-lg); font-size: 0.84rem; line-height: 1.3; }
.tl-chip b { display: block; color: var(--ink); }
.tl-chip small { display: block; color: var(--muted); font-size: 0.74rem; }
.tl-chip__ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--p-soft); color: var(--p); flex-shrink: 0; }
.tl-chip__ic .ic { width: 16px; height: 16px; }
.tl-chip__ic--ok { background: rgba(34, 197, 94, 0.14); color: #16A34A; }
.tl-chip--start { right: 3%; top: 24%; }
.tl-chip--sync { left: 3%; bottom: 18%; }
.tl-chip--van { right: 1%; bottom: 10%; }
.tl-chip--live { left: -12px; top: -18px; }
.tl-xlsx { position: absolute; right: 3%; bottom: -26px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: var(--sh-lg); font-size: 0.86rem; line-height: 1.3; }
.tl-xlsx__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(21, 128, 61, 0.12); color: #15803D; }
.tl-xlsx__ic .ic { width: 20px; height: 20px; }
.tl-xlsx small { display: block; color: var(--muted); font-size: 0.74rem; }
.tl-xlsx > .ic { color: #15803D; }

/* schermata di blocco iPhone (mock HTML) */
.tl-lock { background: radial-gradient(120% 70% at 15% 0%, #5B7CFA, transparent 60%), radial-gradient(100% 60% at 100% 100%, #F59E7A, transparent 62%), linear-gradient(160deg, #1E3A8A, #312E81); color: #fff; }
.tl-lock__inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 20% 6% 0; container-type: inline-size; text-align: center; }
.tl-lock__date { font-size: 5.4cqw; font-weight: 600; opacity: .92; }
.tl-lock__time { font-size: 25cqw; font-weight: 700; letter-spacing: -0.035em; line-height: 1; margin-top: 1cqw; }
.tl-lock__widget { margin-top: 4.5cqw; display: inline-flex; align-items: center; gap: 2cqw; padding: 2.4cqw 4.2cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 4.2cqw; white-space: nowrap; }
.tl-lock__widget img { width: 5cqw; height: 5cqw; border-radius: 1.4cqw; }
.tl-lock__notif { margin: auto 0 22%; width: 100%; display: flex; gap: 3cqw; align-items: flex-start; padding: 4cqw; border-radius: 6cqw; background: rgba(245, 247, 250, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); font-size: 4.4cqw; font-weight: 600; line-height: 1.3; text-align: left; box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, 0.25); }
.tl-lock__notif img { width: 9.5cqw; height: 9.5cqw; border-radius: 2.4cqw; flex-shrink: 0; }
.tl-lock__app { display: flex; justify-content: space-between; margin-bottom: 1cqw; font-size: 3.7cqw; color: var(--muted); }
.tl-lock__app b { color: var(--ink); }
.tl-lock--static { position: relative; width: min(280px, 78%); margin: 0 auto; aspect-ratio: 362 / 795; border-radius: 40px; overflow: hidden; border: 8px solid #0A1422; box-shadow: 0 30px 60px rgba(12, 30, 51, 0.3); }
.tl-alerts { display: flex; flex-direction: column; gap: 10px; width: 270px; padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(10px); box-shadow: var(--sh-lg); }
.tl-alerts__title { display: flex; gap: 9px; align-items: center; font-weight: 800; font-size: 0.98rem; letter-spacing: -0.02em; margin-bottom: 2px; }
.tl-alerts__title .ic { color: var(--p); width: 18px; height: 18px; }
.tl-alerts__row { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: 0.84rem; color: var(--muted); line-height: 1.4; }
.tl-alerts__row i { font-style: normal; font-family: var(--mono); font-weight: 700; font-size: 0.76rem; color: var(--p); }
.tl-m-phone.dev-phone { width: min(270px, 74%); margin: 0 auto; }

.tl-show-monitor { max-width: 1020px; margin: 0 auto; }

/* ---------- Bento ---------- */
.tl-art-project { align-items: end; padding: 24px 24px 0; background: linear-gradient(180deg, #EEF4FF, #F8FAFF); }
.tl-art-project img { width: min(300px, 88%); border-radius: 16px 16px 0 0; box-shadow: 0 20px 50px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(12, 30, 51, 0.06); transform: translateY(14px); transition: transform .7s var(--ease); }
.bcard:hover .tl-art-project img { transform: translateY(0); }
.tl-art-folder { background: linear-gradient(180deg, #F3F6FF, #FAFBFF); padding: 30px 20px 50px; }
.tl-art-folder img { position: relative; z-index: 2; width: min(300px, 82%); border-radius: 16px; box-shadow: 0 16px 40px rgba(12, 30, 51, 0.12), 0 0 0 1px rgba(12, 30, 51, 0.05); }
.tl-photos { position: absolute; inset: 0; }
.tl-photos i { position: absolute; width: 70px; height: 54px; border-radius: 9px; border: 3px solid #fff; box-shadow: 0 10px 22px rgba(12, 30, 51, 0.18); transition: transform .8s var(--ease); }
.tl-photos i::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 14%; height: 34%; background: rgba(255, 255, 255, 0.35); clip-path: polygon(0 100%, 30% 30%, 55% 70%, 75% 40%, 100% 100%); }
.tl-photos i:nth-child(1) { left: 7%; top: 10%; transform: rotate(-11deg); background: linear-gradient(160deg, #F6C58A, #C2691A); }
.tl-photos i:nth-child(2) { right: 8%; top: 8%; transform: rotate(9deg); background: linear-gradient(160deg, #93C5FD, #1E40AF); }
.tl-photos i:nth-child(3) { right: 16%; bottom: 8%; transform: rotate(-5deg); background: linear-gradient(160deg, #A7F3D0, #047857); }
.bcard:hover .tl-photos i:nth-child(1) { transform: translate(40px, 30px) rotate(-4deg) scale(.9); }
.bcard:hover .tl-photos i:nth-child(2) { transform: translate(-40px, 26px) rotate(4deg) scale(.9); }
.bcard:hover .tl-photos i:nth-child(3) { transform: translate(-20px, -24px) rotate(0deg) scale(.9); }
.tl-drive { position: absolute; left: 50%; bottom: 14px; z-index: 3; transform: translateX(-50%); white-space: nowrap; font-size: 0.74rem; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 5px 11px; border-radius: 99px; }
.tl-art-cal { padding: 18px; }
.tl-cal { width: min(250px, 100%); background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--sh-md); }
.tl-cal > b { font-size: 0.86rem; }
.tl-cal__g { margin-top: 8px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tl-cal__g i { aspect-ratio: 1; border-radius: 6px; background: var(--surface-2); transition: transform .4s var(--ease); }
.tl-cal__g i.f { background: #3B82F6; } .tl-cal__g i.m { background: #F59E0B; } .tl-cal__g i.p { background: #22C55E; }
.bcard:hover .tl-cal__g i.f, .bcard:hover .tl-cal__g i.m, .bcard:hover .tl-cal__g i.p { transform: scale(1.12); }
.tl-cal__lg { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.tl-cal__lg i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 4px; }
.tl-cal__lg i.f { background: #3B82F6; } .tl-cal__lg i.m { background: #F59E0B; } .tl-cal__lg i.p { background: #22C55E; }
.tl-art-widget { grid-auto-flow: column; gap: 16px; background: radial-gradient(120% 90% at 20% 0%, rgba(91, 124, 250, 0.5), transparent 60%), radial-gradient(100% 70% at 100% 100%, rgba(245, 158, 122, 0.35), transparent 62%), #1E2B63 !important; }
.tl-w-circle { position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); }
.tl-w-circle svg { position: absolute; inset: 7px; transform: rotate(-90deg); }
.tl-w-circle circle { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 4; }
.tl-w-circle .arc { stroke: #fff; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 25; }
.tl-w-circle b { font-size: 0.95rem; color: #fff; }
.tl-w-rect { display: flex; flex-direction: column; padding: 11px 15px; border-radius: 18px; background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); min-width: 134px; color: #fff; }
.tl-w-rect > span { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; opacity: .88; }
.tl-w-rect img { border-radius: 4px; }
.tl-w-rect b { font-family: var(--mono); font-size: 1.35rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tl-w-rect small { font-size: 0.72rem; opacity: .78; }
.tl-art-roles { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px; }
.tl-role { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s ease; }
.bcard:hover .tl-role:nth-child(1) { transform: translateX(4px); } .bcard:hover .tl-role:nth-child(2) { transform: translateX(8px); border-color: var(--p-line); } .bcard:hover .tl-role:nth-child(3) { transform: translateX(4px); }
.tl-role i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--p-soft); color: var(--p); flex-shrink: 0; }
.tl-role i .ic { width: 16px; height: 16px; }
.tl-role b { display: block; font-size: 0.9rem; }
.tl-role small { display: block; font-size: 0.76rem; color: var(--muted); }
.tl-pwa { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; background: linear-gradient(115deg, #fff 45%, #EDF3FF); }
.tl-pwa h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.035em; text-wrap: balance; }
.tl-pwa p { max-width: 520px; }
.tl-pwa__link { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.98rem; color: var(--p); text-decoration: none; }
.tl-pwa__link .ic { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.tl-pwa__link:hover .ic { transform: translateX(4px); }
.tl-pwa__art { display: flex; align-items: center; justify-content: center; gap: 26px; }
.tl-home { width: 196px; padding: 26px 18px 34px; border-radius: 32px; background: radial-gradient(120% 70% at 15% 0%, #5B7CFA, transparent 60%), linear-gradient(160deg, #1E3A8A, #312E81); box-shadow: var(--sh-lg); }
.tl-home__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; align-items: start; }
.tl-home__grid i { aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, 0.18); }
.tl-home__app { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tl-home__app img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55), 0 8px 18px rgba(0, 0, 0, 0.3); animation: appPop 3.2s var(--ease) infinite; }
.tl-home__app small { font-size: 0.56rem; color: #fff; font-weight: 600; }
@keyframes appPop { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(1.14); } 80% { transform: scale(.96); } }
.tl-steps { display: flex; flex-direction: column; gap: 12px; }
.tl-steps span { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 700; white-space: nowrap; }
.tl-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--p); color: #fff; font-size: 0.76rem; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tl-hero { max-width: 640px; }
  .tl-pwa { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tl-hero { min-height: 0; padding: 50px 0 130px 40px; }
  .tl-hero__browser { transform: none; }
  .tl-hero__phone.dev-phone { width: 118px; top: auto; bottom: 0; border-radius: 22px; padding: 5px; }
  .tl-hero__phone .dev-phone__screen { border-radius: 18px; }
  .tl-hero__phone.dev-phone::before { display: none; }
  .tl-hero__phone .dev-phone__screen > img { padding-top: 8px; }
  .tl-timer { right: -4px; top: -6px; padding: 9px 12px 9px 9px; gap: 10px; border-radius: 16px; }
  .tl-timer__ring { width: 42px; height: 42px; }
  .tl-timer__t { font-size: 1.2rem; }
  .tl-timer__txt > span { display: none; }
  .tl-notif { right: -4px; bottom: 16px; width: min(230px, 64%); font-size: 0.76rem; padding: 10px 11px; }
  .tl-notif__ic img { width: 24px; height: 24px; }
  .tl-pwa__art { flex-direction: column; }
  .tl-steps { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================
   L'APP TIMELY — iPhone, Apple Watch, widget, iPad
   schermate ricostruite dall'app nativa (colori e testi reali,
   dati dimostrativi): scalano con la cornice del dispositivo.
   ========================================================== */
.tl-napp { background: radial-gradient(120% 80% at 50% 0%, #0E2D52 0%, var(--navy-900) 48%, var(--navy-950) 100%); }
.tl-napp .napp-sec__bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 10%, transparent 75%); }
.tl-napp .napp__stage { background: radial-gradient(70% 55% at 50% 42%, rgba(59, 130, 246, 0.24), transparent 70%), linear-gradient(170deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)); }
.tl-napp .napp__stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 80%); }

/* riquadri informativi intorno ai dispositivi (due stati sovrapposti dove serve) */
.tl-as-pos { position: absolute; z-index: 5; display: grid; }
.tl-as-pos > .tl-chip { position: relative; grid-area: 1 / 1; }
.tl-as-pos--tr { right: 5%; top: 15%; }
.tl-as-pos--tl { left: 5%; top: 15%; }
.tl-as-pos--bl { left: 5%; bottom: 9%; }
.tl-as-pos--br { right: 5%; bottom: 9%; }
.tl-chip__ic--warn { background: #FEF3C7; color: #B45309; }
.tl-as-st--b { opacity: 0; transform: translateY(8px); }
.is-flipped .tl-as-st--a { opacity: 0; transform: translateY(-8px); transition: opacity .4s ease, transform .5s var(--ease); }
.is-flipped .tl-as-st--b { opacity: 1; transform: none; transition: opacity .5s ease .25s, transform .6s var(--ease) .25s; }

/* ---------- Telefono: app Timely ---------- */
.tl-ap.dev-phone { width: 248px; }
.tla { background: #F3F4F6; color: #1F2937; font-size: 4.3cqw; line-height: 1.3; letter-spacing: -0.01em; }
.tla__status { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; height: 3.3em; padding: 0.45em 1.75em 0 2.35em; background: #fff; color: #0F172A; }
.tla__status b { font-size: 1.02em; font-weight: 700; letter-spacing: 0; }
.tla__status--clear { background: transparent; color: #fff; }
.tla__sys { display: inline-flex; align-items: center; gap: 0.4em; }
.tla__sig { width: 1.25em; height: 0.8em; background: repeating-linear-gradient(90deg, currentColor 0 18%, transparent 18% 27%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.tla__sig--off { opacity: 0.28; }
.tla__bat { width: 1.75em; height: 0.85em; padding: 1.5px; border: 1px solid currentColor; border-radius: 0.28em; opacity: 0.9;
  background: linear-gradient(currentColor, currentColor) content-box; background-size: 78% 100%; background-repeat: no-repeat; }
.tla__nav { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; height: 3.5em; padding: 0 1.15em; background: #fff; border-bottom: 1px solid #E5E7EB; }
.tla__logo { display: inline-flex; align-items: center; gap: 0.32em; font-size: 1.3em; font-weight: 700; letter-spacing: -0.02em; color: #2563EB; }
.tla__logo .ic { width: 1.05em; height: 1.05em; stroke-width: 2.5; }
.tla__av { width: 2.45em; height: 2.45em; border-radius: 50%; display: grid; place-items: center; border: 2px solid #E5E7EB; background: #EFF6FF; color: #2563EB; font-size: 0.82em; font-weight: 700; }
.tla__off { flex-shrink: 0; display: flex; align-items: center; gap: 0.55em; max-height: 5em; padding: 0.6em 1.1em; overflow: hidden; background: #B45309; color: #fff; font-size: 0.78em; font-weight: 600; line-height: 1.3; }
.tla__off .ic { width: 1.3em; height: 1.3em; stroke-width: 2.4; }
.tla__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.9em; padding: 1em 1em 0; overflow: hidden; }
.tla__day small { display: block; font-size: 0.78em; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #6B7280; }
.tla__day b { display: block; font-size: 1.5em; letter-spacing: -0.02em; line-height: 1.15; }
.tla__card { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 0.9em; padding: 1.5em 1.15em 1.2em; border-radius: 1.5em; background: #fff; border: 1px solid #E5E7EB;
  box-shadow: 0 0.3em 1.2em rgba(0, 0, 0, 0.06); text-align: center; }
.tla__pills { display: inline-flex; align-items: center; gap: 0.4em; }
.tla__live, .tla__pend { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.4em 0.95em; border-radius: 2em; font-size: 0.9em; font-weight: 700; white-space: nowrap; }
.tla__live { background: #DCFCE7; color: #15803D; }
.tla__live i { width: 0.55em; height: 0.55em; border-radius: 50%; background: #16A34A; animation: tlaPulse 1.8s ease-out infinite; }
@keyframes tlaPulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); } 100% { box-shadow: 0 0 0 0.6em rgba(22, 163, 74, 0); } }
.tla__pend { max-width: 12em; overflow: hidden; background: #FEF3C7; color: #92400E; }
.tla__pend .ic { width: 1.15em; height: 1.15em; stroke-width: 2.4; flex-shrink: 0; }
.tla__timer { font-size: 3.8em; font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; color: #1F2937; }
.tla__proj { font-size: 1.1em; font-weight: 600; line-height: 1.25; color: #2563EB; }
.tla__since { margin-top: -0.65em; font-size: 0.88em; color: #6B7280; }
.tla__btn { width: 100%; height: 3.8em; display: flex; align-items: center; justify-content: center; gap: 0.5em; border-radius: 1.05em; background: #16A34A; color: #fff; font-size: 1.04em; font-weight: 700; }
.tla__btn .ic { width: 1.1em; height: 1.1em; }
.tla__btn--stop { background: #DC2626; box-shadow: 0 0.5em 1.2em rgba(220, 38, 38, 0.26); }
.tla__extra { align-self: center; display: inline-flex; align-items: center; gap: 0.45em; padding: 0.55em 1em; border-radius: 0.8em; border: 1px solid #E5E7EB; background: #fff; color: #6B7280; font-size: 0.85em; font-weight: 600; }
.tla__extra .ic { width: 1.15em; height: 1.15em; }
.tla__hist { flex-shrink: 0; padding: 1em; border-radius: 1.3em 1.3em 0 0; background: #fff; border: 1px solid #E5E7EB; border-bottom: 0; }
.tla__hist small { display: block; font-size: 0.74em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6B7280; }
.tla__dnav { margin-top: 0.7em; display: flex; align-items: center; gap: 0.5em; }
.tla__dnav > i { width: 2.3em; height: 2.3em; border-radius: 0.7em; display: grid; place-items: center; background: #F1F5F9; color: #1F2937; }
.tla__dnav > i .ic { width: 1.1em; height: 1.1em; }
.tla__dnav > span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4em; height: 2.3em; border-radius: 0.7em; border: 1px solid #E5E7EB; font-size: 0.86em; font-weight: 600; }
.tla__dnav > span .ic { width: 1.15em; height: 1.15em; color: #6B7280; }
.tla__tabs { flex-shrink: 0; margin-top: auto; display: flex; justify-content: space-around; padding: 0.55em 0.4em 1.75em; background: #fff; border-top: 1px solid #E5E7EB; }
.tla__tabs > span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.25em; min-width: 4.5em; font-size: 0.72em; font-weight: 500; color: #94A3B8; }
.tla__tabs .ic { width: 2.2em; height: 2.2em; stroke-width: 1.7; }
.tla__tabs .on { color: #2563EB; }
.tla__tabs .on .ic { stroke-width: 2.3; }
.tla__tabs .on::before { content: ""; position: absolute; top: -0.8em; width: 2.8em; height: 0.28em; border-radius: 0 0 0.3em 0.3em; background: #2563EB; }

/* senza rete: la striscia arancione e il badge spariscono quando torna il segnale */
.tl-as-off.is-flipped .tla__off { max-height: 0; padding-top: 0; padding-bottom: 0; transition: max-height .6s var(--ease), padding .6s var(--ease); }
.tl-as-off.is-flipped .tla__pend { max-width: 0; padding-left: 0; padding-right: 0; margin-left: -0.4em; opacity: 0; transition: max-width .5s var(--ease) .1s, padding .5s var(--ease) .1s, margin .5s var(--ease) .1s, opacity .3s ease; }
.tl-as-off.is-flipped .tla__sig--off { opacity: 1; transition: opacity .4s ease; }

/* ---------- Apple Watch ---------- */
.tl-as-watches { display: flex; align-items: center; gap: clamp(12px, 2.6vw, 30px); }
.tl-as-watches .tl-aw--start { width: 172px; }
.tl-as-watches .tl-aw--run { width: 210px; }
.tl-as-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--p-3); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); flex-shrink: 0; }
.tl-as-arrow .ic { width: 18px; height: 18px; }
.tlw { gap: 0.25em; padding: 0.75em 0.55em 0.5em; font-size: 6.6cqw; line-height: 1.2; }
.tlw__top { flex-shrink: 0; display: flex; align-items: center; min-height: 1.3em; padding: 0 0.55em; font-size: 0.9em; font-weight: 600; }
.tlw__top b { margin-left: auto; font-variant-numeric: tabular-nums; }
.tlw__back { color: #3B82F6; font-size: 1.35em; line-height: 1; font-weight: 500; }
.tlw__proj { display: flex; align-items: center; justify-content: center; gap: 0.35em; padding: 0 0.3em; font-size: 0.92em; font-weight: 600; white-space: nowrap; }
.tlw__proj span { overflow: hidden; text-overflow: ellipsis; }
.tlw__proj i { width: 0.5em; height: 0.5em; border-radius: 50%; background: #16A34A; flex-shrink: 0; }
.tlw__timer { text-align: center; font-size: 2.7em; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tlw__since { text-align: center; font-size: 0.78em; color: #8E8E93; }
.tlw__stop { flex: 1; margin-top: 0.15em; display: flex; align-items: center; justify-content: center; gap: 0.35em; border-radius: 1.9em; background: linear-gradient(180deg, #EF4444, #C81E1E); font-size: 1.15em; font-weight: 700; }
.tlw__stop .ic { width: 1.05em; height: 1.05em; }
.tlw__name { padding: 0 0.3em; text-align: center; font-size: 1.1em; font-weight: 700; line-height: 1.2; }
.tlw__go { position: relative; flex: 1; margin-top: 0.3em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15em; border-radius: 2.2em; background: linear-gradient(180deg, #22C55E, #15803D); }
.tlw__go .ic { width: 3.2em; height: 3.2em; }
.tlw__go small { font-size: 0.8em; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.tlw__go::after { content: ""; position: absolute; left: 50%; top: 42%; width: 4.4em; height: 4.4em; margin: -2.2em 0 0 -2.2em; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.7); opacity: 0; animation: tlwTap 2.8s var(--ease) infinite; }
@keyframes tlwTap { 0%, 55% { opacity: 0; transform: scale(.6); } 62% { opacity: .9; } 100% { opacity: 0; transform: scale(1.5); } }

/* ---------- Widget: schermata Home e schermata di blocco ---------- */
.tlh { background: radial-gradient(120% 70% at 15% 0%, #5B7CFA, transparent 60%), radial-gradient(100% 60% at 100% 100%, #F59E7A, transparent 62%), linear-gradient(160deg, #1E3A8A, #312E81);
  color: #fff; font-size: 4.3cqw; line-height: 1.25; }
.tlh__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2em 1em; padding: 1.1em 1.35em 0; }
.tlg { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0.2em; min-height: 10.6em; padding: 1.05em 1.2em 1em; border-radius: 1.9em; background: rgba(246, 247, 251, 0.95); color: #1C1C1E;
  box-shadow: 0 0.6em 1.6em rgba(10, 20, 60, 0.28); }
.tlg__head { display: flex; align-items: center; gap: 0.35em; font-size: 0.92em; font-weight: 700; color: #2563EB; }
.tlg__head .ic { width: 1.05em; height: 1.05em; stroke-width: 2.6; }
.tlg__head i { margin-left: auto; width: 0.6em; height: 0.6em; border-radius: 50%; background: #22C55E; }
.tlg__proj { font-size: 0.92em; font-weight: 600; }
.tlg__timer { font-size: 2.4em; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tlg__foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 0.84em; }
.tlg__foot span { color: #8A8A8E; }
.tlg__hi { font-size: 0.76em; color: #8A8A8E; }
.tlh__app { display: flex; flex-direction: column; align-items: center; gap: 0.35em; min-width: 0; font-size: 0.68em; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.tlh__app i, .tlh__app img { display: block; width: 100%; aspect-ratio: 1; border-radius: 22.5%; }
.tlh__app i { background: linear-gradient(160deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.14)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.tlh__app img { box-shadow: 0 0.3em 0.9em rgba(0, 0, 0, 0.3); }
.tlh__dock { margin: auto 0.75em 1.45em; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1em; padding: 0.85em; border-radius: 2em;
  background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tlh__dock i { aspect-ratio: 1; border-radius: 22.5%; background: rgba(255, 255, 255, 0.32); }
.tl-as-lock { position: absolute; right: 5%; bottom: 12%; z-index: 5; width: 224px; padding: 16px 16px 18px; border-radius: 24px; color: #fff; text-align: center;
  background: radial-gradient(120% 90% at 10% 0%, #5B7CFA, transparent 60%), radial-gradient(100% 70% at 100% 100%, rgba(245, 158, 122, 0.6), transparent 62%), linear-gradient(160deg, #1E3A8A, #312E81);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.tl-as-lock small { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.72; }
.tl-as-lock__time { display: block; margin-top: 6px; font-size: 2.7rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.tl-as-lock__w { margin-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 12px; border-radius: 14px; text-align: left;
  background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tl-as-lock__w b { display: flex; align-items: center; gap: 6px; max-width: 100%; font-size: 0.84rem; white-space: nowrap; }
.tl-as-lock__w b span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tl-as-lock__w b .ic { width: 14px; height: 14px; stroke-width: 2.6; flex-shrink: 0; }
.tl-as-lock__w > span { font-size: 1.02rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Fotocamera e caricamento su Drive ---------- */
.tlc { background: #000; color: #fff; font-size: 4.3cqw; }
.tlc .tla__status { background: #000; color: #fff; }
.tlc__top { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0.35em 1.1em 0.75em; }
.tlc__btn { width: 2.5em; height: 2.5em; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); }
.tlc__btn .ic { width: 1.2em; height: 1.2em; }
.tlc__btn--on { color: #FACC15; }
.tlc__mode { display: inline-flex; padding: 0.2em; border-radius: 2em; background: rgba(255, 255, 255, 0.14); font-size: 0.84em; font-weight: 600; }
.tlc__mode span { padding: 0.35em 0.95em; border-radius: 2em; color: rgba(255, 255, 255, 0.75); }
.tlc__mode .on { background: #fff; color: #111; }
.tlc__view { position: relative; flex: 1; overflow: hidden; background: linear-gradient(180deg, #9EC2E6 0%, #D5E5F2 50%, #C4B396 50%, #A8916F 100%); }
.tlc__crane { position: absolute; right: 12%; top: 9%; width: 48%; height: 48%; border-top: 0.3em solid #E8912F; border-right: 0.35em solid #E8912F; }
.tlc__crane::after { content: ""; position: absolute; left: 22%; top: 0; width: 1px; height: 38%; background: #4B5563; }
.tlc__bld { position: absolute; left: 12%; right: 26%; bottom: 46%; height: 33%; background-color: #E8DFD0;
  background-image: repeating-linear-gradient(180deg, #E8DFD0 0 14%, transparent 14% 30%), repeating-linear-gradient(90deg, #E8DFD0 0 11%, #5A6E86 11% 21%); box-shadow: 0 0.2em 0.6em rgba(0, 0, 0, 0.15); }
.tlc__scaf { position: absolute; left: 50%; right: 22%; bottom: 46%; height: 40%; opacity: 0.9;
  background-image: repeating-linear-gradient(90deg, transparent 0 22%, #8B97A5 22% 26%), repeating-linear-gradient(180deg, transparent 0 24%, #E8912F 24% 29%); }
.tlc__focus { position: absolute; left: 34%; top: 30%; width: 32%; aspect-ratio: 1; border: 1px solid #FACC15; }
.tlc__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.tl-as-cam.is-flipped .tlc__flash { animation: tlcFlash .6s ease-out; }
@keyframes tlcFlash { 0% { opacity: 0.9; } 100% { opacity: 0; } }
.tlc__up { position: absolute; left: 0.8em; right: 0.8em; bottom: 0.8em; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.1em 0.7em; padding: 0.75em 0.85em 0.8em;
  border-radius: 1.2em; background: rgba(255, 255, 255, 0.96); color: #1F2937; box-shadow: 0 0.6em 1.5em rgba(0, 0, 0, 0.3); }
.tlc__up-ic { grid-row: span 2; width: 2.4em; height: 2.4em; border-radius: 0.7em; display: grid; place-items: center; background: #EFF6FF; color: #2563EB; }
.tlc__up-ic .ic { width: 1.25em; height: 1.25em; }
.tlc__up b { font-size: 0.88em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlc__st { display: grid; font-size: 0.76em; color: #6B7280; }
.tlc__st > span { grid-area: 1 / 1; }
.tlc__s2 { opacity: 0; }
.tlc__bar { grid-column: 1 / -1; height: 0.35em; margin-top: 0.5em; border-radius: 1em; background: #E5E7EB; overflow: hidden; }
.tlc__bar i { display: block; height: 100%; border-radius: inherit; background: #2563EB; transform: scaleX(0.08); transform-origin: left; }
.tl-as-cam.is-flipped .tlc__bar i { transform: scaleX(1); transition: transform 1.8s cubic-bezier(.4, 0, .2, 1) .3s; }
.tl-as-cam.is-flipped .tlc__s1 { opacity: 0; transition: opacity .3s ease 2.1s; }
.tl-as-cam.is-flipped .tlc__s2 { opacity: 1; color: #15803D; font-weight: 600; transition: opacity .3s ease 2.2s; }
.tlc__zoom { flex-shrink: 0; display: flex; justify-content: center; gap: 0.5em; padding: 0.8em 0 0.5em; font-size: 0.78em; font-weight: 700; }
.tlc__zoom span { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); }
.tlc__zoom .on { color: #FACC15; background: rgba(255, 255, 255, 0.2); }
.tlc__bar2 { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0.6em 1.6em 2em; }
.tlc__thumb { width: 2.9em; height: 2.9em; border-radius: 0.6em; border: 2px solid #fff; background: linear-gradient(180deg, #9EC2E6 0 45%, #C4B396 45%); }
.tlc__shutter { width: 4.6em; height: 4.6em; border-radius: 50%; border: 0.28em solid #fff; box-shadow: inset 0 0 0 0.22em #000; background: #fff; }
.tlc__flip { width: 2.9em; height: 2.9em; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); }
.tlc__flip .ic { width: 1.3em; height: 1.3em; }

/* ---------- iPad: area amministratore ---------- */
.tl-at.dev-tablet { width: min(600px, 100%); }
.tld { display: grid; grid-template-columns: 12.4em minmax(0, 1fr); height: 100%; background: #F8FAFC; color: #1F2937; font-size: 1.62cqw; line-height: 1.3; }
.tld__side { display: flex; flex-direction: column; gap: 0.2em; padding: 1.4em 0.75em; background: #fff; border-right: 1px solid #E5E7EB; }
.tld__logo { display: flex; align-items: center; gap: 0.35em; margin: 0 0 1em 0.45em; font-size: 1.45em; font-weight: 700; letter-spacing: -0.02em; color: #2563EB; }
.tld__logo .ic { width: 1em; height: 1em; stroke-width: 2.6; }
.tld__side > span:not(.tld__logo) { display: flex; align-items: center; gap: 0.7em; padding: 0.6em 0.75em; border-radius: 0.6em; font-size: 0.95em; font-weight: 500; color: #475569; }
.tld__side .on { background: #EFF6FF; color: #2563EB; font-weight: 600 !important; }
.tld__side .ic { width: 1.15em; height: 1.15em; }
.tld__main { min-width: 0; display: flex; flex-direction: column; gap: 1.25em; padding: 1.8em 2em; overflow: hidden; }
.tld__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1em; }
.tld__head b { display: block; font-size: 1.9em; letter-spacing: -0.03em; line-height: 1.1; }
.tld__head small { display: block; margin-top: 0.15em; font-size: 1em; color: #64748B; }
.tld__new { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.7em 1.1em; border-radius: 0.6em; background: #2563EB; color: #fff; font-size: 0.95em; font-weight: 600; white-space: nowrap; }
.tld__new .ic { width: 1.1em; height: 1.1em; }
.tld__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em; }
.tld__kpis > span { display: flex; align-items: center; gap: 0.8em; padding: 1em 1.1em; border-radius: 0.9em; background: #fff; border: 1px solid #E5E7EB; }
.tld__kpis i { width: 2.6em; height: 2.6em; border-radius: 0.7em; display: grid; place-items: center; flex-shrink: 0; }
.tld__kpis i .ic { width: 1.25em; height: 1.25em; }
.tld__kpis .b { background: #EFF6FF; color: #2563EB; } .tld__kpis .g { background: #DCFCE7; color: #16A34A; } .tld__kpis .o { background: #FFEDD5; color: #EA580C; }
.tld__kpis b { display: block; font-size: 1.4em; letter-spacing: -0.02em; white-space: nowrap; }
.tld__kpis small { display: block; font-size: 0.8em; color: #64748B; }
.tld__h2 { font-size: 1.1em; font-weight: 700; }
.tld__table { border-radius: 0.9em; background: #fff; border: 1px solid #E5E7EB; overflow: hidden; }
.tld__tr { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.15fr) minmax(0, 0.75fr); align-items: center; gap: 1em; padding: 0.8em 1.2em; border-top: 1px solid #F1F5F9; font-size: 0.95em; }
.tld__th { border-top: 0; background: #F8FAFC; font-size: 0.7em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #64748B; }
.tld__tr b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tld__tr small { display: block; font-size: 0.8em; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tld__bar { display: flex; align-items: center; gap: 0.6em; font-size: 0.82em; font-weight: 600; }
.tld__bar i { position: relative; flex: 1; height: 0.5em; border-radius: 1em; background: #EEF2F7; overflow: hidden; }
.tld__bar i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--w); border-radius: inherit; background: #2563EB; }
.tld__live { display: flex; align-items: center; }
.tld__live i { position: relative; width: 2.2em; height: 2.2em; margin-left: -0.5em; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; background: #DCFCE7; color: #15803D; font-style: normal; font-size: 0.72em; font-weight: 700; }
.tld__live i:first-child { margin-left: 0; }
.tld__live i::after { content: ""; position: absolute; right: -0.15em; bottom: -0.15em; width: 0.65em; height: 0.65em; border-radius: 50%; background: #22C55E; border: 1.5px solid #fff; }
.tld__live em { font-style: normal; color: #94A3B8; }

@container napp (max-width: 820px) {
  .tl-as-pos, .tl-as-lock { display: none; }
}
@media (max-width: 720px) {
  .tl-ap.dev-phone { width: min(240px, 66vw); }
  .tl-as-watches .tl-aw--start { width: 118px; }
  .tl-as-watches .tl-aw--run { width: 138px; }
  .tl-as-arrow { width: 30px; height: 30px; }
}
