/* BigData staging V12: contextual lead conversion and mobile app-style dock */
/* Radio 24: put the official artwork within a padded white card. */
.radio-logo-card{
  display:flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid #cce0e9;border-radius:15px;
  padding:14px 13px;box-sizing:border-box;max-width:100%;width:204px;
  box-shadow:0 11px 28px rgba(4,51,78,.13);
}
.radio-logo-card .radio-official-logo{
  display:block;border:0;border-radius:0;box-shadow:none;background:transparent;
  padding:0;max-width:100%;width:100%;height:auto;object-fit:contain;
}
/* Context-aware desktop banner: direct jump to the current page form. */
.scroll-lead{border-radius:15px;box-shadow:0 18px 54px rgba(0,12,27,.26)}
.scroll-lead-inner{gap:16px}
.scroll-lead-description{min-width:0;flex:1}
.scroll-lead-description strong{display:block;line-height:1.4}
.scroll-lead-btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;
  text-decoration:none;border-radius:11px;min-height:46px;
  box-shadow:0 7px 18px rgba(31,183,233,.2);transition:transform .2s,background-color .2s,box-shadow .2s}
.scroll-lead-btn:hover{transform:translateY(-2px);background:#85e5fb;box-shadow:0 11px 25px rgba(20,173,222,.24)}
.scroll-lead-btn:focus-visible,.mobile-dock-item:focus-visible{outline:3px solid #00bded;outline-offset:3px}
#richiedi,#richiedi-database,#richiedi-proposta{scroll-margin-top:104px}
/* Visible only on smartphone widths. */
.mobile-contact-dock{display:none}
@media(max-width:767px){
  html{scroll-padding-top:90px;scroll-padding-bottom:95px}
  body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  #richiedi,#richiedi-database,#richiedi-proposta{scroll-margin-top:85px}
  /* No quick rail / off-canvas drawer / desktop banner on mobile. */
  .quick-rail,.drawer-backdrop,.lead-drawer,.scroll-lead{display:none!important}
  .mobile-contact-dock{
    position:fixed;display:grid;grid-template-columns:1.45fr 1fr 1fr;
    left:0;right:0;bottom:0;z-index:65;
    padding:8px max(12px,env(safe-area-inset-left,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-right,0px));
    gap:9px;align-items:stretch;background:rgba(6,26,43,.97);
    border-top:1px solid rgba(102,204,241,.3);
    box-shadow:0 -8px 36px rgba(0,16,29,.22);backdrop-filter:blur(16px);
  }
  .mobile-dock-item{
    display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;
    min-height:54px;text-decoration:none;color:#e2f6ff;
    font-size:clamp(.73rem,3vw,.86rem);font-weight:800;letter-spacing:.008em;
    border:1px solid rgba(165,216,240,.27);border-radius:12px;background:rgba(255,255,255,.06);
  }
  .mobile-dock-item svg{width:20px;height:20px;flex:0 0 auto;stroke-width:1.9}
  .mobile-dock-primary{background:#20b8ed;border-color:#20b8ed;color:#071e30;
    box-shadow:0 5px 16px rgba(7,158,209,.28)}
  .mobile-dock-item:active{transform:scale(.98)}
  /* Cookie preferences remain usable and never hidden under the dock. */
  .cookie-widget{bottom:calc(85px + env(safe-area-inset-bottom,0px));
    max-height:calc(100dvh - 115px - env(safe-area-inset-bottom,0px));overflow-y:auto}
  .toast{bottom:calc(90px + env(safe-area-inset-bottom,0px))}
  .radio-logo-card{width:192px;padding:13px 14px;border-radius:14px}
  .radio-identifier{gap:12px}
}
@media(max-width:390px){
  .mobile-contact-dock{gap:7px;padding-left:8px;padding-right:8px}
  .mobile-dock-item{gap:5px;min-height:52px;font-size:.72rem}
  .mobile-dock-item svg{width:18px;height:18px}
  .radio-logo-card{width:170px;padding:10px}
  .radio-identifier{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
  .scroll-lead-btn{transition:none}
}
