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

:root {
  /* -- Sfondo Dark Obsidian -- */
  --bg-primary: #0a0c10;
  --bg-surface: #131722;
  --bg-surface-hover: #1c2230;
  
  /* -- Tipografia a Contrasto Medio/Alto -- */
  --text-main: #f8fafc;          /* Bianco ghiaccio per massima incisività */
  --text-muted: #94a3b8;         /* Grigio ardesia leggibile (Medium-High contrast) */
  
  /* -- Accento Metallic Slate -- */
  --accent-slate: #cbd5e1;       /* Accento metallico pulito */
  --accent-border: rgba(203, 213, 225, 0.18);
  --accent-glow: rgba(203, 213, 225, 0.08);

  /* -- Tipografia & Dimensioni -- */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1250px;
}

/* assets/css/hero.css - SPLIT HERO 50/50 SHOWROOM */

.split-hero {
  min-height: 100vh;
  padding-top: 70px; /* Compensa la Navbar fissa */
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--accent-border);
  position: relative;
  overflow: hidden;
}

/* Divisore centrale verticale */
.split-divider {
  background: var(--accent-border);
  width: 1px;
  height: 100%;
}

/* Base dei Pannelli */
.split-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  cursor: pointer;
  transition: background-color 0.4s ease;
  overflow: hidden;
}

/* Sfondo griglia millimetrata indipendente per ogni lato */
.panel-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(203, 213, 225, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.7;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1;
}

/* Effetto Hover: Il pannello si illumina e la griglia diventa più nitida */
.split-panel:hover {
  background-color: rgba(203, 213, 225, 0.02);
}

.split-panel:hover .panel-bg-grid {
  opacity: 1;
  transform: scale(1.02);
}

