/* ==========================================================================
   ULTRA-MINIMAL SMART FLOATING HEADER + ROLLOVER MEGA-MENU
   + SUBPAGE DESIGN SYSTEM — HIGH-KEY WHITE EDITION (pages.css)
   ========================================================================== */

/* --- 1. FLOATING WHITE GLASS CAPSULE HEADER (3-ZONE GRID, ZERO OVERLAP) --- */
.smart-floating-header {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  padding: 0 16px;
}

.smart-header-capsule {
  position: relative;
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cfe2db;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    0 12px 32px rgba(15, 38, 30, 0.08),
    0 2px 6px rgba(15, 38, 30, 0.04);
  max-width: 1400px;
  width: 100%;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.smart-floating-header.has-rollover-open .smart-header-capsule {
  background: #ffffff;
  border-color: var(--as-green-primary);
  box-shadow:
    0 16px 42px rgba(15, 38, 30, 0.12),
    0 0 0 2px rgba(0, 135, 103, 0.1);
}

/* Hide the neon laser border sweep for a cleaner institutional look */
.capsule-border-glow {
  display: none;
}

.smart-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.smart-brand-logo-box {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e3efea;
  transition: scale 0.2s ease, border-color 0.2s ease;
}

.smart-brand:hover .smart-brand-logo-box {
  scale: 1.02;
  border-color: var(--as-green-primary);
}

.smart-brand-logo-box img {
  height: 24px;
  width: auto;
  display: block;
}

/* Center Smart Nav with Sliding Magnetic Glider */
.smart-nav {
  position: relative;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 3px;
  border-radius: 999px;
  background: #f4f9f7;
  border: 1px solid #dfede8;
  max-width: 100%;
  min-width: 0;
}

.smart-nav-glider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 80px;
  border-radius: 999px;
  background: #e3f3ed;
  border: 1px solid #b5ded0;
  pointer-events: none;
  transition:
    translate 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
  z-index: 0;
}

.smart-nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--as-text-body);
  white-space: nowrap;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.smart-nav-link:hover,
.smart-nav-link.is-active,
.smart-nav-link.is-hovered {
  color: var(--as-green-primary);
}

.smart-nav-link .nav-chevron {
  font-size: 0.58rem;
  opacity: 0.65;
  transition: rotate 0.25s ease, opacity 0.2s ease;
}

.smart-nav-link.is-hovered .nav-chevron {
  rotate: 180deg;
  opacity: 1;
  color: var(--as-green-primary);
}

.smart-nav-link--regulai {
  color: var(--as-green-primary);
  font-weight: 700;
}

.regulai-spark {
  color: var(--as-green-primary);
  display: inline-block;
}

/* Right Smart Actions: Composed SOS H24 + Command HUD + Contatti CTA (Fixed Width, No Shift) */
.smart-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.sos-smart-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fdf2f1;
  border: 1px solid #ecc6c3;
  color: #b92b22;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.emergency-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9352b;
  flex-shrink: 0;
}

.sos-smart-pill:hover {
  background: #c9352b;
  border-color: #c9352b;
  color: #ffffff;
}

.sos-smart-pill:hover .emergency-dot {
  background: #ffffff;
}

.cmd-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4f9f7;
  border: 1px solid #d2e3dc;
  color: var(--as-text-body);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cmd-trigger-btn:hover {
  background: var(--as-green-tint);
  border-color: var(--as-green-primary);
  color: var(--as-green-primary);
}

.cmd-trigger-btn kbd {
  font-family: var(--font-display);
  font-size: 0.63rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #cfe0d9;
  color: var(--as-green-primary);
}

.smart-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--as-green-primary);
  border: 1px solid #007357;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 135, 103, 0.2);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.smart-cta-btn:hover {
  background: #006f54;
  box-shadow: 0 6px 16px rgba(0, 135, 103, 0.28);
}

/* ==========================================================================
   2. ROLLOVER MEGA-MENU TRAY (COMPACT, BALANCED 3-COL GRID, ZERO OVERFLOW)
   ========================================================================== */
.smart-rollover-tray {
  pointer-events: none;
  display: none;
  width: 100%;
  max-width: 1320px;
  margin-top: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.99);
  border: 1.5px solid #c5dfd6;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 24px 60px rgba(15, 38, 30, 0.14),
    0 4px 14px rgba(15, 38, 30, 0.05);
  padding: 18px 20px;
  color: var(--as-anthracite);
  max-height: calc(100dvh - 82px);
  overflow-y: auto;
}

