/* ========================================
   MATERIA LABS - Design System
   ======================================== */

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

/* --- Inter (variable 400–800), served locally: no request to Google Fonts --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a2e;
  --accent: #00d4ff;
  --accent-dark: #0099cc;
  --accent-gradient: linear-gradient(135deg, #00d4ff, #0066ff);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6a6a7a;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 212, 255, 0.2);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-bg-hover: rgba(255, 255, 255, 0.06);
  --glass-bg: rgba(10, 10, 15, 0.8);
  --shadow-accent: rgba(0, 212, 255, 0.15);

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

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-max: 1200px;
  --container-padding: clamp(1.5rem, 4vw, 3rem);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--text-primary);
}

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

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--transition-base), padding var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar__logo img {
  display: block;
  flex-shrink: 0;
  height: 32px;
  width: auto;
}

.navbar__logo--text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.navbar__logo--text span {
  color: var(--accent);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--text-primary);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

.navbar__support {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.35rem 0.9rem !important;
  color: var(--accent) !important;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.navbar__support::after {
  display: none !important;
}

.navbar__support:hover {
  background: var(--accent);
  color: var(--bg-primary) !important;
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem;
  cursor: pointer;
}

.lang-toggle__btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle__btn.active {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.navbar__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  display: block;
}

.navbar__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* Sotto i 1100 px le voci del menu non stanno su una riga accanto al logo: si passa al menu a hamburger */
@media (max-width: 1100px) {
  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }
}

/* Telefoni: logo un po' più basso, così sta accanto a lingua e menu senza deformarsi */
@media (max-width: 480px) {
  .navbar__logo img {
    height: 26px;
  }
}

@media (max-width: 360px) {
  .navbar__logo img {
    height: 20px;
  }

  .navbar__right {
    gap: 0.5rem;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero--small {
  min-height: 50vh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
}

.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 110%;
  height: 110%;
  object-fit: cover;
  object-position: top left;
  opacity: 0.35;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(0, 102, 255, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 2;
}

/* Animated grid background */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-accent);
  border-radius: 50px;
}

.hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero__title .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--shadow-accent);
  color: var(--bg-primary);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn__arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: var(--section-padding) 0;
}

.section--alt {
  background: var(--bg-secondary);
}

/* Hardware hero video background */
.hero--hardware-video {
  overflow: hidden;
}

.hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.85) 0%,
    rgba(10, 10, 15, 0.7) 50%,
    rgba(10, 10, 15, 0.85) 100%
  );
}

.section__header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========================================
   CARDS
   ======================================== */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  background: var(--card-bg-hover);
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--shadow-accent);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  color: var(--bg-primary);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.card__link:hover {
  color: var(--text-primary);
}

.card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.card__link:hover svg {
  transform: translateX(4px);
}

/* Product Card (larger) */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.product-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--shadow-accent);
}

.product-card__image {
  width: 100%;
  height: 280px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(18, 18, 26, 0.9));
  z-index: 1;
}

.product-card__placeholder {
  font-size: 4rem;
  opacity: 0.15;
}

.product-card__body {
  padding: 2rem;
}

.product-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.product-card__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-card__subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.product-card__spec {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.product-card__spec svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* ========================================
   VISION / CTA SECTION
   ======================================== */
/* Vision section background image */
.vision-section {
  position: relative;
  overflow: hidden;
}

.vision-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: white;
}

.vision-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.vision-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.82);
}

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

.vision {
  text-align: center;
  padding: var(--section-padding) 0;
  position: relative;
}

.vision__text {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-secondary);
}

.vision__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.vision__text .accent {
  color: var(--accent);
}

/* ========================================
   PRODUCT CAROUSEL (Detail Pages)
   ======================================== */
.product-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff14;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.product-carousel__track {
  position: relative;
  height: 380px;
}

.product-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.product-carousel__slide.active {
  opacity: 1;
  pointer-events: auto;
}

.product-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.7);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
}

.product-carousel__arrow:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.product-carousel__arrow--prev {
  left: 0.75rem;
}

.product-carousel__arrow--next {
  right: 0.75rem;
}

