/**
 * GR AI Chatbot — Stili Widget
 *
 * Design: bolla flottante + pannello chat responsive.
 * Custom properties per tema colori.
 * WCAG 2.2 Level AA: contrasto, focus, touch target.
 * Mobile-first responsive.
 *
 * @package GR_AI_Chatbot
 */

/* ═══════════════════════════════════════════════════════════════════════════
   Design Tokens
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --gr-chatbot-primary: #1A3A5C;
    --gr-chatbot-primary-light: #2a5a8c;
    --gr-chatbot-bg: #ffffff;
    --gr-chatbot-bg-alt: #f3f4f6;
    --gr-chatbot-text: #1f2937;
    --gr-chatbot-text-muted: #6b7280;
    --gr-chatbot-border: #e5e7eb;
    --gr-chatbot-user-bg: var(--gr-chatbot-primary);
    --gr-chatbot-user-text: #ffffff;
    --gr-chatbot-bot-bg: #f3f4f6;
    --gr-chatbot-bot-text: #1f2937;
    --gr-chatbot-radius: 16px;
    --gr-chatbot-radius-sm: 8px;
    --gr-chatbot-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --gr-chatbot-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --gr-chatbot-gold: #C8A86E;
    --gr-chatbot-green: #059669;
    --gr-chatbot-red: #DC2626;
    --gr-chatbot-z: 9999;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --gr-chatbot-bg: #1f2937;
        --gr-chatbot-bg-alt: #374151;
        --gr-chatbot-text: #f9fafb;
        --gr-chatbot-text-muted: #9ca3af;
        --gr-chatbot-border: #4b5563;
        --gr-chatbot-bot-bg: #374151;
        --gr-chatbot-bot-text: #f9fafb;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Isolamento base — protegge il chatbot dagli stili del tema WordPress
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-chatbot-wrapper,
.gr-chatbot-wrapper *,
.gr-chatbot-wrapper *::before,
.gr-chatbot-wrapper *::after {
    box-sizing: border-box;
}

.gr-chatbot-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--gr-chatbot-text);
}

.gr-chatbot-wrapper button,
.gr-chatbot-wrapper input {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Screen Reader Only
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-chatbot-wrapper .gr-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Wrapper & Positioning
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-chatbot-wrapper {
    position: fixed;
    z-index: var(--gr-chatbot-z);
    bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.gr-chatbot-wrapper > * {
    pointer-events: auto;
}

.gr-chatbot--bottom-right {
    right: 1.25rem;
}

.gr-chatbot--bottom-left {
    left: 1.25rem;
    align-items: flex-start;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Toggle Button (Bolla)
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-chatbot-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    border: 2px solid var(--gr-chatbot-gold);
    background: var(--gr-chatbot-primary);
    color: #ffffff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.35), 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

/* Forza icone bianche — previene override dal tema WordPress */
.gr-chatbot-toggle svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.gr-chatbot-toggle:hover {
    transform: scale(1.08);
    background: var(--gr-chatbot-primary-light);
    box-shadow: 0 6px 28px rgba(26, 58, 92, 0.45), 0 3px 12px rgba(0, 0, 0, 0.15);
}

.gr-chatbot-toggle:focus-visible {
    outline: 3px solid var(--gr-chatbot-gold);
    outline-offset: 2px;
}

/* Icone toggle */
.gr-chatbot-icon--close {
    display: none;
}

.gr-chatbot--open .gr-chatbot-icon--chat {
    display: none;
}

.gr-chatbot--open .gr-chatbot-icon--close {
    display: block;
}

/* Testo bolla */
.gr-chatbot-bubble-text {
    position: absolute;
    right: calc(100% + 0.75rem);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: var(--gr-chatbot-bg);
    color: var(--gr-chatbot-text);
    padding: 0.5rem 0.75rem;
    border-radius: var(--gr-chatbot-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--gr-chatbot-shadow-sm);
    animation: gr-chatbot-bubble-in 0.3s ease;
}

.gr-chatbot--bottom-left .gr-chatbot-bubble-text {
    right: auto;
    left: calc(100% + 0.75rem);
}

.gr-chatbot-bubble-text[hidden] {
    display: none;
}

@keyframes gr-chatbot-bubble-in {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(8px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Chat Panel
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-chatbot-panel {
    position: absolute;
    bottom: calc(60px + 1rem);
    right: 0;
    width: min(390px, calc(100vw - 2.5rem));
    max-height: 540px;
    background: var(--gr-chatbot-bg);
    border-radius: var(--gr-chatbot-radius);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gr-chatbot-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: gr-chatbot-panel-in 0.25s ease;
}

.gr-chatbot--bottom-left .gr-chatbot-panel {
    right: auto;
    left: 0;
}

.gr-chatbot-panel[hidden] {
    display: none;
}

@keyframes gr-chatbot-panel-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--gr-chatbot-primary) 0%, var(--gr-chatbot-primary-light) 100%);
    color: #ffffff;
    border-radius: var(--gr-chatbot-radius) var(--gr-chatbot-radius) 0 0;
    flex-shrink: 0;
}

