/* ==========================================================================
   IES SAS — Consulenza di direzione
   Foglio di stile principale
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

::selection {
  background: var(--green-500);
  color: var(--navy-950);
}

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #0a1925;
  --navy-900: #0f2233;
  --navy-800: #162c40;
  --navy-700: #24405a;
  --navy-600: #33536f;

  --green-600: #55761d;
  --green-500: #8fbe45;
  --green-400: #a6d05e;
  --green-100: #eef5e2;

  --paper: #ffffff;
  --cream: #f5f6f1;
  --sand: #eceee5;
  --ink: #13293c;
  --muted: #5d6d7b;
  --line: #e1e6de;

  --radius-lg: 26px;
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(15, 34, 51, 0.04),
    0 12px 28px -20px rgba(15, 34, 51, 0.28);
  --shadow-lg: 0 34px 70px -34px rgba(15, 34, 51, 0.42);

  --font-display: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}

.container--narrow {
  max-width: 880px;
}

.section {
  padding-block: clamp(4rem, 8vw, 7.5rem);
}

.section--cream {
  background: var(--cream);
}

.section--navy {
  background: var(--navy-900);
  color: #fff;
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(2.2rem, 4.5vw, 3.6rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__lead {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.13rem);
}

.section--navy .section__lead {
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-600);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.eyebrow--light {
  color: var(--green-400);
}

.section h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  margin-bottom: 1.1rem;
}

.section h2 .accent,
.page-hero h1 .accent {
  color: var(--green-500);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 0.8rem 1.2rem;
  background: var(--green-500);
  color: var(--navy-950);
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.92rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg.icon-arrow {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--green-500);
  color: var(--navy-950);
  box-shadow: 0 12px 26px -16px rgba(143, 190, 69, 0.8);
}

.btn--primary:hover {
  background: var(--green-400);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--navy-900);
  color: #fff;
}

.btn--dark:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--green-500);
  background: var(--green-100);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-700);
  text-decoration: none;
}

.arrow-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.arrow-link:hover {
  color: var(--green-600);
}

.arrow-link:hover svg {
  transform: translateX(4px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 14px 34px -26px rgba(15, 34, 51, 0.5);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 52px;
  height: 52px;
  flex: none;
  overflow: hidden;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px -10px rgba(15, 34, 51, 0.45);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1;
}

.brand__tag {
  display: block;
  margin-top: 5px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--ink);
  background: var(--cream);
}

.nav__link[aria-current="page"] {
  color: var(--ink);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-500);
  transform: translateX(-50%);
}

.nav__cta {
  margin-left: 12px;
  padding: 0.78rem 1.2rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.site-header.is-open .nav-toggle .icon-menu {
  display: none;
}

.site-header.is-open .nav-toggle .icon-close {
  display: block;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.4rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7.5rem);
  background: var(--navy-900);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  z-index: -2;
  width: min(760px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(143, 190, 69, 0.22) 0%,
    rgba(143, 190, 69, 0.06) 42%,
    transparent 68%
  );
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 10%, transparent 72%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.hero h1 {
  max-width: 15ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2.55rem, 5.4vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.038em;
}

.hero__lead {
  max-width: 54ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2.2rem;
}

.hero__areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 2.4rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  list-style: none;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__areas li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero__areas li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-500);
}

/* Hero visual: bento delle competenze */
.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
}

.hero__bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.hero__bento-brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__bento-brand .brand__mark {
  width: 54px;
  height: 54px;
  padding: 2px;
  border-color: rgba(255, 255, 255, 0.22);
}

.hero__bento-name {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
}

.hero__bento-tag {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero__bento-since {
  margin-left: auto;
  color: var(--green-400);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__bento-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 126px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.hero__bento-tile::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 190, 69, 0.18), transparent 70%);
  pointer-events: none;
}

.hero__bento-tile span {
  color: var(--green-400);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero__bento-tile strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero__bento-tile small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  line-height: 1.35;
}

