/* =========================================
   WEDDING SMART PLANNER - PRENOTA CONSULENZA
   ========================================= */

:root {
    --primary: #e6005c;
    --primary-dark: #c9004f;
    --pink-soft: #fff2f7;
    --pink-light: #ffe6f0;
    --pink-lighter: #fff8fb;
    --text: #111827;
    --text-soft: #374151;
    --muted: #6b7280;
    --border: #ececf0;
    --border-soft: #f3f4f6;
    --success: #22a45d;
    --success-soft: #d1fae5;
    --warning: #f59e0b;
    --danger: #ef4444;
    --white: #ffffff;
    --bg: #fffaf7;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.08);
    --shadow-pink: 0 10px 28px rgba(230, 0, 92, 0.22);

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-script: 'Dancing Script', cursive;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg) 0%, var(--pink-lighter) 100%);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--text); font-weight: 700; }

.container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-pink);
}
.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}
.btn-outline {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--pink-soft); }
.btn-large { padding: 16px 36px; font-size: 1rem; min-width: 320px; }
.btn-block-mobile { width: 100%; }

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}
.logo-script {
    font-family: var(--font-script);
    color: var(--primary);
    font-size: 1.7rem;
    font-weight: 700;
}
.logo-block { display: flex; flex-direction: column; line-height: 1; }
.logo-bold { font-weight: 800; letter-spacing: 1px; font-size: 1rem; }
.logo-sub { font-size: 0.55rem; letter-spacing: 3px; color: var(--muted); font-weight: 500; margin-top: 2px; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.profile-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--pink-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-soft);
}

.hamburger {
    display: none;
    width: 36px; height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.25s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; }
@media (max-width: 1023px) {
    .mobile-nav.open {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 24px;
        background: var(--white);
        border-top: 1px solid var(--border-soft);
    }
    .mobile-nav a {
        color: var(--text);
        font-weight: 600;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-soft);
    }
    .mobile-nav a.btn { border: 2px solid var(--primary); }
}

/* ===== BOOKING MAIN ===== */
.booking-main {
    position: relative;
    padding: 50px 0 80px;
    overflow: hidden;
}
.floral-decoration {
    position: absolute;
    top: 30px;
    width: 200px;
    pointer-events: none;
    opacity: 0.7;
}
.floral-decoration.left { left: 0; }
.floral-decoration.right { right: 0; }
.floral-decoration svg { width: 100%; height: auto; }

.booking-container { position: relative; z-index: 1; }

/* ===== HERO ===== */
.booking-hero {
    text-align: center;
    margin-bottom: 36px;
}
.step-info {
    display: inline-block;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.booking-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.lead {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ===== STEPPER ===== */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 540px;
    margin: 0 auto;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.step-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.3s ease;
    white-space: nowrap;
}
.step-bar {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin-bottom: 28px;
    min-width: 60px;
    transition: background 0.3s ease;
}
.step-item.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-pink);
}
.step-item.active .step-label {
    color: var(--primary);
    font-weight: 700;
}
.step-item.completed .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.step-bar.completed { background: var(--primary); }

/* Hidden step 2 when quiz already filled */
body.quiz-filled .stepper .step-item[data-step="2"],
body.quiz-filled .stepper .step-bar { display: none; }
body.quiz-filled #totSteps { content: "1"; }

/* ===== QUIZ DETECTED BANNER ===== */
.quiz-detected {
    background: linear-gradient(90deg, var(--pink-soft), var(--pink-light));
    border: 1px solid var(--pink-light);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.qd-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--success);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.quiz-detected strong { display: block; font-size: 0.95rem; }
.quiz-detected p { color: var(--muted); font-size: 0.85rem; margin: 0; }
.qd-edit {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.15s ease;
    margin-left: auto;
    flex-shrink: 0;
}
.qd-edit:hover { background: var(--pink-soft); }

/* ===== BOOKING GRID ===== */
.booking-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.booking-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
}
.booking-card h3 {
    font-size: 1.15rem;
    margin-bottom: 18px;
    font-weight: 700;
}

/* Calendar fills 1st row 1st col */
.calendar-card { grid-column: 1; grid-row: 1; }
.time-card { grid-column: 2; grid-row: 1; }
.form-card { grid-column: 1; grid-row: 2; }
.info-card { grid-column: 2; grid-row: 2; }

/* When quiz filled: form card hidden, info card spans full */
body.quiz-filled .form-card { display: none; }
body.quiz-filled .info-card { grid-column: 1 / -1; max-width: 700px; margin: 0 auto; }
body.quiz-filled .info-card .info-photo { aspect-ratio: 16/6; }

