/* ===== RCS SRL - Design System ===== */
/* Industrial, Modern, Clean — Sicurezza & Affidabilità */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Palette */
  --bg-base: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-muted: #E2E8F0;

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --accent-blue: #476EA9;
  --accent-blue-hover: #3b5a8e;
  --accent-blue-light: #e5ebf3;
  --accent-blue-subtle: #f2f5f9;

  --accent-orange: #ADABAE;
  --accent-orange-hover: #8D8C8F;
  --accent-orange-light: #F7F7F7;

  --success: #16A34A;
  --danger: #DC2626;

  --border-color: #E2E8F0;
  --border-hover: #CBD5E1;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.07), 0 2px 4px -2px rgba(15,23,42,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.08), 0 4px 6px -4px rgba(15,23,42,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15,23,42,0.1), 0 8px 10px -6px rgba(15,23,42,0.06);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1280px;
  --header-height: 100px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- HEADER ---------- */
.site-header {
  position: relative;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: box-shadow var(--transition-base), background var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.logo img {
  height: 90px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .company-name {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), #2563EB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text .company-sub {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  position: relative;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.main-nav a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.12);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 1px;
  transition: transform var(--transition-base);
}

.main-nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.85);
  transition: all var(--transition-fast);
}

.header-action-btn:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.15);
}

.header-action-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform var(--transition-fast);
}

.cart-badge.active {
  transform: scale(1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ---------- FIXED BACKGROUND VIDEO ---------- */
#fixed-bg-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#fixed-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#fixed-bg-overlay {
  position: absolute;
  inset: 0;
  /* Dark gradient: stronger at sides/bottom for text readability */
  background: linear-gradient(
    135deg,
    rgba(5,15,30,0.55) 0%,
    rgba(5,15,30,0.25) 50%,
    rgba(5,15,30,0.45) 100%
  );
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  margin-top: 0;
  overflow: visible;
  background: transparent;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(71,110,169,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(5,10,20,0.4), transparent);
  pointer-events: none;
}

/* Grid pattern overlay */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(71,110,169,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71,110,169,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: 40px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #7399D8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 50px rgba(15,23,42,0.12));
  animation: heroFloat 6s ease-in-out infinite;
}

/* Decorative elements around hero image */
.hero-deco-ring {
  position: absolute;
  border: 2px solid rgba(71,110,169,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-deco-ring:nth-child(2) {
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  animation: pulseRing 4s ease-in-out infinite;
}

.hero-deco-ring:nth-child(3) {
  width: 130%;
  height: 130%;
  top: -15%;
  left: -15%;
  animation: pulseRing 4s ease-in-out 1s infinite;
  opacity: 0.5;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 1px 3px rgba(71,110,169,0.3), 0 4px 12px rgba(71,110,169,0.15);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  box-shadow: 0 2px 6px rgba(71,110,169,0.35), 0 8px 20px rgba(71,110,169,0.2);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--accent-blue-subtle);
}

.btn-orange {
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 1px 3px rgba(173,171,174,0.3), 0 4px 12px rgba(173,171,174,0.15);
}

.btn-orange:hover {
  background: var(--accent-orange-hover);
  box-shadow: 0 2px 6px rgba(173,171,174,0.35), 0 8px 20px rgba(173,171,174,0.2);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.82rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- TRUST BADGES ---------- */
.trust-section {
  position: relative;
  z-index: 1;
  padding: 48px 0;
  /* Default: glass over the fixed video */
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition:
    background 0.5s ease,
    border-color 0.5s ease,
    backdrop-filter 0.5s ease;
}

/* Solid state — triggered by JS when user scrolls */
.trust-section.solid {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  position: relative;
  transition: transform var(--transition-base);
}

.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.25);
  transition: background 0.5s ease;
}
.trust-section.solid .trust-item:not(:last-child)::after {
  background: var(--border-color);
}

.trust-item:hover {
  transform: translateY(-2px);
}

.trust-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  color: #ffffff;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}
.trust-section.solid .trust-icon {
  background: var(--accent-blue-subtle);
  color: var(--accent-blue);
}

.trust-item:hover .trust-icon {
  transform: scale(1.05);
}
.trust-section.solid .trust-item:hover .trust-icon {
  background: var(--accent-blue-light);
}

.trust-icon svg {
  width: 26px;
  height: 26px;
}

.trust-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  transition: color 0.5s ease, text-shadow 0.5s ease;
}
.trust-section.solid .trust-item h3 {
  color: var(--text-primary);
  text-shadow: none;
}

