/* Custom CSS con prefisso */


.oneauto-container{
    max-width: 1320px !important;
}

.oneauto-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
    margin-top: 10px;
}
.oneauto-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-left: 5px;
}

.oneauto-main-title_mobile {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0;
}
.oneauto-subtitle_mobile {
    font-size: 1rem;
    color: #7f8c8d;
}



.oneauto-back-link {
    font-weight: 500;
    color: #3498db;
    transition: all 0.3s ease;
}
.oneauto-back-link:hover {
    transform: translateX(-5px);
    color: #2980b9;
}

/* Galleria immagini */
.oneauto-gallery-main {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 2px solid #DDD;
}
.oneauto-gallery-main:hover {
    transform: scale(1.01);
}

.oneauto-thumb-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

/*.oneauto-gallery-thumb {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    
}*/
.oneauto-gallery-thumb:hover {
    /*transform: translateY(-5px);
    transform: scale(1.02);*/
}

img.oneauto-gallery-thumb{
  border: 4px solid;
}

.sticky-shadow {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.oneauto-price-box {
    /*background-color: #EDF3F9;*/
    background-color: #D7E0EA;
    border-radius: 1rem;
    padding: 1.5rem;
    /*text-align: center;*/
    /*box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);*/
    box-shadow: 0 1rem 3rem rgba(0,0,0,.2);
}
.oneauto-price {
    font-size: 2.5rem;
    font-weight: 700;
    
}
.oneauto-cta-btn {
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
}

.oneauto-price-mobile {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}


.boxauto-icone-onenauto{
    width: 32px !important;
    height: 32px !important;
    margin: 0 0 17px 0;
} 

.testo-icona-oneauto{
  font-size: 0.75rem;
    color: #7f8c8d;
}

.valore-icona-oneauto{
  margin-top: -5px;
  font-weight: bold;
  color: #000;
}

.div-dettagli-icona-oneauto{
  margin-top: -14px
}

.titolo-dettaglio{
  font-size: 1.5rem;
  color: #2c3e50;
  font-weight: bold;
  padding: 0 0 20px 7px;
  
}

.testo-prenota-oneauto{
  font-size: 0.80rem;
  margin-top: 15px;
  line-height: normal;
}

.icona-prenota-oneauto{
  font-size: 2rem;
  margin-top: -5px;
}

.box-prenota-oneauto{
  background-color: #eee;
  padding: 20px 5px 10px;
  margin: 30px 0 20px;
  cursor: pointer;	
  
}


.oneauto-price-box.sticky-lg-top{
  top: 120px;
}


.emboss {
  background: #EDF3F9;
  box-shadow: -7px -7px 16px 0 #FFFFFF, 7px 7px 10px -4px rgba(116,150,179,0.27);
  border-radius: 18px;  
}
.emboss-press {
  box-shadow: inset 3px 3px 7px 0 rgba(116,150,179,0.32), inset -4px -4px 6px 0 #FFFFFF;
transition: all 1s linear;
}
.emboss-inner {

  background: #EDF3F9;
  box-shadow: inset 3px 3px 7px 0 rgba(116,150,179,0.32), inset -4px -4px 6px 0 #FFFFFF;
  border-radius: 18px;
  display: block;

}

.emboss:hover {
  transform: translateY(-2px);
  box-shadow: -9px -9px 18px 0 #FFFFFF, 9px 9px 12px -4px rgba(116,150,179,0.3);
}

.emboss:hover .icona-prenota-oneauto {
  color: #0d6efd;
  transform: scale(1.1);
  transition: all 0.3s ease;
}




.contact-info-box {
  margin-top: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}



.vehicle-location {
    text-align: center;
    padding: 0.5rem;
    
}

/* Oppure versione più minimal */
.vehicle-location {
    text-align: center;
    margin-top: 0.5rem;
}

.vehicle-location small {
    font-size: 0.85rem;
    line-height: 1.4;
}


/* ========================================
   VANTAGGIO CLIENTE - BOX PREMIUM
   ======================================== */

.oneauto-vantaggio-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 3px solid #28a745;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
}

.oneauto-vantaggio-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.3);
}

.oneauto-vantaggio-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e7e34;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.oneauto-vantaggio-value {
    font-size: 2rem;
    font-weight: 900;
    color: #155724;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.oneauto-vantaggio-icon-box {
    font-size: 2rem;
    color: #28a745;
}


