:root {
  --idrs-contact-red: var(--idrs-red, #f51b24);
  --idrs-contact-ink: #0b0e11;
  --idrs-contact-muted: #66758a;
  --idrs-contact-line: #cfd7e2;
}

body.idrs3d-contact-variant2 .site-content > .ast-container,
body.idrs3d-contact-variant2 #primary,
body.idrs3d-contact-variant2 .site-main,
body.idrs3d-contact-variant2 article.page,
body.idrs3d-contact-variant2 .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.idrs3d-contact-variant2 .entry-header,
body.idrs3d-contact-variant2 .post-thumb,
body.idrs3d-contact-variant2 .entry-content > p:empty {
  display: none;
}

body.idrs3d-contact-variant2 #primary {
  margin-block: 0 !important;
}

body.idrs3d-contact-variant2 .entry-content > .idrs-contact-breadcrumb,
body.idrs3d-contact-variant2 .entry-content > .idrs-contact-scene {
  width: 100%;
  max-width: none;
  margin: 0;
}

.idrs-contact-shell {
  width: min(1440px, calc(100% - 80px));
  margin-inline: auto;
}

.idrs-contact-breadcrumb {
  position: relative;
  z-index: 2;
  min-height: 48px;
  display: flex;
  align-items: center;
  color: #657289;
  background: #f5f7fa;
  border-bottom: 1px solid rgba(11, 14, 17, .08);
  font-size: 13px;
}

.idrs-contact-breadcrumb .idrs-contact-shell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.idrs-contact-breadcrumb a {
  color: #738197;
  text-decoration: none;
}

.idrs-contact-scene {
  position: relative;
  isolation: isolate;
  min-height: 660px;
  overflow: hidden;
  color: #fff;
  background: #0b0e11;
}

.idrs-contact-background,
.idrs-contact-background img,
.idrs-contact-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.idrs-contact-background {
  z-index: -3;
  margin: 0;
}

.idrs-contact-background img {
  object-fit: cover;
  object-position: center 56%;
}

.idrs-contact-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 9, 13, .91) 0%, rgba(5, 9, 13, .78) 36%, rgba(5, 9, 13, .28) 64%, rgba(5, 9, 13, .08) 100%),
    linear-gradient(0deg, rgba(5, 9, 13, .28), rgba(5, 9, 13, .06) 45%, rgba(5, 9, 13, .12));
}

.idrs-contact-layout {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  gap: clamp(48px, 6vw, 104px);
  align-items: center;
  padding-block: 48px;
}

.idrs-contact-editorial {
  max-width: 560px;
  padding-left: 24px;
}

.idrs-contact-eyebrow {
  margin: 0 0 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.idrs-contact-editorial h1 {
  max-width: 560px;
  margin: 0;
  color: #fff;
  font-family: var(--idrs-display-font, inherit);
  font-size: clamp(56px, 4.25vw, 76px);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.045em;
}

.idrs-contact-lead {
  max-width: 530px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .96);
  font-size: 17px;
  line-height: 1.43;
}