.trust-item p {
  font-size: 0.81rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  transition: color 0.5s ease;
}
.trust-section.solid .trust-item p {
  color: var(--text-muted);
}

/* ---------- SECTIONS (solid bg — covers the fixed video) ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  background: var(--bg-base);
}

/* Variante per alternare sezioni catalogo */
.section--alt {
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--accent-blue);
  opacity: 0.4;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* ---------- PRODUCT GRID ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---------- PRODUCT CARD ---------- */
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-image {
  position: relative;
  padding: 24px;
  background: linear-gradient(135deg, #F8FAFC, #EFF6FF);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
}

.product-card-image img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

/* Swap al hover quando c'è una seconda vista */
.product-card-image.has-alt {
  perspective: 800px;
}

.product-card-image.has-alt .product-card-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 380ms cubic-bezier(0.16, 1, 0.3, 1),
              transform var(--transition-slow);
}

.product-card-image.has-alt .product-card-img--alt {
  opacity: 0;
}

.product-card:hover .product-card-image.has-alt .product-card-img--primary {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.05);
}

.product-card:hover .product-card-image.has-alt .product-card-img--alt {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

/* Indicatore visivo (puntino) che ci sono 2 viste */
.product-card-image.has-alt::after {
  content: '';
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 0 2px var(--bg-white), -14px 0 0 0 rgba(71,110,169,0.3), -14px 0 0 2px var(--bg-white);
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.product-card:hover .product-card-image.has-alt::after {
  opacity: 1;
  background: rgba(71,110,169,0.3);
  box-shadow: 0 0 0 2px var(--bg-white), -14px 0 0 0 var(--accent-blue), -14px 0 0 2px var(--bg-white);
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
}

.product-tag.patented {
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  border: 1px solid rgba(173,171,174,0.2);
}

.product-tag.no-vvf {
  background: #F0FDF4;
  color: var(--success);
  border: 1px solid rgba(22,163,74,0.2);
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.product-card-body .product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.product-price .price-currency {
  font-size: 0.85rem;
  font-weight: 600;
}

.product-price .price-vat {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-actions .btn {
  justify-content: center;
  width: 100%;
}

.details-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-blue);
  padding: 8px;
  transition: all var(--transition-fast);
}

.details-link:hover {
  color: var(--accent-blue-hover);
  gap: 8px;
}

.details-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.details-link:hover svg {
  transform: translateX(2px);
}

/* ---------- HISTORY / TIMELINE ---------- */
.history-section {
  background: var(--bg-white);
}

.timeline-wrapper {
  overflow-x: auto;
  padding: 20px 0 60px;
}

.timeline-container {
  position: relative;
  min-width: 800px;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-image {
  width: 100%;
  height: auto;
  display: block;
}

.timeline-hotspot {
  position: absolute;
  width: 40px;
  height: 50px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
}

/* Pulsing effect to guide user */
.timeline-hotspot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  background: var(--accent-blue);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-hotspot:hover::before {
  opacity: 0.2;
  animation: pulseHotspot 1s infinite alternate;
}

@keyframes pulseHotspot {
  0% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(1.6); }
}

.hotspot-label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.5);
  pointer-events: none;
  white-space: nowrap;
  z-index: 6;
}

.hotspot-tooltip {
  position: absolute;
  top: 100%; /* Sotto il punto */
  left: 50%;
  transform: translateX(-50%) translateY(-15px);
  width: 220px;
  background: var(--text-primary);
  color: var(--bg-white);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  pointer-events: none;
  z-index: 10;
}

/* Tooltip Arrow - punta verso l'ALTO */
.hotspot-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent var(--text-primary) transparent;
}

.timeline-hotspot:hover .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
}

.hotspot-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #60A5FA;
  margin-bottom: 6px;
  line-height: 1.2;
}

.hotspot-desc {
  font-size: 0.85rem;
  color: #E2E8F0;
  line-height: 1.5;
}

/* ---------- ACCESSORIES SECTION ---------- */
.accessories-section {
  background: var(--bg-white);
}

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

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--text-primary);
  color: #CBD5E1;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo img {
  height: 90px;
  background: white;
  padding: 8px 16px;
  border-radius: 8px;
  object-fit: contain;
}

