/* =================================================================
   Alex Patocchi — IT System Administrator
   Sistema di design: stile svizzero / tecnico
   Palette blu · bianco · grigio
   ================================================================= */

/* ---- Font (Google Fonts caricati nelle pagine) ----
   Display/Heading : Archivo
   Body            : Hanken Grotesk
   Mono / etichette: JetBrains Mono
------------------------------------------------------------------ */

:root {
  /* Colori */
  --ink:          #0a1f33;   /* testo principale, navy quasi nero */
  --ink-soft:     #1d3850;
  --blue:         #11468f;   /* blu corporate primario */
  --blue-bright:  #2563eb;   /* blu accento / interattivo */
  --blue-700:     #1d4ed8;
  --blue-soft:    #e9f0fb;   /* sfondo azzurrino tenue */
  --blue-line:    #c9ddf7;
  --grey-bg:      #f4f6fa;   /* sfondo grigio chiaro */
  --grey-50:      #fafbfd;
  --grey-line:    #e2e8f1;   /* bordi / linee sottili */
  --grey-mute:    #5c6b7e;   /* testo secondario */
  --grey-faint:   #8a98a8;
  --white:        #ffffff;

  /* Tipografia */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 8px;

  /* Ombre */
  --shadow-sm: 0 1px 2px rgba(10, 31, 51, .04), 0 2px 8px rgba(10, 31, 51, .04);
  --shadow-md: 0 4px 16px rgba(10, 31, 51, .07), 0 12px 32px rgba(10, 31, 51, .06);
  --shadow-blue: 0 10px 30px rgba(37, 99, 235, .18);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Tipografia ---- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--blue-bright);
  display: inline-block;
}

/* ---- Layout utility ---- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 10vw, 130px); }
.section--grey { background: var(--grey-bg); }
.section--ink { background: var(--ink); color: #d6e0ec; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink p { color: #aebccd; }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 720px; }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 16px; font-size: 1.08rem; }

/* ---- Bottoni ---- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .98rem;
  padding: .85em 1.5em;
  border-radius: var(--radius);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn-primary { background: var(--blue-bright); color: var(--white); box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--grey-line); }
.btn-ghost:hover { border-color: var(--blue-bright); color: var(--blue-bright); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* =================================================================
   HEADER
   ================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .32s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-color: var(--grey-line); box-shadow: var(--shadow-sm); }
/* Header a scomparsa (attivato via JS solo su telefono): scorri giù = si nasconde. */
.site-header.header-hidden { transform: translateY(-100%); }
.header-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 16px var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
  font-family: var(--f-display); font-weight: 800; font-size: 1.05rem;
  border-radius: var(--radius); letter-spacing: -.02em;
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 55%, var(--blue-bright) 55%);
}
/* Quando brand-mark è un <img> (logo reale) — annulla gli stili testuali */
img.brand-mark {
  background: none; display: block; object-fit: cover;
  border-radius: 10px; overflow: visible;
}
img.brand-mark::after { display: none; content: none; }

/* Badge stato generico (es. "In corso", "in rafforzamento") */
.tag-progress {
  display: inline-block; vertical-align: middle;
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--blue-bright); background: var(--blue-soft); border: 1px solid var(--blue-line);
  border-radius: 100px; padding: 3px 9px; font-weight: 500; white-space: nowrap;
}

/* Obiettivi professionali — testo editoriale pulito */
.objective { max-width: 70ch; }
.objective p { font-size: 1.12rem; line-height: 1.7; color: var(--grey-mute); margin: 0; }
.objective p:first-child { color: var(--ink); font-weight: 500; }
.objective p + p { margin-top: 14px; }

