*{box-sizing:border-box}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:linear-gradient(180deg,#f7fbff,#edf3fa);
  color:#102033;
  padding:18px 14px 96px;
}
a{color:inherit;text-decoration:none}
.wrap{max-width:920px;margin:0 auto;padding-top:4px}
.top{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  padding:4px 0;
}
.logo{
  width:48px;height:48px;border-radius:16px;
  background:linear-gradient(135deg,#1769ff,#20b486);
  color:#fff;display:grid;place-items:center;
  font-size:25px;font-weight:900;
  box-shadow:0 10px 24px rgba(23,105,255,.22);
}
.top h1{margin:0;font-size:22px;line-height:1.05}
.top p{margin:3px 0 0;color:#64748b;font-size:13px}
.pill{
  margin-left:auto;
  background:#fff;
  border:1px solid #dce6f2;
  border-radius:999px;
  padding:7px 11px;
  font-size:12px;
  font-weight:900;
  color:#64748b;
}
.hero{
  background:linear-gradient(135deg,#1769ff,#12805c);
  color:#fff;
  border-radius:28px;
  padding:24px 22px;
  box-shadow:0 18px 42px rgba(20,35,60,.16);
  margin-top:4px;
}
.hero small{
  display:inline-block;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  padding:7px 10px;
  font-weight:850;
  margin-bottom:12px;
}
.hero h2{
  margin:0;
  font-size:34px;
  line-height:1.03;
  letter-spacing:-.04em;
}
.hero p{
  margin:12px 0 0;
  color:rgba(255,255,255,.92);
  font-size:16px;
}
.notice{
  margin-top:14px;
  background:#fff7df;
  border:1px solid #f0d58b;
  border-radius:18px;
  padding:13px;
  color:#604400;
}
.grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-top:14px;
}
.card{
  background:#fff;
  border:1px solid #dce6f2;
  border-radius:22px;
  padding:17px;
  min-height:125px;
  box-shadow:0 8px 24px rgba(20,35,60,.07);
}
.card h3{margin:0;font-size:18px}
.card p{margin:8px 0 12px;color:#64748b;font-size:14px}
.card span{color:#1769ff;font-weight:900}
.bottom{
  position:fixed;
  left:0;right:0;bottom:0;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:6px;
  padding:9px 10px;
  background:rgba(255,255,255,.94);
  border-top:1px solid #dce6f2;
  backdrop-filter:blur(16px);
}
.bottom a{
  min-height:54px;
  border-radius:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#64748b;
  font-size:20px;
  font-weight:900;
}
.bottom small{font-size:11px;margin-top:2px}
.bottom .active{background:#edf4ff;color:#0f4ec7}
@media(max-width:720px){
  body{padding:14px 12px 92px}
  .grid{grid-template-columns:1fr}
  .hero h2{font-size:29px}
}

/* APP-LAB CARD POLISH V1 */
.card{
  position:relative;
  overflow:hidden;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:after{
  content:"";
  position:absolute;
  right:-28px;
  top:-28px;
  width:82px;
  height:82px;
  border-radius:50%;
  background:rgba(23,105,255,.07);
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 32px rgba(20,35,60,.11);
  border-color:#c9d8ea;
}
.card h3{
  display:flex;
  align-items:center;
  gap:6px;
  letter-spacing:-.02em;
}
.card span{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  background:#edf4ff;
  border-radius:999px;
  padding:7px 10px;
  color:#0f4ec7;
  font-size:13px;
}
.notice{
  box-shadow:0 8px 20px rgba(120,80,0,.06);
}


/* APP-LAB SERVICE CARD V1 */
.app-service-card{
  margin-top:14px;
  background:#ffffff;
  border:1px solid #dce6f2;
  border-radius:24px;
  padding:18px;
  box-shadow:0 10px 28px rgba(20,35,60,.08);
  position:relative;
  overflow:hidden;
}
.app-service-card:after{
  content:"";
  position:absolute;
  right:-34px;
  top:-34px;
  width:104px;
  height:104px;
  border-radius:50%;
  background:rgba(23,105,255,.07);
}
.app-card-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#edf4ff;
  color:#0f4ec7;
  border-radius:999px;
  padding:7px 11px;
  font-size:13px;
  font-weight:900;
  margin-bottom:10px;
}
.app-service-card h3{
  margin:0;
  font-size:24px;
  line-height:1.1;
  letter-spacing:-.03em;
  color:#1f2937;
}
.app-card-main{
  margin:9px 0 0;
  color:#475569;
  font-size:16px;
  line-height:1.35;
}
.app-card-note{
  margin:13px 0 0;
  color:#7c5a00;
  font-size:13px;
  line-height:1.35;
  background:#fff7df;
  border:1px solid #f0d58b;
  border-radius:16px;
  padding:10px 12px;
}
.app-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:14px;
}
.app-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  background:#edf4ff;
  color:#0f4ec7;
  font-weight:900;
  font-size:14px;
  text-decoration:none;
  border:1px solid #d8e6ff;
}
.app-btn.primary{
  background:#1769ff;
  color:#ffffff;
  border-color:#1769ff;
}
.app-btn.soft{
  background:#f8fafc;
  color:#475569;
  border-color:#dce6f2;
}
.pharmacy-card{
  border-color:#cfe5da;
}
.pharmacy-card .app-card-kicker{
  background:#ecfdf5;
  color:#047857;
}
.pharmacy-card:after{
  background:rgba(4,120,87,.08);
}
.app-service-card.warning{
  border-color:#f0d58b;
}
@media(max-width:720px){
  .app-service-card{
    padding:16px;
    border-radius:22px;
  }
  .app-service-card h3{
    font-size:21px;
  }
  .app-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .app-btn{
    width:100%;
  }
}


/* APP-LAB POLISH V2 */
body{
  padding-bottom:104px;
}

.wrap{
  max-width:860px;
}

.top{
  margin-bottom:10px;
}

.logo{
  width:44px;
  height:44px;
  border-radius:14px;
}

.top h1{
  font-size:22px;
  line-height:1.05;
}

.top p{
  margin-top:3px;
}

.hero{
  border-radius:24px;
  padding:22px 20px;
  margin-top:8px;
}

.hero small{
  padding:6px 10px;
  margin-bottom:11px;
  font-size:12px;
}

.hero h2{
  font-size:30px;
  line-height:1.05;
}

.hero p{
  font-size:15px;
  line-height:1.35;
  max-width:760px;
}

.notice{
  border-radius:17px;
  padding:13px 14px;
  line-height:1.35;
}

.grid{
  gap:10px;
}

.card{
  min-height:112px;
  border-radius:20px;
  padding:15px;
}

.card h3{
  font-size:17px;
}

.card p{
  line-height:1.35;
}

.card span{
  margin-top:auto;
}

.app-service-card{
  border-radius:22px;
  padding:17px;
}

.app-service-card h3{
  font-size:22px;
}

.app-card-main{
  font-size:15px;
}

.app-card-note{
  font-size:12.5px;
  padding:9px 11px;
}

.app-actions{
  gap:8px;
}

.app-btn{
  min-height:40px;
  padding:0 13px;
}

.bottom{
  padding:8px 10px;
}

.bottom a{
  min-height:50px;
  border-radius:15px;
}

@media(min-width:980px){
  .wrap{
    max-width:820px;
  }
  .grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:720px){
  body{
    padding:12px 12px 96px;
  }

  .wrap{
    max-width:100%;
  }

  .top{
    gap:10px;
  }

  .logo{
    width:42px;
    height:42px;
  }

  .top h1{
    font-size:20px;
  }

  .pill{
    padding:6px 9px;
    font-size:11px;
  }

  .hero{
    border-radius:22px;
    padding:20px 18px;
  }

  .hero h2{
    font-size:27px;
  }

  .hero p{
    font-size:14.5px;
  }

  .notice{
    font-size:13.5px;
  }

  .card{
    min-height:96px;
    padding:14px;
  }

  .card h3{
    font-size:16.5px;
  }

  .card p{
    font-size:13px;
  }

  .app-service-card{
    padding:15px;
  }

  .app-service-card h3{
    font-size:21px;
  }

  .bottom{
    gap:5px;
    padding:7px 7px;
  }

  .bottom a{
    min-height:49px;
    font-size:19px;
  }

  .bottom small{
    font-size:10px;
  }
}

@media(max-width:390px){
  .hero h2{
    font-size:25px;
  }

  .top p{
    font-size:11.5px;
  }

  .card{
    min-height:92px;
  }

  .bottom small{
    font-size:9.5px;
  }
}

/* APP_EVENTO_LABEL_STYLE_V1 */
.app-evento-label{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin-bottom:8px;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(37,99,235,.09);
  color:#0f4fc4;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
}


/* Box installazione app - Home */
.install-app-box{
  max-width:760px;
  margin:20px 0 28px 0;
  padding:16px 17px;
  border-radius:22px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 12px 28px rgba(0,0,0,.18);
}

.install-app-title{
  font-size:1.12rem;
  font-weight:850;
  margin-bottom:7px;
}

.install-app-sub{
  font-size:.96rem;
  line-height:1.5;
  opacity:.96;
  margin-bottom:12px;
}

.install-app-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
}

.install-app-card{
  padding:12px 13px;
  border-radius:15px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.13);
  line-height:1.45;
  font-size:.95rem;
}

@media(max-width:640px){
  .install-app-box{
    margin:16px 0 22px 0;
    padding:14px;
  }
  .install-app-title{
    font-size:1.04rem;
  }
  .install-app-sub,
  .install-app-card{
    font-size:.92rem;
  }
}

/* Box installazione app compatto */
.install-app-mini{
  max-width:760px;
  margin:12px 0 20px 0;
  border-radius:16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  overflow:hidden;
}

.install-app-mini summary{
  cursor:pointer;
  list-style:none;
  padding:11px 14px;
  font-weight:850;
  font-size:.98rem;
  line-height:1.25;
}

.install-app-mini summary::-webkit-details-marker{
  display:none;
}

.install-app-mini summary::after{
  content:" apri";
  font-size:.82rem;
  font-weight:700;
  opacity:.72;
  margin-left:6px;
}

.install-app-mini[open] summary::after{
  content:" chiudi";
}

.install-app-mini-body{
  padding:0 14px 13px 14px;
  font-size:.92rem;
  line-height:1.42;
  opacity:.95;
}

.install-app-mini-body p{
  margin:0 0 10px 0;
}

.install-app-mini-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:9px;
}

