/* ==================================
   VDV STREET BARBER - LUXURY & STREET DESIGN
   ================================== */
:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --highlight-color: #ffffff;
    --accent-color: #333333;
    --border-color: #222222;
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Syne', sans-serif;
    --transition-speed: 0.3s;
}

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

/* GLOBAL SCROLLBARS (Premium Aesthetic) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* GHOST LOGO BACKGROUND (Original unaltered CSS layout) */
.ghost-logo-bg {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background-image: url('assets/vdv_street_barber_logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.15; /* Perfectly balanced for both dark and white backgrounds */
    mix-blend-mode: difference; /* Magically adapts to both dark and light sections! */
    z-index: 10; /* Ensures it sits over the section backgrounds */
    pointer-events: none;
}

/* STRICT MOBILE SCROLLING FIX - Content scrolls inside a container, viewport remains locked */
.main-scroll-container {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for modern browsers */
    width: 100%;
    overflow-y: scroll; /* Handles all the scrolling natively */
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-bottom: env(safe-area-inset-bottom);
}


/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--highlight-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight {
    color: var(--bg-color);
    background-color: var(--highlight-color);
    padding: 0 5px;
    display: inline-block;
    transform: skewX(-10deg);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
    position: relative;
    z-index: 20;
}

.section-padding {
    padding: 6rem 5%;
}

/* BUTTONS */
button, a.btn-primary, a.btn-secondary, a.btn-hero {
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    text-transform: uppercase;
}

.btn-primary, .btn-hero {
    background-color: var(--highlight-color);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: 2px;
}

.btn-primary:hover, .btn-hero:hover {
    background-color: #cccccc;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--highlight-color);
    border: 1px solid var(--highlight-color);
    padding: 10px 20px;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo-container .logo {
    max-height: 55px;
    width: auto;
    /* Solid bright sticker logo (no white borders) and it hides the background properly */
    filter: invert(1) brightness(1.2);
    mix-blend-mode: normal; /* "Sticker effect" - remains solid and doesn't blend with background sections */
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--highlight-color);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(45deg, #111, #000);
    padding: 0 5%;
}

/* A subtle premium noise/grain pattern over the hero */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, transparent 0%, #050505 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #999;
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* LIGHT BACKGROUND THEME (Servizi & Prenotazioni) */
.bg-light {
    background-color: #ffffff;
    color: #1a1a1a;
}
.bg-light .section-title {
    color: #111111;
}
.bg-light .highlight {
    background-color: #111111;
    color: #ffffff;
}
.bg-light .service-item {
    background-color: #f0f0f0; /* Darker grey box for contrast */
    border-color: #dddddd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Slight shadow to pop off bg */
}
.bg-light .service-item:hover {
    background-color: #e8e8e8;
    border-color: #bfbfbf;
}
.bg-light .service-name {
    color: #1a1a1a; /* Dark almost black for titles */
    font-weight: 800;
}
.bg-light .service-desc {
    color: #3b3b3b; /* "Fumé" dark grey for readability */
    font-weight: 500;
}
.bg-light .service-price {
    color: #000000;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1); /* Make price pop more */
}
.bg-light .services-note {
    color: #4a4a4a;
    font-weight: 600;
}
.bg-light p {
    color: #111111;
    font-weight: 600;
}
.bg-light .btn-primary, .bg-light .btn-hero {
    background-color: #111111;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
}
.bg-light .btn-primary:hover, .bg-light .btn-hero:hover {
    background-color: #333333;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.bg-light .btn-secondary {
    background-color: #111111;
    color: #ffffff;
    border: 1px solid #111111;
    padding: 10px 20px;
}
.bg-light .btn-secondary:hover {
    background-color: #333333;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* SERVICES SECTION */
.services-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 20;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    background: rgba(20, 20, 20, 0.5);
    transition: all var(--transition-speed);
}

.service-item:hover {
    background: rgba(40, 40, 40, 0.8);
    border-color: #555;
    transform: scale(1.02);
}

.service-name {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.service-desc {
    font-size: 0.9rem;
    color: #888;
}

.service-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--highlight-color);
}

.services-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #666;
    position: relative;
    z-index: 20;
}

/* TEAM SECTION */
.team {
    background-color: #0a0a0a;
}
.team-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

.team-member {
    text-align: center;
    width: 250px;
    padding: 2rem;
    transition: all var(--transition-speed);
}

.team-member:hover {
    background-color: rgba(255,255,255,0.03);
    transform: translateY(-10px);
}

