/* ==========================================================================
   INFOENGI.IT - ULTRA-MODERN DESIGN SYSTEM
   Palette: Deep Slate & Space Navy + Glowing Solar Amber + Electric Sky Blue
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --navy-950: #070d19;
  --navy-900: #0b1528;
  --navy-850: #0f1f3d;
  --navy-800: #152c54;
  --navy-700: #1d3b6f;
  
  --solar-300: #fde68a;
  --solar-400: #fbbf24;
  --solar-500: #f59e0b;
  --solar-600: #d97706;
  --solar-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
  --solar-glow: 0 10px 25px -5px rgba(245, 158, 11, 0.35);

  --blue-400: #38bdf8;
  --blue-500: #0ea5e9;
  --blue-600: #0284c7;
  --blue-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  
  --emerald-500: #10b981;
  --emerald-glow: 0 0 16px rgba(16, 185, 129, 0.4);
  --rose-500: #f43f5e;
  
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;
  
  --border-subtle: #e2e8f0;
  --border-focus: #f59e0b;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.07), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 25px 35px -5px rgba(15, 23, 42, 0.14), 0 12px 16px -6px rgba(15, 23, 42, 0.08);

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CSS Reset & Base Rules
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--solar-600);
}

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

/* ==========================================================================
   Top Header Info Bar
   ========================================================================== */