.product-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
}

.product-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.product-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.3);
}

.product-carousel__dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* Product hero with side image */
.hero--product .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero--product .hero__content {
  flex: 1;
}

.hero--product .hero__image {
  flex: 0 0 400px;
  max-width: 400px;
}

.hero--product .hero__image img {
  width: 100%;
  border-radius: 16px;
}

.hero--product .hero__image .product-carousel {
  margin-bottom: 0;
}

.hero--product .hero__image .product-carousel__track {
  height: 300px;
}

.hero--product .hero__image .product-carousel__arrow {
  width: 32px;
  height: 32px;
}

.hero--product .hero__image .product-carousel__arrow svg {
  width: 14px;
  height: 14px;
}

.hero--product .hero__image .product-carousel__dots {
  padding: 0.5rem 0;
}

@media (max-width: 768px) {
  .hero--product .container {
    flex-direction: column;
  }

  .hero--product .hero__image {
    flex: none;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .hero--product .hero__image .product-carousel__track {
    height: 250px;
  }

  .product-carousel__track {
    height: 280px;
  }

  .product-carousel__arrow {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .product-carousel__track {
    height: 220px;
  }
}

/* ========================================
   SPECS GRID (Product Detail Pages)
   ======================================== */
.specs-section {
  padding: 3rem 0;
}

.specs-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.specs-section__title svg {
  color: var(--accent);
  width: 24px;
  height: 24px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.spec-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition-fast);
}

.spec-item:hover {
  border-color: var(--border-accent);
}

.spec-item__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.spec-item__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
}

.contact-info__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.contact-info__value {
  font-size: 1rem;
  color: var(--text-primary);
}

.contact-info__value a {
  color: var(--text-primary);
}

.contact-info__value a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--border-accent);
  color: var(--accent);
}

.social-links a svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer__brand {
  max-width: 350px;
}

.footer__logo {
  margin-bottom: 1rem;
}

.footer__logo img {
  height: 28px;
  width: auto;
}

.footer__logo--text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__logo--text span {
  color: var(--accent);
}

.footer__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer__links {
  display: flex;
  gap: 3rem;
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__bottom-links a:hover {
  color: var(--accent);
}

/* ========================================
   HOW IT WORKS - Flow Section
   ======================================== */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.flow__step {
  text-align: center;
  flex: 1;
  min-width: 150px;
  max-width: 220px;
}

.flow__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  color: var(--accent);
}

.flow__icon svg {
  width: 28px;
  height: 28px;
}

.flow__label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.flow__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.flow__arrow {
  color: var(--accent);
  font-size: 1.5rem;
  opacity: 0.5;
}

.flow__arrow svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   VALUES SECTION (About page)
   ======================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.value-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all var(--transition-base);
}

.value-card:hover {
  border-color: var(--border-accent);
  background: var(--card-bg-hover);
}

.value-card__number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.value-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.value-card__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 16px 32px var(--shadow-accent);
}

.team-card__photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  transition: border-color var(--transition-base);
}

