:root {
  --bg: #0a0e17;
  --bg-soft: #111827;
  --surface: #151d2e;
  --surface-hover: #1c2740;
  --text: #eef2f7;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-soft: #60a5fa;
  --gold: #c9a962;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --nav-h: 72px;
  --ticker-h: 34px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.section { padding: 6rem 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2,
.detail-content h2,
.about-grid h2,
.contact-intro h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.section-head p { color: var(--muted); margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.35);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(59, 130, 246, 0.45); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); box-shadow: none; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.875rem; }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 14, 23, 0.92);
  border-bottom: 1px solid var(--border);
}
.news-banner-wrap {
  max-height: var(--ticker-h);
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
body.header-compact .news-banner-wrap {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
  pointer-events: none;
}
.news-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--ticker-h);
  font-size: 0.78rem;
  color: var(--muted);
}
.news-banner-time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: rgba(148, 163, 184, 0.95);
  font-weight: 500;
}
.news-ticker-viewport {
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.news-ticker {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: newsTicker var(--ticker-duration, 140s) linear infinite;
}
.news-ticker-viewport:hover .news-ticker,
.news-ticker-viewport:focus-within .news-ticker {
  animation-play-state: paused;
}
.news-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.news-ticker-item strong {
  color: rgba(238, 242, 247, 0.88);
  font-weight: 500;
}
.news-ticker-tag {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}
.news-ticker-fallback { white-space: nowrap; }
.news-banner-link {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.news-banner-link:hover { color: var(--gold); }
@keyframes newsTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.logo img {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.logo em { font-style: normal; color: var(--muted); font-weight: 500; }
.logo-authority {
  flex-shrink: 0;
  padding: 0.2rem 0.45rem;
  border-radius: 0.45rem;
  background: #f4f6f8;
}
.logo-authority img {
  display: block;
  width: auto;
  height: 48px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a:not(.btn) {
  color: var(--muted);
  font-size: 0.925rem;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-private-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-private-link:hover {
  color: var(--text);
  border-color: rgba(201, 169, 98, 0.35);
  background: rgba(255, 255, 255, 0.04);
}
/* Fallback: if an older HTML still uses btn btn-sm in nav,
   keep the same discreet style instead of the blue CTA. */
.nav-links a.btn.btn-sm {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  font-size: 0.875rem;
  box-shadow: none;
}
.nav-links a.btn.btn-sm:hover {
  color: var(--text);
  border-color: rgba(201, 169, 98, 0.35);
  background: rgba(255, 255, 255, 0.04);
  transform: none;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + var(--ticker-h) + 2.5rem) 0 3rem;
  transition: padding-top 0.4s ease;
}
body.header-compact .hero {
  padding-top: calc(var(--nav-h) + 2.5rem);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: heroKen 20s ease-in-out infinite alternate;
}
@keyframes heroKen {
  from { transform: scale(1.04) translateX(0); }
  to { transform: scale(1.1) translateX(-1.5%); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 14, 23, 0.92) 0%, rgba(10, 14, 23, 0.75) 45%, rgba(10, 14, 23, 0.55) 100%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-copy {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  max-width: none;
  white-space: nowrap;
}
.hero h1 span {
  display: block;
  font-style: italic;
  color: var(--accent-soft);
}
.hero-lead {
  max-width: none;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.55;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--gold);
}
.stat span { display: block; font-size: 0.875rem; color: var(--muted); }
.stat small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.65);
  letter-spacing: 0.04em;
}
.stat-live strong {
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}
.stat-live:hover strong { color: var(--accent-soft); }

.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center p { margin-inline: auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}
.service-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-photo img { transform: scale(1.08); }
.service-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 23, 0.85) 100%);
}
.service-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: rgba(10, 14, 23, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(201, 169, 98, 0.25);
}
.service-body { padding: 1.25rem 1.5rem 1.5rem; }
.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}
.service-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.925rem;
}
.service-link {
  color: var(--accent-soft);
  font-size: 0.875rem;
  font-weight: 600;
}

