:root {
  --ink: #11161a;
  --muted: #4f5a62;
  --paper: #f3f0ea;
  --surface: #ffffff;
  --soft: #e8e8e8;
  --navy: #183a59;
  --navy-deep: #0b2f4f;
  --gold: #d8bd94;
  --gold-soft: #ead8bd;
  --line: rgba(17, 22, 26, 0.14);
  --shadow: 0 22px 60px rgba(17, 22, 26, 0.12);
  --header-height: 112px;
  --sans: "Segoe UI", Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.62;
}

body.nav-open {
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.section-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(24, 58, 89, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 10px 40px rgba(17, 22, 26, 0.12);
}

.topbar {
  color: rgba(255, 255, 255, 0.92);
  background: var(--navy-deep);
  font-size: 0.86rem;
}

.topbar__inner {
  width: min(1240px, calc(100% - 48px));
  min-height: 34px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.topbar a:hover {
  color: var(--gold-soft);
}

.nav {
  width: min(1240px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  width: 360px;
  height: 62px;
  max-width: 40vw;
  overflow: hidden;
}

.brand__logo {
  display: block;
  width: 87%;
  height: 108px;
  max-height: 123px;
  object-fit: contain;
  object-position: left center;
}

.nav__links {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 2px;
  color: #1e2a32;
  font-size: 0.82rem;
  font-weight: 700;
}

.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 78px;
  padding: 0 11px;
  overflow: hidden;
  transition: color 180ms ease;
}

.nav__links a::before,
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav__links a::before {
  inset: 0;
  background: rgba(216, 189, 148, 0.18);
  transform: translateY(100%);
}

.nav__links a::after {
  bottom: 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--navy);
}

.nav__links a:hover::before,
.nav__links a.is-active::before {
  transform: translateY(0);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  gap: 4px;
  padding: 10px;
  background: #f6f1e8;
  border: 1px solid rgba(24, 58, 89, 0.28);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.quick-rail {
  position: fixed;
  top: 156px;
  right: 0;
  z-index: 45;
  display: grid;
  gap: 6px;
}

.quick-rail__item {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  transition: width 180ms ease, background 180ms ease;
}

.quick-rail__item--gold {
  color: #111;
  background: var(--gold);
}

.quick-rail__item:hover {
  width: 58px;
  background: var(--navy-deep);
}

.quick-rail__item--gold:hover {
  background: var(--gold-soft);
}

.quick-rail svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.nav-open .quick-rail {
  opacity: 0;
  pointer-events: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.12;
  font-weight: 500;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 6.2vw, 5.45rem);
}

h2 {
  max-width: 740px;
  font-size: clamp(1.72rem, 3.2vw, 3.05rem);
}

h3 {
  font-size: 1.28rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: #9a3147;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #061e33;
  background: #f0c769;
  border-color: #f0c769;
}

.button--primary:hover {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
}

.button--ghost:hover {
  color: #061e33;
  background: #fff;
  border-color: #fff;
}

.hero {
  position: relative;
  min-height: 86vh;
  padding: calc(var(--header-height) + 84px) 0 96px;
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.34));
}

.hero__content {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.hero .eyebrow {
  color: #f1cb7a;
}

.hero__lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.service-strip {
  background: var(--surface);
  border-top: 8px solid var(--gold-soft);
  border-bottom: 5px solid var(--navy);
}

.service-strip__grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: stretch;
}

.service-strip__intro {
  padding: 58px 30px;
  background: var(--soft);
}

.service-strip__intro h2 {
  margin-bottom: 28px;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.service-strip__intro p,
.rich-text p,
.side-panel p,
.feature-band p,
.detail-card p {
  color: var(--muted);
}

.service-strip__intro p {
  margin: 0;
  font-size: 0.98rem;
}

.service-strip__intro p + p {
  margin-top: 22px;
}

.service-strip__cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px;
  padding: 60px 40px;
  background: #fff;
}

.service-tile {
  min-width: 0;
}

.service-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: block;
  margin-bottom: 20px;
}

.service-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 22px;
  height: 30px;
  border: 2px solid #0b0f12;
}

.service-icon::after {
  content: "%";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 2px solid #0b0f12;
  border-radius: 50%;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.service-tile h3 {
  max-width: 165px;
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 1.55vw, 1.52rem);
}

.service-tile p {
  margin: 0;
  color: #111;
  font-size: 0.9rem;
}

.service-tile a {
  display: inline-flex;
  margin-top: 18px;
  color: #caa77a;
  font-family: var(--serif);
  font-size: 0.92rem;
  transition: color 180ms ease, transform 180ms ease;
}

