:root {
  --primary: #0b1f2b;
  --accent: #f0c63a;
  --muted: #d8e3ea;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: radial-gradient(circle at top, #101c2a, #04070d 55%);
  color: white;
  min-height: 100vh;
  margin: 0;
}

.site-header {
  background: rgba(3, 7, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo-frame {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-frame::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 34px;
  border: 1px solid rgba(240, 198, 58, 0.35);
  opacity: 0;
  animation: glow 4s ease-in-out infinite;
}

.logo-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

nav.desktop-nav a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

nav.desktop-nav a:hover {
  color: white;
}

#nav-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: white;
  font-size: 1.25rem;
  display: none;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 15, 0.95);
  display: none;
  flex-direction: column;
  padding: 3rem 1.5rem;
  gap: 1.5rem;
  font-size: 1.25rem;
  z-index: 60;
}

.mobile-menu.show {
  display: flex;
}

.mobile-menu a {
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.25rem;
}

.mobile-menu button {
  background: none;
  border: none;
  color: white;
  font-size: 1.75rem;
  padding: 0;
}

.cta-button {
  background: linear-gradient(135deg, var(--accent), #ffad24);
  color: var(--primary);
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.hero {
  background: linear-gradient(120deg, rgba(198, 129, 30, 0.1), rgba(5, 9, 18, 0.95)), var(--hero-image) center/cover;
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.page-chi-sono .hero {
  background-position: center 18%;
}

.page-chi-sono .hero::before {
  opacity: 0.6;
  filter: brightness(95%) saturate(85%);
}

.page-chi-sono .hero::after {
  opacity: 0.3;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(240, 198, 58, 0.35), transparent 55%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.83), rgba(0, 0, 0, 0.75) 65%);
  opacity: 0.8;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1,
.hero-content p,
.hero-content .panel-card,
.hero-content .pill {
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.65);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.panel-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.services-card {
  background: rgba(14, 28, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-contatti .hero .panel-card {
  padding: 1.75rem;
  min-height: 0;
}

.page-contatti .hero .panel-card p:first-child {
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  line-height: 1.3;
}

.page-contatti .hero .panel-card p:last-child {
  font-size: clamp(0.825rem, 2vw, 1rem);
  color: rgba(255, 255, 255, 0.75);
}

.page-404 {
  background:
    radial-gradient(circle at top, rgba(240, 198, 58, 0.15), transparent 35%),
    linear-gradient(180deg, #dff0ff 0%, #f3f6fa 42%, #d8e4ef 100%);
  color: #0b1f2b;
  min-height: 100vh;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.page-404-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.page-404-content {
  max-width: 980px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}

.page-404-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: rgba(11, 31, 43, 0.08);
  color: #123044;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-404 h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.75rem);
  line-height: 0.95;
  max-width: 12ch;
  color: #091826;
}

.page-404-copy {
  margin: 0;
  max-width: 62ch;
  color: #2a4356;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.page-404-illustration {
  width: min(100%, 920px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 44px rgba(12, 29, 43, 0.18));
}

.page-404-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
  align-items: center;
}

.page-404-link {
  color: #123044;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(18, 48, 68, 0.3);
}

.page-404-footnote {
  margin: 0;
  max-width: 56ch;
  color: #4d6476;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .page-contatti .hero .panel-card {
    padding: 1.25rem;
  }

  .page-contatti .hero .panel-card p:first-child {
    font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  }

  .page-contatti .hero .panel-card p:last-child {
    font-size: clamp(0.75rem, 2.8vw, 0.95rem);
  }

  .page-contatti .hero .panel-card {
    word-break: break-word;
  }
}

.services-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 198, 58, 0.6);
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-card strong {
  font-size: 2rem;
}

footer {
  background: #01040b;
}

@keyframes glow {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.04);
  }
}

@media (max-width: 900px) {
  nav.desktop-nav {
    display: none;
  }

  #nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (min-width: 1025px) {
  /* Aumenta l'oscurità del gradiente principale per mascherare lo zoom */
  .hero {
    background: linear-gradient(
      120deg, 
      rgba(10, 6, 2, 0.4),   
      rgba(3, 5, 10, 0.98)   
    ), var(--hero-image) center/cover;
  }

  /* Scurisce gli overlay specifici della pagina "Chi Sono" */
  .page-chi-sono .hero::before {
    opacity: 0.90;                
    filter: brightness(60%) saturate(70%); 
  }
  
  .page-chi-sono .hero::after {
    opacity: 0.65;                 
  }
}