/* ------------------------------------------
   STILI PUBBLICI GENERALI - Geopard
   Questo file contiene gli stili per:
   - homepage pubblica
   - destinazioni
   - attrazioni
   - guide
   - alloggi
------------------------------------------- */

/* Layout generale */
body {
  background-color: #f6f9ff;
  padding-top: 4.5rem; /* o 5rem se la navbar è più alta, da togliere ??? */
}

/* Navbar pubblica */
.public-navbar {
  z-index: 1030;
}

/* Fascia blu in alto della home */
.hero-section {
  background-color: #0d6efd;
  color: #fff;
  padding-top: 5rem;
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

/* Card di ricerca dentro la fascia blu */
.hero-section .hero-search {
  border-radius: 0.75rem;
}

/* Per evitare testo incollato alla navbar se qualcuno toglie pt-5 dal main */
.page-header {
  padding-top: 6rem;
}

.hero-section a {
  color: #fff;
}
.hero-section a:hover {
  color: #e2e6ff;
}



/* Header pagina */
.page-header {
  padding-top: 6rem;
  padding-bottom: 1.5rem;
  background-color: #f6f9ff;
}

/* Hero images (attrazioni, città, ecc.) */
.attr-hero-img,
.city-hero-img {
  border-radius: 0.75rem;
  overflow: hidden;
}

.attr-hero-img img,
.city-hero-img img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
}

/* Immagini card */
.card-img-top {
  height: 150px;
  object-fit: cover;
}

/* Guide (avatar) */
.guide-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.guide-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* Footer pubblico */
.footer-public {
  margin-top: 2rem;
  padding: 2rem 0;
  background: #fff;
  border-top: 1px solid #dee2e6;
}


/* Spaziatura sezioni principali */
.section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* Card generiche portale */
.card {
  border-radius: 0.75rem;
}

.card.shadow-sm {
  box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06);
}

/* Tabelle dashboard più leggere */
.table-sm th,
.table-sm td {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

/* Link "codice slug" meno invadente */
.table code.small {
  background: #f8fafc;
  padding: 0.1rem 0.25rem;
  border-radius: 0.25rem;
}

/* Sezioni "sei un operatore" ecc. */
.section-operator-cta {
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Contract page – piani e tipi vetrina */
.contract-page .plan-option,
.contract-page .page-type-card {
  border-radius: 0.75rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.contract-page .plan-option:hover,
.contract-page .page-type-card:hover {
  box-shadow: 0 0.35rem 1.1rem rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

/* Form operatori (account, edit, add) */
.operator-form .form-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.operator-form .form-text {
  font-size: 0.75rem;
}

/* Badge tipo vetrina nella dashboard */
.badge-operator-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* Migliora spacing tra immagine e testo nelle card */
.card > .ratio,
.card-img-top-wrapper {
  margin-bottom: 0.75rem;
}

/* Più respiro al testo */
.card-body {
  padding-top: 0.75rem;
}

/* Immagini più "morbide" */
.card img {
  object-fit: cover;
}

/* Ombra leggermente più elegante */
.card.shadow-sm {
  box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.08);
}


.card .ratio {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}


/* Ratio custom 3:2 (più alta del 16:9) */
.ratio-3x2 {
  --bs-aspect-ratio: calc(2 / 3 * 100%);
}


/* Hero vetrina: più cinematografico su desktop */
@media (min-width: 768px) {
  .ratio-md-21x9::before {
    padding-top: calc(9 / 21 * 100%);
  }
}




