:root {
  --burgundy-950: #2c070c;
  --burgundy-900: #3b0a11;
  --burgundy-800: #53111c;
  --burgundy-700: #711d2b;
  --burgundy-100: #ead8db;
  --ink: #221b1c;
  --muted: #706668;
  --line: #ded5d2;
  --paper: #ffffff;
  --ivory: #f7f3ef;
  --cream: #eee6df;
  --gold: #e4b949;
  --gold-light: #f7d978;
  --shadow: 0 22px 60px rgba(44, 7, 12, 0.16);
  --radius: 4px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

body.intro-active {
  overflow: hidden;
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 60000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  background: #111111;
  color: #ffffff;
  opacity: 1;
  transform: translateY(0);
  transition:
    transform 620ms cubic-bezier(0.77, 0, 0.18, 1),
    opacity 520ms ease;
  will-change: transform, opacity;
}

.intro-seen .site-intro {
  display: none;
}

.site-intro.is-leaving {
  opacity: 0.96;
  transform: translateY(-100%);
}

.site-intro-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5.7vw, 5.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
  text-align: center;
}

.site-intro-title sup {
  position: relative;
  top: -1.55em;
  margin-left: 0.32em;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.22em;
  font-weight: 650;
  line-height: 0;
  letter-spacing: 0.12em;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 50000;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--burgundy-900);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header {
  position: relative;
  z-index: 1;
  min-height: 82px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--burgundy-900);
  border-bottom: 1px solid #e7dfdc;
  box-shadow: 0 8px 28px rgba(44, 7, 12, 0.055);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  opacity: 0.92;
}

.brand-link:hover {
  opacity: 1;
}

.brand-link img {
  display: block;
  width: 104px;
  max-height: 46px;
  object-fit: contain;
}

.audience-switch-wrap {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding-left: 13px;
  color: var(--burgundy-800);
  border-left: 1px solid #ddd2cf;
  white-space: nowrap;
}

.audience-prefix {
  color: #8b7c7e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  font-style: italic;
}

.audience-switch {
  max-width: 125px;
  padding: 3px 18px 3px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  outline: none;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--burgundy-700) 50%) right 4px center / 5px 5px no-repeat,
    linear-gradient(135deg, var(--burgundy-700) 50%, transparent 50%) right 0 center / 5px 5px no-repeat;
  color: var(--burgundy-900);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.audience-switch:hover,
.audience-switch:focus-visible {
  border-bottom-color: var(--burgundy-700);
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: inline-block;
  padding: 12px 0 9px;
  color: #5f5052;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.91rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--burgundy-800);
  border-bottom-color: var(--burgundy-700);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 5px;
}

.profile-button,
.menu-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #dfd4d1;
  border-radius: 50%;
  color: var(--burgundy-800);
  background: #fff;
}

.language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 5px 0 11px;
  color: var(--burgundy-800);
  border-left: 1px solid #e0d7d4;
}

.language-control > svg:first-child {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.language-select {
  width: 29px;
  padding: 4px 0;
  border: 0;
  outline: none;
  appearance: none;
  background: transparent;
  color: var(--burgundy-900);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.language-select option {
  color: var(--ink);
}

.control-chevron {
  width: 8px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.profile-button svg,
.menu-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.profile-button:hover,
.profile-button:focus-visible,
.menu-button:hover,
.menu-button:focus-visible {
  color: #fff;
  background: var(--burgundy-800);
  border-color: var(--burgundy-800);
}

.menu-button {
  display: none;
}

.page-shell {
  min-height: 65vh;
}

.content-wrap {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--burgundy-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.9rem, 7vw, 6.4rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.lead {
  max-width: 760px;
  color: #564c4e;
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
  line-height: 1.55;
}

.button-link,
.button-secondary,
.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--burgundy-900);
  border-radius: var(--radius);
  background: var(--burgundy-900);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button-link:hover,
.form-button:hover {
  background: var(--burgundy-700);
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  color: var(--burgundy-900);
}

.button-secondary:hover {
  background: var(--burgundy-100);
}

.profile-hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.16fr);
  align-items: stretch;
  background: var(--ivory);
}

.portrait-panel {
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  padding: 54px;
  background:
    linear-gradient(155deg, rgba(44, 7, 12, 0.12), rgba(44, 7, 12, 0.74)),
    url("/sfondo20fmm.webp") center / cover no-repeat;
}

.portrait-frame {
  width: min(100%, 450px);
  aspect-ratio: 4 / 5;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: var(--burgundy-900);
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 55%),
    var(--burgundy-900);
}

.portrait-placeholder strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 10vw, 8.6rem);
  font-weight: 500;
  letter-spacing: -0.09em;
}

.portrait-placeholder span {
  max-width: 230px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

.profile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 7vw, 110px);
}

.profile-copy h1 {
  max-width: 720px;
  color: var(--burgundy-900);
}

.credential-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 17px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
  color: #4f4547;
  font-size: 0.9rem;
}

.credential-line li::before {
  content: "—";
  margin-right: 8px;
  color: var(--burgundy-700);
}