/* Interessi */
.interests { display: flex; flex-wrap: wrap; gap: 12px; }
.interest {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--radius);
  padding: 12px 18px; font-weight: 600; font-size: .98rem;
}
.interest svg { width: 18px; height: 18px; color: var(--blue-bright); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.brand-text small { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-mute); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: .94rem; font-weight: 500;
  padding: .5em .9em; border-radius: var(--radius);
  color: var(--ink-soft); position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.main-nav a:hover { color: var(--blue-bright); }
.main-nav a.active { color: var(--blue-bright); }
.main-nav a.active::after {
  content: ""; position: absolute; left: .9em; right: .9em; bottom: 2px; height: 2px;
  background: var(--blue-bright); border-radius: 2px;
}
.header-right { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Su desktop il bottone "Contattami" porta già alla pagina contatti:
   nascondo la voce di menu "Contatti" per non averla doppia.
   Su mobile resta visibile (lì il bottone è nascosto).
   Per riavere la voce anche su desktop, elimina questo blocco. */
@media (min-width: 721px) {
  .main-nav a[href="contatti.html"] { display: none; }
  /* Spinge il menu verso destra così resta accanto al bottone "Contattami":
     a sinistra solo il logo, a destra menu + bottone in fila. */
  .main-nav { margin-left: auto; }
}

/* =================================================================
   HERO
   ================================================================= */
.hero { position: relative; padding-block: clamp(70px, 11vw, 150px) clamp(60px, 9vw, 120px); overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grey-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grey-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 0%, transparent 75%);
  opacity: .6;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey-mute); background: var(--white);
  border: 1px solid var(--grey-line); padding: 7px 14px; border-radius: 100px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #18b368; box-shadow: 0 0 0 0 rgba(24,179,104,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(24,179,104,.45); } 70% { box-shadow: 0 0 0 10px rgba(24,179,104,0); } 100% { box-shadow: 0 0 0 0 rgba(24,179,104,0); } }
.hero h1 { margin: 26px 0 0; }
.hero h1 .accent { color: var(--blue-bright); }
.hero-role { font-family: var(--f-mono); font-size: clamp(.85rem, 1.6vw, 1rem); letter-spacing: .12em; text-transform: uppercase; color: var(--grey-mute); margin-top: 18px; }
.hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-soft); margin-top: 26px; max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Hero card / "system panel" */
.hero-panel {
  background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.hero-panel-top {
  background: var(--ink); color: var(--white);
  padding: 14px 18px; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em;
}
.hero-panel-top .dots { display: flex; gap: 6px; }
.hero-panel-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); }
.hero-panel-body { padding: 22px; }
.hero-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--grey-line); }
.hero-stat:last-child { border-bottom: none; }
.hero-stat .k { font-family: var(--f-mono); font-size: .78rem; color: var(--grey-mute); letter-spacing: .03em; }
.hero-stat .v { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.hero-stat .v small { font-family: var(--f-body); font-weight: 500; color: var(--grey-mute); font-size: .8rem; }

/* =================================================================
   AVATAR
   ================================================================= */
.avatar-ring {
  width: 132px; height: 132px; border-radius: 50%;
  padding: 5px; background: conic-gradient(from 140deg, var(--blue-bright), var(--blue), var(--blue-soft), var(--blue-bright));
  display: grid; place-items: center;
}
.avatar-ring .inner {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--grey-bg);
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 2.4rem; color: var(--blue);
}
.avatar-ring .inner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* =================================================================
   CARD GENERICA
   ================================================================= */
.card {
  background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-line); }

/* =================================================================
   HIGHLIGHT / STATS (home)
   ================================================================= */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--grey-line); border: 1px solid var(--grey-line); border-radius: var(--radius-lg); overflow: hidden; }
.stat-cell { background: var(--white); padding: 32px 26px; }
.stat-cell .num { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--blue); letter-spacing: -.03em; line-height: 1; }
.stat-cell .lbl { margin-top: 10px; font-size: .92rem; color: var(--grey-mute); }

/* =================================================================
   TIMELINE (CV — esperienza)
   ================================================================= */