/* Contenuto centrato dentro al pannello */
.panel-content {
  position: relative;
  z-index: 2;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  width: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.status-dot-3d {
  background-color: #38bdf8; /* Tono azzurro tecnico per differenziare il 3D */
  box-shadow: 0 0 8px #38bdf8;
}

.panel-title {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.title-accent {
  color: var(--accent-slate);
  text-shadow: 0 0 20px var(--accent-glow);
}

.panel-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.panel-action {
  margin-top: 0.5rem;
}

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

/* ==========================================
   RESPONSIVE: Stack verticale per Mobile & Tablet
   ========================================== */
@media (max-width: 900px) {
  .split-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
  }

  .split-divider {
    width: 100%;
    height: 1px;
  }

  .split-panel {
    padding: 3.5rem 1.8rem;
  }

  .panel-content {
    max-width: 100%;
  }
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* ==========================================
   NAVBAR FISSA & GLASSMORPHISM
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.08);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link-cta {
  color: var(--accent-slate);
  border: 1px solid var(--accent-border);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
}

.nav-link-cta:hover {
  background: rgba(203, 213, 225, 0.05);
  border-color: var(--accent-slate);
}

/* ==========================================
   SHOWROOM SECTION & CONTAINER
   ========================================== */
.showroom-section {
  padding: 6rem 0;
  background-color: var(--bg-primary);
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  margin-bottom: 3.5rem;
  max-width: 600px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-slate);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ==========================================
   SHOWROOM - PROJECT CARDS
   ========================================== */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid rgba(203, 213, 225, 0.12);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  border-color: var(--accent-slate);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Layout per Card in Evidenza (2 Colonne su Desktop) */
.featured-card {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .featured-card {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* Area Visiva / Screenshot */
.card-visual {
  background: var(--bg-surface-hover);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(203, 213, 225, 0.08);
}

@media (min-width: 768px) {
  .card-visual {
    border-bottom: none;
    border-right: 1px solid rgba(203, 213, 225, 0.08);
  }
}

.visual-placeholder {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem;
}

/* Contenuto e Testi */
.card-content {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-slate);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Specifiche Tecniche */
.tech-specs {
  list-style: none;
  border-top: 1px solid rgba(203, 213, 225, 0.08);
  border-bottom: 1px solid rgba(203, 213, 225, 0.08);
  padding: 1rem 0;
  margin-bottom: 1.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tech-specs li {
  margin-bottom: 0.4rem;
}

.tech-specs li:last-child {
  margin-bottom: 0;
}

.tech-specs strong {
  color: var(--text-main);
  font-weight: 600;
  margin-right: 0.4rem;
}

/* Bottoni della Card più compatti */
.card-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
}

/* ==========================================
   SHOWROOM - FEATURED PROJECT CARD (1.3fr : 1fr)
   ========================================== */
.project-card.featured-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr; /* Più spazio alla parte visiva! */
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card.featured-card:hover {
  border-color: var(--accent-slate);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

/* ==========================================
   MOCKUP COMBO (Edge-to-Edge Showroom)
   ========================================== */
.card-visual.visual-combo {
  position: relative;
  background-color: #080a0e;
  padding: 0; /* ZERO spazio morto attorno */
  display: flex;
  overflow: hidden;
  min-height: 420px;
}

/* Schermo Desktop: riempie integralmente l'intera colonna */
.mockup-desktop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.mockup-desktop img {
  width: 100%;
  height: 100%;
  /* Taglia elegantemente il fondo del sito se la card è più alta,
     mantenendo intatta la parte superiore (header/menu) */
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Schermo Mobile: GRANDE, ben leggibile e sovrapposto in basso a destra */
.mockup-mobile {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 32%; /* Molto più grande di prima */
  max-width: 185px;
  min-width: 125px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #334155; 
  box-shadow: -12px 20px 40px rgba(0, 0, 0, 0.95);
  transition: transform 0.4s ease, border-color 0.4s ease;
  z-index: 5;
  background: #000;
}

.mockup-mobile img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Effetto Hover Showroom --- */
.project-card.featured-card:hover .mockup-mobile {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--accent-slate);
}

.project-card.featured-card:hover .mockup-desktop {
  transform: scale(1.03);
}

/* Responsive per schermi mobili / tablet */
@media (max-width: 850px) {
  .project-card.featured-card {
    grid-template-columns: 1fr;
  }
  
  .card-visual.visual-combo {
    min-height: 280px;
  }
  
  .mockup-mobile {
    width: 28%;
    bottom: 1rem;
    right: 1rem;
  }
}

/* Responsive: stack verticale su schermi medi e mobili */
@media (max-width: 850px) {
  .project-card.featured-card {
    grid-template-columns: 1fr;
  }
  
  .card-visual {
    border-right: none;
    border-bottom: 1px solid var(--accent-border);
    min-height: 240px;
  }

  .card-content {
    padding: 1.8rem;
  }
}

/* ==========================================
   FILTRI SHOWROOM
   ========================================== */
.showroom-filters {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--accent-border);
  color: var(--text-muted);
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-slate);
  color: var(--bg-primary);
  border-color: var(--accent-slate);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ==========================================
   GRIGLIA RENDER 3D (GALLERIA TECNICA)
   ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
  width: 100%;
}

.d3-card {
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.d3-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-slate);
}

.d3-visual {
  background-color: #0e121a;
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--accent-border);
  position: relative;
  overflow: hidden;
}

.d3-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.d3-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.d3-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.d3-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Transizione morbida per il filtro JS */
.project-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-item.is-hidden {
  display: none;
}

/* ==========================================
   MODALE / LIGHTBOX 3D
   ========================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.lightbox.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: var(--bg-primary);
  border: 1px solid var(--accent-border);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--accent-slate);
  color: var(--bg-primary);
  border-color: var(--accent-slate);
}

.lightbox-image-wrapper {
  background: #080a0e;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--accent-border);
}

.lightbox-media-placeholder {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.lightbox-caption {
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lightbox-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.lightbox-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================
   SEZIONE METODO / APPROCCIO
   ========================================== */
.method-section {
  padding: 6rem 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--accent-border);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.method-card {
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.method-card:hover {
  border-color: var(--accent-slate);
}

.method-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-slate);
  opacity: 0.6;
}

.method-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.method-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ==========================================
   FOOTER & CONTATTI
   ========================================== */
.footer-section {
  padding: 6rem 0 3rem 0;
  background-color: #080a0e;
  border-top: 1px solid var(--accent-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--accent-border);
}

