body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #1e1e1e;
}
/* Home */
/* Header generico */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-decoration {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;  /* non interferisce con click */
  z-index: 0;
}

.header-svg {
  width: 200px;
  height: auto;
  opacity: 0.85;
  color: #3b85cc;
}

@media (max-width: 992px) {
  .header-decoration {
    display: none;
  }
}


.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  height: 90px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 3rem;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;   
  position: relative;
  transition: color 0.3s;
}

.navbar a.active {
  color: #3b85cc;
  font-weight: 700;
}

.navbar a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #3b85cc;
  left: 0;
  bottom: -4px;
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

.navbar a:hover {
  color: #3b85cc;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Trasformazione a X quando attivo */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile */
@media (max-width: 768px) {
  .navbar {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    z-index: 1000;
  }

  .navbar.open {
    max-height: none;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  .navbar ul li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: flex;
  }
}



.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.auto-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.auto-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}


/* --- Home: Hero Section --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 2rem;
  gap: 2rem;
  background: #111;
  color: white;
  position: relative;
}

.hero-image img {
  width: 650px;
  height: 660px;
  margin-right: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transition: transform 0.6s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

.hero-text {
  max-width: 800px;
  z-index: 1;
  margin-left: 150px;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
 
}

.hero span{
  color: #3b85cc;
  font-size: 4rem;
}

.hero-text p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: #3b85cc;
  color: #111;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition:0.4s;
}

.cta-button:hover {
  background: #fff;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;

  }
  
  .hero-text {
    max-width: 100%;
    margin-left: 0;
  }
  
  .hero-image {
    max-width: 100%;
    margin-top: 1.5rem;
  }
}

.hero-image img {
  max-width: 100%;
  border-radius: 10px;
}

/* --- Vantaggi Section --- */
.vantaggi {
  padding: 3rem 1rem;
  background-color: #5b9cd8c6;
  text-align: center;
}

.vantaggi h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.vantaggi-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.vantaggio {
  background: #222;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vantaggio:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 133, 204);
}

.vantaggio img {
  width: 60px;
  margin-bottom: 1rem;
   filter: brightness(0) invert(1);
}

.vantaggio h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  transition: 0.5s;
}



@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }
}


.glass-footer {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #eee;
  padding: 3rem 2rem 1rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 10;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}



.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo h3 {
  font-size: 1.8rem;
  color: #3b85cc;
  margin-bottom: 0.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #3b85cc;
}

.footer-contatti p {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #aaa;
}

.social-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a img {
  width: 32px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0) invert(1);
}

.social-icons a:hover img {
  transform: scale(1.2);
  filter: brightness(0) invert(0.6);
}


