:root {
  --bg: #020612;
  --bg-soft: #050b17;
  --bg-alt: #050816;
  --accent: #11c5a1;
  --accent-strong: #05b38f;
  --accent-soft: rgba(17, 197, 161, 0.16);
  --text: #f9fafb;
  --muted: #9ca3af;
  --muted-soft: #64748b;
  --card-bg: #050b18;
  --border-subtle: rgba(148, 163, 184, 0.28);
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #000 70%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Layout generali */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #050816 0, #000 80%);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.6rem;
}

.section-header-left {
  text-align: left;
  margin-bottom: 1.8rem;
}

.section-header h2 {
  font-size: clamp(2rem, 2.5vw, 2.4rem);
  margin: 0 0 0.6rem;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Accessibilità */

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  padding: 0.5rem 0.9rem;
  background: #111827;
  color: var(--text);
  border-radius: 999px;
  z-index: 999;
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.2s ease-out;
}
.skip-link:focus {
  top: 0.75rem;
}

/* HEADER */
.lang-icon img {
  width: 20px;   /* regola a piacere */
  height: 20px;
  display: inline-block;
}

.lang-switcher img {
  width: 100%;
  max-width: 32px;
  height: auto;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px);
  background: linear-gradient(
    to bottom,
    rgba(3, 7, 18, 0.98),
    rgba(3, 7, 18, 0.85),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

/* Brand */

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(17, 197, 161, 0.9);
  background: radial-gradient(circle at top, #102637, #020617);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  font-size: 1rem;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--muted-soft);
}

/* NAV */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.4rem;
  border-radius: 999px;
  transition: color 0.15s ease-out, background 0.15s ease-out,
    transform 0.15s ease-out;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.16);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Language switcher (dummy) */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
}

.lang-icon {
  font-size: 0.88rem;
}

/* Nav toggle (mobile) */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.nav-toggle-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #e6fffa;
  box-shadow: 0 16px 35px rgba(5, 179, 143, 0.55);
}

.btn-accent:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 22px 48px rgba(5, 179, 143, 0.7);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.92);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.9);
  color: var(--text);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.6);
  background: transparent;
  color: var(--muted);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
}

.btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* HERO CENTRATO */

.hero {
  position: relative;
  padding: 5rem 0 4.4rem;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top center, rgba(17, 197, 161, 0.2), transparent 55%),
    radial-gradient(circle at bottom, rgba(15, 23, 42, 0.8), #000);
  opacity: 0.9;
  pointer-events: none;
}

.hero-centered-inner {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin: 0 0 0.7rem;
}

.hero-centered-inner h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  line-height: 1.06;
}

.hero-lead {
  margin: 0 auto;
  color: var(--muted);
  max-width: 36rem;
  font-size: 0.98rem;
}

.hero-actions-centered {
  justify-content: center;
  margin-top: 1.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Feature strip sotto l’hero */

.hero-feature-strip {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(3, 7, 18, 0.9);
  color: var(--muted);
  font-size: 0.82rem;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* NEWS */

.section-news {
  background: radial-gradient(circle at top, #020617 0, #000 75%);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.news-main {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.news-card {
  background: rgba(5, 11, 24, 0.98);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem;
  border: 1px solid rgba(15, 118, 110, 0.6);
  box-shadow: var(--shadow-soft);
}

.news-card-header {
  margin-bottom: 0.45rem;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.76rem;
  color: var(--muted-soft);
}

.news-time {
  white-space: nowrap;
}

.news-card h3 {
  margin: 0.35rem 0 0;
  font-size: 1.02rem;
}

.news-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Pills */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.65);
}

.pill-news {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.9);
}

.pill-macro {
  background: rgba(234, 179, 8, 0.2);
  border-color: rgba(234, 179, 8, 0.9);
}

.pill-market {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.9);
}

