
:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --muted2: rgba(255,255,255,0.55);
  --accent: #4f8cff;
  --accent2: #7c5cff;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --radius: 18px;
  --radius2: 24px;
  --max: 1120px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1000px 600px at 10% 10%, rgba(79,140,255,0.18), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(124,92,255,0.15), transparent 55%),
    linear-gradient(180deg, #0a1020 0%, #070b14 100%);
  color: var(--text);
  line-height: 1.6;
}

a{color:inherit;text-decoration:none}
.wrap{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* TOPBAR */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,11,20,0.60);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:0.2px;
}
.brand-dot{
  width:10px;height:10px;border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(79,140,255,0.10);
}
.brand-name{font-size: 14px; color: rgba(255,255,255,0.9)}

.nav{
  display:flex;
  align-items:center;
  gap:18px;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
}
.nav a:hover{color: rgba(255,255,255,0.95)}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(79,140,255,0.95), rgba(124,92,255,0.90));
  color: #fff;
  box-shadow: 0 16px 40px rgba(79,140,255,0.20);
  font-weight: 650;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover {
  transform: translate3d(0, -6px, 0) scale(1.04);
}
.btn:active{transform: translateY(0px); opacity: .95}

.btn-ghost {
  background: rgba(255,255,255,0.06);

  box-shadow:
    0 8px 20px rgba(0,0,0,0.25),
    0 0 0 rgba(120,140,255,0);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.btn-ghost:hover {
  box-shadow:
    0 16px 40px rgba(0,0,0,0.35),
    0 0 28px rgba(120,140,255,0.35);
}

}
.btn-small{padding: 9px 12px; font-size: 13px}
.btn-wide{width:100%}

/* TYPO */
.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.78);
  font-size: 12.5px;
  letter-spacing: .25px;
  margin: 0 0 14px 0;
}
.h1{
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.8px;
  margin: 0 0 14px 0;
}
.subtitle{
  font-size: 16.5px;
  color: var(--muted);
  margin: 0 0 22px 0;
  max-width: 56ch;
}
.section{
  padding: 76px 0;
}
.section-alt{
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.section-head{
  margin-bottom: 28px;
}
.h2{
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 10px 0;
  letter-spacing: -0.4px;
}
.h3{
  font-size: 18px;
  margin: 0 0 10px 0;
}
.lead{
  color: var(--muted);
  margin: 0;
  max-width: 72ch;
}

/* HERO */
.hero{
  padding: 70px 0 30px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 26px;
  align-items: start;
}
.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin: 18px 0 18px;
}

/* === BULLET HERO (proof) === */

.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 280px));
  gap: 20px;
  margin-top: 28px;

  justify-content: center;   /* centra i bullet */
  max-width: 920px;          /* NON vanno a bordo pagina */
  margin-left: auto;
  margin-right: auto;
}

.proof-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;

  display: flex;
  flex-direction: column;   /* ← uno sopra l’altro */
  align-items: center;
  gap: 6px;                 /* spazio tra sopra e sotto */

  text-align: center;
  transition: all 0.25s ease;
  cursor: default;
}

.proof-item:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(79,140,255,.2),
              0 20px 40px rgba(0,0,0,.35);
}

.proof-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-weight: 700;
  font-size: 19px;              /* 🔥 impatto vero */
  letter-spacing: -0.2px;

  color: rgba(120,140,255,1);
  text-shadow: 0 0 22px rgba(120,140,255,0.25);

  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.proof-label {
  font-size: 15.5px;            /* ↑ più leggibile */
  font-weight: 500;
  line-height: 1.45;

  color: rgba(255,255,255,0.85);
}

/* HERO CARD */
.hero-card{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  padding: 18px;
  overflow:hidden;
  position: relative;
}
.hero-card::before{
  content:"";
  position:absolute;
  inset: -40% -40% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(79,140,255,0.25), transparent 60%);
  filter: blur(0px);
  pointer-events:none;
}
.avatar{
  width: 100%;
  display:flex;
  justify-content:center;
  margin: 8px 0 12px;
}
.avatar img{
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 999px;
  padding: 6px;
  background: rgba(255,255,255,0.06);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.30),
    inset 0 0 0 1px rgba(79,140,255,0.28);
}
.hero-card-text p{
  color: var(--muted);
  margin: 0;
}
.hero-links{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 16px;
}
.chip{
  display:inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.82);
  font-weight: 650;
  font-size: 13px;
}
.chip:hover{background: rgba(255,255,255,0.05)}