.idrs-contact-services {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

.idrs-contact-service {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 17px;
  align-items: center;
}

.idrs-contact-service-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.idrs-contact-service-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.idrs-contact-service strong,
.idrs-contact-service small {
  display: block;
  color: #fff;
}

.idrs-contact-service strong {
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: 700;
}

.idrs-contact-service small {
  font-size: 14px;
  line-height: 1.35;
}

.idrs-contact-made-in-italy {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.idrs-contact-flag {
  display: grid;
  grid-template-columns: repeat(3, 15px);
  height: 24px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
}

.idrs-contact-flag i:nth-child(1) { background: #009246; }
.idrs-contact-flag i:nth-child(2) { background: #fff; }
.idrs-contact-flag i:nth-child(3) { background: #ce2b37; }

.idrs-contact-card {
  width: min(100%, 600px);
  justify-self: end;
  padding: 28px 30px 26px;
  color: #111827;
  background: rgba(255,255,255,.985);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(5, 9, 13, .20);
}

.idrs-contact-card-header h2 {
  margin: 0;
  color: #111827;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.idrs-contact-card-header p {
  margin: 6px 0 14px;
  color: var(--idrs-contact-muted);
  font-size: 14px;
  line-height: 1.35;
}

.idrs-contact-card .wpcf7,
.idrs-contact-card .wpcf7-form {
  margin: 0;
}

.idrs-contact-card .wpcf7-form > p {
  margin: 0 0 10px;
}

.idrs-contact-card .wpcf7-form > p:last-of-type {
  position: relative;
  margin-bottom: 0;
}

.idrs-contact-card .idrs-contact-field-label {
  display: grid;
  gap: 7px;
  color: #111827;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.idrs-contact-card .idrs-contact-field-label b {
  color: var(--idrs-contact-red);
}

.idrs-contact-card input[type="text"],
.idrs-contact-card input[type="email"],
.idrs-contact-card textarea {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 14px;
  color: #182233;
  background: #fff;
  border: 1px solid var(--idrs-contact-line);
  border-radius: 9px;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.35;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.idrs-contact-card input::placeholder,
.idrs-contact-card textarea::placeholder {
  color: #8090a8;
  opacity: 1;
}

.idrs-contact-card textarea {
  height: 120px;
  min-height: 120px;
  max-height: 190px;
  resize: vertical;
}

.idrs-contact-card input[type="text"]:focus,
.idrs-contact-card input[type="email"]:focus,
.idrs-contact-card textarea:focus {
  border-color: var(--idrs-contact-line) !important;
  box-shadow: none !important;
}

.idrs-contact-card .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.idrs-contact-card .wpcf7-acceptance label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  font-size: 14px;
  cursor: pointer;
}

.idrs-contact-card .wpcf7-acceptance input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--idrs-contact-red);
}

.idrs-contact-card .wpcf7-acceptance a {
  color: #145de8;
  text-decoration: none;
}

.idrs-contact-card .wpcf7-submit {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 24px 12px 54px;
  color: #fff;
  background-color: var(--idrs-contact-red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 21px;
  background-position: calc(50% - 72px) center;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, transform .12s ease;
}

.idrs-contact-card .wpcf7-submit:hover {
  background-color: #d9131c;
}

.idrs-contact-card .wpcf7-submit:active {
  transform: translateY(1px);
}

.idrs-contact-card .wpcf7-not-valid {
  border-color: var(--idrs-contact-red) !important;
}

.idrs-contact-card .wpcf7-not-valid-tip {
  margin-top: 4px;
  color: #b70f18;
  font-size: 12px;
}

.idrs-contact-card .wpcf7-response-output {
  margin: 14px 0 0 !important;
  padding: 10px 12px !important;
  border-radius: 8px;
  font-size: 13px;
}

.idrs-contact-card .wpcf7-spinner {
  position: absolute;
  right: 14px;
  top: 13px;
  margin: 0;
}

@media (max-width: 1100px) {
  .idrs-contact-shell { width: min(100% - 48px, 1120px); }
  .idrs-contact-layout {
    grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
    gap: 36px;
  }
  .idrs-contact-editorial { padding-left: 0; }
  .idrs-contact-editorial h1 { font-size: clamp(50px, 6vw, 66px); }
  .idrs-contact-card { padding: 26px; }
}

@media (max-width: 767px) {
  .idrs-contact-shell { width: calc(100% - 32px); }
  .idrs-contact-breadcrumb { min-height: 46px; font-size: 12px; }
  .idrs-contact-scene { min-height: 0; }
  .idrs-contact-background img { object-position: center center; }
  .idrs-contact-overlay {
    background:
      linear-gradient(180deg, rgba(5, 9, 13, .84) 0%, rgba(5, 9, 13, .67) 38%, rgba(5, 9, 13, .36) 62%, rgba(5, 9, 13, .83) 100%),
      linear-gradient(90deg, rgba(5, 9, 13, .47), rgba(5, 9, 13, .10));
  }
  .idrs-contact-layout {
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 20px 32px;
  }
  .idrs-contact-editorial {
    max-width: none;
    padding-inline: 2px;
  }
  .idrs-contact-eyebrow { margin-bottom: 14px; font-size: 11px; }
  .idrs-contact-editorial h1 { font-size: clamp(42px, 12vw, 54px); line-height: .96; }
  .idrs-contact-lead { margin-top: 16px; font-size: 15px; line-height: 1.45; }
  .idrs-contact-desktop-break { display: none; }
  .idrs-contact-services,
  .idrs-contact-made-in-italy { display: none; }
  .idrs-contact-card {
    width: 100%;
    padding: 24px 18px 20px;
    border-radius: 20px;
  }
  .idrs-contact-card-header h2 { font-size: 25px; }
  .idrs-contact-card-header p { margin-bottom: 18px; }
  .idrs-contact-card .wpcf7-form > p { margin-bottom: 12px; }
  .idrs-contact-card textarea { height: 128px; min-height: 128px; }
  .idrs-contact-card .wpcf7-submit { min-height: 50px; }
}

@media (min-width: 1920px) {
  .idrs-contact-layout { min-height: 700px; }
  .idrs-contact-scene { min-height: 700px; }
}

@media (prefers-reduced-motion: reduce) {
  .idrs-contact-card input,
  .idrs-contact-card textarea,
  .idrs-contact-card .wpcf7-submit { transition: none; }
}
