/* --- 1. VARIABILI E BASE --- */
:root {
    --bg-color: #000000;
    --container-bg: #0d0d0d;
    --text-primary: #f2f2f2;
    --text-secondary: #a6a6a6;
    --gold: #c5a059; /* Bronzo Luxury */
    --gold-bright: #e2c28d;
    --gold-dim: rgba(197, 160, 89, 0.2);
    --border-color: #222222;
    --font-family: 'Inter', sans-serif;
}
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    margin: 0;
    overflow-x: hidden;
    padding-top: 70px; /* spazio per il bottone indietro fisso */
}
/* --- 2. TOP NAVIGATION (NAVIGAZIONE ALTA) --- */
.top-nav {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 25px;
    z-index: 100;
    box-sizing: border-box;
}

.auth-trigger-btn, .view-settings {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.auth-trigger-btn:hover {
    background: var(--gold);
    color: #000;
}

/* --- TASTO INDIETRO - FISSO, PIÙ GRANDE, CON ICONA --- */
.btn-back {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 500;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 12px 22px;
    min-height: 44px;
    min-width: 44px;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}

.btn-back::before {
    content: "←";
    font-size: 1rem;
    line-height: 1;
}

.btn-back:hover,
.btn-back:active {
    background: var(--gold);
    color: #000;
}
.btn-back:hover {
    background: var(--gold);
    color: #000;
}

/* --- 3. GATEWAY CONTAINER (APP STYLE VERTICAL CARD) --- */
.gateway-container {
    display: flex;
    flex-direction: column; /* Card impilate verticalmente per mobile luxury */
    height: 100vh;
    width: 100vw;
    background: #000;
}

.luxury-card {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.3, 1);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.luxury-card:hover {
    flex: 1.4; /* Espansione elegante al tocco/hover */
}

.card-overlay {
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,0.7) 40%, 
        transparent 100%);
    box-sizing: border-box;
}

.card-subtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.65rem;
    display: block;
    margin-bottom: 8px;
    opacity: 0.9;
}

.card-title {
    font-size: 2rem;
    font-weight: 200;
    margin: 0;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 10px 0 25px 0;
    font-weight: 300;
    max-width: 80%;
}

/* --- 4. BOTTONE ELEGANTE (BRONZO) --- */
.elegant-btn {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    border-radius: 50px;
    transition: all 0.4s ease;
    background: rgba(197, 160, 89, 0.05);
    text-align: center;
}

.elegant-btn:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.3);
    transform: translateY(-2px);
}

/* --- 5. MODALE DI AUTENTICAZIONE (CORAZZATA) --- */
.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(15px);
    display: none; /* Gestito dal JS */
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-content {
    background: linear-gradient(145deg, #161616 0%, #000000 100%) !important;
    border: 1px solid rgba(197, 160, 89, 0.4) !important;
    padding: 45px 35px !important;
    border-radius: 25px !important;
    width: 90%;
    max-width: 380px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
}

.auth-input {
    width: 100%;
    padding: 16px;
    margin-bottom: 15px;
    background: #080808 !important;
    border: 1px solid #222 !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.auth-input:focus {
    border-color: var(--gold) !important;
    outline: none;
}

.auth-message {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 1px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #444;
    font-size: 26px;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover { color: var(--gold); }

/* --- 6. BOX VINCOLI (PERCORSI) --- */
.vincolo-luxury-box {
    background: linear-gradient(145deg, #1a1a1a 0%, #050505 100%);
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 35px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.vincolo-title {
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.vincolo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.vincolo-item {
    border-left: 1px solid var(--gold);
    padding-left: 20px;
    text-align: left;
}

.vincolo-number {
    display: block;
    font-size: 1.6rem;
    color: white;
    font-weight: 200;
}

.vincolo-desc {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 7. ACCORDION SERVIZI --- */
.accordion-item {
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 5px;
}

.cat-title {
    padding: 20px;
    color: var(--gold);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.radio-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    cursor: pointer;
}

.radio-item input[type="radio"] {
    accent-color: var(--gold);
}

/* --- 8. STILE BOTTONI INVIO (PERCORSI E PRENOTAZIONE) --- */

/* Applichiamo lo stile a ENTRAMBI gli ID dei bottoni */
#btnRichiedi, #btnPrenota {
    display: block;
    margin: 40px auto 20px auto; /* Centra e dà spazio */
    width: 85%;
    max-width: 350px;
    padding: 18px;
    background: var(--gold); /* Oro pieno Luxury */
    color: #000; /* Testo nero per leggibilità su oro */
    border: none;
    border-radius: 50px; /* Arrotondato elegante */
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

/* Effetto al passaggio del mouse */
#btnRichiedi:hover, #btnPrenota:hover {
    background: var(--gold-bright); /* Oro più luminoso */
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(197, 160, 89, 0.4);
}

/* Stato disabilitato */
#btnRichiedi:disabled, #btnPrenota:disabled {
    background: #222;
    color: #555;
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* Spazio extra in fondo ai form per lo scroll su mobile */
#percorsiForm, #prenotazioneForm {
    padding-bottom: 80px; 
}

/* --- 9. CENTRATURA TOTALE FORM --- */

/* Centra i titoli delle sezioni */
.section-label, .section-luxury-label {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 30px auto 15px auto !important;
}

/* Centra le etichette (Giorno, Orario, Note) */
.input-group label, .note-container label {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Centra il testo dentro i campi di input */
.input-luxury {
    text-align: center !important;
}

/* Centra il titolo principale della pagina */
.page-title {
    text-align: center !important;
    width: 100% !important;
}
/* FIX PER MOBILE: Permette lo scroll se il modulo è lungo */
.modal-content {
    max-height: 90vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Rende il link privacy più facile da cliccare col dito */
#registerSection a {
    color: var(--gold) !important;
    text-decoration: underline !important;
    padding: 5px 0;
    display: inline-block;
}
/* --- Bottom Navigation --- */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.bn-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 4px rgba(197, 160, 89, 0.6);
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: #777;
  font-size: 0.6rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.bn-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.bn-item.bn-active {
  color: var(--gold);
}

/* Evita che il contenuto finisca sotto la barra */
body.has-bottom-nav {
  padding-bottom: 80px;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.12);
}

.account-icon {
  font-size: 1.1rem;
  opacity: 0.8;
  width: 24px;
  text-align: center;
}