/* ======================================================
   LA PIRAMIDE TRACK - STYLE.CSS CLEAN
   ====================================================== */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

:root{
  --black:#050505;
  --black-soft:#0b0b0d;
  --panel:#111217;
  --gold:#f7c948;
  --gold-light:#fff3a6;
  --gold-dark:#b8860b;
  --white:#ffffff;
  --muted:#d8d8d8;
  --muted-soft:#b8b8b8;
  --red:#b91622;
  --border:rgba(247,201,72,0.20);
}

html{
  scroll-behavior:smooth;
}

body{
  min-height:100vh;
  overflow-x:hidden;
  color:var(--white);
  font-family:Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(247,201,72,0.16), transparent 28%),
    radial-gradient(circle at 80% 35%, rgba(185,22,34,0.12), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(247,201,72,0.10), transparent 35%),
    linear-gradient(135deg,#070707,#111111,#080808);
  background-size:180% 180%;
  animation:bgFlow 16s ease-in-out infinite;
}

@keyframes bgFlow{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}

body::before{
  content:"";
  position:fixed;
  left:var(--mouse-x, 50%);
  top:var(--mouse-y, 50%);
  width:420px;
  height:420px;
  transform:translate(-50%,-50%);
  background:radial-gradient(circle, rgba(247,201,72,0.08), transparent 65%);
  pointer-events:none;
  z-index:0;
}

.tech-background{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:0.22;
  background:
    linear-gradient(120deg, transparent 0%, rgba(247,201,72,0.12) 45%, transparent 70%),
    linear-gradient(60deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 75%);
  background-size:220% 220%;
  animation:lightSweep 12s ease-in-out infinite;
}

@keyframes lightSweep{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}

.light-orb{
  position:fixed;
  width:420px;
  height:420px;
  border-radius:50%;
  filter:blur(90px);
  opacity:0.25;
  pointer-events:none;
  z-index:0;
  animation:orbMove 12s ease-in-out infinite alternate;
}

.orb-one{
  background:var(--gold);
  top:8%;
  left:-120px;
}

.orb-two{
  background:var(--gold);
  top:38%;
  right:-140px;
  animation-delay:2s;
}

.orb-three{
  background:var(--red);
  bottom:-120px;
  left:35%;
  animation-delay:4s;
}

@keyframes orbMove{
  from{transform:translateY(0) scale(1);}
  to{transform:translateY(-80px) scale(1.18);}
}

main,
.site-header,
footer{
  position:relative;
  z-index:2;
}

/* HEADER */

.site-header{
  position:fixed;
  top:18px;
  left:50%;
  transform:translateX(-50%);
  width:calc(100% - 36px);
  max-width:1280px;
  z-index:50;
  padding:16px 22px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(5,5,5,0.78);
  backdrop-filter:blur(18px);
  box-shadow:0 20px 60px rgba(0,0,0,0.45);
}

.site-header.scrolled{
  background:rgba(5,5,5,0.92);
}

.site-header nav{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}

.site-header a{
  color:#e8e8e8;
  text-decoration:none;
  font-size:14px;
  font-weight:900;
  transition:0.25s;
}

.site-header a:hover,
.site-header nav a.active{
  color:var(--gold);
}

/* TESTI */

h1{
  font-size:clamp(34px, 7vw, 76px);
  line-height:1.05;
  color:var(--white);
  font-weight:900;
  margin-bottom:34px;
}

h2{
  font-size:clamp(32px, 5vw, 52px);
  line-height:1.12;
  color:var(--white);
  font-weight:900;
  margin-bottom:22px;
}

h3{
  color:var(--white);
  font-size:24px;
  line-height:1.25;
  margin-bottom:15px;
}

p{
  color:var(--muted);
  font-size:18px;
  line-height:1.75;
}

.eyebrow,
.section-kicker{
  display:inline-block;
  margin-bottom:18px;
  font-size:14px;
  font-weight:900;
  letter-spacing:4px;
  text-transform:uppercase;
  background:linear-gradient(90deg,#fff8c9,#ffd95a,#b8860b,#fff2a8,#f7c948);
  background-size:250% auto;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  text-shadow:0 0 18px rgba(247,201,72,0.30);
  animation:goldShine 4s linear infinite;
}

@keyframes goldShine{
  from{background-position:0% center;}
  to{background-position:250% center;}
}

/* BOTTONI */

.gold-btn,
.dark-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:16px 28px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  transition:0.3s ease;
}