.team-card:hover .team-card__photo {
  border-color: var(--accent);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.team-card:hover .team-card__photo img {
  transform: scale(1.08);
}

.team-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.team-card__role {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.team-join {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border: 2px dashed var(--border);
  border-radius: 16px;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
  min-height: 100%;
}

.team-join:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px var(--shadow-accent);
  color: var(--text-primary);
}

.team-join__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.team-join__icon svg {
  width: 100%;
  height: 100%;
}

.team-join__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.team-join__cta {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ========================================
   PORTAL PAGE
   ======================================== */
.portal-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.portal-overview__col {
  padding: 2.5rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.portal-overview__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.portal-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.portal-feature-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.portal-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.portal-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 4rem;
}

.portal-feature:first-of-type {
  margin-top: 3rem;
}

.portal-feature--reverse {
  direction: rtl;
}

.portal-feature--reverse > * {
  direction: ltr;
}

.portal-feature__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.portal-feature__title svg {
  color: var(--accent);
  flex-shrink: 0;
}

.portal-feature__text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.portal-feature__image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.portal-feature__image img {
  width: 100%;
  display: block;
  transition: transform var(--transition-base);
}

.portal-feature__image:hover img {
  transform: scale(1.03);
}

.portal-brands {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  transition: background var(--transition-base), color var(--transition-base);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ========================================
   PRODUCT DESCRIPTION
   ======================================== */
.product-description {
  max-width: 800px;
}
.product-description p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.product-description p:last-child {
  margin-bottom: 0;
}
.product-description .section__title {
  margin-bottom: 1.5rem;
}
.product-description__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}
.product-description__list li {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
}
.product-description__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.product-description__list li strong {
  color: var(--text-primary);
}

/* Product figure: screenshot a tutta larghezza con didascalia */
.product-figure {
  margin: 2rem 0 0 0;
}
.product-figure__frame {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.product-figure__frame img {
  display: block;
  width: 100%;
  height: auto;
}
.product-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.product-figure figcaption strong {
  color: var(--text-primary);
}
@media (max-width: 768px) {
  .product-figure__frame img {
    width: auto;
    max-width: none;
    height: 220px;
  }
}

/* ========================================
   APPLICATION CARDS (immagine + titolo + testo)
   ======================================== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}
.app-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.app-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.app-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.app-card:hover {
  border-color: var(--border-accent);
}
.app-card__image {
  aspect-ratio: 3 / 2;
  background: #fff;
}
.app-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.app-card__image--photo img {
  object-fit: cover;
}
.app-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.app-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.app-card__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.app-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
@media (max-width: 1024px) {
  .app-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .app-grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .app-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ========================================
   PRODUCT 3D VIEWER
   ======================================== */
.product-3d {
  max-width: 960px;
  margin: 0 auto;
}
.section--3d {
  padding-top: 0;
  padding-bottom: 0;
}
.product-3d__stage {
  position: relative;
  height: clamp(320px, 52vw, 540px);
  overflow: hidden;
  background: transparent;
  cursor: grab;
}
.product-3d__stage:active {
  cursor: grabbing;
}
.product-3d__stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}
.product-3d__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-3d.is-loading .product-3d__fallback,
.product-3d.is-ready .product-3d__fallback {
  display: none;
}
.product-3d__status {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}
.product-3d.is-loading .product-3d__status {
  display: flex;
}
.product-3d__spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-accent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: product-3d-spin 0.8s linear infinite;
}
@keyframes product-3d-spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 768px) {
  .product-3d__stage {
    height: 340px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-3d__spinner {
    animation: none;
  }
}

/* ========================================
   SECTOR SECTIONS (settori.html)
   ======================================== */
.sector-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.sector-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.92), rgba(10, 10, 15, 0.82));
  z-index: 0;
}
.sector-section > .container {
  position: relative;
  z-index: 1;
}
.sector-section--costruzioni { background-image: url('../assets/sectors/costruzioni.jpg'); }
.sector-section--mining { background-image: url('../assets/sectors/mining.jpg'); }
.sector-section--agricoltura { background-image: url('../assets/sectors/agricoltura.jpg'); }
.sector-section--noleggio { background-image: url('../assets/sectors/noleggio.jpg'); }
.sector-section--trasporti { background-image: url('../assets/sectors/trasporti.jpg'); }
.sector-section--piattaforme { background-image: url('../assets/sectors/piattaforme.jpg'); }
.sector-section--energia { background-image: url('../assets/sectors/energia.jpg'); }

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
#cookie-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#cookie-consent-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 680px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  z-index: 9999;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  animation: ccb-slide-up 0.4s ease;
}

@keyframes ccb-slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.ccb__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ccb__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-right: 2rem;
}

/* "X": closes the banner without consent (same as Reject) */
.ccb__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ccb__close:hover {
  color: var(--text-primary);
  background: var(--card-bg-hover);
}

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

.ccb__body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ccb__links {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}

.ccb__link {
  font-size: 0.8rem;
  color: var(--accent) !important;
  text-decoration: underline;
}

