/*
Theme Name: DeviceLight Modern
Theme URI: https://devicelight.online
Author: DeviceLight
Description: Tema proprietario moderno per DeviceLight.
Version: 1.0.2
Text Domain: devicelight-modern
*/

:root {
  --ink: #13110f;
  --ink-soft: #24201c;
  --cream: #f5f1e9;
  --paper: #fffdf8;
  --sand: #ded4c3;
  --muted: #716b63;
  --orange: #ff5a22;
  --orange-dark: #d94312;
  --lime: #d9f99d;
  --white: #fff;
  --line: rgba(19, 17, 15, 0.12);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --shadow: 0 24px 70px rgba(19, 17, 15, 0.13);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

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

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.body-inner .site-header {
  background: rgba(255, 253, 248, 0.95);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand span span {
  color: var(--orange);
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255, 90, 34, 0.3);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:not(.button) {
  position: relative;
  padding-block: 8px;
}

.main-nav a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span {
  opacity: 0;
}

.menu-open .menu-toggle::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--orange-dark);
  box-shadow: 0 14px 32px rgba(255, 90, 34, 0.25);
  transform: translateY(-2px);
}

.button--light {
  background: var(--white);
  color: var(--ink);
}

.button--light:hover,
.button--light:focus-visible {
  background: var(--cream);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.button svg {
  width: 17px;
  height: 17px;
}

.hero {
  position: relative;
  display: flex;
  min-height: 760px;
  align-items: flex-end;
  overflow: hidden;
  padding: 170px 0 86px;
  background-position: center;
  background-size: cover;
  background-image: url('assets/img/hero.webp');
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 12, 10, 0.93) 0%, rgba(15, 12, 10, 0.72) 48%, rgba(15, 12, 10, 0.16) 100%),
    linear-gradient(0deg, rgba(15, 12, 10, 0.65), transparent 55%);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: 1;
  right: -140px;
  bottom: -230px;
  width: 550px;
  height: 550px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero h1,