.smart-rollover-tray.is-open {
  display: block;
  pointer-events: auto;
  animation: rolloverFadeIn 0.18s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes rolloverFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.rollover-grid {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr) 255px;
  gap: 16px;
  align-items: stretch;
}

/* Left Column: Macro-Area Identity & RegulAI Synergy */
.rollover-col-intro {
  background: linear-gradient(145deg, #f2faf7 0%, #e6f4ee 100%);
  border: 1px solid #c5e2d8;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.rollover-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--as-green-primary);
}

.rollover-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--as-anthracite);
  margin-top: 4px;
}

.rollover-desc {
  font-size: 0.83rem;
  color: var(--as-text-body);
  line-height: 1.48;
}

.rollover-synergy-chip {
  padding: 9px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #c6e3d8;
  font-size: 0.75rem;
  color: var(--as-text-body);
  line-height: 1.38;
}

.rollover-synergy-chip strong {
  color: var(--as-green-primary);
  font-family: var(--font-display);
}

/* Center Column: Sub-pages & Linked Sections Grid */
.rollover-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rollover-section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--as-text-muted);
  border-bottom: 1px solid var(--as-border-light);
  padding-bottom: 6px;
}

.rollover-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.rollover-item-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--as-bg-light);
  border: 1px solid #e1ede8;
  transition: all 0.18s ease;
}

.rollover-item-card:hover {
  background: var(--as-green-tint);
  border-color: var(--as-green-primary);
  translate: 2px -1px;
}

.rollover-item-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--as-anthracite);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.rollover-item-title span {
  color: var(--as-green-primary);
  font-size: 0.78rem;
}

.rollover-item-meta {
  font-size: 0.73rem;
  color: var(--as-text-muted);
  line-height: 1.32;
}

/* Right Column: Restyled Brochures & Schede Prodotto 2026 */
.rollover-col-brochures {
  background: var(--as-bg-light);
  border: 1px solid #dfede8;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rollover-brochure-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rollover-brochure-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #cfe2db;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--as-anthracite);
  transition: all 0.18s ease;
}

.rollover-brochure-link:hover {
  background: var(--as-green-primary);
  border-color: var(--as-green-primary);
  color: #ffffff;
  translate: 2px 0;
}

.rollover-brochure-badge {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--as-green-tint);
  color: var(--as-green-primary);
  white-space: nowrap;
}

.rollover-brochure-link:hover .rollover-brochure-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* ==========================================================================
   3. SUBTLE HOLOGRAPHIC STAGE ACCENTS (COMPOSED EMERALD, NO NEON/YELLOW)
   ========================================================================== */
.biometric-laser-sweep {
  position: absolute;
  left: 26%;
  right: 26%;
  top: 12%;
  height: 1.5px;
  z-index: 12;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 135, 103, 0.45) 50%, transparent 100%);
  pointer-events: none;
  animation: laserScanVertical 8s ease-in-out infinite;
  opacity: 0.55;
}

@keyframes laserScanVertical {
  0%, 100% { top: 14%; opacity: 0; }
  15% { opacity: 0.55; }
  50% { top: 86%; opacity: 0.55; }
  65% { opacity: 0; }
}

.holo-floor-rings {
  position: absolute;
  left: 50%;
  bottom: 34px;
  translate: -50% 0;
  width: 360px;
  height: 100px;
  pointer-events: none;
  z-index: 6;
  perspective: 600px;
}

.holo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 135, 103, 0.28);
  transform: rotateX(72deg);
}

.holo-ring--outer {
  animation: spinHoloRing 24s linear infinite;
}

.holo-ring--inner {
  inset: 18px 42px;
  border-style: solid;
  border-color: rgba(0, 135, 103, 0.2);
  animation: spinHoloRingReverse 18s linear infinite;
}

@keyframes spinHoloRing {
  0% { transform: rotateX(72deg) rotateZ(0deg); }
  100% { transform: rotateX(72deg) rotateZ(360deg); }
}

@keyframes spinHoloRingReverse {
  0% { transform: rotateX(72deg) rotateZ(360deg); }
  100% { transform: rotateX(72deg) rotateZ(0deg); }
}

/* Command HUD Modal (⌘K) - High-Key White */
.cmd-hud-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(22, 34, 30, 0.42);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.cmd-hud-backdrop.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cmd-hud-modal {
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  border: 1px solid #cfe2db;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(15, 38, 30, 0.18);
  overflow: hidden;
  color: var(--as-anthracite);
}