.timeline { position: relative; margin-top: 12px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--grey-line); }
.tl-item { position: relative; padding: 0 0 44px 52px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--blue-bright); z-index: 1;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.tl-item.current::before { background: var(--blue-bright); box-shadow: 0 0 0 5px rgba(37,99,235,.15); }
.tl-item:hover::before { transform: scale(1.18); }
.tl-period { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; color: var(--blue-bright); text-transform: uppercase; }
.tl-role { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; margin-top: 6px; }
.tl-org { color: var(--grey-mute); font-size: .96rem; margin-top: 2px; }
.tl-org .badge-live { display: inline-block; margin-left: 8px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; color: #18b368; border: 1px solid rgba(24,179,104,.4); border-radius: 100px; padding: 2px 8px; vertical-align: middle; }
.tl-points { margin-top: 16px; display: grid; gap: 8px; }
.tl-points li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: .96rem; }
.tl-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 1.5px; background: var(--blue-bright); }

/* =================================================================
   COMPETENZE — filtro + griglia
   ================================================================= */
.skill-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.skill-filter button {
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .6em 1.1em; border-radius: 100px; border: 1px solid var(--grey-line); color: var(--grey-mute);
  background: var(--white); transition: all .25s var(--ease);
}
.skill-filter button:hover { border-color: var(--blue-line); color: var(--ink); }
.skill-filter button.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card { background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--radius-lg); padding: 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.skill-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-line); }
.skill-card .sc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.skill-card .sc-ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--radius); background: var(--blue-soft); display: grid; place-items: center; color: var(--blue-bright); }
.skill-card .sc-ico svg { width: 21px; height: 21px; }
.skill-card .sc-cat { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-mute); }
.skill-card h4 { font-size: 1.05rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--f-mono); font-size: .76rem; padding: .4em .8em; border-radius: var(--radius); background: var(--grey-bg); border: 1px solid var(--grey-line); color: var(--ink-soft); }
.skill-card:hover .chip { border-color: var(--blue-line); }

/* =================================================================
   LINGUE — barre animate
   ================================================================= */
.lang-list { display: grid; gap: 22px; }
.lang-row { }
.lang-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.lang-name { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.lang-name .lang-note { font-family: var(--f-mono); font-weight: 400; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-mute); margin-left: 8px; vertical-align: middle; }
.lang-level { font-family: var(--f-mono); font-size: .8rem; color: var(--blue-bright); letter-spacing: .04em; }
.lang-track { height: 8px; background: var(--grey-line); border-radius: 100px; overflow: hidden; }
.lang-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); border-radius: 100px; transition: width 1.2s var(--ease); }

/* =================================================================
   FORMAZIONE + REFERENZE + DATI
   ================================================================= */
.edu-grid, .ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.edu-card .edu-period { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; color: var(--blue-bright); text-transform: uppercase; }
.edu-card h4 { margin: 10px 0 4px; }
.edu-card .edu-school { color: var(--grey-mute); font-size: .94rem; }
.ref-card .ref-name { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; }
.ref-card .ref-role { color: var(--grey-mute); font-size: .9rem; margin-top: 3px; }
.ref-card .ref-org { color: var(--blue-bright); font-family: var(--f-mono); font-size: .78rem; margin-top: 8px; letter-spacing: .03em; }
.ref-card .ref-tel { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--grey-line); color: var(--ink); font-weight: 600; font-size: .95rem; width: 100%; }
.ref-card .ref-tel svg { width: 16px; height: 16px; color: var(--blue-bright); }
.ref-card .ref-tel:hover { color: var(--blue-bright); }

.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.fact { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--ink-soft); background: var(--white); border: 1px solid var(--grey-line); border-radius: 100px; padding: 8px 16px; }
.fact svg { width: 16px; height: 16px; color: var(--blue-bright); }

/* =================================================================
   SERVIZI — pricing
   ================================================================= */
.svc-split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc-feature {
  position: relative; background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--radius-lg);
  padding: 38px 34px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.svc-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-line); }
.svc-feature .svc-ico { width: 54px; height: 54px; border-radius: var(--radius); background: var(--ink); color: var(--white); display: grid; place-items: center; margin-bottom: 22px; }
.svc-feature .svc-ico svg { width: 27px; height: 27px; }
.svc-feature h3 { font-size: 1.5rem; }
.svc-feature p { margin-top: 12px; }
.svc-tag { position: absolute; top: 26px; right: 0; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; background: var(--blue-soft); color: var(--blue); padding: 6px 16px 6px 12px; border-radius: 100px 0 0 100px; }

