
@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('./fonts/Manrope-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #17233e;
  --navy2: #202e4d;
  --red: #d92332;
  --red-dark: #b81827;
  --ink: #1b2435;
  --muted: #697386;
  --line: #e8eaf0;
  --soft: #f5f6f8;
  --white: #fff;
  --green: #178b63;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}

/* HEADER */

.site-header {
  height: 88px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(20, 30, 50, .07);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 250px;
  height: 66px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 700;
  color: #38445b;
}

.main-nav a:not(.nav-cta):hover,
.text-link:hover {
  color: var(--red);
}

.nav-cta {
  background: var(--red);
  color: white;
  padding: 13px 19px;
  border-radius: 4px;
}

.nav-cta:hover,
.button-red:hover {
  background: var(--red-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 27px;
  color: var(--navy);
}

/* HERO */

.hero {
  background: linear-gradient(110deg, #f7f8fa 0%, #fff 58%, #f3f4f7 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1fr .92fr;
  align-items: center;
  gap: 50px;
  padding-top: 55px;
  padding-bottom: 65px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--red);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px #d9233218;
}

.hero h1,
.section h2 {
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.07;
  color: var(--navy);
}

.hero h1 {
  font-size: clamp(48px, 6vw, 76px);
  margin: 25px 0 22px;
}

.hero h1 span,
.section h2 span {
  color: var(--red);
}

.hero-lead {
  max-width: 510px;
  font-size: 17px;
  color: #687287;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 0;
  border-radius: 4px;
  padding: 16px 22px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
}

.button span {
  font-size: 19px;
}

.button-red {
  background: var(--red);
  color: #fff;
}

.text-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}

.text-link span {
  color: var(--red);
  padding-left: 6px;
}

.hero-note {
  margin-top: 50px;
  color: #687287;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.note-line {
  width: 30px;
  height: 2px;
  background: var(--green);
}

.hero-visual {
  height: 470px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 55%, #e7eaf0 0%, #f2f3f6 45%, transparent 72%);
}

.extinguisher {
  height: 390px;
  width: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 18px #17233e20);
}

.visual-orbit {
  position: absolute;
  border: 1px solid #dce0e8;
  border-radius: 50%;
  width: 390px;
  height: 390px;
}

.orbit-two {
  width: 300px;
  height: 300px;
  border-style: dashed;
}

.visual-tag {
  position: absolute;
  z-index: 3;
  background: #fff;
  border: 1px solid #e9eaf0;
  padding: 10px 14px;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--navy);
  box-shadow: 0 8px 25px #17233e0c;
}

.tag-top {
  top: 65px;
  right: 0;
}

.tag-bottom {
  bottom: 48px;
  left: 0;
}

.tag-mark {
  color: var(--red);
  font-size: 16px;
  margin-right: 8px;
}

.visual-number {
  position: absolute;
  bottom: 4px;
  right: 2px;
  font-size: 11px;
  font-weight: 800;
  color: #8991a0;
  letter-spacing: 1px;
}

.visual-number span {
  font-weight: 500;
  margin-left: 12px;
}

.hero-bottom {
  border-top: 1px solid #e8eaf0;
}

.hero-bottom-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  min-height: 54px;
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 800;
  color: #6f788a;
}

.hero-bottom-inner i {
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
}

/* SEZIONI GENERALI */

.section {
  padding: 110px 0;
}

.section h2 {
  font-size: clamp(37px, 4.5vw, 55px);
  margin: 18px 0 0;
}

/* CHI SIAMO */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.intro-text {
  padding-top: 22px;
  color: #687287;
  font-size: 15px;
  line-height: 1.9;
}

.intro-text p {
  margin: 0 0 18px;
}

.arrow-link {
  display: inline-flex;
  gap: 20px;
  margin-top: 15px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid #d7dbe3;
  padding-bottom: 8px;
}

.arrow-link span {
  color: var(--red);
}

/* CATALOGO */

.products {
  background: var(--soft);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 45px;
  gap: 40px;
}

.section-heading > p {
  max-width: 390px;
  color: #6d7688;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 5px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.product-card {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px #17233e12;
}

/* Immagini fotografiche del catalogo */

.product-art {
  height: 225px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #e9edf3, #f8f9fb);
}

.product-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}

.product-card:hover .product-art img {
  transform: scale(1.055);
}

.art-label {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 17px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #fff;
  font-weight: 800;
  background: rgba(23, 35, 62, .72);
  padding: 6px 9px;
  border-radius: 3px;
}