/* Forza icone bianche nell'header */
.gr-chatbot-header svg {
    color: #ffffff;
    stroke: #ffffff;
}

.gr-chatbot-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.gr-chatbot-header-title {
    font-size: 0.9375rem;
    line-height: 1.2;
}

.gr-chatbot-status {
    font-size: 0.75rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.gr-chatbot-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    display: inline-block;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
    animation: gr-chatbot-status-pulse 2s ease-in-out infinite;
}

@keyframes gr-chatbot-status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.gr-chatbot-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
    min-width: 44px;
    min-height: 44px;
}

.gr-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.gr-chatbot-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Messages Area
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 200px;
    max-height: 340px;
    scroll-behavior: smooth;
}

/* Scrollbar personalizzata */
.gr-chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

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

.gr-chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--gr-chatbot-border);
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Message Bubbles
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-chatbot-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: gr-chatbot-msg-in 0.2s ease;
}

.gr-chatbot-message--user {
    align-self: flex-end;
}

.gr-chatbot-message--assistant,
.gr-chatbot-message--system {
    align-self: flex-start;
}

.gr-chatbot-message-content {
    padding: 0.625rem 0.875rem;
    border-radius: var(--gr-chatbot-radius-sm);
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gr-chatbot-message--user .gr-chatbot-message-content {
    background: var(--gr-chatbot-user-bg);
    color: var(--gr-chatbot-user-text);
    border-bottom-right-radius: 2px;
    box-shadow: 0 1px 3px rgba(26, 58, 92, 0.15);
}

.gr-chatbot-message--assistant .gr-chatbot-message-content {
    background: var(--gr-chatbot-bot-bg);
    color: var(--gr-chatbot-bot-text);
    border-bottom-left-radius: 2px;
    border-left: 3px solid var(--gr-chatbot-gold);
}

.gr-chatbot-message--system .gr-chatbot-message-content {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.8125rem;
    text-align: center;
    border-radius: var(--gr-chatbot-radius-sm);
}

/* Links dentro i messaggi */
.gr-chatbot-message-content a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gr-chatbot-message--assistant .gr-chatbot-message-content a {
    color: var(--gr-chatbot-primary);
    font-weight: 500;
}

.gr-chatbot-message-content a:hover {
    opacity: 0.8;
}

.gr-chatbot-message-content a:focus-visible {
    outline: 2px solid var(--gr-chatbot-gold);
    outline-offset: 1px;
    border-radius: 2px;
}

/* Liste dentro messaggi */
.gr-chatbot-message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.gr-chatbot-message-content li {
    margin-bottom: 0.25rem;
}

.gr-chatbot-message-content strong {
    font-weight: 600;
}

@keyframes gr-chatbot-msg-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TTS Button (Speaker)
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-chatbot-tts-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin-top: 0.25rem;
    border: none;
    background: transparent;
    color: var(--gr-chatbot-text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.gr-chatbot-tts-btn:hover {
    color: var(--gr-chatbot-primary);
    background: var(--gr-chatbot-bg-alt);
}

.gr-chatbot-tts-btn:focus-visible {
    outline: 2px solid var(--gr-chatbot-gold);
    outline-offset: 1px;
}

.gr-chatbot-tts-btn--loading {
    animation: gr-chatbot-pulse 1s ease-in-out infinite;
}

.gr-chatbot-tts-btn--playing {
    color: var(--gr-chatbot-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Typing Indicator
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-chatbot-typing {
    align-self: flex-start;
}

.gr-chatbot-typing-dots {
    display: flex;
    gap: 4px;
    padding: 0.75rem 1rem;
    background: var(--gr-chatbot-bot-bg);
    border-radius: var(--gr-chatbot-radius-sm);
    border-bottom-left-radius: 2px;
}

.gr-chatbot-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gr-chatbot-text-muted);
    animation: gr-chatbot-dots 1.2s ease-in-out infinite;
}

.gr-chatbot-typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.gr-chatbot-typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes gr-chatbot-dots {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Vehicle Cards
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-chatbot-vehicles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.5rem;
}

.gr-chatbot-vehicle-card {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem;
    background: var(--gr-chatbot-bg);
    border: 1px solid var(--gr-chatbot-border);
    border-left: 3px solid var(--gr-chatbot-gold);
    border-radius: var(--gr-chatbot-radius-sm);
    text-decoration: none;
    color: var(--gr-chatbot-text);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.gr-chatbot-vehicle-card:hover {
    border-color: var(--gr-chatbot-primary);
    border-left-color: var(--gr-chatbot-primary);
    box-shadow: var(--gr-chatbot-shadow-sm);
    transform: translateX(2px);
}

.gr-chatbot-vehicle-card:focus-visible {
    outline: 2px solid var(--gr-chatbot-gold);
    outline-offset: 1px;
}

.gr-chatbot-vehicle-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.gr-chatbot-vehicle-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gr-chatbot-bg-alt);
    color: var(--gr-chatbot-text-muted);
}

.gr-chatbot-vehicle-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.gr-chatbot-vehicle-title {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-chatbot-vehicle-price {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--gr-chatbot-primary);
}

.gr-chatbot-vehicle-arrow {
    flex-shrink: 0;
    color: var(--gr-chatbot-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA Contatto
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-chatbot-cta {
    padding: 0.75rem 1rem;
    background: var(--gr-chatbot-bg-alt);
    border-top: 1px solid var(--gr-chatbot-border);
    text-align: center;
    flex-shrink: 0;
}

.gr-chatbot-cta[hidden] {
    display: none;
}

.gr-chatbot-cta-text {
    font-size: 0.8125rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    color: var(--gr-chatbot-text);
}

.gr-chatbot-cta-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gr-chatbot-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    transition: opacity 0.2s, transform 0.15s;
    min-height: 44px;
    min-width: 44px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.gr-chatbot-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.gr-chatbot-cta-btn:focus-visible {
    outline: 2px solid var(--gr-chatbot-gold);
    outline-offset: 1px;
}

.gr-chatbot-cta-btn--phone {
    background: var(--gr-chatbot-primary);
    color: #fff;
}

.gr-chatbot-cta-btn--whatsapp {
    background: #25d366;
    color: #fff;
}

.gr-chatbot-cta-btn--form {
    background: var(--gr-chatbot-gold);
    color: var(--gr-chatbot-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Input Area
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-chatbot-input-area {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem;
    border-top: 1px solid var(--gr-chatbot-border);
    background: var(--gr-chatbot-bg);
    flex-shrink: 0;
}

.gr-chatbot-input {
    flex: 1;
    border: 1px solid var(--gr-chatbot-border);
    border-radius: 999px;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.4;
    background: var(--gr-chatbot-bg);
    color: var(--gr-chatbot-text);
    outline: none;
    transition: border-color 0.2s;
    min-height: 44px;
}

.gr-chatbot-input::placeholder {
    color: var(--gr-chatbot-text-muted);
}

.gr-chatbot-input:focus {
    border-color: var(--gr-chatbot-primary);
}

.gr-chatbot-input:focus-visible {
    outline: 2px solid var(--gr-chatbot-gold);
    outline-offset: 1px;
}

/* Send button — gold accent con icona navy (contrasto 4.78:1 AA) */
.gr-chatbot-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: var(--gr-chatbot-gold);
    color: var(--gr-chatbot-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(200, 168, 110, 0.3);
}

/* Icona navy scuro per contrasto su gold */
.gr-chatbot-send svg {
    color: var(--gr-chatbot-primary) !important;
    stroke: var(--gr-chatbot-primary) !important;
}

.gr-chatbot-send:hover:not(:disabled) {
    transform: scale(1.08);
    background: #d4b87a;
    box-shadow: 0 3px 10px rgba(200, 168, 110, 0.45);
}

.gr-chatbot-send:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.gr-chatbot-send:focus-visible {
    outline: 2px solid var(--gr-chatbot-gold);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Microphone Button
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-chatbot-mic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: transparent;
    color: var(--gr-chatbot-text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.gr-chatbot-mic[hidden] {
    display: none;
}

.gr-chatbot-mic:hover {
    color: var(--gr-chatbot-primary);
    background: var(--gr-chatbot-bg-alt);
}

.gr-chatbot-mic:focus-visible {
    outline: 2px solid var(--gr-chatbot-gold);
    outline-offset: 2px;
}

/* Stato attivo: animazione pulse rosso */
.gr-chatbot-mic--active {
    color: #fff;
    background: var(--gr-chatbot-red);
    animation: gr-chatbot-pulse 1.5s ease-in-out infinite;
}

.gr-chatbot-mic--active:hover {
    color: #fff;
    background: var(--gr-chatbot-red);
}

@keyframes gr-chatbot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-chatbot-footer {
    padding: 0.375rem 1rem;
    text-align: center;
    border-top: 1px solid var(--gr-chatbot-border);
    flex-shrink: 0;
}

.gr-chatbot-footer small {
    font-size: 0.6875rem;
    color: var(--gr-chatbot-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive — Mobile (<768px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .gr-chatbot-panel {
        position: fixed;
        inset: 0;
        width: 100%;
        max-height: 100%;
        border-radius: 0;
        bottom: 0;
        right: 0;
    }

    .gr-chatbot-header {
        border-radius: 0;
    }

    .gr-chatbot-messages {
        max-height: none;
        flex: 1;
    }

    /* Nascondi toggle quando pannello aperto su mobile */
    .gr-chatbot--open .gr-chatbot-toggle {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Reduced Motion
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .gr-chatbot-toggle,
    .gr-chatbot-panel,
    .gr-chatbot-message,
    .gr-chatbot-bubble-text,
    .gr-chatbot-mic--active,
    .gr-chatbot-tts-btn--loading {
        animation: none !important;
        transition: none !important;
    }

    .gr-chatbot-messages {
        scroll-behavior: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Print: nascondi chatbot
   ═══════════════════════════════════════════════════════════════════════════ */

@media print {
    .gr-chatbot-wrapper {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Zoom 200% support — larghezza pannello usa min() nella regola base
   ═══════════════════════════════════════════════════════════════════════════ */
