/* ============================================
   PRENOTAZIONI TERRE DI NOTO
   Design tokens da terredinoto.it
   ============================================ */

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

:root {
    /* Mediterranean Palette */
    --sea-blue: #0A5E8C;
    --sea-light: #1A8FC9;
    --terracotta: #E86A3C;
    --terracotta-light: #F08A5C;
    --white-lime: #FFFFFF;
    --ochre: #FFB800;
    --olive-green: #4A9E3D;
    --sky-light: #E8F4FC;
    --coral-soft: #FFF0EB;
    --text-dark: #1A3A4A;

    /* Typography */
    --font-body: 'Josefin Sans', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-card: 8px;
    --radius-button: 8px;
    --radius-large: 16px;

    /* Transitions */
    --transition-smooth: all 0.4s ease;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #f5f0eb;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--sea-blue);
}

a {
    color: var(--terracotta);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--sea-blue);
}

/* ============================================
   LAYOUT
   ============================================ */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header {
    background: var(--sea-blue);
    padding: 20px 0;
    text-align: center;
    position: relative;
}

.page-header h1 {
    color: var(--white-lime);
    font-size: clamp(24px, 4vw, 36px);
    margin: 0;
}

.page-header .subtitle {
    color: var(--sky-light);
    font-size: 14px;
    margin-top: 4px;
    font-family: var(--font-body);
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    color: var(--white-lime);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
}

.lang-switch {
    display: flex;
    gap: 8px;
}

.lang-switch a {
    color: var(--sky-light);
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.lang-switch a.active,
.lang-switch a:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white-lime);
}

/* ============================================
   BUTTONS (da terredinoto.it)
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--ochre);
    color: var(--sea-blue);
    border-color: var(--ochre);
}

.btn-primary:hover {
    background: var(--sea-blue);
    border-color: var(--sea-blue);
    color: var(--white-lime);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 94, 140, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--sea-blue);
    border: 2px solid var(--sea-blue);
}

.btn-outline:hover {
    background: var(--sea-blue);
    color: var(--white-lime);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   STEPPER
   ============================================ */
.booking-stepper {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 30px 20px 10px;
    max-width: 700px;
    margin: 0 auto;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    position: relative;
    transition: var(--transition-normal);
}

.step-indicator .step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.step-indicator.active {
    color: var(--sea-blue);
}

.step-indicator.active .step-num {
    background: var(--terracotta);
    color: white;
}

.step-indicator.completed .step-num {
    background: var(--olive-green);
    color: white;
}

.step-indicator.completed {
    color: var(--olive-green);
}

.step-connector {
    width: 40px;
    height: 2px;
    background: #e0e0e0;
    align-self: center;
    flex-shrink: 0;
}

.step-connector.active {
    background: var(--olive-green);
}

.step-label {
    display: none;
}

@media (min-width: 600px) {
    .step-label {
        display: inline;
    }
}

/* ============================================
   STEP PANELS
   ============================================ */
.step-panel {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.step-panel[hidden] {
    display: none;
}

.step-title {
    font-family: var(--font-heading);
    font-size: clamp(22px, 3vw, 28px);
    color: var(--sea-blue);
    margin-bottom: 20px;
    text-align: center;
}

/* ============================================
   EXPERIENCE CARDS (semplificato per booking)
   ============================================ */
.exp-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exp-card {
    background: white;
    border-radius: var(--radius-large);
    box-shadow: 0 10px 40px rgba(10, 94, 140, 0.08);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 24px;
}

.exp-card:hover {
    box-shadow: 0 15px 50px rgba(10, 94, 140, 0.12);
    transform: translateY(-2px);
}

.exp-card.selected {
    border-color: var(--terracotta);
    box-shadow: 0 10px 40px rgba(232, 106, 60, 0.15);
}

.exp-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.exp-card h3 {
    font-family: var(--font-heading);
    color: var(--sea-blue);
    font-size: 1.3rem;
    margin: 0 0 4px;
    line-height: 1.3;
}

.exp-card .exp-description {
    color: var(--text-dark);
    opacity: 0.75;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.exp-price-badge {
    background: var(--coral-soft);
    color: var(--terracotta);
    padding: 8px 14px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.exp-price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.exp-deposit-note {
    font-size: 0.72rem;
    font-style: italic;
    color: var(--terracotta);
    font-weight: 600;
    text-align: right;
    line-height: 1.3;
}

.exp-price-badge small {
    font-size: 0.7rem;
    font-weight: 400;
    display: block;
    color: var(--text-dark);
    opacity: 0.6;
}

.exp-includes {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.exp-includes li {
    font-size: 0.82rem;
    color: var(--text-dark);
    opacity: 0.8;
    padding: 3px 10px;
    background: var(--sky-light);
    border-radius: 50px;
}

.exp-addon-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--sky-light) 0%, var(--coral-soft) 100%);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.82rem;
    color: var(--text-dark);
    margin-top: 8px;
}

.exp-addon-tag strong {
    color: var(--terracotta);
}

/* Toggle per espandere/collassare opzioni bambino */
.exp-child-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--sea-blue);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 6px;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.exp-child-toggle:hover {
    color: var(--terracotta);
}

