/*
Theme Name: Huware Landing
Description: Tema custom per le landing ADV di Huware.
Version: 0.3.0
Requires at least: 6.6
Requires PHP: 8.2
Author: Happy Brain
Text Domain: huware-landing
*/

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/DMSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/DMSans-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/DMSans-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/dmmono-regular-webfont.woff2") format("woff2");
}

:root {
  --huware-primary: #00f5ff;
  --huware-secondary: #00aac8;
  --huware-black: #000;
  --huware-grey: #76787c;
  --huware-light-grey: #f0f0f0;
  --huware-white: #fff;
  --huware-canvas: 1440px;
  --huware-content: 1248px;
  --huware-gutter: clamp(32px, 6.6667vw, 96px);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--huware-white);
  color: var(--huware-black);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
  font-family: "DM Sans", sans-serif;
}

a {
  color: inherit;
}

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

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--huware-primary);
  color: var(--huware-black);
  font-family: "DM Mono", monospace;
  font-size: 14px;
  text-transform: uppercase;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  height: 96px;
  border-bottom: 1px solid var(--huware-black);
  background: var(--huware-white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  width: min(100%, var(--huware-canvas));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--huware-gutter);
}

.site-header__logo {
  display: block;
  width: 177px;
}

.site-header__logo:focus-visible,
.huware-button:focus-visible,
.huware-section-nav a:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 3px solid var(--huware-secondary);
  outline-offset: 4px;
}

#main-content,
.landing-content,
.landing-content > * {
  margin-block: 0;
}

.landing-content {
  overflow: clip;
}

.huware-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid var(--huware-primary);
  background: var(--huware-primary);
  color: var(--huware-black);
  font-family: "DM Mono", monospace;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.huware-button:hover {
  background: var(--huware-black);
  color: var(--huware-white);
}

.huware-button__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.huware-button:hover .huware-button__icon {
  filter: invert(1);
}

.huware-hero {
  display: grid;
  width: min(100%, var(--huware-canvas));
  min-height: 637px;
  grid-template-columns: minmax(0, 1005px) minmax(320px, 435px);
  margin-inline: auto;
  background: var(--huware-white);
}

.huware-hero__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 64px 25px 28px var(--huware-gutter);
}

.huware-hero__title {
  max-width: 883px;
  margin: 0;
  font-size: clamp(64px, 6.6667vw, 96px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.huware-hero__title span,
.huware-hero__title mark {
  display: block;
}

.huware-hero__title mark {
  padding: 0;
  background: transparent;
  color: var(--huware-secondary);
}

.huware-hero__text {
  max-width: 883px;
  margin: 16px 0 24px;
  font-size: 24px;
  line-height: 1.5;
}

.huware-hero__text strong {
  font-weight: 500;
}

.huware-hero__trust {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 0;
  color: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  line-height: 18px;
}

.huware-hero__trust img {
  width: 12px;
  height: 12px;
}

.huware-hero__media {
  min-width: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  background: #001a3d;
}

.huware-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.huware-section-nav {
  min-height: 78px;
  background: var(--huware-black);
  color: var(--huware-white);
}

.huware-section-nav__inner {
  display: flex;
  width: min(100%, var(--huware-canvas));
  min-height: 78px;
  align-items: center;
  gap: 32px;
  margin-inline: auto;
  padding-inline: var(--huware-gutter);
  overflow-x: auto;
  scrollbar-width: thin;
}

.huware-section-nav a {
  flex: 0 0 auto;
  font-family: "DM Mono", monospace;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
}

.huware-section-nav a:hover {
  color: var(--huware-primary);
}

.huware-partner {
  width: min(100%, var(--huware-canvas));
  margin-inline: auto;
  padding: 45px var(--huware-gutter) 73px;
  background: var(--huware-white);
}

.huware-partner__intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.huware-eyebrow {
  margin: 0 0 8px;
  font-family: "DM Mono", monospace;
  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
}

.huware-partner__heading {
  max-width: 512px;
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.huware-partner__description {
  align-self: end;
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}

.huware-partner__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px;
  margin-top: 40px;
}

.huware-partner-card {
  min-height: 193px;
  padding: 24px;
  border: 1px solid var(--huware-black);
  background: var(--huware-white);
}

.huware-partner-card__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 8px;
  background: var(--huware-light-grey);
}

.huware-partner-card__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.huware-partner-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.huware-partner-card__text {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.huware-partner__metrics {
  display: grid;
  min-height: 96px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  background: rgba(0, 245, 255, 0.3);
}

.huware-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.huware-metric__label {
  font-family: "DM Mono", monospace;
  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
}

.huware-metric__value {
  font-family: "DM Mono", monospace;
  font-size: 32px;
  font-weight: 500;
  line-height: 28px;
}

.huware-offer {
  width: min(100%, var(--huware-canvas));
  margin-inline: auto;
  padding: 0 var(--huware-gutter) 45px;
  background: var(--huware-white);
}

.huware-offer__intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.huware-offer__heading,
.huware-offer__detail-heading {
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.huware-offer__heading {
  max-width: 512px;
}

.huware-offer__description {
  align-self: start;
  margin: 28px 0 0;
  font-size: 20px;
  line-height: 1.5;
}

.huware-offer__matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-top: 40px;
}

.huware-offer__deliverables {
  min-height: 383px;
  padding: 32px;
  background: rgba(0, 245, 255, 0.3);
}

.huware-offer__deliverables h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.huware-offer__deliverables ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.huware-offer__deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.huware-offer__deliverables li img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 4px;
}

.huware-offer__comparison {
  align-self: start;
}

.huware-offer__comparison table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.huware-offer__comparison caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.huware-offer__comparison th,
.huware-offer__comparison td {
  height: 55px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--huware-light-grey);
  text-align: center;
  vertical-align: middle;
}

