.faq-section {
  text-align: center;
}

.contact-hero h1 {
  font-size: clamp(3rem,8vw,7rem);
  line-height: 1.1;
}

.contact-hero h1 span {
  color: var(--yellow);
}

.contact-hero p {
  font-size: 1.3rem;
  max-width: 680px;
  margin: auto;
}

.contact-section.section.wrap {
  position: relative;
  z-index: 1;
  width: min(1690px, calc(100% - 96px));
  margin: -60px auto 0;
  padding: 22px 26px;
  border: 2px solid #000;
  border-radius: 16px;
  background: #fff;
  box-shadow: 6px 7px 0 #000;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.contact-art {
  background: var(--deep-purple) url('../media/2026/05/sfondo-contatti-884x1024.jpg') center/cover;
  min-width: 0;
  border-radius: 16px;
}

.contact-form {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 26px;
  padding: 42px clamp(24px, 4vw, 74px);
  border: 2px solid #000;
  border-radius: 16px;
  background: #fff;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #000;
  border-radius: 6px;
  box-shadow: 4px 5px 0 #000;
  background: #fff;
  color: #222;
}

.form-field textarea {
  resize: vertical;
  min-height: 160px;
}

.privacy-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
}

.privacy-row input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--purple);
}

.privacy-row label {
  flex: 1;
}

.contact-form>.button {
  justify-self: start;
}

.direct-email {
  font-size: .9rem;
  overflow-wrap: anywhere;
  margin: 0;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#form-status {
  padding: 16px;
  border-radius: 8px;
  border: 2px solid #ad2a17;
  background: #fff3f0;
  color: #7b2416;
  margin: 0;
}

#form-status.success {
  border-color: #13713b;
  background: #e9f9ee;
  color: #10542d;
}

.faq-section {
  max-width: 950px;
}

@media(max-width:800px) {
  .contact-section.section.wrap {
    width: calc(100% - 40px);
    margin-top: -40px;
    padding: 18px;
  }

  .contact-form {
    padding: 28px 24px;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-art {
    height: 280px;
    background-position: center 35%;
  }
  
  .contact-hero h1 {
    font-size: clamp(2.6rem,10vw,5rem);
  }
}

@media(max-width:500px) {
  .contact-section.section.wrap {
    width: calc(100% - 32px);
    padding: 12px;
  }

  .contact-form {
    gap: 22px;
    padding: 24px 16px;
  }

  .contact-art {
    height: 220px;
  }

  .contact-form>.button {
    width: 100%;
  }
}

.contact-hero {
  position: relative;
  isolation: isolate;
}

.contact-hero>.wrap {
  position: relative;
  z-index: 1;
}

.contact-title-line {
  display: block;
}

.contact-hero h1 .contact-title-line:first-child {
  color: #fff;
}

.contact-cube {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.contact-cube-purple {
  width: 150px;
  top: 200px;
  left: 60px;
}

.contact-cube-yellow {
  width: 100px;
  top: 500px;
  right: 50px;
}

@media(max-width:800px) {
  .contact-cube-purple {
    width: 75px;
    top: 140px;
    left: 15px;
  }
  
  .contact-cube-yellow {
    width: 60px;
    top: auto;
    bottom: 45px;
    right: 15px;
  }
}

.custom-accordion {
  max-width: 900px;
  margin: 40px auto;
  display: grid;
  gap: 16px;
  font-family: Arial, sans-serif;
  text-align: left;
}

.accordion-item {
  border: 2px solid #111;
  border-radius: 6px;
  background: #fff;
  box-shadow: 4px 4px 0 #111;
  overflow: hidden;
}

.accordion-header {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 26px;
  font-weight: 700;
  color: #1f2937;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-title {
  flex: 1;
}

.accordion-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #222;
  position: relative;
  flex: 0 0 44px;
  background: #f7f7f7;
  pointer-events: none;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #222;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.accordion-icon::before {
  width: 18px;
  height: 2px;
}

.accordion-icon::after {
  width: 2px;
  height: 18px;
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: max-height, opacity, transform;
}

.accordion-content-inner {
  padding: 0 24px 24px 24px;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.6;
}

.accordion-item[open] .accordion-content {
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
}

.accordion-item[open] .accordion-icon {
  background: #8b5cf6;
}

.accordion-item[open] .accordion-icon::after {
  display: none;
}

@media (max-width: 500px) {
  .accordion-header {
    padding: 20px 16px;
    gap: 12px;
    font-size: 20px;
  }
  
  .accordion-content-inner {
    padding: 0 16px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .accordion-content {
    transition: none;
    transform: none;
  }
}

@media (max-width: 800px) {
  .page-hero.contact-hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 180px 0 105px;
  }

  .contact-hero h1 {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.12;
    margin-bottom: 24px;
    text-shadow: 2px 2px 0 #000;
  }

  .contact-hero p {
    max-width: 340px;
    font-size: 16px;
    line-height: 1.5;
  }

  .contact-cube-purple {
    width: 48px;
    height: auto;
    top: 130px;
    left: 22px;
  }

  .contact-cube-yellow {
    width: 40px;
    height: auto;
    top: auto;
    bottom: 48px;
    right: 22px;
  }
}
