/* css for index */
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
  font-family: "Montserrat", serif;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background-color: #f60419;
}

::-webkit-scrollbar {
  width: 10px;
  background-color: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background-color: #353b48;
}

.navbar {
  position: fixed;
  background-color: transparent;
  width: 100%;
  padding: 30px 0;
  top: 0;
  z-index: 999;
  transition: .3s linear;
}

.inner-width {
  max-width: 1300px;
  margin: auto;
  padding: 0 40px;
}

.navbar .inner-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 285px;
  height: 45px;
  background-image: url(../images/logo-bianco.png);
  background-size: contain;
  margin-left: -15%;
}

.menu-toggler {
  background: none;
  width: 30px;
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
  z-index: 999;
  display: none;
}

.menu-toggler span {
  display: block;
  height: 3px;
  background-color: #fff;
  margin: 6px 0;
  position: relative;
  transition: .3s linear;
}

.navbar-menu a {
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  margin-left: 30px;
  transition: .2s linear;
}

.navbar-menu a:hover {
  color: #fff !important;
}

.sticky {
  background-color: #f60419;
  padding: 10px 0;
}

.sticky .logo {
  width: 300px;
  height: 77px;
  background-image: url(../images/logo-nero.png);
  left: 10px;
}

.sticky .navbar-menu a {
  color: #fff;
}

.sticky .menu-toggler span {
  background-color: #111;
}

#home {
  height: 50vh;
  background: url('../images/magazzino.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#home .inner-width {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

#home .content {
  width: 100%;
  color: #fff;
}

#home .content h1 {
  font-size: 60px;
  margin-bottom: 60px;
  visibility: visible;
  font-weight: bold;
  letter-spacing: 2px;
}

.title {
  font-weight: bold;
  font-size: 22px;
  color: #fff;
  text-transform: uppercase;
  margin-top: -90%; 
  letter-spacing: 1px;
}

.logo-image {
  max-width: 150px;
  align-items: center; 
  height: auto;
}

.sm a {
  color: #fff;
  font-size: 22px;
  margin: 0 10px;
  transition: .2s linear;
}

.sm a:hover {
  color: #48dbfb;
}

section {
  padding: 100px 0;
  background-color: #f1f1f1;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  font-size: 30px;
  padding-bottom: 20px;
  color: #111;
}

.introduzione {
  font-size: 18px;
  background-color: #f9f9f9;
  border: 2px solid #f60419;
  padding: 20px;
  border-radius: 8px;
  color: #333;
  max-width: 900px;
  margin: 0 auto 15px auto;
  text-align: center;
  line-height: 1.6;
}

/* ===== FORM SECTION ===== */
.form {
  display: flex;
  padding: 0 20px 20px 20px;
  background-color: #f1f1f1;
  align-items: center;
  justify-content: center;
}

