/* ====================================================
   SW Italia Equipments - Custom Styles
   Industrial / B2B Premium - Palette: Rosso SW, Nero, Grigio
   ==================================================== */

:root {
  --primary-color: #D00000;
  --primary-dark: #9B0000;
  --primary-darker: #6E0000;
  --secondary-color: #1A1A1A;
  --accent-color: #C8A95E;
  --text-dark: #1A1A1A;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --bg-light: #f6f6f6;
  --bg-dark: #0E0E0E;
  --bg-darker: #050505;
  --bg-grey: #232323;
  --border-grey: #2c2c2c;
  --shadow-md: 0 6px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);
}

/* ---------- Base ---------- */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', 'Barlow', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

.section-padding {
  padding: 5rem 0;
}

@media (max-width: 767px) {
  .section-padding { padding: 3.5rem 0; }
  body { padding-top: 70px; }
}

.text-primary-sw { color: var(--primary-color) !important; }
.bg-primary-sw { background: var(--primary-color) !important; }
.bg-dark-sw { background: var(--bg-dark) !important; }

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin-top: 0.6rem;
}
.section-title.text-center::after,
.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  display: block;
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(14,14,14,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar.scrolled {
  background: rgba(5,5,5,0.96);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  padding: 0.45rem 0;
}
.navbar-brand img {
  height: 42px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}
.navbar.scrolled .navbar-brand img { height: 36px; }

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  margin: 0 0.4rem;
  padding: 0.5rem 0.3rem;
  position: relative;
  transition: color 0.2s ease;
}
.navbar-dark .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  right: 0.3rem;
  bottom: 0;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff;
}
.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar .btn-cta-nav {
  background: var(--primary-color);
  color: #fff;
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-left: 0.8rem;
  transition: background 0.2s ease;
}
.navbar .btn-cta-nav:hover {
  background: var(--primary-dark);
  color: #fff;
}
.navbar-toggler { border-color: rgba(255,255,255,0.2); }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 3px;
  padding: 0.75rem 1.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(208,0,0,0.32);
}
.btn-outline-light {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--bg-dark);
  border-color: #fff;
}
.btn-outline-primary-sw {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}
.btn-outline-primary-sw:hover {
  background: var(--primary-color);
  color: #fff;
}
.btn-dark-sw {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}
.btn-dark-sw:hover {
  background: #000;
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(14,14,14,0.92) 0%, rgba(35,10,10,0.94) 100%),
    radial-gradient(circle at 70% 20%, rgba(208,0,0,0.18) 0%, transparent 55%),
    var(--bg-dark);
  color: #fff;
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 60px, rgba(255,255,255,0.015) 60px 61px),
    repeating-linear-gradient(45deg, transparent 0 60px, rgba(255,255,255,0.015) 60px 61px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-color) 100%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-logo img {
  max-width: 380px;
  width: 100%;
  height: auto;
  margin-bottom: 1.8rem;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5));
}
.hero-payoff {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.hero-payoff .accent { color: var(--primary-color); }
.hero-headline {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.6rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
}
.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-bottom: 2.2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 576px) {
  .hero-cta .btn { width: 100%; }
}

/* ---------- Chi siamo ---------- */
.about-section { background: #fff; }
.about-lead {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.75;
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (max-width: 767px) {
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
}
.badge-tile {
  background: var(--bg-dark);
  color: #fff;
  padding: 1.6rem 1rem;
  text-align: center;
  border-top: 3px solid var(--primary-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.badge-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.badge-tile .badge-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}
.badge-tile .badge-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.3px;
  margin: 0;
}

/* ---------- Prodotti ---------- */
.prodotti-section {
  background: var(--bg-light);
  position: relative;
}
.prodotti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 991px) { .prodotti-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .prodotti-grid { grid-template-columns: 1fr; } }

.product-card {
  background: #fff;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.product-card:hover {
  border-bottom-color: var(--primary-color);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card .product-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #1a1a1a;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover img { transform: scale(1.06); }
.product-card .product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem 1.4rem;
  transition: background 0.3s ease;
}
.product-card:hover .product-overlay {
  background: linear-gradient(180deg, rgba(208,0,0,0.15) 0%, rgba(0,0,0,0.85) 100%);
}
.product-card .product-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.product-card .product-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}
.product-card:hover .product-arrow {
  opacity: 1;
  transform: translateX(0);
}
.prodotti-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Perché scegliere SW ---------- */
.banner-rosso {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.banner-rosso::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 40px, rgba(255,255,255,0.04) 40px 41px);
  pointer-events: none;
}
.banner-rosso h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