/* ===== CALENDAR ===== */
.calendar { width: 100%; }
.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 16px;
}
.cal-nav {
    width: 32px; height: 32px;
    border-radius: 50%;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.cal-nav:hover { background: var(--pink-soft); color: var(--primary); }
.cal-month {
    font-size: 1rem;
    font-weight: 700;
    text-transform: capitalize;
}
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 0 4px 8px;
}
.cal-weekdays span {
    text-align: center;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 0 4px;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.92rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
    background: transparent;
}
.cal-day:hover:not(.empty):not(.disabled):not(.selected) {
    background: var(--pink-soft);
    color: var(--primary);
}
.cal-day.empty { cursor: default; }
.cal-day.disabled {
    color: var(--border);
    cursor: not-allowed;
}
.cal-day.selected {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    box-shadow: var(--shadow-pink);
}
.cal-day.today:not(.selected) {
    background: var(--pink-soft);
    color: var(--primary);
    font-weight: 700;
}

/* ===== TIME GRID ===== */
.time-card .time-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
    text-transform: capitalize;
}
.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.time-slot {
    padding: 14px 16px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.15s ease;
}
.time-slot:hover:not(:disabled):not(.selected) {
    border-color: var(--primary);
    background: var(--pink-soft);
}
.time-slot:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.time-slot.selected {
    background: var(--pink-light);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary) inset;
}

/* ===== FORM ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 4px;
}
.form-field input, .form-field select {
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: all 0.15s ease;
    font-size: 0.95rem;
}
.form-field input:focus, .form-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--pink-light);
}
.form-field input.error, .form-field select.error { border-color: var(--danger); }
.field-error {
    font-size: 0.78rem;
    color: var(--danger);
    min-height: 1em;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-soft);
    margin-top: 4px;
}
.form-checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.check-mark {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1.5px solid var(--border);
    background: var(--white);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    margin-top: 1px;
}
.form-checkbox input:checked + .check-mark {
    border-color: var(--primary);
    background: var(--primary);
}
.form-checkbox input:checked + .check-mark::after {
    content: '';
    width: 11px; height: 6px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg) translate(1px, -1px);
}
.form-checkbox a { color: var(--primary); text-decoration: underline; font-weight: 600; }

/* ===== INFO CARD ===== */
.info-card {
    background: linear-gradient(180deg, var(--pink-soft) 0%, var(--white) 60%);
    border-color: var(--pink-light);
    display: flex;
    flex-direction: column;
}
.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
}
.i-check {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--success);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.info-photo {
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: auto;
}
.info-photo svg { width: 100%; height: 100%; display: block; }

/* ===== CTA ===== */
.booking-cta {
    text-align: center;
    margin-top: 12px;
}

/* ===== SUCCESS SCREEN ===== */
.booking-success {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.success-icon {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}
.success-icon::before, .success-icon::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--success);
    opacity: 0.4;
}
.success-icon::before { top: -4px; right: 8px; width: 6px; height: 6px; }
.success-icon::after { bottom: 4px; left: -4px; width: 5px; height: 5px; }

.booking-success h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 800;
    line-height: 1.25;
}
.success-sub {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.booking-summary {
    background: var(--pink-lighter);
    border: 1px solid var(--pink-light);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 28px;
    text-align: left;
}
.bs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pink-light);
}
.bs-head h3 { font-size: 1.05rem; }
.bs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.bs-item.full { grid-column: 1 / -1; }
.bs-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}
.bs-item strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 2px;
}
.bs-meta {
    color: var(--muted);
    font-size: 0.8rem;
    display: block;
    margin-top: 4px;
    line-height: 1.4;
}

.meet-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1.5px solid var(--success);
    color: var(--success);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.15s ease;
    word-break: break-all;
}
.meet-link:hover { background: var(--success-soft); }

.status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
}
.status-pill.green-soft { background: var(--success-soft); color: var(--success); }