.footer-header {
  max-width: 550px;
}

.footer-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin: 0.5rem 0 1rem 0;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-main);
  font-weight: 700;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================
   SISTEMA PULSANTI (Globali per tutto il sito)
   ========================================== */
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

/* Bottone Principale (Pieno, contrasto netto) */
.btn-primary {
  background: var(--text-main);
  color: var(--bg-primary);
  border-color: var(--text-main);
}

.btn-primary:hover {
  background: var(--accent-slate);
  border-color: var(--accent-slate);
  box-shadow: 0 0 18px var(--accent-glow);
  transform: translateY(-2px);
}

/* Bottone Ghost (Sfondo trasparente, bordo ardesia metallica) */
.btn-ghost {
  background: rgba(203, 213, 225, 0.03);
  color: var(--text-main);
  border: 1px solid var(--accent-border);
}

.btn-ghost:hover {
  background: rgba(203, 213, 225, 0.08);
  border-color: var(--accent-slate);
  color: var(--text-main);
  box-shadow: 0 0 18px var(--accent-glow);
  transform: translateY(-2px);
}

/* Adattamento specifico per i bottoni nella Split Hero */
.btn-select {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  padding: 1rem 1.5rem;
}

/* ==========================================
   SCHEDA TECNICA DI ARCHITETTURA (MODAL)
   ========================================== */
.arch-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.arch-modal.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.arch-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.arch-container {
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
}

/* Header */
.arch-header {
  padding: 1.8rem 2rem;
  border-bottom: 1px solid var(--accent-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  background: rgba(255, 255, 255, 0.01);
}

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

.arch-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.arch-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.arch-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  background: var(--bg-primary);
  color: var(--text-main);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arch-close:hover {
  background: var(--accent-slate);
  color: var(--bg-primary);
  border-color: var(--accent-slate);
}

/* Body & Metriche */
.arch-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.arch-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.metric-card {
  background: var(--bg-primary);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-slate);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Griglia Approfondimento */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.arch-block {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.arch-block h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
  letter-spacing: 0.03em;
}

.arch-block p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.arch-list {
  list-style: none;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-muted);
}

.arch-list strong {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Footer Modale */
.arch-footer {
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.2);
}

.arch-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (max-width: 650px) {
  .arch-grid {
    grid-template-columns: 1fr;
  }
  .arch-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ==========================================
   PROVE TECNICHE (CAROSELLO + CORNICE PASSE-PARTOUT)
   ========================================== */
.arch-visual-proofs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--accent-border);
  border-bottom: 1px solid var(--accent-border);
  padding: 1.8rem 0;
}

/* 1. HEADER CON TITOLO, CONTATORE E FRECCE */
.proofs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.proofs-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-slate);
  letter-spacing: 0.04em;
}

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

.proof-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.proof-buttons {
  display: flex;
  gap: 0.4rem;
}

.proof-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--accent-border);
  background: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.proof-btn:hover {
  background: var(--accent-slate);
  color: var(--bg-primary);
  border-color: var(--accent-slate);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* 2. FINESTRA SLIDER (Altezza fissa 460px) */
.proof-slider-window {
  position: relative;
  background: #080a0e;
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  overflow: hidden;
  height: 460px;
  display: flex;
}

.proof-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  width: 100%;
  height: 100%;
}

.proof-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* 3. CORNICE PASSE-PARTOUT STANDARD (Per slide singola, es. Lighthouse) */
.proof-img-wrapper {
  width: 100%;
  flex: 1 1 auto;
  height: 0;
  min-height: 0;
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.proof-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15); 
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  transition: transform 0.3s ease;
}

.proof-slide:hover .proof-img-wrapper img {
  transform: scale(1.02);
}

/* 4. SHOWCASE TRE SCHERMI VERTICALI (MOBILE TRIO BEN SEPARATI) */
.proof-img-wrapper.mobile-trio {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2.4rem; /* Spazio netto e separato tra i telefoni */
  padding: 1.5rem 2rem;
}