.top-bar {
  background: var(--navy-950);
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar strong {
  color: #ffffff;
  font-weight: 700;
}

.top-bar-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.top-bar-links a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.top-bar-links a:hover {
  color: #fbbf24;
}

/* ==========================================================================
   Modern Sticky Glassmorphic Navbar
   ========================================================================== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
}

.navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}

.brand-link:hover .brand-logo {
  transform: scale(1.04);
}

.brand-text h1 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--solar-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

nav.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--navy-900);
  background-color: #f1f5f9;
}

.nav-links a.active {
  color: var(--navy-900);
  background-color: #e2e8f0;
}

.nav-highlight {
  background: var(--solar-gradient) !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.nav-highlight:hover,
.nav-highlight.active {
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45) !important;
  transform: translateY(-1px);
}

.btn-seismic-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #e11d48;
  color: #ffffff !important;
  font-weight: 700;
  padding: 7px 16px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.82rem !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
  transition: var(--transition-smooth);
}

.btn-seismic-live:hover {
  background-color: #be123c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.5);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.btn-nav-cta {
  background: var(--navy-900) !important;
  color: #ffffff !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-pill) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 700 !important;
  transition: var(--transition-smooth);
}

.btn-nav-cta:hover {
  background: var(--navy-800) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 21, 40, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy-900);
  cursor: pointer;
  padding: 4px;
}

/* ==========================================================================
   Hero Section - Ultra-Modern Mesh Gradient
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 10% 80%, rgba(2, 132, 199, 0.25) 0%, transparent 50%),
              linear-gradient(135deg, #070d19 0%, #0b1528 50%, #152c54 100%);
  color: #ffffff;
  padding: 85px 24px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
}

.hero .container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 22px;
}

.hero h2 {
  font-size: 2.9rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}

.hero h2 span {
  background: var(--solar-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 34px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-solar {
  background: var(--solar-gradient);
  color: #0f172a;
  box-shadow: var(--solar-glow);
}

.btn-solar:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(245, 158, 11, 0.55);
}

.btn-primary {
  background: var(--blue-gradient);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(2, 132, 199, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-card-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 16px;
}

.hero-card h3 {
  font-size: 1.3rem;
  margin-bottom: 18px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-card ul {
  list-style: none;
}

.hero-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-card ul li:last-child {
  border-bottom: none;
}

.hero-card ul li span {
  color: #fbbf24;
  font-weight: bold;
}

/* ==========================================================================
   Subpage Headers
   ========================================================================== */
.page-header {
  background: radial-gradient(circle at 90% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 50%),
              linear-gradient(135deg, #070d19 0%, #0f1f3d 100%);
  color: #ffffff;
  padding: 60px 24px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-header.solar-header {
  background: radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.25) 0%, transparent 45%),
              linear-gradient(135deg, #070d19 0%, #0f1f3d 60%, #92400e 100%);
}

.page-header.seismic-header {
  background: radial-gradient(circle at 85% 15%, rgba(225, 29, 72, 0.25) 0%, transparent 45%),
              linear-gradient(135deg, #070d19 0%, #1e1b4b 60%, #881337 100%);
}

.page-header .container {
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 14px;
  align-items: center;
}

.breadcrumb a {
  color: #cbd5e1;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.breadcrumb span.current {
  color: #fbbf24;
  font-weight: 600;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.page-header p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 800px;
  line-height: 1.65;
}

/* ==========================================================================
   Layout Containers & Common Section Layouts
   ========================================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 54px;
}

.section-tag {
  display: inline-block;
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-tag-solar {
  background-color: #fef3c7;
  color: #b45309;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto;
}

/* ==========================================================================
   Modern Cards & Grid Systems
   ========================================================================== */
.solar-banner-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 30px 36px;
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.solar-banner-text h3 {
  font-size: 1.35rem;
  color: #92400e;
  margin-bottom: 6px;
  font-weight: 800;
}

.solar-banner-text p {
  color: #78350f;
  font-size: 0.98rem;
  margin: 0;
}

.solar-grid,
.secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.solar-card,
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.solar-card:hover,
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.solar-card-header {
  padding: 22px 26px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
}

.solar-card-icon {
  width: 52px;
  height: 52px;
  background: #fef3c7;
  color: #d97706;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.solar-card-header h3 {
  font-size: 1.22rem;
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.solar-card-body,
.service-card-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.solar-card-body p,
.service-card-body p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 20px;
  line-height: 1.65;
  flex: 1;
}

.solar-card-list,
.service-features {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.solar-card-list li,
.service-features li {
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.solar-card-list li:last-child,
.service-features li:last-child {
  border-bottom: none;
}

.solar-card-list li span,
.service-features li span {
  color: var(--solar-500);
  font-weight: 800;
}

.service-card-img {
  height: 200px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.06);
}

.service-badge-sub {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* ==========================================================================
   Process Steps & Engineering Advantage
   ========================================================================== */
.process-section {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  margin-top: 36px;
  box-shadow: var(--shadow-sm);
}

.process-section h3 {
  text-align: center;
  font-size: 1.7rem;
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 34px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.process-step {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.process-step:hover {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--solar-gradient);
  color: #0f172a;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
  box-shadow: var(--solar-glow);
}

.process-step h4 {
  font-size: 1.05rem;
  color: var(--navy-900);
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.engineering-advantage {
  margin-top: 44px;
  background: linear-gradient(135deg, #070d19 0%, #0b1528 40%, #152c54 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-xl);
}

.engineering-advantage h3 {
  font-size: 1.8rem;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.engineering-advantage p {
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.7;
}

.advantage-badges {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.advantage-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   Stazione Sismica Roccaraso Live Dashboard
   ========================================================================== */
.station-status-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-bottom: 30px;
}

.status-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.status-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.status-card .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.status-card .value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-top: 6px;
  letter-spacing: -0.03em;
}

.status-card .subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald-500);
  font-weight: 800;
}

.live-dot {
  width: 12px;
  height: 12px;
  background-color: var(--emerald-500);
  border-radius: 50%;
  box-shadow: var(--emerald-glow);
  animation: pulse-ring 1.6s infinite;
}

.dashboard-controls {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.channel-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  background: #e2e8f0;
  color: var(--navy-900);
}

.tab-btn.active {
  background: var(--navy-900);
  color: #ffffff;
  border-color: var(--navy-900);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.refresh-control {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-refresh {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-refresh:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.dashboard-display {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.plot-container {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.plot-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.plot-card-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plot-card-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-900);
}

.plot-card-header span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.plot-img-wrapper {
  position: relative;
  background-color: #000000;
  cursor: zoom-in;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plot-img-wrapper img {
  width: 100%;
  height: auto;
  transition: opacity 0.2s;
}

.plot-img-wrapper:hover img {
  opacity: 0.95;
}

.click-to-zoom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.dayplots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.station-info-box {
  margin-top: 44px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.station-info-text h3 {
  font-size: 1.4rem;
  color: var(--navy-900);
  font-weight: 800;
  margin-bottom: 12px;
}

.station-info-text p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.station-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
}

.station-logos img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   Archivio Terremoti
   ========================================================================== */
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.history-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.history-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.history-card .img-box {
  height: 190px;
  background-color: #000000;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-card .img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.history-card-body {
  padding: 18px;
}

.history-card-body h4 {
  font-size: 1rem;
  color: var(--navy-900);
  font-weight: 700;
  margin-bottom: 6px;
}

.history-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   About & Stats
   ========================================================================== */
.about-wrapper {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 44px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
}

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

.stat-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-box .number {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--solar-600);
  letter-spacing: -0.03em;
}

.stat-box .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ==========================================================================
   Modern Contact Form & Cards
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 44px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  background: #fef3c7;
  color: var(--solar-600);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 1rem;
  color: var(--navy-900);
  font-weight: 800;
  margin-bottom: 4px;
}

.contact-detail p,
.contact-detail a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-form-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.contact-form-box h3 {
  font-size: 1.4rem;
  color: var(--navy-900);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.contact-form-box p.form-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-smooth);
  background-color: #f8fafc;
}

.form-control:focus {
  outline: none;
  border-color: var(--solar-500);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site-footer {
  background-color: var(--navy-950);
  color: #94a3b8;
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.footer-col p {
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================================
   Modal / Lightbox
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.modal-content img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.modal-caption {
  color: #ffffff;
  background: var(--navy-950);
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: none;
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #e11d48;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero .container,
  .about-wrapper,
  .contact-wrapper,
  .footer-grid,
  .station-info-box,
  .engineering-advantage {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 20px 24px;
    display: none;
    box-shadow: var(--shadow-xl);
  }

  nav.nav-menu.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-links li,
  .nav-links a {
    width: 100%;
  }

  .btn-seismic-live,
  .btn-nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }

  .top-bar-links {
    display: none;
  }

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