* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f7ff;
    color: #333;
    font-weight: 400;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #8e44ad;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(155, 89, 182, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: all 0.3s;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #8e44ad;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 400;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8e44ad;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: #fef9ff;
    padding: 120px 0 80px;
    margin-top: 60px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 30px;
    display: block;
}

.hero-image-side {
    flex: 1;
    position: relative;
}

.hero-image-side img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(155, 89, 182, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    color: #8e44ad;
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero p {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.cta-button {
    background: #9b59b6;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.cta-button:hover {
    background: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #fafafa;
}

.services h2 {
    text-align: center;
    color: #8e44ad;
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #e8d5f2;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.service-card h3 {
    color: #8e44ad;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 1px;
}

.service-card p {
    font-weight: 300;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about h2 {
    text-align: center;
    color: #8e44ad;
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text h3 {
    color: #8e44ad;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 300;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
    font-weight: 300;
}

.partner-box {
    margin-top: 40px;
    padding: 30px;
    background: #f8f7ff;
    border-left: 4px solid #8e44ad;
    border-radius: 10px;
}

.partner-box p {
    margin: 0;
    color: #8e44ad;
}

/* Treatments Detail Section */
.treatments-detail {
    padding: 80px 0;
    background: #fafafa;
}

.treatments-detail h2 {
    text-align: center;
    color: #8e44ad;
    font-size: 36px;
    margin-bottom: 60px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.treatment-category {
    margin-bottom: 60px;
}

.treatment-category h3 {
    color: #8e44ad;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 400;
    text-align: center;
}

.treatment-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.treatment-item.featured {
    border-left: 4px solid #8e44ad;
}

.treatment-item h4 {
    color: #8e44ad;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 500;
}

.treatment-item p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

.duration {
    display: inline-block;
    background: #f8f7ff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #8e44ad;
    margin-top: 10px;
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.treatment-mini {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.treatment-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.2);
}

.treatment-mini h5 {
    color: #8e44ad;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

.treatment-mini p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.treatment-list {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.treatment-list p {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.treatment-list p:last-child {
    border-bottom: none;
}

.treatment-list strong {
    color: #8e44ad;
}

/* Modal Prenotazione */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.close:hover {
    color: #000;
}

#formPrenotazione {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

#formPrenotazione input,
#formPrenotazione select {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

#formPrenotazione input:focus,
#formPrenotazione select:focus {
    border-color: #9b59b6;
}

#formPrenotazione button {
    background: #9b59b6;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

#formPrenotazione button:hover {
    background: #8e44ad;
}

/* Chatbot */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1500;
}

.chatbot-button {
    background: #9b59b6;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(155, 89, 182, 0.4);
    transition: all 0.3s;
    font-size: 24px;
}

.chatbot-button:hover {
    transform: scale(1.1);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.active {
    display: flex;
}

.chatbot-header {
    background: #9b59b6;
    color: white;
    padding: 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

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

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

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

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

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
}

.bot .message-bubble {
    background: white;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user .message-bubble {
    background: #9b59b6;
    color: white;
}

.chat-input {
    display: flex;
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

.chat-input button {
    background: #9b59b6;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-left: 10px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-input button:hover {
    background: #8e44ad;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-section h3 {
    color: #9b59b6;
    margin-bottom: 15px;
}

.footer-section p, .footer-section ul {
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
}

.footer-section a:hover {
    color: #9b59b6;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-logo {
        margin: 0 auto 30px;
    }
    
    .hero-image-side {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .chatbot-window {
        width: 90%;
        right: 5%;
    }
}
/* Bottone WhatsApp */
a.cta-button {
    text-decoration: none;
    display: inline-block;
}
