/* =========================================================
   GM ZERBINI
   PREVENTIVO.CSS
   Mobile First
   ========================================================= */


/* =========================================================
   01 — RESET / VARIABILI
   ========================================================= */

:root {
  --blue: #07549b;
  --blue-dark: #06457f;

  --navy: #071b32;
  --ink: #07182c;

  --page: #fbfaf7;
  --white: #ffffff;

  --cream: #f5f1e9;
  --cream-light: #fbf9f5;

  --muted: #68717d;
  --muted-light: #8a929c;

  --border: rgba(7, 24, 44, 0.11);
  --border-medium: rgba(7, 24, 44, 0.17);

  --green: #25d366;

  --radius: 14px;
}


* {
  box-sizing: border-box;
}


html {
  width: 100%;
  scroll-behavior: smooth;
}


body {
  width: 100%;

  margin: 0;

  overflow-x: hidden;

  background: var(--page);

  color: var(--ink);

  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  -webkit-font-smoothing: antialiased;
}


img,
svg {
  max-width: 100%;
}


a {
  color: inherit;
  text-decoration: none;
}


button,
input,
textarea {
  font: inherit;
}


button {
  cursor: pointer;
}


.quote-container {
  width: calc(100% - 36px);
  max-width: 1180px;

  margin-inline: auto;
}



/* =========================================================
   02 — HEADER
   ========================================================= */

.quote-header {
  width: 100%;
  height: 76px;

  position: relative;
  z-index: 50;

  background: rgba(251, 250, 247, 0.98);

  border-bottom: 1px solid var(--border);
}


.quote-header__inner {
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;
}


.quote-logo {
  display: flex;
  align-items: center;

  min-width: 0;
}


.quote-logo img {
  display: block;

  width: 104px;
  height: auto;
}


.quote-header__actions {
  display: flex;
  align-items: center;

  gap: 9px;
}


.quote-header__whatsapp {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;

  border: 1px solid rgba(37, 211, 102, 0.38);
  border-radius: 50%;

  color: var(--green);
}


.quote-header__whatsapp svg {
  width: 22px;
  height: 22px;
}


.quote-header__back {
  min-height: 42px;

  padding: 0 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--blue);

  border-radius: 9px;

  color: #ffffff;

  font-size: 12px;
  font-weight: 800;
}



/* =========================================================
   03 — HERO
   ========================================================= */

.quote-hero {
  padding: 38px 0 30px;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      var(--page) 100%
    );
}


.quote-eyebrow {
  display: block;

  margin-bottom: 10px;

  color: var(--blue);

  font-size: 10px;
  font-weight: 800;

  line-height: 1;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}


.quote-hero h1 {
  max-width: 350px;

  margin: 0;

  color: var(--navy);

  font-size: 38px;
  font-weight: 800;

  line-height: 1.02;

  letter-spacing: -0.045em;
}


.quote-hero h1 strong {
  display: block;

  color: var(--blue);

  font-weight: 800;
}


.quote-hero__description {
  max-width: 370px;

  margin: 16px 0 0;

  color: #344354;

  font-size: 14px;
  font-weight: 500;

  line-height: 1.6;
}



/* =========================================================
   04 — BENEFIT
   ========================================================= */

.quote-benefits {
  margin-top: 28px;

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 10px;
}


.quote-benefit {
  min-width: 0;
}


.quote-benefit__icon {
  width: 38px;
  height: 38px;

  margin-bottom: 9px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;

  border: 1px solid var(--border);
  border-radius: 50%;

  color: var(--blue);

  font-size: 18px;
  font-weight: 800;
}


.quote-benefit__icon--wa {
  color: var(--green);
}


.quote-benefit__icon svg {
  width: 21px;
  height: 21px;
}


.quote-benefit strong {
  display: block;

  color: var(--navy);

  font-size: 10px;
  font-weight: 800;

  line-height: 1.3;
}


.quote-benefit span {
  display: block;

  margin-top: 3px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 500;

  line-height: 1.4;
}



/* =========================================================
   05 — FORM SECTION
   ========================================================= */

.quote-form-section {
  padding: 12px 0 38px;
}


.quote-form {
  padding: 24px 18px 20px;

  background: #ffffff;

  border: 1px solid var(--border);
  border-radius: 16px;

  box-shadow:
    0 14px 40px rgba(7, 24, 44, 0.045);
}


.netlify-honeypot {
  display: none !important;
}