.cmd-hud-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--as-border-light);
}

.cmd-hud-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--as-anthracite);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

.cmd-hud-input::placeholder {
  color: var(--as-text-muted);
}

.cmd-hud-close {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--as-bg-light);
  border: 1px solid var(--as-border-light);
  color: var(--as-text-body);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
}

.cmd-hud-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cmd-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--as-bg-light);
  border: 1px solid #e2eee9;
  transition: all 0.16s ease;
}

.cmd-result-row:hover {
  background: var(--as-green-tint);
  border-color: var(--as-green-primary);
}

/* ==========================================================================
   4. INTERNAL SUBPAGES DESIGN SYSTEM (.subpage-*) — HIGH-KEY WHITE EDITION
   ========================================================================== */
.subpage-hero {
  position: relative;
  padding: 124px 0 68px;
  background: radial-gradient(circle at 75% 30%, #ffffff 0%, #f2f9f6 60%, #e6f3ed 100%);
  color: var(--as-anthracite);
  overflow: hidden;
  border-bottom: 1px solid var(--as-border-light);
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 135, 103, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 135, 103, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.subpage-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.subpage-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--as-green-primary);
  margin-bottom: 14px;
}

.subpage-breadcrumb a:hover {
  color: var(--as-anthracite);
}

.subpage-title {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 3.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--as-anthracite);
}

.subpage-title span {
  color: var(--as-green-primary);
}

.subpage-lead {
  font-size: 1.06rem;
  color: var(--as-text-body);
  line-height: 1.62;
  margin-bottom: 24px;
  max-width: 680px;
}

.subpage-hero-card {
  background: #ffffff;
  border: 1px solid #cfe2db;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  color: var(--as-anthracite);
}

.subpage-section {
  padding: 76px 0;
}

.subpage-section--alt {
  background: var(--as-bg-light);
  border-top: 1px solid var(--as-border-light);
  border-bottom: 1px solid var(--as-border-light);
}

.subpage-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.subpage-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.subpage-card {
  background: #ffffff;
  border: 1px solid var(--as-border-light);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: translate 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.subpage-card:hover {
  translate: 0 -3px;
  border-color: var(--as-green-primary);
  box-shadow: var(--shadow-md);
}

.subpage-card-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--as-green-tint);
  color: var(--as-green-primary);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.subpage-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--as-anthracite);
  line-height: 1.22;
}

.subpage-card p {
  font-size: 0.92rem;
  color: var(--as-text-body);
  line-height: 1.58;
}

.subpage-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.subpage-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--as-text-main);
}

.subpage-feature-list li::before {
  content: '✓';
  color: var(--as-green-primary);
  font-weight: 700;
}

/* RegulAI Synergy Banner on internal subpages (Soft Pearl-Emerald) */
.regulai-synergy-banner {
  background: linear-gradient(135deg, #f2faf7 0%, #e2f2ec 100%);
  color: var(--as-anthracite);
  border-radius: 24px;
  padding: 36px 40px;
  border: 1px solid #c2e0d6;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: center;
  margin: 40px 0;
}

.brochure-cta-box {
  background: var(--as-green-surface);
  border: 1.5px solid #bfe0d4;
  border-radius: 18px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ==========================================================================
   4B. MOBILE NAVIGATION DRAWER & RESPONSIVE SUBPAGES (<= 1060px / <= 640px)
   ========================================================================== */
.mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--as-green-primary);
  border: 1px solid var(--as-green-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 135, 103, 0.22);
}

.mobile-drawer-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer-quickbar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-quick-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 12px;
  background: var(--as-bg-light);
  border: 1px solid #d2e4dd;
  color: var(--as-anthracite);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

.mobile-quick-pill--primary {
  background: var(--as-green-primary);
  border-color: var(--as-green-primary);
  color: #ffffff;
}

.mobile-drawer-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-acc-item {
  border: 1px solid #d5e5df;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.mobile-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: #f8fbfa;
  border: none;
  text-align: left;
  cursor: pointer;
}

.mobile-acc-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--as-green-primary);
}

.mobile-acc-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--as-anthracite);
}

.mobile-acc-chevron {
  font-size: 0.85rem;
  color: var(--as-green-primary);
  transition: transform 0.2s ease;
}

.mobile-acc-item.is-expanded .mobile-acc-chevron {
  transform: rotate(180deg);
}