.footer-brand .footer-logo span {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #94A3B8;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  color: #94A3B8;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent-blue);
  color: #fff;
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

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

.footer-col ul li a {
  font-size: 0.88rem;
  color: #94A3B8;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--accent-blue-light);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: #64748B;
}

.footer-bottom .footer-legal {
  display: flex;
  gap: 24px;
}

.footer-bottom .footer-legal a {
  font-size: 0.78rem;
  color: #64748B;
  transition: color var(--transition-fast);
}

.footer-bottom .footer-legal a:hover {
  color: var(--accent-blue-light);
}

.footer-bottom .footer-legal .footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-bottom .footer-legal .footer-admin-link svg {
  width: 12px;
  height: 12px;
}

/* ---------- CART SIDEBAR ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-white);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(15,23,42,0.1);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.cart-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.cart-close:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.cart-close svg {
  width: 20px;
  height: 20px;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.cart-empty svg {
  width: 64px;
  height: 64px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.cart-empty p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-image img {
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-details .cart-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.cart-item-qty button:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.cart-item-qty span {
  font-size: 0.88rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  color: var(--text-light);
  transition: color var(--transition-fast);
  align-self: flex-start;
}

.cart-item-remove:hover {
  color: var(--danger);
}

.cart-item-remove svg {
  width: 18px;
  height: 18px;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-total span:first-child {
  font-size: 0.95rem;
  font-weight: 600;
}

.cart-total span:last-child {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.cart-footer .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- PRODUCT DETAIL MODAL ---------- */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  z-index: 4000;
}

.product-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: calc(100% - 32px);
  max-width: 920px;
  max-height: 90vh;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  z-index: 4001;
}

.product-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.product-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.product-modal-close:hover {
  background: var(--bg-subtle);
  transform: rotate(90deg);
}

.product-modal-close svg {
  width: 20px;
  height: 20px;
}

.product-modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 90vh;
  overflow-y: auto;
}

.product-modal-image {
  position: relative;
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--accent-blue-subtle) 100%);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.product-modal-image img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.15));
}

.product-modal-tags {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 1;
}

.product-modal-info {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
}

.product-modal-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.product-modal-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.product-modal-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.product-modal-price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.product-modal-price .price-currency {
  color: var(--accent-blue);
  margin-right: 2px;
}

.product-modal-price .price-vat {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 8px;
}

.product-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

.product-modal-actions .btn {
  flex: 1;
  min-width: 0;
  justify-content: center;
}

@media (max-width: 768px) {
  .product-modal {
    width: calc(100% - 16px);
    max-height: 92vh;
  }
  .product-modal-content {
    grid-template-columns: 1fr;
  }
  .product-modal-image {
    min-height: 240px;
    padding: 28px;
  }
  .product-modal-image img {
    max-height: 220px;
  }
  .product-modal-info {
    padding: 28px 24px;
  }
  .product-modal-title {
    font-size: 1.4rem;
  }
  .product-modal-price {
    font-size: 1.5rem;
  }
}

/* ---------- NOTIFICATION TOAST ---------- */
.toast-container {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--text-primary);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.88rem;
  font-weight: 500;
  animation: slideInRight 0.3s ease-out;
  max-width: 340px;
}

.toast svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
}

.toast.removing {
  animation: slideOutRight 0.3s ease-in forwards;
}

/* ---------- LOADING SKELETON ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-muted) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  height: 380px;
  border-radius: var(--radius-lg);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulseRing {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.02); }
}

@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .products-grid,
  .accessories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .hero-inner {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }

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

  .main-nav a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 40px 0 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 36px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .trust-item:not(:last-child)::after {
    display: none;
  }

  .products-grid,
  .accessories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cart-sidebar {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .products-grid,
  .accessories-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== TIMELINE BLUEPRINT TECNICO (BREVETTI) ==================== */

/* Background grid sulla sezione storia (tipo CAD) */
.history-section {
  position: relative;
  overflow: hidden;
}

