@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* --- CUSTOM MODERN RESET & UTILITIES --- */
html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

::selection {
  background-color: #f97739;
  color: #fff;
}

/* --- MAIN APP WRAPPER (Preserving Original Structure) --- */
#app {
  font-family: 'Lato', 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  font-size: 18px;
  line-height: 1.6;
}

#app body, #app html {
  font-family: 'Lato', sans-serif;
}

#app a {
  text-decoration: none;
  color: #000;
  transition: color 0.3s ease;
}

#app a:hover {
  color: #f97739;
}

#app li {
  text-decoration: none;
}

/* --- HEADER & NAVIGATION --- */
#app .head {
  background-color: #f97739;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

#app .head a {
  color: #fff;
}

#app .head a:hover {
  color: #000;
}

#app .head .navbar-brand {
  margin: 10px 10px 10px 50px;
}

#app .head .navbar-brand img {
  height: 50px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

#app .head .navbar-brand img:hover {
  transform: scale(1.05);
}

#app .head .nav-link {
  color: #000 !important;
  font-weight: 700;
  margin: 0 15px;
  position: relative;
  transition: color 0.3s ease;
}

#app .head .nav-link:hover {
  color: #fff !important;
}

/* Active navigation state */
#app .head .nav-item.active .nav-link {
  color: #fff !important;
}

#app .head .navbar-collapse {
  justify-content: flex-end;
  margin-right: 60px;
  font-size: 22px;
}

/* Toggler Custom Styling */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  outline: none !important;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
  background-color: rgba(255, 255, 255, 0.1);
}


/* --- HERO BANNERS --- */
#app .banner {
  position: relative;
  text-align: center;
  overflow: hidden;
}

#app .banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 250px;
  max-height: 450px;
  filter: brightness(0.95);
}

#app .banner h1 {
  position: absolute;
  top: 28%;
  left: 8%;
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: -1px;
}

#app .banner h2 {
  position: absolute;
  top: 45%;
  left: 8%;
  color: #f97739;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-left: 6px solid #f97739;
  max-width: 50%;
  line-height: 1.3;
}

/* Mobile Hero Banner */
.banner-mobile {
  display: none;
}

/* --- GRID ROWS --- */
#app .row {
  padding: 0;
  margin: 0;
}

/* --- HOME PAGE SECTIONS --- */
#app #home {
  padding: 0;
  margin: 0;
}

#app #home img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#app #home img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

#app #home .first-section,
#app #home .second-section,
#app #home .third-section {
  margin: 70px 40px;
}

#app #home .col-lg-4,
#app #home .col-lg-8 {
  padding: 15px;
}

/* Section Box Styling */
#app #home .first-section .col-lg-4 {
  border: none;
  border-radius: 30px;
  background-color: #bcf7f8;
  padding: 50px 40px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(188, 247, 248, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#app #home .first-section .col-lg-4 h3,
#app #home .second-section .col-lg-4 h3,
#app #home .third-section .col-lg-4 h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 25px;
}

#app #home .first-section .col-lg-4 p,
#app #home .second-section .col-lg-4 p,
#app #home .third-section .col-lg-4 p {
  font-size: 1.15rem;
  line-height: 1.7;
}

#app #home .first-section .col-lg-4 span,
#app #home .second-section .col-lg-4 span,
#app #home .third-section .col-lg-4 span {
  font-weight: 700;
}

#app #home .second-section .col-lg-4 {
  border: none;
  border-radius: 30px;
  background-color: #273245;
  padding: 50px 40px;
  color: #fff;
  text-align: left;
  box-shadow: 0 10px 30px rgba(39, 50, 69, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#app #home .third-section .col-lg-4 {
  border: none;
  border-radius: 30px;
  background-color: #f68c58;
  padding: 50px 40px;
  color: #fff;
  text-align: left;
  box-shadow: 0 10px 30px rgba(246, 140, 88, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mobile Button Images (Tastoni) */
.mobile-btn-link {
  display: block;
  width: 100%;
}

.mobile-btn-link img {
  width: 100%;
  height: auto;
  border-radius: 15px !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
  transition: transform 0.2s ease !important;
}

.mobile-btn-link img:hover {
  transform: scale(1.02) !important;
}

/* --- CHI SIAMO PAGE --- */
#app #chi-siamo {
  text-align: justify;
  text-justify: inter-word;
  padding: 0;
  margin: 0;
}

#app #chi-siamo img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

#app #chi-siamo span {
  font-weight: 700;
  color: #f97739;
}

