/* ===========================
   RESET E VARIABILI
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    /* Colori principali */
    --primary-color: #B19CD9;
    --primary-dark: #9477C2;
    --primary-light: #C8A2C8;
    --primary-lighter: #E8DFF5;
    
    /* Colori di supporto */
    --text-dark: #2C2C2C;
    --text-light: #5A5A5A;
    --text-muted: #8B8B8B;
    --background: #FFFFFF;
    --background-alt: #F8F6FA;
    --border-color: #E5E5E5;
    
    /* Colori semantici */
    --success: #4CAF50;
    --info: #2196F3;
    --warning: #FF9800;
    
    /* Ombre */
    --shadow-sm: 0 2px 8px rgba(177, 156, 217, 0.1);
    --shadow-md: 0 4px 16px rgba(177, 156, 217, 0.15);
    --shadow-lg: 0 8px 32px rgba(177, 156, 217, 0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transizioni */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    display: block;
    white-space: normal;
}

p, li, span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--primary-color);
    transition: transform var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 8rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--background) 50%, var(--primary-lighter) 100%);
    opacity: 0.4;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: var(--spacing-md);
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.hero-location:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.hero-location i {
    font-size: 1.3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.location-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: color var(--transition-fast);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.location-link:hover {
    color: var(--primary-color);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--background);
    border: 2px solid var(--primary-lighter);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.badge i {
    color: var(--primary-color);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    z-index: 1;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 3/4;
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 80px;
}

.hero-wave path {
    fill: var(--background);
}

/* ===========================
   SECTIONS
   =========================== */
.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background: var(--background-alt);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    margin: 0 auto var(--spacing-sm);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   CHI SONO
   =========================== */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.about-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.card-icon i {
    font-size: 1.8rem;
    color: white;
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ===========================
   SERVIZI
   =========================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    width: 100%;
    max-width: 100%;
}

.service-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.service-card > p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-features {
    list-style: none;
    padding: var(--spacing-md) 0 0;
    border-top: 1px solid var(--border-color);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-light);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.service-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ===========================
   CURRICULUM
   =========================== */
.curriculum-content {
    max-width: 1000px;
    margin: 0 auto;
}

.cv-section {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
}

.cv-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-lighter);
}

.cv-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.cv-header h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-lighter);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.timeline-marker {
    position: absolute;
    left: -33px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.timeline-content {
    background: var(--background-alt);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.timeline-content h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.timeline-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.badge-inline {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: var(--spacing-xs);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
}

.skill-item {
    text-align: center;
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
}

.skill-icon i {
    font-size: 1.5rem;
    color: white;
}

.skill-item h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.skill-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--background-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

/* Experience */
.experience-box {
    background: linear-gradient(135deg, rgba(177, 156, 217, 0.1), rgba(212, 197, 232, 0.1));
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.experience-box h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-box h4 i {
    font-size: 1.2rem;
}

.experience-box .role-title {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.experience-box .compact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-box .compact-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
}

.experience-box .compact-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===========================
   TESTIMONIANZE
   =========================== */
.testimonials-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonials-wrapper {
    overflow: hidden;
    padding: var(--spacing-md) 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.testimonial-stars {
    margin-bottom: var(--spacing-md);
}

.testimonial-stars i {
    color: #FFD700;
    font-size: 1.3rem;
    margin: 0 0.2rem;
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-lighter);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.author-info {
    text-align: left;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav.prev {
    left: -25px;
}

.testimonial-nav.next {
    right: -25px;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.testimonial-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.testimonial-indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: var(--radius-full);
}

/* ===========================
   CONTATTI
   =========================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
}

.contact-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-normal);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.contact-icon i {
    font-size: 1.8rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 0.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: var(--spacing-sm) 0;
}

.btn-map,
.btn-call,
.btn-email {
    margin-top: var(--spacing-md);
    width: 100%;
    justify-content: center;
}

.btn-map {
    background: var(--info);
    color: white;
}

.btn-map:hover {
    background: #1976D2;
}

.btn-call {
    background: var(--success);
    color: white;
}

.btn-call:hover {
    background: #388E3C;
}

.btn-email {
    background: var(--primary-color);
    color: white;
}

.btn-email:hover {
    background: var(--primary-dark);
}

.map-container {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 500px;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: linear-gradient(135deg, var(--text-dark), #1a1a1a);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-info h3,
.footer-links h4,
.footer-contact h4 {
    color: var(--primary-light);
    margin-bottom: var(--spacing-sm);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.3rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* ===========================
   CHATBOT
   =========================== */
.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    z-index: 999;
}

.chatbot-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(177, 156, 217, 0.4);
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 60px);
    height: 550px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 998;
    overflow: hidden;
    border: 1px solid var(--primary-lighter);
}

.chatbot-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

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

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.chatbot-header-info i {
    font-size: 1.5rem;
}

.chatbot-header h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.chatbot-status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.chatbot-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform var(--transition-fast);
}

.chatbot-close:hover {
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.message {
    display: flex;
    gap: var(--spacing-xs);
    animation: fadeIn 0.3s ease;
}

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

.message-avatar {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.message-content {
    flex: 1;
}

.message-content p {
    background: var(--background-alt);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xs);
    line-height: 1.5;
}

.bot-message .message-content p {
    background: var(--primary-lighter);
    color: var(--text-dark);
}

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

.user-message .message-content p {
    background: var(--primary-color);
    color: white;
    text-align: right;
}

.quick-questions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
}

.quick-btn {
    background: white;
    border: 1px solid var(--primary-lighter);
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    color: var(--text-dark);
}

.quick-btn:hover {
    background: var(--primary-lighter);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.chatbot-input {
    display: flex;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    background: white;
}

.chatbot-input input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
}

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

.chatbot-input button {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chatbot-input button:hover {
    background: var(--primary-dark);
}

/* ===========================
   FLOATING ACTION BUTTONS
   =========================== */
.floating-buttons {
    position: fixed;
    bottom: 100px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 998;
}

.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    animation: fadeInScale 0.3s ease forwards;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    animation-delay: 0.1s;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

/* Quick Booking Button */
.booking-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    animation-delay: 0.2s;
}

.booking-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: scale(1.1) rotate(-5deg);
}

