/* ==========================================================================
   CSS RIELABORATO - MarcoLaCamera.com
   ========================================================================== 
*/

:root {
  /* Palette Colori */
  --bg: #0b0b12;
  --panel: rgba(18, 18, 30, 0.78);
  --panel2: rgba(14, 14, 24, 0.72);
  --text: #eaeaea;
  --muted: rgba(234, 234, 234, 0.72);
  --line: rgba(255, 255, 255, 0.10);
  --line2: rgba(255, 255, 255, 0.07);
  
  /* Accenti & Effetti */
  --accent: #6a4cff;   /* Viola */
  --accent2: #2dd4bf;  /* Teal */
  --shadow: rgba(0, 0, 0, 0.35);
  --glow: rgba(106, 76, 255, 0.35);
}

/* ===== Base & Reset ===== */
* { 
  box-sizing: border-box; 
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(106, 76, 255, 0.28) 0%, transparent 42%),
    radial-gradient(circle at 92% 90%, rgba(45, 212, 191, 0.20) 0%, transparent 46%),
    radial-gradient(circle at 55% 40%, rgba(255, 255, 255, 0.04) 0%, transparent 45%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.6;
}

a { 
  color: inherit; 
  text-decoration: none; 
  transition: all 0.2s ease;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ===== Topbar (HUD Navigation) ===== */
.topbar {
  background: rgba(12, 12, 20, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

/* Brand & Icon Logo */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px var(--glow));
  transition: transform 0.3s ease;
}

.brand-link:hover .brand-icon {
  transform: rotate(15deg) scale(1.1);
}

.brand-text {
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
}

/* Navigazione */
.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  opacity: 0.8;
}

.nav a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.nav a.active {
  opacity: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0b0b12;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--glow);
}

/* ===== Layout Hero ===== */
main {
  padding-top: 40px;
  padding-bottom: 60px;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

/* Pannello Effetto Scanlines */
.hero--panel {
  position: relative;
  overflow: hidden;
}

.hero--panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 3px,
    transparent 7px
  );
  mask-image: radial-gradient(circle at 30% 20%, black 0%, transparent 75%);
  opacity: 0.4;
}

/* Typography */
.statusline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent2);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 10px var(--accent2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 800;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 30px;
}

/* ===== Componenti: Cards & Buttons ===== */
.card {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px var(--shadow);
  backdrop-filter: blur(4px);
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0b0b12;
  box-shadow: 0 4px 15px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 20px var(--glow);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent2);
}

/* ===== Griglia Servizi/Tiles ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.tile {
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--line2);
  padding: 20px;
  border-radius: 16px;
  height: 100%;
}

.tile:hover {
  border-color: var(--accent);
  background: rgba(106, 76, 255, 0.05);
  transform: translateY(-4px);
}

.tile-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: block;
}

/* ===== Profilo/Portrait (Colonna Destra) ===== */
.portrait-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
}

.avatar {
  width: 100%;
  border-radius: 12px;
  filter: grayscale(0.2) contrast(1.1);
  border: 1px solid var(--line);
}

.stat {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line2);
}

.stat:last-child { border-bottom: none; }

.stat-k { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.stat-v { font-weight: 600; font-size: 14px; }

/* ===== Footer ===== */
.footer {
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid var(--line2);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .topbar .container { flex-direction: column; height: auto; padding: 15px; }
  .nav { width: 100%; justify-content: center; }
}