:root{
  --bg:#070809;
  --bg-soft:#0b0b0c;
  --panel:#111315;
  --panel-2:#17191b;
  --panel-3:#1c1f22;

  --line:rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.16);

  --text:#ffffff;
  --muted:#c9c9c9;
  --muted-2:#8e8e8e;

  --accent:#9BC31C;
  --accent-2:#B5D94B;
  --accent-dark:#6D8E10;

  --shadow:0 20px 60px rgba(0,0,0,.38);
  --shadow-soft:0 12px 36px rgba(0,0,0,.28);

  --radius:22px;
  --radius-sm:14px;
  --max:1200px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:
    radial-gradient(circle at top left, rgba(155,195,28,.12), transparent 30%),
    radial-gradient(circle at top right, rgba(255,255,255,.045), transparent 24%),
    linear-gradient(180deg, #070809 0%, #0b0b0c 100%);
  color:var(--text);
  font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  display:block;
  max-width:100%;
}

.container{
  width:min(calc(100% - 32px), var(--max));
  margin:0 auto;
}

/* HEADER */

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(7,8,9,.72);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

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

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  letter-spacing:.02em;
  font-size:18px;
}

.brand-mark{
  width:14px;
  height:14px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  box-shadow:0 0 24px rgba(155,195,28,.55);
}

.brand-logo{
  height:42px;
  width:auto;
  display:block;
}

.nav-right{
  display:flex;
  gap:18px;
  align-items:center;
}

.nav-link{
  color:var(--muted);
  font-weight:600;
  transition:color .2s ease;
}

.nav-link:hover{
  color:var(--text);
}

/* Compatibilità con vecchie classi header/button */

.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(7,8,9,.72);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

.header .container{
  min-height:74px;
  display:flex;
  align-items:center;
  gap:20px;
}

.spacer{
  flex:1;
}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 15px;
  border-radius:999px;
  border:1px solid var(--line-strong);
  background:rgba(255,255,255,.035);
  color:var(--text);
  font-weight:700;
  transition:background .2s ease, border-color .2s ease, transform .2s ease;
}

.button:hover{
  background:rgba(255,255,255,.07);
  border-color:rgba(155,195,28,.45);
  transform:translateY(-1px);
}

/* HERO */

.hero{
  padding:72px 0 38px;
}

.hero-inner{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:32px;
  align-items:center;
}

.hero-copy{
  position:relative;
  z-index:2;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  margin-bottom:18px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--accent);
  background:rgba(255,255,255,.025);
  font-size:13px;
  font-weight:800;
  letter-spacing:.04em;
}

.hero h1{
  margin:0 0 16px;
  max-width:720px;
  font-size:clamp(34px, 5vw, 58px);
  line-height:1.04;
  letter-spacing:-.035em;
}

.hero-text{
  margin:0;
  max-width:640px;
  color:var(--muted);
  font-size:18px;
  line-height:1.65;
}

.hero-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:28px;
  min-height:50px;
  padding:0 21px;
  border-radius:15px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#111;
  font-weight:900;
  box-shadow:0 10px 30px rgba(155,195,28,.25);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.hero-button:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 38px rgba(155,195,28,.34);
  filter:saturate(1.08);
}

.hero-card{
  position:relative;
  min-height:360px;
  border-radius:30px;
  border:1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    linear-gradient(135deg, #111315, #17191b 60%, #0d0f10);
  overflow:hidden;
  box-shadow:var(--shadow);
}

.hero-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(120deg, rgba(255,255,255,.08), transparent 35%),
    radial-gradient(circle at 30% 20%, rgba(155,195,28,.12), transparent 32%);
  pointer-events:none;
}

.hero-glow{
  position:absolute;
  inset:auto -60px -80px auto;
  width:240px;
  height:240px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(155,195,28,.48), transparent 68%);
  filter:blur(12px);
}

.hero-preview{
  position:absolute;
  inset:22px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:22px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.07);
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)),
    radial-gradient(circle at 20% 20%, rgba(155,195,28,.16), transparent 30%),
    linear-gradient(180deg, #181a1c 0%, #101214 100%);
}

.hero-preview-badge{
  display:inline-flex;
  width:max-content;
  margin-bottom:14px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  color:#ffffff;
  background:rgba(255,255,255,.045);
  font-size:13px;
  font-weight:800;
}

.hero-preview-text{
  max-width:350px;
  color:#dcdcdc;
  font-size:16px;
  line-height:1.6;
}

/* CONTENT */

.main-content{
  padding:18px 0 60px;
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:22px;
}

