
        /* ================================== */
        /* CHAT WIDGET STYLES */
        /* File: chat-widget.css */
        /* ================================== */

        .chat-widget {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 9999;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        }

        .chat-widget.pos-top {
            bottom: auto;
            top: 24px;
        }

        .chat-widget.pos-top .chat-dialog {
            bottom: auto;
            top: 80px;
        }

        .chat-widget.pos-static {
            position: relative;
            bottom: auto;
            right: auto;
            display: inline-block;
            z-index: 9999;
        }

        .chat-widget.pos-static .chat-dialog {
            position: fixed;
            top: 50%;
            left: 50%;
            bottom: auto;
            right: auto;
            transform: translate(-50%, -45%) scale(0.95);
        }

        .chat-widget.pos-static .chat-dialog.open {
            transform: translate(-50%, -50%) scale(1);
        }

        /* Posizionamento StaticBottom */
        .chat-widget.pos-staticbottom {
            position: relative;
            bottom: auto;
            right: auto;
            display: inline-block;
            z-index: 9999;
        }

        .chat-widget.pos-staticbottom .chat-dialog {
            position: fixed;
            bottom: 90px;
            right: 24px;
            top: auto;
            left: auto;
            transform: translateY(20px) scale(0.95);
        }

        .chat-widget.pos-staticbottom .chat-dialog.open {
            transform: translateY(0) scale(1);
        }

        /* Posizionamento Hidden */
        .chat-widget.pos-hidden {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 9999;
        }

        .chat-widget.pos-hidden .chat-avatar {
            display: none !important;
        }

        .chat-widget.pos-hidden .chat-dialog {
            position: fixed;
            bottom: 24px;
            right: 24px;
            top: auto;
            left: auto;
            transform: translateY(20px) scale(0.95);
        }

        .chat-widget.pos-hidden .chat-dialog.open {
            transform: translateY(0) scale(1);
        }

        .chat-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            position: relative;
            z-index: 5;
        }

        .chat-avatar:hover {
            transform: scale(1.1);
            box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
        }

        .chat-avatar svg {
            width: 32px;
            height: 32px;
            fill: white;
        }

        .chat-avatar.active {
            transform: scale(0.9);
        }

        .pulse-ring {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 3px solid #667eea;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            100% {
                transform: scale(1.5);
                opacity: 0;
            }
        }

        .chat-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(2.5px);
            z-index: 8;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .chat-backdrop.active {
            opacity: 1;
            pointer-events: all;
        }

        .chat-dialog {
            position: absolute;
            bottom: 80px;
            right: 0;
            width: 380px;
            max-width: calc(100vw - 48px);
            height: 600px;
            max-height: calc(100vh - 120px);
            background: white;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            opacity: 0;
            transform: translateY(20px) scale(0.95);
            pointer-events: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 10;
        }

        .chat-dialog.full-dialog {
             width: 1920px;
             height: 900px;
        }


        .chat-dialog.open {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: all;
        }

        .chat-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px;
            border-radius: 16px 16px 0 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .chat-header-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .chat-header-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .chat-header-avatar svg {
            width: 24px;
            height: 24px;
            fill: white;
        }

        .chat-header-text h3 {
            font-size: 16px;
            margin: 0 0 2px 0;
        }

        .chat-header-text p {
            font-size: 12px;
            opacity: 0.9;
            margin: 0;
        }

        .chat-close {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            transition: background 0.2s;
        }

        .chat-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            background: #f7fafc;
        }

        .message {
            margin-bottom: 16px;
            display: flex;
            gap: 8px;
            animation: messageSlide 0.3s ease;
        }

        @keyframes messageSlide {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .message.bot {
            flex-direction: row;
        }

        .message.user {
            flex-direction: row-reverse;
        }

        .message-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .message.user .message-avatar {
            background: #48bb78;
        }

        .message-avatar svg {
            width: 18px;
            height: 18px;
            fill: white;
        }

        .message-content {
            max-width: 70%;
            padding: 12px 16px;
            border-radius: 16px;
            font-size: 14px;
            line-height: 1.5;
        }
        .message-content-full {
            max-width: 100%;
            padding: 12px 16px;
            border-radius: 16px;
            font-size: 14px;
            line-height: 1.5;
        }

        .message.bot .message-content {
            background: white;
            color: #2d3748;
            border-bottom-left-radius: 4px;
        }

        .message.bot .message-content-full {
            background: white;
            color: #2d3748;
            border-bottom-left-radius: 4px;
        }

        .message.user .message-content {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-bottom-right-radius: 4px;
        }

        .typing-indicator {
            display: none;
            align-items: center;
            gap: 4px;
            padding: 12px 16px;
            background: white;
            border-radius: 16px;
            border-bottom-left-radius: 4px;
            max-width: fit-content;
        }

        .typing-indicator.active {
            display: flex;
        }

        .typing-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #cbd5e0;
            animation: typing 1.4s infinite;
        }

        .typing-dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes typing {
            0%, 60%, 100% {
                transform: translateY(0);
            }
            30% {
                transform: translateY(-10px);
            }
        }

        .chat-input-container {
            padding: 16px;
            background: white;
            border-top: 1px solid #e2e8f0;
            border-radius: 0 0 16px 16px;
        }

        .chat-input-wrapper {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .chat-input {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid #e2e8f0;
            border-radius: 24px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
        }

        .chat-input:focus {
            border-color: #667eea;
        }

        .chat-send {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s;
            flex-shrink: 0;
        }

        .chat-send:hover {
            transform: scale(1.1);
        }

        .chat-send:active {
            transform: scale(0.95);
        }

        .chat-send svg {
            width: 20px;
            height: 20px;
            fill: white;
        }

        .chat-messages::-webkit-scrollbar {
            width: 6px;
        }

        .chat-messages::-webkit-scrollbar-track {
            background: transparent;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: #cbd5e0;
            border-radius: 3px;
        }

        .chat-messages::-webkit-scrollbar-thumb:hover {
            background: #a0aec0;
        }

        @media (max-width: 480px) {
            .chat-dialog {
                width: calc(100vw - 24px);
                right: 12px;
                bottom: 90px;
            }

            .chat-widget {
                right: 12px;
                bottom: 12px;
            }
        }

        .chat-avatar-image {
            position: absolute;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-image: url('assets/Button.png');
            background-size: cover;
            background-position: center;
        }
        .message-avatar {
            background-image: url('assets/Button.png');
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center;
        }

        


.button-container {
  display: flex;
  flex-direction: column; /* ← disposizione verticale */
  align-items: center;    /* centrati orizzontalmente */
  gap: 16px;              /* spazio tra i bottoni */
}
/* Stile base */
.btn {
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;           /* larghezza uniforme */
  text-align: center;
}

/* --- Outline --- */
.btn-outline {
  background-color: #fff;
  color: #6a0dad;
  border-color: #6a0dad;
}

.btn-outline:hover {
  background-color: #6a0dad;
  color: #fff;
  box-shadow: 0 6px 15px rgba(106, 13, 173, 0.3);
  transform: translateY(-2px);
}

/* --- Filled --- */
.btn-filled {
  background-color: #6a0dad;
  color: #fff;
  box-shadow: 0 4px 12px rgba(106, 13, 173, 0.2);
}

.btn-filled:hover {
  background-color: #8c2ef8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(106, 13, 173, 0.3);
}

/* --- Ghost --- */
.btn-ghost {
  background-color: transparent;
  color: #6a0dad;
  border: none;
  box-shadow: none;
}

.btn-ghost:hover {
  background-color: rgba(106, 13, 173, 0.08);
  transform: translateY(-1px);
}

/* Stato attivo */
.btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(106, 13, 173, 0.15);
}

.framefaq {
  position: absolute;
  top:0px;
  margin: 0px;
  padding: 0px;
  width: 100%;
  height: 100% - 40px;

  display: none;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
 
}
.cht_btn_close {
    z-index: 999;
    cursor: pointer;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    background: #e53e3e;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
}

.cht_btn_close:hover {
    background: #c53030;
    color: #ffffff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 16px rgba(229, 62, 62, 0.4);
}