:root {
  --bg-dark: #050913;
  --bg-card: #091222;
  --bg-alt: #070e1b;
  --electric-blue-dark: #1d4ed8;  /* Blu scuro elettrico */
  --electric-blue-glow: #2563eb;  /* Riflesso neon cobalto */
  --accent-red: #d71920;
  --accent-red-hover: #b8141a;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: #162438;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Blocco scroll quando il menu mobile è aperto */
body.menu-open {
  overflow: hidden;
}

/* PUNTATORE PERSONALIZZATO */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, input, textarea, select, .brand-wrapper {
    cursor: none !important;
  }
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--electric-blue-glow);
  border-radius: 2px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-100px, -100px);
  margin-top: -3px;
  margin-left: -3px;
  box-shadow: 0 0 10px var(--electric-blue-glow);
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(37, 99, 235, 0.6);
  border-radius: 6px;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-100px, -100px) rotate(45deg);
  margin-top: -14px;
  margin-left: -14px;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.custom-cursor-ring.cursor-hover {
  width: 44px;
  height: 44px;
  margin-top: -22px;
  margin-left: -22px;
  border-color: var(--accent-red);
  background: rgba(215, 25, 32, 0.15);
}

/* Canvas stelle globale */
.global-stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99990;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(5, 9, 19, 0.95) 0%, rgba(5, 9, 19, 0.3) 70%, rgba(5, 9, 19, 0) 100%);
  backdrop-filter: blur(4px);
  z-index: 100;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(5, 9, 19, 0.94);
  backdrop-filter: blur(14px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

.brand-wrapper {
  position: relative;
  z-index: 25;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.75s cubic-bezier(0.25, 1, 0.3, 1);
  will-change: transform;
}

.brand-logo {
  height: 80px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.75))
          drop-shadow(0 0 25px rgba(255, 255, 255, 0.3));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  will-change: transform, filter;
}

.brand-wrapper:hover .brand-logo {
  transform: scale(1.08);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1))
          drop-shadow(0 0 45px rgba(255, 255, 255, 0.85))
          drop-shadow(0 0 70px rgba(37, 99, 235, 0.5));
}

.logo-pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-red);
  animation: pulseBeacon 2s infinite;
  transition: opacity 0.4s ease;
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.5); opacity: 0.3; }
}

/* NAVBAR DESKTOP */
.nav-links-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-side {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-left {
  justify-content: flex-end;
  padding-right: 25px;
}

.nav-right {
  justify-content: flex-start;
  padding-left: 25px;
}

.nav-center-spacer {
  width: 220px;
  flex: 0 0 auto;
}

.nav-side a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-side a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--electric-blue-glow);
  transition: width 0.3s ease;
}

.nav-side a:not(.btn):hover::after {
  width: 100%;
}

.nav-side a:hover {
  color: #fff;
}

.nav-tel-link {
  color: #60a5fa !important;
  font-weight: 700 !important;
}

.nav-content.nav-active .nav-links-layer {
  opacity: 1;
  pointer-events: auto;
}

.nav-content.nav-active .logo-pulse-indicator {
  opacity: 0;
}

/* PULSANTE HAMBURGER (Nascosto su Desktop) */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 105;
  flex-direction: column;
  gap: 6px;
}

.mobile-toggle .bar {
  display: block;
  width: 28px;
  height: 2.5px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animazione Hamburger a "X" */
.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background-color: var(--accent-red);
}

.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background-color: var(--accent-red);
}

/* MENU TENDINA MOBILE */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 9, 19, 0.98);
  backdrop-filter: blur(20px);
  z-index: 102;
  padding: 110px 24px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.mobile-nav-link {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  color: var(--electric-blue-glow);
  border-color: var(--electric-blue-glow);
}

.mobile-cta-box {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* BOTTONI */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-accent {
  background-color: var(--accent-red);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(215, 25, 32, 0.3);
}

.btn-accent:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(215, 25, 32, 0.5);
}

.btn-outline {
  background: rgba(5, 9, 19, 0.5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

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

.btn-showroom {
  background: rgba(29, 78, 216, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.5);
}

.btn-showroom:hover {
  background: rgba(37, 99, 235, 0.35);
  color: #fff;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* HERO VIDEO */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(5, 9, 19, 0.20) 0%, rgba(5, 9, 19, 0.20) 100%);
  z-index: 2;
}

.led-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  padding-top: 60px;
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content.hero-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.badge {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #93c5fd;
  background: rgba(29, 78, 216, 0.3);
  border: 1px solid rgba(37, 99, 235, 0.5);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
}

.badge-accent {
  color: var(--accent-red);
  background: rgba(215, 25, 32, 0.15);
  border-color: rgba(215, 25, 32, 0.35);
}

.hero-video-section h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-video-section p {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 35px;
}

.scroll-down-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: var(--text-muted);
  animation: bounce 2.2s infinite;
  text-decoration: none;
}

.scroll-down-indicator:hover {
  color: #fff;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -4px); }
}

/* SEZIONI COMUNI */
.section {
  padding: 110px 0;
}

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

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

.section-header h2 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* SEZIONE SHOWROOM */
.showroom-banner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 45px;
  background: var(--bg-card);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 16px;
  padding: 45px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.showroom-text h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.showroom-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 25px;
}

