/* =========================================================
   PSG – Professional Solution Group
   Foglio di stile principale
   Colori presi dal logo: blu notte #02063E, oro #F7BC2B
   ========================================================= */

/* Font ospitati sul sito (nessuna connessione a Google Fonts) */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-latin-700-italic.woff2") format("woff2"); }

:root {
  --navy: #02063e;
  --navy-2: #0c1257;
  --navy-3: #1a2170;
  --gold: #f7bc2b;
  --gold-2: #ffcf5a;
  --gold-dark: #966a00;
  --ink: #161a33;
  --muted: #5a5f78;
  --line: #e4e2da;
  --cream: #faf8f2;
  --white: #ffffff;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(2, 6, 62, 0.06);
  --shadow: 0 18px 50px -20px rgba(2, 6, 62, 0.28);
  --container: 1180px;
  --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;  /* numeri tutti della stessa altezza (Playfair li ha "all'antica") */
}

img { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.82); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 2000;
  background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 8px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }

.title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 22px; }
.title em { font-style: italic; color: var(--gold-dark); }
.section--navy .title em { color: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.section--navy .lead { color: rgba(255, 255, 255, 0.75); }
.section-head { margin-bottom: 60px; }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow::after { content: ""; width: 34px; height: 2px; background: var(--gold); }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 30px -10px rgba(247, 188, 43, 0.7); }
.btn--gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn--outline { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-3); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s ease, border-color .3s ease, height .3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 58px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__list { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav__link {
  position: relative; text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--navy); padding: 6px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: 11px 22px; font-size: 0.85rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 10px; background: var(--navy); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform .3s ease, opacity .3s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 90px; color: var(--white); overflow: hidden;
  background-color: var(--navy); background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero::after {
  content: ""; position: absolute; right: -180px; top: 50%; transform: translateY(-50%);
  width: 640px; height: 640px; border-radius: 50%;
  border: 2px solid rgba(247, 188, 43, 0.35); box-shadow: 0 0 0 60px rgba(247, 188, 43, 0.05);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-serif); color: var(--white); font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.08; max-width: 860px; margin-bottom: 26px;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 640px; color: rgba(255, 255, 255, 0.82); margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 760px;
  margin-top: 70px; padding-top: 34px; border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero__stats strong { display: block; font-family: var(--font-serif); font-size: 2.2rem; color: var(--gold); line-height: 1.1; }
.hero__stats span { font-size: 0.86rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- Hero pagine interne ---------- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 90px) 0 90px; color: var(--white); overflow: hidden;
  background-color: var(--navy); background-position: center; background-size: cover; background-repeat: no-repeat;
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; bottom: -220px; width: 460px; height: 460px; border-radius: 50%;
  border: 2px solid rgba(247, 188, 43, 0.3); pointer-events: none;
}
.page-hero h1 { font-family: var(--font-serif); color: var(--white); font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 18px; }
.page-hero p { max-width: 680px; font-size: 1.1rem; color: rgba(255, 255, 255, 0.8); margin: 0; }
.breadcrumb { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* Immagini di sfondo degli hero: WebP leggero, JPG per i browser piu' vecchi */
.hero { background-image: linear-gradient(105deg, rgba(2, 6, 62, 0.97) 0%, rgba(2, 6, 62, 0.9) 45%, rgba(2, 6, 62, 0.55) 100%), url("../img/strategica.jpg"); background-image: linear-gradient(105deg, rgba(2, 6, 62, 0.97) 0%, rgba(2, 6, 62, 0.9) 45%, rgba(2, 6, 62, 0.55) 100%), image-set(url("../img/strategica-1600.webp") type("image/webp"), url("../img/strategica.jpg") type("image/jpeg")); }
.page-hero { background-image: linear-gradient(100deg, rgba(2, 6, 62, 0.97) 0%, rgba(2, 6, 62, 0.85) 60%, rgba(2, 6, 62, 0.7) 100%), url("../img/strategica.jpg"); background-image: linear-gradient(100deg, rgba(2, 6, 62, 0.97) 0%, rgba(2, 6, 62, 0.85) 60%, rgba(2, 6, 62, 0.7) 100%), image-set(url("../img/strategica-1600.webp") type("image/webp"), url("../img/strategica.jpg") type("image/jpeg")); }
.page-hero--fiscale { background-image: linear-gradient(100deg, rgba(2, 6, 62, 0.97) 0%, rgba(2, 6, 62, 0.85) 60%, rgba(2, 6, 62, 0.7) 100%), url("../img/fiscale.jpg"); background-image: linear-gradient(100deg, rgba(2, 6, 62, 0.97) 0%, rgba(2, 6, 62, 0.85) 60%, rgba(2, 6, 62, 0.7) 100%), image-set(url("../img/fiscale-1600.webp") type("image/webp"), url("../img/fiscale.jpg") type("image/jpeg")); }
.page-hero--finanziaria { background-image: linear-gradient(100deg, rgba(2, 6, 62, 0.97) 0%, rgba(2, 6, 62, 0.85) 60%, rgba(2, 6, 62, 0.7) 100%), url("../img/finanziaria.jpg"); background-image: linear-gradient(100deg, rgba(2, 6, 62, 0.97) 0%, rgba(2, 6, 62, 0.85) 60%, rgba(2, 6, 62, 0.7) 100%), image-set(url("../img/finanziaria-1600.webp") type("image/webp"), url("../img/finanziaria.jpg") type("image/jpeg")); }
@media (max-width: 640px) {
  .hero { background-image: linear-gradient(105deg, rgba(2, 6, 62, 0.97) 0%, rgba(2, 6, 62, 0.9) 45%, rgba(2, 6, 62, 0.55) 100%), image-set(url("../img/strategica-1000.webp") type("image/webp"), url("../img/strategica.jpg") type("image/jpeg")); }
  .page-hero { background-image: linear-gradient(100deg, rgba(2, 6, 62, 0.97) 0%, rgba(2, 6, 62, 0.85) 60%, rgba(2, 6, 62, 0.7) 100%), image-set(url("../img/strategica-1000.webp") type("image/webp"), url("../img/strategica.jpg") type("image/jpeg")); }
  .page-hero--fiscale { background-image: linear-gradient(100deg, rgba(2, 6, 62, 0.97) 0%, rgba(2, 6, 62, 0.85) 60%, rgba(2, 6, 62, 0.7) 100%), image-set(url("../img/fiscale-1000.webp") type("image/webp"), url("../img/fiscale.jpg") type("image/jpeg")); }
  .page-hero--finanziaria { background-image: linear-gradient(100deg, rgba(2, 6, 62, 0.97) 0%, rgba(2, 6, 62, 0.85) 60%, rgba(2, 6, 62, 0.7) 100%), image-set(url("../img/finanziaria-1000.webp") type("image/webp"), url("../img/finanziaria.jpg") type("image/jpeg")); }
}

/* ---------- Layout a due colonne ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split--top { align-items: start; }
.split--top > :first-child { position: sticky; top: calc(var(--header-h) + 40px); }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; height: auto; }
.split__media::before {
  content: ""; position: absolute; inset: 28px -28px -28px 28px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.split__badge {
  position: absolute; left: -30px; bottom: 40px; background: var(--navy); color: var(--white);
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 260px;
}
.split__badge strong { display: block; font-family: var(--font-serif); color: var(--gold); font-size: 1.15rem; margin-bottom: 4px; }
.split__badge span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }

.quote {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.45;
  color: var(--navy); border-left: 3px solid var(--gold); padding: 6px 0 6px 26px; margin: 34px 0;
}

/* ---------- Card servizi / aree ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 32px 32px;
  text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__num { position: absolute; top: 22px; right: 26px; font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700; color: rgba(2, 6, 62, 0.06); line-height: 1; }
.icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(247, 188, 43, 0.16); color: var(--navy); margin-bottom: 24px; transition: background .35s ease, color .35s ease;
}
.icon svg { width: 28px; height: 28px; }
.card:hover .icon { background: var(--navy); color: var(--gold); }
.card h3 { font-family: var(--font-serif); font-size: 1.38rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.card__more svg { width: 16px; height: 16px; transition: transform .25s ease; }
.card:hover .card__more svg { transform: translateX(4px); }

/* ---------- Contesto (lista numerata) ---------- */
.context-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.12); border-radius: var(--radius); overflow: hidden; }
.context-item { background: var(--navy); padding: 34px 28px; transition: background .3s ease; }
.context-item:hover { background: var(--navy-2); }
.context-item b { display: block; font-family: var(--font-serif); color: var(--gold); font-size: 1.05rem; margin-bottom: 6px; }
.context-item h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 8px; }
.context-item p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.65); margin: 0; }