.booking-features {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
    text-align: left;
}
.booking-features h4 {
    font-size: 1.05rem;
    margin-bottom: 18px;
}
.booking-features ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.booking-features li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.bf-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--pink-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.booking-features strong { display: block; font-size: 0.92rem; }
.booking-features span { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== STATE: SUCCESS ACTIVE ===== */
body.success-active .booking-hero,
body.success-active .booking-grid,
body.success-active .booking-cta,
body.success-active .quiz-detected,
body.success-active .floral-decoration { display: none; }

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 1023px) {
    .main-nav, .header-actions .btn-primary, .header-actions .profile-btn { display: none; }
    .hamburger { display: flex; }

    .floral-decoration { width: 120px; opacity: 0.5; }
    .booking-hero h1 { font-size: 1.75rem; }

    .booking-grid {
        grid-template-columns: 1fr;
    }
    .calendar-card, .time-card, .form-card, .info-card {
        grid-column: 1;
        grid-row: auto;
    }

    .bs-grid, .booking-features ul { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 767px) {
    .booking-main { padding: 30px 0 50px; }
    .floral-decoration { display: none; }
    .container { padding: 0 16px; }

    .booking-hero h1 { font-size: 1.45rem; }
    .lead { font-size: 0.9rem; }
    .step-info { font-size: 0.72rem; }

    .stepper { max-width: 100%; }
    .step-circle { width: 28px; height: 28px; font-size: 0.8rem; }
    .step-label { font-size: 0.72rem; }
    .step-bar { min-width: 30px; margin-bottom: 22px; }

    .quiz-detected {
        flex-direction: column;
        text-align: center;
    }
    .qd-edit { margin-left: 0; }

    .booking-card { padding: 20px 16px; }
    .booking-card h3 { font-size: 1.05rem; margin-bottom: 14px; }

    .cal-day { font-size: 0.82rem; }
    .cal-weekdays span { font-size: 0.65rem; }
    .cal-month { font-size: 0.92rem; }

    .time-grid { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .time-slot { padding: 12px 8px; font-size: 0.88rem; }

    .form-grid { grid-template-columns: 1fr; }

    .info-photo { aspect-ratio: 16/8; }

    .btn-large { min-width: 100%; padding: 14px 20px; font-size: 0.92rem; }

    /* Success */
    .booking-success { padding: 32px 20px; }
    .booking-success h2 { font-size: 1.35rem; }
    .booking-summary { padding: 18px 20px; }
    .booking-summary h3 { font-size: 0.95rem; }
    .booking-features { padding: 18px; }
    .booking-features ul { grid-template-columns: 1fr; }
    .meet-link { font-size: 0.78rem; padding: 8px 12px; }
    .success-actions { flex-direction: column-reverse; }
    .success-actions .btn { width: 100%; }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Header adattivo: voci nav su una riga sola === */
.site-header > .container { max-width: 1360px; }
.header-inner { flex-wrap: nowrap; }
.main-nav { flex-wrap: nowrap; }
.main-nav a { white-space: nowrap; }
.logo { flex-shrink: 0; }
.header-actions { flex-shrink: 0; }

@media (min-width: 769px) and (max-width: 1100px) {
    .site-header > .container { padding-left: 18px; padding-right: 18px; }
    .header-inner { gap: 14px; }
    .main-nav { gap: 18px; }
    .main-nav a { font-size: 0.88rem; }
    .header-actions .btn { padding: 11px 18px; font-size: 0.86rem; }
}

/* === Hamburger menu — 3 linee visibili === */
.hamburger {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    gap: 4px;
    flex-shrink: 0;
}
.hamburger span {
    width: 22px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
}

/* === Bottone Accedi (ghost / outline neutro) === */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    font-weight: 700;
    font-size: 0.92rem;
    transition: border-color .2s, color .2s, background .2s;
    white-space: nowrap;
    text-decoration: none;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* === Standardizzazione header + voci menu (uniformità su tutto il sito) === */
.header-inner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    height: 76px !important;
    padding: 0 24px !important;
    margin: 0 auto !important;
    max-width: 1360px !important;
    gap: 20px !important;
    box-sizing: border-box !important;
}
.header-inner > .logo,
.header-inner > a.logo { justify-self: start !important; grid-column: 1 !important; }
.header-inner > .main-nav { justify-self: center !important; grid-column: 2 !important; }
.header-inner > .header-actions { justify-self: end !important; grid-column: 3 !important; }
.header-inner > .hamburger { justify-self: end !important; grid-column: 3 !important; }
/* Bottoni header (Accedi + Prenota) — dimensioni identiche su tutte le pagine */
.header-actions { display: flex !important; align-items: center !important; gap: 12px !important; flex-shrink: 0 !important; }
.header-actions .btn,
.header-actions .btn-ghost,
.header-actions .btn-primary,
.header-actions .btn.active {
    padding: 11px 22px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    border-radius: 999px !important;
    border-width: 1.5px !important;
    border-style: solid !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background .2s, color .2s, border-color .2s !important;
}
.header-actions .btn-primary,
.header-actions .btn-primary.active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}
.header-actions .btn-primary:hover {
    background: var(--primary-dark, #c9004f) !important;
    border-color: var(--primary-dark, #c9004f) !important;
    color: #fff !important;
}
.header-actions .btn-ghost,
.header-actions a.btn-ghost {
    background: #fff !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
.header-actions .btn-ghost:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* === Logo uniforme su tutto il sito (no flicker / no layout shift) === */
.logo {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
    min-width: 175px !important;
    min-height: 40px !important;
}
.logo-script {
    font-family: 'Dancing Script', 'Brush Script MT', cursive !important;
    color: var(--primary) !important;
    font-size: 1.7rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
}
.logo-block {
    display: inline-flex !important;
    flex-direction: column !important;
    line-height: 1 !important;
    gap: 1px !important;
}
.logo-bold {
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    font-size: 1rem !important;
    color: var(--text) !important;
    line-height: 1 !important;
}
.logo-sub {
    font-size: 0.55rem !important;
    letter-spacing: 3px !important;
    color: var(--muted) !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
    line-height: 1 !important;
}

/* === Mobile header (≤768px): solo logo a sinistra + hamburger a destra === */
@media (max-width: 768px) {
    .header-inner > .main-nav,
    .header-inner > .header-actions,
    .main-nav,
    .header-actions,
    .btn-mini-mobile { display: none !important; }

    .hamburger { display: flex !important; }

    /* Layout FLEX semplice (più robusto del grid in mobile) */
    .header-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        height: 64px !important;
        padding: 0 16px !important;
        gap: 12px !important;
        /* Reset grid template per evitare residui dal desktop */
        grid-template-columns: none !important;
        grid-template-rows: none !important;
    }
    /* Reset grid placement su tutti i figli */
    .header-inner > * {
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: auto !important;
    }
    .header-inner > .logo,
    .header-inner > a.logo {
        order: 0 !important;
        margin: 0 !important;
        flex-shrink: 1 !important;
    }
    .header-inner > .hamburger {
        order: 99 !important;
        flex-shrink: 0 !important;
    }
    .logo { min-width: auto !important; }

    /* Bottoni nel menu a tendina mobile (Accedi + Prenota) */
    .mobile-nav .btn,
    .mobile-nav a.btn,
    .mobile-nav .btn-ghost,
    .mobile-nav a.btn-ghost,
    .mobile-nav .btn-primary,
    .mobile-nav a.btn-primary {
        display: block !important;
        width: 100% !important;
        padding: 14px 22px !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        border-radius: 999px !important;
        text-align: center !important;
        text-decoration: none !important;
        box-shadow: none !important;
        margin-top: 8px !important;
        box-sizing: border-box !important;
        transition: background .2s, color .2s, border-color .2s !important;
    }
    .mobile-nav .btn-primary,
    .mobile-nav a.btn-primary,
    .mobile-nav .btn-primary.active {
        background: var(--primary) !important;
        color: #fff !important;
        border: 0 !important;
        margin-top: 16px !important;
    }
    .mobile-nav .btn-primary:hover,
    .mobile-nav a.btn-primary:hover {
        background: var(--primary-dark, #c9004f) !important;
        color: #fff !important;
    }
    .mobile-nav .btn-ghost,
    .mobile-nav a.btn-ghost {
        background: #fff !important;
        color: var(--text) !important;
        border: 1.5px solid var(--border) !important;
    }
    .mobile-nav .btn-ghost:hover,
    .mobile-nav a.btn-ghost:hover {
        border-color: var(--primary) !important;
        color: var(--primary) !important;
    }

    /* Drawer mobile: full-screen fixed, no body scroll, no scrollbar desktop */
    .mobile-nav {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        background: #fff !important;
        z-index: 999 !important;
        padding: 24px 18px 40px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        border-top: 1px solid var(--border) !important;
        flex-direction: column !important;
        gap: 4px !important;
        margin: 0 !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .mobile-nav.open { display: flex !important; }
    .mobile-nav a {
        padding: 14px 16px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: var(--text) !important;
        border-radius: 12px !important;
        border-bottom: 0 !important;
        text-decoration: none !important;
        display: block !important;
    }
    .mobile-nav a.active {
        background: rgba(230, 0, 92, 0.08) !important;
        color: var(--primary) !important;
    }
}

/* Lock body + html scroll quando il menu mobile è aperto */
html.menu-open,
body.menu-open {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none !important;
}

/* Nasconde la scrollbar visiva del drawer mobile (mantiene scroll touch) */
.mobile-nav::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.mobile-nav { scrollbar-width: none !important; -ms-overflow-style: none !important; }
.main-nav { gap: 30px !important; align-items: center !important; flex-wrap: nowrap !important; padding: 0 !important; margin: 0 !important; }
.main-nav a {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    line-height: 1 !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: color .2s !important;
    background: none !important;
    border: 0 !important;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary) !important;
    font-weight: 600 !important;
}
/* Rimuove la barretta sotto la voce attiva */
.main-nav a::before,
.main-nav a::after,
.main-nav a.active::before,
.main-nav a.active::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
    border: 0 !important;
    height: 0 !important;
}
@media (max-width: 1100px) {
    .main-nav { gap: 22px !important; }
    .main-nav a { font-size: 0.9rem !important; }
}
