/* ═══════════════════════════════════════════════════════
   STUDIO ODONTOIATRICO DOTT.SSA BARBARA LOCOCO
   Original Medical Palette (Deep Navy, Medical Cyan, Gold)
   Clean, Luminous, Premium Light Aesthetic
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─── */
:root {
    /* Colors */
    --primary:        #1a5276;
    --primary-dark:   #0e3a55;
    --primary-light:  #2980b9;
    --secondary:      #5dade2;
    --secondary-light:#85c1e9;
    --accent:         #d4a745;
    --accent-light:   #e6c674;
    --success:        #27ae60;
    --error:          #e74c3c;
    --white:          #ffffff;
    --bg-light:       #f8f9fc;
    --bg-card:        #ffffff;
    --gray-50:        #fafbfc;
    --gray-100:       #f0f2f5;
    --gray-200:       #e4e7ec;
    --gray-300:       #cdd3dc;
    --gray-400:       #9aa3b0;
    --gray-500:       #6b7280;
    --gray-600:       #4b5563;
    --gray-700:       #374151;
    --gray-800:       #1f2937;
    --gray-900:       #111827;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max:   1200px;
    --gap:             24px;

    /* Transitions */
    --ease-out:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Borders */
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg:  0 10px 30px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.05);
    --shadow-xl:  0 20px 50px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 30px rgba(93, 173, 226, 0.3);

    /* Navbar */
    --navbar-height: 80px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--ease-out);
}

ul { list-style: none; }

/* ─── Container ─── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--gray-900);
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; }

h1 em, h2 em {
    font-style: italic;
    color: var(--secondary);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.35s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before { opacity: 1; }

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

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

.btn-primary:disabled {
    background: var(--gray-300);
    border-color: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-confirm {
    background: var(--success);
    border-color: var(--success);
}

.btn-confirm:hover {
    background: #219a52;
    border-color: #219a52;
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-height);
    transition: all 0.4s var(--ease-out);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    height: 70px;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--white);
    transition: color 0.4s;
    z-index: 1001;
}

.navbar.scrolled .nav-logo { color: var(--primary); }

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--secondary);
    transition: transform 0.3s var(--ease-spring);
}

.nav-logo:hover .logo-icon { transform: rotate(-10deg) scale(1.1); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.navbar.scrolled .nav-link { color: var(--gray-700); }

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary);
    background: var(--gray-100);
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    margin-left: 8px;
    transition: all 0.3s var(--ease-out) !important;
}

.nav-cta:hover {
    background: var(--accent-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 167, 69, 0.4);
}

.navbar.scrolled .nav-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.navbar.scrolled .nav-cta:hover {
    background: var(--primary-dark) !important;
    box-shadow: 0 4px 15px rgba(26, 82, 118, 0.3);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.navbar.scrolled .nav-toggle span { background: var(--gray-900); }

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-fallback-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0e3a55 0%, #1a5276 40%, #2980b9 80%, #5dade2 100%);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.95;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10, 42, 67, 0.35) 0%,
        rgba(10, 42, 67, 0.55) 60%,
        rgba(10, 42, 67, 0.75) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 var(--gap);
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-pill);
    color: var(--secondary-light);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-layer-3 p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.hero-layer-4 {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: floatSlow 2s ease-in-out infinite;
}

/* Sound Toggle Button */
.sound-toggle-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(14, 58, 85, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.sound-toggle-btn:hover {
    background: rgba(26, 82, 118, 0.95);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(93, 173, 226, 0.4);
}

.sound-toggle-btn.sound-active {
    background: rgba(39, 174, 96, 0.9);
    border-color: #2ecc71;
}

@media (max-width: 768px) {
    .sound-toggle-btn {
        bottom: 20px;
        right: 20px;
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

@keyframes floatSlow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════
   SECTIONS COMMON
   ═══════════════════════════════════════════════════════ */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 12px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-desc {
    color: var(--gray-500);
    font-size: 1.05rem;
}

/* ═══════════════════════════════════════════════════════
   SERVIZI
   ═══════════════════════════════════════════════════════ */
.servizi {
    background: var(--bg-light);
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.servizio-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.35s var(--ease-out);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.servizio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.servizio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-light);
}

.servizio-card:hover::before { opacity: 1; }

.servizio-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--primary);
    transition: transform 0.3s var(--ease-spring);
}

.servizio-card:hover .servizio-icon {
    transform: scale(1.1) rotate(-5deg);
    color: var(--secondary);
}