.wrapper {
  width: 100%;
  max-width: 650px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* Header Section del Form */
.form-header-section {
  padding: 25px 35px 15px 35px;
  background: #fff;
  border-bottom: 3px solid #EB0A1E;
}

.form-title {
  font-size: 28px;
  font-weight: 700;
  color: #EB0A1E;
  margin: 0 0 10px 0;
  text-align: left;
  letter-spacing: 0.5px;
}

.form-note {
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: #666;
  text-align: left;
  font-style: italic;
}

.required-asterisk {
  color: #EB0A1E;
  font-weight: bold;
  font-size: 16px;
}

.optional-note {
  color: #888;
  font-size: 11px;
  font-weight: normal;
  font-style: italic;
}

.wrapper form {
  margin: 0;
  padding: 30px 35px;
}

.wrapper form.disabled {
  pointer-events: none;
  opacity: 0.6;
}

form .dbl-field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.dbl-field .field {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.field label,
.message label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  font-family: 'Montserrat', sans-serif;
}

.wrapper form i {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #EB0A1E;
  font-size: 17px;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1;
}

form .field input,
form .message textarea {
  width: 100%;
  height: 48px;
  outline: none;
  padding: 0 16px 0 45px;
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  background: #fafafa;
  transition: all 0.3s ease;
}

/* Bordo rosso per i campi obbligatori */
form .field input:required,
form .message textarea:required {
  border-left: 3px solid #EB0A1E;
}

.field input::placeholder,
.message textarea::placeholder {
  color: #999;
  font-weight: 400;
}

.field input:focus,
.message textarea:focus {
  background: white;
  border-color: #EB0A1E;
  box-shadow: 0 0 0 3px rgba(235, 10, 30, 0.1);
  padding-left: 45px;
}

.field input:focus ~ i,
.message textarea:focus ~ i {
  color: #c80919;
  transform: scale(1.1);
}

/* Campo singolo */
form .field {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

form .message {
  position: relative;
  margin-bottom: 18px;
}

form .message i {
  top: 46px;
  bottom: auto;
  font-size: 18px;
}

form .message textarea {
  min-height: 120px;
  max-height: 200px;
  max-width: 100%;
  min-width: 100%;
  padding: 16px 18px 16px 45px;
  resize: vertical;
  font-family: 'Montserrat', sans-serif;
}

form .message textarea::-webkit-scrollbar {
  width: 6px;
}

form .message textarea::-webkit-scrollbar-thumb {
  background: #EB0A1E;
  border-radius: 10px;
}

.message textarea:focus {
  padding-top: 16px;
}

form .button-area {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.button-area button {
  color: white;
  border: none;
  outline: none;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 25px;
  padding: 14px 40px;
  background: linear-gradient(135deg, #EB0A1E 0%, #c80919 100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(235, 10, 30, 0.3);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
}

.button-area button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(235, 10, 30, 0.4);
}

.button-area button:active {
  transform: translateY(0);
}

.button-area span {
  font-size: 17px;
  margin-left: 0;
  display: none;
}

.targa {
  text-transform: uppercase;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 30px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  text-align: center;
  border-radius: 12px;
  margin-top: 30px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px;
  background: white;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
  border-color: #EB0A1E;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(235, 10, 30, 0.15);
}

.contact-item i {
  font-size: 28px;
  color: #EB0A1E;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.contact-item:hover i {
  transform: scale(1.1);
}

.contact-item p {
  font-size: 16px;
  color: #333;
  margin: 0;
  font-weight: 500;
}

.contact-item a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #EB0A1E;
}

/* ===== FOOTER ===== */
footer {
  color: #000;
  padding: 80px 0;
  text-align: center;
  background-color: #f1f1f1;
}

.copyright {
  margin-bottom: 20px;
  font-size: 20px;
}

.copyright a {
  font-size: 16px;
  color: #48dbfb;
  font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */

@media screen and (max-width: 1630px) {
  .logo {
    margin-left: -10%;
  }
}

@media screen and (max-width: 1485px) {
  .logo {
    margin-left: 0%;
  }

  #home {
    background: url('../images/magazzino.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
  }

  .title {
    margin-top: -50%; 
  }
}

@media screen and (max-width: 1160px) {
  #home {
    background: url('../images/magazzino.jpg') no-repeat center center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  #home h1 {
    font-size: 30px;
    margin: 0px;
  }

  .logo {
    visibility: hidden;
  }

  .menu-toggler {
    display: block;
  }

  .logo {
    margin-left: -5%;
  }

  .navbar-menu {
    position: fixed;
    height: 100vh;
    width: 100%;
    background-color: #353b48;
    top: 0;
    right: -100%;
    max-width: 100%;
    padding: 80px 50px;
    transition: .3s linear;
  }

  .navbar-menu a {
    display: block;
    font-size: 30px;
    margin: 30px 0;
  }

  .sticky .navbar-menu {
    background-color: #353b48;
  }

  .navbar-menu.active {
    right: 0;
  }

  .menu-toggler.active span:nth-child(1) {
    transform: rotate(-45deg);
    top: 4px;
  }

  .menu-toggler.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggler.active span:nth-child(3) {
    transform: rotate(45deg);
    bottom: 14px;
  }

  #home .content h1 {
    visibility: visible;
  }

  .sticky .logo {
    height: 50px;
    width: 197px;
    margin-left: -1%;
    visibility: visible;
  }

  #home {
    background-attachment: scroll; 
  }

  .title {
    margin-top: -50%; 
  }
}

@media screen and (max-width: 768px) {
  .wrapper {
    border-radius: 10px;
    margin: 15px;
    max-width: 95%;
  }

  .form-header-section {
    padding: 20px 25px 12px 25px;
  }

  .form-title {
    font-size: 24px;
  }

  .form-note {
    font-size: 13px;
  }

  .wrapper form {
    padding: 25px 25px;
  }

  form .dbl-field {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 0;
  }

  .dbl-field .field {
    margin-bottom: 18px;
  }

  .field label,
  .message label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .optional-note {
    font-size: 10px;
    display: block;
    margin-top: 2px;
  }

  form .field input {
    height: 46px;
    font-size: 14px;
  }

  form .message {
    margin-bottom: 18px;
  }

  .button-area button {
    width: 100%;
    padding: 13px 30px;
    font-size: 16px;
  }

  .contact-item {
    padding: 18px;
  }

  .contact-item i {
    font-size: 26px;
  }

  .contact-item p {
    font-size: 15px;
  }

  .introduzione {
    font-size: 17px;
    padding: 18px;
    margin-bottom: 12px;
  }
}

@media screen and (max-width: 600px) {
  .form {
    padding: 0 15px 15px 15px;
  }

  .wrapper {
    margin: 10px;
  }

  .form-header-section {
    padding: 18px 20px 10px 20px;
  }

  .form-title {
    font-size: 22px;
  }

  .wrapper form {
    padding: 22px 20px;
  }

  form .dbl-field {
    gap: 18px;
  }

  .dbl-field .field {
    margin-bottom: 18px;
  }

  form .message {
    margin-bottom: 18px;
  }

  form .message textarea {
    min-height: 110px;
  }

  .button-area {
    flex-direction: column;
    margin-top: 18px;
  }

  #home .content h1 {
    font-size: 40px;
    margin-top: 20%;
    line-height: 1.3;
  }

  #home h1 {
    word-break: break-word;
  }

  .introduzione {
    font-size: 16px;
    padding: 15px;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 360px) {
  .logo {
    height: 0px;
    width: 0px;
  }

  .form-title {
    font-size: 20px;
  }

  form .field input,
  form .message textarea {
    font-size: 14px;
    padding-left: 42px;
  }

  .wrapper form i {
    left: 14px;
    font-size: 15px;
  }

  form .dbl-field {
    gap: 18px;
  }

  .dbl-field .field {
    margin-bottom: 18px;
  }

  form .message {
    margin-bottom: 18px;
  }

  #home .content h1 {
    font-size: 32px;
  }
}

@media screen and (max-width: 335px) {
  .logo {
    display: none;
  }

  .menu-toggler {
    margin-left: 90%;
  }
}