/* Custom styles for Villa 22 Legnano */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
/* Stile personalizzato per le voci del menu */
.menu-dots {
    flex-grow: 1;
    border-bottom: 1px dotted #777;
    margin: 0 1rem;
    position: relative;
    top: -6px;
}
/* Scrollbar nascosta per i tab su mobile */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.tab-active {
    color: #D4AF37;
    border-bottom-color: #D4AF37;
}
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Menu Card Styles */
.menu-card {
    background-size: cover;
    background-position: center;
    border-radius: 8px; /* Arrotondato leggermente */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}
.menu-overlay {
    background-color: rgba(15, 15, 15, 0.85); /* Molto scuro per leggibilità */
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px); /* Leggero blur per eleganza */
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4AF37 0%, #B08D22 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
}
.chat-button:hover {
    transform: scale(1.1);
}
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-window.open {
    transform: scale(1);
    opacity: 1;
}
.chat-header {
    background: #2d2d2d;
    padding: 15px;
    border-bottom: 1px solid #D4AF37;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}
.message.bot {
    background-color: #333;
    color: #e5e5e5;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.message.user {
    background-color: #D4AF37;
    color: #1a1a1a;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 600;
}
.chat-input-area {
    padding: 15px;
    background: #2d2d2d;
    border-top: 1px solid #333;
    display: flex;
    gap: 10px;
}
.chat-input {
    flex-grow: 1;
    background: #1a1a1a;
    border: 1px solid #444;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}
.chat-input:focus {
    border-color: #D4AF37;
}
.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #aaa;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
    margin: 0 1px;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