.servizio-icon svg {
    width: 100%;
    height: 100%;
}

.servizio-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.servizio-card p {
    color: var(--gray-500);
    font-size: 0.92rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.servizio-durata {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--gray-100);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   CHI SIAMO
   ═══════════════════════════════════════════════════════ */
.chi-siamo {
    background: var(--white);
    overflow: hidden;
}

.chi-siamo-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.chi-siamo-image {
    position: relative;
}

.parallax-image-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-xl);
}

.parallax-image {
    position: absolute;
    inset: -20%;
    background: linear-gradient(135deg, #1a5276, #2980b9);
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.image-overlay-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: var(--white);
    z-index: 1;
    background: rgba(14, 58, 85, 0.85);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.image-overlay-text span {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--secondary-light);
}

.image-overlay-text small {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.chi-siamo-content h2 {
    margin-bottom: 24px;
}

.chi-siamo-content p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════
   GALLERIA
   ═══════════════════════════════════════════════════════ */
.galleria {
    background: var(--bg-light);
}

.galleria-layers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

.gallery-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    transition: all 0.35s var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.gallery-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(
        135deg,
        hsl(var(--hue), 60%, 85%),
        hsl(var(--hue), 40%, 70%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.gallery-card h4 {
    padding: 16px 16px 4px;
    font-size: 1.05rem;
}

.gallery-card p {
    padding: 0 16px 16px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ═══════════════════════════════════════════════════════
   PRENOTAZIONE
   ═══════════════════════════════════════════════════════ */
.prenotazione {
    background: var(--white);
}

/* Progress bar */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto 48px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.progress-step span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-400);
    transition: color 0.3s;
}

.progress-step.active span,
.progress-step.completed span {
    color: var(--primary);
    font-weight: 600;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-500);
    transition: all 0.3s var(--ease-spring);
}

.progress-step.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 82, 118, 0.15);
}

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

.step-circle svg { display: none; }
.progress-step.completed .step-circle svg { display: block; }
.progress-step.completed .step-circle .step-num { display: none; }

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    margin: 0 12px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.progress-step.completed + .progress-line .progress-fill {
    transform: scaleX(1);
}

/* Booking container */
.booking-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    min-height: 480px;
    position: relative;
}

.booking-step {
    display: none;
    animation: fadeIn 0.4s var(--ease-out);
}

.booking-step.active {
    display: block;
}

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

.booking-step h3 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.4rem;
}

/* Step 1: Service selection */
.service-selection {
    display: grid;
    gap: 12px;
    margin-bottom: 32px;
}

.service-option {
    cursor: pointer;
}

.service-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-light);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all 0.25s var(--ease-out);
}

.service-option-content:hover {
    border-color: var(--secondary);
    background: #f0f7fc;
    transform: translateX(4px);
}

.service-option input:checked + .service-option-content {
    border-color: var(--primary);
    background: #edf5fb;
    box-shadow: 0 0 0 1px var(--primary);
}

.service-option-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.service-option-info {
    flex: 1;
}

.service-option-info strong {
    display: block;
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.service-option-info span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.service-option-meta {
    text-align: right;
    flex-shrink: 0;
}

.service-duration {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(26, 82, 118, 0.08);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

/* Booking navigation */
.booking-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    margin-top: 32px;
}

/* Step 2: Date & Time */
.datetime-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 16px;
}

/* Calendar */
.calendar-container {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
}