.img-clipper {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    border: 2px solid #444;
    overflow: hidden;
    background: #000;
    transition: all var(--transition-speed);
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    transform: scale(1.3);
    display: block;
    transition: all var(--transition-speed);
}

.team-member:hover .img-clipper {
    border-color: var(--highlight-color);
}

.team-member:hover .member-img {
    transform: scale(1.4);
}

.member-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.member-role {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* BOOKING SECTION */
.booking {
    text-align: center;
}

.booking-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 20;
}

/* FOOTER */
.footer {
    background-color: #000;
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 3rem;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 20;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #888;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--highlight-color);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #888;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 0.8rem;
    border-top: 1px solid #111;
    padding-top: 2rem;
    position: relative;
    z-index: 20;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.mw-signature {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #444;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mw-signature span {
    font-weight: 800;
    color: #666;
    transition: color 0.3s ease;
}

.mw-signature:hover {
    color: #888;
}

.mw-signature:hover span {
    color: var(--highlight-color);
}


/* CHATBOT WIDGET */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #111111;
    color: #ffffff;
    font-size: 1.5rem;
    z-index: 9999;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    transition: transform 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    background-color: #ccc;
}

.chatbot-widget {
    position: fixed;
    bottom: 110px;
    right: 25px;
    width: 360px; /* Slightly reduced width to fit comfortably on all mobile/desktop sizes while still being wide enough */
    height: 520px;
    max-height: 80vh; /* Prevents it from going offscreen on smaller heights */
    background-color: #0d0d0d;
    border: 1px solid #333;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 10000; /* Increased z-index to ensure it sits perfectly on top of everything including strict scroll container */
    box-shadow: 0 15px 40px rgba(0,0,0,0.9);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden; /* Prevent ANY child elements from breaking border radius */
}

.chatbot-widget.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.chatbot-header {
    padding: 15px 20px;
    background-color: #050505;
    color: var(--highlight-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    border-bottom: 1px solid #222;
    width: 100%;
    box-sizing: border-box; /* Ensure padding doesnt expand width beyond 100% */
    flex-shrink: 0; /* Prevents the header from collapsing if content is too large */
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.chatbot-header .bot-name {
    color: #000;
    background-color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

.chatbot-header button {
    background: none;
    border: none;
    color: var(--highlight-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px; /* Adds clickable area */
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-messages {
    flex: 1;
    padding: 20px 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(to bottom, #0d0d0d, #141414);
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.bot-message {
    background-color: #1a1a1a;
    color: #f0f0f0;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid #2a2a2a;
}

.user-message {
    background-color: #ffffff;
    color: #000000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

/* Custom Scrollbar for Chatbot Messages */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}
.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Custom Scrollbar for Chatbot Dynamic Elements (like service lists) */
#chatbot-options div::-webkit-scrollbar {
    width: 6px;
}
#chatbot-options div::-webkit-scrollbar-track {
    background: transparent;
}
#chatbot-options div::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
#chatbot-options div::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.chatbot-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px 20px 20px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom)); /* Add Safe Area padding */
    border-top: 1px solid #222;
    background-color: #0a0a0a;
    border-radius: 0 0 12px 12px;
}

.chat-btn {
    width: 100%;
    padding: 14px 15px;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    cursor: pointer;
    background-color: #ffffff;
    color: #000000;
    border: none;
    font-weight: 700;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.15);
}

.chat-btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #555;
}

.chat-btn-outline:hover {
    background-color: #1a1a1a;
    border-color: #fff;
}

.chat-input-text {
    width: 100%;
    padding: 14px;
    background-color: #161616;
    border: 1px solid #333;
    color: #fff;
    outline: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.chat-input-text:focus {
    border-color: #fff;
}


/* ANIMATIONS */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* MODAL STYLES (Global) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: none; /* Block and Center when active */
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.close-modal {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--highlight-color);
}

.booking-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 450px;
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    z-index: 3001;
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.booking-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.booking-modal-content {
    padding: 30px;
    position: relative;
    text-align: center;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}
.close-modal-btn:hover {
    color: #fff;
}

.modal-checkmark {
    font-size: 3.5rem;
    color: #2e8b57;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 1.4rem;
    color: var(--highlight-color);
    margin-bottom: 5px;
}
.modal-subtitle {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 25px;
}

.modal-summary-box {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    align-items: flex-start;
}
.summary-row:last-child {
    margin-bottom: 0;
}

.summary-label {
    color: #888;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-right: 15px;
}

.summary-value {
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: right;
}

.summary-divider {
    height: 1px;
    background: #333;
    margin: 15px 0;
}

.total-row .summary-label {
    font-size: 1.1rem;
    color: #fff;
}
.total-row .summary-value {
    font-size: 1.2rem;
    color: var(--highlight-color);
    font-weight: bold;
}

.cart-input {
    width: 100%;
    padding: 10px;
    background-color: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: border-color var(--transition-speed);
}
.cart-input:focus {
    outline: none;
    border-color: var(--highlight-color);
}
.cart-input option {
    background-color: #222;
}

/* ==================================
   CHECKOUT MODAL & ELEMENTS
   ================================== */
.checkout-content {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 550px;
    border-radius: 12px;
    padding: 30px;
    padding-bottom: calc(30px + env(safe-area-inset-bottom)); /* Add Safe Area padding */
    position: relative;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--highlight-color);
}

.checkout-step h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--highlight-color);
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.staff-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.staff-card:hover, .staff-card.selected {
    border-color: var(--highlight-color);
    background: rgba(40, 40, 40, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}
.staff-card h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: none;
    border: none;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

/* Time Slots */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
}
.time-slot {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 10px 5px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #ccc;
}
.time-slot:hover {
    background: var(--highlight-color);
    color: var(--bg-color);
    border-color: var(--highlight-color);
}
.time-slot.disabled {
    opacity: 0.3;
    pointer-events: none;
    text-decoration: line-through;
    background: #0a0a0a;
}
.time-slot.selected {
    background: var(--highlight-color);
    color: var(--bg-color);
    border-color: var(--highlight-color);
    transform: scale(1.05);
}

