:root {
  --bg: #eef2f7;
  --bg-soft: #f4f6f8;
  --panel: #f4f6f8;
  --line: rgba(15, 30, 58, 0.12);
  --text: #0f1e3a;
  --muted: #5c6b84;
  --accent: #1f3c88;
  --accent-2: #00a8e8;
  --header-bg: #0f1e3a;
  --header-text: #ffffff;
  --shadow: 0 14px 30px rgba(15, 30, 58, 0.07);
  --radius: 16px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset, 120px);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(31, 60, 136, 0.02), transparent 42%),
    radial-gradient(circle at 92% 15%, rgba(0, 168, 232, 0.02), transparent 35%),
    linear-gradient(180deg, #edf2f8 0%, #f6f8fb 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.bg-orb {
  position: fixed;
  inset: auto auto 0 0;
  width: 26rem;
  height: 26rem;
  filter: blur(70px);
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
  transition: transform 220ms ease-out;
  will-change: transform;
}

.orb-1 {
  background: #1f3c88;
  left: -5rem;
  top: 8rem;
}

.orb-2 {
  background: #00a8e8;
  right: -4rem;
  top: 18rem;
  left: auto;
}

.site-header,
main,
.site-footer {
  position: relative;
}

.site-header {
  z-index: 6;
}

main,
.site-footer {
  z-index: 1;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 3;
  background: rgba(15, 30, 58, 0.06);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1f3c88 0%, #00a8e8 100%);
  transition: width 80ms linear;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(var(--max) + 2rem), 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: calc(var(--max) + 2rem);
  margin: 0 auto;
  padding: 0.55rem 0.9rem 0.45rem;
  backdrop-filter: blur(16px);
  background: rgba(15, 30, 58, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--header-text);
  flex-wrap: wrap;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  width: 100%;
  order: 3;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding-top: 0.1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 0 0 auto;
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.nav-toggle {
  display: none !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font: inherit;
}

main {
  max-width: calc(var(--max) + 2rem);
  margin: 0 auto;
  padding: calc(var(--header-offset, 120px) + 1rem) 1rem 5rem;
}

section {
  margin-top: 4rem;
}

section[id] {
  scroll-margin-top: var(--header-offset, 120px);
}

.section-bridge {
  margin: 0.5rem 0 -1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 60, 136, 0.08);
  background: rgba(255, 255, 255, 0.55);
  color: #102247;
  font-weight: 600;
  max-width: 72ch;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  min-height: 72vh;
  margin-top: 1.5rem;
}

.hero-copy,
.hero-card {
  transition: transform 220ms ease-out;
  will-change: transform;
}

.hero-kpis {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 42rem;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 30, 58, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 8px 20px rgba(15, 30, 58, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 60, 136, 0.18);
  box-shadow: 0 10px 24px rgba(15, 30, 58, 0.06);
}

.kpi-value {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--accent);
}

.kpi-label {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.78rem;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0;
  color: #102247;
}

h1, h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  max-width: 16ch;
  letter-spacing: -0.01em;
}

.lead {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.02rem;
}

