:root {
  --bg: #f7f9f7;
  --surface: #ffffff;
  --surface-soft: #edf3f1;
  --ink: #17211f;
  --muted: #53625d;
  --line: rgba(23, 33, 31, 0.14);
  --teal: #0f5c56;
  --teal-dark: #0a3e3a;
  --brick: #9b3d24;
  --brick-rgb: 155 61 36;
  --gold: #d5a648;
  --shadow: 0 18px 46px rgba(15, 45, 41, 0.12);
  --container: 1160px;
  --body-font: "Avenir Next", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --title-font: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.6;
}

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

a:hover {
  color: var(--teal);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(213, 166, 72, 0.58);
  outline-offset: 3px;
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
}

.brand strong {
  display: block;
  font-family: var(--title-font);
  font-size: 1.25rem;
  line-height: 1;
}

.brand span span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.main-nav a {
  padding: 0.4rem 0;
}

.main-nav .nav-contact {
  padding: 0.78rem 1.45rem;
  color: #ffffff;
}

.nav-contact,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.1;
}

.nav-contact,
.button.primary {
  background: var(--teal);
  color: #ffffff;
}

.nav-contact:hover,
.button.primary:hover {
  background: var(--teal-dark);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--teal-dark);
}

.button.secondary:hover {
  border-color: rgba(15, 92, 86, 0.38);
  color: var(--teal);
}

.hero {
  min-height: 74vh;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #102522;
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(10, 31, 28, 0.88), rgba(10, 31, 28, 0.56) 46%, rgba(10, 31, 28, 0.2)),
    url("../img/hero-support-photo.jpg");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(16, 37, 34, 0.64));
}

.hero-copy {
  width: min(720px, 100%);
  padding: 5.5rem 0 5rem;
}

.eyebrow {
  display: inline-block;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 1rem;
}

.hero .eyebrow {
  color: #f4d889;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--title-font);
  line-height: 1.08;
}

h1 {
  margin-top: 0.7rem;
  font-size: clamp(3rem, 8vw, 5.8rem);
  letter-spacing: 0;
}

h1.insieme {   
  font-style: italic;
  -webkit-text-stroke: 1px #000;
}

.hero-text {
  max-width: 680px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.hero-actions,
.section-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.hero-kicker span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.36rem 0.62rem;
  border-radius: 8px;
  background: rgb(var(--brick-rgb) / 0.80);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

.page-hero {
  padding: 5rem 0 3.8rem;
  background:
    linear-gradient(135deg, rgba(15, 92, 86, 0.1), rgba(213, 166, 72, 0.16)),
    #ffffff;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

.page-hero p {
  max-width: 780px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.14rem;
}

.section {
  padding: 4rem 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  margin-top: 0.45rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(15, 45, 41, 0.06);
}

.card h3 {
  font-size: 1.45rem;
}

.card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.metric-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  padding: 1.4rem;
  background: var(--teal-dark);
  color: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-band h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.metric-band p,
.metric-list li {
  color: rgba(255, 255, 255, 0.84);
}

.metric-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metric-list strong {
  display: block;
  color: #ffffff;
}

.flow {
  counter-reset: step;
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow li::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--surface-soft);
  color: var(--teal);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.flow strong {
  display: block;
}

.flow span {
  display: block;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}

.quote-panel {
  padding: 1.5rem;
  background: var(--surface-soft);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
}

.quote-panel p {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
}

.quote-panel small {
  display: block;
  margin-top: 0.8rem;
  color: var(--muted);
}

.product-preview-grid,
.product-gallery {
  display: grid;
  gap: 1rem;
}

.product-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin-inline: auto;
}

.product-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-shot {
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(15, 45, 41, 0.08);
}

.product-shot img {
  width: 100%;
  height: min(58vw, 620px);
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}

.product-shot > a {
  display: block;
}

.product-shot > a:hover img {
  filter: brightness(0.96);
}

.product-shot-small img {
  height: 440px;
}

.product-shot figcaption {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
}

.product-shot figcaption strong {
  font-family: var(--title-font);
  font-size: 1.2rem;
  line-height: 1.15;
}

.product-shot figcaption span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.source-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.source-list a {
  color: var(--teal);
  font-weight: 800;
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.profile-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--teal);
  color: #ffffff;
  border-radius: 8px;
  font-family: var(--title-font);
  font-size: 1.7rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.download-meta span {
  padding: 0.26rem 0.5rem;
  background: var(--surface-soft);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-band {
  padding: 2rem;
  background: var(--teal-dark);
  color: #ffffff;
  border-radius: 8px;
}

.contact-band p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  padding: 2.4rem 0;
  background: #101817;
  color: #ffffff;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-row p {
  max-width: 560px;
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
    width: 100%;
  }

  .main-nav {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.7rem;
    justify-content: flex-end;
    overflow-x: auto;
    padding-bottom: 0.45rem;
    scrollbar-width: none;
    width: auto;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
  }

  .main-nav .nav-contact {
    align-self: center;
    width: auto;
    margin: 0;
    padding: 0.72rem 1.15rem;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(10, 31, 28, 0.9), rgba(10, 31, 28, 0.46)),
      url("../img/hero-support-photo.jpg");
  }

  .hero-copy {
    padding: 4rem 0;
  }

  .grid,
  .grid.two,
  .metric-band,
  .product-gallery,
  .product-preview-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .product-shot img,
  .product-shot-small img {
    height: min(92vw, 560px);
  }

  .section {
    padding: 3rem 0;
  }

  .contact-band {
    padding: 1.3rem;
  }
}

@media (min-width: 521px) and (max-width: 1080px) {
  .hero-copy {
    padding-inline: clamp(1rem, 4vw, 2rem);
  }
}

@media (max-width: 1080px) {
  .main-nav .nav-contact {
    display: none;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 2rem, var(--container));
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 0.45rem;
    font-size: 0.86rem;
    width: 100%;
  }

  .nav-row {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 0.85rem 0 1rem;
  }

  .main-nav .nav-contact {
    padding: 0.68rem 0.9rem;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-text,
  .page-hero p {
    font-size: 1rem;
  }

  .hero-copy {
    padding-inline: 0;
  }

  .hero-actions .button,
  .section-actions .button,
  .download-actions .button {
    width: 100%;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }
}