@media (max-width: 480px) {
  .site-header {
    padding: 0.5rem 1rem;
  }

  .navbar ul {
    gap: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero {
    padding: 1.5rem 1rem;
  }

  .hero-image img {
    max-width: 100%;
    height: auto;
  }

  .cta-button {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }

  .vantaggi-container {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .vantaggio {
    padding: 1rem;
  }

  .navbar {
    top: 60px; /* se serve, riduci spazio per menu */
  }

  .footer-container {
    flex-direction: column;
    gap: 1rem;
  }

  .social-icons {
    flex-direction: row;
    justify-content: center;
  }
}
/* Fine Home */

/* Chi siamo */
/* Stile generale per la pagina Chi Siamo */
main.chi-siamo {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  line-height: 1.6;

}

/* Sezioni */
main.chi-siamo section {
  margin-bottom: 3rem;
   border-radius: 12px;
  padding: 3rem 2rem;
}


/* Titoli */
main.chi-siamo h1,
main.chi-siamo h2 {
  color: #3b85cc;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

main.chi-siamo h1 {
  font-size: 2.8rem;
}

main.chi-siamo h2 {
  font-size: 2rem;
}

/* Paragrafi */
main.chi-siamo p {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
  color: white;
  text-align: center;
}



/* Lista servizi */
main.chi-siamo ul {
  list-style-type: none;
  padding: 0;
  max-width: 650px;
  margin: 0 auto;
  color:white;
}

main.chi-siamo ul li {
  margin-bottom: 1rem;
  padding-left: 1.2rem;
  position: relative;
  font-size: 1.1rem;
}

main.chi-siamo ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3b85cc;
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1;
}

/* Team */
.team {
  margin-bottom: 3rem;
  text-align: center;
}

.team h2 {
  color: #3b85cc;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.team-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: 0.5s ease-in-out;
}

.team-image-container img:hover{
  transform: scale(1.05);
box-shadow: 0 8px 20px rgba(59, 133, 204);
}

/* Responsive */
@media (max-width: 600px) {
  .team-container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
}

main.chi-siamo section:nth-child(odd) {
  background-color: #222; /* scuro */
  padding: 5px;
}

main.chi-siamo section:nth-child(even) {
  background-color: #111; /* leggermente più chiaro */
  padding: 5px;
}

@media (max-width: 600px) {
  main.chi-siamo {
    margin: 1.5rem 1rem;
    padding: 0 0.5rem;
    max-width: 100%;
  }

  main.chi-siamo section {
    padding: 1.5rem 1rem;
  }

  main.chi-siamo h1 {
    font-size: 2rem;
  }

  main.chi-siamo h2 {
    font-size: 1.5rem;
  }

  main.chi-siamo p,
  main.chi-siamo ul li {
    font-size: 1rem;
    max-width: 100%;
    text-align: left;
  }

  main.chi-siamo ul {
    padding-left: 1.2rem;
  }

  .team-image-container img {
    max-width: 90%;
    height: auto;
  }

  /* Flex per il team container */
  .team-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}


/* Fine Chi siamo */

/* Contatti  */
.contatti {
  max-width: 600px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  color: white;
  background-color: #222;
  font-family: Arial, sans-serif;
  text-align: center;
  border-radius: 12px;
}

.contatti h1,
.contatti h2 {
  color: #3b85cc;
  margin-bottom: 1rem;
}

.contatti p {
  color: #ccc;
  margin-bottom: 1.5rem;
}

.info-contatti p {
  margin: 0.3rem 0;
}

.info-contatti a {
  color: #3b85cc;
  text-decoration: none;
}

.mappa-contatti iframe {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
}


.contatti-bottoni {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-contatto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
}

.btn-contatto.tel {
  background-color: #fff;
}

.btn-contatto.mail {
  background-color: #3b85cc;
}

.btn-contatto.messaggi {
  background-color: #36ca4a;
}

.btn-contatto:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.info-contatti p {
  margin: 0.3rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.info-contatti .icon {
  width: 20px; /* dimensione icona */
  height: 20px;
  object-fit: contain;
  filter: invert(1);
}


/* Pulsante login */
.login-btn {
  background-color: transparent;
  border: 2px solid #FF9900;
  color: #FF9900;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background-color: #FF9900;
  color: black;
}

/* Modal overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

/* Modal visibile quando attivo */
.modal-overlay:target {
  display: flex;
}

/* Modal box */
.modal-content {
  background: #1c1c1c;
  color: white;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 8px 20px rgba(59, 133, 204);
}

/* Close button */
/* Modal overlay e box come prima */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(5px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Nascondiamo con opacità e visibilità */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none; /* disabilita interazioni quando nascosto */
}

/* Quando il modal è attivo */
.modal-overlay:target {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto; /* abilita interazioni */
}
.modal-content {
  background: #1c1c1c;
  color: white;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 8px 20px rgba(59, 133, 204);
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px; right: 16px;
  font-size: 1.8rem;
  color: #3b85cc;
  text-decoration: none;
}

/* Tabs container */
.tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #3b85cc;
}

/* Tab labels */
.tab-label {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0;
  cursor: pointer;
  color: #ccc;
  font-weight: 600;
  border-bottom: 4px solid transparent;
  transition: all 0.7s ease;
  user-select: none;
}

input#tab-login:checked ~ .tabs label[for="tab-login"],
input#tab-register:checked ~ .tabs label[for="tab-register"] {
  color: #3b85cc;
  border-color: #3b85cc;
}

/* Contenuti tab */
.tab-content {
  display: none;
}

input#tab-login:checked ~ #login-content,
input#tab-register:checked ~ #register-content {
  display: block;
}

/* Form styling */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-content input {
  padding: 0.6rem;
  border-radius: 6px;
  border: none;
  outline: none;
  background-color: #333;
  color: white;
}

