/* =========================================================
   RABBIT HOME CARD COVERS BOOTSTRAP V11.6
   Fonte stabile: moduli_home.immagine_url
   Cache locale: fallback immediato
   ========================================================= */

:root{
  --rhc116-overlay:linear-gradient(135deg, rgba(2,6,23,.76), rgba(15,23,42,.46));
}

/* ---------- Pannello Impostazioni ---------- */

#rhcCoversSettingsPanel{
  width:calc(100% - 24px);
  max-width:1180px;
  margin:18px auto;
  padding:18px;
  border-radius:30px;
  border:1px solid rgba(219,229,242,.94);
  background:rgba(255,255,255,.94);
  box-shadow:0 18px 54px rgba(15,23,42,.08);
  color:#0f172a;
}

.rhc116-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:16px;
}

.rhc116-head span{
  display:inline-flex;
  margin-bottom:6px;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.09em;
  color:#2563eb;
}

.rhc116-head h2{
  margin:0;
  color:#0f172a;
  font-size:clamp(28px, 5vw, 44px);
  line-height:1.02;
  letter-spacing:-.06em;
}

.rhc116-head p{
  margin:8px 0 0;
  max-width:780px;
  color:#64748b;
  font-size:15px;
  line-height:1.4;
  font-weight:750;
}

.rhc116-refresh{
  min-height:46px;
  border-radius:16px;
  padding:0 16px;
  font-weight:950;
}

.rhc116-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.rhc116-group{
  grid-column:1 / -1;
  margin:8px 0 0;
  padding:8px 2px 2px;
  color:#2563eb;
  font-size:13px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.rhc116-row{
  min-width:0;
  padding:14px;
  border-radius:22px;
  border:1px solid #dbe5f2;
  background:#f8fbff;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}

.rhc116-info{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
}

.rhc116-thumb{
  width:62px;
  height:52px;
  min-width:62px;
  border-radius:16px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#eaf2ff;
  border:1px solid #dbe5f2;
  font-size:24px;
}

.rhc116-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.rhc116-info b{
  display:block;
  color:#0f172a;
  font-size:16px;
  line-height:1.15;
  font-weight:950;
}

.rhc116-info small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:13px;
  line-height:1.25;
  font-weight:760;
}

.rhc116-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.rhc116-actions button{
  min-height:42px;
  border-radius:14px;
  font-weight:950;
}

.rhc116-actions .danger{
  color:#991b1b;
  border-color:#fecaca;
  background:#fff5f5;
}

.rhc116-status{
  grid-column:1 / -1;
  min-height:16px;
  color:#64748b;
  font-size:12px;
  line-height:1.28;
}

/* ---------- Cover sui blocchi principali ---------- */

.rhc-has-cover{
  position:relative !important;
  overflow:hidden !important;
  background-image:var(--rhc116-overlay), var(--rhc-bg) !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.16) !important;
  box-shadow:0 22px 60px rgba(15,23,42,.22) !important;
}

.rhc-has-cover::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.20), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0));
  z-index:0;
}

.rhc-has-cover > *{
  position:relative;
  z-index:1;
}

.rhc-has-cover h1,
.rhc-has-cover h2,
.rhc-has-cover h3,
.rhc-has-cover h4,
.rhc-has-cover b,
.rhc-has-cover .command-title,
.rhc-has-cover .launch-title{
  color:#fff !important;
  text-shadow:0 2px 20px rgba(0,0,0,.22);
}

.rhc-has-cover p,
.rhc-has-cover small,
.rhc-has-cover span,
.rhc-has-cover .muted,
.rhc-has-cover .launch-desc{
  color:rgba(255,255,255,.88) !important;
}

.rhc-has-cover button:not(.primary):not(.danger),
.rhc-has-cover .launch-arrow,
.rhc-has-cover .pill,
.rhc-has-cover .badge{
  background:rgba(255,255,255,.16) !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.24) !important;
  backdrop-filter:blur(10px);
}

.command-panel.rhc-has-cover{
  min-height:360px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.priority-board.rhc-has-cover{
  padding:18px;
  border-radius:28px;
}

/* Contenitore “Vai dove ti serve” */
.rhc-home-areas-section.rhc-has-cover{
  padding:24px !important;
  border-radius:30px !important;
}

.rhc-home-areas-section.rhc-has-cover .area-card,
.rhc-home-areas-section.rhc-has-cover .launch-card,
.rhc-home-areas-section.rhc-has-cover .home-area-card,
.rhc-home-areas-section.rhc-has-cover .quick-area-card,
.rhc-home-areas-section.rhc-has-cover .workspace-area-card{
  background:rgba(255,255,255,.90) !important;
  color:#0f172a !important;
  border-color:rgba(255,255,255,.42) !important;
  backdrop-filter:blur(10px);
}

.rhc-home-areas-section.rhc-has-cover .area-card h2,
.rhc-home-areas-section.rhc-has-cover .area-card h3,
.rhc-home-areas-section.rhc-has-cover .launch-card h2,
.rhc-home-areas-section.rhc-has-cover .launch-card h3,
.rhc-home-areas-section.rhc-has-cover .home-area-card h2,
.rhc-home-areas-section.rhc-has-cover .home-area-card h3{
  color:#0f172a !important;
  text-shadow:none !important;
}

.rhc-home-areas-section.rhc-has-cover .area-card p,
.rhc-home-areas-section.rhc-has-cover .area-card small,
.rhc-home-areas-section.rhc-has-cover .launch-card p,
.rhc-home-areas-section.rhc-has-cover .launch-card small,
.rhc-home-areas-section.rhc-has-cover .home-area-card p,
.rhc-home-areas-section.rhc-has-cover .home-area-card small{
  color:#64748b !important;
}

@media(max-width:768px){
  #rhcCoversSettingsPanel{
    width:calc(100% - 20px);
    margin:14px auto;
    padding:14px;
    border-radius:26px;
  }

  .rhc116-head{
    display:grid;
    grid-template-columns:1fr;
  }

  .rhc116-grid{
    grid-template-columns:1fr;
  }

  .rhc116-row{
    grid-template-columns:1fr;
  }

  .rhc116-actions{
    justify-content:flex-start;
  }

  .command-panel.rhc-has-cover{
    min-height:420px;
  }

  .rhc-home-areas-section.rhc-has-cover{
    padding:16px !important;
    border-radius:26px !important;
  }
}