.gold-btn{
  color:#111;
  background:linear-gradient(135deg,#fff7c5,#f7c948,#b8860b);
  box-shadow:0 10px 30px rgba(247,201,72,0.32);
}

.dark-btn{
  color:var(--white);
  border:1px solid rgba(247,201,72,0.35);
  background:#111217;
}

.gold-btn:hover,
.dark-btn:hover{
  transform:translateY(-4px) scale(1.03);
}

.dark-btn:hover{
  color:var(--gold);
  border-color:rgba(247,201,72,0.65);
}

/* HERO */

.hero{
  position:relative;
  padding-top:120px;
  overflow:hidden;
}

.hero-visual{
  width:100%;
  max-width:1500px;
  margin:0 auto;
  padding:30px 28px 0;
}

.hero-img{
  width:100%;
  display:block;
  border-radius:34px;
  border:1px solid rgba(255,215,120,0.30);
  box-shadow:
    0 0 50px rgba(247,201,72,0.22),
    0 30px 100px rgba(0,0,0,0.65);
  transition:transform 0.2s ease;
}

.hero-content{
  width:calc(100% - 56px);
  max-width:1280px;
  margin:80px auto 40px;
  padding:90px 70px;
  background:rgba(11,11,13,0.92);
  border:1px solid rgba(247,201,72,0.18);
  border-radius:32px;
  box-shadow:0 15px 50px rgba(0,0,0,0.45);
}

.hero-content p{
  max-width:950px;
  margin-bottom:38px;
}

.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

/* SEZIONI */

.section{
  position:relative;
  width:calc(100% - 56px);
  max-width:1280px;
  margin:40px auto;
  padding:90px 60px;
  background:rgba(11,11,13,0.92);
  border:1px solid rgba(247,201,72,0.16);
  border-radius:32px;
  box-shadow:0 15px 50px rgba(0,0,0,0.45);
}

.section-head{
  max-width:980px;
  margin-bottom:44px;
}

.intro-section,
.dashboard-section,
.cta-section{
  text-align:center;
}

.intro-section .section-text,
.dashboard-section > p,
.cta-section p{
  max-width:950px;
  margin-left:auto;
  margin-right:auto;
}

/* FLOW */

.flow{
  margin-top:42px;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
}

.flow div{
  padding:16px 22px;
  border-radius:18px;
  background:#111217;
  border:1px solid var(--border);
  font-weight:900;
  color:#fff;
}

.flow span{
  color:var(--gold);
  font-size:24px;
}

/* SPLIT */

.split-section{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:42px;
  align-items:center;
}

.split-section p + p{
  margin-top:18px;
}

/* IMMAGINI */

.showcase-image,
.showcase-wide{
  width:100%;
  border-radius:28px;
  overflow:hidden;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 25px 70px rgba(0,0,0,0.35);
}

.showcase-image img,
.showcase-wide img{
  width:100%;
  display:block;
  border-radius:28px;
}

.showcase-wide{
  margin-top:45px;
}

/* CARD LANDING */

.cards-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

.feature-card{
  position:relative;
  min-height:240px;
  padding:28px;
  border-radius:28px;
  background:#111217;
  border:1px solid rgba(247,201,72,0.25);
  overflow:hidden;
  cursor:pointer;
  transition:0.35s ease;
}

.feature-card.selected{
  border-color:rgba(247,201,72,0.75);
  box-shadow:0 0 30px rgba(247,201,72,0.20);
}

.icon{
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  margin-bottom:24px;
  background:rgba(247,201,72,0.12);
  border:1px solid var(--border);
  color:var(--gold);
  font-size:28px;
  animation:iconPulse 2.8s ease-in-out infinite;
}

@keyframes iconPulse{
  0%,100%{box-shadow:0 0 0 rgba(247,201,72,0);}
  50%{box-shadow:0 0 22px rgba(247,201,72,0.35);}
}

.feature-card p{
  color:#dddddd;
  font-weight:800;
}

.feature-card:hover,
.pricing-card:hover,
.mod-card:hover,
.analytics-info-card:hover,
.mock-dashboard div:hover{
  transform:translateY(-8px);
  border-color:rgba(247,201,72,0.50);
  box-shadow:
    0 0 28px rgba(247,201,72,0.18),
    0 25px 70px rgba(0,0,0,0.55);
}

/* DETTAGLIO CARD */

.card-detail{
  display:none;
  margin-top:34px;
  padding:38px;
  border-radius:28px;
  background:#08080a;
  border:1px solid rgba(247,201,72,0.28);
  box-shadow:0 18px 55px rgba(0,0,0,0.45);
}

.card-detail.active{
  display:block;
  animation:detailOpen 0.35s ease forwards;
}

.card-detail h3{
  color:var(--gold);
  font-size:32px;
  margin-bottom:18px;
}

.card-detail p{
  color:#fff;
  font-size:18px;
  line-height:1.85;
}

@keyframes detailOpen{
  from{
    opacity:0;
    transform:translateY(18px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ANALYTICS */

.mock-dashboard{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin-top:34px;
}

.mock-dashboard div{
  padding:34px;
  border-radius:28px;
  background:#111217;
  border:1px solid var(--border);
  box-shadow:inset 0 0 40px rgba(247,201,72,0.04);
  transition:0.35s ease;
}

.mock-dashboard strong{
  display:block;
  font-size:54px;
  color:var(--gold);
  margin-bottom:10px;
}

.mock-dashboard span{
  color:#ddd;
  font-weight:900;
}

.analytics-info-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
  margin-top:36px;
}

.analytics-info-card{
  padding:28px;
  border-radius:24px;
  background:#111217;
  border:1px solid rgba(247,201,72,0.18);
  transition:0.35s ease;
}

.analytics-info-card h3{
  color:var(--gold);
  font-size:22px;
}

.analytics-info-card p{
  color:#d8d8d8;
  font-size:16px;
}

/* SETTORI */

.sector-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
}

.sector-grid span{
  padding:18px;
  text-align:center;
  border-radius:18px;
  background:rgba(255,255,255,0.055);
  border:1px solid rgba(255,255,255,0.10);
  color:#fff;
  font-weight:900;
  transition:0.25s ease;
}

.sector-grid span:hover{
  color:#111;
  background:linear-gradient(135deg,#fff7c5,#f7c948,#a97414);
}

/* PREZZI */

.pricing-section{
  opacity:1 !important;
  transform:none !important;
}

.pricing-main-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:28px;
  margin-top:45px;
}

.pricing-card,
.mod-card{
  background:#111217;
  border:1px solid rgba(247,201,72,0.20);
  border-radius:26px;
  padding:34px;
  box-shadow:0 18px 55px rgba(0,0,0,0.35);
  transition:0.35s ease;
}

.featured-price,
.highlighted-mod{
  border-color:rgba(247,201,72,0.50);
}

.pricing-label,
.mod-badge{
  display:inline-block;
  margin-bottom:18px;
  color:#111;
  background:linear-gradient(135deg,#fff7c5,#f7c948,#b8860b);
  padding:8px 14px;
  border-radius:999px;
  font-weight:900;
  font-size:13px;
  text-transform:uppercase;
}

.pricing-price{
  font-size:56px;
  font-weight:900;
  color:var(--gold);
  margin:22px 0;
}

.pricing-price small{
  font-size:20px;
  color:#ddd;
}

.pricing-subtitle,
.pricing-saving,
.mod-price-detail{
  color:#d8d8d8;
  margin-bottom:18px;
}

.pricing-card ul{
  list-style:none;
  padding:0;
  margin:25px 0 0;
}

.pricing-card li{
  color:#fff;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,0.08);
  line-height:1.5;
}

.pricing-card li::before{
  content:"✓";
  color:var(--gold);
  margin-right:10px;
}

.pricing-note{
  margin-top:24px;
  padding:14px;
  border-radius:16px;
  background:rgba(247,201,72,0.12);
  border:1px solid rgba(247,201,72,0.25);
  color:var(--gold);
  font-weight:900;
  text-align:center;
}

.packages-header{
  text-align:center;
  max-width:900px;
  margin:70px auto 35px;
}

.packages-header h3{
  font-size:clamp(30px,4vw,40px);
}

.advanced-packages-header{
  padding-top:34px;
  border-top:1px solid rgba(247,201,72,0.16);
}

.mod-packages{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
}

.mod-card h3{
  color:var(--gold);
  font-size:34px;
  margin-bottom:8px;
}

.mod-card p{
  color:#d8d8d8;
  line-height:1.7;
}

.pricing-cta{
  text-align:center;
  margin-top:60px;
  padding-top:45px;
  border-top:1px solid rgba(247,201,72,0.15);
}

.pricing-cta h3{
  font-size:32px;
  margin-bottom:24px;
}

/* FINALE */

.final-section{
  width:calc(100% - 56px);
  max-width:1100px;
  margin:80px auto;
  padding:80px 40px;
  text-align:center;
  border-radius:38px;
  border:1px solid var(--border);
  background:
    radial-gradient(circle at top,rgba(247,201,72,0.16),transparent 45%),
    linear-gradient(180deg,#151515,#070707);
  box-shadow:0 18px 55px rgba(0,0,0,0.45);
}

.final-section p{
  max-width:850px;
  margin:0 auto 32px;
}

/* FOOTER */

footer{
  padding:50px 28px;
  text-align:center;
  border-top:1px solid rgba(255,255,255,0.08);
  color:#aaa;
}

footer strong{
  display:block;
  color:var(--gold);
  letter-spacing:3px;
  margin-bottom:10px;
}

footer p{
  font-size:16px;
}

footer div{
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
}

footer a{
  color:#ddd;
  text-decoration:none;
}

footer a:hover{
  color:var(--gold);
}

/* ANIMAZIONI */

.reveal{
  opacity:0;
  transform:translateY(40px);
  transition:0.8s ease;
}

.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

/* TABLET */

@media(max-width:980px){

  .cards-grid,
  .analytics-info-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .split-section{
    grid-template-columns:1fr;
  }

  .sector-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .hero-content,
  .section{
    padding:70px 42px;
  }
}

/* MOBILE */

@media(max-width:620px){

  body{
    overflow-x:hidden;
  }

  body::before{
    display:none;
  }

  .site-header{
    top:10px;
    width:calc(100% - 20px);
    padding:18px 12px;
    border-radius:28px;
  }

  .site-header nav{
    gap:14px 20px;
  }

  .site-header nav a{
    font-size:14px;
    padding:4px 2px;
  }

  .hero{
    padding-top:115px;
  }

  .hero-visual{
    padding:18px 12px 0;
  }

  .hero-img{
    border-radius:22px;
  }

  .hero-content{
    width:calc(100% - 24px);
    margin:28px auto 0;
    padding:34px 22px 42px;
    border-radius:28px;
  }

  h1{
    font-size:30px;
    line-height:1.18;
  }

  h2{
    font-size:31px;
    line-height:1.14;
  }

  h3{
    font-size:22px;
  }

  p{
    font-size:16px;
    line-height:1.68;
  }

  .eyebrow,
  .section-kicker{
    font-size:12px;
    letter-spacing:3px;
    line-height:1.5;
  }

  .hero-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .gold-btn,
  .dark-btn{
    width:100%;
    text-align:center;
  }

  .section{
    width:calc(100% - 24px);
    margin:34px auto;
    padding:44px 22px;
    border-radius:28px;
  }

  .cards-grid,
  .mock-dashboard,
  .analytics-info-grid,
  .sector-grid{
    grid-template-columns:1fr;
  }

  .feature-card{
    min-height:auto;
    padding:24px;
  }

  .card-detail{
    padding:26px;
  }

  .card-detail h3{
    font-size:27px;
  }

  .card-detail p{
    font-size:16px;
  }

  .mock-dashboard strong{
    font-size:42px;
  }

  .pricing-section{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    transform:none !important;
  }

  .pricing-card,
  .mod-card{
    padding:26px;
  }

  .pricing-price{
    font-size:48px;
  }

  .packages-header{
    margin:54px auto 28px;
  }

  .pricing-cta h3{
    font-size:26px;
  }

  .final-section{
    width:calc(100% - 24px);
    margin:34px auto;
    padding:46px 22px;
    border-radius:28px;
  }

  footer{
    padding:36px 20px;
  }
}