/* =========================
   VD · Contattaci Showcase
   ========================= */

body.page-template-template-vd-contact-showcase {
  --vd-dark: #0c2931;
  --vd-light: #ededed;
  --vd-mid: #4a5f6a;
  --vd-soft: #b7c5cd;
  --vd-accent: #ff810a;
  --vd-muted: rgba(12, 41, 49, 0.65);
  --vd-field-border: rgba(12, 41, 49, 0.35);
  --vd-field-focus: rgba(255, 129, 10, 0.45);

  --vd-section-bg: #0c2931;
  --vd-section-text: #ededed;

  --vd-h1-size: clamp(30px, 6vw, 64px);
  --vd-h2-size: clamp(1.5rem, 3.4vw, 2.4rem);
  --vd-lead-size: clamp(16px, 2.6vw, 24px);
  --vd-body-size: clamp(1rem, 2.5vw, 1.1rem);
  --vd-eyebrow-size: clamp(12px, 1.2vw, 16px);

  --vd-section-padding: clamp(56px, 9vw, 120px);
  --vd-section-padding-compact: clamp(40px, 6vw, 96px);
  --vd-section-padding-xl: clamp(140px, 20vw, 240px);

  --vd-radius-pill: 9999px;
  --vd-duration-fast: 0.2s;
  --vd-duration: 0.3s;
  --vd-duration-slow: 0.35s;
  --vd-ease: ease;

  color: var(--vd-dark);
  background: var(--vd-light);
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body.page-template-template-vd-contact-showcase * {
  box-sizing: border-box;
}

body.page-template-template-vd-contact-showcase .container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: clamp(20px, 4vw, 36px);
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

body.page-template-template-vd-contact-showcase .vd-contact-section {
  padding: var(--vd-section-padding-compact) 0;
}

body.page-template-template-vd-contact-showcase .vd-contact-intro,
body.page-template-template-vd-contact-showcase .vd-contact-links {
  background: var(--vd-dark);
  color: var(--vd-light);
}

body.page-template-template-vd-contact-showcase .vd-contact-form {
  background: var(--vd-light);
  color: var(--vd-dark);
}

body.page-template-template-vd-contact-showcase .vd-contact-privacy {
  background: var(--vd-dark);
  color: var(--vd-light);
}

body.page-template-template-vd-contact-showcase .vd-contact-questionnaire {
  background: var(--vd-mid);
  color: var(--vd-light);
}

body.page-template-template-vd-contact-showcase .vd-contact-intro {
  padding-top: var(--vd-section-padding-xl);
  padding-bottom: clamp(72px, 10vw, 140px);
}

body.page-template-template-vd-contact-showcase .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: var(--vd-eyebrow-size);
  font-weight: 600;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--vd-soft);
  margin: 0 0 12px;
}

