body{
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
}

* {
  line-height: 1.4;
  box-sizing: border-box;
}

.page-wrapper{
  width: 100%;
  max-width: 1200px;
  min-height: 2000px;
  box-shadow: 0 0 50px rgba(0,0,0,0.1);
  position: relative;
  padding-top: 80px;
  margin-bottom: 0;
}

.main-header{
  top: 0;
  left: 0;
  margin: 0;
  width: 100%;
  padding: 5px 0;
  position: absolute;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: white;
  animation-name: apparizioneDolce;
  animation-duration: 2.5s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav {
  width: 100%;
  max-width: 1160px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
}

main {
  margin-top: 60px;
  width: 100%;
}

.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #9c2a4a;
  transition: all 0.3s ease;
  border-radius: 50%;
  background-color: #f5f5f5;
  text-decoration: none;
}

.instagram-link {
  background-color: transparent;
}

.facebook-link {
  background-color: transparent;
}

/* INSTAGRAM LOGO CSS */
.insta-logo {
  display: none;
}

.insta-logo::before {
  display: none;
}

.insta-logo::after {
  display: none;
}

/* FACEBOOK LOGO CSS */
.fb-logo {
  display: none;
}

.fb-logo::before {
  display: none;
}

/* SOCIAL IMAGE */
.social-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.social-link:hover {
  background-color: #9c2a4a;
  color: white;
  transform: scale(1.1);
}

.instagram-link:hover,
.facebook-link:hover {
  transform: scale(1.1);
}

h4 {
  margin-top: 0;     
  padding-top: 0;     
  font-size: 36px;
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #9c2a4a;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 15px;
}

p{
  font-size: 18px;
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  margin: 15px 0;
}

.container-bottone{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  height: 10px;
}

button{
  background: none;
  border: none;
  padding: 0;
  outline: none;
  cursor: pointer;
}