.history-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(71,110,169,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71,110,169,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.history-section > .container {
  position: relative;
  z-index: 1;
}

/* Cross marks decorativi agli angoli */
.history-section::after {
  content: '';
  position: absolute;
  top: 80px;
  left: 24px;
  right: 24px;
  bottom: 80px;
  pointer-events: none;
  z-index: 0;
  background-image:
    /* Top-left cross */
    linear-gradient(rgba(71,110,169,0.25), rgba(71,110,169,0.25)),
    linear-gradient(rgba(71,110,169,0.25), rgba(71,110,169,0.25)),
    /* Top-right cross */
    linear-gradient(rgba(71,110,169,0.25), rgba(71,110,169,0.25)),
    linear-gradient(rgba(71,110,169,0.25), rgba(71,110,169,0.25)),
    /* Bottom-left cross */
    linear-gradient(rgba(71,110,169,0.25), rgba(71,110,169,0.25)),
    linear-gradient(rgba(71,110,169,0.25), rgba(71,110,169,0.25)),
    /* Bottom-right cross */
    linear-gradient(rgba(71,110,169,0.25), rgba(71,110,169,0.25)),
    linear-gradient(rgba(71,110,169,0.25), rgba(71,110,169,0.25));
  background-size: 16px 1px, 1px 16px, 16px 1px, 1px 16px, 16px 1px, 1px 16px, 16px 1px, 1px 16px;
  background-position:
    top left, top left,
    top right, top right,
    bottom left, bottom left,
    bottom right, bottom right;
  background-repeat: no-repeat;
}

/* Timeline wrapper */
.timeline-modern {
  position: relative;
  max-width: 960px;
  margin: 60px auto 0;
  padding: 20px 0;
  --timeline-progress: 0;
}

/* Linea base (tutta opaca) */
.timeline-modern::before {
  content: '';
  position: absolute;
  width: 2px;
  background: rgba(71,110,169,0.15);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

/* Linea animata (si "disegna" mentre scrolli) */
.timeline-progress-bar {
  position: absolute;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-blue) 0%, var(--accent-blue-hover) 60%, transparent 100%);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleY(var(--timeline-progress, 0));
  transform-origin: top center;
  border-radius: 2px;
  z-index: 1;
  box-shadow: 0 0 18px rgba(71,110,169,0.45);
  transition: transform 200ms linear;
}

/* Item */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 16px 56px;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Anno gigante in watermark (background) */
.timeline-item::before {
  content: attr(data-year);
  position: absolute;
  font-size: clamp(5rem, 9vw, 8.5rem);
  font-weight: 900;
  line-height: 0.85;
  color: rgba(15,23,42,0.05);
  top: 50%;
  transform: translateY(-50%);
  letter-spacing: -0.04em;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item:nth-child(odd)::before {
  right: 56px;
}

.timeline-item:nth-child(even)::before {
  left: 56px;
}

/* Dot centrale: cerchio con icona + connector line verso la card */
.timeline-dot {
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--bg-white);
  border: 2px solid var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  top: 32px;
  z-index: 3;
  box-shadow: 0 0 0 6px var(--bg-base), 0 8px 20px rgba(71,110,169,0.18);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease, background 350ms ease;
}

.timeline-dot svg {
  width: 26px;
  height: 26px;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -28px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -28px;
}

/* Connector tra dot e card (segmento orizzontale tratteggiato) */
.timeline-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 32px;
  height: 1px;
  border-top: 1px dashed rgba(71,110,169,0.35);
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-dot::after {
  right: 100%;
  margin-right: 6px;
}

.timeline-item:nth-child(even) .timeline-dot::after {
  left: 100%;
  margin-left: 6px;
}

/* Hover dot: pulse + scale */
.timeline-item:hover .timeline-dot {
  background: var(--accent-blue);
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 0 6px var(--bg-base), 0 0 0 12px rgba(71,110,169,0.15), 0 12px 28px rgba(71,110,169,0.35);
}

.timeline-item:hover .timeline-dot svg {
  transform: rotate(-8deg) scale(1.08);
}

/* Dot "Oggi" — accentuato */
.timeline-dot--today {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-hover) 100%);
  color: #fff;
  border-color: transparent;
  animation: timelinePulse 2.4s ease-in-out infinite;
}

@keyframes timelinePulse {
  0%, 100% { box-shadow: 0 0 0 6px var(--bg-base), 0 0 0 10px rgba(71,110,169,0.25), 0 8px 20px rgba(71,110,169,0.35); }
  50% { box-shadow: 0 0 0 6px var(--bg-base), 0 0 0 18px rgba(71,110,169,0), 0 8px 20px rgba(71,110,169,0.35); }
}

/* Card */
.timeline-content {
  position: relative;
  padding: 28px 32px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease, border-color 350ms ease;
  z-index: 2;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Numero anno piccolo nell'angolo della card (techie blueprint label) */
.timeline-content::before {
  content: attr(data-tag);
  position: absolute;
  top: 14px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-light);
  text-transform: uppercase;
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  content: '— INNOV.';
  right: 18px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  content: 'INNOV. —';
  left: 18px;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-blue-light);
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.timeline-year::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.timeline-content ul {
  padding-left: 0;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.timeline-content ul li {
  position: relative;
  padding-left: 18px;
}

.timeline-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--accent-blue);
}

