/* ─── PRODOTTI (BENTO GRID) ────────────────────────────────────── */
#prodotti { padding: 8rem 2rem; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  overflow: hidden;
}

/* Border beam wrapper */
.bento-card-wrap {
  position: relative;
  padding: 1.5px;
  background: transparent;
  overflow: hidden;
  background: var(--surface);
}

.bento-card-wrap::before {
  content: '';
  position: absolute;
  width: 200%; height: 200%;
  top: -50%; left: -50%;
  background: conic-gradient(from 0deg, transparent 0% 60%, var(--emerald) 72%, rgba(0,192,127,0.3) 80%, transparent 88% 100%);
  animation: beam-spin 3.5s linear infinite;
  animation-play-state: paused;
  opacity: 0;
  transition: opacity 0.45s;
}
.bento-card-wrap:hover::before {
  opacity: 1;
  animation-play-state: running;
}
@keyframes beam-spin { to { transform: rotate(360deg); } }

.bento-card {
  position: relative;
  background: var(--surface);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  height: 100%;
  overflow: hidden;
  transition: background 0.3s;
}
.bento-card-wrap:hover .bento-card {
  background: #0f0f0f;
}

/* Spotlight: radial gradient follows mouse */
.bento-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--sx, -300px) var(--sy, -300px),
    rgba(0,192,127,0.05),
    transparent 40%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.bento-card-wrap:hover .bento-spotlight { opacity: 1; }

/* Grid sizing */
.bento-large { grid-row: span 2; min-height: 460px; }
.bento-wide  { grid-column: span 2; }

.bento-header { display: flex; justify-content: space-between; align-items: flex-start; }

.bento-badge-live {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--emerald);
  background: rgba(0,192,127,0.07);
  border: 1px solid rgba(0,192,127,0.2);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
}
.badge-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--emerald);
  animation: pulse-dot 2s ease-in-out infinite;
}
.bento-badge-soon {
  display: inline-flex; align-items: center;
  font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
}

.bento-icon-wrap {
  width: 46px; height: 46px;
  background: rgba(0,192,127,0.07);
  border: 1px solid rgba(0,192,127,0.14);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald);
  flex-shrink: 0;
}
.bento-icon-wrap svg { width: 22px; height: 22px; }

.bento-body { margin-top: auto; padding-top: 2rem; }

.bento-name {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.2rem;
}
.bento-sector {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.75rem;
}
.bento-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.bento-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--emerald);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(0,192,127,0.25);
  transition: border-color 0.2s;
  width: fit-content;
}
.bento-link:hover { border-color: var(--emerald); }
.bento-link svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-wide { grid-row: span 1; grid-column: span 1; }
}

/* ─── BENTO JUSTICE — HOLOGRAPHIC + ORBIT ────────────────────── */
.bento-large .bento-card {
  overflow: hidden;
}
.bento-large .bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    128deg,
    transparent 0%,
    rgba(0,192,127,0.015) 22%,
    rgba(0,255,160,0.042) 45%,
    rgba(0,192,127,0.018) 68%,
    transparent 100%
  );
  background-size: 200% 200%;
  animation: holo-drift 11s ease-in-out infinite;
  pointer-events: none;
}

@keyframes holo-drift {
  0%, 100% { background-position: 0%   0%;   opacity: 0.7; }
  50%       { background-position: 100% 100%; opacity: 1;   }
}

/* Orbit rings on Justice icon */
.bento-large .bento-icon-wrap {
  position: relative;
  border-radius: 50%;
  width: 52px; height: 52px;
}
.bento-large .bento-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color:   rgba(0,192,127,0.65);
  border-right-color: rgba(0,192,127,0.22);
  animation: orbit-cw 3s linear infinite;
}
.bento-large .bento-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-bottom-color: rgba(0,192,127,0.28);
  border-left-color:   rgba(0,192,127,0.10);
  animation: orbit-cw 5.5s linear infinite reverse;
}

@keyframes orbit-cw { to { transform: rotate(360deg); } }

/* Dissolve in alto nella sezione prodotti */
#prodotti {
  position: relative;
}
#prodotti::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, #0a0a0a 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ─── BENTO CARDS — VETRO 3D (GLASSMORPHISM) ─────────────────────── */
.bento-card {
  background: rgba(8,11,9,0.58);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  border-top:    1px solid rgba(255,255,255,0.09);
  border-left:   1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.55);
  border-right:  1px solid rgba(0,0,0,0.35);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.07) inset,
    0 -1px 0 rgba(0,0,0,0.4) inset,
    0 20px 50px rgba(0,0,0,0.38);
  transition: background 0.38s, box-shadow 0.38s;
}

.bento-card-wrap:hover .bento-card {
  background: rgba(4,14,9,0.66);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 -1px 0 rgba(0,0,0,0.5) inset,
    0 32px 64px rgba(0,0,0,0.5),
    0 0 0 1px rgba(0,192,127,0.16);
}

/* Griglia bento semi-trasparente per far passare l'aurora */
.bento-grid {
  background: rgba(255,255,255,0.015);
  border-color: rgba(0,192,127,0.07);
}

/* Section decompression — breathing room enterprise */
#prodotti { padding: 12rem 2rem; }