.price-list { display: grid; gap: 14px; margin-top: 26px; }
.price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border: 1px solid var(--grey-line); border-radius: var(--radius-lg);
  background: var(--grey-50); transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.price-row:hover { border-color: var(--blue-line); background: var(--white); transform: translateX(4px); }
.price-row.featured { border-color: var(--blue-bright); background: var(--white); box-shadow: var(--shadow-blue); }
.price-info .pt { font-family: var(--f-display); font-weight: 700; font-size: 1.06rem; display: flex; align-items: center; gap: 10px; }
.price-info .pt .star { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .08em; background: var(--blue-bright); color: #fff; padding: 2px 8px; border-radius: 100px; }
.price-info .pd { font-size: .9rem; color: var(--grey-mute); margin-top: 4px; }
.price-amt { text-align: right; flex-shrink: 0; }
.price-amt .amt { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.price-amt .cur { font-family: var(--f-mono); font-size: .7rem; color: var(--grey-mute); letter-spacing: .08em; display: block; }

.svc-note { margin-top: 22px; font-size: .88rem; color: var(--grey-mute); display: flex; gap: 10px; align-items: flex-start; }
.svc-note svg { width: 17px; height: 17px; color: var(--blue-bright); flex-shrink: 0; margin-top: 2px; }

/* Zona di copertura */
.zones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.zone-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .94rem; background: var(--white); border: 1px solid var(--blue-line); color: var(--blue); border-radius: 100px; padding: 9px 18px; }
.zone-pill svg { width: 16px; height: 16px; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pf-card { display: block; background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.pf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-line); }
.pf-window { background: var(--ink); padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.pf-window .dots { display: flex; gap: 6px; }
.pf-window .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); }
.pf-window .url { font-family: var(--f-mono); font-size: .76rem; color: #aebccd; background: rgba(255,255,255,.07); padding: 4px 12px; border-radius: 100px; flex: 1; }
.pf-body { padding: 26px; }
.pf-body .pf-name { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-body .pf-status { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-bright); background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: 100px; padding: 3px 9px; font-weight: 500; }
.pf-body .pf-desc { color: var(--grey-mute); font-size: .94rem; margin-top: 8px; }
.pf-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--blue-bright); font-weight: 600; font-size: .92rem; }
.pf-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.pf-card:hover .pf-link svg { transform: translate(2px, -2px); }

/* Processo / step */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius-lg); overflow: hidden; }
.step { background: var(--ink); padding: 30px 26px; }
.step .step-n { font-family: var(--f-mono); font-size: .8rem; color: var(--blue-bright); letter-spacing: .1em; }
.step h4 { color: var(--white); margin: 14px 0 8px; font-size: 1.1rem; }
.step p { font-size: .9rem; }

/* =================================================================
   CTA banner
   ================================================================= */
.cta-banner { position: relative; overflow: hidden; background: var(--blue); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 70px); text-align: center; }
.cta-banner::before, .cta-banner::after { content: ""; position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%); }
.cta-banner::before { width: 360px; height: 360px; top: -150px; right: -80px; }
.cta-banner::after { width: 300px; height: 300px; bottom: -160px; left: -60px; }
.cta-banner * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,.85); margin: 16px auto 0; max-width: 52ch; }
.cta-banner .hero-cta { justify-content: center; }

