/* ===============================
   MENU HEADER — Sottolineatura
   =============================== */
.ct-header-menu a {
    text-decoration: underline !important;
}

/* ===============================
   CARDS "Perché scegliere noi"
   =============================== */
.home-feature-card {
  transition: transform 0.2s ease,
              box-shadow 0.2s ease,
              border-color 0.2s ease,
              background-color 0.2s ease;
  background-color: #ffffff;
}

.home-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  border-color: #218A94;
  background-color: #F6FAFA;
}

/* ===============================
   EFFETTO FADE-IN 
   =============================== */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   TITOLI UNIVERSALI
   =============================== */
.entry-title, 
.wp-block-post-title,
h2.wpsp-post-title a,
.wpsp-content-wrap h2 a,
.wpsp-title a,
.wpsp-post-title a,
.wp-show-posts-entry-title a {
    color: #218A94 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* ===============================
   IMMAGINI UNIVERSALI
   =============================== */
.wp-block-post-featured-image img,
.wpsp-image img,
.wp-show-posts-image img,
.wp-block-image img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    border-radius: 10px;
}

/* ===============================
   CARD UNIVERSALE (blog, esperienze)
   =============================== */
.wp-block-post,
.wpsp-post,
.wp-show-posts-single,
.wp-block-query .wp-block-post {
    background: #ffffff !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
}

.wp-block-post:hover,
.wpsp-post:hover,
.wp-show-posts-single:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 10px 26px rgba(0,0,0,0.15) !important;
}

/* ===============================
   ESTRATTO / LEGGI DI PIÙ
   =============================== */
.wp-block-post-excerpt,
.wpsp-excerpt {
    font-size: 15px !important;
    color: #444 !important;
    line-height: 1.6 !important;
}

