/* ==========================================================================
   PRENOTAZIONI — stili del calendario e del form
   Non serve modificare questo file.
   ========================================================================== */

.pr-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,.72);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:24px 16px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}

.pr-panel{
  background:#fff;
  border-radius:16px;
  width:min(920px,100%);
  margin:auto;
  padding:26px;
  position:relative;
  box-shadow:0 24px 60px rgba(0,0,0,.35);
}

.pr-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}

.pr-head h3{
  margin:0 0 4px;
  font-size:22px;
  font-weight:900;
  line-height:1.2;
}

.pr-head p{
  margin:0;
  font-size:14px;
  color:#6b7280;
}

.pr-close{
  flex:0 0 auto;
  width:38px;
  height:38px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  font-size:20px;
  line-height:1;
  color:#374151;
  display:flex;
  align-items:center;
  justify-content:center;
}

.pr-close:hover{ background:#f3f4f6; }

/* ---------- barra check-in / check-out ---------- */

.pr-range{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:18px;
}

.pr-range__box{
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:10px 14px;
  background:#fff;
}

.pr-range__box.is-active{
  border-color:#1a4499;
  box-shadow:0 0 0 3px rgba(26,68,153,.12);
}

.pr-range__label{
  display:block;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#6b7280;
  margin-bottom:3px;
}

/* la data si può anche scrivere a mano */
.pr-range__input{
  width:100%;
  border:none;
  padding:0;
  background:none;
  font:inherit;
  font-size:15px;
  font-weight:800;
  color:#111827;
  outline:none;
}

.pr-range__input::placeholder{
  color:#9ca3af;
  font-weight:600;
}

.pr-range__box:focus-within{
  border-color:#1a4499;
  box-shadow:0 0 0 3px rgba(26,68,153,.12);
}

.pr-range__label{
  cursor:pointer;
}

/* ---------- navigazione mesi ---------- */

.pr-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.pr-nav button{
  width:40px;
  height:40px;
  border:1px solid #d1d5db;
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  font-size:20px;
  line-height:1;
  color:#111827;
}

.pr-nav button:hover:not(:disabled){ background:#f3f4f6; }

.pr-nav button:disabled{
  opacity:.35;
  cursor:default;
}

.pr-nav__title{
  font-size:17px;
  font-weight:900;
  text-align:center;
  flex:1;
}

/* ---------- griglia mesi ---------- */

.pr-months{
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
}

@media(min-width:760px){
  .pr-months{ grid-template-columns:1fr 1fr; }
}

.pr-month__name{
  text-align:center;
  font-size:15px;
  font-weight:900;
  margin-bottom:10px;
  text-transform:capitalize;
}

.pr-dow{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:4px;
  margin-bottom:6px;
}

.pr-dow span{
  text-align:center;
  font-size:11px;
  font-weight:900;
  color:#9ca3af;
  text-transform:uppercase;
}

.pr-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:4px;
  /* spazio per 6 righe: l'altezza non cambia da un mese all'altro,
     così il calendario non si sposta quando si naviga */
  min-height:272px;
  align-content:start;
}

.pr-day{
  height:42px;
  border:none;
  background:none;
  padding:0;
  font:inherit;
  font-size:14px;
  font-weight:700;
  color:#111827;
  border-radius:9px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.pr-day:hover:not(:disabled){
  background:#e8effb;
}

.pr-day--empty{
  visibility:hidden;
  cursor:default;
}

.pr-day--off{
  color:#d1d5db;
  cursor:default;
  text-decoration:line-through;
}

.pr-day--busy{
  color:#b91c1c;
  background:#fef2f2;
  cursor:default;
  text-decoration:line-through;
}

.pr-day--in-range{
  background:#dbe6fa;
  border-radius:0;
}

.pr-day--edge{
  background:#1a4499;
  color:#fff;
}

.pr-day--edge:hover{
  background:#1a4499;
}

.pr-day--start{ border-radius:9px 0 0 9px; }
.pr-day--end{ border-radius:0 9px 9px 0; }
.pr-day--single{ border-radius:9px; }

/* ---------- legenda ---------- */

.pr-legend{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid #f0f1f3;
  font-size:13px;
  font-weight:700;
  color:#4b5563;
}

.pr-legend i{
  display:inline-block;
  width:13px;
  height:13px;
  border-radius:4px;
  margin-right:7px;
  vertical-align:-2px;
}

.pr-legend .i-free{ background:#fff; border:1px solid #d1d5db; }
.pr-legend .i-busy{ background:#fef2f2; border:1px solid #fecaca; }
.pr-legend .i-sel{ background:#1a4499; }

/* ---------- messaggio di errore ---------- */

.pr-warn{
  margin-top:16px;
  padding:12px 14px;
  border-radius:10px;
  background:#fffbeb;
  border:1px solid #fde68a;
  color:#92400e;
  font-size:14px;
  font-weight:700;
  line-height:1.5;
}

/* ---------- riepilogo ---------- */

.pr-summary{
  margin-top:20px;
  padding:16px 18px;
  border-radius:12px;
  background:#f0f7ff;
  border:1px solid #bfdbfe;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.pr-summary__dates{
  font-size:15px;
  font-weight:900;
  color:#111827;
}

.pr-summary__nights{
  display:block;
  font-size:13px;
  font-weight:700;
  color:#4b5563;
  margin-top:3px;
}

.pr-summary__price strong{
  font-size:26px;
  font-weight:900;
  color:#111827;
}

.pr-summary__price small{
  display:block;
  font-size:12px;
  color:#6b7280;
  font-weight:700;
  margin-top:2px;
}

/* ---------- form ---------- */

.pr-form{
  margin-top:22px;
  padding-top:22px;
  border-top:1px solid #f0f1f3;
}

.pr-form h4{
  margin:0 0 16px;
  font-size:17px;
  font-weight:900;
}

.pr-fields{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

@media(min-width:640px){
  .pr-fields{ grid-template-columns:1fr 1fr; }
  .pr-field--full{ grid-column:1 / -1; }
}

.pr-field label{
  display:block;
  font-size:13px;
  font-weight:800;
  color:#374151;
  margin-bottom:6px;
}

.pr-field input,
.pr-field select,
.pr-field textarea{
  width:100%;
  padding:11px 13px;
  border:1px solid #d1d5db;
  border-radius:10px;
  font:inherit;
  font-size:15px;
  color:#111827;
  background:#fff;
}

.pr-field textarea{
  min-height:88px;
  resize:vertical;
}

/* le caselle numeriche identiche alle altre, senza le frecciatine */
.pr-field input[type=number]{
  -moz-appearance:textfield;
  appearance:textfield;
}

.pr-field input[type=number]::-webkit-outer-spin-button,
.pr-field input[type=number]::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

.pr-field input:focus,
.pr-field select:focus,
.pr-field textarea:focus{
  outline:none;
  border-color:#1a4499;
  box-shadow:0 0 0 3px rgba(26,68,153,.12);
}

.pr-field input.is-error,
.pr-field select.is-error,
.pr-field textarea.is-error{
  border-color:#dc2626;
  box-shadow:0 0 0 3px rgba(220,38,38,.10);
}

.pr-error{
  display:block;
  margin-top:5px;
  font-size:12px;
  font-weight:700;
  color:#dc2626;
}

.pr-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:13px;
  line-height:1.5;
  color:#4b5563;
  font-weight:600;
  cursor:pointer;
}

.pr-check input{
  width:17px;
  height:17px;
  flex:0 0 17px;
  margin-top:1px;
  accent-color:#1a4499;
  cursor:pointer;
}

.pr-check a{
  color:#1a4499;
  text-decoration:underline;
}

.pr-actions{
  margin-top:20px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.pr-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 26px;
  border-radius:10px;
  border:1px solid transparent;
  font:inherit;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  transition:.15s ease;
  text-decoration:none;
}

.pr-btn--primary{
  background:#1a4499;
  color:#fff;
}

.pr-btn--primary:hover:not(:disabled){ background:#153680; }

.pr-btn--primary:disabled{
  opacity:.55;
  cursor:default;
}

.pr-btn--wa{
  background:#fff;
  color:#111827;
  border-color:#d1d5db;
}

.pr-btn--wa:hover{ background:#f3f4f6; }

.pr-note{
  margin:14px 0 0;
  font-size:12.5px;
  color:#6b7280;
  line-height:1.6;
}

/* ---------- schermata di conferma ---------- */

.pr-done{
  text-align:center;
  padding:36px 10px 24px;
}

.pr-done__icon{
  width:62px;
  height:62px;
  border-radius:50%;
  background:#dcfce7;
  color:#15803d;
  font-size:32px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 18px;
}

.pr-done h3{
  margin:0 0 10px;
  font-size:22px;
  font-weight:900;
}

.pr-done p{
  margin:0 auto 8px;
  max-width:440px;
  font-size:15px;
  line-height:1.6;
  color:#4b5563;
}

.pr-done .pr-btn{ margin-top:18px; }

@media(max-width:640px){
  .pr-panel{ padding:20px 16px; }
  .pr-overlay{ padding:12px 8px; }
  .pr-head h3{ font-size:19px; }
  .pr-day{ height:38px; font-size:13px; }
  .pr-grid{ min-height:248px; }
}