.proof-img-wrapper.mobile-trio img {
  flex: 0 1 26%;
  max-width: 26%;
  height: 94%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.75);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.proof-img-wrapper.mobile-trio img:hover {
  transform: translateY(-6px) scale(1.04);
  border-color: var(--accent-slate);
  z-index: 2;
}

/* DIDASCALIA SOTTO LE FOTO */
.proof-caption {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 0.8rem;
  margin-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

/* Responsive Tablet & Smartphone */
@media (max-width: 768px) {
  .proof-slider-window {
    height: 360px;
  }
  .proof-img-wrapper {
    padding: 0.8rem;
  }
  .proof-img-wrapper.mobile-trio {
    gap: 1rem;
    padding: 1rem;
  }
  .proof-img-wrapper.mobile-trio img {
    flex: 0 1 30%;
    max-width: 30%;
    border-radius: 8px;
  }
  .proof-btn {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================
   PROVE TECNICHE (CAROSELLO + CORNICE PASSE-PARTOUT)
   ========================================== */
.arch-visual-proofs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--accent-border);
  border-bottom: 1px solid var(--accent-border);
  padding: 1.8rem 0;
}

/* 1. HEADER CON TITOLO, CONTATORE E FRECCE */
.proofs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.proofs-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-slate);
  letter-spacing: 0.04em;
}

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

.proof-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.proof-buttons {
  display: flex;
  gap: 0.4rem;
}

/* Stile dei pulsanti Freccia (← / →) */
.proof-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--accent-border);
  background: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.proof-btn:hover {
  background: var(--accent-slate);
  color: var(--bg-primary);
  border-color: var(--accent-slate);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* 2. FINESTRA SLIDER (Altezza fissa e costante) */
.proof-slider-window {
  position: relative;
  background: #080a0e;
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  overflow: hidden;
  height: 460px;
  display: flex;
}

.proof-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  width: 100%;
  height: 100%;
}

.proof-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* 3. CORNICE PASSE-PARTOUT (Centra l'immagine con margine) */
.proof-img-wrapper {
  width: 100%;
  flex: 1 1 auto;
  height: 0;
  min-height: 0;
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 1.5rem; /* Margine di respiro attorno allo screen */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 4. LO SCREENSHOT INCORNICIATO */
.proof-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15); 
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  transition: transform 0.3s ease;
}

.proof-slide:hover .proof-img-wrapper img {
  transform: scale(1.02);
}

.proof-caption {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 0.8rem;
  margin-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

/* Responsive Tablet & Smartphone */
@media (max-width: 768px) {
  .proof-slider-window {
    height: 360px;
  }
  .proof-img-wrapper {
    padding: 0.8rem;
  }
  .proof-btn {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================
   MODULO CONTATTI (Form Styling)
   ========================================== */
.contact-container {
  max-width: 540px; /* Più stretto e compatto della scheda tecnica */
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-form input, 
.contact-form textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 0.9rem;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
}

.contact-form textarea {
  resize: vertical; /* Permette di allungarlo solo in verticale */
}

/* Effetto Focus: si illumina col tuo colore Metallic Slate */
.contact-form input:focus, 
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-slate);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
}

/* Modifica il placeholder per renderlo più leggibile */
.contact-form ::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 1rem;
}

/* Messaggio di successo Form */
.form-success-msg {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed var(--accent-slate);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

/* ==========================================
   EFFETTO SUCCESSO FORM (TERMINAL / VHS)
   ========================================== */

/* Animazione di accensione schermo CRT */
@keyframes crt-flicker {
  0%   { opacity: 0.2; transform: scaleY(1.02); }
  10%  { opacity: 1; transform: scaleY(1); }
  15%  { opacity: 0.8; transform: scaleY(0.98); }
  20%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* Animazione del cursore del terminale */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.studio95-success {
  padding: 2rem 1.5rem;
  border: 1px solid var(--accent-slate);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
  animation: crt-flicker 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sys-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-slate);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.vhs-title {
  color: var(--text-main);
  font-size: 1.4rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  /* Effetto aberrazione cromatica "glitch" 3D */
  text-shadow: 2px 0 0 rgba(255, 0, 0, 0.5), -2px 0 0 rgba(0, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.mono-desc {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.blinking-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background-color: var(--text-main);
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}