.section {
  padding: clamp(74px, 9vw, 132px) 0;
}

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

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

.section-burgundy .eyebrow {
  color: var(--gold-light);
}

.section-burgundy .lead,
.section-burgundy p {
  color: rgba(255, 255, 255, 0.76);
}

.bio-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.bio-copy p {
  margin: 0 0 1.2em;
  color: #4d4445;
  font-size: 1.06rem;
}

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

.publication-card,
.feature-card,
.service-card {
  min-height: 100%;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.publication-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  grid-column: span 2;
}

.pdf-cover {
  width: 92px;
  height: 126px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: #fff;
  background: var(--burgundy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.1;
}

.publication-card p,
.feature-card p,
.service-card p {
  color: #665b5d;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 20px;
}

.text-link {
  color: var(--burgundy-700);
  font-weight: 750;
}

.hero-simple {
  min-height: calc(88vh - 74px);
  display: flex;
  align-items: center;
  background: #fff;
}

.hero-simple .content-wrap {
  position: relative;
}

.hero-simple h1 {
  max-width: 1000px;
  color: var(--burgundy-900);
}

.interest-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 35px;
  color: var(--burgundy-700);
  font-weight: 800;
  text-decoration: none;
}

.interest-link .arrow {
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  animation: arrow-nudge 1.7s ease-in-out infinite;
}

@keyframes arrow-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.principles {
  counter-reset: principle;
  display: grid;
  gap: 1px;
  margin-top: 44px;
  background: var(--line);
  border: 1px solid var(--line);
}

.principle {
  position: relative;
  min-height: 150px;
  padding: 30px 30px 30px 84px;
  background: #fff;
}

.principle::before {
  counter-increment: principle;
  content: "0" counter(principle);
  position: absolute;
  top: 30px;
  left: 28px;
  color: var(--burgundy-700);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.principle strong {
  display: block;
  margin-bottom: 8px;
  color: var(--burgundy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.training-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  max-width: 820px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

.training-card img {
  width: 110px;
  border: 5px solid #fff;
}

.institutional-hero {
  min-height: calc(88vh - 74px);
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(44, 7, 12, 0.98) 20%, rgba(83, 17, 28, 0.82)),
    url("/sfondo20fmm.webp") center / cover no-repeat;
}

.institutional-hero h1 {
  max-width: 980px;
}

.institutional-hero .lead {
  color: rgba(255, 255, 255, 0.8);
}

.institutional-hero .eyebrow {
  color: var(--gold-light);
}

.scope-note {
  padding: 30px;
  border-left: 4px solid var(--gold);
  background: var(--ivory);
}

.scope-note strong {
  color: var(--burgundy-900);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.contact-list {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--burgundy-900);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-form {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  background: var(--ivory);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  color: #554b4d;
  font-size: 0.82rem;
  font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cfc4c1;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

.form-field textarea {
  min-height: 155px;
  resize: vertical;
}

.form-help {
  color: var(--muted);
  font-size: 0.78rem;
}

.form-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--burgundy-700);
  font-weight: 650;
}

.privacy-content {
  max-width: 850px;
}

.privacy-content h2 {
  margin-top: 56px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.privacy-content h3 {
  margin-top: 34px;
  color: var(--burgundy-900);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
}

.site-footer {
  padding: 58px 0 24px;
  background: var(--burgundy-950);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.footer-brand img {
  width: 170px;
  opacity: 0.88;
}

.footer-brand p,
.footer-regulatory p {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.86rem;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 24px;
}

.footer-contact a {
  color: #fff;
}

.regulatory-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px;
  background: #fff;
}

.regulatory-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
}

.regulatory-logos img {
  width: auto;
  max-width: 122px;
  max-height: 46px;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-actions button,
.footer-actions a {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
}

.access-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(44, 7, 12, 0.7);
  backdrop-filter: blur(4px);
}

.access-overlay.is-visible {
  display: flex;
}

.access-card {
  position: relative;
  width: min(100%, 570px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(28px, 5vw, 48px);
  border-top: 5px solid var(--gold);
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.access-card h2 {
  margin-bottom: 13px;
  color: var(--burgundy-900);
  font-size: clamp(2rem, 5vw, 3rem);
}

.access-card > p {
  margin-top: 0;
  color: #655a5c;
}

.access-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--burgundy-900);
  font-size: 1.25rem;
}

.access-close[hidden] {
  display: none;
}

.choice-group {
  margin-top: 24px;
}

.choice-group > label,
.choice-legend {
  display: block;
  margin-bottom: 9px;
  color: var(--burgundy-900);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-group select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #bfb1ae;
  background: #fff;
}

.client-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.client-choice {
  position: relative;
}

.client-choice input {
  position: absolute;
  opacity: 0;
}

.client-choice span {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid #cfc3c0;
  color: #4f4547;
  background: var(--ivory);
}

.client-choice span strong {
  color: var(--burgundy-900);
}

.client-choice input:checked + span {
  border: 2px solid var(--burgundy-700);
  background: var(--burgundy-100);
}

.access-submit {
  width: 100%;
  margin-top: 24px;
}

.access-submit[hidden],
.access-restricted-notice[hidden] {
  display: none;
}

.access-restricted-notice {
  display: block;
  margin-top: 10px;
  color: #75686a;
  font-size: 0.7rem;
  line-height: 1.45;
}

.access-error {
  min-height: 1.3em;
  margin: 8px 0 0;
  color: #a11628;
  font-size: 0.82rem;
  font-weight: 650;
}

.quick-rail {
  position: fixed;
  top: 38%;
  right: 0;
  z-index: 880;
  width: 88px;
  overflow: hidden;
  border: 1px solid #ded4d1;
  border-right: 0;
  background: #fff;
  box-shadow: 0 14px 38px rgba(44, 7, 12, 0.16);
  transform: translateY(-24%);
}

.quick-rail-item {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 6px;
  color: var(--burgundy-800);
  background: #fff;
  text-align: center;
  text-decoration: none;
  border-bottom: 1px solid #e4d9d6;
  transition: color 160ms ease, background 160ms ease;
}

.quick-rail-item:last-child {
  border-bottom: 0;
}

.quick-rail-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.quick-rail-item span {
  max-width: 74px;
  font-size: 0.65rem;
  font-weight: 780;
  line-height: 1.16;
}

.quick-rail-primary {
  color: #fff;
  background: var(--burgundy-900);
}

.quick-rail-promo {
  color: var(--burgundy-950);
  background: var(--gold-light);
}

.quick-rail-item:hover,
.quick-rail-item:focus-visible {
  color: #fff;
  background: var(--burgundy-700);
}

.cookie-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 19000;
  width: min(calc(100% - 36px), 590px);
  display: none;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(44, 7, 12, 0.98);
  color: #fff;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.3);
}

.cookie-panel.is-visible {
  display: block;
}

.cookie-panel.is-centered {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.48), 0 24px 80px rgba(0, 0, 0, 0.5);
}