.exp-child-toggle .toggle-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.65rem;
}

.exp-child-toggle.open .toggle-arrow {
    transform: rotate(180deg);
}

.exp-child-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}

.exp-child-options.show {
    max-height: 500px;
    margin-top: 8px;
}

.exp-child-opt {
    font-size: 0.8rem;
    color: var(--text-dark);
    padding: 6px 12px;
    background: var(--sky-light);
    border-left: 3px solid var(--terracotta);
    border-radius: 0 8px 8px 0;
    line-height: 1.4;
}

.exp-child-opt-name {
    font-weight: 600;
    color: var(--terracotta);
}

.exp-child-opt-desc {
    color: var(--text-muted);
}

.exp-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.btn-book-exp {
    background: var(--ochre);
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: 0.3px;
}

.btn-book-exp:hover {
    background: #d4940a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 148, 10, 0.3);
}

.exp-card.selected .btn-book-exp {
    background: var(--olive-green);
}

.exp-card.selected .btn-book-exp:hover {
    background: #4a6b2a;
    box-shadow: 0 4px 12px rgba(74, 107, 42, 0.3);
}

.exp-card .select-check {
    display: none;
    color: var(--olive-green);
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 8px;
}

.exp-card.selected .select-check {
    display: block;
}

/* ============================================
   DATE + TIME LAYOUT (side by side on desktop)
   ============================================ */
.date-time-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

/* ============================================
   CALENDAR
   ============================================ */
.calendar-wrapper {
    background: white;
    border-radius: var(--radius-large);
    box-shadow: 0 10px 40px rgba(10, 94, 140, 0.08);
    padding: 24px;
    margin-bottom: 0;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-nav h3 {
    font-size: 1.1rem;
    margin: 0;
}

.calendar-nav button {
    background: var(--sky-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--sea-blue);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav button:hover {
    background: var(--sea-blue);
    color: white;
}

.calendar-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sea-blue);
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    min-height: 44px;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background: var(--sky-light);
}

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

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.disabled.sunday {
    color: #d4a8a8;
}

.calendar-day.available {
    color: var(--text-dark);
    font-weight: 600;
}

.calendar-day.available::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--olive-green);
    position: absolute;
    bottom: 4px;
}

.calendar-day.almost-full::after {
    background: var(--ochre);
}

.calendar-day.full {
    color: #bbb;
    cursor: not-allowed;
}

.calendar-day.full::after {
    background: #ddd;
}

.calendar-day.selected {
    background: var(--terracotta);
    color: white;
}

.calendar-day.selected::after {
    background: white;
}

.calendar-day.today {
    font-weight: 700;
    box-shadow: inset 0 0 0 2px var(--sea-light);
}

/* ============================================
   SLOT PICKER
   ============================================ */
/* --- Slot panel wrapper (side panel) --- */
.slot-panel-wrapper {
    background: white;
    border-radius: var(--radius-large);
    box-shadow: 0 10px 40px rgba(10, 94, 140, 0.08);
    padding: 24px 20px;
    display: none;
    position: sticky;
    top: 20px;
}

.slot-panel-wrapper.is-visible {
    display: block;
    animation: slotFadeIn 0.3s ease;
}

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

.slot-panel-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sky-light);
}

#slot-panel-date {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sea-blue);
}

.slot-panel-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.slot-picker {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.slot-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    min-width: unset;
    width: 100%;
}

.slot-btn:hover:not(:disabled) {
    border-color: var(--sea-blue);
}

.slot-btn.selected {
    border-color: var(--terracotta);
    background: var(--coral-soft);
}

.slot-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.slot-btn .slot-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sea-blue);
    display: block;
}

.slot-btn .slot-remaining {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
    display: block;
}

.slot-btn.selected .slot-remaining {
    color: var(--terracotta);
}

/* ============================================
   FORM
   ============================================ */