.huware-offer__comparison thead th {
  height: 54px;
  background: rgba(0, 245, 255, 0.3);
  font-family: "DM Mono", monospace;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.huware-offer__comparison tbody th {
  color: #2d3748;
  font-weight: 400;
}

.huware-offer__comparison tbody td:nth-child(2) {
  color: #9aa5b4;
}

.huware-offer__comparison tbody tr:nth-child(even) > * {
  background: rgba(240, 240, 240, 0.5);
}

.huware-offer__comparison tbody strong {
  color: var(--huware-black);
  font-weight: 700;
}

.huware-offer__comparison tfoot td {
  height: 56px;
  padding: 16px 20px;
  border-top: 1px solid var(--huware-light-grey);
  border-bottom: 0;
  background: var(--huware-light-grey);
  font-size: 12px;
  letter-spacing: -0.02em;
}

.huware-offer__detail {
  display: grid;
  grid-template-columns: minmax(0, 826px) 344px;
  gap: 78px;
  margin-top: 42px;
}

.huware-offer__detail-heading {
  max-width: 754px;
}

.huware-offer__detail-copy {
  margin-top: 51px;
  font-size: 20px;
  line-height: 1.5;
}

.huware-offer__detail-copy p {
  margin: 0;
}

.huware-offer__detail-copy p + p {
  margin-top: 30px;
}

.huware-offer__detail-content > .huware-button {
  margin-top: 32px;
}

.huware-offer__media {
  width: 344px;
  height: 547px;
  margin: 8px 0 0;
  overflow: hidden;
  background: var(--huware-light-grey);
}

.huware-offer__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--huware-black);
  color: var(--huware-white);
}

.site-footer::after {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: url("assets/images/footer-pattern.png") center / contain no-repeat;
  content: "";
  opacity: 0.24;
  pointer-events: none;
}

.site-footer__inner,
.site-footer__bottom {
  position: relative;
  z-index: 1;
  width: min(100%, var(--huware-canvas));
  margin-inline: auto;
  padding-inline: var(--huware-gutter);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-block: 72px;
}

.site-footer__logo {
  width: 177px;
  margin-bottom: 24px;
  filter: invert(1);
}

.site-footer__identity p,
.site-footer__bottom p {
  margin: 0;
  font-size: 14px;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer__nav a,
.site-footer__link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--huware-white);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.site-footer__nav a:hover,
.site-footer__link-button:hover {
  color: var(--huware-primary);
}

.site-footer__bottom {
  padding-block: 24px;
  border-top: 1px solid var(--huware-grey);
}

