/* ============================================================
   ON DISPLAY SRL — Foglio di stile globale
   Palette e componenti allineati al template grafico Lovable
   (nero + blu #0086cb, card scure, effetti glow, rounded-2xl)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark: #000000;             /* background */
  --dark2: #0d0d0d;            /* card */
  --dark3: #141414;            /* card hover / secondary */
  --muted-bg: #262626;         /* muted */
  --accent: #0086cb;           /* primary (blu On Display) */
  --accent2: #12a0ec;          /* primary hover / glow chiaro */
  --text: #ffffff;
  --text-muted: #a6a6a6;
  --border: rgba(255,255,255,0.12);
  --font: 'Inter', sans-serif;
  --danger: #e05a5a;
  --success: #4ade80;
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;
  --nav-bg: rgba(0,0,0,0.8);
  --lightbox-bg: rgba(0,0,0,0.92);
}

/* ============================================================
   TEMA CHIARO — attivato aggiungendo la classe "light-theme" al
   <body> (vedi interruttore in nav + main.js). Il nero diventa
   bianco, i grigi scuri diventano grigi chiari; il blu accento
   resta invariato per coerenza con il logo.
   ============================================================ */
body.light-theme {
  --dark: #f4f4f4;
  --dark2: #ffffff;
  --dark3: #ececec;
  --muted-bg: #e2e2e2;
  --text: #14181c;
  --text-muted: #5c6066;
  --border: rgba(0,0,0,0.12);
  --nav-bg: rgba(255,255,255,0.85);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   NAV — fissa, sfondo semi-trasparente sfocato, dropdown al hover
   ============================================================ */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo img { height: 36px; width: auto; max-width: 200px; object-fit: contain; }
/* Due varianti del logo (testo bianco / testo scuro, icona celeste invariata):
   quella corretta per il tema attivo viene mostrata via CSS, l'altra è nascosta. */
.nav-logo .logo-light,
.footer-brand .logo-light { display: none; }
body.light-theme .nav-logo .logo-dark,
body.light-theme .footer-brand .logo-dark { display: none; }
body.light-theme .nav-logo .logo-light,
body.light-theme .footer-brand .logo-light { display: block; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; flex: 1; justify-content: center; min-width: 0; }
.nav-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-item { position: relative; }
.nav-item > a, .nav-item > span.nav-toplevel {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.nav-item > a:hover, .nav-item:hover > span.nav-toplevel { color: var(--accent); }
.nav-caret { font-size: 10px; opacity: 0.7; }
.nav-submenu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 210px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-item:hover .nav-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-submenu a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.nav-submenu a:hover { color: var(--accent); background: var(--dark3); }

/* Mega-menu "Servizi" — griglia di card con immagine + icona + tagline */
.nav-item { position: static; }
.nav-mega {
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(760px, calc(100vw - 48px));
  min-width: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--dark2);
}
.nav-item:hover .nav-mega { transform: translateX(-50%) translateY(0); }
.nav-mega-item {
  position: relative;
  display: block;
  height: 108px;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}
.nav-mega-item .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}
.nav-mega-item:hover .bg { transform: scale(1.08); }
.nav-mega-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.85) 100%);
}
.nav-mega-item .content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 12px; }
.nav-mega-item .icon { font-size: 17px; margin-bottom: 2px; }
.nav-mega-item h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; color: #fff; }
.nav-mega-item:hover h4 { color: var(--accent2); }
.nav-mega-item span:last-child { font-size: 11px; color: rgba(255,255,255,0.75); line-height: 1.3; }
.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent2); }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* Selettore lingua IT/EN — bandierine SVG (niente emoji: illeggibili su Windows) */
.lang-switch { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lang-flag {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 16px;
  padding: 0;
  border-radius: 3px;
  border: 1px solid transparent;
  text-decoration: none;
  opacity: 0.45;
  filter: grayscale(0.7);
  overflow: hidden;
  flex-shrink: 0;
  transition: opacity 0.2s, filter 0.2s, border-color 0.2s;
}
.lang-flag svg { width: 22px; height: 16px; display: block; }
.lang-flag:hover { opacity: 0.85; filter: grayscale(0.15); }
.lang-flag.active { opacity: 1; filter: grayscale(0); background: var(--dark3); border-color: var(--border); }

/* Interruttore tema chiaro/scuro */
.theme-switch { background: none; border: none; padding: 4px; cursor: pointer; flex-shrink: 0; }
.theme-switch-track {
  display: flex;
  align-items: center;
  width: 50px;
  height: 27px;
  border-radius: 20px;
  background: var(--dark3);
  border: 1px solid var(--border);
  padding: 2px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.theme-switch-thumb {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--dark2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  filter: grayscale(1) opacity(0.6);
  transition: transform 0.3s ease, background 0.3s ease, filter 0.3s ease;
}
.theme-switch[aria-pressed="true"] .theme-switch-track { background: #ffdd7a; border-color: #f2c94c; }
.theme-switch[aria-pressed="true"] .theme-switch-thumb {
  transform: translateX(23px);
  background: #fff3c4;
  filter: grayscale(0) opacity(1);
}

/* FLASH MESSAGES */
.flash {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-top: 76px; /* sotto la nav fissa */
}
.flash-success { background: rgba(74,222,128,0.12); color: var(--success); border-bottom: 1px solid rgba(74,222,128,0.25); }
.flash-error   { background: rgba(224,90,90,0.12); color: var(--danger); border-bottom: 1px solid rgba(224,90,90,0.25); }
.flash-info    { background: rgba(0,134,203,0.12); color: var(--accent2); border-bottom: 1px solid rgba(0,134,203,0.3); }

/* ============================================================
   HERO — video fullscreen come nel template
   ============================================================ */
.hero-video-section {
  position: relative;
  height: 100vh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
}
/* Variante compatta per hero video nelle pagine interne (non fullscreen). */
.hero-video-section.hero-video-compact {
  height: 62vh;
  min-height: 420px;
}
.hero-video-section video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5) 40%, rgba(0,0,0,1));
}
.hero-video-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  color: #fff;
}
.hero-video-content h1 {
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 880px;
  color: #fff;
}
.hero-video-content h2 {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-shadow: 0 0 20px rgba(0,134,203,0.5), 0 0 40px rgba(0,134,203,0.3);
  margin-bottom: 56px;
}
.hero-video-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto 24px;
}
.hero-scroll-btn {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  background: none; border: none; cursor: pointer;
  font-size: 28px;
  animation: bounce-down 1.6s infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* SECTION generico */
section { padding: 96px 0; }
.section-bg-card { background: var(--dark2); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header.left { text-align: left; }
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.accent { color: var(--accent); }
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-header.left .section-subtitle { margin: 0; }

/* ============================================================
   SERVIZI — 4 card con immagine di sfondo (come ServicesSection)
   ============================================================ */
.services-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card-img {
  position: relative;
  display: block;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.service-card-img:hover {
  border-color: rgba(0,134,203,0.5);
  box-shadow: 0 0 30px rgba(0,134,203,0.3), 0 0 60px rgba(0,134,203,0.1);
}
.service-card-img .bg-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}
.service-card-img:hover .bg-img { transform: scale(1.1); }
.service-card-img .bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.8) 55%, rgba(0,0,0,0.4) 100%);
}
.service-card-img .content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; min-height: 280px; }
.service-card-img .icon-badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(0,134,203,0.2);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.service-card-img h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: #fff; }
.service-card-img:hover h3 { color: var(--accent); }
.service-card-img p { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.6; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.gallery-filter-btn {
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--dark2);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.gallery-filter-btn:hover { color: var(--text); border-color: var(--accent); }
.gallery-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.portfolio-item.gallery-hidden { display: none; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-item {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-item .overlay { position: absolute; inset: 0; background: linear-gradient(to top, #000 10%, transparent 60%); }
.portfolio-item .info { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px; }
.portfolio-item .category { font-size: 13px; color: var(--accent); font-weight: 500; }
.portfolio-item h3 { font-size: 19px; font-weight: 600; color: #fff; margin-top: 4px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; text-decoration: none; font-size: 14px; }

/* ============================================================
   LIGHTBOX — ingrandimento foto galleria/portfolio al click
   ============================================================ */
.portfolio-item img { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  cursor: zoom-out;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}
.lightbox-close:hover { color: var(--accent); }
@media (max-width: 640px) {
  .lightbox-overlay { padding: 20px; }
  .lightbox-close { top: 8px; right: 12px; font-size: 32px; }
}

/* Video popup (es. card sale in Sale Conference & Meeting) */
.video-trigger { cursor: pointer; }
.video-trigger .product-media { position: relative; }
.video-play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,134,203,0.85);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  padding-left: 4px; /* ottica: centra il triangolo ▶ */
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.25s, background 0.25s;
}
.video-trigger:hover .video-play-badge { transform: scale(1.1); background: var(--accent); }

.video-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.video-lightbox-overlay.active { opacity: 1; visibility: visible; }
.video-lightbox-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.video-lightbox-video { width: 100%; height: 100%; display: block; }
@media (max-width: 640px) {
  .video-lightbox-overlay { padding: 16px; }
}

/* ============================================================
   TESTIMONIANZE — slider semplice (rotazione via JS, un item alla volta)
   ============================================================ */
.testimonials-wrap { max-width: 780px; margin: 0 auto; text-align: center; position: relative; }
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; }
.testimonial-slide blockquote { font-size: clamp(18px, 2.4vw, 24px); font-style: italic; color: var(--text); line-height: 1.6; margin-bottom: 32px; }
.testimonial-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); margin: 0 auto 12px; }
.testimonial-author p { font-weight: 600; }
.testimonial-author span { color: var(--text-muted); font-size: 14px; }
.testimonial-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }
.testimonial-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  cursor: pointer; font-size: 16px;
}
.testimonial-nav button:hover { border-color: var(--accent); color: var(--accent); }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: width 0.2s, background 0.2s; }
.testimonial-dots .dot.active { width: 28px; background: var(--accent); }