.perche-section { background: #fff; padding: 4.5rem 0; }
.perche-col {
  text-align: center;
  padding: 1.5rem 1rem;
}
.perche-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 1.4rem;
  background: var(--bg-dark);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}
.perche-col:hover .perche-icon {
  background: var(--primary-color);
  color: #fff;
  transform: rotate(-5deg);
}
.perche-col h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
  color: var(--text-dark);
}
.perche-col p {
  color: #555;
  font-size: 0.97rem;
}
.perche-claim {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1.4rem 1rem;
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  border-right: 4px solid var(--primary-color);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-dark);
}
.perche-claim .star { color: var(--primary-color); }

/* ---------- Servizi ---------- */
.servizi-section {
  background: var(--bg-dark);
  color: #fff;
  position: relative;
}
.servizi-section .section-eyebrow { color: var(--primary-color); }
.servizi-section h2, .servizi-section .section-title { color: #fff; }
.servizi-section .lead { color: rgba(255,255,255,0.7); }
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}
@media (max-width: 991px) { .servizi-grid { grid-template-columns: 1fr; } }
.servizio-box {
  background: var(--bg-grey);
  padding: 2rem 1.8rem;
  border-left: 3px solid var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
}
.servizio-box:hover {
  background: #2c2c2c;
  transform: translateY(-4px);
}
.servizio-box .servizio-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(208,0,0,0.25);
  position: absolute;
  top: 0.5rem;
  right: 1.2rem;
  line-height: 1;
}
.servizio-box .servizio-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.servizio-box h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}
.servizio-box p {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* ---------- Contatti ---------- */
.contatti-section { background: var(--bg-light); }
.contatti-info {
  background: var(--bg-dark);
  color: #fff;
  padding: 2.5rem 2rem;
  height: 100%;
}
.contatti-info h3 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}
.contatti-info .info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.3rem;
  align-items: flex-start;
}
.contatti-info .info-item i {
  color: var(--primary-color);
  font-size: 1.05rem;
  width: 28px;
  text-align: center;
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.contatti-info .info-item .info-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55);
  margin: 0 0 0.15rem;
  font-weight: 600;
}
.contatti-info .info-item .info-value {
  color: #fff;
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.45;
}
.contatti-info .info-item a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.contatti-info .info-item a:hover { color: var(--primary-color); }
.contatti-info .map-wrap {
  margin-top: 1.5rem;
  border: 2px solid rgba(255,255,255,0.08);
}
.contatti-info .map-wrap iframe {
  width: 100%;
  height: 220px;
  display: block;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}