.timeline-item:nth-child(odd) .timeline-content ul {
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content ul li {
  padding-left: 0;
  padding-right: 18px;
}

.timeline-item:nth-child(odd) .timeline-content ul li::before {
  left: auto;
  right: 0;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

/* Today item — dark variant */
.timeline-item--today .timeline-content {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  color: #fff;
  border-color: transparent;
}

.timeline-item--today .timeline-content::before {
  color: rgba(255,255,255,0.4);
}

.timeline-item--today .timeline-content .timeline-year {
  background: rgba(71,110,169,0.25);
  color: #93B5DD;
}

.timeline-item--today .timeline-content .timeline-year::before {
  background: #93B5DD;
}

.timeline-item--today .timeline-content h3 {
  color: #fff;
}

.timeline-item--today .timeline-content p {
  color: #CBD5E1;
}

.timeline-item--today::before {
  color: rgba(71,110,169,0.08);
}

/* Mobile */
@media screen and (max-width: 768px) {
  .timeline-modern::before,
  .timeline-progress-bar {
    left: 28px;
    transform: translateX(-50%) scaleY(var(--timeline-progress, 0));
  }

  .timeline-modern::before {
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 100%;
    padding: 16px 16px 16px 76px;
    text-align: left !important;
    margin-bottom: 36px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 0;
    right: auto;
    width: 48px;
    height: 48px;
    top: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-dot::after,
  .timeline-item:nth-child(even) .timeline-dot::after {
    left: 100%;
    right: auto;
    margin-left: 4px;
    margin-right: 0;
    width: 16px;
  }

  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    right: auto;
    left: 76px;
    font-size: 4rem;
    opacity: 0.6;
  }

  .timeline-item:nth-child(odd) .timeline-content::before {
    right: 14px;
    left: auto;
    content: 'INNOV. —';
  }

  .timeline-item:nth-child(odd) .timeline-content ul {
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-content ul li {
    padding-left: 18px;
    padding-right: 0;
  }

  .timeline-item:nth-child(odd) .timeline-content ul li::before {
    left: 0;
    right: auto;
  }
}

/* ========================================================
   SCROLL VIDEO INTRO
   ======================================================== */

/* The block is 300vh tall so the user has room to scroll
   while the sticky video fills the screen */
.scroll-video-intro {
  position: relative;
  height: 300vh; /* scroll distance */
}

.scroll-video-bg {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.scroll-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0.5) 100%
  );
  pointer-events: none;
  /* Needs to cover the sticky sticky video — use mix-blend-mode trick */
  z-index: 1;
}

/* We need the overlay on top of the sticky video.
   Use a pseudo+inner approach: place overlay inside a sticky wrapper */
.scroll-video-intro {
  overflow: hidden; /* clip children that escape */
}

/* Rewrite: wrap everything that needs to be sticky */
.scroll-video-bg {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

/* Overlay & content sit on top, also sticky */
.scroll-video-overlay,
.scroll-video-content {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* Pull back up so they overlap the video row above */
  margin-top: -100vh;
  pointer-events: none;
}

.scroll-video-overlay {
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.1) 60%,
    rgba(15,23,42,0.6) 100%
  );
  z-index: 2;
}

.scroll-video-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 80px;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scroll-video-logo img {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.scroll-video-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-video-hint svg {
  width: 22px;
  height: 22px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ========================================================
   VIDEO SHOWCASE SECTIONS
   ======================================================== */

.video-showcase {
  position: relative;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
}

.video-showcase-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-showcase-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Subtle scale on load for cinematic feel */
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.video-showcase:hover .video-showcase-bg {
  transform: scale(1.0);
}

.video-showcase-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(5,10,20,0.72) 0%,
    rgba(5,10,20,0.3) 55%,
    rgba(5,10,20,0.05) 100%
  );
}

.video-showcase--right .video-showcase-overlay {
  background: linear-gradient(
    -105deg,
    rgba(5,10,20,0.72) 0%,
    rgba(5,10,20,0.3) 55%,
    rgba(5,10,20,0.05) 100%
  );
}

.video-showcase-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.video-showcase--right .video-showcase-content {
  justify-content: flex-end;
}

.video-showcase-text {
  max-width: 520px;
  padding: 40px 0;
}

.video-showcase--right .video-showcase-text {
  text-align: right;
}

.video-showcase-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 12px 0 20px;
}