/* ============================================================
   CONTATTI RAPIDI (home)
   ============================================================ */
.contact-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-quick-item { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; text-decoration: none; color: inherit; }
.contact-quick-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(0,134,203,0.12); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.contact-quick-item .label { font-size: 13px; color: var(--text-muted); }
.contact-quick-item .value { font-size: 18px; font-weight: 600; }
.contact-quick-item:hover .value { color: var(--accent); }
.contact-cta-card {
  background: linear-gradient(135deg, rgba(0,134,203,0.2), rgba(0,134,203,0.04));
  border: 1px solid rgba(0,134,203,0.3);
  border-radius: 1.5rem;
  padding: 40px;
}
.contact-cta-card h3 { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.contact-cta-card p { color: var(--text-muted); margin-bottom: 28px; }
.social-row { display: flex; gap: 12px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.social-btn { padding: 8px 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text-muted); text-decoration: none; font-size: 13px; }
.social-btn:hover { border-color: var(--accent); color: var(--accent); }

/* BUTTONS */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   PAGINE INTERNE — hero secondaria compatta
   ============================================================ */
.page-hero {
  position: relative;
  padding: 200px 0 140px;
  min-height: 55vh;
  display: flex;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at top, rgba(0,134,203,0.12), transparent 60%);
  overflow: hidden;
}
.page-hero .container { width: 100%; position: relative; z-index: 1; }
.page-hero-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(0,134,203,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  margin: 0 auto 24px;
}