.contatti-form-card {
  background: #fff;
  padding: 2.5rem 2rem;
  height: 100%;
  border-top: 3px solid var(--primary-color);
  box-shadow: var(--shadow-md);
}
.contatti-form-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}
.contatti-form-card .form-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.contatti-form-card label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
  color: var(--text-dark);
}
.contatti-form-card .form-control,
.contatti-form-card .form-select {
  border: 1px solid #d8d8d8;
  border-radius: 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.97rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contatti-form-card .form-control:focus,
.contatti-form-card .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.18rem rgba(208,0,0,0.15);
}
.contatti-form-card textarea.form-control { min-height: 130px; }
.contatti-form-card .form-check { margin: 1rem 0 1.4rem; }
.contatti-form-card .form-check-label { font-size: 0.88rem; text-transform: none; letter-spacing: normal; color: #444; }
.contatti-form-card .form-check-label a { color: var(--primary-color); text-decoration: underline; }
.contatti-form-card .btn-primary { width: 100%; padding: 0.85rem; font-size: 0.95rem; }

/* Toggle canale form: Messaggio | WhatsApp */
.form-channel-toggle {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 1.25rem;
  gap: 2px;
}
.form-channel-toggle .channel-btn {
  border: none;
  background: transparent;
  color: #6c757d;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.01em;
}
.form-channel-toggle .channel-btn:hover { color: #1a1a1a; }
.form-channel-toggle .channel-btn[data-channel="email"].active {
  background: #D00000;
  color: #fff;
  box-shadow: 0 2px 8px rgba(208, 0, 0, 0.30);
}
.form-channel-toggle .channel-btn[data-channel="whatsapp"].active {
  background: #25D366;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}
form#contactForm[data-channel="whatsapp"] .btn-submit {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #fff !important;
}
form#contactForm[data-channel="whatsapp"] .btn-submit:hover {
  background: #1da851 !important;
  border-color: #1da851 !important;
}
@media (max-width: 480px) {
  .form-channel-toggle .channel-btn { padding: 7px 14px; font-size: 0.85rem; }
}

/* Form validation */
.form-control.is-invalid,
.form-select.is-invalid,
.form-check-input.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220,53,69,0.25) !important;
}
.form-check-input.is-invalid ~ .form-check-label { color: #dc3545; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-darker);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 1.5rem;
  border-top: 4px solid var(--primary-color);
}
.site-footer h5 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.site-footer h5::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
  position: absolute;
  bottom: 0;
  left: 0;
}
.footer-logo-img {
  max-width: 180px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
}
.footer-payoff {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin: 0.6rem 0 1rem;
}
.footer-payoff .accent { color: var(--primary-color); }
.site-footer p { font-size: 0.93rem; margin-bottom: 0.5rem; line-height: 1.6; }
.site-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--primary-color); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.55rem; font-size: 0.93rem; }
.site-footer ul li i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  width: 14px;
  text-align: center;
  font-size: 0.82rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}
.footer-bottom .legal-line { margin-top: 0.4rem; font-size: 0.8rem; color: rgba(255,255,255,0.45); }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  z-index: 9998;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  animation: wa-pulse 2.4s infinite;
}
.wa-fab:hover {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,0.28), 0 0 0 0 rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 14px rgba(0,0,0,0.28), 0 0 0 14px rgba(37,211,102,0); }
}
@media (max-width: 576px) {
  .wa-fab {
    width: 52px;
    height: 52px;
    font-size: 24px;
    right: 15px;
    bottom: 15px;
  }
}

/* ---------- Cookie icon override (no rosso warning) ---------- */
#cookie-settings-icon {
  background: var(--bg-dark) !important;
  color: var(--primary-color) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
#cookie-settings-icon:hover {
  background: #000 !important;
  color: #fff !important;
}

/* ---------- 404 ---------- */
.error-section {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(14,14,14,0.96) 0%, rgba(40,5,5,0.94) 100%),
    var(--bg-dark);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}
.error-section .error-code {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 700;
  line-height: 1;
  color: var(--primary-color);
  margin: 0;
  text-shadow: 0 6px 30px rgba(208,0,0,0.4);
}
.error-section h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0.5rem 0 0.7rem;
}
.error-section p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ---------- Animations ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Modal cleanup ---------- */
.modal-content {
  border-radius: 8px;
  border: none;
}
.modal-header {
  border-bottom: 1px solid #eee;
  background: var(--bg-light);
}
.modal-header .modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--bg-dark);
}
.modal-body h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.modal-body h6:first-child { margin-top: 0; }

/* ---------- Utility ---------- */
.divider-red {
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin: 1rem 0;
}
.text-mono-up {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 600;
}
