/* =========================
   DSE / ISV LAYOUT BASE
   Header + Footer
   ========================= */

:root{
  --bg: #0f172a;            /* sfondo scuro */
  --text: #e5e7eb;          /* testo chiaro */
  --text-soft: #9ca3af;     /* testo secondario */

  --primary: #f59e0b;       /* amber (arancio) */
  --primary-dark: #d97706;  /* amber scuro */
  --chip-dot: #f59e0b;

  --border: rgba(255,255,255,0.08);
}

/* Reset minimo */
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
}

/* Contenitore centrale */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* =========================
   HEADER
   ========================= */

.topbar {
  background: linear-gradient(180deg, #020617, #020617cc);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

/* Fallback box (se non c’è logo wp) */
.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #ffd08a);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #111827;
}

.brand b {
  display: block;
  font-size: 15px;
}

.brand small {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
}

/* Azioni header */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Badge (pill scura come prima) */
.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;

  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chip-dot);
}

/* Bottoni (come prima: scuri e puliti) */
.btn{
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  transition: all .2s ease;
}

.btn:hover {
  background: rgba(255,255,255,0.06);
}

.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #111827;
  font-weight: 700;
}

.btn.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn.ghost {
  background: transparent;
}

/* =========================
   FOOTER
   ========================= */

footer {
  border-top: 1px solid var(--border);
  background: #020617;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  font-size: 13px;
  color: var(--text-soft);
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-actions { gap: 6px; }
  .chip { display: none; }
  .brand small { display: none; }
}

.site-logo {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* =========================
   FIX: wrapper Elementor troppo scuro
   SOLO sulla homepage ISV
   ========================= */

body.isv-page-home .elementor,
body.isv-page-home .elementor-section,
body.isv-page-home .elementor-container,
body.isv-page-home .e-con,
body.isv-page-home .e-con-inner,
body.isv-page-home .elementor-widget-wrap {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.isv-page-home .elementor-section,
body.isv-page-home .e-con {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