/* ---------- Intro / approach ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(2.8rem, 6vw, 4.5rem);
}

.intro__body p {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.1rem);
}

.intro__body p:first-child {
  color: var(--ink);
  font-size: clamp(1.12rem, 1.7vw, 1.3rem);
  font-weight: 500;
  line-height: 1.6;
}

.intro__body p:last-child {
  margin-bottom: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pillar {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.pillar::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 190, 69, 0.16), transparent 70%);
  pointer-events: none;
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: #d5ddcb;
  box-shadow: var(--shadow-lg);
}

.pillar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-600);
}

.pillar__icon svg {
  width: 22px;
  height: 22px;
}

.pillar__num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #a8b3a0;
}

.pillar h3 {
  margin-bottom: 0.6rem;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ---------- Sectors ---------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sector {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.sector:hover {
  transform: translateY(-3px);
  border-color: #d5ddcb;
  box-shadow: var(--shadow-sm);
}

.sector__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--cream);
  color: var(--navy-700);
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.sector__icon svg {
  width: 21px;
  height: 21px;
}

.sector:hover .sector__icon {
  background: var(--green-500);
  color: var(--navy-950);
}

.sector__label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.sector__arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex: none;
  color: #a8b3a0;
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}

.sector:hover .sector__arrow {
  color: var(--green-600);
  transform: translateX(3px);
}

.sectors__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 2rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag {
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---------- CTA card ---------- */
.cta-wrap {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.2rem, 5vw, 4rem);
  border-radius: 32px;
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -5%;
  z-index: -1;
  width: 440px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(143, 190, 69, 0.28),
    rgba(143, 190, 69, 0.05) 48%,
    transparent 70%
  );
}

.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}

.cta-card__copy {
  max-width: 620px;
}

.cta-card h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.cta-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.2rem, 6.5vw, 5.5rem) clamp(2.8rem, 5.5vw, 4.6rem);
  background: var(--navy-900);
  color: #fff;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -8%;
  z-index: -2;
  width: min(720px, 85vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(143, 190, 69, 0.2),
    rgba(143, 190, 69, 0.04) 45%,
    transparent 68%
  );
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 5%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 5%, transparent 70%);
}

.page-hero__inner {
  max-width: 820px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--green-400);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.3);
}

.page-hero h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  letter-spacing: -0.035em;
}

.page-hero__lead {
  max-width: 64ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.team-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.person {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.person:has(details[open]) {
  border-color: #d3dcc7;
  box-shadow: var(--shadow-lg);
}

.person__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.person__avatar {
  width: 86px;
  height: 86px;
  flex: none;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line),
    0 14px 26px -16px rgba(15, 34, 51, 0.5);
}

.person__name {
  margin-bottom: 0.25rem;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.person__focus {
  margin: 0;
  color: var(--green-600);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.person__details {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.person__details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0 0.25rem;
  color: var(--navy-700);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.person__details summary::-webkit-details-marker {
  display: none;
}

.person__details summary:hover {
  color: var(--green-600);
}

.person__details summary svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.person__details[open] summary svg {
  transform: rotate(180deg);
}

.person__bio {
  padding-top: 0.9rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.person__bio p {
  margin: 0 0 0.9rem;
}

.person__bio p:last-of-type {
  margin-bottom: 0;
}

.person__bio h3 {
  margin: 1.5rem 0 0.55rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.person__bio ul {
  margin: 0.2rem 0 1rem;
  padding-left: 1.15rem;
}

.person__bio li {
  margin-bottom: 0.45rem;
}

.person__bio li::marker {
  color: var(--green-500);
}

.person__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy-700);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.person__linkedin svg {
  width: 15px;
  height: 15px;
}

.person__linkedin:hover {
  border-color: var(--green-500);
  background: var(--green-100);
  color: var(--ink);
}

.team-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 2.4rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--muted);
  font-size: 0.93rem;
}

.team-note p {
  margin: 0;
}

/* ---------- Partner internazionali ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.partner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.partner:hover {
  transform: translateY(-4px);
  border-color: #d5ddcb;
  box-shadow: var(--shadow-lg);
}

.partner__avatar {
  width: 96px;
  height: 96px;
  flex: none;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line),
    0 14px 26px -16px rgba(15, 34, 51, 0.5);
}

.partner__role {
  margin: 0 0 0.3rem;
  color: var(--green-600);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.partner__body h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.partner__body p:not(.partner__role) {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.partner .arrow-link {
  font-size: 0.82rem;
}

/* ---------- Experience page ---------- */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.exp-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.exp-card:hover {
  transform: translateY(-4px);
  border-color: #d5ddcb;
  box-shadow: var(--shadow-lg);
}

.exp-card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--green-100);
  color: var(--green-600);
}

.exp-card__icon svg {
  width: 24px;
  height: 24px;
}

.exp-card h3 {
  margin: 0;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
}

.exp-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.area {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 2.8vw, 2.2rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.area__num {
  display: block;
  margin-bottom: 1.6rem;
  color: var(--green-400);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.area h3 {
  margin-bottom: 0.6rem;
  font-size: 1.22rem;
}

.area p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
  line-height: 1.65;
}

.area::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 190, 69, 0.14), transparent 70%);
}