/* Media queries */
@media (min-width: 992px) {
    .oneauto-gallery-main-container {
        height: calc(3 * 250px + 2 * 1rem); /* Altezza = 3 foto + 2 spazi */
        position: relative;
    }
    
    .oneauto-gallery-main {
        height: 100%;
        object-fit: cover;
    }
    
    .oneauto-thumb-container {
        height: 100%;
    }
    
    .oneauto-gallery-thumb {
        height: 250px;
    }
    
    .boxauto-icone-onenauto{
      width: 40px !important;
      height: 40px !important;
      margin: 0 10px 17px 0;
  } 
    
}

@media (max-width: 991.98px) {
    .oneauto-gallery-main {
        width: 100%;
        height: auto;
    }
    
    .oneauto-main-title {
        font-size: 1.8rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 10px;
    }
    .oneauto-subtitle {
        font-size: 1rem;
        color: #7f8c8d;
    }
    .oneauto-price {
        font-size: 1.5rem;
        font-weight: 700;
        color: #2c3e50;
        margin-right: 50px;
    }
    
    /* Vantaggio Box Mobile */
    .oneauto-vantaggio-box-mobile {
        background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
        border: 2px solid #28a745;
        border-radius: 0.75rem;
        padding: 1rem;
        text-align: center;
        margin: 1rem 1.5rem; /* Margini laterali aggiunti */
    }
    
    .oneauto-vantaggio-value {
        font-size: 1.5rem;
    }
    
    .oneauto-vantaggio-icon-box {
        font-size: 1.5rem;
    }
    
    .oneauto-vantaggio-label {
        font-size: 0.85rem; /* Leggermente ridotto su mobile */
    }
    
    /*.header-mobile-sticky {
        position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.0);
    }*/
   
}


.footer-mobile-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 0.75rem 1rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1); /* Ombra in alto */
    z-index: 1010; /* Z-index alto ma inferiore all'header */
}

.footer-mobile-sticky-content {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    height: 100%;
}

.footer-mobile-btn {
    flex: 1 1 75%; /* Occupa 75% della larghezza */
    margin: 0;
    min-width: 0;
}

.footer-mobile-whatsapp {
    flex: 0 0 25%; /* Occupa 25% della larghezza */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.footer-mobile-whatsapp:hover {
    background-color: #e9e9e9;
    transform: scale(1.05);
}

/* Aggiunge spazio al body per evitare che il button copra il footer */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px; /* Altezza approssimativa del button sticky */
    }

    .ch2 {
        display: none !important;
    }
}


/* ========================================
   RIBBON SCONTO PERCENTUALE - CARD AUTO
   Posizione: BASSO DESTRA (sopra immagine)
   Colore: VERDE (risparmio/convenienza)
   ======================================== */

.boxauto-ribbon-sconto {
  position: absolute;
  bottom: 280px;
  right: 12px;
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: white;
  padding: 8px 16px;
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
  z-index: 15;
  pointer-events: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hover effect sulla card: ribbon si ingrandisce */
.boxauto-card:hover .boxauto-ribbon-sconto {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.6);
}

/* Responsive Mobile */
@media (max-width: 991.98px) {
  .boxauto-ribbon-sconto {
    top: 455px;
    right: 10px;
    padding: 6px 12px;
    font-size: 0.95rem;
  }
}

@media (max-width: 575px) {
  .boxauto-ribbon-sconto {
    top: 230px;
    right: 8px;
    padding: 5px 10px;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
  }
}

/* ========================================
   PREZZO BARRATO NELLA CARD
   ======================================== */

/* Prezzo barrato più piccolo */
.boxauto-card .text-decoration-line-through {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.2;
}

/* Prezzo finale evidenziato */
.boxauto-card .h5.text-primary {
  line-height: 1;
  margin-top: 2px;
}

/* Contenitore prezzi allineato a destra */
.boxauto-card .text-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* Mobile: prezzi più compatti */
@media (max-width: 575px) {
  .boxauto-card .text-decoration-line-through {
    font-size: 0.75rem;
  }
  
  .boxauto-card .h5.text-primary {
    font-size: 1.1rem;
  }
}