.showroom-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.sh-item {
  background: rgba(5, 9, 19, 0.6);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.sh-item strong {
  display: block;
  font-size: 0.9rem;
  color: #60a5fa;
  margin-bottom: 4px;
}

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

.showroom-location-card {
  background: rgba(29, 78, 216, 0.1);
  border-left: 3px solid var(--electric-blue-glow);
  padding: 14px 18px;
  margin-bottom: 25px;
  border-radius: 0 6px 6px 0;
}

.showroom-location-card p {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.showroom-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.showroom-map-container {
  border-radius: 12px;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid var(--border-color);
}

/* SCHEDE GRID */
.grid {
  display: grid;
  gap: 25px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background-color: var(--bg-card);
  padding: 38px 28px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 15px 35px rgba(29, 78, 216, 0.25);
}

.card-featured {
  border-color: rgba(215, 25, 32, 0.4);
}

.card-featured:hover {
  border-color: var(--accent-red);
  box-shadow: 0 15px 35px rgba(215, 25, 32, 0.25);
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 15px;
}

.tag-accent {
  color: var(--accent-red);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 15px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.specs {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.specs li {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 6px;
  position: relative;
  padding-left: 15px;
}

.specs li::before {
  content: "•";
  color: var(--accent-red);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* FEATURE BOX */
.feature-box {
  background: var(--bg-card);
  padding: 30px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.5);
}

.feature-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-red);
  margin-bottom: 12px;
}

.feature-box h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* METODO */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-item {
  border-left: 2px solid var(--electric-blue-dark);
  padding-left: 18px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-item:hover {
  transform: translateX(6px);
  border-color: var(--accent-red);
}

.step-item span {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #60a5fa;
}

.step-item h4 {
  margin: 5px 0;
  font-size: 1.1rem;
}

.step-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CONTATTI */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--bg-card);
  padding: 45px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 25px;
}

.info-list p {
  margin-bottom: 12px;
  color: #cbd5e1;
}

.info-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.info-list a:hover {
  color: #60a5fa;
}

.contact-form {
  background: rgba(5, 9, 19, 0.7);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.contact-form h3 {
  margin-bottom: 20px;
  font-size: 1.25rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #cbd5e1;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--electric-blue-glow);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

/* FOOTER AZIENDALE */
footer {
  padding: 50px 0 35px;
  border-top: 1px solid var(--border-color);
  background: #03060c;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer .brand-footer {
  font-size: 1rem;
  color: #f1f5f9;
  margin-bottom: 8px;
}

footer .legal {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #94a3b8;
}

footer .legal a {
  color: #cbd5e1;
  text-decoration: none;
}

footer .legal a:hover {
  color: #fff;
}

footer .credits {
  margin-top: 20px;
  font-size: 0.75rem;
  color: #64748b;
}

/* ============================================================
   RESPONSIVE: SMARTPHONE & TABLET (Max 960px)
   ============================================================ */
@media (max-width: 960px) {
  /* Disattiva menu orizzontale desktop */
  .nav-links-layer {
    display: none !important;
  }

  /* Attiva Hamburger e Menu a comparsa */
  .mobile-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .nav-content {
    height: 70px;
  }

  .brand-logo {
    height: 55px;
  }

  .hero-video-section h1 {
    font-size: 2.2rem;
  }

  .hero-video-section p {
    font-size: 1.05rem;
  }

  .showroom-banner {
    grid-template-columns: 1fr;
    padding: 26px;
    gap: 30px;
  }

  .showroom-map-container {
    min-height: 280px;
    height: 280px;
  }

  .contact-box {
    grid-template-columns: 1fr;
    padding: 26px;
    gap: 35px;
  }

  /* Disattiva cursore custom su schermi touch */
  .custom-cursor-dot, 
  .custom-cursor-ring {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero-video-section h1 {
    font-size: 1.85rem;
  }

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

  .hero-actions .btn {
    width: 100%;
  }
}

/* ============================================================
   SEZIONE PORTFOLIO / INSTALLAZIONI REALI
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease, 
              box-shadow 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 16px 36px rgba(29, 78, 216, 0.25);
}

.portfolio-thumb-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #000;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(5, 9, 19, 0.2) 0%, rgba(5, 9, 19, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-zoom-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: rgba(37, 99, 235, 0.85);
  padding: 6px 12px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.portfolio-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #60a5fa;
  margin-bottom: 8px;
}

.portfolio-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.portfolio-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* ============================================================
   LIGHTBOX MODAL A TUTTO SCHERMO
   ============================================================ */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 6, 12, 0.92);
  backdrop-filter: blur(14px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img,
.lightbox-video {
  max-width: 100%;
  max-height: 72vh;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  object-fit: contain;
  background: #000;
}

.lightbox-caption {
  margin-top: 14px;
  text-align: center;
}

.lightbox-caption h4 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 4px;
}

.lightbox-caption p {
  font-size: 0.92rem;
  color: #94a3b8;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--accent-red);
  transform: scale(1.15);
}

/* RESPONSIVE PORTFOLIO */
@media (max-width: 960px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-thumb-wrap {
    height: 210px;
  }
  .lightbox-close {
    top: -38px;
    right: 8px;
  }
}

/* FEEDBACK INVIO MODULO */
.form-feedback-card {
  background: var(--bg-card);
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  animation: fadeInFeedback 0.4s ease forwards;
}

.feedback-icon {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 2px solid #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.form-feedback-card h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
}

.form-feedback-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 24px;
}

.feedback-contact-alt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.btn-tel-direct {
  color: #60a5fa;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}

.btn-tel-direct:hover {
  text-decoration: underline;
}

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