/* ---------- Problema / soluzione ---------- */
.ps { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ps__box { border-radius: var(--radius); padding: 48px 44px; }
.ps__box--problem { background: var(--white); border: 1px solid var(--line); }
.ps__box--solution { background: var(--navy); color: rgba(255, 255, 255, 0.8); }
.ps__box--solution h3 { color: var(--white); }
.ps__box h3 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 18px; }
.ps__label { display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.ps__box--problem .ps__label { background: rgba(2, 6, 62, 0.07); color: var(--navy); }
.ps__box--solution .ps__label { background: rgba(247, 188, 43, 0.18); color: var(--gold); }
.chips { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 22px 0 26px; list-style: none; }
.chips li { font-size: 0.85rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(247, 188, 43, 0.45); color: var(--white); }
.ps__claim { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 1.15rem; margin: 0; }

/* ---------- Perché PSG ---------- */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; list-style: none; }
.why li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--navy); }
.why li small { display: block; font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.check { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; margin-top: 1px; }
.check svg { width: 15px; height: 15px; }

/* ---------- Missione / CTA ---------- */
.mission { position: relative; text-align: center; overflow: hidden; }
.mission::before {
  content: "\201C"; position: absolute; left: 50%; top: -50px; transform: translateX(-50%);
  font-family: var(--font-serif); font-size: 16rem; line-height: 1; color: rgba(247, 188, 43, 0.12); pointer-events: none;
}
.mission blockquote {
  position: relative; margin: 0 auto; max-width: 900px; font-family: var(--font-serif); color: var(--white);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.3; font-weight: 700;
}
.mission blockquote em { color: var(--gold); }

.cta {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); border-radius: 24px; padding: 64px;
  color: rgba(255, 255, 255, 0.8); position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: rgba(247, 188, 43, 0.12); }