.service-tile a:hover {
  color: var(--navy);
  transform: translateX(4px);
}

.feature-band,
.digital-preview,
.content-section {
  padding: 96px 0;
}

.feature-band {
  background: #f8f5ef;
}

.feature-band__grid,
.digital-preview__grid,
.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 7vw, 84px);
  align-items: start;
}

.feature-band p {
  margin: 0 0 24px;
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  color: var(--navy);
  font-weight: 900;
}

.text-link::after {
  content: ">";
  margin-left: 10px;
  color: var(--gold);
}

.digital-preview {
  color: #fff;
  background: var(--navy);
}

.digital-preview .eyebrow {
  color: #f0c769;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-list a {
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  transition: background 180ms ease, transform 180ms ease;
}

.mini-list a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(6px);
}

.page-hero {
  position: relative;
  min-height: 390px;
  padding: calc(var(--header-height) + 84px) 0 74px;
  display: flex;
  align-items: end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-hero .eyebrow {
  color: #f0c769;
}

.content-section {
  background: #fff;
}

.side-panel {
  padding: 42px 34px;
  background: var(--soft);
  border-bottom: 5px solid var(--gold);
}

.side-panel h2 {
  margin-bottom: 22px;
  font-size: clamp(1.7rem, 2.35vw, 2.35rem);
}

.side-panel p {
  margin: 0;
}

.rich-text {
  font-size: 1rem;
}

.rich-text p:first-child {
  margin-top: 0;
}

.credential-grid,
.contact-layout,
.service-detail-grid {
  display: grid;
  gap: 18px;
}

.credential-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.credential-grid div,
.contact-card,
.detail-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 22, 26, 0.06);
}

.credential-grid strong,
.credential-grid span,
.contact-card strong,
.contact-card span,
.contact-card a {
  display: block;
}

.credential-grid strong,
.contact-card strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
}

.credential-grid span,
.contact-card span,
.contact-card a {
  margin-top: 8px;
  color: var(--muted);
}

.contact-card a:hover {
  color: var(--navy);
}

.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card {
  scroll-margin-top: 140px;
}

.detail-card h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
}

.detail-card p {
  margin: 0;
}

.detail-card p + p {
  margin-top: 14px;
}