.section-heading h2,
.split-copy h2,
.cta-panel h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 84px);
  font-weight: 770;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lead {
  max-width: 620px;
  margin: 28px 0 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

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

.hero-metrics {
  position: relative;
  z-index: 3;
  display: grid;
  margin-top: -1px;
  background: var(--ink);
  color: var(--white);
  grid-template-columns: repeat(3, 1fr);
}

.metric {
  display: flex;
  min-height: 130px;
  align-items: center;
  gap: 17px;
  padding: 30px clamp(24px, 4vw, 54px);
  border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.metric:last-child {
  border-right: 0;
}

.metric-number {
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-style: italic;
  line-height: 1;
}

.metric strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.metric span:last-child {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.section {
  padding-block: clamp(84px, 10vw, 140px);
}

.section--paper {
  background: var(--paper);
}

.section--dark {
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.section-heading {
  display: grid;
  align-items: end;
  gap: 50px;
  margin-bottom: 58px;
  grid-template-columns: 1.2fr 0.8fr;
}

.section-heading h2,
.split-copy h2,
.cta-panel h2,
.page-hero h1 {
  font-size: clamp(38px, 5vw, 66px);
}

.section-heading p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section--dark .section-heading p {
  color: rgba(255, 255, 255, 0.62);
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  min-height: 320px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.feature-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 54px;
  place-items: center;
  border-radius: 17px;
  background: var(--ink);
  color: var(--orange);
}

.feature-icon svg {
  width: 25px;
  height: 25px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.split {
  display: grid;
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
}

.split-media {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ecebe5;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  max-width: 260px;
  padding: 19px 22px;
  border-radius: 18px;
  background: rgba(19, 17, 15, 0.9);
  color: var(--white);
  font-size: 14px;
  backdrop-filter: blur(12px);
}

.floating-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--orange);
}

.split-copy p {
  margin: 25px 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 720;
}

.check-list li::before {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  content: "✓";
  font-size: 13px;
}

.product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.12fr 0.88fr;
}

.product-card {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f2f2ed;
  color: var(--ink);
}

.product-card--wide {
  grid-row: span 2;
}

.product-card:not(.product-card--wide) {
  min-height: 245px;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card--wide img {
  min-height: 530px;
  object-fit: contain;
}

.product-card:not(.product-card--wide) img {
  min-height: 245px;
  object-fit: cover;
}

.product-card img {
  transform: translateY(48px);
}

.product-card .product-caption {
  top: 18px;
  bottom: auto;
}

.product-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 19px 21px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(14px);
}

.product-caption small {
  display: block;
  margin-bottom: 2px;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-caption strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.steps {
  display: grid;
  gap: 0;
  counter-reset: steps;
  grid-template-columns: repeat(3, 1fr);
}

.process-video {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  margin: 0 auto 58px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: #070605;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.process-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.step {
  position: relative;
  min-height: 250px;
  padding: 35px 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  counter-increment: steps;
}

.step:last-child {
  border-right: 0;
}

.step::before {
  display: block;
  margin-bottom: 54px;
  color: var(--orange);
  content: "0" counter(steps);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
}

.step h3 {
  margin: 0 0 9px;
  font-size: 21px;
}

.step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
}

.cta-section {
  padding-block: 22px 110px;
  background: var(--paper);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(50px, 8vw, 96px);
  border-radius: var(--radius-lg);
  background: var(--orange);
  color: var(--white);
}

.cta-panel::after {
  position: absolute;
  right: -70px;
  bottom: -170px;
  width: 420px;
  height: 420px;
  border: 70px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  max-width: 770px;
  margin-bottom: 30px;
}

.site-footer {
  padding: 72px 0 28px;
  background: var(--ink);
  color: var(--white);
}

.footer-main {
  display: grid;
  gap: 70px;
  padding-bottom: 62px;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
}

.footer-brand p {
  max-width: 390px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.54);
}

.footer-column h3 {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  display: table;
  margin: 9px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.footer-column a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.page-hero {
  padding: 190px 0 90px;
  background: var(--ink);
  color: var(--white);
}

.page-hero .eyebrow {
  margin-bottom: 18px;
}

.page-content {
  min-height: 430px;
  padding-block: 80px 120px;
  background: var(--paper);
}

.content-card {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

.content-card > :first-child {
  margin-top: 0;
}

.content-card > :last-child {
  margin-bottom: 0;
}

.wpcf7-form {
  display: grid;
  gap: 5px;
}

.wpcf7-form label {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.wpcf7-form input:not([type="submit"]),
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  margin-top: 7px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 90, 34, 0.12);
}

.wpcf7-form input[type="submit"] {
  min-height: 52px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.cmplz-cookiebanner {
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow) !important;
  font-family: inherit !important;
}

.cmplz-cookiebanner .cmplz-btn.cmplz-accept {
  border-color: var(--orange) !important;
  background: var(--orange) !important;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    width: min(86vw, 420px);
    height: 100vh;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    padding: 100px 38px 45px;
    background: var(--ink);
    color: var(--white);
    font-size: 20px;
    transform: translateX(105%);
    transition: transform 220ms ease;
  }

  .menu-open .main-nav {
    transform: translateX(0);
  }

  .menu-open .menu-toggle {
    position: fixed;
    z-index: 2;
    top: 19px;
    right: 20px;
    color: var(--white);
  }

  .main-nav .button {
    margin-top: 15px;
  }

  .hero {
    min-height: 710px;
    background-position: 62% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(15, 12, 10, 0.95), rgba(15, 12, 10, 0.48));
  }

  .hero-metrics,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 105px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section-heading,
  .split,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 22px;
  }

  .feature-card {
    min-height: 270px;
  }

  .feature-icon {
    margin-bottom: 35px;
  }

  .split-media,
  .split-media img {
    min-height: 460px;
  }

  .product-card--wide {
    grid-row: auto;
  }

  .step {
    min-height: 220px;
    border-right: 0;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: 680px;
    padding: 135px 0 55px;
    background-image: url('assets/img/hero-mobile.webp');
  }

  .hero h1 {
    font-size: clamp(43px, 14vw, 62px);
  }

  .hero-lead {
    margin: 23px 0 28px;
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .feature-card {
    padding: 28px;
  }

  .split-media,
  .split-media img {
    min-height: 380px;
  }

  .floating-note {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }

  .product-card,
  .product-card--wide img {
    min-height: 410px;
  }

  .product-card:not(.product-card--wide),
  .product-card:not(.product-card--wide) img {
    min-height: 280px;
  }

  .cta-section {
    padding-bottom: 65px;
  }

  .cta-panel {
    border-radius: 26px;
  }

  .footer-main {
    gap: 42px;
    grid-template-columns: 1fr;
  }

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

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

  .page-hero {
    padding: 145px 0 65px;
  }

  .page-content {
    padding-block: 40px 75px;
  }

  .content-card {
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