.mobile-acc-body {
  display: none;
  padding: 10px 12px 12px;
  border-top: 1px solid #e5f0ec;
  flex-direction: column;
  gap: 8px;
}

.mobile-acc-item.is-expanded .mobile-acc-body {
  display: flex;
}

.mobile-acc-hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--as-green-tint);
  border: 1px solid #bde0d3;
  color: var(--as-green-primary);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
}

.mobile-acc-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-acc-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--as-bg-light);
  border: 1px solid #e6f0ec;
}

.mobile-acc-link strong {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--as-anthracite);
}

.mobile-acc-link span {
  font-size: 0.7rem;
  color: var(--as-text-muted);
  line-height: 1.3;
}

.mobile-sos-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--as-emergency-soft);
  border: 1px solid rgba(209, 52, 43, 0.3);
  color: var(--as-emergency);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  flex-wrap: wrap;
}

@media (max-width: 1320px) and (min-width: 1121px) {
  .smart-header-capsule {
    padding: 5px 8px;
    gap: 6px;
  }
  .smart-brand-logo-box {
    padding: 4px 8px;
  }
  .smart-brand-logo-box img {
    height: 21px;
  }
  .smart-nav-link {
    padding: 6px 8px;
    font-size: 0.72rem;
    gap: 3px;
  }
  .cmd-trigger-btn kbd {
    display: none !important;
  }
  .sos-smart-pill,
  .cmd-trigger-btn,
  .smart-cta-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
  }
  .rollover-grid {
    grid-template-columns: 235px minmax(0, 1fr) 225px;
    gap: 12px;
  }
}

@media (max-width: 1120px) {
  .smart-floating-header {
    top: 8px;
    left: 8px;
    right: 8px;
    padding: 0;
    max-width: calc(100vw - 16px);
  }
  .smart-header-capsule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding: 6px 8px 6px 10px;
    gap: 6px;
  }
  .smart-nav,
  .smart-cta-btn,
  .header-desktop-utility {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
    flex-shrink: 0;
  }
  .smart-brand {
    min-width: 0;
    flex-shrink: 1;
  }
  .smart-brand-logo-box {
    padding: 4px 9px;
  }
  .smart-brand-logo-box img {
    height: 22px;
  }
  .smart-actions {
    gap: 5px;
    flex-shrink: 0;
  }
  .sos-smart-pill {
    padding: 6px 9px;
    font-size: 0.7rem;
  }
  .cmd-trigger-btn {
    padding: 6px 9px;
    font-size: 0.72rem;
  }
  .cmd-trigger-btn kbd {
    display: none !important;
  }
  .smart-rollover-tray.is-mobile-drawer {
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    padding: 14px;
    border-radius: 20px;
    margin-top: 8px;
  }
  .rollover-grid,
  .subpage-hero-grid,
  .regulai-synergy-banner,
  .subpage-grid-3,
  .subpage-grid-2 {
    grid-template-columns: 1fr;
  }
  .rollover-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cmd-label-text {
    display: none !important;
  }
  .cmd-trigger-btn {
    padding: 6px 8px;
  }
  .sos-smart-pill {
    padding: 5px 8px;
    font-size: 0.68rem;
  }
  .mobile-menu-btn {
    padding: 6px 11px;
    font-size: 0.74rem;
  }
  .subpage-hero {
    padding: 78px 0 36px;
  }
  .subpage-title {
    font-size: clamp(1.65rem, 6.5vw, 2.1rem);
  }
  .subpage-lead {
    font-size: 0.94rem;
    margin-bottom: 18px;
  }
  .subpage-hero-card,
  .subpage-card {
    padding: 18px 16px;
    border-radius: 16px;
  }
  .subpage-section {
    padding: 44px 0;
  }
  .regulai-synergy-banner {
    padding: 20px 16px;
    margin: 24px 0;
    border-radius: 18px;
    gap: 18px;
  }
  .brochure-cta-box {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .cmd-hud-backdrop {
    padding: 66px 10px 14px;
  }
  .cmd-hud-modal {
    border-radius: 18px;
  }
  .cmd-hud-header {
    padding: 12px 14px;
  }
  .cmd-hud-input {
    font-size: 16px;
  }
}

/* ==========================================================================
   5. MODERN VIEW TRANSITIONS API
   ========================================================================== */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.smart-floating-header {
  view-transition-name: smart-header;
}