.quote-form__heading {
  margin-bottom: 24px;
}


.quote-form__heading h2 {
  margin: 0;

  color: var(--navy);

  font-size: 23px;
  font-weight: 800;

  line-height: 1.1;

  letter-spacing: -0.035em;
}


.quote-form__heading p {
  max-width: 420px;

  margin: 8px 0 0;

  color: var(--muted);

  font-size: 12px;
  font-weight: 500;

  line-height: 1.55;
}



/* =========================================================
   06 — CAMPI
   ========================================================= */

.quote-field {
  display: block;

  margin-bottom: 16px;
}


.quote-field > span {
  display: block;

  margin-bottom: 7px;

  color: var(--navy);

  font-size: 11px;
  font-weight: 750;

  line-height: 1.3;
}


.quote-field > span small {
  color: var(--muted);

  font-size: 10px;
  font-weight: 500;
}


.quote-field > input,
.quote-field > textarea {
  width: 100%;

  border: 1px solid var(--border-medium);
  border-radius: 9px;

  background: #ffffff;

  color: var(--navy);

  outline: none;

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}


.quote-field > input {
  height: 49px;

  padding: 0 14px;
}


.quote-field > textarea {
  min-height: 104px;

  padding: 13px 14px;

  resize: vertical;

  line-height: 1.5;
}


.quote-field input::placeholder,
.quote-field textarea::placeholder {
  color: #9ba3ad;

  opacity: 1;
}


.quote-field input:focus,
.quote-field textarea:focus {
  border-color: rgba(7, 84, 155, 0.55);

  box-shadow:
    0 0 0 3px rgba(7, 84, 155, 0.07);
}



/* =========================================================
   07 — TELEFONO
   ========================================================= */

.quote-phone {
  width: 100%;

  display: grid;

  grid-template-columns: auto minmax(0, 1fr);

  border: 1px solid var(--border-medium);
  border-radius: 9px;

  overflow: hidden;

  background: #ffffff;
}


.quote-phone:focus-within {
  border-color: rgba(7, 84, 155, 0.55);

  box-shadow:
    0 0 0 3px rgba(7, 84, 155, 0.07);
}


.quote-phone__prefix {
  min-width: 82px;
  height: 49px;

  padding: 0 11px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-right: 1px solid var(--border);

  color: #344354;

  font-size: 12px;
  font-weight: 700;

  white-space: nowrap;
}


.quote-phone input {
  min-width: 0;
  width: 100%;
  height: 49px;

  padding: 0 13px;

  border: 0;
  outline: 0;

  color: var(--navy);

  background: transparent;
}


.quote-phone input::placeholder {
  color: #9ba3ad;
}



/* =========================================================
   08 — MISURE
   ========================================================= */

.quote-measures {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 9px;
}


.quote-measures label {
  min-width: 0;

  padding: 10px 11px;

  display: block;

  border: 1px solid var(--border-medium);
  border-radius: 9px;

  background: #ffffff;
}


.quote-measures label:focus-within {
  border-color: rgba(7, 84, 155, 0.55);

  box-shadow:
    0 0 0 3px rgba(7, 84, 155, 0.07);
}


.quote-measures label span {
  display: block;

  margin-bottom: 3px;

  color: #465568;

  font-size: 9px;
  font-weight: 700;

  line-height: 1.25;
}


.quote-measures input {
  width: 100%;
  min-width: 0;

  padding: 0;

  border: 0;
  outline: 0;

  background: transparent;

  color: var(--navy);

  font-size: 13px;
  font-weight: 650;
}


.quote-measures input::placeholder {
  color: #a0a8b2;

  font-weight: 500;
}



/* =========================================================
   09 — UPLOAD
   ========================================================= */

.quote-upload {
  min-height: 112px;

  padding: 18px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: 1px dashed rgba(7, 84, 155, 0.3);
  border-radius: 10px;

  background: rgba(7, 84, 155, 0.018);

  text-align: center;

  cursor: pointer;

  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}


.quote-upload:hover {
  border-color: rgba(7, 84, 155, 0.55);

  background: rgba(7, 84, 155, 0.035);
}


.quote-upload input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;

  pointer-events: none;
}


.quote-upload__icon {
  margin-bottom: 5px;

  color: var(--blue);

  font-size: 24px;
  font-weight: 700;

  line-height: 1;
}


.quote-upload strong {
  color: var(--navy);

  font-size: 11px;
  font-weight: 800;
}


