:root {
  --bg: #ffffff;
  --ink: #0f1720;
  --muted: #607080;
  --line: #e6eaee;
  --soft: #f6f7f8;
  --soft-2: #fbfbfa;
  --accent: #d4a15a;
  --accent-2: #69b8f2;
  --paper: #ffffff;
  --tint: #f3f5f7;
  --section: #f7f8fa;
  --button: #0f1720;
  --button-ink: #ffffff;
  --media-bg: #f6f7f8;
  --panel: #0f1720;
  --shadow: 0 18px 55px rgba(15, 23, 32, .08);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--paper), rgba(255,255,255,0) 360px),
    linear-gradient(90deg, var(--tint) 0, var(--tint) 22%, transparent 22%, transparent 100%),
    #fff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
  background: color-mix(in srgb, var(--paper) 88%, white);
  border-bottom: 1px solid rgba(230,234,238,.8);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--button);
  color: var(--button-ink);
  font-size: 12px;
  font-weight: 900;
}

.brand img {
  width: auto;
  height: 32px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #2f3a45;
  font-size: 14px;
  font-weight: 700;
}

.nav a { opacity: .86; }
.nav a:hover { opacity: 1; color: var(--ink); }
.nav-cta {
  padding: 11px 16px;
  border: 1px solid var(--button);
  border-radius: 6px;
  color: var(--button-ink) !important;
  background: var(--button);
}

.menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu span,
.menu::before,
.menu::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 66px 0 44px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -8vw;
  top: 54px;
  width: min(42vw, 520px);
  height: 72%;
  background: var(--tint);
  clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%);
}

.hero-copy {
  max-width: 590px;
}

h1, h2, .serif {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  color: var(--ink);
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(46px, 6vw, 84px);
  line-height: .96;
  font-weight: 700;
  overflow-wrap: break-word;
}

h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 13px 19px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--tint) 42%, white);
}
.button.primary {
  border-color: var(--button);
  background: var(--button);
  color: var(--button-ink);
  box-shadow: 0 12px 28px rgba(15, 23, 32, .16);
}
.button svg { width: 16px; height: 16px; }

.quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
}

.quick-info span {
  color: color-mix(in srgb, var(--accent) 70%, var(--muted));
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.quick-info strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.hero-media {
  position: relative;
  min-height: 520px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 8px;
  overflow: hidden;
  background: var(--media-bg);
  box-shadow: var(--shadow);
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-media.contain img {
  object-fit: contain;
  padding: 34px;
  background: linear-gradient(135deg, #fff, var(--media-bg));
}

.media-note {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel) 86%, black);
  color: #fff;
  backdrop-filter: blur(10px);
}

.media-note b { display: block; font-size: 14px; }
.media-note span { display: block; color: rgba(255,255,255,.72); font-size: 13px; }

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section.tint {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--section) 82%, white), #fff);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-head h2 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
}

.section-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  min-height: 210px;
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}

.feature:nth-child(2) {
  border-top-color: var(--accent-2);
}

.feature:nth-child(3) {
  border-top-color: color-mix(in srgb, var(--accent) 50%, var(--accent-2));
}

.feature svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  stroke-width: 1.8;
}

.feature h3 {
  margin: 22px 0 10px;
  font-size: 20px;
  line-height: 1.15;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.process {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 52px;
  align-items: start;
}

.process-list {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
}

.step-num {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }

.showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.showcase-item {
  display: grid;
  align-content: space-between;
  min-height: 245px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--section) 70%, white));
}

.showcase-item img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 16px;
}

.showcase-item span {
  font-weight: 850;
}

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--panel), color-mix(in srgb, var(--panel) 82%, var(--accent-2)));
  color: #fff;
}

.cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(32px, 4vw, 50px);
}

.cta p { margin: 0; color: rgba(255,255,255,.72); }
.cta .button { border-color: rgba(255,255,255,.22); }

.contact-card {
  display: grid;
  gap: 10px;
  min-width: 280px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.contact-card span {
  color: rgba(255,255,255,.58);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 850;
}

.contact-card a { font-size: 18px; font-weight: 850; }

.footer {
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

body.dibellan .hero-media img { object-position: center; }
body.importaditto .hero-media img,
body.movix .hero-media img { object-fit: contain; padding: 36px; background: var(--media-bg); }
body.salditto .hero-media video { object-position: center; }

body.cierzo h1 {
  font-size: clamp(42px, 5.2vw, 68px);
}

body.movix .brand img,
body.salditto .brand img {
  display: none;
}

body.cierzo .media-note,
body.movix .media-note {
  background: linear-gradient(135deg, var(--panel), var(--button));
}

body.dibellan .media-note {
  background: linear-gradient(135deg, #6f102c, #a0304d);
}

body.importaditto .button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #071B25;
}

body.importaditto .nav-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #071B25 !important;
}

body.movix .feature:nth-child(2),
body.salditto .feature:nth-child(2) {
  background: color-mix(in srgb, var(--section) 62%, white);
}

@media (max-width: 900px) {
  .topbar { width: 100%; padding: 14px 18px; }
  .menu { display: block; }
  .nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; }
  .nav-cta { text-align: center; }
  .container { width: min(100% - 32px, 1180px); }
  h1 {
    font-size: clamp(36px, 10vw, 44px);
    line-height: 1.02;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 34px;
    padding: 44px 0;
  }
  .hero-media, .hero-media img, .hero-media video { min-height: 360px; }
  .section { padding: 54px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .feature-grid, .showcase { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 24px; }
  .cta { grid-template-columns: 1fr; padding: 26px; }
  .contact-card { min-width: 0; }
  .footer-inner { display: block; }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(34px, 9vw, 39px);
  }
  .lead {
    font-size: 16px;
  }
  .quick-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .quick-info strong {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .hero-media,
  .hero-media img,
  .hero-media video {
    min-height: 300px;
  }
  .media-note {
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