.ccb__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ccb__btn {
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.ccb__btn--accept {
  background: var(--accent);
  color: var(--bg-primary);
}

.ccb__btn--accept:hover {
  background: var(--accent-dark);
}

.ccb__btn--reject {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.ccb__btn--reject:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.ccb__btn--settings {
  background: transparent;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
}

.ccb__btn--settings:hover {
  color: var(--accent);
}

/* Settings panel */
.ccb__settings-panel {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.ccb__settings-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.ccb__option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  gap: 1rem;
}

.ccb__option + .ccb__option {
  border-top: 1px solid var(--border);
}

.ccb__option-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ccb__option-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.ccb__settings-panel .ccb__btn {
  margin-top: 1rem;
  width: 100%;
}

/* Toggle switch */
.ccb__toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.ccb__toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ccb__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: var(--transition-fast);
}

.ccb__slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.ccb__toggle input:checked + .ccb__slider {
  background: var(--accent);
  border-color: var(--accent);
}

.ccb__toggle input:checked + .ccb__slider::before {
  transform: translateX(20px);
  background: var(--bg-primary);
}

.ccb__toggle--disabled {
  opacity: 0.5;
}

.ccb__toggle--disabled .ccb__slider {
  cursor: not-allowed;
}

@media (max-width: 480px) {
  #cookie-consent-banner {
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 1.25rem 1.25rem;
  }

  @keyframes ccb-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .ccb__actions {
    flex-direction: column;
  }

  .ccb__btn {
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="delay-1"] { transition-delay: 0.1s; }
[data-reveal="delay-2"] { transition-delay: 0.2s; }
[data-reveal="delay-3"] { transition-delay: 0.3s; }
[data-reveal="delay-4"] { transition-delay: 0.4s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: 1fr;
  }

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

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .portal-overview {
    grid-template-columns: 1fr;
  }

  .portal-feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portal-feature--reverse {
    direction: ltr;
  }

  .hero__content {
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .product-card__image {
    height: 200px;
  }

  .footer__top {
    flex-direction: column;
  }

  .footer__links {
    flex-direction: column;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .flow {
    flex-direction: column;
  }

  .flow__arrow {
    transform: rotate(90deg);
  }

  .section__header {
    text-align: left;
  }

  .section__subtitle {
    margin: 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .hero {
    min-height: 85vh;
  }

  .card {
    padding: 1.5rem;
  }

  .value-card {
    padding: 1.5rem;
  }

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

/* ========================================
   DOC PAGE (security.html)
   ======================================== */
.doc {
  max-width: 860px;
  margin: 0 auto;
}

.doc__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
}

.doc__block {
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.doc__block:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

/* Anchored sections (privacy.html#cookie, #app...) clear the fixed navbar */
.doc__block[id] {
  scroll-margin-top: 4rem;
}

.doc__title {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.doc__subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 2rem 0 0.75rem;
}

.doc p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.doc p:last-child {
  margin-bottom: 0;
}

.doc p strong,
.doc li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.doc__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.doc__list li {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.doc__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.doc__list--deny li::before {
  background: #ff5f56;
}

.doc__table-wrap {
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.doc__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 1rem;
}

.doc__table th {
  text-align: left;
  padding: 0.9rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.doc__table td {
  padding: 0.9rem 1.25rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.doc__table tr:last-child td {
  border-bottom: none;
}

.doc__table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.doc__warn {
  background: rgba(255, 95, 86, 0.06);
  border: 1px solid rgba(255, 95, 86, 0.25);
  border-left: 3px solid #ff5f56;
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.doc__warn svg {
  color: #ff5f56;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.doc__warn p {
  margin-bottom: 0;
}

.doc__code {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15em 0.45em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--text-primary);
  word-break: break-all;
}

.doc__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card-bg);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 0.9rem 1.4rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  transition: all var(--transition-fast);
}

.doc__contact:hover {
  background: var(--card-bg-hover);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.doc__contact svg {
  width: 20px;
  height: 20px;
}

.doc__note {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .doc__warn {
    padding: 1rem 1.1rem;
  }

  .doc__table th,
  .doc__table td {
    padding: 0.75rem 0.9rem;
  }
}