.wp-block-post-excerpt__more-link,
.wpsp-read-more a {
    color: #218A94 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* ===============================
   MOBILE — MODULO CREA ESPERIENZA
   =============================== */
@media only screen and (max-width: 600px) {

    .frm_title,
    h2.frm_form_title {
        font-size: 22px !important;
        line-height: 26px !important;
        text-align: center !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }

    .frm_progress,
    .frm-progress-bar,
    .frm_step {
        height: 8px !important;
    }

    .frm_step {
        font-size: 12px !important;
        margin-bottom: 5px !important;
    }

    .frm_forms .frm_form_fields {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .frm_fields_container input,
    .frm_fields_container select,
    .frm_fields_container textarea {
        font-size: 14px !important;
        padding: 10px !important;
    }

    .frm_primary_label {
        font-size: 14px !important;
        margin-bottom: 3px !important;
    }

    .frm_button_submit,
    .frm_prev_page {
        font-size: 14px !important;
        padding: 10px 16px !important;
        border-radius: 6px !important;
    }
}

/* --- TABS PREMIUM ELEWANA --- */
.elewana-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.elewana-tab {
  padding: 10px 22px;
  border: 2px solid #218A94;
  color: #218A94;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  font-weight: 600;
  background: #ffffff;
}

.elewana-tab.active,
.elewana-tab:hover {
  background: #e9f6f7;
}

/* --- CONTENUTO TAB --- */
.elewana-tab-content {
  display: none;
}
.elewana-tab-content.active {
  display: block;
}

/* --- GRIGLIA CARDS --- */
.elewana-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

@media(max-width: 900px) {
  .elewana-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- CARD PREMIUM --- */
.elewana-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: 0.2s;
}
.elewana-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
.elewana-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.elewana-card-content {
  padding: 15px;
}
.elewana-stars {
  color: #218A94;
  font-size: 20px;
  margin: 5px 0;
}

/* --- POPUP ELEWANA --- */
.elewana-popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.elewana-popup {
  background: white;
  padding: 25px;
  max-width: 600px;
  border-radius: 12px;
  animation: fadeIn 0.3s;
}
.elewana-close {
  cursor: pointer;
  float: right;
  font-size: 26px;
  color: #218A94;
  font-weight: bold;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* CARD CONTAINER */
.wp-block-column > .wp-block-group {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* HOVER EFFETTO PREMIUM */
.wp-block-column > .wp-block-group:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* IMMAGINI */
.wp-block-column img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* TITOLI */
.wp-block-column h3 {
    font-size: 22px;
    margin-top: 10px;
    margin-bottom: 6px;
    color: #0f2b3f;
}

/* STELLE */
.wp-block-column p {
    margin: 0 0 10px;
    font-size: 18px;
}

/* DESCRIZIONE */
.wp-block-column p + p {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

/* ===============================
   SISTEMA "LEGGI DI PIÙ"
   =============================== */

/* Paragrafo che si accorcia */
.card-paragrafo {
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Paragrafo espanso */
.card-paragrafo.expanded {
  max-height: 1000px;
}

/* Bottone "Leggi di più" */
.bottone-auto {
  display: inline-block;
  margin-top: 8px;
  color: #218A94;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
}

/* --- MENU STICKY A SINISTRA --- */
.offerte-sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
    padding: 20px 25px;
    border-left: 3px solid #218A94;
    background: #ffffff;
    font-size: 18px;
}

.offerte-sidebar a {
    display: block;
    margin-bottom: 18px;
    text-decoration: none;
    color: #1b3a4b;
    font-weight: 600;
    transition: color 0.25s ease;
}

.offerte-sidebar a:hover {
    color: #218A94;
}

/* Evidenziazione sezione attiva */
.offerte-sidebar a.active {
    color: #218A94;
}

/* Layout desktop */
@media(min-width: 992px){
    .offerte-wrapper {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 60px;
    }
}

/* Layout mobile */
@media(max-width: 991px){
    .offerte-sidebar {
        position: relative;
        top: 0;
        border-left: none;
        border-bottom: 3px solid #218A94;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }
    .offerte-sidebar a {
        margin-right: 20px;
        margin-bottom: 0;
    }
}

/* Titoli su cover (effetto Elewana) */
.offerta-cover-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(0,0,0,0.4);
}

/* FIX barra di navigazione Formidable su mobile */
.frm_progress, 
.frm_progress_container, 
.frm_progress_text,
.frm_rootline,
.frm_rootline .frm_step {
    max-width: 100% !important;
    overflow-x: hidden !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
}

/* Forza le voci della rootline ad andare a capo */
.frm_rootline .frm_step {
    display: inline-block;
    width: auto !important;
    white-space: nowrap !important;
}

@media (max-width: 600px) {
    /* comprime la barra e impedisce che spinga la pagina */
    .frm_rootline {
        font-size: 12px !important;
        display: flex;
        flex-wrap: wrap !important;
        justify-content: center;
        line-height: 1.2;
    }

    .frm_rootline .frm_step {
        margin: 3px 6px !important;
    }

    /* sistema il "0% completo" */
    .frm_progress_text {
        text-align: center !important;
        margin-bottom: 5px;
        font-size: 12px !important;
    }
}

/* --- RECENSIONI: STILE BASE --- */

/* Contenitore del form "Lascia un commento" */
.comment-respond {
    background: #e0f3f5;         /* azzurrino stile UPNM */
    border-radius: 18px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #b8dde0;
}

/* Titolo "Lascia un commento" */
.comment-reply-title {
    font-size: 24px;
    font-weight: 700;
    color: #063a41;
    margin-bottom: 15px;
}

/* Textarea e campi input */
.comment-respond textarea,
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"] {
    border-radius: 10px;
    border: 1px solid #c5d8da;
    padding: 10px 12px;
}

/* Bottone invio commento */
.comment-respond input[type="submit"] {
    background: #218a94;
    color: #fff;
    border-radius: 999px;
    padding: 10px 28px;
    border: none;
    font-weight: 600;
}

/* Lista delle recensioni già pubblicate */
.comment-list .comment {
    background: #f7fbfb;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 18px;
    border: 1px solid #d3e4e6;
}

/* Testo della recensione */
.comment-content {
    font-size: 18px;
    line-height: 1.6;
    color: #063a41;
}

/* Mobile */
@media (max-width: 768px) {
    .comment-respond {
        padding: 20px;
    }
    .comment-list .comment {
        padding: 16px;
    }
}

/* ============================
   STILE PER LE STELLE DELLE RECENSIONI
   ============================ */

/* Contenitore stelle */
.rating-stars {
    display: flex;
    gap: 6px;
    font-size: 32px;
    cursor: pointer;
    margin-bottom: 10px;
    color: #b8d9dd; /* stelle non selezionate (grigio acqua UPNM) */
}

/* Stella selezionata */
.rating-stars span.selected {
    color: #ffcc00; /* oro */
}

/* Stella hover */
.rating-stars span:hover {
    color: #ffcc00;
}

/* Stelle mostrate nella recensione salvata */
.comment-meta-rating {
    font-size: 22px;
    color: #ffcc00;
    margin-bottom: 6px;
}

/* Stile generale della recensione */
.comment-content {
    font-size: 18px;
    line-height: 1.6;
    color: #063a41;
}

/* Box di ogni recensione */
.comment-list .comment {
    background: rgba(33, 138, 148, 0.07);
    border-left: 4px solid #218A94;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .rating-stars { font-size: 28px; }
    .comment-list .comment { padding: 16px; }
}

@media (max-width: 768px) {
    .wp-block-cover__image-background {
        height: 150px !important;
        object-fit: cover !important;
        width: 100% !important;
    }
}
@media (max-width: 768px) {
    .wp-block-cover {
        min-height: 150px !important;
    }
}

.upm-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
}

.upm-slide {
    position: relative;
    min-width: 280px;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.upm-slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6); /* sfumatura */
}

.upm-slide-title {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    font-size: 22px;
    color: white;
    font-weight: 700;
}

.upm-slide-title {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    font-size: 22px;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6); /* <— AGGIUNTO */
}

/* Accordion premium */
.accordion-item {
    background: #f4fafa !important;
    padding: 22px 28px;
    border-radius: 14px;
    margin-bottom: 18px;
    cursor: pointer;
    transition: all .25s ease;
}

.accordion-item:hover {
    background: #e5f3f3 !important;
}

/* Titolo accordion */
.accordion-item h3 {
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #0d6b72 !important;
}

/* Contenuto accordion */
.accordion-content {
    display: none;
    padding: 20px 10px 5px 10px;
    font-size: 18px;
    line-height: 1.6;
}

/* Evidenziazione clic */
.accordion-item.active {
    border-left: 6px solid #218A94;
}

/* Tabs Paesi */
.safari-tabs { display: flex; gap: 14px; margin-top: 30px; }
.safari-tab {
    padding: 12px 26px;
    background: #e5f3f3;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all .25s;
}
.safari-tab:hover { background: #d4eeee; }
.safari-tab.active {
    background: #218A94;
    color: #fff;
}

/* Popup – stile premium */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  background: #fff;
  max-width: 700px;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: fadeIn .3s ease;
}

.popup-box h2 {
  margin-top: 0 !important;
  color: #0d6b72 !important;
}

.popup-close {
  float: right;
  cursor: pointer;
  font-size: 26px;
  color: #333;
  margin-top: -10px;
}

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

/* ============================================
   FOCUS PAGE — FIX GLOBALI (Safari, Gorilla, ecc.)
   ============================================ */

/* HERO */
.focus-hero {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
}

.focus-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.focus-hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: flex-end;
  padding: 40px;
  border-radius: 20px;
}