.modal-content button {
  background-color: #3b85cc;
  color: black;
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.7s ease;
}

.modal-content button:hover {
  background-color: white;
  color: #3b85cc;
}

@media (max-width: 600px) {
  .contatti {
    max-width: 95%;
    margin: 2rem auto;
    padding: 1rem;
  }

  .contatti h1,
  .contatti h2 {
    font-size: 1.8rem;
  }

  .contatti p,
  .info-contatti p {
    font-size: 1rem;
  }

  .contatti-bottoni {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-contatto {
    width: 100%;
    padding: 12px 0;
    font-size: 1.1rem;
  }

  .mappa-contatti iframe {
    width: 100%;
    height: 250px;
  }

  /* Modal content */
  .modal-content {
    width: 90%;
    max-width: 320px;
    padding: 1.5rem;
  }

  /* Tab labels */
  .tabs {
    flex-direction: column;
  }

  .tab-label {
    padding: 0.7rem 0;
    font-size: 1rem;
    border-bottom: none;
    border-left: 4px solid transparent;
    text-align: left;
  }

  input#tab-login:checked ~ .tabs label[for="tab-login"],
  input#tab-register:checked ~ .tabs label[for="tab-register"] {
    border-left-color: #3b85cc;
    border-bottom: none;
  }
}


/* Auto */

.auto-page {
  width: 100%;
  max-width: 1800px;
  margin: 2rem auto;
  padding: 0.5rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
}

/* FILTRO */
.filtro {
  margin-bottom: 2rem;
  text-align: center;
}

.filtro h2 {
  color: #3b85cc;
  margin-bottom: 1rem;
}

/* Layout orizzontale del filtro */
.filtro form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Select e Bottoni */
.filtro select,
.filtro button {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Select */
.filtro select {
  background-color: #222;
  color: white;
}

/* Pulsante Filtra */
.filtro button[type="submit"] {
  background-color: #3b85cc;
  color: #222;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filtro button[type="submit"]:hover {
  background-color: #fff;
}

/* Pulsante Reset */
#reset-btn {
  background-color: #fff;
  color: #222;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#reset-btn:hover {
  background-color: #3b85cc;
  color: #222;
}

.btn-preferiti {
  display: inline-block;
  padding: 10px 15px;
  margin-left: 10px;
  background-color: #3b85cc;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-preferiti:hover {
  background-color: #fff;
  color: #222;
}



/* VETRINA AUTO */
.vetrina {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 card per riga fisse */
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1800px; /* opzionale per centratura */
}

/* CARD AUTO */
.card-auto {
  background-color: #222;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card-auto:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(59, 133, 204);
}

/* IMMAGINE */
.img-container {
  width: 100%;
  height: 390px;
  overflow: hidden;
  flex-shrink: 0;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card-auto:hover .img-container img {
  transform: scale(1.05);
}

/* INFO AUTO */
.info-content {
  padding: 1rem;
  background-color: #222;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-auto h3 {
  margin: 0.4rem 0;
  font-size: 1.2rem;
  color: #3b85cc;
}

.card-auto p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
  color: #ccc;
}

/* BOTTONE INFORMAZIONI */
.info-button {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  background-color: #3b85cc;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  align-self: center;
}

.info-button:hover {
  background-color: #fff;
  color: #222;
}