.install-app-mini-grid > div{
  padding:10px 11px;
  border-radius:13px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}

@media(max-width:640px){
  .install-app-mini{
    margin:10px 0 15px 0;
    border-radius:14px;
  }
  .install-app-mini summary{
    padding:10px 12px;
    font-size:.94rem;
  }
  .install-app-mini-body{
    padding:0 12px 12px 12px;
    font-size:.88rem;
  }
}

/* PI feedback banner condiviso */
.pi-feedback-banner{
  margin:22px 0 18px 0;
  padding:14px;
  border-radius:18px;
  background:linear-gradient(135deg, rgba(59,130,246,.18), rgba(20,184,166,.14));
  border:1px solid rgba(255,255,255,.16);
  display:flex;
  align-items:center;
  gap:12px;
  box-shadow:0 12px 28px rgba(0,0,0,.16);
}

.pi-feedback-banner-icon{
  width:42px;
  height:42px;
  border-radius:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.15);
  font-size:1.25rem;
  flex:0 0 auto;
}

.pi-feedback-banner-text{
  flex:1;
  min-width:0;
  line-height:1.35;
}

.pi-feedback-banner-text strong{
  display:block;
  font-size:1rem;
  font-weight:900;
}

.pi-feedback-banner-text span{
  display:block;
  font-size:.9rem;
  opacity:.88;
  margin-top:2px;
}