/* Variante con foto di sfondo wide (pagine catalogo) */
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: heroKenBurns 9s ease-in-out infinite alternate;
  will-change: transform;
  filter: contrast(1.05) saturate(1.1);
}
@keyframes heroKenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero-bg { animation: none; }
}
.page-hero-photo .page-hero-icon { display: none; }
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Velo scuro leggero, solo per garantire la leggibilità del testo: la foto
     resta ben visibile. Non cambia con il tema chiaro/scuro del sito. */
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.5) 100%);
}
.page-hero-photo .container,
.page-hero-photo .section-title,
.page-hero-photo .section-subtitle {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.85), 0 1px 18px rgba(0,0,0,0.6);
}
.page-hero-photo .accent { text-shadow: 0 2px 6px rgba(0,0,0,0.85), 0 1px 18px rgba(0,0,0,0.6); }

/* ============================================================
   CATALOGO — griglia funzionalità (check list) + card prodotto
   ============================================================ */
.feature-check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
.feature-check-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: rgba(0,134,203,0.08);
  border: 1px solid rgba(0,134,203,0.25);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}
.feature-check-item:hover {
  background: rgba(0,134,203,0.14);
  border-color: rgba(0,134,203,0.4);
}
.feature-check-item .check-icon { color: var(--accent); font-weight: 700; flex-shrink: 0; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.product-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s;
}
.product-card:hover { border-color: rgba(0,134,203,0.5); }
.product-card .product-media {
  aspect-ratio: 16/9;
  background: var(--dark3);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  color: var(--text-muted);
  overflow: hidden;
}
.product-card .product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-card .product-body { padding: 20px; }
.product-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.product-card .product-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.catalog-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  margin-top: 40px;
}