.focus-hero h1 {
  color: white;
  font-size: 42px;
  margin: 0;
}

.focus-hero p {
  color: #eee;
  font-size: 20px;
  margin-top: 10px;
}


/* ============================================
   ACCORDION
   ============================================ */

.accordion-section {
  margin-top: 60px;
  margin-bottom: 40px;
}

.accordion-item {
  background: #F4FBFB;
  padding: 22px 28px;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 18px;
  transition: 0.25s ease;
}

.accordion-item:hover {
  background: #E0F4F5;
}

.accordion-item h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0B3D46;
  margin: 0;
}

.accordion-content {
  display: none;
  padding: 18px 5px;
  font-size: 19px;
  line-height: 1.6;
}

.accordion-content img {
  width: 100%;
  border-radius: 16px;
  margin-top: 20px;
  object-fit: cover;
}


/* ============================================
   POPUP
   ============================================ */

.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 30px;
  z-index: 9999;
}

.popup-content {
  background: white;
  padding: 40px;
  border-radius: 18px;
  width: min(900px, 95%);
  max-height: 90vh;
  overflow-y: auto;
}

.popup-content h2 {
  margin-top: 0;
  font-size: 32px;
}

.popup-close {
  font-size: 38px;
  float: right;
  cursor: pointer;
  margin-top: -20px;
  color: #0B3D46;
}

.popup-content img {
  width: 100%;
  border-radius: 18px;
  margin-top: 25px;
}


/* ============================================
   TABS (Uganda – Rwanda)
   ============================================ */

.focus-tabs {
  display: flex;
  gap: 15px;
  margin-top: 60px;
}

.focus-tabs button {
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  background: #E0F4F5;
  color: #0B3D46;
  transition: 0.3s;
}

.focus-tabs