.detail.alt { background: var(--bg-soft); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.detail-grid.reverse .detail-content { order: 2; }
.detail-grid.reverse .photo-frame { order: 1; }
.detail-content p { color: var(--muted); }

.photo-frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  transition: transform 0.35s ease, box-shadow 0.35s;
}
.photo-frame:hover {
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.photo-frame:hover img { transform: scale(1.05); }
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 14, 23, 0.75) 100%);
  z-index: 1;
  pointer-events: none;
}
.photo-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 14, 23, 0.65);
  backdrop-filter: blur(10px);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.3);
}
.photo-frame-gold { border-color: rgba(201, 169, 98, 0.25); }
.photo-frame-tall { aspect-ratio: 3 / 4; max-height: 480px; }
.photo-frame-portrait { aspect-ratio: 1; max-width: 320px; margin-inline: auto; }
.about-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-soft) 0%, var(--surface) 100%);
}
.about-brand .about-logo {
  width: 72%;
  height: auto;
  object-fit: contain;
  padding: 1.5rem;
}
.photo-frame-wide { aspect-ratio: 16 / 9; }
.detail-list {
  display: grid;
  gap: 0.875rem;
  margin-top: 1.5rem;
}
.detail-list li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.detail-list strong { color: var(--text); }

.visual-card {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface), #0f172a);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  color: rgba(255,255,255,0.85);
  box-shadow: var(--shadow);
}
.visual-card.accent {
  background: linear-gradient(145deg, #1e3a5f, #0f172a);
  border-color: rgba(59, 130, 246, 0.25);
}

.illustration-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.illustration-frame:hover {
  box-shadow: 0 28px 90px rgba(59, 130, 246, 0.15);
}
.illustration-frame svg { display: block; width: 100%; height: auto; }
.illustration-frame.theme-authority svg { animation: pulseGlow 6s ease-in-out infinite; }
.illustration-frame.theme-epoca svg { animation: pulseGold 5s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.15)); }
}
@keyframes pulseGold {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 18px rgba(201, 169, 98, 0.2)); }
}

.experience {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 169, 98, 0.08), transparent),
    var(--bg-soft);
}
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.exp-card-main {
  position: relative;
  border-color: rgba(201, 169, 98, 0.25);
  background: linear-gradient(160deg, var(--surface), #121a2a);
}
.exp-num {
  font-family: var(--display);
  font-size: 2.25rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.exp-num-lg { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.exp-label { font-size: 0.875rem; color: var(--muted); }
.exp-since {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.7);
  letter-spacing: 0.06em;
}
.exp-ring {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  pointer-events: none;
}
.exp-ring svg { width: 140px; height: 140px; animation: spinSlow 30s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  padding-top: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), var(--gold), transparent);
  opacity: 0.4;
}
.timeline-item {
  padding: 0 0.75rem;
  text-align: center;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: -1.65rem;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 2px solid var(--gold);
}
.timeline-year {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.timeline-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.training-visual svg,
.about-visual svg { display: none; }

.training-layout {
  display: grid;
  grid-template-columns: min(320px, 38%) 1fr;
  gap: 3rem;
  align-items: start;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr min(320px, 38%);
  grid-template-rows: auto auto;
  gap: 2rem 3rem;
  align-items: start;
}
.about-grid p { color: var(--muted); }
.training-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tag {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  transition: 0.2s;
}
.tag:hover {
  color: var(--text);
  border-color: rgba(201, 169, 98, 0.4);
  background: var(--surface-hover);
}

.about-cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.about-since {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(201, 169, 98, 0.06);
  color: var(--muted);
  font-size: 0.925rem;
}
.about-since strong { color: var(--gold); }

.training { background: var(--bg-soft); }
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.about-card strong { display: block; margin-bottom: 0.25rem; }
.about-card span { color: var(--muted); font-size: 0.9rem; }

.updates {
  background:
    radial-gradient(ellipse 50% 40% at 80% 0%, rgba(59, 130, 246, 0.1), transparent),
    var(--bg-soft);
}
.feed-updated {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.feed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.feed-tab {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.feed-tab:hover { color: var(--text); border-color: rgba(201, 169, 98, 0.35); }
.feed-tab.is-active {
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.45);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.12));
}
.feed-panels { position: relative; min-height: 200px; }
.feed-panel { display: none; }
.feed-panel.is-active { display: block; }
.updates.is-loading .feed-panels { opacity: 0.55; }
.feed-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feed-item {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s;
}
.feed-item:hover { border-color: rgba(59, 130, 246, 0.35); }
.feed-item a { color: var(--text); }
.feed-item a:hover strong { color: var(--accent-soft); }
.feed-item strong {
  display: block;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}
