 * {
      box-sizing: border-box;
      font-family: 'Segoe UI', sans-serif;
    }

    body {
      margin: 0;
      min-height: 100vh;
      overflow-x: hidden;
    }

    .hero {
      min-height: 100vh;
      width: 100%;
      background: url('../img/sfondo.png') center/cover no-repeat;
      display: flex;
      align-items: center;
    }

    .hero-overlay {
      width: 100%;
      min-height: 100vh;
      display: flex;
      align-items: center;
    }

    .content-box {
      color: white;
      /*max-width: 540px;*/
    }

    .content-box h1 {
      font-size: clamp(2rem, 5vw, 3rem);
      margin-bottom: 1rem;
      font-weight: 700;
    }

    .content-box p {
      font-size: 1rem;
      line-height: 1.6;
      margin-bottom: 1.5rem;
    }

    .custom-btn {
      background: linear-gradient(135deg, #6a00f4, #9f5cff);
      border: none;
      color: white;
      padding: 0.9rem 1.5rem;
      border-radius: 12px;
      font-size: 1rem;
      transition: 0.3s ease;
    }

    .custom-btn:hover {
      opacity: 0.95;
      transform: translateY(-1px);
      color: white;
    }

    .robot {
      max-width: 100%;
      width: 480px;
      height: auto;
      margin-bottom: 1.5rem;
    }

    .floating-btn {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #6a00f4;
      color: white;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 26px;
      cursor: pointer;
      z-index: 1055;
      transition: all 0.3s ease;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    }

    .floating-btn.hide {
      opacity: 0;
      transform: scale(0.8);
      pointer-events: none;
    }

 .chat-popup {
      position: fixed;
      bottom: 1em;
      right: 1em;
      width: 92%;
      height: 92%;
      background: white;
      display: none;
      flex-direction: column;
      z-index: 1060;
    }

    .chat-header {
      background: linear-gradient(135deg, #6a00f4, #9f5cff);
      color: white;
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .chat-close {
      cursor: pointer;
      font-size: 1.3rem;
      line-height: 1;
    }

    .iframe-wrapper {
      flex: 1;
      overflow: hidden;
      background: #f5f5f5;
    }

    .iframe-wrapper iframe {
      width: 100%;
      height: calc(100% + 62px);
      border: none;
      transform: translateY(-70px) scale(1.02);
      transform-origin: top center;
    }


    @media (min-width: 768px) {
      .chat-popup {
        width: 520px;
        height: 80%;
        bottom: 90px;
        right: 200px;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
      }

      .iframe-wrapper {
        padding: 10px;
      }
    }

    @media (max-width: 767.98px) {
      .hero {
        text-align: center;
      }

      .iframe-wrapper iframe {
      height: calc(100% + 58px);
    }

      .content-box {
        margin: 0 auto;
      }


      .floating-btn {
        width: 56px;
        height: 56px;
        font-size: 24px;
        bottom: 16px;
        right: 16px;
      }
    }

