

html {
    scroll-behavior: smooth;
}

.highlight-section {
    margin: 40px auto;
    padding: 20px;
}

.accedi-container {
    text-align: center; /* Centra il testo e gli elementi inline */
}

.highlight-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-box {
    display: block;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: left;
    max-width: 350px;
    height: 500px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-box.container1 {
    background-image: url("../images/sfondo_4.avif");
    color: #ffffff; /* Testo bianco */
}

.highlight-box.container2 {
    background-image: url("../images/sfondo_5.avif");
    color: #ffffff; /* Testo nero */
    z-index: 3;
    position: relative;
}

.highlight-box.container3 {
    background-image: url("../images/sfondo_6.avif");
    color: #ffffff; /* Testo nero */
}

.highlight-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.title, .title1, .title3 {
    font-size: 36px;
    font-weight: bold;
    margin: 20px 0 10px;
}

.price, .price1, .price3 {
    font-size: 24px;
}

@media (max-width: 768px) {
    .highlight-box.container2, .highlight-box.container3 {
        display: none;
    }
    .highlight-container {
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .button-container {
        display: none;
    }
}

/* Contenitore della galleria */
.gallery-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 100px 0;
    overflow: hidden;
    background-color: #f5f5f5; /* Colore di sfondo per evitare vuoti */
}

/* Layout della galleria */
.gallery {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-out; /* Transizione fluida */
}

/* Stile delle immagini */
.gallery-image {
    height: 100%;
    width: auto;
    border-radius: 20px;
    flex: 0 0 auto;
    margin-right: 10px;
    object-fit: cover;
}

/* Rimuove il margine dall'ultima immagine */
.gallery-image:last-child {
    margin-right: 0;
}

/* Nasconde la galleria su dispositivi mobili */
@media (max-width: 768px) {
    .gallery-container {
        display: none;
    }
}

/* Contenitore per la scritta */
.header3-container {
    text-align: center;
}

/* Link che include il testo */
.header3-link {
    text-decoration: none; /* Rimuove la sottolineatura del link */
    font-size: 68px;
    font-weight: bold;
    display: inline-block; /* Per gestire meglio l'hover */
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

/* Effetto hover sul link */
.header3-link:hover {
    transform: scale(1.05); /* Leggero ingrandimento */
    text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Aggiunge un'ombra */
}

/* Testo nero */
.header3-black {
    color: black;
}

/* Testo con sfumatura */
.header3-gradient {
    background: linear-gradient(45deg, #007aff, #00b300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sottotitolo */
.header3-subtext {
    font-size: 16px;
    text-align: center;
    color: #6e6e73;
    margin-top: 10px;
}

/* Spaziatore */
.spacer {
    height: 20px; /* Altezza dello spazio */
    width: 100%; /* Per far sì che occupi tutta la larghezza */
    display: block; /* Garantisce che venga trattato come un elemento a blocco */
}
/* Media queries per dimensioni dello schermo */
@media (max-width: 1024px) {
    .header3-link {
        font-size: 40px; /* Riduce il testo per tablet */
    }

    .header3-subtext {
        font-size: 10px; /* Riduce il sottotitolo per tablet */
    }
}

@media (max-width: 768px) {
    .header3-link {
        font-size: 45px; /* Testo più piccolo per smartphone grandi */
    }

    .header3-subtext {
        font-size: 6px;
    }
}

/* Contenitore principale */
.custom-layout-section {
    margin: 40px auto;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* Griglia per la disposizione */
.custom-layout-container {
    display: grid;
    grid-template-areas:
        "box1 box2 box3"
        "box1 box4 box5";
    grid-template-columns: 1fr 1fr 1fr; /* Colonne uguali */
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

/* Box 1: iPhone 14 Pro */
.box1 {
    grid-area: box1;
    background-image: url("../images/minicontent1.avif");
    height: 450px; /* Occupare due righe */
    width: 100%;
}

/* Box 2: Aiuta l'ambiente */
.box2 {
    grid-area: box2;
    background-image: url("../images/minicontent2.avif");
    height: 210px;
}

/* Box 3: Vendi ora */
.box3 {
    grid-area: box3;
    background-image: url("../images/minicontent3.avif");
    height: 210px;
}

/* Box 4: Assistenza */
.box4 {
    grid-area: box4;
    background-image: url("../images/minicontent4.avif");
    height: 210px;
}

/* Box 5: Valuta Ora */
.box5 {
    grid-area: box5;
    background-image: url("../images/minicontent5.avif");
    height: 210px;
}

/* Stile generico per i box */
.custom-layout-container a {
    display: block;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: left;
    height: 100%;
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-layout-container a:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.custom-layout-container .title {
    font-size: 36px;
    font-weight: bold;
    margin: 20px 0 10px;
}

.custom-layout-container .price {
    font-size: 24px;
}
/* Stile specifico per il titolo del box Assistenza */
.box4 .title {
    color: #000000; /* Colore nero */
}

.box4 .price {
    color: #e5e5ea; /* Colore nero */
}
/* Media Query per schermi piccoli */
@media (max-width: 768px) {
    .custom-layout-container {
        grid-template-areas:
            "box2"
            "box3"
            "box5";
        grid-template-columns: 1fr;
    }

    /* Nascondi i box non desiderati */
    .custom-layout-container .box1,
    .custom-layout-container .box4 {
        display: none;
    }

    .custom-layout-container a {
        height: auto; /* Adatta l'altezza automaticamente */
    }
}



/* Sezione CO2 */
.co2-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  text-align:center;
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.co2-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.co2-content h1 {
  font-size: 32px;
  font-weight: bold;
  color: #000;
}

.co2-content p {
  font-size: 16px;
  line-height: 1.5;
  color: #555;
}

.co2-stats {
  display: flex;
  justify-content: center;
  gap: 50px; /* Riduce lo spazio tra i cerchi */
}

.co2-circle {
  text-align: center;
}

.circle {
  width: 120px; /* Ingrandisce i cerchi */
  height: 120px;
  border: 4px solid #007aff;  
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: rgb(0, 108, 215);  
  margin: 0 auto 10px;
}

.co2-note {
  font-size: 12px;
  color: #777;
}

.co2-content h2 {
  font-size: 18px;
  font-weight: bold;
  color: #000;
}

.co2-image-container img {
  width: 400px; /* Imposta una larghezza fissa più grande */
  height: auto;
  margin-top: 100px;
  max-width: none; /* Rimuove il limite del contenitore */
}


.co2-image-container img {
  max-width: 100%; /* Aumenta la grandezza dell'immagine */
  width: 60%; /* Per evitare che superi il contenitore */
  height: auto; /* Mantiene le proporzioni */
  border-radius: 10px;
}


.cta-button {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #007aff;  
  color: #007aff;  
  width: fit-content;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background-color: #007aff;
  color: #fff;
}

/* Media Query per schermi piccoli */
@media (max-width: 768px) {
  .co2-section {
    grid-template-columns: 1fr;
  }

  .co2-stats {
    flex-direction: row; /* Cerchi affiancati su mobile */
    justify-content: space-evenly; /* Spaziatura uniforme */
    gap: 20px; /* Riduce lo spazio tra i cerchi */
  }

  .circle {
    width: 100px; /* Ridimensiona i cerchi su mobile */
    height: 100px;
    font-size: 18px;
  }

  .co2-image-container img {
    display:none;
  }
}

/* Stile per la sezione di aiuto */
.help-section {
  background-color: #fff;
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;
}

.help-container {
  max-width: 800px;
  margin: 0 auto;
}

.help-container h2 {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.5;
  color: #000;
}

.help-container p {
  font-size: 18px;
  color: #555;
  margin: 20px 0;
}

.help-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: #007aff;  
  border: 2px solid #007aff;  
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.help-button:hover {
  background-color: #007aff;
  color: #fff;
}

/* Media query per dispositivi mobili */
@media (max-width: 768px) {
  .help-container h2 {
    font-size: 24px;
  }

  .help-container p {
    font-size: 16px;
  }

  .help-button {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* Contenitore generale */
.review-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}











/* ===================== mini-info-bar (sezione fiducia) ===================== */
.mini-info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #f1f1f2;
  border-radius: 12px;
  padding: 12px 30px;
  max-width: 1000px;
  margin: 20px auto;
  backdrop-filter: blur(8px);
}

/* Ogni elemento della mini bar */
.mini-info-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
  padding: 6px;
  transition: transform 0.2s ease-in-out;
}

/* Effetto hover morbido */
.mini-info-item:hover {
  transform: translateY(-1px);
}

/* Stile delle icone */
.mini-info-item img {
  width: 34px;
  height: 34px;
  opacity: 0.9;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

/* Effetto hover sulle icone */
.mini-info-item:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* Testo con gradiente tra rosso e viola */
.mini-info-item span {
  font-weight: 600;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(120deg, #0fd27a, #007ffa, #00b300);
    background-size: 200%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: moveGradient 5s ease-in-out infinite;
}
  @keyframes moveGradient {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* Responsive: due colonne su mobile */
@media (max-width: 768px) {
  .mini-info-bar {
      grid-template-columns: repeat(2, 1fr);
      padding: 10px 15px;
      gap: 8px;
  }

  .mini-info-item {
      justify-content: center;
      text-align: center;
  }

  .mini-info-item img {
      width: 30px;
      height: 30px;
  }

  .mini-info-item span {
      font-size: 14px;
  }
}

@media (max-width: 480px) {
  .mini-info-bar {
      grid-template-columns: repeat(2, 1fr); /* Due colonne */
      grid-template-rows: repeat(2, auto);  /* Due righe */
      text-align: center;
      padding: 20px;
  }

  .mini-info-item {
      justify-content: center;
      flex-direction: column; /* Icona sopra, testo sotto */
      gap: 4px;
  }

  .mini-info-item img {
      width: 28px;
      height: 28px;
  }

  .mini-info-item span {
      font-size: 13px;
  }
}




/* ===================== review-section (carosello) ===================== */

.review-section {
  max-width: 1200px;
  margin: 40px auto;  /* Centro orizzontale */
  padding: 0 20px;
  text-align: center;
}

.review-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

/* Contenitore principale del carosello */
.carousel-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

/* Righe orizzontali in flex */
.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Ogni recensione (card) => dimensione fissa */
.carousel-item {
  width: 300px; 
  flex-shrink: 0;
  background: #e3e3e3c5;
  margin: 0 10px;
  padding: 20px;
  text-align: center;
  border-radius: 5px;
}

.carousel-item:first-child {
  margin-left: 30px;
}

/* Immagini circolari */
.carousel-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.carousel-item h3 {
  font-size: 1.1em;
  margin: 10px 0 8px;
  color: #333;
  font-weight: 600;
}

.carousel-item p {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.4;
}

.carusel-gradient-mask {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 5;
  height: 203px;
  margin-top: 1512px;
  border-radius: 5px;
}


.carusel-gradient-left {
  left: 0;
  background: linear-gradient(to right, #666 0%, #666 40%, transparent 100%);
}

.carusel-gradient-right {
  right: 0;
  background: linear-gradient(to left, #666 0%, #666 40%, transparent 100%);
}

@media (max-width: 932px) {
  .carusel-gradient-mask {
    display: none !important;;
  }
}

/* Sezione stelle con caratteri Unicode */
.rating {
  font-size: 1.2em;
  color: #f39c12; /* Giallo/arancio */
}
.rating .empty-star {
  color: #ccc;   /* Stelle vuote più grigie */
}

/* Controlli (frecce) */
.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none; 
  z-index: 6;
}
.carousel-controls button {
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  pointer-events: all; 
  margin: 0 10px;
  transition: color 0.3s;
}
.carousel-controls button:hover {
  color: #007aff; 
}

/* Pulsante "Leggi tutte le recensioni" */
.review-button-container {
  margin-top: 10px;
}
.review-button {
  display: inline-block;
  padding: 12px 24px;
  background: #007aff;  
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.review-button:hover {
  background: #075bb4;
}

.review-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: all 0.6s ease;
}

.review-button:hover::before {
  left: 100%;
}

/* (Facoltativo) Adatta la dimensione su schermi molto piccoli */
@media (max-width: 600px) {
  .carousel-item {
    width: 310px;
    margin: 0 5px;
  }
  .carousel-item p {
    font-size: 0.9em;
  }
}

/* ===================== scopri-il-processo (vendi-iphone) ===================== */
/* ===================== scopri-il-processo (vendi-iphone) ===================== */
.how-to-sell {
  padding: 50px 20px;
  background-color: #fff;
  text-align: center;
  position: relative;
}

/* Contenitore del testo */
.container11 {
  max-width: 700px;
  margin: auto;
  padding: 30px;
  background: rgba(255, 240, 240, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  text-align: left;
}

/* Titolo con gradiente SOLO su "servizio di vendita" */
.title11 {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  color: #000;
  margin-bottom: 20px;
}

.gradient-text11 {
  background: linear-gradient(90deg, #007aff, #00b300);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Lista degli step */
.steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Singolo step */
.step {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
}

/* Numerazione cerchio rosso */
.step-number {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: #ee1d23;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Testo step */
.step-content h3 {
  font-size: 18px;
  font-weight: bold;
  color: #222;
  margin: 0;
}

.step-content p {
  font-size: 14px;
  color: #444;
  margin: 4px 0;
  line-height: 1.4;
}

/* Contenitore per il pulsante, centrato */
.button-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Stile pulsante */
.guide-button {
  display: inline-block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #007aff, #00b300);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Effetto hover */
.guide-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Immagine a lato su desktop */
.desktop-image {
  display: none;
}

/* ===================== RESPONSIVE (MIGLIORATO PER MOBILE) ===================== */

/* Desktop */
@media (min-width: 1024px) {
  .how-to-sell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .container11 {
    max-width: 50%;
  }

  .desktop-image {
    display: block;
    flex: 1;
  }

  .desktop-image img {
    max-width: 400px;
    height: auto;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .how-to-sell {
    padding: 30px 15px;
  }

  .container11 {
    padding: 20px;
  }

  /* Disposizione migliorata per mobile */
  .step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
  }

  /* Numerazione più piccola e in linea con il testo */
  .step-number {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #ee1d23;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .step-content h3 {
    font-size: 16px;
  }

  .step-content p {
    font-size: 13px;
  }

  .button-container {
    justify-content: center;
  }
}
@media (max-width: 768px) {
    .button-container {
        display: none !important;
    }
}

/* Contenitore principale che include il box e l'immagine */
.how-to-sell {
    display: flex;
    align-items: center; /* Allinea i due elementi verticalmente */
    justify-content: space-between; /* Distribuisce spazio tra i due */
    max-width: 1200px; /* Imposta una larghezza massima */
    margin: 0 auto; /* Centra il tutto */
    position: relative;
}

/* Box delle informazioni */
.container11 {
    flex: 1; /* Occupa metà dello spazio */
    max-width: 600px;
}

/* Contenitore dell'immagine della ragazza */
.desktop-image-container {
    flex: 1; /* Occupa metà dello spazio */
    position: relative;
    right: 0; /* Rimuove lo spostamento verso sinistra */
    top: auto;
    transform: none; /* Rimuove il riallineamento verticale */
    display: flex;
    justify-content: center; /* Centra l'immagine nel suo spazio */
    align-items: center;
    max-width: 600px;
}

/* Immagine della ragazza */
.desktop-image-container img {
    width: 100%;
    height: auto;
    max-width: 500px; /* Mantiene la dimensione senza eccessi */
}

/* 🌍 Responsive: Su mobile, l'immagine torna sopra */
@media (max-width: 1024px) {
    .how-to-sell {
        flex-direction: column; /* Dispone gli elementi in colonna */
        align-items: center;
        text-align: center;
    }

    .desktop-image-container {
        max-width: 400px;
        margin-top: 20px;
    }

    .desktop-image-container img {
        max-width: 350px;
    }
}