/* ---------- Aree di lavoro e clienti ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.work-item svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--green-600);
}

.work-item:last-child {
  grid-column: 1 / -1;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.client-group {
  padding: clamp(1.4rem, 2.4vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.client-group h3 {
  margin: 0 0 1rem;
  color: var(--green-600);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.client-group .tag-row {
  gap: 8px;
}

/* ---------- Contacts ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: start;
}

.contact-card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

.contact-card__intro {
  margin-bottom: 1.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-list {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-list__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-600);
}

.contact-list__icon svg {
  width: 19px;
  height: 19px;
}

.contact-list__label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list__value {
  display: inline-block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

a.contact-list__value:hover {
  color: var(--green-600);
}

.contact-list__note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.address-stack {
  display: grid;
  gap: 14px;
}

.address {
  position: relative;
  padding: 1.15rem 1.25rem 1.15rem 3.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.address__pin {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #fff;
  color: var(--green-600);
  box-shadow: 0 4px 10px -6px rgba(15, 34, 51, 0.35);
}

.address__pin svg {
  width: 15px;
  height: 15px;
}

.address h3 {
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.address p {
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

.address a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-600);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.address a svg {
  width: 13px;
  height: 13px;
}

.address a:hover {
  text-decoration: underline;
}

.contact-map {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: #fff;
}

.contact-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 80% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 80% 20%, #000, transparent 75%);
}

.contact-map__inner {
  position: relative;
}

.contact-map h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.contact-map p {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.6rem;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 1fr 1.1fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
}

.footer__brand .brand {
  margin-bottom: 1rem;
  color: #fff;
}

.footer__brand .brand__mark {
  border-color: rgba(255, 255, 255, 0.18);
}

.footer__brand .brand__name {
  color: #fff;
}

.footer__brand .brand__tag {
  color: rgba(255, 255, 255, 0.5);
}

.footer__brand p {
  max-width: 32ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.88rem;
  line-height: 1.65;
}

.site-footer h3 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__links {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer a:hover {
  color: var(--green-400);
}

.footer__contact {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.footer__contact svg {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  flex: none;
  color: var(--green-500);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  margin-top: clamp(2.2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.76rem;
  line-height: 1.6;
}

.footer__legal {
  text-align: right;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease),
    transform 0.25s var(--ease), background-color 0.2s var(--ease);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

.to-top:hover {
  background: var(--green-600);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal[data-delay="1"] {
  transition-delay: 0.08s;
}

.js .reveal[data-delay="2"] {
  transition-delay: 0.16s;
}

.js .reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero__visual {
    justify-self: center;
    width: min(100%, 380px);
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grid-3,
  .exp-grid,
  .area-grid,
  .work-grid,
  .client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 > :last-child,
  .exp-grid > :last-child,
  .area-grid > :last-child {
    grid-column: 1 / -1;
  }

  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 72px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0.8rem clamp(1.15rem, 4vw, 2rem) 1.2rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 26px 40px -30px rgba(15, 34, 51, 0.55);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .nav__link {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
  }

  .nav__link[aria-current="page"] {
    background: var(--cream);
  }

  .nav__link[aria-current="page"]::after {
    left: auto;
    right: 1.1rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .nav__cta {
    margin: 0.5rem 0 0;
    padding: 0.9rem 1.2rem;
  }

  .team-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
  }

  .footer__legal {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .grid-3,
  .exp-grid,
  .area-grid,
  .work-grid,
  .client-grid,
  .sector-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 > :last-child,
  .exp-grid > :last-child,
  .area-grid > :last-child {
    grid-column: auto;
  }

  .hero {
    padding-block: 2.6rem 3.6rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .hero__visual {
    width: min(100%, 320px);
  }

  .hero__bento {
    gap: 10px;
  }

  .hero__bento-brand {
    gap: 12px;
    padding: 16px;
  }

  .hero__bento-brand .brand__mark {
    width: 46px;
    height: 46px;
  }

  .hero__bento-name {
    font-size: 1.12rem;
  }

  .hero__bento-tag {
    font-size: 0.54rem;
  }

  .hero__bento-since {
    font-size: 0.55rem;
  }

  .hero__bento-tile {
    gap: 14px;
    min-height: 104px;
    padding: 14px;
  }

  .hero__bento-tile strong {
    font-size: 0.9rem;
  }

  .hero__bento-tile small {
    font-size: 0.64rem;
  }

  .hero__areas {
    gap: 8px 18px;
    font-size: 0.64rem;
  }

  .sectors__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-card {
    border-radius: 24px;
  }

  .cta-card__actions {
    width: 100%;
  }

  .cta-card__actions .btn {
    flex: 1 1 auto;
  }

  .person__head {
    align-items: flex-start;
  }

  .person__avatar {
    width: 68px;
    height: 68px;
  }

  .partner {
    flex-direction: column;
    gap: 14px;
  }

  .partner__avatar {
    width: 84px;
    height: 84px;
  }

  .person__name {
    font-size: 1.05rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .team-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