.hero-signature {
  margin: 0.8rem 0 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-evolution {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 62ch;
}

.hero-philosophy {
  margin: 0.55rem 0 0;
  color: #102247;
  font-size: 0.92rem;
  font-weight: 600;
  max-width: 62ch;
}

.hero-reader {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: #1f3c88;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 60, 136, 0.14);
}

.btn-solid:hover {
  background: #2450b1;
  box-shadow: 0 10px 22px rgba(31, 60, 136, 0.18);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.hero-card,
.panel,
.contact {
  background: rgba(244, 246, 248, 0.9);
  border: 1px solid rgba(15, 30, 58, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hero-card {
  padding: 1.1rem;
}

.portrait {
  border-radius: 12px;
  min-height: 280px;
  background:
    linear-gradient(145deg, rgba(31, 60, 136, 0.04), rgba(0, 168, 232, 0.04)),
    rgba(244, 246, 248, 0.95);
  border: 1px solid rgba(15, 30, 58, 0.08);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  overflow: hidden;
}

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

.quick-facts {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.quick-facts div {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(15, 30, 58, 0.08);
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.quick-facts dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.panel {
  padding: 1.2rem;
}

.section-head {
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.section-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.section-anchor {
  position: relative;
  top: calc(var(--header-offset, 120px) * -1);
  height: 0;
}

.section-kicker {
  margin: -0.2rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#metodologias .section-note {
  max-width: none;
}

#testimonios .section-note {
  max-width: 100ch;
}

#biografia .grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

#biografia .grid-two p {
  margin: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(15, 30, 58, 0.06);
  border-radius: 12px;
  padding: 1rem;
  line-height: 1.7;
}

.bio-bridge {
  margin: 0.9rem 0 0;
  color: #102247;
  font-weight: 600;
  max-width: 100%;
  background: rgba(31, 60, 136, 0.04);
  border: 1px solid rgba(31, 60, 136, 0.08);
  border-left: 4px solid rgba(31, 60, 136, 0.45);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.bio-extended {
  margin-top: 1rem;
}

#biografia .bio-extended {
  grid-template-columns: 1.35fr 0.65fr;
  align-items: start;
}

#biografia .bio-extended p:last-child {
  font-weight: 600;
  color: #102247;
  background: rgba(255, 255, 255, 0.78);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8.15rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: rgba(15, 30, 58, 0.12);
}

.timeline-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.85rem 0;
}

.timeline-item > div {
  background: var(--bg-soft);
  border: 1px solid rgba(15, 30, 58, 0.08);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.timeline-item:hover > div {
  transform: translateY(-1px);
  border-color: rgba(31, 60, 136, 0.18);
  box-shadow: 0 10px 22px rgba(15, 30, 58, 0.06);
}

.timeline-item h3 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.timeline-item p + p {
  margin-top: 0.65rem;
}

.timeline-year {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  position: relative;
  padding-top: 0.25rem;
  line-height: 1.2;
  padding-right: 0.75rem;
}

.timeline-year::after {
  content: "";
  position: absolute;
  left: 7.65rem;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(31, 60, 136, 0.08);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 30, 58, 0.08);
  background: var(--bg-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 60, 136, 0.18);
  box-shadow: 0 12px 24px rgba(15, 30, 58, 0.06);
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card p + p {
  margin-top: 0.6rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.principle-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 30, 58, 0.08);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.principle-card:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 60, 136, 0.16);
  box-shadow: 0 10px 22px rgba(15, 30, 58, 0.05);
}

.principle-card-featured {
  border-color: rgba(31, 60, 136, 0.18);
  background: rgba(31, 60, 136, 0.035);
  box-shadow: 0 10px 24px rgba(15, 30, 58, 0.05);
}

.principle-card-featured .principle-number {
  color: #102247;
}

.principle-card-featured h3 {
  color: #102247;
}

.principle-number {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.principle-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.08rem;
}

.principle-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.principles-close {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 30, 58, 0.07);
  background: rgba(255, 255, 255, 0.55);
  color: #102247;
  font-weight: 600;
}

.learning-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
}

.learning-copy {
  color: var(--muted);
}

.learning-copy p {
  margin: 0 0 1rem;
}

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

.learning-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 30, 58, 0.08);
  background: var(--bg-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.learning-list li:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 60, 136, 0.16);
  box-shadow: 0 10px 22px rgba(15, 30, 58, 0.05);
}

.learning-list strong {
  display: block;
  margin-bottom: 0.15rem;
}

.learning-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.learning-list p + p {
  margin-top: 0.55rem;
}

.inline-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.tag {
  min-width: 68px;
  text-align: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 60, 136, 0.25);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.testimonial-rotator {
  margin-top: 0.25rem;
}

.testimonial-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.quote-card.is-hidden {
  display: none;
}

.quote-card {
  border-radius: 12px;
  border: 1px solid rgba(15, 30, 58, 0.08);
  background: #ffffff;
  padding: 1rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.quote-card:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 60, 136, 0.16);
  box-shadow: 0 10px 22px rgba(15, 30, 58, 0.05);
}

.quote-card p {
  margin: 0 0 0.8rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  line-height: 1.25;
}