/* ABOUT */
.about{
  display:grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
  align-items: start;
  margin-top: 20px;
}
.about-img img{
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 999px;
  padding: 6px;
  background: rgba(255,255,255,0.06);
  box-shadow:
    0 18px 55px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(79,140,255,0.26);
}
.about-text p{
  margin: 0 0 12px 0;
  color: var(--muted);
  max-width: 78ch;
}

/* CARDS */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
}
.card p{color: var(--muted); margin: 0}

.list{
  margin: 12px 0 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{margin: 6px 0}
.list.compact li{margin: 4px 0}

/* PROJECTS */
.projects{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 22px;
}
.project{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  padding: 18px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.18);
}
.project-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.project p{color: var(--muted); margin: 10px 0}
.tag{
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.highlight{
  border-left: 3px solid rgba(79,140,255,0.8);
  padding-left: 12px;
  color: rgba(255,255,255,0.85);
  background: rgba(79,140,255,0.06);
  border-radius: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.links{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.link{
  color: rgba(255,255,255,0.86);
  border-bottom: 1px dashed rgba(255,255,255,0.30);
  padding-bottom: 2px;
}
.link:hover{border-bottom-style: solid}

.note{
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--muted);
}

/* SERVICES GRID */
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

/* CONTACT */
.contact{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}
.contact-box{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 18px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.16);
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.small{
  font-size: 12.5px;
  color: var(--muted2);
  margin: 0;
}
code{
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
}
.footer{
  padding: 30px 0 0;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

/* ✅ RESPONSIVE: su mobile titoli e testi centrati */
@media (max-width: 920px){
  .hero-grid{grid-template-columns: 1fr; }
  .cards{grid-template-columns: 1fr; }
  .grid-2{grid-template-columns: 1fr;}
  .contact{grid-template-columns: 1fr;}
  .nav{display:none;} /* topbar pulito su mobile */
}

@media (max-width: 768px){
  /* centra tutto */
  .section-head,
  .hero-copy,
  .contact,
  .contact-copy{
    text-align: center;
  }

  .subtitle{margin-left:auto; margin-right:auto;}
  .lead{margin-left:auto; margin-right:auto;}

  .hero-cta{justify-content:center;}
  .proof{justify-content:center;}

  .about{
    grid-template-columns: 1fr;
    text-align:center;
  }
  .about-img img{margin: 0 auto;}

  .project-top{
    flex-direction: column;
    align-items: center;
  }
  .links{justify-content:center;}

  .topbar-inner{justify-content:center;}
}
/* ====== HERO CARD: micro-hover ====== */
.hero-card{
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.45);
  border-color: rgba(120,140,255,0.35);
}
/* ====== BULLET (proof) : vivi ma sobri ====== */
.proof-item{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px 22px;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.proof-num{
  display: inline-block;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.proof-item:hover .proof-num{
  color: rgba(120,140,255,1);
  text-shadow: 0 0 18px rgba(120,140,255,0.25);
}

/* === CONTATTI: differenzia Email vs LinkedIn === */
.btn-email{
  background: rgba(120,140,255,0.95);
  border: 1px solid rgba(120,140,255,0.55);
  color: #0b1020;
  font-weight: 800;
}

.btn-email:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(120,140,255,0.20);
}

.btn-linkedin{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.88);
}

.btn-linkedin:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(120,140,255,0.25);
  transform: translateY(-2px);
}

/* ===== CTA CONTATTI: Email vs LinkedIn ===== */

.btn-icon{
  display: inline-block;
  margin-right: 10px;
  transform: translateY(1px);
  opacity: .95;
}

/* Email – glow caldo */
.btn.btn-email{
  border: 1px solid rgba(255, 190, 120, 0.25);
}

.btn.btn-email:hover{
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 22px 56px rgba(0,0,0,0.42),
    0 0 42px rgba(255, 190, 120, 0.55);
}

/* LinkedIn – glow blu */
.btn.btn-linkedin{
  border: 1px solid rgba(120, 140, 255, 0.28);
}

.btn.btn-linkedin:hover{
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 22px 56px rgba(0,0,0,0.42),
    0 0 42px rgba(120, 140, 255, 0.60);
}
/* ===== MOBILE: FIX SPAZIO HERO ===== */
@media (max-width: 640px){

  .hero{
    padding-top: 10px !important;
  }

  .brand{
    margin-bottom: 6px !important;
  }

  .kicker{
    margin-top: 6px !important;
  }

}

/* ===== MOBILE: CARD / BULLET IN COLONNA ===== */
@media (max-width: 640px){

  .cards,
  .features,
  .bullets{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

}

/* MOBILE – 3 bullet SEMPRE IN COLONNA */
@media (max-width: 640px) {
  .proof {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* MOBILE – larghezza bullet come card sopra */
@media (max-width: 640px) {
  .proof > div {
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
  }
}
