/* ══════════════════════════
   csshomefake.css  (Home)
   ══════════════════════════ */

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ── HERO SLIDESHOW ── */
.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  max-height: 75vh;
  overflow: hidden;
  background: var(--bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slide.active { opacity: 1; }

/* Sfondo sfocato: riempie le bande laterali senza tagliare la foto */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: -60px;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(28px) brightness(0.45);
}

/* La foto resta sempre intera, qualunque sia il dispositivo */
.hero-slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0.45);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(24px, 6vw, 80px);
  z-index: 2;
}

.hero-label {
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 5vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 32px;
}
.hero-title span { color: var(--blue); }

.hero-cta {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.15s;
}
.hero-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* ── SECTION COMMON ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 40px;
}

/* ── SERVICES ── */
.services-section {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 6vw, 80px);
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── VIDEO IN EVIDENZA ── */
.info-section {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 6vw, 80px);
  background: var(--bg3);
}

.video-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.video-wrap {
  position: relative;
  width: clamp(280px, 28vw, 400px);
  flex-shrink: 0;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
}

.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .hero-overlay { padding: 24px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .video-row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .video-wrap { width: clamp(240px, 80vw, 340px); }
}



 /* ── BOTTONE FISSO ── */
    .social-fab {
      position: fixed;
      bottom: 28px;
      right: 28px;
      z-index: 8888;
      background: var(--blue, #1e90ff);
      color: #fff;
      border: none;
      border-radius: 50px;
      padding: 14px 22px;
      font-size: 15px;
      font-weight: 700;
      font-family: 'Inter', sans-serif;
      cursor: pointer;
      box-shadow: 0 6px 24px rgba(30,144,255,0.4);
      display: flex;
      align-items: center;
      gap: 10px;
      transition: transform 0.2s, box-shadow 0.2s;
      letter-spacing: 0.3px;
    }
    .social-fab:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 32px rgba(30,144,255,0.55);
    }
    .social-fab-icon { font-size: 20px; }

    /* ── OVERLAY ── */
    .social-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 9000;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(5px);
      align-items: center;
      justify-content: center;
    }
    .social-overlay.open { display: flex; }

    /* ── BOX ── */
    .social-box {
      background: #111620;
      border: 1px solid #1e2d4a;
      border-radius: 20px;
      padding: 36px 40px 32px;
      width: 90%;
      max-width: 420px;
      box-shadow: 0 24px 80px rgba(0,0,0,0.7);
      animation: pop-in 0.25s ease;
      position: relative;
      text-align: center;
    }

    @keyframes pop-in {
      from { opacity: 0; transform: scale(0.92) translateY(12px); }
      to   { opacity: 1; transform: scale(1) translateY(0); }
    }

    .social-close {
      position: absolute;
      top: 14px; right: 14px;
      background: #181e2d;
      border: 1px solid #1e2d4a;
      color: #7a8aaa;
      width: 32px; height: 32px;
      border-radius: 8px;
      font-size: 16px;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: color 0.2s, border-color 0.2s;
    }
    .social-close:hover { color: #f0f4ff; border-color: #1e90ff; }

    .social-tag {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 2.5px;
      color: #00d4ff;
      text-transform: uppercase;
      margin-bottom: 8px;
      display: block;
    }

    .social-title {
      font-family: 'Space Grotesk', 'Inter', sans-serif;
      font-size: 22px;
      font-weight: 700;
      color: #f0f4ff;
      margin-bottom: 28px;
    }

    /* ── ICONE SOCIAL ── */
    .social-icons {
      display: flex;
      justify-content: center;
      gap: 28px;
      flex-wrap: wrap;
    }

    .social-link {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      transition: transform 0.2s;
    }
    .social-link:hover { transform: translateY(-5px); }

    .social-link img {
      width: 72px;
      height: 72px;
      border-radius: 18px;
      object-fit: cover;
      box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    }

    .social-link span {
      font-size: 12px;
      font-weight: 600;
      color: #7a8aaa;
      font-family: 'Inter', sans-serif;
      letter-spacing: 0.3px;
    }
    .social-link:hover span { color: #f0f4ff; }
/* --- solo-contatti additions --- */
.contact-section {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 6vw, 80px);
  background: var(--bg);
  display: flex;
  justify-content: center;
}

.contact-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  text-align: center;
}

.contact-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  resize: vertical;
}

.contact-form button {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
  align-self: center;
  min-width: 140px;
}

.contact-form button:hover { background: var(--blue-dark); }

.contact-msg {
  color: var(--cyan);
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
}

.contact-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

.contact-choice-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-choice-btn {
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: background 0.2s, transform 0.15s;
  min-width: 160px;
}
.contact-choice-btn:hover { background: var(--blue-dark); transform: translateY(-2px); }
.contact-choice-btn.secondary {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
}
.contact-choice-btn.secondary:hover { border-color: var(--blue); background: var(--blue-glow); }

.contact-back {
  margin-top: 20px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}
.contact-back:hover { color: var(--cyan); }