.pi-feedback-banner-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:.88rem;
  white-space:nowrap;
}

@media(max-width:640px){
  .pi-feedback-banner{
    margin:18px 0 14px 0;
    padding:13px;
    align-items:flex-start;
  }

  .pi-feedback-banner-icon{
    width:38px;
    height:38px;
    border-radius:13px;
  }

  .pi-feedback-banner{
    flex-wrap:wrap;
  }

  .pi-feedback-banner-text{
    flex:1 1 calc(100% - 52px);
  }

  .pi-feedback-banner-btn{
    width:100%;
    margin-top:2px;
  }
}

/* STEP 51B - Logo reale App al posto della P testuale */
.logo{
  background-image:url('/ps/app/icons/icon-192.png?v=51B') !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  color:transparent !important;
  font-size:0 !important;
  text-indent:-9999px !important;
  overflow:hidden !important;
}

.logo::before,
.logo::after{
  content:none !important;
}

/* METEO CHIARO APP 3E */
.mini-meteo-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}
.mini-meteo-cell{
  border:1px solid rgba(148,163,184,.35);
  border-radius:16px;
  padding:11px 12px;
  background:rgba(255,255,255,.72);
}
.mini-meteo-cell small{
  display:block;
  font-size:12px;
  color:#64748b;
  font-weight:800;
  margin-bottom:4px;
}
.mini-meteo-cell strong{
  display:block;
  color:#0f172a;
  font-size:16px;
  font-weight:950;
}
@media(max-width:420px){
  .mini-meteo-grid{
    grid-template-columns:1fr;
  }
}
/* /METEO CHIARO APP 3E */