.badge-stato {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 6px;
  color: white;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Mostra il badge quando si passa il mouse sulla card */
.card-auto:hover .badge-stato {
  opacity: 1;
}

/* Colori degli stati */
.disponibile {
  background-color: #3b85cc; /* blu */
}

.venduta {
  background-color: #dc3545; /* rosso */
}

@media (max-width: 768px) {
  /* Griglia vetrina: da 3 a 2 colonne */
  .vetrina {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .img-container {
    height: 300px; /* altezza immagine ridotta */
  }
}

@media (max-width: 480px) {
  /* Griglia vetrina: da 2 a 1 colonna */
  .vetrina {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .img-container {
    height: 220px; /* immagine ancora più bassa */
  }

  /* Filtro: impila verticalmente */
  .filtro form {
    flex-direction: column;
    gap: 1rem;
  }

  /* Pulsanti e select a piena larghezza */
  .filtro select,
  .filtro button {
    width: 100%;
    font-size: 1.1rem;
  }

  .btn-preferiti {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
}

/* Fine auto */

/* Auto singola  */
.dettaglio-auto {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: #111;
  border-radius: 8px;
  margin-bottom: 30px;
  margin-top: 30px;
}

/* Galleria immagini */
.gallery {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 5px; /* distanza tra immagini */
}

.slides img {
  flex-shrink: 0;
  width: calc(100% - 5px); /* evita scroll orizzontale */
  max-width: calc(100% - 5px);
  height: 400px; /* imposta altezza fissa */
  object-fit: cover;
  border-radius: 8px;
}


/* Pulsanti carosello */
.gallery button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.gallery .prev {
  left: 10px;
}

.gallery .next {
  right: 10px;
}

/* Riepilogo */
.summary {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: center;
 
}

.summary h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  color: #3b85cc;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 6px;
  font-weight: bold;
}

.disponibile {
  background-color: #3b85cc;
  color: white;
}


.venduta {
  background-color: #dc3545;
  color: white;
}

.prezzo {
  font-size: 2rem;
  color: #ffcc00;
  margin: 0.5rem 0;
}

.specs ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: #ccc;
}

.specs li strong {
  color: white;
}

/* CTA Button */
.cta-button {
  background-color: #3b85cc;
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin: 1rem auto 0;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #fff;
  color: #222;
}




/* Responsive */
@media (min-width: 768px) {
  .summary {
    text-align: left;
    align-items: flex-start;
  }

  .specs ul {
    flex-direction: row;
    justify-content: flex-start;
    gap: 2rem;
  }

  .details-tabs nav {
    justify-content: flex-start;
  }
}

/* LIGHTBOX STYLES */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
}


.preferito {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 30px;
  color: gold;
  cursor: pointer;
  opacity: 0; /* Nasconde di default */
  transition: opacity 0.3s ease, color 0.3s ease;
  z-index: 2;
}

/* Mostra la stella quando l'utente passa il mouse sulla card */
.card-auto:hover .preferito {
  opacity: 1;
}

/* Mostra sempre la stella se è attiva */
.preferito .attiva {
  opacity: 1;
  color: gold;
}




.bottoni-filtri {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.bottoni-filtri button,
.bottoni-filtri a {
  padding: 8px 14px;
  background-color: #333;
  color: #fff;
  border: none;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.bottoni-filtri button:hover,
.bottoni-filtri a:hover {
  background-color: #555;
}



.auto-container {
  padding: 2rem;
}

.card-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 card per riga su desktop */
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1800px; /* opzionale per centratura */
}

/* --- Responsive sezione Preferiti / Card --- */
@media (max-width: 768px) {
  .card-wrapper {
    grid-template-columns: repeat(2, 1fr); /* 2 card per riga su tablet */
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .card-wrapper {
    grid-template-columns: 1fr; /* 1 card per riga su mobile */
    gap: 1rem;
  }

  .gallery img {
    height: 250px;
  }

  .summary h1 {
    font-size: 1.6rem;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  .specs ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}


/* Galleria */


.galleria-section {
  max-width: 1600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.galleria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  /* width: 80%; */
}

.galleria-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.galleria-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59,133,204,0.3), rgba(255,255,255,0.05));
  pointer-events: none;
}

.galleria-item:hover {
  transform: scale(1.03);
  border-color: #3b85cc;
  box-shadow: 0 0 20px rgba(59, 133, 204, 0.5);
}

.galleria-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}



.galleria-intro {
  text-align: center;
  margin-bottom: 2rem;
  color: white;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.galleria-intro h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #3b85cc;
}

.galleria-intro p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.5;
}

/* Tablet: 2 colonne */
@media (max-width: 768px) {
  .galleria-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .galleria-item img {
    height: 250px; /* Altezza più gestibile su tablet */
    object-fit: cover;
  }
}

/* Mobile: 1 colonna */
@media (max-width: 480px) {
  .galleria-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .galleria-item img {
    height: 200px; /* Altezza più compatta per schermi piccoli */
  }

  .galleria-intro h2 {
    font-size: 1.6rem;
  }

  .galleria-intro p {
    font-size: 0.95rem;
  }
}