.quote-upload small {
  margin-top: 4px;

  color: var(--muted-light);

  font-size: 9px;
  font-weight: 500;
}



/* =========================================================
   10 — PRIVACY
   ========================================================= */

.quote-privacy {
  margin: 5px 0 17px;

  display: flex;
  align-items: flex-start;

  gap: 9px;

  cursor: pointer;
}


.quote-privacy input {
  width: 16px;
  height: 16px;

  flex: 0 0 16px;

  margin: 1px 0 0;

  accent-color: var(--blue);
}


.quote-privacy span {
  color: var(--muted);

  font-size: 9px;
  font-weight: 500;

  line-height: 1.45;
}



/* =========================================================
   11 — SUBMIT
   ========================================================= */

.quote-submit {
  width: 100%;
  min-height: 52px;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  border: 0;
  border-radius: 9px;

  background: var(--blue);

  color: #ffffff;

  font-size: 13px;
  font-weight: 800;

  transition:
    background-color 180ms ease,
    transform 180ms ease;
}


.quote-submit:hover {
  background: var(--blue-dark);
}


.quote-submit:active {
  transform: scale(0.99);
}


.quote-submit:disabled {
  opacity: 0.65;

  cursor: wait;
}


.quote-form__security {
  max-width: 300px;

  margin: 11px auto 0;

  color: var(--muted);

  font-size: 9px;
  font-weight: 500;

  line-height: 1.45;

  text-align: center;
}



/* =========================================================
   12 — COSA SUCCEDE DOPO
   ========================================================= */

.quote-after {
  padding: 0 0 42px;
}


.quote-after__box {
  padding: 24px 19px;

  background: var(--cream-light);

  border: 1px solid var(--border);
  border-radius: 16px;
}


.quote-after__box h2 {
  margin: 0;

  color: var(--navy);

  font-size: 22px;
  font-weight: 800;

  line-height: 1.1;

  letter-spacing: -0.03em;
}


.quote-after__steps {
  margin-top: 22px;

  display: grid;

  gap: 20px;
}


.quote-after__step {
  position: relative;

  display: grid;

  grid-template-columns: 34px minmax(0, 1fr);

  gap: 12px;
}


.quote-after__step:not(:last-child)::after {
  content: "";

  position: absolute;

  left: 16px;
  top: 35px;

  width: 1px;
  height: calc(100% + 5px);

  background: rgba(7, 84, 155, 0.22);
}


.quote-after__number {
  width: 34px;
  height: 34px;

  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--blue);

  border-radius: 50%;

  color: #ffffff;

  font-size: 9px;
  font-weight: 800;
}


.quote-after__step strong {
  display: block;

  padding-top: 1px;

  color: var(--navy);

  font-size: 11px;
  font-weight: 800;

  line-height: 1.3;
}


.quote-after__step p {
  margin: 4px 0 0;

  color: var(--muted);

  font-size: 10px;
  font-weight: 500;

  line-height: 1.5;
}



/* =========================================================
   13 — WHATSAPP CTA
   ========================================================= */

.quote-whatsapp {
  padding: 38px 0;

  background: #ffffff;

  border-top: 1px solid var(--border);
}


.quote-whatsapp__inner {
  text-align: center;
}


.quote-whatsapp__inner > span {
  display: block;

  margin-bottom: 8px;

  color: var(--blue);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.12em;
}


.quote-whatsapp h2 {
  margin: 0;

  color: var(--navy);

  font-size: 24px;
  font-weight: 800;

  line-height: 1.1;

  letter-spacing: -0.035em;
}


.quote-whatsapp p {
  max-width: 340px;

  margin: 10px auto 18px;

  color: var(--muted);

  font-size: 11px;
  font-weight: 500;

  line-height: 1.55;
}


.quote-whatsapp__button {
  width: 100%;
  min-height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(37, 211, 102, 0.65);
  border-radius: 9px;

  color: #168a45;

  font-size: 12px;
  font-weight: 800;
}



/* =========================================================
   14 — FOOTER
   ========================================================= */

.quote-footer {
  padding: 30px 0;

  background: var(--navy);

  color: #ffffff;
}


.quote-footer .quote-container {
  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}


.quote-footer__logo img {
  display: block;

  width: 100px;
  height: auto;

  /* logo originale pensato per fondo chiaro */
  background: #ffffff;

  padding: 5px 7px;

  border-radius: 5px;
}