.cta h2 { font-family: var(--font-serif); color: var(--white); font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.cta p { margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; position: relative; z-index: 1; }

/* ---------- Pagina servizi ---------- */
.service-nav { position: sticky; top: var(--header-h); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.service-nav ul { display: flex; gap: 6px; list-style: none; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.service-nav ul::-webkit-scrollbar { display: none; }
.service-nav a { display: block; white-space: nowrap; text-decoration: none; font-size: 0.86rem; font-weight: 500; color: var(--muted); padding: 8px 16px; border-radius: 999px; transition: background .25s ease, color .25s ease; }
.service-nav a:hover, .service-nav a.is-active { background: var(--navy); color: var(--white); }

.service-block { display: grid; grid-template-columns: 340px 1fr; gap: 70px; padding: 90px 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block__intro { position: sticky; top: calc(var(--header-h) + 90px); align-self: start; }
.service-block__intro .icon { width: 72px; height: 72px; border-radius: 20px; background: var(--navy); color: var(--gold); }
.service-block__intro .icon svg { width: 34px; height: 34px; }
.service-block__intro span { display: block; font-family: var(--font-serif); font-size: 1rem; color: var(--gold-dark); font-weight: 700; margin-bottom: 8px; }
.service-block__intro h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 16px; }
.service-block__intro p { color: var(--muted); }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service-item { background: var(--cream); border-radius: var(--radius); padding: 28px 28px 24px; border: 1px solid transparent; transition: border-color .3s ease, background .3s ease, transform .3s ease; }
.service-item:hover { background: var(--white); border-color: var(--gold); transform: translateY(-3px); }
.service-item h3 { font-family: var(--font-sans); font-size: 1.04rem; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.service-item h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.service-item p { font-size: 0.92rem; color: var(--muted); margin: 0; }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.path { background: var(--white); border-radius: var(--radius); padding: 46px 42px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.path h3 { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 8px; }
.path > p { color: var(--muted); }
.path .eyebrow { margin-bottom: 12px; }
.path--how { margin-top: 28px; }
.steps--cols { columns: 2; column-gap: 48px; }
.steps--cols li { break-inside: avoid; }
.steps { list-style: none; counter-reset: step; margin-top: 22px; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); font-weight: 500; color: var(--navy); font-size: 0.95rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero); flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(247, 188, 43, 0.18); font-family: var(--font-serif); font-weight: 700; font-size: 0.85rem; color: var(--navy);
}

/* ---------- Team ---------- */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.team-grid > .member { flex: 0 1 calc((100% - 3 * 28px) / 4); min-width: 0; }
.member { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .35s ease, box-shadow .35s ease; }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member__photo { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--navy-3), var(--navy)); overflow: hidden; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s ease; }
.member:hover .member__photo img { transform: scale(1.05); }
.member__photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--gold); }
.member__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(247, 188, 43, 0.85); }
.member__placeholder svg { width: 45%; height: auto; opacity: 0.85; }
.member__body { padding: 26px 24px 28px; }
.member__body h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 4px; }
.member__role { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; }
.member__body p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- Valori / storia ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.value { padding: 36px 32px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.value .icon { background: rgba(247, 188, 43, 0.16); color: var(--gold); }
.value h3 { font-family: var(--font-serif); font-size: 1.35rem; margin-bottom: 10px; }
.value p { font-size: 0.95rem; margin: 0; color: rgba(255, 255, 255, 0.72); }

/* ---------- Contatti ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: start; }
.contact > *, .split > *, .ps > *, .paths > * { min-width: 0; }
.contact-info { background: var(--navy); color: rgba(255, 255, 255, 0.8); border-radius: var(--radius); padding: 46px 40px; }
.contact-info h2 { color: var(--white); font-family: var(--font-serif); font-size: 1.9rem; margin-bottom: 10px; }
.contact-list { list-style: none; margin: 30px 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.contact-list .icon { width: 46px; height: 46px; border-radius: 12px; margin: 0; background: rgba(247, 188, 43, 0.14); color: var(--gold); }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.contact-list a, .contact-list span { color: var(--white); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--gold); }
.btn--wa { background: #25d366; color: var(--navy); width: 100%; }
.btn--wa:hover { background: #3ee07b; transform: translateY(-2px); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 46px 42px; box-shadow: var(--shadow-sm); }
.form h2 { font-family: var(--font-serif); font-size: 1.9rem; margin-bottom: 8px; }
.form > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--cream);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; transition: border-color .25s ease, background .25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(247, 188, 43, 0.18); }
.field textarea { resize: vertical; min-height: 130px; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); flex-shrink: 0; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form-status { grid-column: 1 / -1; font-size: 0.92rem; font-weight: 500; margin: 0; }
.form-status.is-ok { color: #157347; }
.form-status.is-error { color: #b42318; }

.map { margin-top: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.map iframe { width: 100%; height: 420px; border: 0; filter: grayscale(0.3); }
.map-consent {
  height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 30px; text-align: center; line-height: 1.6; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: rgba(255, 255, 255, 0.8);
}
.map-consent .icon { margin: 0; background: rgba(247, 188, 43, 0.16); color: var(--gold); }
.map-consent strong { color: var(--white); font-size: 1.1rem; }
.map-consent p { max-width: 520px; margin: 0; font-size: 0.88rem; }
.map-consent p a { color: var(--gold); }
.map-consent__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Testo legale ---------- */
.prose { max-width: 820px; }
.prose h2 { font-family: var(--font-serif); font-size: 1.5rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; margin-bottom: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: #01042c; color: rgba(255, 255, 255, 0.68); padding: 90px 0 0; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 320px; }
.site-footer .footer-heading { color: var(--white); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 22px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: var(--gold); }
.social { display: flex; gap: 12px; margin-top: 22px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--white); transition: background .25s ease, border-color .25s ease, color .25s ease; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.social svg { width: 18px; height: 18px; }
.nav__social { display: none; }
.contact-social { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.contact-social small { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.contact-social .social { margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 24px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* WhatsApp flottante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 58px; height: 58px; border-radius: 50%;
  background: #1da851; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(29, 168, 81, 0.7);
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Animazioni di comparsa ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .split__media::before { inset: 20px -20px -20px 20px; }
}

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .context-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid > .member { flex-basis: calc((100% - 28px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 36px; }
  .service-block__intro { position: static; }
  .split { gap: 60px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { height: 42px; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px 24px 40px; background: var(--white);
    transform: translateX(100%); transition: transform .35s ease; overflow-y: auto; visibility: hidden;
  }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: 18px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--gold-dark); }
  .nav .btn { margin-top: 26px; padding: 16px; font-size: 1rem; }
  .nav__social { display: flex; justify-content: center; margin-top: 30px; }
  .nav__social a { color: var(--navy); border-color: var(--line); width: 48px; height: 48px; }
  .nav-open { overflow: hidden; }

  .section { padding: 80px 0; }
  .split, .ps, .paths, .contact, .cta { grid-template-columns: 1fr; }
  .split__media { max-width: 520px; }
  .split--top > :first-child { position: static; }
  .split__media::before { inset: 18px -14px -18px 14px; }
  .split__badge { left: 16px; bottom: 16px; }
  .cta { padding: 46px 32px; }
  .cta__actions { justify-content: flex-start; }
  .hero::after { width: 420px; height: 420px; right: -260px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 20px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }
  .cards, .context-grid, .why, .values, .service-list, .form-grid { grid-template-columns: 1fr; }
  .team-grid { max-width: 380px; margin: 0 auto; }
  .team-grid > .member { flex-basis: 100%; }
  .steps--cols { columns: 1; }
  .hero__stats { grid-template-columns: 1fr; gap: 16px; margin-top: 50px; }
  .hero__stats strong { font-size: 1.8rem; }
  .hero__actions .btn { width: 100%; }
  .ps__box, .path, .form, .contact-info { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .map iframe, .map-consent { height: 360px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
