/* M.T.R. Master Service — replica statica della landing originale.
   Palette e misure rilevate da WordPress/Elementor:
   blu #266EB6 e #236EB6, petrolio #143140, arancio #F19B2E,
   Montserrat per titoli/testi evidenziati, Roboto per i testi. */

:root {
  --blue: #236eb6;
  --blue-alt: #266eb6;
  --navy: #143140;
  --accent: #f19b2e;
  --ink: #131313;
  --text: #333333;
  --muted: #54595f;
  --container: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.gap--20 { height: 20px; }
.gap--25 { height: 25px; }
.gap--50 { height: 50px; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: .6rem 1rem;
  border-radius: 0 0 8px 8px;
  background: var(--navy);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Header: logo grande centrato, come l'originale ---------- */
.site-header {
  padding: 16px 0;
  text-align: center;
  background: #fff;
}

.site-header__logo {
  display: inline-block;
  line-height: 0;
}

.site-header__logo img {
  width: 261px;
  height: 122px;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 24px;
  border: 0;
  border-radius: 30px 0;
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.btn:hover {
  text-decoration: none;
}

.btn--white {
  background: #fff;
  color: var(--blue-alt);
}

.btn--white:hover {
  background: #fff;
  color: #000;
}

.btn--blue {
  background: var(--blue-alt);
  color: #fff;
}

.btn--blue:hover {
  background: #000;
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--blue);
}

.btn--light:hover {
  background: #eaf3fb;
  color: var(--navy);
}

.btn--small {
  gap: 9px;
  padding: 12px 24px;
  border-radius: 3px;
  font-size: 15px;
  line-height: 15px;
}

.btn--small .i {
  width: 15px;
  height: 15px;
}

/* ---------- Hero desktop ---------- */
.hero-desktop {
  display: flex;
  align-items: center;
  min-height: 620px;
  background: url("../img/hero-1920.webp") center / cover no-repeat;
}

.hero-desktop__copy {
  display: flex;
  align-items: center;
  width: 63.295%;
  padding: 10px;
}

.hero-desktop__text {
  width: 60%;
  padding: 0 10px;
  text-align: center;
}

.hero-desktop__badge {
  width: 40%;
  padding: 0 10px;
  text-align: center;
}

.hero-desktop__badge img {
  display: inline-block;
  width: 150px;
  height: 150px;
}

.hero-desktop h1 {
  margin: 0 0 20px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 46px;
}

.hero-desktop .headline {
  margin: 8px 0 16px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
}

.hl {
  text-decoration: underline;
  text-decoration-style: double;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hl--light {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
}

/* ---------- Hero tablet/mobile ---------- */
.hero-mobile {
  display: none;
  background: #fff;
}

.hero-mobile > img {
  width: 100%;
  height: auto;
}

.hero-mobile__body {
  padding: 10px 10px 50px;
  text-align: center;
}

.hero-mobile__title {
  margin: 10px 0 20px;
  color: #2a2929;
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.hero-mobile .headline {
  margin: 8px 0 16px;
  color: #2a2929;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.hl--blue {
  color: var(--blue-alt);
}

.hero-mobile .btn {
  margin: 0 auto;
}

.hero-mobile__text {
  margin: 20px 0;
  color: #0e0e0e;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

/* ---------- Perché scegliere ---------- */
.reasons {
  padding: 50px 0 40px;
  background: var(--blue-alt);
  text-align: center;
}

.reasons h2 {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 32px;
}

.reasons__text {
  margin: 0 0 14.4px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 25px;
}

.reasons__signature {
  margin: 8px 0 0;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
}

.hl--white {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
}

/* ---------- Sezione centrale ---------- */
.about {
  padding: 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.col {
  width: 50%;
  padding: 25px 10px;
}

.col img {
  width: 100%;
  height: auto;
}

.col h2 {
  margin-bottom: 20px;
  color: var(--blue);
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 32px;
  text-align: left;
}

.col h2.align-left,
.location__col h2.align-left {
  text-align: left;
}

.col p {
  margin: 0 0 14.4px;
  color: var(--ink);
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
}

.col p:last-child {
  margin-bottom: 0;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
}

.checklist .i {
  width: 21px;
  height: 21px;
  margin-right: 1px;
  color: var(--blue);
  stroke-width: 3;
}

/* ---------- Fascia contatti ---------- */
.contact {
  padding: 30px 0 50px;
  background: var(--blue);
  text-align: center;
}

.contact h2 {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 27px;
}

.contact .headline {
  margin: 8px 0 16px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
}

.contact__link {
  color: inherit;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-style: double;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact__link:hover {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: double;
}

/* ---------- Sedi ---------- */
.location--office {
  background: #fff;
  padding-bottom: 80px;
}

.location__col {
  width: 50%;
  padding: 40px 10px 10px 40px;
}

.location__col h2 {
  margin-bottom: 20px;
  color: var(--blue);
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 32px;
  text-align: left;
}

.contact-list {
  padding-left: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 10.5px;
  color: var(--muted);
  font-family: "Montserrat", sans-serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 31.5px;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

.contact-list .i {
  width: 20px;
  height: 20px;
  margin-top: 6px;
  color: var(--navy);
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.location__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.policies {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.policies a {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  line-height: 1.2;
  text-decoration: none;
}

.policies a:hover {
  border-color: #999;
  text-decoration: none;
}

/* ---------- Sede legale con mappa ---------- */
.location--legal {
  display: flex;
  background: var(--blue);
}

.location__grid {
  display: flex;
  align-items: stretch;
}

.location__map {
  position: relative;
  width: 50%;
  background: #e6edf2;
}

.location__map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  color: var(--navy);
}

.location__map-fallback strong {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.location__map-fallback span {
  font-size: 14px;
  color: var(--muted);
}

.location__map-fallback a {
  color: var(--blue);
  font-weight: 600;
}

.location__map iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
  background: transparent;
}

.location__col--legal {
  width: 50%;
  margin: 0;
}

.location__col--legal h2 {
  color: #fff;
}

.location__col--legal .contact-list,
.location__col--legal .contact-list li,
.location__col--legal .contact-list a {
  color: #fff;
}

.location__col--legal .contact-list .i {
  color: #fff;
}

/* ---------- Footer scuro con logo bianco ---------- */
.site-footer {
  background: var(--navy);
  color: #d7e4ec;
}

.site-footer__grid {
  display: flex;
  align-items: center;
  min-height: 142px;
  padding: 10px 0;
}

.site-footer__logo {
  width: 50%;
  padding: 0 10px;
  text-align: center;
}

.site-footer__logo img {
  display: inline-block;
  width: 143px;
  height: 83px;
}

.site-footer__text {
  width: 50%;
  padding: 0 10px;
  text-align: center;
}

.site-footer__text p {
  color: #d7e4ec;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.site-footer__policies {
  justify-content: center;
  margin-top: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --container: 1024px;
  }

  .hero-desktop {
    display: none;
  }

  .hero-mobile {
    display: block;
  }

  /* Come l'originale: su tablet l'immagine resta a sinistra */
  .row--two .col:last-child {
    order: -1;
  }

  .location__col {
    width: 100%;
    padding: 40px 10px 10px;
  }

  .location--office {
    padding-bottom: 40px;
  }

  .contact-list {
    padding-left: 0;
  }

  .location--legal .location__map {
    display: none;
  }

  .location__col--legal {
    width: 100%;
    padding: 40px 10px 10px;
  }
}

@media (max-width: 767px) {
  :root {
    --container: 767px;
  }

  .col {
    width: 100%;
  }

  .hero-mobile__body {
    padding: 15px 10px 50px;
  }

  .reasons {
    padding: 15px 0 40px;
  }

  .location__col {
    padding: 30px 10px 10px;
  }

  .site-footer__grid {
    flex-direction: column;
    gap: 20px;
    padding: 30px 0;
  }

  .site-footer__logo,
  .site-footer__text {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-header__logo img {
    width: 261px;
    height: auto;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
