/* PALETTE & BASE */
:root {
  --ec-bg: #020617;        /* blu notte */
  --ec-bg-soft: #f9fafb;   /* sfondo sezioni chiare */
  --ec-primary: #0ea5e9;   /* turchese */
  --ec-primary-dark: #0284c7;
  --ec-accent: #f97316;    /* arancio */
  --ec-text-soft: #6b7280;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14,165,233,0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(248,113,113,0.16), transparent 55%),
    #e5e7eb;
}

/* WRAPPER BOXED */
.main-wrapper {
  max-width: 1140px;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(15,23,42,0.22);
}

/* NAVBAR */
.navbar-brand {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.navbar-nav .nav-link {
  font-size: 0.88rem;
  border-radius: 999px;
  padding-inline: 0.9rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  background-color: rgba(14,165,233,0.12);
  color: var(--ec-primary-dark) !important;
}

/* HERO HOME */
.hero-home {
  position: relative;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: stretch;
}

.hero-home::after {
  /* vignettatura morbida sui bordi */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(15,23,42,0.85), transparent 55%),
    linear-gradient(to right, rgba(15,23,42,0.85), rgba(15,23,42,0.4));
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 1;
}

.hero-overlay h1 {
  text-shadow: 0 14px 30px rgba(0,0,0,0.7);
}

.hero-overlay .btn-success {
  background: linear-gradient(to right, #22c55e, #16a34a);
  border: none;
}

.hero-overlay .btn-success:hover {
  background: linear-gradient(to right, #16a34a, #15803d);
}

/* TESTO SOFT */
.text-soft {
  color: var(--ec-text-soft);
}

/* CARD GENERICHE */
.card {
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 14px 30px rgba(15,23,42,0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15,23,42,0.25);
  border-color: rgba(14,165,233,0.45);
}

/* CARD FOOTER PULITO */
.card-footer {
  border-top: none;
}

/* BADGE DISPONIBILITÀ */
.badge-disponibile,
.badge-esaurito {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.18rem 0.6rem;
}

.badge-disponibile {
  background-color: #bbf7d0;
  color: #166534;
}

.badge-esaurito {
  background-color: #fecaca;
  color: #b91c1c;
}

/* PLACEHOLDER IMMAGINE */
.immagine-placeholder {
  background: linear-gradient(135deg, #e5e7eb, #f9fafb);
  border-radius: 0.75rem;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-text-soft);
  font-size: 0.88rem;
}

/* LISTA PUNTI FORTI */
.lista-incluso {
  list-style: none;
  padding-left: 0;
}

.lista-incluso li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.35rem;
}

.lista-incluso li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-size: 0.8rem;
}

/* SEZIONI ALTERNATE (home, liste) */
section:nth-of-type(odd) {
  background-color: #ffffff;
}

section:nth-of-type(even) {
  background-color: var(--ec-bg-soft);
}

/* TABELLA CARRELLO */
.table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* PICCOLE UTILITY */
.badge-sm {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
}

@media (max-width: 768px) {
  .main-wrapper {
    border-radius: 0;
    box-shadow: none;
  }
}