.quote-footer p {
  max-width: 290px;

  margin: 14px auto;

  color: rgba(255, 255, 255, 0.67);

  font-size: 10px;
  font-weight: 500;

  line-height: 1.55;
}


.quote-footer > div > a:last-child {
  color: #ffffff;

  font-size: 10px;
  font-weight: 800;
}



/* =========================================================
   15 — CONFERMA INVIO
   ========================================================= */

.quote-success {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 20px;
}


.quote-success.is-visible {
  display: flex;
}


.quote-success__backdrop {
  position: absolute;

  inset: 0;

  background: rgba(7, 24, 44, 0.72);

  backdrop-filter: blur(4px);
}


.quote-success__box {
  width: min(100%, 390px);

  position: relative;
  z-index: 2;

  padding: 30px 22px 22px;

  background: #ffffff;

  border-radius: 16px;

  text-align: center;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.18);
}


.quote-success__check {
  width: 54px;
  height: 54px;

  margin: 0 auto 17px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(37, 211, 102, 0.12);

  border-radius: 50%;

  color: #159447;

  font-size: 25px;
  font-weight: 800;
}


.quote-success__eyebrow {
  display: block;

  margin-bottom: 8px;

  color: var(--blue);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.12em;
}


.quote-success h2 {
  margin: 0;

  color: var(--navy);

  font-size: 27px;
  font-weight: 800;

  line-height: 1.08;

  letter-spacing: -0.035em;
}


.quote-success h2 strong {
  color: var(--blue);
}


.quote-success__box > p {
  margin: 13px 0 22px;

  color: var(--muted);

  font-size: 11px;
  font-weight: 500;

  line-height: 1.55;
}


.quote-success__actions {
  display: grid;

  gap: 9px;
}


.quote-success__home,
.quote-success__close {
  width: 100%;
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  border-radius: 9px;

  font-size: 11px;
  font-weight: 800;
}


.quote-success__home {
  background: var(--blue);

  color: #ffffff;
}


.quote-success__close {
  border: 1px solid var(--border-medium);

  background: #ffffff;

  color: var(--navy);
}



/* =========================================================
   16 — MOBILE PICCOLO
   ========================================================= */

@media (max-width: 370px) {

  .quote-container {
    width: calc(100% - 28px);
  }


  .quote-logo img {
    width: 94px;
  }


  .quote-header__back {
    padding-inline: 13px;

    font-size: 11px;
  }


  .quote-hero h1 {
    font-size: 34px;
  }


  .quote-benefits {
    gap: 6px;
  }


  .quote-benefit strong {
    font-size: 9px;
  }


  .quote-benefit span {
    font-size: 8px;
  }


  .quote-form {
    padding-inline: 15px;
  }

}



/* =========================================================
   17 — TABLET / DESKTOP
   Non influenza il layout mobile
   ========================================================= */

@media (min-width: 769px) {

  .quote-container {
    width: min(calc(100% - 80px), 1120px);
  }


  .quote-header {
    height: 82px;
  }


  .quote-logo img {
    width: 125px;
  }


  .quote-hero {
    padding: 60px 0 42px;
  }


  .quote-hero h1 {
    max-width: 600px;

    font-size: 58px;
  }


  .quote-hero__description {
    max-width: 560px;

    font-size: 16px;
  }


  .quote-benefits {
    max-width: 650px;

    margin-top: 34px;

    gap: 24px;
  }


  .quote-benefit {
    display: grid;

    grid-template-columns: 42px 1fr;

    gap: 11px;
  }


  .quote-benefit__icon {
    margin-bottom: 0;
  }


  .quote-benefit strong {
    font-size: 12px;
  }


  .quote-benefit span {
    font-size: 10px;
  }


  .quote-form-section {
    padding-bottom: 56px;
  }


  .quote-form {
    max-width: 720px;

    padding: 34px;

    margin-inline: auto;
  }


  .quote-form__heading h2 {
    font-size: 28px;
  }


  .quote-form__heading p {
    font-size: 13px;
  }


  .quote-field > span {
    font-size: 12px;
  }


  .quote-field > input {
    height: 52px;
  }


  .quote-phone__prefix,
  .quote-phone input {
    height: 52px;
  }


  .quote-after__box {
    max-width: 720px;

    margin-inline: auto;

    padding: 30px;
  }


  .quote-whatsapp__button {
    max-width: 340px;

    margin-inline: auto;
  }

}