body.page-template-template-vd-contact-showcase .vd-eyebrow-small {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body.page-template-template-vd-contact-showcase h1 {
  margin: 0;
  font-size: var(--vd-h1-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.page-template-template-vd-contact-showcase h2 {
  margin: 0 0 12px;
  font-size: var(--vd-h2-size);
  font-weight: 600;
}

body.page-template-template-vd-contact-showcase .vd-contact-intro h1,
body.page-template-template-vd-contact-showcase .vd-contact-links h2,
body.page-template-template-vd-contact-showcase .vd-contact-questionnaire h2 {
  color: var(--vd-light);
}

body.page-template-template-vd-contact-showcase .vd-contact-section p {
  margin: 0 0 18px;
  color: var(--vd-muted);
  font-family: 'Libre Baskerville', serif;
  font-size: var(--vd-body-size);
  line-height: 1.6;
}

body.page-template-template-vd-contact-showcase .vd-contact-intro p,
body.page-template-template-vd-contact-showcase .vd-contact-links p,
body.page-template-template-vd-contact-showcase .vd-contact-questionnaire p {
  color: rgba(237, 237, 237, 0.75);
}

body.page-template-template-vd-contact-showcase .vd-contact-privacy p {
  font-size: 0.7em;
  line-height: 1.5;
  color: rgba(237, 237, 237, 0.75);
}

body.page-template-template-vd-contact-showcase .vd-contact-privacy a {
  color: var(--vd-light);
  border-bottom: 1px solid rgba(237, 237, 237, 0.4);
  text-decoration: none;
}

body.page-template-template-vd-contact-showcase .vd-contact-intro p {
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  line-height: 1.7;
}

body.page-template-template-vd-contact-showcase .intro-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

body.page-template-template-vd-contact-showcase .intro-copy {
  max-width: 540px;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
}

body.page-template-template-vd-contact-showcase .contact-layout {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
}

body.page-template-template-vd-contact-showcase .contact-info {
  display: grid;
  gap: 32px;
}

body.page-template-template-vd-contact-showcase .info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
  color: var(--vd-muted);
}

body.page-template-template-vd-contact-showcase .info-value {
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  font-weight: 600;
  color: var(--vd-dark);
  margin: 0;
}

body.page-template-template-vd-contact-showcase .info-link-main {
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.page-template-template-vd-contact-showcase .info-link-main::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--vd-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--vd-duration) var(--vd-ease);
}

body.page-template-template-vd-contact-showcase .info-link-main:hover::after,
body.page-template-template-vd-contact-showcase .info-link-main:focus-visible::after {
  transform: scaleX(1);
}

body.page-template-template-vd-contact-showcase .info-text {
  margin-bottom: 12px;
}

body.page-template-template-vd-contact-showcase .info-link {
  color: var(--vd-dark);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.page-template-template-vd-contact-showcase .info-link::after {
  content: '›';
  font-size: 1.2rem;
  color: var(--vd-accent);
}

body.page-template-template-vd-contact-showcase .contact-form {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

body.page-template-template-vd-contact-showcase form {
  margin-top: 24px;
}

body.page-template-template-vd-contact-showcase .form-grid {
  display: grid;
  gap: 16px;
}

body.page-template-template-vd-contact-showcase input,
body.page-template-template-vd-contact-showcase select,
body.page-template-template-vd-contact-showcase textarea {
  width: 100%;
  padding: 10px 4px;
  border: none;
  border-bottom: 1px solid var(--vd-field-border);
  background: transparent;
  color: var(--vd-dark);
  font: 500 0.95rem/1.4 'Montserrat', system-ui, sans-serif;
  transition: border-color var(--vd-duration-fast) var(--vd-ease), box-shadow var(--vd-duration-fast) var(--vd-ease);
}

body.page-template-template-vd-contact-showcase input::placeholder,
body.page-template-template-vd-contact-showcase textarea::placeholder {
  color: rgba(12, 41, 49, 0.45);
}

body.page-template-template-vd-contact-showcase input:focus,
body.page-template-template-vd-contact-showcase select:focus,
body.page-template-template-vd-contact-showcase textarea:focus {
  outline: none;
  border-color: var(--vd-field-focus);
  box-shadow: 0 2px 0 0 var(--vd-field-focus);
}

body.page-template-template-vd-contact-showcase textarea {
  min-height: 140px;
  resize: vertical;
}

body.page-template-template-vd-contact-showcase .actions {
  display: flex;
  justify-content: flex-start;
}

body.page-template-template-vd-contact-showcase .btn,
body.page-template-template-vd-contact-showcase a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--vd-radius-pill);
  border: 1px solid currentColor;
  background: transparent;
  color: var(--vd-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color var(--vd-duration) var(--vd-ease), border-color var(--vd-duration) var(--vd-ease);
}

body.page-template-template-vd-contact-showcase .btn::before,
body.page-template-template-vd-contact-showcase a.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--vd-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--vd-duration-slow) var(--vd-ease);
  z-index: -1;
}

body.page-template-template-vd-contact-showcase .btn:hover,
body.page-template-template-vd-contact-showcase a.btn:hover {
  color: var(--vd-dark);
  border-color: var(--vd-accent);
}

body.page-template-template-vd-contact-showcase .btn:hover::before,
body.page-template-template-vd-contact-showcase a.btn:hover::before {
  transform: scaleX(1);
}

body.page-template-template-vd-contact-showcase .btn:focus-visible {
  outline: 2px solid rgba(255, 129, 10, 0.65);
  outline-offset: 2px;
}

body.page-template-template-vd-contact-showcase .notice {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}

body.page-template-template-vd-contact-showcase .notice.success {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #d9f5df;
}

body.page-template-template-vd-contact-showcase .notice.error {
  background: rgba(176, 0, 32, 0.22);
  border: 1px solid rgba(176, 0, 32, 0.4);
  color: #ffd5db;
}