.feed-item time {
  display: block;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.feed-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.feed-empty {
  margin: 0;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  color: var(--muted);
  text-align: center;
}
.feed-official {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.feed-official h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.feed-official ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.feed-official a { color: var(--accent-soft); font-weight: 600; }
.feed-official span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.feed-disclaimer {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.85);
  line-height: 1.5;
}

.contact { background: linear-gradient(180deg, var(--bg) 0%, #0d1424 100%); }
.contact-intro {
  max-width: 640px;
  margin-bottom: 2rem;
}
.contact-intro p { color: var(--muted); }
.contact-thanks {
  margin-bottom: 2rem;
  padding: 2rem 2.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(21, 29, 46, 0.95));
  text-align: center;
}
.contact-thanks:focus { outline: none; }
.contact-thanks h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: #86efac;
}
.contact-thanks p {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.55;
}
.contact-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.contact-panel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  min-height: 100%;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  min-height: 100%;
}
.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.contact-panel .contact-photo {
  flex: 1;
  margin: 0 0 1.25rem;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  min-height: 220px;
}
.contact-panel .contact-photo img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
.contact-list { margin-top: auto; display: grid; gap: 1rem; }
.contact-list li span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.contact-list a { color: var(--accent-soft); }
.contact-list a:hover { text-decoration: underline; }

.form-notice {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.form-notice--ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}
.form-notice--err {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
.contact-form .btn { margin-top: auto; }
.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  border-color: transparent;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--text);
  background: rgba(21, 29, 46, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
}
.back-to-top:hover {
  color: var(--gold);
  border-color: rgba(201, 169, 98, 0.45);
  background: rgba(28, 39, 64, 0.96);
  transform: translateY(-2px);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.footer-legal p { margin: 0; }
.footer-piva {
  font-size: 0.8125rem;
  color: rgba(148, 163, 184, 0.9);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a:hover { color: var(--text); }

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .services-grid,
  .detail-grid,
  .about-grid,
  .contact-panels,
  .experience-grid,
  .training-layout { grid-template-columns: 1fr; }
  .detail-grid.reverse .detail-content,
  .detail-grid.reverse .photo-frame { order: unset; }
  .hero-stats { grid-template-columns: 1fr; }
  .photo-frame-portrait { max-width: 100%; }
  .timeline { grid-template-columns: 1fr; gap: 1.5rem; }
  .timeline::before { display: none; }
  .timeline-item::before { top: -0.5rem; }
  .about-cards { grid-template-columns: 1fr; }
  .photo-frame-tall { max-height: none; margin-inline: auto; max-width: 360px; }
}

@media (max-width: 768px) {
  .logo-group { gap: 0.5rem; }
  .logo-authority { padding: 0.15rem 0.3rem; }
  .logo-authority img { height: 40px; }
  .logo span { font-size: 0.85rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: calc(var(--nav-h) + var(--ticker-h)) 0 auto;
    flex-direction: column;
    background: rgba(10, 14, 23, 0.98);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .services-grid { grid-template-columns: 1fr; }
  .hero h1 {
    white-space: normal;
    font-size: clamp(1.85rem, 7vw, 2.75rem);
  }
  .hero-copy {
    display: block;
    width: 100%;
  }
  .news-banner {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    text-align: center;
    padding: 0.35rem 0;
  }
  .news-banner-time { justify-self: center; }
  .news-banner-link { justify-self: center; }
  body.header-compact .nav-links { inset: var(--nav-h) 0 auto; }
}