.cookie-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: 0.83rem;
}

.cookie-panel a {
  color: #fff;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}

.cookie-actions button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: transparent;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
}

.cookie-actions .cookie-accept {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--burgundy-950);
}

.noscript-note {
  padding: 14px 20px;
  background: #fff2c9;
  color: #3d2b00;
  text-align: center;
}

@media (max-width: 1120px) {
  .header-inner {
    gap: 12px;
  }

  .header-tools {
    margin-left: auto;
    flex: 0 0 auto;
  }

  .menu-button {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: 82px;
    right: 0;
    left: 0;
    display: none;
    padding: 12px 20px 18px;
    background: #fff;
    border-top: 1px solid #e7dfdc;
    box-shadow: 0 16px 30px rgba(44, 7, 12, 0.12);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .quick-rail {
    display: none;
  }

  .profile-hero {
    grid-template-columns: 1fr;
  }

  .portrait-panel {
    min-height: 600px;
    padding: 36px;
  }

  .portrait-frame {
    width: min(78vw, 430px);
    margin: auto;
  }

  .profile-copy {
    padding: 70px max(24px, 7vw);
  }

  .bio-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .publication-grid,
  .feature-grid,
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .publication-card {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 84px;
  }

  .site-intro-title {
    max-width: 10em;
    font-size: clamp(2rem, 10vw, 3.25rem);
    line-height: 1.08;
  }

  .header-inner {
    width: min(calc(100% - 20px), var(--content));
  }

  .content-wrap {
    width: min(calc(100% - 28px), var(--content));
  }

  .brand-link img {
    width: 72px;
  }

  .brand-cluster {
    gap: 7px;
  }

  .audience-switch-wrap {
    gap: 3px;
    padding-left: 8px;
  }

  .audience-switch {
    max-width: 78px;
    font-size: 0.68rem;
  }

  .language-control {
    gap: 3px;
    padding: 0 3px 0 7px;
  }

  .language-control > svg:first-child {
    display: none;
  }

  .profile-button,
  .menu-button {
    width: 34px;
    height: 34px;
  }

  .portrait-panel {
    min-height: 500px;
    padding: 26px 14px;
    background:
      linear-gradient(155deg, rgba(44, 7, 12, 0.12), rgba(44, 7, 12, 0.74)),
      url("/sfondo20fmm-smartphone.webp") center / cover no-repeat;
  }

  .institutional-hero {
    background:
      linear-gradient(100deg, rgba(44, 7, 12, 0.98) 20%, rgba(83, 17, 28, 0.82)),
      url("/sfondo20fmm-smartphone.webp") center / cover no-repeat;
  }

  .portrait-frame {
    width: min(88vw, 390px);
  }

  .publication-grid,
  .feature-grid,
  .service-grid,
  .form-grid,
  .client-choices {
    grid-template-columns: 1fr;
  }

  .publication-card {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .training-card {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .cookie-panel {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions button {
    flex: 1 1 160px;
  }

  .access-overlay {
    padding: 10px;
  }

  .access-card {
    max-height: calc(100vh - 20px);
  }
}

@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;
  }
}