#app #chi-siamo .col-lg-6 {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#app #chi-siamo .col-lg-6 p {
  padding: 0;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #34495e;
}

/* --- SERVIZI PAGE --- */
#app #servizi {
  text-align: justify;
  text-justify: inter-word;
}

#app #servizi img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

#app #servizi span {
  font-weight: 700;
  color: #f97739;
}

#app #servizi .servizi-text {
  padding: 60px 10%;
}

#app #servizi .servizi-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #34495e;
}

#app #servizi .servizi-text img {
  margin: 40px auto;
  display: block;
  max-width: 80%;
}

/* --- CONTATTI PAGE & FORM --- */
#app #contatti {
  text-align: justify;
  text-justify: inter-word;
}

#app #contatti img {
  width: 100%;
}

#app #contatti span {
  font-weight: 700;
}

#app #contatti .contact-form-section {
  padding: 60px;
}

#app #contatti .contact-form-section h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #2c3e50;
  border-bottom: 3px solid #f97739;
  display: inline-block;
  padding-bottom: 5px;
}

#app #contact-form input, 
#app #contact-form textarea {
  width: 100%;
  border-radius: 12px;
  margin: 12px 0;
  height: 55px;
  padding: 15px 20px;
  border: 2px solid #bdc3c7;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#app #contact-form input:focus, 
#app #contact-form textarea:focus {
  border-color: #f97739;
  outline: none;
  box-shadow: 0 0 8px rgba(249, 119, 57, 0.25);
}

#app #contact-form textarea {
  height: 150px !important;
  resize: none;
}

#app #contact-form .error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  display: block;
  text-align: left;
  margin-top: -8px;
  margin-bottom: 10px;
  font-weight: 700;
}

#app #contact-form .btn-primary {
  color: #fff;
  background-color: #f97739;
  border: none;
  width: 100%;
  max-width: 250px;
  height: 55px;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(249, 119, 57, 0.3);
  transition: all 0.3s ease;
  margin-top: 15px;
}

#app #contact-form .btn-primary:hover:not(:disabled) {
  background-color: #e05e1f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 119, 57, 0.4);
}

#app #contact-form .btn-primary:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
  box-shadow: none;
}

/* Right side details (Recapiti) */
#app #contatti .recapiti {
  padding: 60px;
  background-color: #f97739;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: -5px 0 25px rgba(0,0,0,0.05);
}

#app #contatti .recapiti h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  padding-bottom: 10px;
}

#app #contatti .recapiti p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

#app #contatti .recapiti a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s ease;
}

#app #contatti .recapiti a:hover {
  color: #000;
}

/* --- FOOTER --- */
#app footer {
  text-align: left;
}

#app footer a, 
#app footer p {
  color: #bdc3c7;
  transition: color 0.2s ease;
}

#app footer a:hover {
  color: #f97739;
}

#app footer h3 {
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 25px;
  border-left: 4px solid #f97739;
  padding-left: 10px;
}

#app footer .footer {
  background-color: #1c1c1c;
  padding: 60px 80px;
}

#app footer .footer p {
  margin-bottom: 12px;
  font-size: 1rem;
}

#app footer .footer span {
  font-style: italic;
  color: #fff;
}

#app footer .copyright {
  background-color: #111111;
  text-align: center;
  padding: 25px;
  border-top: 1px solid #2c3e50;
}

#app footer .copyright p {
  margin: 0;
  font-size: 0.95rem;
  color: #7f8c8d;
}

#app footer .copyright a {
  color: #f97739;
  font-weight: 700;
}

/* --- SCOOTER / MONOPATTINO SECTION --- */
#app #home .scooter-section {
  margin: 70px 40px;
}

#app #home .scooter-section .col-lg-4 {
  padding: 15px;
}

#app #home .scooter-section .scooter-card-box {
  border: none;
  border-radius: 30px;
  background-color: #e3f7f5;
  padding: 50px 40px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(168, 227, 217, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

#app #home .scooter-section .scooter-card-box h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2c3e50;
  line-height: 1.3;
}

#app #home .scooter-section .scooter-card-box span {
  font-weight: 700;
  color: #1abc9c;
}