/* ============================================================
   FOOTER — 4 colonne come da template
   ============================================================ */
footer { background: var(--dark2); border-top: 1px solid var(--border); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--muted-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none; font-size: 15px;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-col h4 { font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a, .footer-col ul span { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.footer-col ul a:hover { color: var(--accent); }
.footer-contact-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); text-decoration: none; }
.footer-contact-item:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); text-decoration: none; margin-left: 20px; }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   FORM / AUTH / DASHBOARD
   ============================================================ */
.auth-wrap {
  max-width: 440px;
  margin: 150px auto 80px;
  padding: 44px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.auth-wrap h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.5px; }
.auth-wrap .auth-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,134,203,0.2); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.form-actions { margin-top: 28px; }
.form-actions .btn-primary { width: 100%; justify-content: center; }
.auth-links { margin-top: 20px; font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.auth-links a { color: var(--accent); text-decoration: none; }

.dashboard-wrap { padding: 150px 24px 60px; max-width: 1080px; margin: 0 auto; }
.dashboard-wrap h1 { font-size: 34px; font-weight: 700; letter-spacing: -1px; margin-bottom: 8px; }
.dashboard-wrap .dashboard-subtitle { color: var(--text-muted); margin-bottom: 40px; }
.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.dashboard-card { background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.dashboard-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.dashboard-card p { font-size: 13px; color: var(--text-muted); }
.dashboard-card.dashboard-card-link { display: block; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.dashboard-card.dashboard-card-link:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ADMIN PANEL */
.admin-back { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 500; margin-bottom: 18px; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.admin-tab { padding: 10px 18px; color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; }
.admin-tab.active, .admin-tab:hover { color: var(--text); border-bottom-color: var(--accent); }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-toolbar h2 { font-size: 20px; font-weight: 700; }
.admin-panel { background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 32px; }
.admin-panel h3 { font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table th { color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table td.admin-actions { white-space: nowrap; text-align: right; }
.admin-table img.admin-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.admin-empty { color: var(--text-muted); font-size: 14px; padding: 30px 0; text-align: center; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-blue { background: rgba(0,134,203,0.15); color: var(--accent2); }
.badge-green { background: rgba(74,222,128,0.15); color: var(--success); }
.badge-grey { background: var(--dark3); color: var(--text-muted); }
.badge-red { background: rgba(224,90,90,0.15); color: var(--danger); }
.btn-small { padding: 6px 14px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-danger { background: transparent; border: 1px solid rgba(224,90,90,0.4); color: var(--danger); }
.btn-danger:hover { background: rgba(224,90,90,0.12); }
.admin-status-select { background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 12px; padding: 6px 8px; font-family: var(--font); }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-quick-grid { grid-template-columns: 1fr; }
  .chi-siamo-split { grid-template-columns: 1fr !important; gap: 40px !important; }
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--dark2);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-submenu { position: static; opacity: 1; visibility: visible; transform: none; display: none; border: none; border-radius: 0; background: var(--dark3); box-shadow: none; width: auto; padding: 8px 12px; }
  .nav-item.submenu-open .nav-submenu { display: block; }
  .nav-item.submenu-open .nav-mega { display: flex; flex-direction: column; gap: 8px; }
  .nav-mega-item { height: 64px; }
  .nav-mobile-toggle { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 640px) {
  .services-grid-4, .portfolio-grid, .catalog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .dashboard-wrap, .auth-wrap { margin-top: 100px; }
  .feature-check-grid { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 150px 0 80px; min-height: 42vh; }
  .chi-siamo-split { grid-template-columns: 1fr !important; gap: 40px !important; }
}
@media (max-width: 900px) and (min-width: 641px) {
  .feature-check-grid { grid-template-columns: repeat(2, 1fr); }
}