.section-kicker{
  margin-bottom:8px;
  color:var(--accent);
  font-size:13px;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.section-title{
  margin:0;
  font-size:clamp(28px, 3vw, 38px);
  line-height:1.08;
  letter-spacing:-.025em;
}

/* GRID VIDEO */

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

.card{
  display:block;
  overflow:hidden;
  border-radius:22px;
  border:1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012)),
    var(--panel);
  box-shadow:var(--shadow-soft);
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease;
}

.card:hover{
  transform:translateY(-5px);
  border-color:rgba(155,195,28,.34);
  background:
    linear-gradient(180deg, rgba(155,195,28,.035), rgba(255,255,255,.014)),
    var(--panel);
  box-shadow:0 26px 68px rgba(0,0,0,.48);
}

.card-media{
  position:relative;
  overflow:hidden;
  aspect-ratio:16/9;
  background:#0e1012;
}

.thumb{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .38s ease, filter .38s ease;
}

.card:hover .thumb{
  transform:scale(1.045);
  filter:saturate(1.08) contrast(1.04);
}

.card-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding:14px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,.04) 45%, rgba(0,0,0,.48));
  pointer-events:none;
}

.pill{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.13);
  background:rgba(16,18,20,.72);
  color:#ffffff;
  backdrop-filter:blur(7px);
  font-size:12px;
  font-weight:900;
  letter-spacing:.045em;
}

.play-badge{
  align-self:flex-end;
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 13px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#111;
  font-size:12px;
  font-weight:900;
  box-shadow:0 10px 22px rgba(155,195,28,.25);
}

.meta{
  padding:18px 18px 20px;
}

.title{
  color:var(--text);
  font-size:18px;
  font-weight:850;
  line-height:1.3;
  letter-spacing:-.012em;
}

.desc{
  color:var(--muted);
  opacity:.82;
  font-size:14px;
  margin-top:6px;
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* STATES */

.loading-state,
.empty-state{
  grid-column:1 / -1;
  min-height:220px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:24px;
  text-align:center;
  border-radius:24px;
  border:1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.012)),
    var(--panel);
}

.loading-spinner{
  width:32px;
  height:32px;
  border-radius:50%;
  border:3px solid rgba(255,255,255,.12);
  border-top-color:var(--accent);
  animation:spin 1s linear infinite;
}

@keyframes spin{
  to{
    transform:rotate(360deg);
  }
}

.empty-title{
  color:var(--text);
  font-size:20px;
  font-weight:850;
}

.empty-text{
  max-width:440px;
  color:var(--muted);
}

/* FOOTER */

.site-footer{
  margin-top:40px;
  border-top:1px solid var(--line);
}

.footer-inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:14px;
}

.footer-muted{
  opacity:.75;
}

/* PLAYER / GENERIC UTILITY */

.btn{
  appearance:none;
  border:1px solid var(--line-strong);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:14px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:700;
  transition:background .2s ease, border-color .2s ease, transform .2s ease;
}

.btn:hover{
  background:rgba(255,255,255,.075);
  border-color:rgba(155,195,28,.38);
  transform:translateY(-1px);
}

.btn.danger{
  border-color:rgba(255,120,120,.28);
  background:rgba(80,20,20,.22);
  color:#ffb3b3;
}

.btn.danger:hover{
  background:rgba(100,25,25,.32);
  border-color:rgba(255,120,120,.42);
}

input,
textarea,
select{
  font:inherit;
}

/* RESPONSIVE */

@media (max-width:1040px){
  .hero-inner{
    grid-template-columns:1fr;
  }

  .hero-card{
    min-height:300px;
  }

  .grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width:760px){
  .nav{
    min-height:68px;
  }

  .brand-logo{
    height:36px;
  }

  .hero{
    padding:52px 0 24px;
  }

  .hero-text{
    font-size:16px;
  }

  .section-head{
    margin-bottom:18px;
  }

  .grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .footer-inner{
    min-height:auto;
    padding:20px 0;
    flex-direction:column;
    justify-content:center;
    text-align:center;
  }
}

@media (max-width:520px){
  .container{
    width:min(calc(100% - 24px), var(--max));
  }

  .nav{
    gap:12px;
  }

  .nav-right{
    display:none;
  }

  .hero h1{
    font-size:36px;
  }

  .hero-card{
    min-height:260px;
    border-radius:24px;
  }

  .hero-preview{
    inset:16px;
    border-radius:20px;
  }

  .meta{
    padding:16px;
  }
}