/* Fix margini wrapper solo per la pagina blog */
body.blog #box_wrapper.container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* Fix struttura wrapper per blog e pagine: forza altezza e display */
#canvas, #box_wrapper {
  display: block;
  height: auto !important;
  min-height: 100vh;
}
/* Fix: spazio sotto la pagina blog per evitare che il footer tagli i post */
.page-content {
  padding-bottom: 60px;
}
/* Custom overrides for GEB site */

/* Main menu link color */
.top-nav .sf-menu a {
  color: #056e23;
}

/* Active, hover, and focus states */
.top-nav .sf-menu li:hover > a,
.top-nav .sf-menu li.sfHover > a,
.top-nav .sf-menu li.active > a,
.top-nav .sf-menu a:focus {
  color: #056e23;
}

/* Dropdown items */
.top-nav .sf-menu li ul li > a {
  color: #056e23;
}
.top-nav .sf-menu li ul li:hover > a,
.top-nav .sf-menu li ul li.sfHover > a,
.top-nav .sf-menu li ul li.active > a {
  color: #056e23;
}

/* Mobile toggle menu (if menu collapses) */
.toggle_menu,
.toggle_menu:hover,
.toggle_menu:focus {
  color: #056e23;
}

/* Overlay color & opacity */
.s-overlay::before {
  background-color: #056e23; /* colore overlay */
  opacity: 0.4 !important;   /* trasparenza overlay */
}
/* Questo è il blocco che scivola sopra con le info (Durata, Dislivello, ecc.) */
.routs .gallery-title .item-content,
.vertical-item .item-content,
[class*="-item"] .item-content {
    /* Cambia questo colore con il blu o nero che preferisci */
    color: #ffffff; /* Testo bianco per leggibilità */
}
/* Opzione B: L'overlay che si attiva all'hover */
.routs .gallery-title:hover .item-content {
    background-color: #044480 !important;
}

 .gallery-title .item-content,
.vertical-item .item-content,
[class*="-item"] .item-content {
    /* Cambia questo colore con il blu o nero che preferisci */
    color: #044480; /* Testo bianco per leggibilità */
}
/* Opzione B: L'overlay che si attiva all'hover */
 .gallery-title:hover .item-content {
    background-color: #044480 !important;
    color: #ffffff; /* Testo bianco per leggibilità */
}

.gallery-title:hover .item-content :hover{
    background-color: #044480 !important;
    color: #ffffff; /* Testo bianco per leggibilità */
}

/* Mostra links-wrap nel content sotto titolo */
.item-content .links-wrap {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 10;
    margin-top: 10px;
}

.item-content .links-wrap a {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.item-content:hover .links-wrap a {
    opacity: 1;
}

/* Icona lente ingrandimento grigia all'hover invece di blu */
[class*="-item"] .links-wrap a.link-zoom:hover {
    color: #666666 !important;
}

/* Nascondi frecce navigazione Fancybox */
.fancybox__nav {
    display: none !important;
}

/* Ingrandisci il logo */
a.logo img {
  max-height: 150px;
}

/* Badge hero con fondo bianco trasparente */
.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
}

/* Spaziatura anteprime blog */
.section-news .post {
  margin-bottom: 30px;
}
.section-news .row > [class*="col-"] {
  margin-bottom: 30px;
}

/* Dettaglio blog */
.blog-detail-card {
  background: #ffffff;
  padding: 32px 28px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  color: #1f2937;
}

.blog-detail-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.blog-detail-header {
  margin-bottom: 18px;
}

.blog-detail-title {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1.2;
  color: #1f2937;
}

.blog-detail-meta {
  color: #6b7280;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.blog-detail-meta .meta-sep {
  opacity: 0.6;
}

.blog-detail-category {
  color: #3a7bd5;
  font-weight: 600;
}

.blog-detail-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
}

.blog-detail-content a {
  color: #3a7bd5;
}

.blog-detail-content p {
  margin-bottom: 16px;
  color: #334155;
}

.blog-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 12px 0;
}

.blog-detail-content h2,
.blog-detail-content h3,
.blog-detail-content h4 {
  margin: 20px 0 10px;
}

.blog-detail-content blockquote {
  border-left: 4px solid #3a7bd5;
  padding: 10px 16px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 8px;
}

.blog-detail-back {
  margin-top: 24px;
}

/* Scheda tecnica escursione (volantino) */
.geb-scheda {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d7e3d7;
  box-shadow: 0 10px 32px rgba(5, 110, 35, 0.08);
  overflow: hidden;
}

.geb-scheda-hero img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.geb-scheda-header {
  text-align: center;
  padding: 28px 28px 8px;
}

.geb-scheda-brand,
.geb-esc-card-brand {
  color: #056e23;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.geb-scheda-title {
  color: #163216;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.geb-scheda-section {
  border-top: 2px solid #056e23;
  padding: 22px 28px;
}

.geb-scheda-section h3 {
  color: #056e23 !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 14px !important;
}

.geb-scheda-section h4 {
  color: #1f4d1f;
  font-size: 1rem;
  font-weight: 700;
  margin: 14px 0 8px;
}

.geb-scheda-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  margin: 0;
}