/* Fix responsive dei TAB nelle pagine Focus */
.tabs-container,
.safari-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

/* Stile uniforme per ogni TAB (nomi lunghi o corti) */
.tab-button,
.safari-tab,
.safari-country-tab {
    flex: 1 1 45% !important;   /* 2 per riga */
    max-width: 48% !important;  /* evita schiacciamenti */
    padding: 16px 12px !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: keep-all !important;
    hyphens: auto;
    line-height: 1.3;
    border-radius: 14px !important;
}

/* Su schermi molto piccoli diventa 1 per riga */
@media (max-width: 430px) {
    .tab-button,
    .safari-tab,
    .safari-country-tab {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* Padding laterale SOLO su mobile per i contenuti del testo */
@media screen and (max-width: 768px) {
  .entry-content p,
  .entry-content h2,
  .entry-content h3,
  .entry-content ul,
  .entry-content li {
      padding-left: 22px !important;
      padding-right: 22px !important;
  }
}

/* Ottimizzazione card su mobile */
@media (max-width: 768px) {

  .wp-show-posts-entry,
  .ct-card,
  .card,
  .ct-post-card {
      margin-bottom: 18px !important;
      padding: 8px !important;
  }

  .wp-show-posts-entry img,
  .ct-card img,
  .card img,
  .ct-post-card img {
      height: 180px !important;
      object-fit: cover !important;
  }

  .ct-card-title,
  .wp-show-posts-entry-title,
  .card-title {
      font-size: 17px !important;
      line-height: 1.2 !important;
  }

  .ct-card-content,
  .wp-show-posts-entry-content {
      font-size: 15px !important;
  }
}
/* Allineamento e stabilità card su mobile */
@media (max-width: 768px) {

  /* Assicura altezza minima uniforme del titolo */
  .ct-card-title,
  .wp-show-posts-entry-title,
  .card-title {
      min-height: 42px !important;
      display: block;
  }

  /* Migliora allineamento testo e margini */
  .ct-card-content,
  .wp-show-posts-entry-content,
  .card-content {
      margin-top: 6px !important;
      line-height: 1.35 !important;
  }

  /* Uniforma bordi, ombre e arrotondamenti */
  .ct-card,
  .wp-show-posts-entry,
  .card,
  .ct-post-card {
      border-radius: 8px !important;
      overflow: hidden !important;
  }
}

/* Ottimizzazione immagini per mobile */
@media (max-width: 768px) {

  /* Limita larghezza immagini */
  img {
      max-width: 100% !important;
      height: auto !important;
  }

  /* Riduce immagini enormi nei contenuti */
  .entry-content img,
  .single img,
  .page img {
      max-height: 380px !important;
      object-fit: cover !important;
  }

  /* Previene layout shift */
  figure,
  .wp-block-image {
      overflow: hidden;
  }

}

/* Ottimizzazione titoli e spazi su mobile */
@media (max-width: 768px) {

  /* Riduce dimensione dei titoli troppo grandi */
  h1 {
      font-size: 26px !important;
      line-height: 1.25 !important;
      margin-bottom: 18px !important;
  }

  h2 {
      font-size: 22px !important;
      line-height: 1.3 !important;
      margin-bottom: 16px !important;
  }

  h3 {
      font-size: 19px !important;
      line-height: 1.3 !important;
      margin-bottom: 14px !important;
  }

  /* Ottimizza paragrafi per mobile */
  p {
      font-size: 17px !important;
      line-height: 1.5 !important;
      margin-bottom: 18px !important;
  }

  /* Riduce padding eccessivi delle sezioni */
  .wp-block-group,
  .entry-content > * {
      padding-left: 10px !important;
      padding-right: 10px !important;
  }

  /* Riduce margini enormi sopra/basso blocchi */
  .wp-block-group,
  .ct-container {
      margin-top: 10px !important;
      margin-bottom: 10px !important;
  }
}

/* Menu mobile ottimizzato */
@media (max-width: 768px) {

  /* Aumenta cliccabilità voci */
  .ct-mobile-menu .menu-item a {
      padding: 14px 20px !important;
      font-size: 18px !important;
      line-height: 1.3 !important;
  }

  /* Migliora spaziatura icone */
  .ct-header-item.ct-mobile-menu-toggle {
      padding: 6px !important;
  }

  /* Migliora leggibilità */
  .ct-mobile-menu {
      font-size: 18px !important;
  }

  /* Rende più elegante la separazione tra le voci */
  .ct-mo