.video-showcase-title span {
  background: linear-gradient(135deg, #7399D8 0%, #476EA9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.video-showcase-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

/* Glass button */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-glass:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .scroll-video-intro {
    height: 400vh; /* more room on mobile */
  }

  .video-showcase {
    height: 70vh;
    min-height: 420px;
  }

  .video-showcase-content {
    align-items: flex-end;
    padding-bottom: 48px;
  }

  .video-showcase--right .video-showcase-content {
    justify-content: flex-start;
  }

  .video-showcase--right .video-showcase-text {
    text-align: left;
  }

  .video-showcase-overlay,
  .video-showcase--right .video-showcase-overlay {
    background: linear-gradient(
      to top,
      rgba(5,10,20,0.85) 0%,
      rgba(5,10,20,0.2) 60%,
      transparent 100%
    );
  }
}

/* ========================================================
   REVEAL / SCROLL ANIMATIONS
   ======================================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulseRing {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.08; transform: scale(1.04); }
}

/* ---------- Generic .reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
              transform 0.55s cubic-bezier(0.22,1,0.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for generic reveals */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- Product card specific reveal ---------- */
/* Cards start invisible with a slight scale + translate */
.product-card.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.96);
  transition:
    opacity 0.6s cubic-bezier(0.22,1,0.36,1),
    transform 0.6s cubic-bezier(0.22,1,0.36,1),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.product-card.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Shimmer highlight that sweeps across the card once it appears */
.product-card.reveal.visible::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.45) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: cardShimmer 0.7s ease-out 0.3s 1 forwards;
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

@keyframes cardShimmer {
  from { background-position: -100% 0; opacity: 1; }
  to   { background-position: 200% 0;  opacity: 0; }
}

/* Per-card stagger delays (set via JS data-delay) */
.product-card[data-delay="1"]  { transition-delay: 0.06s; }
.product-card[data-delay="2"]  { transition-delay: 0.12s; }
.product-card[data-delay="3"]  { transition-delay: 0.18s; }
.product-card[data-delay="4"]  { transition-delay: 0.24s; }
.product-card[data-delay="5"]  { transition-delay: 0.30s; }
.product-card[data-delay="6"]  { transition-delay: 0.36s; }
.product-card[data-delay="7"]  { transition-delay: 0.42s; }
.product-card[data-delay="8"]  { transition-delay: 0.48s; }

/* Section header reveal */
.section-header.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.22,1,0.36,1),
    transform 0.7s cubic-bezier(0.22,1,0.36,1);
}

.section-header.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ================================================================
   MOBILE RESPONSIVE — max-width: 768px
   Solo mobile, nessuna modifica al desktop
   ================================================================ */
@media (max-width: 768px) {

  /* ----- HEADER ----- */
  .site-header {
    height: 68px;
  }

  :root {
    --header-height: 68px;
  }

  .logo img {
    height: 60px;
  }

  /* Mostra il bottone hamburger */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Nasconde la nav desktop */
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(5, 15, 30, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
  }

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

  .main-nav a {
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  /* ----- FIXED VIDEO ----- */
  #fixed-bg-video {
    object-position: center center;
  }

  /* ----- HERO ----- */
  .hero {
    min-height: 90vh;
    padding-bottom: 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 20px;
    text-align: center;
  }

  .hero-content {
    padding: 20px 0 0;
  }

  .hero-badge {
    margin: 0 auto 20px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    margin: 0 auto 28px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-visual {
    order: -1; /* immagine/video prima del testo */
  }

  .hero-image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  #hero-image {
    width: 80% !important;
    max-width: 240px !important;
  }

  .hero-deco-ring {
    display: none; /* troppo rumore visivo su mobile */
  }

  /* ----- TRUST BADGES ----- */
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2)::after {
    display: none;
  }

  .trust-item:nth-child(odd):not(:last-child)::after {
    display: block;
  }

  /* ----- SEZIONI ----- */
  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  /* ----- CATALOGO PRODOTTI ----- */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card-image {
    min-height: 160px;
    padding: 16px;
  }

  .product-card-image img {
    max-height: 130px;
  }

  .product-card-body {
    padding: 14px;
  }

  .product-card-body h3 {
    font-size: 0.92rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  /* ----- ACCESSORI ----- */
  .accessories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* ----- VIDEO SHOWCASE ----- */
  .video-showcase {
    height: 75vh;
    min-height: 400px;
  }

  .video-showcase-content {
    align-items: flex-end;
    padding-bottom: 40px;
  }

  .video-showcase--right .video-showcase-content {
    justify-content: flex-start;
  }

  .video-showcase--right .video-showcase-text {
    text-align: left;
  }

  .video-showcase-overlay,
  .video-showcase--right .video-showcase-overlay {
    background: linear-gradient(
      to top,
      rgba(5,10,20,0.88) 0%,
      rgba(5,10,20,0.25) 65%,
      transparent 100%
    );
  }

  .video-showcase-title {
    font-size: 1.75rem;
  }

  .video-showcase-desc {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }

  /* ----- FOOTER ----- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-bottom .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  /* ----- CART SIDEBAR ----- */
  .cart-sidebar {
    width: 100%;
  }

  /* ----- BUTTONS ----- */
  .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .btn-sm {
    padding: 9px 14px;
    font-size: 0.78rem;
  }

  /* ----- CONTAINER PADDING ----- */
  .container {
    padding: 0 16px;
  }
}