/* Scroll to Top Button */
.scroll-top {
    background: var(--primary-color);
    animation-delay: 0.3s;
    opacity: 0 !important;
    visibility: hidden !important;
}

.scroll-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: scale(1.1) translateY(-3px);
}

/* Pulse animation for WhatsApp */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(37, 211, 102, 0.7);
    }
}

.whatsapp-btn {
    animation: fadeInScale 0.3s ease forwards, pulse 2s infinite 1s;
}

/* ===========================
   CHATBOT
   =========================== */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
    opacity: 0;
}

.slide-up {
    animation: slideUpFade 0.8s ease forwards;
    opacity: 0;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .map-container {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 85px;
        right: 20px;
        gap: 10px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Hero mobile layout */
    .hero-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        order: 2;
    }

    .hero-image {
        order: 1;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2rem;
        order: 4;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        order: 5;
    }

    .hero-description {
        order: 6;
    }

    .hero-badges {
        order: 2;
    }

    .hero-location {
        order: 3;
    }

    .hero-cta {
        justify-content: center;
        order: 7;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .chatbot-trigger {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
        bottom: 90px;
        right: 20px;
        width: calc(100vw - 40px);
        height: 480px;
    }

    .scroll-top {
        bottom: 155px;
        right: 20px;
    }

    .testimonial-card {
        padding: var(--spacing-lg);
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .testimonial-nav.prev {
        left: 0;
    }

    .testimonial-nav.next {
        right: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    /* ===========================
       BOOKING MODAL - MOBILE OPTIMIZATION
       =========================== */
    
    .booking-modal {
        padding: 0 !important;
        align-items: flex-start;
    }

    .booking-content {
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: 100vh;
        border-radius: 0;
        margin: 0 !important;
    }

    .booking-header {
        padding: 0.75rem 1rem;
        border-radius: 0;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .booking-header h2 {
        font-size: 1.2rem;
    }

    .booking-close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .booking-body {
        padding: 0.75rem;
    }

    .booking-intro {
        padding: 0.6rem;
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }

    .booking-intro p {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .booking-steps {
        margin-bottom: 0.75rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .step {
        min-width: 65px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.65rem 0.85rem;
        font-size: 0.95rem;
    }

    .service-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .service-label {
        padding: 0.8rem 0.6rem;
    }

    .service-label i {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }

    .service-label span {
        font-size: 0.85rem;
    }

    .time-slots {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .time-slot {
        padding: 0.65rem 0.4rem;
        font-size: 0.88rem;
    }

    .booking-summary {
        padding: 0.7rem;
        margin-bottom: 0.75rem;
    }

    .booking-summary h3 {
        font-size: 1.05rem;
        margin-bottom: 0.6rem;
    }

    .summary-item {
        padding: 0.4rem 0;
        font-size: 0.9rem;
    }

    .summary-label {
        font-size: 0.85rem;
    }

    .summary-value {
        font-size: 0.9rem;
    }

    .privacy-consent-section {
        padding: 0.7rem;
        margin-top: 0.75rem;
    }

    .privacy-notice {
        padding: 0.6rem;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .privacy-text {
        padding: 0.6rem;
        font-size: 0.83rem;
        line-height: 1.4;
        max-height: 180px;
    }

    .privacy-text p,
    .privacy-text li {
        font-size: 0.81rem;
        margin-bottom: 0.3rem;
    }

    .checkbox-label {
        gap: 0.5rem;
        font-size: 0.87rem;
    }

    .checkbox-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-top: 1px;
        flex-shrink: 0;
    }

    .checkbox-label span {
        line-height: 1.4;
    }

    .booking-actions {
        margin-top: 0.75rem;
        gap: 0.6rem;
        flex-wrap: wrap;
    }

    .booking-actions .btn {
        padding: 0.8rem 1.3rem;
        font-size: 1rem;
        min-height: 44px;
    }

    .booking-success {
        padding: 1rem;
    }

    .success-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 0.75rem;
    }

    .success-icon i {
        font-size: 2.2rem;
    }

    .booking-success h3 {
        font-size: 1.35rem;
        margin-bottom: 0.6rem;
    }

    .booking-success p {
        font-size: 0.9rem;
        margin: 0.4rem 0;
    }

    .booking-success .btn {
        margin-top: 1rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }

    body {
        overflow-x: hidden !important;
    }

    .container {
        padding: 0 1rem;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-content,
    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem;
        width: 100%;
    }

    /* ===== CARD SU MOBILE: SOLO TITOLO COME BOTTONE ===== */
    
    /* 1. Reset totale per evitare scroll orizzontale */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* 2. Trasformazione Card in Pulsanti */
    .service-card,
    .about-card {
        width: 100% !important;
        max-width: calc(100vw - 40px) !important;
        margin: 10px auto !important;
        min-height: 55px !important;
        padding: 0 15px !important;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
        box-shadow: 0 4px 15px rgba(177, 156, 217, 0.3) !important;
        transition: all 0.3s ease !important;
    }

    .service-card:active,
    .about-card:active {
        opacity: 0.9;
        transform: scale(0.98);
    }

    /* 3. Nascondere elementi non necessari */
    .service-card p,
    .service-card ul,
    .service-features,
    .about-card p,
    .card-icon,
    .service-icon {
        display: none !important;
    }

    /* 4. Fix Titoli: Testo orizzontale e leggibile */
    .service-card h3,
    .about-card h3 {
        color: white !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        text-align: center !important;
        white-space: normal !important;
        word-break: keep-all !important;
        margin: 0 !important;
        padding: 12px 5px !important;
        width: 100% !important;
        line-height: 1.4 !important;
    }

    /* Experience box su mobile */
    .experience-box {
        width: 100% !important;
        max-width: calc(100vw - 40px) !important;
        margin: 10px auto !important;
        padding: 1rem !important;
        box-sizing: border-box !important;
    }

    .experience-box h4 {
        font-size: 0.95rem !important;
        flex-direction: row !important;
        gap: 0.3rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }

    .experience-box h4 i {
        font-size: 0.9rem !important;
        flex-shrink: 0 !important;
    }

    .experience-box .role-title {
        font-size: 0.85rem !important;
        margin-bottom: 0.8rem !important;
    }

    .experience-box .compact-list li {
        font-size: 0.85rem !important;
        padding: 0.4rem 0 !important;
        padding-left: 1.2rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .experience-box .compact-list li:before {
        font-size: 0.8rem !important;
    }

    .testimonial-card,
    .contact-card {
        width: 100%;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
        padding: 1.5rem 1rem;
    }

    .hero-badges {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .hero-location {
        justify-content: center;
        text-align: center;
        padding: 0.8rem 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .location-link {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: calc(100vw - 4rem);
        text-align: center;
    }

    .custom-alert {
        padding: var(--spacing-lg);
        margin: var(--spacing-md);
    }

    .custom-alert-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .custom-alert h3 {
        font-size: 1.3rem;
    }

    .custom-alert p {
        font-size: 1rem;
    }
}

/* ===========================
   BOOKING MODAL
   =========================== */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--spacing-md);
}

.booking-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.booking-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.booking-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-header h2 {
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.booking-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.booking-body {
    padding: var(--spacing-lg);
}

.booking-intro {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--primary-lighter);
    border-radius: var(--radius-md);
}

.booking-intro p {
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-alt);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-xs);
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step.completed .step-circle::before {
    content: '✓';
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.booking-form-section {
    display: none;
}

.booking-form-section.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-sm);
}

.service-option {
    position: relative;
}

.service-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.service-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.service-label i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-label span {
    font-size: 0.9rem;
    font-weight: 500;
}

.service-option input:checked + .service-label {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
}

.date-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xs);
}

.time-slot {
    padding: 0.7rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.time-slot:hover {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
}

.time-slot.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
    background: #f0f0f0 !important;
    border-color: #ddd !important;
    color: #999 !important;
    text-decoration: line-through;
}

.time-slot.disabled:hover {
    border-color: #ddd !important;
    background: #f0f0f0 !important;
    transform: none;
}

.booking-summary {
    background: var(--background-alt);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.booking-summary h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-light);
    font-weight: 500;
}

.summary-value {
    color: var(--text-dark);
    font-weight: 600;
}

.privacy-notice {
    background: #E8F4F8;
    border-left: 4px solid var(--primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    font-weight: 600;
}

.privacy-notice i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.privacy-consent-section {
    background: #f8f9fa;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
}

.privacy-text {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
}

.privacy-text p {
    margin-bottom: var(--spacing-sm);
}

.privacy-text strong {
    color: var(--primary);
    font-weight: 600;
}

.privacy-text ul {
    margin: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-lg);
    padding-left: var(--spacing-md);
}

.privacy-text li {
    margin-bottom: 0.5rem;
}

.privacy-text a {
    color: var(--primary);
    text-decoration: underline;
}

.privacy-checkbox {
    margin-top: var(--spacing-md);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
    line-height: 1.5;
}

.checkbox-label:hover span {
    color: var(--primary);
}

.booking-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.booking-actions .btn {
    flex: 1;
}

.btn-back {
    background: var(--background-alt);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-back:hover {
    background: var(--border-color);
}

.booking-success {
    text-align: center;
    padding: var(--spacing-lg);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    animation: scaleIn 0.5s ease;
}

.success-icon i {
    font-size: 3rem;
    color: white;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.booking-success h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 1.6rem;
}

.booking-success p {
    color: var(--text-light);
    margin: 0.5rem 0;
}

/* ===========================
   CUSTOM ALERT MODAL
   =========================== */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--spacing-md);
}

.custom-alert-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.custom-alert {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideUpBounce 0.4s ease;
}

@keyframes slideUpBounce {
    0% {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }
    70% {
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.custom-alert-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2.5rem;
    animation: iconPulse 0.5s ease;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.custom-alert-icon.warning {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    color: var(--warning);
}

.custom-alert-icon.error {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    color: #e74c3c;
}

.custom-alert-icon.success {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: var(--success);
}

.custom-alert-icon.info {
    background: linear-gradient(135deg, var(--primary-lighter), #E1BEE7);
    color: var(--primary-color);
}

.custom-alert h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.custom-alert p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.custom-alert .btn {
    min-width: 150px;
    padding: 0.9rem 2rem;
}

/* ===========================
   ACCESSIBILITY
   =========================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-dark: #000000;
        --primary-color: #8B5FBF;
    }
}

/* ===========================
   MOBILE DETAIL MODAL
   =========================== */
.card-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1rem;
}

.card-detail-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.card-detail-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    position: relative;
}

/* ===========================
   COOKIE BANNER
   =========================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(25, 30, 60, 0.98), rgba(40, 50, 90, 0.98));
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--primary-color);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-actions .btn {
    white-space: nowrap;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
}

.cookie-actions .btn-link {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    text-decoration: underline;
    padding: 0.5rem 1rem;
}

.cookie-actions .btn-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Cookie Modal */

.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10001;
    padding: 2rem;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.cookie-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.cookie-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.cookie-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.cookie-section:last-of-type {
    border-bottom: none;
}

.cookie-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-section h3 i {
    color: var(--primary-color);
}

.cookie-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.cookie-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.cookie-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.cookie-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.cookie-section a:hover {
    text-decoration: underline;
}

.cookie-section em {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cookie-modal-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-200);
    margin-top: 1.5rem;
}

.cookie-modal-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Responsive */

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-icon {
        font-size: 2.5rem;
    }

    .cookie-text h3 {
        font-size: 1.1rem;
    }

    .cookie-text p {
        font-size: 0.9rem;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-actions .btn {
        width: 100%;
    }

    .cookie-modal {
        padding: 1rem;
    }

    .cookie-modal-header {
        padding: 1rem;
    }

    .cookie-modal-header h2 {
        font-size: 1.2rem;
    }

    .cookie-modal-body {
        padding: 1rem;
    }

    .cookie-modal-actions {
        flex-direction: column;
    }
}

.card-detail-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.card-detail-header h3 {
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
}

.card-detail-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-detail-close:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

.card-detail-body {
    padding: 1.5rem;
}

.card-detail-body p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.card-detail-body ul {
    list-style: none;
    padding: 0;
}

.card-detail-body ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.6rem 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.card-detail-body ul li i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}