/* =================================================================
   FORM (contatti)
   ================================================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-mute); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--grey-line); border-radius: var(--radius); background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .82rem; color: var(--grey-mute); margin-top: 6px; }
.form-msg { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius); font-size: .92rem; display: none; }
.form-msg.ok { display: block; background: rgba(24,179,104,.1); color: #0c7a45; border: 1px solid rgba(24,179,104,.3); }
.form-msg.err { display: block; background: rgba(220,38,38,.08); color: #b91c1c; border: 1px solid rgba(220,38,38,.25); }

.contact-aside { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--grey-line); border-radius: var(--radius-lg); background: var(--white); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.contact-item:hover { border-color: var(--blue-line); transform: translateY(-2px); }
.contact-item .ci-ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: var(--radius); background: var(--blue-soft); color: var(--blue-bright); display: grid; place-items: center; }
.contact-item .ci-ico svg { width: 21px; height: 21px; }
.contact-item .ci-label { display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-mute); }
.contact-item .ci-value { display: block; font-weight: 600; font-size: 1.02rem; margin-top: 5px; line-height: 1.4; word-break: break-word; }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer { background: var(--ink); color: #aebccd; padding-block: clamp(54px, 7vw, 80px) 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-mark { background: var(--white); color: var(--ink); }
.footer-brand img.brand-mark { background: none; }
.footer-brand p { color: #8a98a8; margin-top: 18px; max-width: 32ch; font-size: .94rem; }
.footer-col h5 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col a, .footer-col span { display: block; color: #aebccd; font-size: .94rem; padding: 5px 0; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 26px; font-size: .82rem; color: #71808f; font-family: var(--f-mono); letter-spacing: .03em; }
.footer-bot .secure { display: inline-flex; align-items: center; gap: 8px; }
.footer-bot .secure svg { width: 14px; height: 14px; color: #18b368; }

/* =================================================================
   REVEAL ON SCROLL
   ================================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* Page hero (sottopagine) */
.page-hero { padding-block: clamp(54px, 8vw, 110px) clamp(30px, 4vw, 50px); position: relative; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.page-hero p { font-size: 1.12rem; margin-top: 20px; max-width: 60ch; }

/* CV: blocco Formazione + Lingue affiancati (prima era uno style inline,
   che impediva l'impilamento su telefono). */
.cv-two { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 64px); }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { max-width: 460px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--grey-line); padding: 12px var(--gut) 22px;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s linear .28s; }
  body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease); }
  .main-nav a { padding: 14px 6px; border-bottom: 1px solid var(--grey-line); font-size: 1.05rem; }
  .main-nav a.active::after { display: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .svc-split, .edu-grid, .ref-grid, .portfolio-grid, .contact-layout { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .price-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .price-amt { text-align: left; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bot { flex-direction: column; }
  /* Formazione + Lingue impilate su telefono (niente più overflow laterale). */
  .cv-two { grid-template-columns: 1fr; gap: 40px; }
  /* Header solido su telefono: niente blur a ogni frame = scroll più fluido. */
  .site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* Pannello profilo: su telefono i valori lunghi (es. "Informatico di
     gestione SSS") si accavallavano sull'etichetta. Qui metto l'etichetta
     sopra e il valore sotto, con l'anno ("2028") su una riga a parte. */
  .hero-stat { flex-direction: column; align-items: flex-start; gap: 5px; }
  .hero-stat .v { line-height: 1.35; }
  .hero-stat .v small[data-content="hero_panel_formation_small"] { display: block; margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =================================================================
   Contenitore scorrevole per liste lunghe (aggiungi la classe
   .list-scroll al contenitore che vuoi limitare in altezza).
   Con poche voci non scrolla; oltre l'altezza compare la barra
   solo per quel riquadro. Su mobile torna a fluire normalmente.
   ================================================================= */
.list-scroll {
  max-height: clamp(360px, 60vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;          /* non trascina lo scroll della pagina */
  padding-right: 10px;                   /* spazio per la scrollbar */
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: var(--blue-line) transparent;
}
.list-scroll::-webkit-scrollbar { width: 8px; }
.list-scroll::-webkit-scrollbar-track { background: transparent; }
.list-scroll::-webkit-scrollbar-thumb { background: var(--blue-line); border-radius: 100px; }
.list-scroll::-webkit-scrollbar-thumb:hover { background: var(--blue-bright); }
.list-scroll:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 4px; border-radius: 8px; }

@media (max-width: 760px) {
  /* su touch lo scroll annidato è scomodo: la lista torna a fluire */
  .list-scroll { max-height: none; overflow: visible; padding-right: 0; }
}