/* ================================================================
   SMALL MOBILE — max-width: 480px
   ================================================================ */
@media (max-width: 480px) {

  .products-grid,
  .accessories-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .video-showcase-title {
    font-size: 1.5rem;
  }

  #hero-image {
    width: 65% !important;
    max-width: 200px !important;
  }
}






/* ==================== STATS SECTION ==================== */
.stats-section {
  padding: 80px 0;
  background: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(71,110,169,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.stat-item {
  padding: 48px 32px;
  text-align: center;
  background: rgba(255,255,255,0.03);
  transition: background var(--transition-base);
  position: relative;
}

.stat-item:hover {
  background: rgba(71,110,169,0.12);
}

.stat-number {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748B;
}

.stat-desc {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-top: 6px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}


/* ==================== FAQ SECTION ==================== */
.faq-section {
  padding: 100px 0;
  background: var(--bg-base);
}

.faq-list {
  max-width: 820px;
  margin: 60px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.faq-item:first-child {
  border-top: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-blue);
}

.faq-question-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.faq-question-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent-blue);
  transition: transform var(--transition-base);
}

.faq-item.open .faq-question {
  color: var(--accent-blue);
}

.faq-item.open .faq-question-icon {
  background: var(--accent-blue);
}

.faq-item.open .faq-question-icon svg {
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}


/* ==================== CONTACT SECTION ==================== */
.contact-section {
  padding: 100px 0;
  background: var(--bg-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
  margin-top: 60px;
}

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

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-blue);
}

.contact-info-text h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info-text a,
.contact-info-text p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  transition: color var(--transition-fast);
}

.contact-info-text a:hover {
  color: var(--accent-blue);
}

.contact-form {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(71,110,169,0.12);
  background: var(--bg-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-light);
}

#contact-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #dcfce7;
  color: #15803d;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 16px;
}

#contact-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 24px;
  }
  .form-submit-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==================== WhatsApp Floating Button ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 998;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
  color: #fff;
}
.whatsapp-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.4);
  outline-offset: 3px;
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}
@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ==================== Contact Map ==================== */
.contact-map {
  margin-top: 60px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #E2E8F0;
  background: #f1f5f9;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}
@media (max-width: 768px) {
  .contact-map {
    margin-top: 40px;
  }
  .contact-map iframe {
    height: 280px;
  }
}

/* ============================================
   BREVETTI PAGE — Hero + Bento + Brochure CTA
   ============================================ */

/* Header su pagine con hero scuro (brevetti) */
.page-dark-hero {
  background: #0F172A; /* evita il flash bianco prima che l'hero monti */
}

.page-dark-hero .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Quando l'utente scrolla oltre l'hero scuro, l'header diventa bianco
   e i link tornano scuri per restare leggibili sul resto della pagina. */
.page-dark-hero .site-header.scrolled {
  position: fixed;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border-color);
}

.page-dark-hero .site-header.scrolled .main-nav a,
.page-dark-hero .site-header.scrolled .header-action-btn {
  color: var(--text-secondary);
}

.page-dark-hero .site-header.scrolled .main-nav a:hover,
.page-dark-hero .site-header.scrolled .header-action-btn:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

/* Compensiamo l'header absolute con padding sull'hero (gia' presente) */


/* ---------- Patents Hero ---------- */
.patents-hero {
  position: relative;
  padding: calc(var(--header-height) + 80px) 0 0;
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  color: #fff;
  overflow: hidden;
}

.patents-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(71,110,169,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(71,110,169,0.18) 0%, transparent 60%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
  pointer-events: none;
}

.patents-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 80px;
}

.patents-hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #93B5DD;
  background: rgba(71,110,169,0.15);
  border: 1px solid rgba(71,110,169,0.3);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 36px;
}