.form-card {
    background: white;
    border-radius: var(--radius-large);
    box-shadow: 0 10px 40px rgba(10, 94, 140, 0.08);
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sea-blue);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-card);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition-fast);
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--sea-blue);
    box-shadow: 0 0 0 3px rgba(10, 94, 140, 0.1);
}

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

.form-input.error,
.form-select.error {
    border-color: #dc3545;
}

.form-error {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 4px;
}

/* Disclaimer sotto campo allergie */
.form-disclaimer {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--terracotta);
    margin-top: 8px;
    line-height: 1.4;
    background: var(--coral-soft);
    padding: 10px 14px;
    border-radius: var(--radius-card);
    border-left: 3px solid var(--terracotta);
}

/* Checkbox condizioni di vendita */
.form-terms {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.form-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--terracotta);
    cursor: pointer;
}

.form-checkbox-label a {
    color: var(--terracotta);
    text-decoration: underline;
    font-weight: 600;
}

.form-checkbox-label a:hover {
    color: var(--sea-blue);
}

.form-terms.error .form-checkbox-label {
    color: #dc3545;
}

.form-terms.error .form-checkbox {
    outline: 2px solid #dc3545;
    outline-offset: 1px;
}

/* Shake + glow per scroll-to-error */
@keyframes shake-highlight {
    0%   { transform: translateX(0);    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    15%  { transform: translateX(-6px); box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.3); }
    30%  { transform: translateX(5px);  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.3); }
    45%  { transform: translateX(-4px); box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2); }
    60%  { transform: translateX(2px);  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2); }
    75%  { transform: translateX(-1px); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
    100% { transform: translateX(0);    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}
.shake-highlight {
    animation: shake-highlight 0.6s ease-out;
    border-radius: 8px;
}

/* People Counter */
.people-counter {
    display: flex;
    align-items: center;
    gap: 16px;
}

.people-counter label {
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 80px;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--sky-light);
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: var(--sea-blue);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover:not(:disabled) {
    background: var(--sea-blue);
    color: white;
}

.counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.counter-value {
    width: 48px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ============================================
   CHILD MENU SELECTOR (Step 3)
   ============================================ */
.child-menu-selector {
    margin-top: 16px;
    margin-bottom: 8px;
}

.child-menu-selector > .form-label {
    margin-bottom: 10px;
    display: block;
    font-size: 1rem;
    color: var(--terracotta);
}

.child-menu-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-card);
    transition: var(--transition-fast);
}

.child-menu-option.active {
    border-color: var(--terracotta);
    background: var(--coral-soft);
}

.child-menu-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.child-menu-option-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.child-menu-option-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============================================
   MEAL CHOICE SELECTOR (Step 3 — Piatti adulti)
   ============================================ */
.meal-choice-group {
    margin-top: 20px;
    margin-bottom: 8px;
}

.meal-choice-group.error,
.child-menu-selector.error {
    border: 2px solid #dc3545;
    border-radius: var(--radius-card);
    padding: 12px;
}

.meal-choice-group > .form-label {
    margin-bottom: 10px;
    display: block;
    font-size: 1rem;
    color: var(--terracotta);
}

.meal-choice-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-card);
    transition: var(--transition-fast);
}

.meal-choice-option.active {
    border-color: var(--terracotta);
    background: var(--coral-soft);
}

.meal-choice-option-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

/* ============================================
   OPTION QUANTITY CONTROLS (contatori +/-)
   ============================================ */
.option-qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    flex-shrink: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}
.option-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--coral-soft);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.option-qty-btn:hover:not(:disabled) {
    background: var(--terracotta);
    color: white;
}
.option-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.option-qty-value {
    width: 32px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Status contatore totale */
.option-counter-status {
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
    margin-bottom: 8px;
}
.option-counter-status.complete {
    color: var(--olive-green);
}
.option-counter-status.incomplete {
    color: var(--text-muted);
}

/* Sottotitolo (per N adulti / per N bambini) */
.selector-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 6px;
}

/* ============================================
   PRICE SUMMARY
   ============================================ */
.price-summary {
    background: var(--sky-light);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 20px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 4px 0;
    color: var(--text-dark);
}

.price-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 2px solid rgba(10, 94, 140, 0.15);
    color: var(--sea-blue);
}

.price-total .amount {
    color: var(--terracotta);
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.price-deposit-note {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--terracotta);
    padding-top: 10px;
    line-height: 1.4;
}

/* ============================================
   BOOKING SUMMARY (step 4)
   ============================================ */