/* Form inputs styling */
.form-group {
    margin-bottom: 20px; /* Increased spacing */
    text-align: left;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #fff; /* High contrast text */
    margin-bottom: 8px; /* More space */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.checkout-step .cart-input {
    background-color: rgba(255, 255, 255, 0.05); /* Lighter glass input */
    border: 1px solid #444;
    padding: 15px; /* Larger hit area */
    font-size: 1rem;
    border-radius: 6px;
    color: #fff;
}
.checkout-step .cart-input:focus {
    border-color: var(--highlight-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.booking-summary-box {
    background: rgba(40, 40, 40, 0.5); /* Lighter contrast box */
    border: 1px solid #555;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid var(--highlight-color);
}
.booking-summary-box p {
    color: #eee;
    font-size: 1.05rem;
    line-height: 1.5;
}
#summary-staff-time {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--highlight-color);
    margin-bottom: 5px;
}
#summary-services {
    color: #bbb;
    font-size: 0.95rem;
}
#summary-total {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-top: 10px;
}


/* CART BUTTON & SIDEBAR */
.service-action {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-add-service {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.btn-add-service:hover, .btn-add-service.selected {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.cart-badge {
    background-color: #ef4444; /* Bright Red */
    color: #ffffff;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 0.9rem;
    font-weight: 800;
    margin-left: 8px;
}

.bg-light .btn-add-service {
    border-color: #ccc;
    color: #1a1a1a;
}

.bg-light .btn-add-service:hover, .bg-light .btn-add-service.selected {
    background-color: #111;
    color: #fff;
    border-color: #111;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    max-width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic height */
    background-color: #111;
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}
.cart-sidebar.open {
    right: 0;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: #050505;
}
.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}
.cart-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.empty-cart-msg {
    color: #888;
    text-align: center;
    margin-top: 50px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #222;
}
.cart-item-info h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #e0e0e0;
}
.cart-item-price {
    font-weight: bold;
    color: var(--highlight-color);
}
.btn-remove-item {
    background: none;
    border: none;
    color: #ff4c4c;
    cursor: pointer;
    margin-left: 10px;
}
.cart-footer {
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom)); /* Safe Area Inset for iOS/Android */
    border-top: 1px solid var(--border-color);
    background-color: #050505;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
}
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 1500;
    display: none;
}
.cart-overlay.active {
    display: block;
}
#cart-toggle {
    cursor: pointer;
}

#btn-open-cancel-flow {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000;
    font-weight: 800;
}

#btn-open-cancel-flow:hover {
    background-color: #f0f0f0 !important;
    transform: translateY(-2px);
}

/* MEDIA GALLERY SECTION */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: minmax(250px, auto);
    gap: 15px;
    padding: 0 5%;
    width: 100%;
    align-items: center; /* Center items if they don't fill the row height */
}

/* Base style for media items to maintain aspect ratio and fit well */
.media-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #f0f0f0; /* Placeholder color while loading */
    display: block; /* Remove bottom space on inline elements like images */
    position: relative; /* Required for z-index */
    z-index: 15; /* Higher than ghost logo (10) but lower than buttons (20) */
}