/* METEO CHIARO APP 3E-BIS */
.meteo-app-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-top:4px;
}
.meteo-app-head h3{
  margin:0 0 6px;
  font-size:24px;
  line-height:1.1;
}
.meteo-app-head p{
  margin:0;
  color:#475569;
  line-height:1.35;
}
.meteo-metrics-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:18px 0;
}
.meteo-metric{
  display:flex;
  gap:10px;
  align-items:center;
  border:1px solid rgba(148,163,184,.35);
  border-radius:18px;
  padding:13px;
  background:rgba(255,255,255,.82);
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.meteo-metric-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#eef6ff;
  font-size:19px;
}
.meteo-metric small{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:900;
  margin-bottom:3px;
}
.meteo-metric strong{
  display:block;
  color:#0f172a;
  font-size:18px;
  font-weight:1000;
  line-height:1.1;
}
.meteo-alert-box{
  margin:12px 0 16px;
  border-radius:18px;
  padding:14px;
  border:1px solid rgba(148,163,184,.38);
  background:#f8fafc;
}
.meteo-alert-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
}
.meteo-alert-title strong{
  font-size:16px;
}
.meteo-alert-box p{
  margin:0;
  color:#334155;
  font-weight:800;
}
.meteo-alert-box small{
  display:block;
  margin-top:6px;
  color:#64748b;
  font-weight:700;
}
.meteo-alert-green{
  background:#f0fdf4;
  border-color:#bbf7d0;
}
.meteo-alert-yellow{
  background:#fffbeb;
  border-color:#fde68a;
}
.meteo-alert-orange{
  background:#fff7ed;
  border-color:#fed7aa;
}
.meteo-alert-red{
  background:#fef2f2;
  border-color:#fecaca;
}
@media(max-width:520px){
  .meteo-metrics-grid{
    grid-template-columns:1fr;
  }
  .meteo-app-head h3{
    font-size:22px;
  }
}
/* /METEO CHIARO APP 3E-BIS */

/* METEO CHIARO APP 3E-TER - FIX DEFINITIVO */
#meteo-dati .meteo-app-head{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:14px !important;
  margin:4px 0 14px !important;
}

#meteo-dati .meteo-app-head h3{
  margin:0 0 8px !important;
  font-size:25px !important;
  line-height:1.1 !important;
  color:#0f172a !important;
}

#meteo-dati .meteo-app-head p{
  margin:0 !important;
  color:#334155 !important;
  line-height:1.35 !important;
  font-size:15px !important;
}

#meteo-dati .meteo-metrics-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
  margin:18px 0 !important;
}

#meteo-dati .meteo-metric{
  display:flex !important;
  align-items:center !important;
  gap:11px !important;
  min-height:72px !important;
  padding:13px !important;
  border:1px solid rgba(148,163,184,.42) !important;
  border-radius:18px !important;
  background:#ffffff !important;
  box-shadow:0 8px 18px rgba(15,23,42,.05) !important;
}

#meteo-dati .meteo-metric-icon{
  width:42px !important;
  height:42px !important;
  flex:0 0 42px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:15px !important;
  background:#eef6ff !important;
  font-size:20px !important;
  line-height:1 !important;
}

#meteo-dati .meteo-metric small{
  display:block !important;
  margin:0 0 5px !important;
  color:#64748b !important;
  font-size:12px !important;
  font-weight:900 !important;
  line-height:1.1 !important;
}

#meteo-dati .meteo-metric strong{
  display:block !important;
  color:#0f172a !important;
  font-size:19px !important;
  font-weight:1000 !important;
  line-height:1.1 !important;
}

#meteo-dati .meteo-alert-box{
  margin:14px 0 16px !important;
  padding:15px !important;
  border-radius:18px !important;
  border:1px solid rgba(148,163,184,.4) !important;
  background:#f8fafc !important;
}

#meteo-dati .meteo-alert-title{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  margin-bottom:7px !important;
}

#meteo-dati .meteo-alert-title strong{
  font-size:17px !important;
  color:#0f172a !important;
}

#meteo-dati .meteo-alert-box p{
  margin:0 !important;
  color:#334155 !important;
  font-weight:850 !important;
  line-height:1.35 !important;
}

#meteo-dati .meteo-alert-box small{
  display:block !important;
  margin-top:7px !important;
  color:#64748b !important;
  font-weight:750 !important;
}

#meteo-dati .meteo-alert-green{
  background:#f0fdf4 !important;
  border-color:#bbf7d0 !important;
}

#meteo-dati .meteo-alert-yellow{
  background:#fffbeb !important;
  border-color:#fde68a !important;
}

#meteo-dati .meteo-alert-orange{
  background:#fff7ed !important;
  border-color:#fed7aa !important;
}

#meteo-dati .meteo-alert-red{
  background:#fef2f2 !important;
  border-color:#fecaca !important;
}

@media(max-width:520px){
  #meteo-dati .meteo-metrics-grid{
    grid-template-columns:1fr !important;
  }
}
/* /METEO CHIARO APP 3E-TER */