.booking-summary {
    background: white;
    border-radius: var(--radius-large);
    box-shadow: 0 10px 40px rgba(10, 94, 140, 0.08);
    padding: 30px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

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

.summary-row .label {
    color: #888;
}

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

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 2px solid var(--sky-light);
    font-size: 1.3rem;
    font-weight: 700;
}

.summary-total .amount {
    color: var(--terracotta);
    font-family: var(--font-heading);
}

/* ============================================
   CONFIRMATION / CANCELLATION CARDS
   ============================================ */
.result-card {
    background: white;
    border-radius: var(--radius-large);
    box-shadow: 0 10px 40px rgba(10, 94, 140, 0.08);
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
}

.result-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.result-card h2 {
    margin-bottom: 12px;
}

.result-card .booking-code {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--sea-blue);
    letter-spacing: 2px;
    background: var(--sky-light);
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-block;
    margin: 16px 0;
}

.result-details {
    text-align: left;
    margin: 24px 0;
}

.result-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

/* ============================================
   ALTCHA
   ============================================ */
.altcha-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* ============================================
   MESSAGES
   ============================================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-card);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-error {
    background: #fce4e4;
    color: #cc0000;
    border: 1px solid #f5c6c6;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-info {
    background: var(--sky-light);
    color: var(--sea-blue);
    border: 1px solid #b3d9f2;
}

.alert-warning {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

/* ======================================
   Modal avviso allergie (gate step 2)
   ====================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 50, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: modalFadeIn 0.22s ease-out;
}
.modal-overlay[hidden] { display: none !important; }
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-box {
    background: #fff;
    border-radius: 14px;
    max-width: 520px;
    width: 100%;
    padding: 32px 28px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: modalSlideUp 0.28s ease-out;
}
@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-icon {
    font-size: 2.8rem;
    color: #f5b400;
    line-height: 1;
    margin-bottom: 12px;
}
.modal-title {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin: 0 0 14px;
    font-weight: 700;
    line-height: 1.3;
}
.modal-text {
    font-size: 0.96rem;
    color: #444;
    line-height: 1.55;
    margin: 0 0 20px;
    text-align: left;
}
.modal-text strong {
    color: #b84a00;
}
.modal-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    margin-bottom: 18px;
    cursor: pointer;
    text-align: left;
    font-size: 0.92rem;
    color: #5a4000;
    line-height: 1.4;
    user-select: none;
    transition: background 0.2s;
}
.modal-check:hover {
    background: #fff3c4;
}
.modal-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    cursor: pointer;
    accent-color: #0A5E8C;
}
.modal-btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}
.modal-btn:disabled,
.modal-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
@media (max-width: 520px) {
    .modal-box { padding: 26px 20px 22px; }
    .modal-title { font-size: 1.1rem; }
    .modal-text { font-size: 0.9rem; }
}

/* Avviso "prima prenotazione richiede min 2 adulti" */
.first-booking-warning {
    margin: 0 0 16px 0;
    padding: 12px 14px;
    background: #fff8e1;
    color: #8a5a00;
    border: 1px solid #ffe082;
    border-left: 4px solid #f5b400;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.45;
}
.first-booking-warning strong {
    color: #6b4400;
    margin-right: 4px;
}
.btn-primary.disabled,
.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--sea-blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   FOOTER
   ============================================ */
.page-footer {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 0.82rem;
}

.page-footer a {
    color: #999;
}

.page-footer a:hover {
    color: var(--sea-blue);
}

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #bbb;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.powered-by:hover {
    color: #888;
}
.powered-by-logo {
    height: 16px;
    max-height: 16px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}
.powered-by:hover .powered-by-logo {
    opacity: 0.8;
}

/* ============================================
   FADE-UP ANIMATION
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-stepper {
        gap: 0;
        padding: 20px 10px 10px;
    }

    .step-connector {
        width: 20px;
    }

    .step-indicator {
        padding: 8px 6px;
        font-size: 12px;
    }

    .exp-card {
        padding: 18px;
    }

    .exp-card-top {
        flex-direction: column;
    }

    .date-time-layout {
        grid-template-columns: 1fr;
    }

    .slot-panel-wrapper {
        position: static;
    }

    .calendar-day {
        font-size: 0.8rem;
        min-height: 38px;
    }

    .form-card {
        padding: 20px;
    }

    .result-card {
        padding: 24px;
        margin: 20px 16px;
    }
}

@media (max-width: 480px) {
    .calendar-weekday {
        font-size: 0.65rem;
    }

    .calendar-day {
        font-size: 0.75rem;
        min-height: 34px;
    }

    .step-indicator .step-num {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
}