.geb-scheda-dl-stack {
  grid-template-columns: 1fr;
}

.geb-scheda-dl div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 8px;
  align-items: start;
}

.geb-scheda-dl dt {
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.geb-scheda-dl dt::after {
  content: ":";
}

.geb-scheda-dl dd {
  margin: 0;
  color: #374151;
}

.geb-scheda-list {
  margin: 0;
  padding-left: 22px;
  color: #374151;
}

.geb-scheda-list li {
  margin-bottom: 6px;
}

.geb-scheda-empty {
  margin: 0;
  color: #6b7280;
}

.geb-scheda-itinerary,
.geb-scheda-itinerary p,
.geb-scheda-itinerary li,
.geb-scheda-itinerary h2,
.geb-scheda-itinerary h3,
.geb-scheda-itinerary span {
  color: #334155 !important;
  line-height: 1.7;
}

.geb-scheda-itinerary p {
  margin-bottom: 14px;
}

.geb-scheda-footer {
  text-align: center;
  font-size: 0.82rem;
  color: #4b5563;
  padding: 16px 20px;
  background: #f3f8f3;
  border-top: 1px solid #d7e3d7;
}

.geb-scheda-actions {
  max-width: 860px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.geb-scheda-share {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #333;
}

.geb-scheda-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #1877F2;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2em;
}

.geb-scheda-back {
  text-decoration: none;
  font-weight: 600;
  color: #056e23;
}

.geb-esc-card {
  background: #fff;
  border: 1px solid #d7e3d7;
  box-shadow: 0 6px 20px rgba(5, 110, 35, 0.07);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.geb-esc-card-media {
  display: block;
  overflow: hidden;
}

.geb-esc-card-media img {
  width: 100%;
  height: auto;
  display: block;
}

.geb-esc-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.geb-esc-card-title {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 800;
}

.geb-esc-card-title a {
  color: #163216;
  text-decoration: none;
}

.geb-esc-card-dl {
  margin: 0 0 16px;
  flex: 1;
}

.geb-esc-card-dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 0.92rem;
}

.geb-esc-card-dl dt {
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.geb-esc-card-dl dt::after {
  content: ":";
}

.geb-esc-card-dl dd {
  margin: 0;
  color: #4b5563;
}

.geb-esc-card-link {
  display: inline-block;
  background: #056e23;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 14px;
  text-align: center;
}

.geb-admin-body {
  background: #f7fafc;
  min-height: 100vh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
}

.geb-admin-page-title {
  padding-top: 1em;
  text-align: center;
}

.geb-admin-card {
  max-width: 760px;
  margin: 40px auto;
  background: #fff;
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.geb-admin-card-wide {
  max-width: 900px;
}

.geb-admin-card h2 {
  text-align: center;
  margin-bottom: 12px;
}

.geb-admin-intro {
  color: #555;
  margin: 0 0 20px;
  line-height: 1.5;
}

.geb-admin-label {
  display: block;
  font-weight: 600;
  margin: 0 0 6px;
  color: #1f4d1f;
  font-size: 0.92em;
}

.geb-admin-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 14px;
  border-radius: 6px;
  border: 1px solid #b5c6d6;
  box-sizing: border-box;
  font: inherit;
}

.geb-admin-hint {
  display: block;
  font-size: 0.8em;
  color: #888;
  margin: -8px 0 12px;
}

.geb-admin-file {
  margin: 0 0 18px;
}

.geb-admin-preview img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.geb-admin-section {
  background: #f4f8f4;
  border-left: 4px solid #056e23;
  padding: 14px 16px;
  margin: 0 0 20px;
  border-radius: 0 8px 8px 0;
}

.geb-admin-section h3 {
  margin: 0 0 12px;
  color: #056e23;
  font-size: 1.05em;
  font-weight: 700;
}

.geb-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.geb-admin-submit {
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(90deg, #056e23 0%, #3a7bd5 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
}

.geb-admin-error {
  color: #d32f2f;
  text-align: center;
}

.geb-admin-back {
  text-align: center;
  margin-top: 18px;
}

.geb-admin-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.geb-admin-btn {
  background: #056e23;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.geb-admin-link {
  color: #056e23;
  font-weight: 600;
  text-decoration: none;
}

.geb-admin-link-danger {
  color: #d32f2f !important;
}

.geb-admin-list-title {
  margin-bottom: 8px;
}

.geb-admin-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.geb-admin-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f7fafc;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.geb-admin-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.geb-admin-thumb-empty {
  background: #e0eafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b5c6d6;
  font-size: 2em;
}

.geb-admin-item-body {
  flex: 1;
}

.geb-admin-item-title {
  font-size: 1.1em;
  font-weight: 600;
}

.geb-admin-item-meta {
  font-size: 0.95em;
  color: #555;
}

.geb-admin-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.geb-admin-item-actions a {
  color: #3a7bd5;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 767px) {
  .geb-scheda-dl,
  .geb-admin-grid {
    grid-template-columns: 1fr;
  }

  .geb-scheda-dl div,
  .geb-esc-card-dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .geb-scheda-section,
  .geb-scheda-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .geb-admin-item {
    flex-wrap: wrap;
  }
}