/* Sidebar */

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.sidebar-box {
  background: rgba(5, 11, 24, 0.98);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 1.15rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.sidebar-title {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.sidebar-box ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.sidebar-box-sessions {
  background: radial-gradient(circle at top, #071525, #020617);
}

.sessions-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.sessions-list li {
  display: flex;
  justify-content: space-between;
}

.sidebar-note {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted-soft);
}

/* GRID & CARD generici */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

/* Griglia strumenti specifica */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.04rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* BENEFITS */

.benefits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li + li {
  margin-top: 1.15rem;
}

.benefits-list h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.benefits-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.benefits-panel {
  background: radial-gradient(circle at top, #032024, #020617);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(17, 197, 161, 0.7);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.benefits-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--muted-soft);
  margin: 0 0 0.6rem;
}

.benefits-panel ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--text);
}

.benefits-panel li + li {
  margin-top: 0.3rem;
}

.benefits-note {
  margin: 0.8rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.about-grid p {
  font-size: 0.95rem;
  color: var(--muted);
}

.about-grid p + p {
  margin-top: 0.6rem;
}

.about-panel {
  background: rgba(5, 11, 24, 0.98);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 1.3rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.about-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--muted-soft);
  margin: 0 0 0.6rem;
}

.about-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.about-panel li + li {
  margin-top: 0.25rem;
}

/* PRE-FOOTER */

.prefooter {
  padding: 3.6rem 0 2.8rem;
  background: radial-gradient(circle at top, #030b18 0, #020617 70%);
}

.prefooter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 1.8rem;
  align-items: stretch;
}

.prefooter-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 118, 110, 0.7);
  background: radial-gradient(circle at top, #041822, #020617);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.6rem;
}

.newsletter-card {
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at left, rgba(17, 197, 161, 0.4), transparent 60%);
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
}

.prefooter-card > * {
  position: relative;
  z-index: 1;
}

.prefooter-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted-soft);
  margin: 0 0 0.4rem;
}

.newsletter-card h3 {
  margin: 0 0 1rem;
  font-size: 1.18rem;
}

.prefooter-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.prefooter-form input {
  font: inherit;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.6rem 0.9rem;
  background: rgba(3, 7, 18, 0.9);
  color: var(--text);
}

.prefooter-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.community-card {
  padding-bottom: 1.3rem;
}

.community-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.community-card p {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.social-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 40px);
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.social-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.7);
  background: rgba(3, 7, 18, 0.95);
  font-size: 0.76rem;
  color: var(--accent);
}

/* CONTATTI */

.section-contact {
  background: radial-gradient(circle at top, #020617 0, #000 70%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
  gap: 2.3rem;
  align-items: flex-start;
}

.contact-form {
  background: rgba(5, 11, 24, 0.98);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.86rem;
  margin-bottom: 0.3rem;
  color: var(--muted-soft);
}

input,
select,
textarea {
  font: inherit;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.6rem 0.75rem;
  background: rgba(3, 7, 18, 0.94);
  color: var(--text);
  outline: none;
  transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out,
    background 0.16s ease-out;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(17, 197, 161, 0.6);
  background: rgba(3, 7, 18, 0.98);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.form-row-inline {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.checkbox input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.form-footnote {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted-soft);
}

/* FOOTER “PROP FIRM STYLE” */

.site-footer {
  background: radial-gradient(circle at bottom, #020617, #000);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  margin-top: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding: 2.4rem 0 1.3rem;
}

.footer-col h3 {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
}

.footer-col li + li {
  margin-top: 0.35rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-brand-col {
  max-width: 320px;
}

.brand-footer .brand-mark {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}

.footer-description {
  margin: 0.7rem 0 0.6rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.footer-social span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(17, 197, 161, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--accent);
}

/* Bottom bar */

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 0.9rem 0 1.1rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--muted-soft);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom-links a {
  color: var(--muted-soft);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* Back to top */

.back-to-top {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(5, 11, 24, 0.98);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.95);
}

.back-to-top-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Animazioni on scroll – Fallback: contenuti visibili anche senza JS */

.reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .news-layout,
  .benefits-grid,
  .about-grid,
  .prefooter-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin-top: 0.25rem;
    padding: 0.9rem 1.6rem 1.1rem;
    background: radial-gradient(circle at top, #030b18, #000);
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-actions .btn-small,
  .nav-actions .lang-switcher {
    width: auto;
  }

  .nav-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }
}

/* Dropdown Formazione */

.dropdown-formation {
  position: relative;
  width: 100%;
}

.formation-menu {
  margin-top: 0.6rem;
  display: none;
  gap: 0.6rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.formation-menu-open {
  display: flex;
}

.formation-menu a {
  flex: 1 1 30%;
  text-align: center;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(3, 7, 18, 0.9);
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s ease-out, color 0.15s ease-out,
    transform 0.15s ease-out, border-color 0.15s ease-out;
}

.formation-menu a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .formation-menu {
    flex-direction: column;
  }
}

.mh-card {
  background: #12151f;
  border-radius: 18px;
  padding: 1.8rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.75rem;
}

.mh-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.mh-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mh-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0%, #3cf, #19b5ff 40%, #0b1020 90%);
  font-size: 1.4rem;
}

.mh-card-top h2 {
  margin: 0;
}

.mh-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

.mh-clock-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  min-width: 260px;
}