#app #home .scooter-section .scooter-card-box .badge-new {
  background-color: #1abc9c;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  align-self: flex-start;
  margin-bottom: 20px;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(26, 188, 156, 0.15);
}

#app #home .scooter-section .scooter-card-box p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #34495e;
  margin-bottom: 20px;
}

#app #home .scooter-section .scooter-card-box ul {
  list-style: none;
  padding-left: 0;
  margin: 15px 0 25px 0;
}

#app #home .scooter-section .scooter-card-box li {
  font-size: 1.1rem;
  margin-bottom: 12px;
  position: relative;
  padding-left: 30px;
  color: #2c3e50;
}

#app #home .scooter-section .scooter-card-box li::before {
  content: "✓";
  color: #1abc9c;
  font-weight: 700;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

#app #home .scooter-section .scooter-card-box .btn-scooter {
  background-color: #1abc9c;
  color: #fff !important;
  border: none;
  border-radius: 12px;
  padding: 14px 30px;
  font-weight: 700;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(26, 188, 156, 0.2);
  align-self: flex-start;
  text-align: center;
}

#app #home .scooter-section .scooter-card-box .btn-scooter:hover {
  background-color: #16a085;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 188, 156, 0.35);
}

#app #home .scooter-section img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media screen and (max-width: 992px) {
  #app {
    font-size: 16px; /* Slightly smaller text for readability on mobile */
  }

  #app .head .navbar-brand {
    margin: 10px;
  }
  
  #app .head .navbar-brand img {
    height: 40px; /* Slimmer header logo on mobile */
  }
  
  #app .head .navbar-collapse {
    margin-right: 0;
    text-align: center;
    padding: 15px 0;
    background-color: rgba(249, 119, 57, 0.98); /* Solid beautiful dropdown on mobile */
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  }
  
  #app .head .nav-link {
    margin: 12px 0;
    font-size: 1.3rem;
  }

  /* Desktop banner hidden on mobile, show mobile slide/banner */
  .banner-desktop {
    display: none !important;
  }
  
  .banner-mobile {
    display: block !important;
    width: 100%;
  }

  .banner-mobile img {
    width: 100%;
    height: auto;
    min-height: unset !important;
    max-height: unset !important;
  }

  /* Tight layout spacing for mobile tastoni */
  #app #home .first-section,
  #app #home .scooter-section,
  #app #home .second-section,
  #app #home .third-section {
    margin: 20px 10px;
  }

  #app #home .first-section .col-lg-4,
  #app #home .scooter-section .col-lg-4,
  #app #home .second-section .col-lg-4,
  #app #home .third-section .col-lg-4 {
    padding: 30px 20px;
  }

  /* Make content sections beautiful and tight on mobile */
  #app #chi-siamo .col-lg-6 {
    padding: 30px 20px;
  }
  
  #app #chi-siamo .col-lg-6 p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
  }
  
  #app #chi-siamo .col-lg-6:last-of-type {
    padding: 10px 20px 40px 20px;
  }

  #app #servizi .servizi-text {
    padding: 35px 20px;
  }
  
  #app #servizi .servizi-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  #app #servizi .servizi-text img {
    margin: 25px auto;
    max-width: 100%;
  }

  /* Form & Recapiti responsive styling */
  #app #contatti .contact-form-section {
    padding: 40px 20px 20px 20px;
  }

  #app #contatti .contact-form-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  #app #contact-form input, 
  #app #contact-form textarea {
    height: 50px;
    margin: 8px 0;
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  #app #contact-form textarea {
    height: 120px !important;
  }

  #app #contact-form .btn-primary {
    height: 50px;
    font-size: 1.15rem;
    max-width: 100%; /* Full width submit button on mobile */
    margin-top: 10px;
  }

  #app #contatti .recapiti {
    padding: 40px 20px;
    box-shadow: none;
  }

  #app #contatti .recapiti h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 8px;
  }

  #app #contatti .recapiti p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  /* Footer mobile styling */
  #app footer .footer {
    padding: 40px 20px 20px 20px;
  }
  
  #app footer h3 {
    margin-top: 35px;
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  #app footer h3:first-of-type {
    margin-top: 0;
  }

  #app footer .footer p {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  #app footer .copyright {
    padding: 20px 10px;
  }

  #app footer .copyright p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}
