/*
Theme Name: Faber04
Theme URI: https://www.faber04.com/
Author: Fabio Bernardi
Author URI: https://www.faber04.com/
Description: Personal landing theme for Fabio Bernardi — senior frontend engineer. Dark, fast, no build step, no bloat. One-page front page with hero, projects, about and contact.
Version: 1.0.0
License: MIT
Text Domain: faber04
*/

/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0f1c;
  --bg-soft: #0f172a;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(139, 213, 255, 0.18);
  --text: #e6edf6;
  --text-dim: #94a3b8;
  --teal: #0ea5e9;
  --teal-soft: #38bdf8;
  --amber: #fbbf24;
  --radius: 18px;
  --maxw: 1080px;
}

/* ---------- Reset leggero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(14, 165, 233, 0.14), transparent 70%),
    radial-gradient(500px 260px at 85% 10%, rgba(251, 191, 36, 0.08), transparent 70%),
    var(--bg);
}
.hero .kicker {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-soft);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 16px;
  background: var(--card);
}
.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.1;
  margin: 20px 0 12px;
  letter-spacing: -0.02em;
}
.hero .tagline {
  font-size: clamp(18px, 2.6vw, 22px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.hero .stack span {
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), #2dd4bf);
  color: #04131f;
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.35);
}
.btn-ghost {
  border: 1px solid var(--card-border);
  color: var(--text);
  background: var(--card);
  margin-left: 12px;
}

/* ---------- Sezioni ---------- */
section { padding: 72px 0; }
section:nth-of-type(even) { background: var(--bg-soft); }
.section-title {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 8px;
}
.section-sub { font-size: 28px; margin: 0 0 40px; font-weight: 700; }

/* ---------- Progetti ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.project {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(14, 165, 233, 0.18);
}
.project .thumb { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.project .body { padding: 24px; }
.project h3 { margin: 0 0 6px; font-size: 21px; }
.project h3 em { color: var(--teal-soft); font-style: normal; }
.project p { color: var(--text-dim); font-size: 15px; margin: 0 0 18px; }
.project .links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 15px; font-weight: 600; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.about-grid .facts { list-style: none; padding: 0; margin: 0; }
.about-grid .facts li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}
.about-grid .facts strong { color: var(--text); display: block; }
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Esperimenti: mini-card senza immagini ---------- */
.experiments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.experiment {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.experiment:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.14);
}
/* timbro glifo ">" coerente col favicon, più in alto */
.experiment::before {
  content: "›";
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--teal), #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.7;
}
.experiment h3 { margin: 0 0 8px; font-size: 18px; padding-right: 40px; }
.experiment h3 em { color: var(--teal-soft); font-style: normal; font-weight: 500; font-size: 15px; display: block; margin-top: 2px; }
.experiment p { color: var(--text-dim); font-size: 14px; margin: 0 0 14px; }
.experiment .links { display: flex; gap: 16px; font-size: 14px; font-weight: 600; }

/* ---------- Contatti ---------- */
.contact { text-align: center; }
.contact .mail {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text);
}
.contact .channels { display: flex; gap: 24px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0;
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
}