.mh-timezone {
  font-size: 0.9rem;
  font-weight: 500;
}

.mh-time {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}

.mh-card-grid {
  padding-top: 1.5rem;
}

.mh-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.mh-grid-title {
  font-weight: 500;
}

.mh-grid-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  opacity: 0.85;
}

.mh-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 0.35rem;
}

.mh-london { background: #2979ff; }
.mh-ny     { background: #ff5252; }
.mh-sydney { background: #42a5f5; }
.mh-tokyo  { background: #00e5ff; }

.mh-grid {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-x: auto;
}

.mh-row {
  display: grid;
  grid-template-columns: 90px repeat(24, minmax(28px, 1fr));
  column-gap: 1px;
}

.mh-label {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 0.5rem;
  opacity: 0.9;
}

.mh-cell {
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #05070d;
}

.mh-row-hours .mh-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.mh-active.mh-london { background: rgba(41, 121, 255, 0.9); }
.mh-active.mh-ny     { background: rgba(255, 82, 82, 0.9); }
.mh-active.mh-sydney { background: rgba(66, 165, 245, 0.9); }
.mh-active.mh-tokyo  { background: rgba(0, 229, 255, 0.9); }

.mh-current {
  box-shadow: inset 0 0 0 2px #ffffff;
  position: relative;
}

.mh-current::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 2px solid #40c4ff;
}

.mh-note {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 1rem;
}

.mh-converter {
  margin-top: 1.2rem;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.mh-conv-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.mh-conv-header h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.mh-conv-header p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted-soft);
}

.mh-tz-selector {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
}

.mh-tz-selector label {
  color: var(--muted-soft);
}

.mh-tz-selector select {
  font: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(3, 7, 18, 0.95);
  color: var(--text);
}

.mh-conv-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  font-size: 0.8rem;
}

.mh-conv-item {
  background: rgba(5, 11, 24, 0.9);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mh-conv-label {
  color: var(--muted-soft);
  font-size: 0.75rem;
}

.mh-conv-time {
  font-weight: 500;
}

.mh-conv-note {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--muted-soft);
}

@media (max-width: 900px) {
  .mh-conv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .mh-conv-header {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .mh-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .mh-row {
    grid-template-columns: 70px repeat(24, minmax(28px, 1fr));
  }
}

@media (max-width: 700px) {
  .section {
    padding: 3.6rem 0;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .tools-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 4.2rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }

  .prefooter-card {
    border-radius: 1.4rem;
  }
}