.btn-design{
  background-color: #9c2a4a;
  color: white;
  padding: 18px 45px;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 4px 10px rgba(255, 0, 255, 0.1);
  transition: all 0.5s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-design:hover{
    transform: translateY(-3px);
    background-color: #7a1d37;
}

.btn-design:active{
  transform: translateY(0);
}

h3{
  font-size: 28px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: white;
  font-weight: 700;
  line-height: 1.3;
  margin: 20px 0;
}

.contenitore-credenziali{
  min-height: 500px;
  display: block;
  width: 100%;
  padding: 60px 20px;
  margin: 60px 0;
  background-color: #000000;
  box-shadow: none;
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}

.titolo-showroom{
  padding-top: 20px;
  margin-top: 0;
  text-align: center;
  margin: 0 auto 25px;
  width: 100%;
  color: white;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-prenota{
  width: 100%;
  padding: 16px 20px;
  background-color: #9c2a4a;
  border-radius: 8px;
  color: white;
  border: none;
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(156, 42, 74, 0.2);
}

.btn-prenota:hover{
  background-color: white;
  color: #9c2a4a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(156, 42, 74, 0.3);
}

.btn-prenota:active {
  transform: translateY(0);
}

.form-showroom{
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group{
  margin-bottom: 15px;
}

.form-group input{
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.form-row{
  margin-bottom: 15px;
  width: 100%;
  display: flex !important;
  flex-direction: row !important;
  gap: 20px;
  justify-content: center;
}

.campo-pieno{
  width: 100%;
}

.campo-meta{
  flex: 1;
  min-width: 0;
}

.campo-meta input{
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.form-showroom input[type="text"], .form-showroom input[type="tel"], .form-showroom input[type="email"], .form-showroom textarea {
  width: 100%;
  padding:  0 15px;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #333;
  font-family: inherit;
  font-size: 16px; /* evita zoom iOS su focus */
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
  height: 50px !important;
}

.form-showroom textarea{
  height: 120px !important;
  padding-top: 10px;
  resize: none;
}

.form-showroom input:focus, .form-showroom textarea:focus{
  outline: none;
  border-color: #a020f0;
  box-shadow: 0 0 5px rgba(160, 32, 240, 0.3);
}

.privacy-box{
  margin: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #ccc;
}

.privacy-box input[type="checkbox"]{
  margin-right: 10px;
  vertical-align: middle;
}

.privacy-box a{
  color: white;
  text-decoration: underline;
}

.nota-obbligatorio{
  font-size: 12px;
  color: #888;
  margin-top: 5px;
}

.error-message{
  font-size: 12px;
  margin-top: 5px;
  display: none;
  color: #ff4d4d;
}
 
.input-error{
  border: 2px solid #ff4d4d !important;
}

.hello{
  color: #9c2a4a;
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  margin: 40px 0 20px;
}

.custom{
  text-align: center;
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin-top: 40px;
  margin-bottom: 50px;
  font-size: 22px;
  line-height: 1.7;
  color: #555;
  font-weight: 400;
}

.custom2{
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
   color: #9c2a4a;
   font-size: 38px;
   font-weight: 700;
   line-height: 1.3;
   margin: 50px 0;
}

.inizio{
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
  margin: 20px 0 30px;
}

.highlight-offer {
  font-weight: 700;
  color: #000;
  display: block;
  margin-top: 8px;
  line-height: 1.5;
}

/* SEZIONE CTA */
.cta-section {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  padding: 80px 40px;
  text-align: center;
  margin: 80px 0 0 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #9c2a4a;
  font-size: 36px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 20px;
}

.cta-content p {
  color: #555;
  font-size: 18px;
  line-height: 1.6;
  margin: 20px 0 30px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-cta {
  background-color: #9c2a4a;
  color: white;
  padding: 16px 40px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 15px;
  border: 2px solid #9c2a4a;
  cursor: pointer;
  transition: all 0.4s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  display: inline-block;
}

.btn-cta:hover {
  background-color: white;
  color: #9c2a4a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(156, 42, 74, 0.2);
}

.btn-cta:active {
  transform: translateY(0);
}

/* CTA FINALE */
.cta-finale {
  background: linear-gradient(135deg, #9c2a4a 0%, #7a1d37 100%);
  padding: 80px 40px;
  text-align: center;
  margin: 0;
  color: white;
}

.cta-finale-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-finale-content h2 {
  color: white;
  font-size: 40px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 20px;
}

.cta-finale-content p {
  color: #f0f0f0;
  font-size: 19px;
  line-height: 1.6;
  margin: 20px 0 30px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-finale-cta {
  display: none;
}

.btn-finale-cta:hover {
  background-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-finale-cta:active {
  transform: translateY(0);
}

.titolo{
  margin-top: 0;
}

.logo img{
  max-width: 150px;
}

#main-logo {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0;
  animation-name: apparizioneDolce;
  animation-duration: 1.5s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

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

.scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

.flex-layout{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 80px auto;
  max-width: 900px;
}

.testo-destra{
  flex: 1;
  text-align: left;
}

.testo-destra p{
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  color: #111111;
  line-height: 1.6;
}

.lista-minimal {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-minimal li {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  color: #333;
  margin-bottom: 12px; 
  position: relative;
  padding-left: 25px; 
  font-weight: 600;
  line-height: 1.6;
}

.lista-minimal li::before {
  content: "•"; 
  color: #9c2a4a;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ============================================ */
/* SEZIONE CAROSELLO IMMAGINI */
/* ============================================ */
.carousel-title {
  color: #9c2a4a;
  font-size: 36px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  margin: 0 0 15px;
}

.carousel-subtitle {
  color: #666;
  font-size: 18px;
  margin-bottom: 40px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 0;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  padding: 0;
}

.carousel-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: block;
}

.carousel-caption {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.carousel-arrow:hover {
  background-color: #000000;
  transform: translateY(-50%) scale(1.1);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background-color: #9c2a4a;
  width: 30px;
  border-radius: 6px;
}

/* ============================================ */
/* GESTIONE IMMAGINI - DESKTOP e MOBILE */
/* ============================================ */

.container-foto-dinamico {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  line-height: 0;
  overflow: hidden;
}

/* FIX - immagini e sezioni full-width su mobile e tablet */
.cta-section,
.sezione-mappa,
.container-foto-dinamico {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.cta-section {
  padding: 60px 15px !important;
}

.sezione-mappa {
  padding: 40px 15px !important;
}

.foto-desktop-main {
  display: block !important;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
}

.foto-mobile {
  display: none !important;
}

@media (max-width: 1024px) {
  .foto-desktop-main {
    display: none !important;
  }

  .foto-mobile {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
}

/* ============================================ */
/* MEDIA QUERY PER MOBILE (fino a 768px) */
/* ============================================ */
@media (max-width: 768px) {
  .social-icons {
    display: flex;
    gap: 10px;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }

  /* MODIFICHE MOBILE - PADDING LATERALE PER TESTI IPER AL CENTRO */
  .page-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* blocchi full width per allineamento attaccato al wrapper */
  .container-foto-dinamico,
  .cta-section,
  .sezione-mappa {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .cta-section {
    padding: 60px 15px !important;
  }

  .sezione-mappa {
    padding: 40px 15px !important;
  }

  .foto-mobile {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    display: block !important;
  }

  h4.titolo {
    font-size: 28px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
  }

  p.inizio {
    font-size: 18px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
  }

  .hello {
    font-size: 28px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
  }

  .custom {
    font-size: 18px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
  }

  .custom2 {
    font-size: 28px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
  }

  .cta-section {
    padding: 40px 25px;
    margin: 40px 0 0 0;
  }

  .cta-content h2 {
    font-size: 26px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .cta-content p {
    font-size: 16px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .contenitore-credenziali {
    padding: 40px 25px;
  }

  .titolo-showroom {
    font-size: 26px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .form-showroom {
    padding: 20px 10px;
  }

  .btn-design {
    padding: 14px 30px;
    font-size: 13px;
    white-space: normal;
    text-align: center;
  }

  .container-bottone {
    padding: 20px 20px;
    height: auto;
  }

  .btn-prenota {
    padding: 14px 15px;
    font-size: 13px;
  }

  .inizio {
    margin: 25px 0 40px;
    font-size: 18px;
    line-height: 1.9;
    padding: 20px 15px;
  }

  .btn-cta {
    padding: 14px 30px;
    font-size: 14px;
  }

  .btn-preventivo {
    padding: 14px 30px;
    font-size: 14px;
    margin: 20px auto;
  }

  .footer-section {
    padding: 40px 25px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .footer-column h4 {
    text-align: center;
  }

  .footer-column p, .footer-column a {
    text-align: center;
  }

  .footer-column ul {
    text-align: center;
  }

  .footer-bottom {
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* CAROSELLO MOBILE */
  .carousel-title {
    font-size: 28px !important;
    padding: 0 20px !important;
  }
  
  .carousel-subtitle {
    font-size: 16px !important;
    padding: 0 20px !important;
  }
  
  .carousel-container {
    padding: 0 30px !important;
  }
  
  .carousel-image {
    max-height: 300px !important;
  }
  
  .carousel-caption {
    font-size: 14px !important;
    margin-top: 15px !important;
    color: #ffffff;
  }
  
  .carousel-dots {
    gap: 10px !important;
    margin-top: 20px !important;
  }
  
  .carousel-dot {
    width: 10px !important;
    height: 10px !important;
  }
  
  .carousel-dot.active {
    width: 25px !important;
  }

  /* MAPPA ATTACCATA */
  .btn-preventivo {
    margin: 30px auto 0 auto !important;
  }
}

/* SUCCESS MODAL - POP-UP CONFERMA */
.success-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease-out;
  align-items: center;
  justify-content: center;
}

.success-modal.active {
  display: flex;
}

.success-modal-content {
  background-color: white;
  border-radius: 12px;
  padding: 50px 40px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.4s ease-out;
}

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

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #4caf50;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 25px;
  font-weight: 600;
}

.success-modal-content h2 {
  color: #9c2a4a;
  font-size: 32px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  margin: 0 0 15px;
  line-height: 1.3;
}

.success-modal-content p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin: 12px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.modal-details {
  color: #333;
  font-weight: 500;
  margin-top: 15px;
}

.modal-details-secondary {
  color: #888;
  font-size: 14px;
  margin-bottom: 25px;
}

.btn-modal-close {
  background-color: #9c2a4a;
  color: white;
  padding: 14px 40px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: all 0.3s ease;
}

.btn-modal-close:hover {
  background-color: #7a1d37;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .success-modal-content {
    margin: 20px;
    padding: 40px 25px;
  }

  .success-icon {
    width: 70px;
    height: 70px;
    font-size: 40px;
  }

  .success-modal-content h2 {
    font-size: 26px;
  }

  .success-modal-content p {
    font-size: 15px;
  }

  .btn-modal-close {
    width: 100%;
    padding: 12px 20px;
  }
}

.rettangolo-showroom {
  background-color: #000000;
  padding: 40px;
  text-align: center;
  border-top: none;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  display: none;
}

.titolo-visita {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff;
  font-size: 36px;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.testo-visita {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  color: #cccccc;
  margin-bottom: 15px;
  line-height: 1.6;
}

.indirizzo-visita {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .foto-desktop-main {
    display: none !important;
  }

  .foto-mobile {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 768px) {
  
  /* FIX: Allinea il rettangolo mappa con page-wrapper */
  .rettangolo-showroom {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 25px 20px !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
  
  .btn-preventivo {
    width: calc(100% - 40px) !important;
    max-width: 280px !important;
    margin: 25px auto 0 auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  }

/* SEZIONE IMMAGINI */
.sezione-immagini {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  line-height: 0;
  overflow: hidden;
}

.img-showcase {
  display: block !important;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
}

/* MAPPA QUADRATA */
/* NASCONDERE CTA FINALE */
.cta-finale {
  display: none;
}

.cta-finale-content {
  display: none;
}

/* BOTTONE PREVENTIVO */
.btn-preventivo {
  background-color: #9c2a4a;
  color: white;
  padding: 16px 45px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(156, 42, 74, 0.2);
  transition: all 0.4s ease;
  display: block;
  margin: 30px auto;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-preventivo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(156, 42, 74, 0.3);
  background-color: white;
  color: #9c2a4a;
}

.btn-preventivo:active {
  transform: translateY(0);
}

/* FOOTER */
.footer-section {
  width: 100%;
  background-color: #1a1a1a;
  padding: 60px 20px 20px;
  margin-top: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h4 {
  color: #9c2a4a;
  font-size: 17px;
  margin-top: 0;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
}

.footer-column p, .footer-column a {
  color: #cccccc;
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-column a:hover {
  color: #9c2a4a;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  text-align: center;
  color: #888;
  font-size: 13px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

.footer-bottom p {
  margin: 10px 0;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-top: 2px solid #9c2a4a;
  padding: 25px 20px;
  z-index: 9999;
  max-height: 350px;
  overflow-y: auto;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  display: none;
  animation: slideUp 0.3s ease-out;
}

.cookie-banner.active {
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-header {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-description {
  color: #cccccc;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-accept-all {
  background-color: #9c2a4a;
  color: white;
}

.cookie-accept-all:hover {
  background-color: #7a1d37;
}

.cookie-reject {
  background-color: transparent;
  color: #cccccc;
  border: 1px solid #cccccc;
}

.cookie-reject:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.cookie-preferences {
  background-color: transparent;
  color: #9c2a4a;
  border: 1px solid #9c2a4a;
}

.cookie-preferences:hover {
  background-color: #9c2a4a;
  color: white;
}

/* MODAL PREFERENZE COOKIE */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cookie-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal-content {
  background-color: #1a1a1a;
  border: 2px solid #9c2a4a;
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
}

.cookie-modal-header {
  color: #9c2a4a;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  margin-top: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-preference-item {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.cookie-preference-item:last-child {
  border-bottom: none;
}

.cookie-preference-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cookie-preference-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 28px;
  background-color: #333;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #555;
}

.cookie-toggle.active {
  background-color: #9c2a4a;
  border-color: #9c2a4a;
}

.cookie-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookie-toggle.active .cookie-toggle-slider {
  left: 24px;
}

.cookie-preference-description {
  color: #aaaaaa;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-modal-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.cookie-modal-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-modal-accept {
  background-color: #9c2a4a;
  color: white;
}

.cookie-modal-accept:hover {
  background-color: #7a1d37;
}

.cookie-modal-cancel {
  background-color: transparent;
  color: #cccccc;
  border: 1px solid #cccccc;
}

.cookie-modal-cancel:hover {
  color: #ffffff;
  border-color: #ffffff;
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 20px 15px;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-modal-content {
    margin: 20px;
    padding: 25px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .btn-preventivo {
    padding: 14px 30px;
    font-size: 14px;
    margin: 20px auto;
  }

  .btn-prenota {
    padding: 14px 15px;
    font-size: 13px;
  }

  .inizio {
    margin: 25px 0 40px;
    font-size: 18px;
    line-height: 1.9;
    padding: 20px 0;
  }

  .cta-section {
    padding: 40px 20px;
    margin: 40px 0;
  }

  .cta-content h2 {
    font-size: 26px;
  }

  .cta-content p {
    font-size: 16px;
  }

  .btn-cta {
    padding: 14px 30px;
    font-size: 14px;
  }

  .cta-finale {
    padding: 40px 20px;
  }

  .cta-finale-content h2 {
    font-size: 28px;
  }

  .cta-finale-content p {
    font-size: 16px;
  }

  .btn-finale-cta {
    padding: 14px 35px;
    font-size: 14px;
  }
}

.img4{
 margin-top: 0;
 align-items: top;
}

/* ============================================ */
/* FRECCE CAROSELLO - ESTERNE E SIMMETRICHE */
/* ============================================ */

.carousel-arrow:hover {
  background-color: #7a1d37 !important;
  transform: scale(1.1) !important;
}

/* TABLET */


/* MOBILE */


/* IPHONE PICCOLI */


/* ============================================ */
/* MODAL PER IMMAGINI INGRANDITE - OSCURA TUTTA LA PAGINA */
/* ============================================ */

.image-modal {
  display: none;
  position: fixed;
  z-index: 10002;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  align-items: flex-start;
  justify-content: center;
  transition: background-color 0.3s ease;
  overflow-y: auto;
  padding: 50px 20px;
  box-sizing: border-box;
}

.image-modal.active {
  display: flex;
  background-color: rgba(0, 0, 0, 0.9);
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  margin: auto;
  text-align: center;
  animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.image-modal-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.image-modal-caption {
  color: white;
  font-size: 18px;
  margin-top: 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.6);
  display: inline-block;
  padding: 8px 20px;
  border-radius: 30px;
}

@media (max-width: 768px) {
  .image-modal {
    padding: 30px 15px;
  }
  
  .image-modal-img {
    max-height: 70vh;
  }
  
  .image-modal-caption {
    font-size: 14px;
    margin-top: 15px;
    padding: 6px 16px;
  }
}

/* ============================================ */
/* CAROSELLO - IMMAGINI QUADRATE SU MOBILE */
/* ============================================ */

/* Per tutti i dispositivi */
.carousel-slide {
  position: relative;
}

.carousel-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* TABLET (max-width: 900px) */
@media (max-width: 900px) {
  .carousel-image {
    max-height: 400px;
  }
}

/* MOBILE (max-width: 768px) - IMMAGINI QUADRATE */
@media (max-width: 768px) {
  .carousel-slide {
    position: relative;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden;
    border-radius: 12px;
  }
  
  .carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: none !important;
    object-fit: cover;
    border-radius: 12px;
  }
  
  .carousel-caption {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    margin-top: 10px;
  }
}

/* IPHONE PICCOLI (max-width: 480px) */
@media (max-width: 480px) {
  .carousel-slide {
    aspect-ratio: 1 / 1 !important;
  }
  
  .carousel-caption {
    font-size: 12px;
    padding: 6px 12px;
    margin-top: 8px;
  }
}

/* FIX CAROSELLO MOBILE - ASSICURA CHE IL TRACK FUNZIONI */
@media (max-width: 768px) {
  .carousel-container {
    padding: 0 30px !important;
  }
  
  .carousel-track-container {
    overflow: hidden;
    border-radius: 12px;
  }
  
  .carousel-track {
    display: flex;
  }
  
  .carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
  }
}

/* ============================================ */
/* SEZIONE MAPPA - FIX MOBILE */
/* ============================================ */

/* Sezione mappa - sfondo nero */
/* Contenitore mappa - quadrato e centrato */
/* Bottone preventivo */
.btn-preventivo {
  background-color: #9c2a4a;
  color: white;
  padding: 16px 45px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(156, 42, 74, 0.2);
  transition: all 0.4s ease;
  display: block;
  margin: 30px auto 0 auto;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: center;
}

.btn-preventivo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(156, 42, 74, 0.3);
  background-color: white;
  color: #9c2a4a;
}

/* ============================================ */
/* FIX MOBILE - SEZIONE MAPPA */
/* ============================================ */

@media (max-width: 768px) {
  
  /* Sezione mappa - padding ridotto */
  /* Contenitore mappa - più compatto */
  /* Bottone preventivo - più piccolo e centrato */
  .btn-preventivo {
    width: 85% !important;
    max-width: 280px !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    margin: 25px auto 0 auto !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

/* IPHONE PICCOLI (max-width: 480px) */
@media (max-width: 480px) {
  .btn-preventivo {
    width: 90% !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
    margin-top: 20px !important;
  }
}

/* ============================================ */
/* SEZIONE MAPPA - FIX MOBILE */
/* ============================================ */

/* Sezione mappa - sfondo nero */
/* Contenitore mappa - quadrato e centrato */
/* Bottone preventivo */
.btn-preventivo {
  background-color: #9c2a4a;
  color: white;
  padding: 16px 45px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(156, 42, 74, 0.2);
  transition: all 0.4s ease;
  display: block;
  margin: 30px auto 0 auto;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: center;
}

.btn-preventivo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(156, 42, 74, 0.3);
  background-color: white;
  color: #9c2a4a;
}

/* ============================================ */
/* FIX MOBILE - SEZIONE MAPPA */
/* ============================================ */

@media (max-width: 768px) {
  
  /* Sezione mappa - padding ridotto */
  /* Contenitore mappa - più compatto */
  /* Bottone preventivo - più piccolo e centrato */
  .btn-preventivo {
    width: 85% !important;
    max-width: 280px !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    margin: 25px auto 0 auto !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

/* IPHONE PICCOLI (max-width: 480px) */
@media (max-width: 480px) {
  .btn-preventivo {
    width: 90% !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
    margin-top: 20px !important;
  }
}


@media (max-width: 768px) {
  
  /* ... tuo codice esistente ... */
  
  /* ========== FIX MAPPA MOBILE ========== */
  
  /* Forza il rettangolo showroom a essere visibile */
  .rettangolo-showroom {
    display: block !important;
    background-color: #000000 !important;
    padding: 25px 20px !important;
    margin: 0 0 25px 0 !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Titolo */
  .titolo-visita {
    display: block !important;
    font-size: 24px !important;
    color: #ffffff !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
    text-align: center !important;
  }
  
  /* Testo descrittivo */
  .testo-visita {
    display: block !important;
    font-size: 14px !important;
    color: #cccccc !important;
    margin-bottom: 10px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    padding: 0 10px !important;
  }
  
  /* Indirizzo */
  .indirizzo-visita {
    display: block !important;
    font-size: 14px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-align: center !important;
    word-break: break-word !important;
    padding: 0 5px !important;
  }
  
  /* Contenitore mappa */
  /* Bottone */
  .btn-preventivo {
    width: 85% !important;
    max-width: 280px !important;
    padding: 14px 20px !important;
    font-size: 13px !important;
    margin: 25px auto 0 auto !important;
    display: block !important;
    text-align: center !important;
  }
}

/* FORZA DEFINITIVA MAPPA */
.rettangolo-showroom {
  display: block !important;
}

.titolo-visita {
  display: block !important;
}

.testo-visita {
  display: block !important;
}

.indirizzo-visita {
  display: block !important;
}

/* ==============================
   Consolidated: Map + Carousel
   (fix mobile overflow/alignment)
   ============================== */

/* Map section */
.sezione-mappa {
  width: 100%;
  margin: 0;
  padding: 60px 20px;
  background-color: #000000;
  box-sizing: border-box;
  text-align: center;
}

@media (max-width: 768px) {
  .sezione-mappa { padding: 40px 15px; }
}

@media (max-width: 480px) {
  .sezione-mappa { padding: 30px 10px; }
}

.contenitore-mappa {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  line-height: 0;
}

@media (max-width: 768px) {
  .contenitore-mappa { max-width: 320px; }
}

@media (max-width: 480px) {
  .contenitore-mappa { max-width: 280px; }
}

.contenitore-mappa iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  display: block;
}

/* Carousel section */
.carousel-section {
  background-color: #fff;
  padding: 60px 40px;
  text-align: center;
  margin: 0;
  overflow: hidden; /* prevents arrows/track from widening the page */
}

@media (max-width: 768px) {
  .carousel-section { padding: 40px 15px; }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #9c2a4a;
  color: #ffffff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

@media (max-width: 768px) {
  .carousel-arrow { width: 38px; height: 38px; font-size: 24px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}

@media (max-width: 480px) {
  .carousel-arrow { width: 32px; height: 32px; font-size: 20px; }
}

@supports (-webkit-touch-callout: none) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}