:root {
  --gap: 1.25rem;
  --speed: 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --accent: #c41e3a;  /* Rosso VIVA ETS dal logo */
  --accent-dark: #810000;  /* Variante più scura */
  --accent-light: #e63946;  /* Variante più chiara */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, sans-serif;
  background: #07090d;
  color: #c5c7ce;
}

.page-container {
  min-height: 100vh;
  position: relative;
  padding: 80px 20px 40px;
}

/* ===== BACKGROUND FISSO ===== */
.background-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.background-image.laboratorio-background-layer {
  opacity: 0.36;
  background: #07090d;
}

.laboratorio-background {
  width: min(78vw, 1100px) !important;
  height: auto !important;
  max-height: 72vh;
  opacity: 1;
  object-fit: contain;
  filter: brightness(0.9) saturate(1.05);
}

/* ===== HEADER STICKY ===== */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(7, 9, 13, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0.7rem 1.2rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.3s;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.logo {
  width: 80px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(255, 107, 53, 0.3));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

/* ===== CONTENUTO PRINCIPALE ===== */
.page-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeInUp 0.8s var(--speed);
}

.page-title {
  font-size: 3rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  text-align: center;
}

/* ===== BOX IMMAGINE ===== */
.sala-image-box {
  display: none;  /* Nascosto */
}

/* ===== BOX IMMAGINE ARTESTESA ===== */
.artestesa-image-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s var(--speed) 0.1s both;
}

.artestesa-image {
  max-width: 100%;
  height: auto;
  border-radius: 0.8rem;
  box-shadow: 0 10px 40px rgba(196, 30, 58, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid var(--accent);
}

.artestesa-image:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(196, 30, 58, 0.5);
}

/* ===== DESCRIZIONE ===== */
.sala-description {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInUp 0.8s var(--speed) 0.2s both;
}

.sala-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #c5c7ce;
  text-align: justify;
  background: rgba(7, 9, 13, 0.78);
  border-left: 3px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.sala-text:hover {
  background: rgba(255, 107, 53, 0.1);
  transform: translateX(4px);
}

.sala-text strong {
  color: var(--accent);
  font-weight: 600;
}

/* ===== LINK SOCIAL ===== */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  animation: fadeInUp 0.8s var(--speed) 0.3s both;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(196, 30, 58, 0.4);
}

.social-link:active {
  transform: translateY(-1px);
}

.facebook-icon,
.website-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ===== ANIMAZIONI ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .page-header {
    padding: 15px 20px;
  }
  
  .logo {
    width: 60px;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .sala-text {
    font-size: 1rem;
    text-align: left;
  }
  
  .sala-image-box {
    max-width: 100%;
  }

  
  .social-link {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding: 70px 15px 30px;
  }
  
  .page-header {
    padding: 12px 15px;
  }
  
  .logo {
    width: 50px;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .sala-description {
    gap: 1rem;
  }
  
  .sala-text {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .social-link {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
  }
  
  .facebook-icon {
    width: 20px;
    height: 20px;
  }
}