/* Vecchie illustrazioni: mantenute come fallback */

.mini-ext {
  height: 135px;
  width: 65px;
  border-radius: 24px 24px 18px 18px;
  background: linear-gradient(90deg, #b91827, #ed2c3a 55%, #b91827);
  box-shadow: 0 18px 22px #17233e25;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 36px;
  border: 5px solid #d51e30;
  position: relative;
}

.mini-ext:before {
  content: '';
  position: absolute;
  width: 25px;
  height: 16px;
  border: 7px solid #30394b;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  top: -22px;
}

.mini-ext:after {
  content: '';
  position: absolute;
  width: 30px;
  height: 8px;
  background: #30394b;
  top: -22px;
  right: -23px;
  transform: rotate(-25deg);
  border-radius: 8px;
}

.hose-ring {
  width: 132px;
  height: 132px;
  border: 18px solid #d92332;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px #a81725, 0 16px 25px #17233e20;
  position: relative;
}

.hose-ring:before {
  content: '';
  position: absolute;
  width: 42px;
  height: 42px;
  background: #f5f6f8;
  border: 12px solid #26334d;
  border-radius: 50%;
  left: 26px;
  top: 26px;
}

.hose-ring:after {
  content: '';
  position: absolute;
  width: 75px;
  height: 16px;
  background: #27334c;
  right: -39px;
  top: 47px;
  transform: rotate(35deg);
  border-radius: 8px;
}

.sign-board {
  height: 125px;
  width: 105px;
  background: #168a62;
  border: 9px solid #fff;
  box-shadow: 0 12px 24px #17233e25;
  color: white;
  display: grid;
  place-items: center;
  font-size: 70px;
  font-weight: 400;
}

.product-info {
  padding: 25px 25px 27px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info > span {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--red);
  font-weight: 800;
}

.product-info h3 {
  font-family: Manrope, sans-serif;
  font-size: 21px;
  line-height: 1.35;
  color: var(--navy);
  margin: 8px 0;
}

.product-info p {
  font-size: 13px;
  color: #778093;
  min-height: 66px;
  line-height: 1.7;
  margin: 5px 0 15px;
}

.product-info a {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #edf0f3;
  padding-top: 15px;
  margin-top: auto;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
}

.product-info a b {
  color: var(--red);
  font-size: 16px;
}

.disclaimer {
  font-size: 10px;
  color: #9299a6;
  margin-top: 20px;
}

/* SERVIZI */

.services {
  background: var(--navy);
  color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 100px;
}

.services .section-kicker {
  color: #ff6975;
}

.services h2 {
  color: #fff;
}

.services-lead {
  color: #b9c1d0;
  max-width: 390px;
  font-size: 14px;
  line-height: 1.8;
  margin: 25px 0 30px;
}

.button-light {
  background: #fff;
  color: var(--navy);
}

.button-light:hover {
  background: #f1f2f5;
}

.service-list > div {
  position: relative;
  border-bottom: 1px solid #ffffff24;
  padding: 22px 40px 22px 48px;
}

.service-list > div:first-child {
  border-top: 1px solid #ffffff24;
}

.service-list > div > span {
  position: absolute;
  left: 0;
  top: 25px;
  color: #f16a76;
  font-size: 11px;
  font-weight: 800;
}

.service-list h3 {
  margin: 0;
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: 18px;
}

.service-list p {
  margin: 7px 0 0;
  color: #aeb8ca;
  font-size: 12px;
}

.service-list b {
  position: absolute;
  right: 0;
  top: 25px;
  color: #f16a76;
}

/* PREVENTIVO */

.quote {
  background: #f6f7f9;
}

.quote-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 95px;
  align-items: start;
}

.quote-grid > div:first-child > p {
  color: #697386;
  font-size: 14px;
  line-height: 1.9;
  max-width: 400px;
  margin-top: 25px;
}

.quote-phone {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.quote-phone span,
.footer-contact span {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #8a93a3;
  font-weight: 800;
  margin-bottom: 7px;
}

.quote-phone a {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  color: var(--navy);
  font-size: 19px;
}

.quote-form {
  background: #fff;
  padding: 35px;
  box-shadow: 0 18px 55px #17233e0b;
  border: 1px solid #eceef2;
}

.form-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 22px;
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 800;
  color: var(--navy);
}

.form-top span:last-child {
  color: #9aa1ad;
  font-weight: 600;
}

