/* ===========================
   VA Digital · Theme (dark tech · green glow · card UI)
   =========================== */

:root{
  --bg:#0b0f0c;
  --card:#111614;
  --muted:#9fb3a8;
  --text:#e8edea;
  --accent:#27c17a;
  --accent-2:#2ee08b;
  --line:rgba(39,193,122,0.25);
  --radius:18px;
  --shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04);
  --glow: 0 0 30px rgba(39,193,122,.25);
  --text-size: clamp(16px, 1.1vw, 18px);
}

*{ box-sizing: border-box; }

html,body{
  margin:0; padding:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 90% -10%, rgba(39,193,122,.25), transparent 60%), var(--bg);
  color: var(--text);
  font-size: var(--text-size);
  line-height: 1.55;
}

a{ color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible{ text-decoration: underline; }

.container{ width: min(1100px, 92%); margin-inline:auto; }

/* ===========================
   Hero
   =========================== */

.hero{
  padding:64px 0;
  background: linear-gradient(180deg, rgba(39,193,122,.08), transparent);
}
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:32px; align-items:center; }
.hero-text h1{ font-size: clamp(40px, 6vw, 64px); margin:0 0 8px; }
.accent{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.subtitle{ margin:0 0 10px; color:#cfe4da; font-weight:600; letter-spacing:.6px; }
.tagline{ color:var(--muted); margin:0 0 16px; }
.cta{ display:flex; gap:12px; margin:18px 0; }
.quick{ list-style:none; padding:0; margin:12px 0 0; color:var(--muted); }
.quick li{ margin:4px 0; }

.hero-media{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-media img{ display:block; width:100%; height:auto; object-fit:cover; }
.hero-media figcaption{ font-size:.85rem; color:var(--muted); padding:8px 10px; background:rgba(0,0,0,.25); }

/* ===========================
   Sections & Cards
   =========================== */

.section{ padding:56px 0; }
.section.alt{ background: linear-gradient(180deg, transparent, rgba(39,193,122,.06)); }
h2{ font-size: clamp(26px, 3.6vw, 34px); margin:0 0 18px; }

.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }

.card{
  background: var(--card);
  padding:18px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  transition: box-shadow .3s ease, transform .3s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 0 25px rgba(39,193,122,.25); }
.card .icon{ font-size:24px; margin-bottom:8px; }

/* Timeline */
.timeline{ display:grid; gap:18px; }
.item{ padding:16px; border-radius: var(--radius); border:1px dashed var(--line); background: rgba(255,255,255,.02); }
.pill{ font-size:.85rem; background: rgba(39,193,122,.15); border:1px solid var(--line); padding:4px 8px; border-radius:20px; margin-left:8px; color:#b7ffe1; }

/* Skills */
.skills{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.skills h3{ margin-top:0; }
.skills ul{ margin:8px 0 0 18px; color:var(--muted); }

/* Contatti */
.contact{ display:grid; grid-template-columns:1fr .8fr; gap:24px; align-items:center; }
.card-preview{ border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow); }

/* Buttons */
.btn{
  display:inline-block; padding:10px 16px; border-radius:12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#062015; font-weight:700; box-shadow: var(--glow);
  transition: box-shadow .3s ease, transform .3s ease;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 0 25px rgba(46,224,139,.45); }
.btn.ghost{ background:transparent; border:1px solid var(--accent); color:var(--accent); }
.btn.small{ padding:8px 12px; font-size:.9rem; }
.btn:focus-visible{ box-shadow: 0 0 0 3px rgba(46,224,139,.5); }
.btn.ghost:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

/* ===========================
   Footer
   =========================== */

.footer{ border-top:1px solid rgba(255,255,255,.06); padding:20px 0; margin-top:24px; }
.foot{ display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:.95rem; }

/* ===========================
   Accessibilità & UX
   =========================== */

[id]{ scroll-margin-top: 80px; }
:focus-visible{ outline:3px solid currentColor; outline-offset:2px; }

@media (prefers-reduced-motion: reduce){
  *{ animation:none!important; transition:none!important; }
}
@media (forced-colors: active){
  .btn, .btn.ghost, a{ forced-color-adjust:auto; }
  .btn{ border:1px solid ButtonText; }
  .btn.ghost{ border:1px solid LinkText; }
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 900px){
  .hero-grid{ grid-template-columns:1fr; gap:20px; }
  .grid-4{ grid-template-columns:1fr 1fr; }
  .skills{ grid-template-columns:1fr 1fr; }
  .contact{ grid-template-columns:1fr; }
}

@media (max-width: 560px){
  .grid-4{ grid-template-columns:1fr; }
  .skills{ grid-template-columns:1fr; }
  .hero-text h1{ font-size: 42px; }
}