.quote-card footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.testimonial-form {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 30, 58, 0.08);
  background: var(--bg-soft);
}

.testimonial-form-standalone {
  margin-top: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.testimonial-form h3 {
  margin-bottom: 0.35rem;
}

.form-note {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.form-grid label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.consent-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  padding: 0.15rem 0;
}

.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
}

.consent-check span {
  color: var(--text);
  line-height: 1.45;
}

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

.legal-note {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-feedback {
  margin: 0 0 0.75rem;
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-feedback.is-success {
  color: #1f3c88;
  font-weight: 600;
}

.form-feedback.is-error {
  color: #a13a3a;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(15, 30, 58, 0.12);
  background: #ffffff;
  color: var(--text);
  padding: 0.8rem 0.9rem;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #aea69a;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(31, 60, 136, 0.2);
  outline-offset: 1px;
  border-color: rgba(31, 60, 136, 0.25);
}

.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  padding: 1.2rem;
}

.contact p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid rgba(15, 30, 58, 0.08);
  transition: transform 160ms ease, border-color 160ms ease;
}

.contact-list li:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 60, 136, 0.16);
}

.methodology-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
}

.method-card-wide {
  grid-column: auto;
}

.methodology-cards > .card {
  flex: 0 0 calc((100% - 1rem) / 2);
  min-width: 0;
}

.method-subtitle {
  color: #102247 !important;
  font-weight: 600;
}

.method-list {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.method-list li + li {
  margin-top: 0.35rem;
}

.methodologies-close {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 60, 136, 0.08);
  background: rgba(31, 60, 136, 0.03);
  color: #102247;
  font-weight: 600;
}

.carousel-shell {
  margin-top: 0.4rem;
  overflow: hidden;
}

.carousel-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.carousel-status {
  margin: 0;
  min-width: 4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(15, 30, 58, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: #102247;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.carousel-btn:hover {
  background: #ffffff;
  border-color: rgba(31, 60, 136, 0.18);
  transform: translateY(-1px);
}

.carousel-btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.carousel-track {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.1rem;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track > .card {
  scroll-snap-align: start;
}

.vision-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.vision-block p {
  margin: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(15, 30, 58, 0.07);
  border-radius: 12px;
  padding: 1rem;
}

.vision-block p strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #102247;
}

.contact-list span {
  color: var(--muted);
}

.site-footer {
  max-width: calc(var(--max) + 2rem);
  margin: 0 auto;
  padding: 0 1rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  background: var(--header-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 0 0;
}

.site-footer a {
  color: #ffffff;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 30, 58, 0.12);
  background: rgba(244, 246, 248, 0.96);
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(15, 30, 58, 0.1);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
  z-index: 2;
}

.back-to-top:hover {
  background: #ffffff;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .bg-orb,
  .hero-copy,
  .hero-card,
  .hero-card,
  .panel,
  .contact,
  .timeline-item > div,
  .card,
  .learning-list li,
  .quote-card,
  .contact-list li {
    transition: none;
    transform: none;
  }
}

@media (max-width: 960px) {
  .hero,
  .contact,
  .learning-layout {
    grid-template-columns: 1fr;
  }

  .cards,
  .testimonial-grid,
  .hero-kpis,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .vision-block {
    grid-template-columns: 1fr;
  }

  .methodology-cards {
    display: flex;
  }

  .methodology-cards > .card {
    flex-basis: 100%;
  }

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

  .section-bridge {
    margin-bottom: -0.5rem;
  }

  #biografia .bio-extended {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 6.65rem;
  }

  .timeline-year::after {
    left: 6.15rem;
  }

  .timeline-item {
    grid-template-columns: 6rem 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
  }

  .carousel-head {
    justify-content: space-between;
  }

  .methodology-cards {
    display: flex;
  }

  .methodology-cards > .card {
    flex-basis: 100%;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .timeline-year {
    padding-right: 0;
    padding-left: 0.9rem;
  }

  .timeline-year::after {
    left: 0;
    top: 0.45rem;
  }

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

  .contact-list li {
    display: grid;
  }

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

  .back-to-top {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