.media-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 10; /* Bring on top of others on hover */
    position: relative;
}

/* Allow varying heights for a more dynamic masonry-like feel if desired */
.media-item.portrait {
    grid-row: span 2; /* Make portrait images taller */
}

/* Tab button state overrides - Solid Nero/Bianco/Nero with high z-index to cover logo */
.tab-btn {
    transition: all 0.3s ease;
    opacity: 1 !important;
    min-width: 200px;
    padding: 12px 25px;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative; /* Required for z-index */
    z-index: 20; /* Higher than the ghost logo (z-index 10) */
}

.tab-btn[data-category="vdv-gallery"] {
    background-color: #050505 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

.tab-btn[data-category="vdv-products"] {
    background-color: #ffffff !important;
    color: #050505 !important;
    border: 1px solid #000000 !important;
}

.tab-btn[data-category="vdv-events"] {
    background-color: #050505 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

.gallery-zoom-overlay {
    transition: opacity 0.2s ease;
}

.gallery-zoom-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    line-height: 1;
    cursor: pointer;
    z-index: 100000;
    transition: transform 0.2s ease;
    user-select: none;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
}

.gallery-zoom-close:hover {
    transform: scale(1.2);
    background: rgba(255,255,255,0.1);
}

.empty-gallery-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #888;
    font-size: 1.1rem;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

/* RESPONSIVE */

/* TABLET AND IPAD OPTIMIZATIONS (1024px and below) */
@media (max-width: 1024px) {
    .section-padding {
        padding: 5rem 5%;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .team-container {
        gap: 2rem;
    }

    .team-member {
        width: 220px;
    }

    .services-container {
        max-width: 90%;
    }

    /* TABLET GALLERY: 4 columns */
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .tab-btn {
        min-width: 150px;
        padding: 10px 18px;
    }
}

/* MOBILE (768px and below) */
@media (max-width: 768px) {
    .header {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.8rem 5%;
        justify-content: space-between;
    }
    
    .logo-container .logo {
        max-height: 48px; /* Slightly less than the original 55px, larger than the 40px compact version */
    }
    
    .nav-links {
        gap: 0.8rem;
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .nav-links a {
        font-size: 0.75rem;
    }
    
    #cart-toggle {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* MOBILE GALLERY: 3 columns (Instagram Style) */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
        padding: 0 4px !important;
    }

    .gallery-tabs {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: nowrap !important; /* Force single row */
        gap: 6px !important;
        margin-bottom: 1.5rem !important;
        padding: 0 10px !important;
    }

    .tab-btn {
        min-width: 0 !important;
        flex: 1 !important;
        max-width: 130px !important;
        padding: 8px 1px !important;
        font-size: 0.44rem !important; /* Ridotto per evitare overflow su schermi stretti */
        margin: 0 !important;
        white-space: nowrap !important;
        letter-spacing: -0.5px !important; /* Più stretto per far stare "VDV PRODUCTS" */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        height: 36px !important;
    }
    
    .hero {
        height: auto;
        min-height: 80vh; /* Takes up slightly less than full screen, looks much more controlled */
        padding-top: 100px; /* Account for the new compact header */
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.3rem; /* Perfectly scaled for mobile columns */
        margin-top: 20px;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem; /* Cleaner, sharper subtitle */
        margin-bottom: 2rem;
    }

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

    .section-padding {
        padding: 4rem 5%;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    .service-name {
        font-size: 1.15rem;
    }
    
    .service-desc {
        font-size: 0.85rem;
    }
    
    .service-action {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    
    .service-price {
        text-align: left !important;
    }
    
    .team-container {
        gap: 2rem;
    }

    .team-member {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .chatbot-widget {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .btn-hero, .btn-primary {
        width: 100%;
        max-width: 300px;
    }
    .hero-btns-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .btn-hero {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
    .booking-modal-content {
        padding: 20px;
    }
    .modal-checkmark {
        font-size: 2.5rem;
    }
    .modal-title {
        font-size: 1.2rem;
    }
}

/* GEOLOCATION BUTTONS */
.hero-btns-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-location {
    gap: 10px; /* A cleaner spacing for a solid button */
}

.btn-footer-location {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    color: var(--highlight-color);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.btn-footer-location:hover {
    border-bottom-color: var(--highlight-color);
    opacity: 0.8;
}

/* GLASSMORPHISM POPUP ENHANCEMENTS */
.glassmorphism-popup {
    background: rgba(20, 20, 20, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
    animation: popupScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupScale {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