body.page-template-template-vd-contact-showcase .consent {
  display: grid;
  gap: 12px;
  color: var(--vd-muted);
}

body.page-template-template-vd-contact-showcase .consent .option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

body.page-template-template-vd-contact-showcase .consent .option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

body.page-template-template-vd-contact-showcase .consent .check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--vd-field-border);
  background: rgba(12, 41, 49, 0.05);
  position: relative;
}

body.page-template-template-vd-contact-showcase .consent .check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 3px;
  width: 10px;
  height: 6px;
  border: 2px solid transparent;
  border-left-color: #2b1a12;
  border-bottom-color: #2b1a12;
  transform: rotate(-45deg) scale(0.6);
  opacity: 0;
  transition: opacity 0.15s var(--vd-ease), transform 0.15s var(--vd-ease);
}

body.page-template-template-vd-contact-showcase .consent .option input:checked + .check {
  background: var(--vd-accent);
  border-color: var(--vd-accent);
}

body.page-template-template-vd-contact-showcase .consent .option input:checked + .check::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

body.page-template-template-vd-contact-showcase .consent .text a {
  color: var(--vd-dark);
  border-bottom: 1px solid rgba(12, 41, 49, 0.3);
}

body.page-template-template-vd-contact-showcase .questionnaire-card,
body.page-template-template-vd-contact-showcase .links-card {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 0;
  display: grid;
  gap: 24px;
  align-items: center;
  box-shadow: none;
}

body.page-template-template-vd-contact-showcase .cta-switch {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-weight: 600;
  color: var(--vd-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

body.page-template-template-vd-contact-showcase .cta-track {
  width: 64px;
  height: 36px;
  border-radius: var(--vd-radius-pill);
  border: 1px solid rgba(255, 129, 10, 0.8);
  background: rgba(255, 129, 10, 0.2);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: background var(--vd-duration-fast) var(--vd-ease), border-color var(--vd-duration-fast) var(--vd-ease);
}

body.page-template-template-vd-contact-showcase .cta-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--vd-accent);
  transform: translateX(0);
  transition: transform 0.25s var(--vd-ease);
  box-shadow: 0 8px 18px rgba(12, 41, 49, 0.35);
}

body.page-template-template-vd-contact-showcase .cta-switch:hover .cta-track,
body.page-template-template-vd-contact-showcase .cta-switch:focus-visible .cta-track {
  background: rgba(255, 129, 10, 0.3);
}

body.page-template-template-vd-contact-showcase .cta-switch:hover .cta-thumb,
body.page-template-template-vd-contact-showcase .cta-switch:focus-visible .cta-thumb {
  transform: translateX(24px);
}

body.page-template-template-vd-contact-showcase .links-grid {
  display: grid;
  gap: 12px;
}

body.page-template-template-vd-contact-showcase .links-grid a {
  text-decoration: none;
  color: var(--vd-light);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  width: fit-content;
  position: relative;
}

body.page-template-template-vd-contact-showcase .links-grid a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--vd-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--vd-duration) var(--vd-ease);
}

body.page-template-template-vd-contact-showcase .links-grid a:hover::after,
body.page-template-template-vd-contact-showcase .links-grid a:focus-visible::after {
  transform: scaleX(1);
}

body.page-template-template-vd-contact-showcase .vd-contact-intro a,
body.page-template-template-vd-contact-showcase .vd-contact-links a {
  color: var(--vd-light);
  border-bottom-color: rgba(237, 237, 237, 0.45);
}

@media (min-width: 768px) {
  body.page-template-template-vd-contact-showcase .intro-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
  }

  body.page-template-template-vd-contact-showcase .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  body.page-template-template-vd-contact-showcase .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-template-template-vd-contact-showcase .span-2 {
    grid-column: 1 / -1;
  }

  body.page-template-template-vd-contact-showcase .questionnaire-card,
  body.page-template-template-vd-contact-showcase .links-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  body.page-template-template-vd-contact-showcase .links-grid {
    justify-items: start;
  }
}

@media (max-width: 767px) {
  body.page-template-template-vd-contact-showcase .vd-contact-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.page-template-template-vd-contact-showcase .cta-switch {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-template-template-vd-contact-showcase .btn,
  body.page-template-template-vd-contact-showcase .info-link-main::after,
  body.page-template-template-vd-contact-showcase .links-grid a::after {
    transition: none;
  }
}