.contact-form {
  padding: 34px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.request-form label:nth-last-of-type(1),
.request-form .button,
.request-form .form-note {
  grid-column: 1 / -1;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #1e2a32;
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(17, 22, 26, 0.18);
  outline: none;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(24, 58, 89, 0.14);
}

.form-note {
  min-height: 26px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  flex-shrink: 0;
  padding: 24px 0 26px;
  color: rgba(232, 238, 242, 0.74);
  background: #09263f;
  border-top: 3px solid rgba(216, 189, 148, 0.75);
  font-size: 0.84rem;
}

.site-footer strong {
  display: block;
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}

.site-footer p {
  max-width: 760px;
  margin: 6px 0 0;
  line-height: 1.5;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer__grid div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer__grid a:hover {
  color: var(--gold-soft);
}

@media (max-width: 1120px) {
  .nav__links {
    gap: 0;
    font-size: 0.82rem;
  }

  .nav__links a {
    padding: 0 8px;
  }

  .service-strip__grid {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .service-strip__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 78px;
  }

  .topbar {
    display: none;
  }

  .section-shell,
  .hero__content,
  .nav {
    width: min(100% - 28px, 1240px);
  }

  .nav {
    min-height: 78px;
  }

  .nav-toggle {
    display: inline-grid;
    position: fixed;
    top: 16px;
    right: auto;
    left: min(calc(100vw - 58px), 332px);
    z-index: 90;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] {
    background: #fff;
    border-color: var(--gold);
    transform: translateY(2px);
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 112px 28px 32px;
    color: var(--ink);
    background: rgba(8, 26, 42, 0.84);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  .nav__links::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    width: min(340px, calc(100vw - 44px));
    min-height: 420px;
    background: #fff;
    border-top: 5px solid var(--gold);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    transform: translate(-50%, -46%) scale(0.96);
    transition: transform 220ms ease;
  }

  .nav__links::after {
    content: "Menu";
    position: absolute;
    left: 50%;
    top: calc(50% - 178px);
    z-index: 1;
    width: min(292px, calc(100vw - 92px));
    padding-bottom: 12px;
    color: var(--navy);
    border-bottom: 1px solid rgba(17, 22, 26, 0.12);
    font-family: var(--serif);
    font-size: 1.34rem;
    font-weight: 600;
    transform: translateX(-50%);
  }

  .nav__links.is-open,
  .nav__links:target {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__links.is-open::before,
  .nav__links:target::before {
    transform: translate(-50%, -50%) scale(1);
  }

  .nav__links a {
    position: relative;
    z-index: 1;
    width: min(292px, calc(100vw - 92px));
    min-height: 50px;
    margin: 0 auto;
    padding: 0 18px;
    border-bottom: 1px solid rgba(17, 22, 26, 0.1);
    font-size: 0.98rem;
    font-weight: 700;
    background: transparent;
    transition: background 160ms ease, color 160ms ease, padding-left 160ms ease;
  }

  .nav__links a:first-child {
    border-top: 1px solid rgba(17, 22, 26, 0.1);
  }

  .nav__links a:hover,
  .nav__links a.is-active {
    color: var(--navy);
    background: rgba(216, 189, 148, 0.16);
    padding-left: 24px;
  }

  .nav__links a::before,
  .nav__links a::after {
    display: none;
  }

  .quick-rail {
    top: auto;
    right: auto;
    left: 12px;
    bottom: 12px;
    grid-auto-flow: column;
    gap: 4px;
  }

  .quick-rail__item,
  .quick-rail__item:hover {
    width: 40px;
    height: 40px;
  }

  .quick-rail svg {
    width: 19px;
    height: 19px;
  }

  .hero {
    min-height: 78vh;
    padding: calc(var(--header-height) + 70px) 0 70px;
  }

  .service-strip__grid,
  .feature-band__grid,
  .digital-preview__grid,
  .two-column,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .service-strip__intro {
    padding: 44px 28px;
  }

  .service-strip__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 42px 28px;
  }

  .page-hero {
    min-height: 320px;
    padding: calc(var(--header-height) + 64px) 0 54px;
  }

  .contact-layout,
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid div:last-child {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .section-shell,
  .hero__content,
  .nav {
    width: auto;
    max-width: 100%;
    margin-left: 20px;
    margin-right: 20px;
  }

  .brand {
    width: 238px;
    height: 56px;
    max-width: calc(100% - 76px);
  }

  .brand__logo {
    height: 50px;
    max-height: 50px;
  }

  h1 {
    font-size: 2.42rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero__lead {
    font-size: 0.94rem;
    max-width: 100%;
  }

  .hero__content {
    padding: 0;
  }

  .nav__links::before {
    left: 20px;
    right: auto;
    width: 350px;
    max-width: calc(100% - 40px);
    transform: translateY(-46%) scale(0.96);
  }

  .nav__links::after {
    left: 40px;
    right: auto;
    width: 310px;
    max-width: calc(100% - 80px);
    transform: none;
  }

  .nav__links.is-open::before,
  .nav__links:target::before {
    transform: translateY(-50%) scale(1);
  }

  .nav__links a {
    width: 286px;
    max-width: calc(100% - 104px);
    margin-left: 52px;
    margin-right: 0;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .service-strip__cards {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .service-tile h3 {
    max-width: none;
  }

  .feature-band,
  .digital-preview,
  .content-section {
    padding: 68px 0;
  }

  .credential-grid,
  .request-form {
    grid-template-columns: 1fr;
  }

  .side-panel,
  .contact-form,
  .credential-grid div,
  .contact-card,
  .detail-card {
    padding: 24px;
  }

  .site-footer {
    padding-bottom: 72px;
  }

  .footer__grid div:last-child {
    gap: 12px;
  }
}

/* =====================================================================
   FIX & OVERRIDES — un'unica sezione, tenere SEMPRE in fondo al file.
   Qui sono stati uniti i blocchi che prima erano duplicati e in
   conflitto (hero, page-hero, staff). Da qui in poi modificare.
   ===================================================================== */

/* --- Header sempre bianco (non trasparente) --- */
.site-header,
.site-header.is-scrolled {
  background: #ffffff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid rgba(24, 58, 89, 0.12);
  box-shadow: 0 8px 26px rgba(17, 22, 26, 0.10);
}

.nav {
  background: #ffffff !important;
}

/* --- HOME hero: foto a tutto schermo, testa SEMPRE visibile ---
   "cover" = foto piena e d'impatto. L'inset di 112px spinge la foto
   sotto la barra bianca dell'header, così la testa non viene coperta.
   La foto è ancorata in alto a destra (right top): mostra la testa con
   il suo margine naturale. Se vuoi alzare/abbassare il taglio cambia
   "top" (es. "right center"); l'uomo resta a destra perché c'è "right". */
.hero__media {
  inset: 112px 0 0 0;
  background-image:
    linear-gradient(90deg, rgba(11, 47, 79, 0.92) 0%, rgba(11, 47, 79, 0.70) 38%, rgba(11, 47, 79, 0.12) 74%),
    url("assets/hero-studio-commercialista.png");
  background-position: center, right top;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-color: var(--navy-deep);
  transform: none;
}

/* --- Banner pagine interne (chi-siamo, servizi, contatti, ...) ---
   Qui resta "cover" a tutta larghezza, come ora. */
.page-hero__media {
  inset: 112px 0 0 0;
  background-image:
    linear-gradient(90deg, rgba(11, 47, 79, 0.94), rgba(11, 47, 79, 0.62)),
    url("assets/hero-studio-commercialista.png");
  background-position: center, right top;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}

@media (max-width: 920px) {
  /* MOBILE: foto inquadrata sul VISO + velo verticale (chiaro in alto
     sul viso, scuro in basso per leggere il testo bianco). */
  .hero__media {
    inset: 78px 0 0 0;
    background-image:
      linear-gradient(180deg,
        rgba(11, 47, 79, 0.10) 0%,
        rgba(11, 47, 79, 0.22) 22%,
        rgba(11, 47, 79, 0.55) 48%,
        rgba(11, 47, 79, 0.82) 74%,
        rgba(11, 47, 79, 0.90) 100%),
      url("assets/hero-studio-commercialista.png");
    background-position: left, 80% 4%;
    background-size: cover, auto 150%;
  }

  .hero__content {
    text-shadow: 0 1px 14px rgba(8, 26, 42, 0.60);
  }

  .page-hero__media {
    inset: 78px 0 0 0;
  }
}

/* --- Staff: due card centrate --- */
.staff-section {
  padding: 96px 0;
  background: #f8f5ef;
  border-top: 1px solid rgba(17, 22, 26, 0.08);
}

.staff-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.staff-heading h2 {
  margin: 0 auto 18px;
}

.staff-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.staff-grid {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 32px;
  justify-content: center;
}

.staff-card {
  background: #fff;
  border: 1px solid rgba(17, 22, 26, 0.12);
  box-shadow: 0 18px 42px rgba(17, 22, 26, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(17, 22, 26, 0.14);
}

.staff-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #e8e8e8;
  overflow: hidden;
}

.staff-card__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.staff-card__photo--placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(24, 58, 89, 0.96), rgba(11, 47, 79, 0.86));
  color: #fff;
}

.staff-card__photo--placeholder span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(216, 189, 148, 0.85);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.staff-card__body {
  padding: 30px 26px 32px;
  text-align: center;
}

.staff-card__body h3 {
  margin-bottom: 10px;
  color: #6e6049;
  font-size: 1.48rem;
}

.staff-card__body a,
.staff-card__email {
  display: block;
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.staff-card__body a:hover {
  color: #9a3147;
}

.staff-card__email.muted {
  color: var(--muted);
  font-weight: 600;
}

.staff-card__label {
  margin: 0 0 4px;
  color: #5b6670;
  font-size: 0.9rem;
  font-weight: 900;
}

.staff-card__body p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* --- Profilo (pagina Chi siamo) --- */
.profile-panel {
  padding: 0;
  overflow: hidden;
}

.profile-panel__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #e8e8e8;
  overflow: hidden;
}

.profile-panel__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.profile-panel__body {
  padding: 42px 34px;
}

.profile-panel__body .staff-card__label {
  margin: 24px 0 4px;
}

.profile-panel__body p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 920px) {
  .staff-section {
    padding: 72px 0;
  }

  .staff-grid {
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
   .hero__media {
    inset: 78px 0 0 0;
    background-image:
      linear-gradient(180deg,
        rgba(11, 47, 79, 0.10) 0%,
        rgba(11, 47, 79, 0.22) 22%,
        rgba(11, 47, 79, 0.55) 48%,
        rgba(11, 47, 79, 0.82) 74%,
        rgba(11, 47, 79, 0.90) 100%),
      url("assets/hero-studio-commercialista.png");
    background-position: left, 72% 20%;   /* ← era 80% 4% */
    background-size: cover, auto 30%;    /* ← era auto 150% */
  }
}

@media (max-width: 620px) {
  .staff-section {
    padding: 64px 0;
  }

  .staff-heading {
    margin-bottom: 30px;
    text-align: left;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-card__body {
    padding: 26px 22px 28px;
  }

  .profile-panel__body {
    padding: 28px 24px;
  }
}