.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #39445a;
  margin-bottom: 17px;
}

.quote-form input:not([type=checkbox]),
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid #e5e8ee;
  background: #fbfcfd;
  border-radius: 3px;
  padding: 13px 14px;
  font: 400 13px 'DM Sans', sans-serif;
  color: var(--ink);
  outline: none;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: #d92332;
  box-shadow: 0 0 0 3px #d9233210;
}

.quote-form textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.quote-form .privacy-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 10px;
  line-height: 1.6;
  color: #6d7688;
}

.privacy-check input {
  margin-top: 3px;
  accent-color: var(--red);
}

.privacy-check em {
  display: block;
  color: #b34a52;
  font-style: normal;
  margin-top: 3px;
}

.submit-button {
  width: 100%;
  margin-top: 5px;
}

.form-feedback {
  font-size: 10px;
  color: #8a93a3;
  line-height: 1.6;
  margin: 12px 0 0;
}

/* FOOTER */

.footer {
  background: #111b30;
  color: #fff;
  padding: 65px 0 22px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.25fr 1fr;
  gap: 38px;
  padding-bottom: 48px;
  align-items: start;
}

.footer-brand img {
  width: 235px;
  height: 82px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  padding: 0;
}

.footer-brand p {
  font-size: 12px;
  color: #aeb8ca;
  margin-top: 12px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-contact span {
  color: #ff6975;
  margin-bottom: 9px;
}

.footer-contact p {
  font-size: 13px;
  color: #e1e5ed;
  line-height: 1.9;
  margin: 0;
}

.footer-contact a {
  font-size: 12px;
  color: #e1e5ed;
  line-height: 1.7;
  overflow-wrap: anywhere;
  transition: color .2s;
}

.footer-contact a:hover {
  color: #ff6975;
}

.footer-bottom {
  border-top: 1px solid #ffffff20;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8792a6;
  font-size: 9px;
  letter-spacing: .5px;
}

/* TABLET */

@media(max-width: 1000px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .main-nav {
    gap: 17px;
  }

  .main-nav a {
    font-size: 11px;
  }

  .nav-cta {
    padding: 11px 13px;
  }

  .hero-grid {
    gap: 15px;
  }

  .hero-visual {
    height: 410px;
  }

  .extinguisher {
    height: 340px;
  }

  .visual-orbit {
    width: 320px;
    height: 320px;
  }

  .intro-grid,
  .services-grid,
  .quote-grid {
    gap: 50px;
  }

  .section {
    padding: 85px 0;
  }
}

/* SMARTPHONE */

@media(max-width: 700px) {
  .container {
    width: min(100% - 36px, 540px);
  }

  .site-header {
    height: 76px;
  }

  .brand img {
    width: 205px;
    height: 60px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 18px 24px 24px;
    box-shadow: 0 15px 25px #17233e12;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 0;
    font-size: 13px;
  }

  .main-nav .nav-cta {
    text-align: center;
    padding: 13px;
    margin-top: 8px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 65px;
    padding-bottom: 35px;
    gap: 10px;
  }

  .hero h1 {
    font-size: 55px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-note {
    margin-top: 30px;
  }

  .hero-visual {
    height: 350px;
    margin-top: 8px;
  }

  .extinguisher {
    height: 300px;
  }

  .visual-orbit {
    width: 285px;
    height: 285px;
  }

  .tag-top {
    right: 5px;
    top: 30px;
  }

  .tag-bottom {
    left: 0;
    bottom: 28px;
  }

  .hero-bottom-inner {
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 13px;
    padding-bottom: 13px;
    font-size: 8px;
  }

  .intro-grid,
  .services-grid,
  .quote-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section {
    padding: 72px 0;
  }

  .section h2 {
    font-size: 42px;
  }

  .intro-text {
    padding-top: 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 22px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-art {
    height: 220px;
  }

  .product-info {
    padding: 22px;
  }

  .product-info p {
    min-height: 0;
  }

  .services-grid {
    gap: 45px;
  }

  .quote-form {
    padding: 23px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-top {
    font-size: 8px;
  }

  .footer {
    padding-top: 48px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 35px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand img {
    width: 220px;
    height: 75px;
  }

  .footer-contact {
    padding-top: 4px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    line-height: 1.7;
  }

  .hero-actions {
    gap: 18px;
    flex-wrap: wrap;
  }
}

/* ACCESSIBILITÀ */

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

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