@media (max-width: 1100px) {
  .huware-hero {
    grid-template-columns: minmax(0, 70%) minmax(280px, 30%);
  }

  .huware-hero__title {
    font-size: clamp(60px, 6.7vw, 76px);
  }

  .huware-hero__text {
    font-size: 20px;
  }

  .huware-partner__cards {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  :root {
    --huware-gutter: 32px;
  }

  .site-header {
    height: 81px;
  }

  .huware-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding-bottom: 37px;
  }

  .huware-hero__content {
    padding: 32px var(--huware-gutter) 28px;
  }

  .huware-hero__title {
    font-size: clamp(48px, 12.727vw, 56px);
    letter-spacing: -0.05em;
    line-height: 1.2;
  }

  .huware-hero__text {
    margin-block: 32px 40px;
    font-size: 20px;
  }

  .huware-hero__trust,
  .huware-hero__media {
    display: none;
  }

  .huware-section-nav,
  .huware-section-nav__inner {
    min-height: 78px;
  }

  .huware-partner {
    padding-block: 48px 64px;
  }

  .huware-partner__intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .huware-partner__description {
    align-self: auto;
  }

  .huware-partner__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

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

  .huware-metric {
    min-height: 96px;
  }

  .huware-offer__intro,
  .huware-offer__matrix,
  .huware-offer__detail {
    grid-template-columns: 1fr;
  }

  .huware-offer__intro {
    gap: 39px;
  }

  .huware-offer__description {
    margin: 0;
  }

  .huware-offer__matrix {
    gap: 51px;
    margin-top: 25px;
  }

  .huware-offer__deliverables {
    min-height: 451px;
    padding: 24px;
  }

  .huware-offer__comparison {
    width: calc(100% + 24px);
    margin-left: -12px;
  }

  .huware-offer__comparison table,
  .huware-offer__comparison thead,
  .huware-offer__comparison tbody,
  .huware-offer__comparison tfoot,
  .huware-offer__comparison tr,
  .huware-offer__comparison th,
  .huware-offer__comparison td {
    display: block;
    width: 100%;
    height: auto;
  }

  .huware-offer__comparison caption {
    position: static;
    width: auto;
    height: auto;
    margin-bottom: 20px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    font-family: "DM Mono", monospace;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
  }

  .huware-offer__comparison thead tr,
  .huware-offer__comparison tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .huware-offer__comparison thead th:first-child {
    display: none;
  }

  .huware-offer__comparison thead th {
    padding: 10px 12px;
    border-bottom: 0;
    background: var(--huware-white);
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
  }

  .huware-offer__comparison tbody tr {
    min-height: 90px;
    margin-top: 16px;
    background: var(--huware-white);
  }

  .huware-offer__comparison tbody th {
    grid-column: 1 / -1;
    padding: 10px 17px 4px;
    border-bottom: 0;
    color: var(--huware-black);
    text-align: left;
  }

  .huware-offer__comparison tbody td {
    padding: 10px 12px 14px;
    border-bottom: 1px solid var(--huware-light-grey);
  }

  .huware-offer__comparison tbody tr:nth-child(even) > * {
    background: transparent;
  }

  .huware-offer__comparison tfoot td {
    margin-top: 16px;
    padding: 13px 12px;
    font-size: 14px;
  }

  .huware-offer__detail {
    gap: 43px;
    margin-top: 69px;
  }

  .huware-offer__detail-copy {
    margin-top: 18px;
  }

  .huware-offer__media {
    width: 100%;
    height: 300px;
    margin: 0;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__identity {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .huware-button {
    width: 100%;
    padding-inline: 20px;
  }

  .huware-hero__media {
    min-height: 440px;
  }

  .huware-partner__heading {
    font-size: 40px;
  }

  .huware-partner__description {
    font-size: 20px;
  }

  .huware-partner__cards,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .huware-partner__cards {
    gap: 24px;
    margin-top: 32px;
  }

  .huware-partner-card {
    min-height: 0;
  }

  .huware-partner__metrics {
    margin-top: 24px;
  }

  .site-footer__inner {
    gap: 40px;
    padding-block: 56px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