.calendar-header h4 {
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.calendar-nav {
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.calendar-nav:hover {
    background: rgba(255,255,255,0.3);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.calendar-day-name {
    padding: 10px 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.calendar-day {
    padding: 10px 4px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border: 1px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background: var(--secondary-light);
    color: var(--white);
    border-radius: var(--radius-sm);
}

.calendar-day.today {
    font-weight: 700;
    color: var(--primary);
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.calendar-day.selected {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.calendar-day.disabled {
    color: var(--gray-300);
    cursor: not-allowed;
}

.calendar-day.empty {
    cursor: default;
}

/* Time slots */
.timeslots-container h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--gray-800);
    font-family: var(--font-body);
}

.timeslots-hint {
    color: var(--gray-400);
    font-size: 0.9rem;
    text-align: center;
    padding: 40px 0;
}

.timeslots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.timeslot {
    padding: 10px 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
    color: var(--gray-700);
}

.timeslot:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #edf5fb;
}

.timeslot.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.timeslot.unavailable {
    background: var(--gray-100);
    color: var(--gray-300);
    cursor: not-allowed;
    text-decoration: line-through;
    border-color: var(--gray-200);
}

/* Step 3: Contact Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--gray-800);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.1);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: var(--error);
}

.form-error {
    font-size: 0.78rem;
    color: var(--error);
    margin-top: 4px;
    display: none;
}

.form-group.has-error .form-error {
    display: block;
}

.form-group textarea {
    resize: vertical;
}

/* Booking summary */
.booking-summary {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 8px;
    border: 1px solid var(--gray-200);
}

.booking-summary h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--primary);
    font-family: var(--font-body);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
}

.summary-item {
    font-size: 0.88rem;
}

.summary-item .label {
    color: var(--gray-500);
    font-size: 0.8rem;
    display: block;
}

.summary-item .value {
    font-weight: 600;
    color: var(--gray-800);
}

/* Step 4: Success */
.booking-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    margin-bottom: 20px;
}

.checkmark-circle {
    stroke-dasharray: 230;
    stroke-dashoffset: 230;
    animation: strokeCircle 0.6s ease-in-out forwards;
}

.checkmark-check {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: strokeCheck 0.4s 0.5s ease-in-out forwards;
}

@keyframes strokeCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
    to { stroke-dashoffset: 0; }
}

.booking-success h3 {
    color: var(--success);
    margin-bottom: 8px;
}

.booking-success p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

.success-details {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 20px;
    max-width: 400px;
    margin: 0 auto 28px;
    text-align: left;
    border: 1px solid var(--gray-200);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 40px;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    width: 100%;
    height: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
    color: var(--white) !important;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-list li {
    margin-bottom: 12px;
    font-size: 0.92rem;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer-list a:hover {
    color: var(--secondary-light);
}

.footer-list svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    color: var(--secondary);
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-hours li span { color: rgba(255, 255, 255, 0.6); }
.footer-hours li strong { color: var(--white); }

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════
   PREMIUM EFFECTS (Lenis, Cursor, SplitText, Magnetic)
   ═══════════════════════════════════════════════════════ */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

/* Custom Cursor */
@media (min-width: 769px) {
    body.custom-cursor-active,
    body.custom-cursor-active a,
    body.custom-cursor-active button,
    body.custom-cursor-active input,
    body.custom-cursor-active textarea,
    body.custom-cursor-active label {
        cursor: none !important;
    }
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(26, 82, 118, 0.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s var(--ease-out),
                height 0.3s var(--ease-out),
                background-color 0.3s,
                border-color 0.3s,
                opacity 0.3s;
    transform: translate(-100px, -100px);
    opacity: 0;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: opacity 0.3s, transform 0.05s linear;
    transform: translate(-100px, -100px);
    opacity: 0;
}

body.custom-cursor-active .custom-cursor,
body.custom-cursor-active .cursor-dot {
    opacity: 1;
}

.custom-cursor.cursor-hover {
    width: 60px;
    height: 60px;
    background-color: rgba(93, 173, 226, 0.18);
    border-color: var(--secondary);
    backdrop-filter: blur(2px);
}

.custom-cursor.cursor-text {
    width: 70px;
    height: 70px;
    background-color: rgba(212, 167, 69, 0.2);
    border-color: var(--accent);
    mix-blend-mode: multiply;
}

/* Split Text Animations */
.split-text-ready {
    perspective: 1000px;
}

.split-text-ready .char {
    display: inline-block;
    transform-origin: 50% 100%;
    will-change: transform, opacity;
}

/* Magnetic Elements */
.magnetic {
    will-change: transform;
    display: inline-flex;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    :root { --section-padding: 80px; }
    .servizi-grid { grid-template-columns: repeat(2, 1fr); }
    .chi-siamo-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .galleria-layers { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .datetime-picker { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --section-padding: 60px; --navbar-height: 70px; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--primary-dark);
        padding: 100px 32px 32px;
        gap: 8px;
        transition: right 0.35s var(--ease-out);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }
    .nav-menu.open { right: 0; }
    .nav-link { width: 100%; padding: 12px 16px; font-size: 1.05rem; }
    .nav-cta { margin-left: 0; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .servizi-grid { grid-template-columns: 1fr; }
    .galleria-layers { grid-template-columns: 1fr; }
    .booking-container { padding: 24px 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .summary-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