.patents-hero-number-wrap {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.patents-hero-number {
  font-size: clamp(7rem, 18vw, 14rem);
  font-weight: 900;
  line-height: 0.85;
  background: linear-gradient(180deg, #FFFFFF 0%, #93B5DD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}

.patents-hero-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

.patents-hero-label-top {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: #fff;
}

.patents-hero-label-bottom {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: #93B5DD;
  margin-top: 8px;
}

.patents-hero-subtitle {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #CBD5E1;
  font-weight: 400;
}

.patents-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.patents-hero-actions .btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

.patents-hero-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

/* Hero stats strip */
.patents-hero-stats {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.patents-hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.patents-hero-stat {
  padding: 36px 16px;
  text-align: center;
  position: relative;
}

.patents-hero-stat + .patents-hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 30%;
  bottom: 30%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.patents-hero-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.patents-hero-stat-label {
  font-size: 0.85rem;
  color: #94A3B8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Bento Grid Highlights ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 20px;
  margin-top: 40px;
}

.bento-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(71,110,169,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue-light);
}

.bento-card--feature {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  color: #fff;
  border-color: transparent;
}

.bento-card--feature::before {
  background: radial-gradient(circle, rgba(71,110,169,0.25) 0%, transparent 70%);
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-blue);
  background: var(--accent-blue-light);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.bento-card--feature .bento-card-tag {
  color: #93B5DD;
  background: rgba(71,110,169,0.2);
}

.bento-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0;
}

.bento-card--feature .bento-card-title {
  color: #fff;
  font-size: 1.75rem;
}

.bento-card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.bento-card--feature .bento-card-text {
  color: #CBD5E1;
  font-size: 1.02rem;
}

.bento-card-bullets {
  margin-top: 4px;
  padding-left: 0;
}

.bento-card-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #CBD5E1;
}

.bento-card-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 1px;
  background: #93B5DD;
}

/* ---------- Timeline "Today" item ---------- */
.timeline-item--today .timeline-content {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  color: #fff;
  border-color: transparent;
}

.timeline-item--today .timeline-content .timeline-year {
  background: rgba(71,110,169,0.2);
  color: #93B5DD;
}

.timeline-item--today .timeline-content h3 {
  color: #fff;
}

.timeline-item--today .timeline-content p {
  color: #CBD5E1;
}

/* ---------- Brochure CTA ---------- */
.brochure-cta {
  padding-top: 30px;
}

.brochure-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.brochure-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(71,110,169,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.brochure-card-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: rgba(71,110,169,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93B5DD;
  position: relative;
  z-index: 2;
}

.brochure-card-icon svg {
  width: 40px;
  height: 40px;
}

.brochure-card-body {
  position: relative;
  z-index: 2;
}

.brochure-card-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 6px 0 10px;
  line-height: 1.25;
  color: #fff;
}

.brochure-card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #CBD5E1;
  margin: 0;
  max-width: 560px;
}

.brochure-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.brochure-card-actions .btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}

.brochure-card-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.08);
}

.brochure-cta-download[aria-disabled="true"] {
  opacity: 0.92;
  cursor: pointer;
}

/* ---------- Responsive (mobile) ---------- */
@media (max-width: 960px) {
  .patents-hero {
    padding-top: calc(var(--header-height) + 50px);
  }

  .patents-hero-number-wrap {
    flex-direction: column;
    gap: 12px;
  }

  .patents-hero-label {
    text-align: center;
    align-items: center;
  }

  .patents-hero-label-top,
  .patents-hero-label-bottom {
    font-size: 1.5rem;
  }

  .patents-hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .patents-hero-stat + .patents-hero-stat::before {
    display: none;
  }

  .patents-hero-stat:nth-child(3),
  .patents-hero-stat:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .patents-hero-stat:nth-child(2),
  .patents-hero-stat:nth-child(4) {
    border-left: 1px solid rgba(255,255,255,0.08);
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--feature,
  .bento-card--wide {
    grid-column: span 1;
    grid-row: auto;
  }

  .bento-card--feature .bento-card-title {
    font-size: 1.4rem;
  }

  .brochure-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    text-align: center;
    gap: 20px;
  }

  .brochure-card-icon {
    margin: 0 auto;
  }

  .brochure-card-text {
    margin: 0 auto;
  }

  .brochure-card-actions {
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .patents-hero-number {
    font-size: 6rem;
  }

  .patents-hero-stat-num {
    font-size: 1.6rem;
  }

  .patents-hero-stat-label {
    font-size: 0.72rem;
  }

  .bento-card {
    padding: 24px;
  }

  .bento-card--feature .bento-card-title {
    font-size: 1.2rem;
  }
}
