/* Classi Bottoni articoli */
.cta-buttons {
  margin-top: 2em;
  text-align: center;
}

.cta-buttons .button {
  display: inline-block;
  margin: 5px;
  padding: 10px 20px;
  background-color: #224faa;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta-buttons .button:hover {
  background-color: #1c438f;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}



.cta-buttons .success-button {
    display: inline-block;
    margin: 5px;
    padding: 10px 20px;
    background-color: #28a745; 
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-buttons .success-button:hover {
    background-color: #218838; 
}

.dj-mobile-open-btn span + span {
  margin-left: 0px !important;
}

.container-header {
  z-index: 10;
  background-color: var(--cassiopeia-color-primary);
  background-image: none;
  position: relative;
  box-shadow: inset 0 5px 5px #00000008;
}

/* Login mobile */
.mod-login-white {
  color: white;
}

.mod-login-white a {
  color: white;
}

.mod-login-white label {
  color: white;
}

.mod-login-white input {
  color: black; 
  background-color: white; 
}

.mod-login-white .btn-primary {
  background-color: white;
  border-color: white;
  color: #112855;
}

/* Menu mobile */
.sticky-js {
background-color: #112855;
width: 100%;
z-index: 1030;
padding: 10px;
transition: all 0.3s ease;
}

.sticky-fixed {
position: fixed;
top: 0;
left: 0;
padding: 10px;
right: 0;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.sticky-placeholder {
height: 80px; 
}

.w-100 {
     width: auto !important;
}

/* Classi Dettaglio annuncio */
.group_wrapper {
    margin-bottom: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(17, 40, 85, 0.1);
}

/* Optional: ultimo gruppo senza margine sotto */
.group_wrapper:last-child {
    margin-bottom: 0;
}

.group_wrapper h3 {
    border-bottom: 3px solid #112855;
    padding-bottom: 6px;
    margin-bottom: 12px;
    color: #112855;
    font-weight: 700;
    
}

/*Social login*/

.akeeba-sociallogin-linkunlink-buttons {
  display: flex;
  justify-content: center;
}

.akeeba-sociallogin-linkunlink-button {
  width: 100% !important;
  border-radius: 8px;
}


/* Card annunci */

/* Wrapper principale griglia responsive */
.item_grid_wrapper {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

/* Colonna item */
.item_col {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .item_col {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .item_col {
    width: 33.3333%;
  }
}

/* Card layout */
.item_card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.item_card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Immagine */
.item_image {
  height: 200px;
  overflow: hidden;
}

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

/* Contenuto card */
.item_content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Titolo */
.item_title {
  font-size: 1.1rem;
  color: #112855;
  margin: 0;
  line-height: 1.3;
}

.item_title a {
  text-decoration: none;
  color: inherit;
}

/* Tipo */
.item_type {
  font-size: 0.85rem;
  color: #666;
}

/* Descrizione */
.item_desc {
  font-size: 0.95rem;
  color: #444;
}

/* Prezzo */
.item_price {
  font-weight: bold;
  color: #28a745;
  font-size: 1.1rem;
}

.item_auction_price {
  font-size: 0.85rem;
  color: #ff6600;
}

/* Pulsante Dettagli */
.item_more a {
  display: inline-block;
  background-color: #112855;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.item_more a:hover {
  background-color: #0a1e3d;
}

/*Menu azioni utente */

.moduletable.menu_moderno {
  border: 1px solid #0d2854;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  padding: 10px 0;
}

/* Titolo del modulo */
/* Contenitore del modulo menu */
.mod-menu-moderno {
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #0d2854;
}

/* Titolo del modulo */
.mod-menu-moderno > h3 {
  background-color: #112855;
  color: #ffffff;
  margin: 0;
  padding: 14px;
  font-size: 1.1em;
  font-weight: 600;
  border-bottom: 1px solid #0d2854;
  border-radius: 10px 10px 0 0;
}

/* Lista menu */
.mod-menu-moderno ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Voce di menu */
.mod-menu-moderno ul li {
  border-bottom: 1px solid #eee;
}

.mod-menu-moderno ul li a {
  display: block;
  padding: 12px 16px;
  color: #112855;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mod-menu-moderno ul li a:hover {
  background-color: #e9eef8;
  color: #0d2854;
}

/* Voce attiva */
.mod-menu-moderno ul li.current > a,
.mod-menu-moderno ul li.active > a {
  background-color: #224faa;
  color: #ffffff;
  font-weight: bold;
}

/* Modulo misposto */
.card.moderno {
    border: 1px solid #0d2854;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.card.moderno .card-header {
    background-color: #112855;
    color: #ffffff;
    font-weight: bold;
    padding: 12px 16px;
    margin: 0;
    font-size: 1.1rem;
}

.card.moderno .card-body {
    padding: 16px;
    font-size: 1rem;
}

/* Footer */

.custom-footer {
  background-color: #112855;
  color: #ffffff;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #ced4da; /* grigio chiaro su hover */
  text-decoration: underline;
}

.footer-copy {
  color: #ffffff;
  font-size: 0.875rem;
}

.footer {
  background-image: none !important;
  background-color: #112855 !important;
  color: #fff !important;
}

.footer .grid-child {
  display: flex !important;
  justify-content: center !important;
}

/* breadcrumb */

.breadcrumb {
  --breadcrumb-padding-x: 0;
  --breadcrumb-padding-y: 0.5rem;
  --breadcrumb-margin-bottom: 1.5rem;
  --breadcrumb-bg: transparent;
  --breadcrumb-border-radius: 0;
  --breadcrumb-divider-color: #6c757d; /* grigio neutro */
  --breadcrumb-item-padding-x: 0.5rem;
  --breadcrumb-item-active-color: #495057; /* grigio scuro */
  --breadcrumb-font-size: 0.95rem;

  padding: var(--breadcrumb-padding-y) var(--breadcrumb-padding-x);
  margin-bottom: var(--breadcrumb-margin-bottom);
  font-size: var(--breadcrumb-font-size);
  background-color: var(--breadcrumb-bg);
  border-radius: var(--breadcrumb-border-radius);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.breadcrumb-item + .breadcrumb-item {
  padding-left: var(--breadcrumb-item-padding-x);
}

.breadcrumb-item + .breadcrumb-item::before {
  float: left;
  padding-right: var(--breadcrumb-item-padding-x);
  color: var(--breadcrumb-divider-color);
  content: var(--breadcrumb-divider, ">");
}

.breadcrumb-item > a {
  color: #112855; /* blu MiSposto.it */
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item > a:hover {
  color: #0d2a7a; /* blu più chiaro al passaggio */
  text-decoration: underline;
}

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

/* ====== MiSposto FAQ ====== */

.misposto_faq_elenco {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 0;
}

.misposto_faq_box {
  background: #fff;
  border: 1px solid rgba(17,40,85,0.15);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

.misposto_faq_box:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.misposto_faq_titolo {
  background: #ffffff;        
  color: #112855;            
  cursor: pointer;
  padding: 16px 48px 16px 20px; 
  font-size: 18px;
  font-weight: 600;
  position: relative;
  border-bottom: 1px solid rgba(17,40,85,0.06); 
  display: block;
  line-height: 1;            
}

.misposto_faq_titolo::after {
  content: "＋";              
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;           
  line-height: 1;
  color: #112855;            
  transition: transform 0.25s ease;
  pointer-events: none;      
}

.misposto_faq_titolo:hover {
  background: #fcfdff;
}

.misposto_faq_titolo a,
.misposto_faq_titolo h2 {
  color: inherit;
  margin: 0;
}

.misposto_faq_box.active .misposto_faq_titolo::after {
  content: "−";
  transform: translateY(-50%) rotate(0deg);
}

.misposto_faq_contenuto {
  display: none;
  padding: 20px;
  color: #444;
  font-size: 15px;
  line-height: 1.6;
}

.misposto_faq_box.active .misposto_faq_contenuto {
  display: block;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.misposto_leggi_box {
  text-align: right;
  margin-top: 10px;
}

.misposto_leggi_box .see_details {
  display: inline-block;
  padding: 8px 14px;
  background: #224faa;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.misposto_leggi_box .see_details:hover {
  background: #0b1c3f;
}

@media (max-width: 768px) {
  .misposto_faq_titolo {
    font-size: 16px;
    padding: 14px;
  }
  .misposto_faq_contenuto {
    font-size: 14px;
  }
}

