/*
  Footer Moma (replica Figma)
  - box bianco con 3 colonne
  - claim FUORI dal box
  - case study box alto come box bianco
  Nota: qui usiamo CSS "plain" per non dipendere dal rebuild Tailwind.
*/

.moma-footer{
  background: #f4e2d2;
  padding: 64px 0 28px;
}

.moma-footer__container{ position: relative; }

.moma-footer__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom: 28px;
}

.moma-footer__title{
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f0538;
  margin:0;
}

.moma-footer__cta{
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: #3b21b6;
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}

.moma-footer__cta svg{
  stroke: #ffffff;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.moma-footer__layout{
  display:grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: auto auto;
  gap: 18px;
  align-items: stretch;
}

/* Desktop: box e case same height */
.moma-footer__box{ grid-column: 1; grid-row: 1; }
.moma-footer__case{ grid-column: 2; grid-row: 1; }
.moma-footer__claim{ grid-column: 1; grid-row: 2; }

.moma-footer__box{
  background: #ffffff;
  border: 1px solid rgba(73, 28, 170, 0.55);
  border-radius: 16px;
  padding: 22px 22px;
  min-height: 240px;
  display:flex;
}

.moma-footer__boxgrid{
  width:100%;
  display:grid;
  grid-template-columns: 1.25fr 0.9fr 48px;
  gap: 18px;
  align-items:start;
}

.moma-footer__h{
  font-size: 14px;
  font-weight: 600;
  color: #0f0538;
  margin-bottom: 12px;
}

/* HubSpot form (e fallback) */
.moma-footer__hs,
.moma-footer__stub{
  max-width: 340px;
}

.moma-footer__stub{ display:grid; gap:12px; }

.moma-footer .hs-form .hs-form-field{ margin-bottom: 12px; }
.moma-footer .hs-form .hs-form-field > label{
  display:none !important;
}

.moma-footer .hs-form .legal-consent-container,
.moma-footer .hs-form .hs-dependent-field,
.moma-footer .hs-form .inputs-list{
  margin-top: 10px;
}

.moma-footer .hs-form .legal-consent-container > label,
.moma-footer .hs-form .legal-consent-container label,
.moma-footer .hs-form .inputs-list label,
.moma-footer .hs-form .inputs-list li,
.moma-footer .hs-form .hs-form-booleancheckbox-display,
.moma-footer .hs-form .hs-form-booleancheckbox-display span{
  display: block !important;
}

.moma-footer .hs-form .legal-consent-container,
.moma-footer .hs-form .legal-consent-container *:not(input):not(svg):not(path),
.moma-footer .hs-form .inputs-list,
.moma-footer .hs-form .inputs-list *:not(input):not(svg):not(path),
.moma-footer .hs-form .hs-form-booleancheckbox-display,
.moma-footer .hs-form .hs-form-booleancheckbox-display *:not(input):not(svg):not(path){
  color: #0f0538;
  font-family: "Epilogue", system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: -0.01em !important;
  text-transform: lowercase !important;
}

.moma-footer .hs-form .legal-consent-container .hs-richtext p{
  margin: 0 0 8px;
}

.moma-footer .hs-form .inputs-list{
  list-style: none;
  padding: 0;
}

.moma-footer .hs-form .inputs-list li{
  margin: 0 0 8px;
}

.moma-footer .hs-form .inputs-list label,
.moma-footer .hs-form .hs-form-booleancheckbox-display label{
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
}

.moma-footer .hs-form .inputs-list label span,
.moma-footer .hs-form .hs-form-booleancheckbox-display span,
.moma-footer .hs-form .legal-consent-container .hs-richtext,
.moma-footer .hs-form .legal-consent-container .hs-richtext p{
  margin: 0 !important;
}

.moma-footer .hs-form input[type="checkbox"]{
  flex: 0 0 auto;
  width: 14px !important;
  height: 14px;
  margin-top: 2px;
  accent-color: #3b21b6;
}

.moma-footer .hs-form .legal-consent-container a,
.moma-footer .hs-form .inputs-list a{
  color: #3b21b6 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

.moma-footer .hs-form .legal-consent-container a:hover,
.moma-footer .hs-form .inputs-list a:hover{
  color: #27158a;
}

.moma-footer .hs-form .inputs-list .hs-form-booleancheckbox-display,
.moma-footer .hs-form .inputs-list label span{
  max-width: 100%;
}

.moma-footer .hs-form .hs-error-msgs{
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.moma-footer .hs-form .hs-error-msg{
  color: #b42318;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.moma-footer .hs-form input[type="email"],
.moma-footer .hs-form input[type="text"],
.moma-footer__stub input{
  width: 100% !important;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid rgba(73, 28, 170, 0.7);
  padding: 0 14px;
  font-size: 13px;
  outline: none;
}

.moma-footer .hs-form input.error,
.moma-footer .hs-form input.invalid{
  border-color: #b42318;
  background: #fff7f7;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.18);
}

.moma-footer .hs-form input::placeholder,
.moma-footer__stub input::placeholder{
  color: rgba(15,5,56,0.45);
}

.moma-footer .hs-form .hs-submit,
.moma-footer__stub button{
  margin-top: 8px;
}

.moma-footer .hs-form .hs-submit .actions{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 30px;
  padding: 0;
  border-radius: 9999px;
  overflow: hidden;
  isolation: isolate;
  background: #f38c12;
  cursor: pointer;
}

.moma-footer .hs-form .hs-submit .actions::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #e0d9d0;
  z-index: 1;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}

.moma-footer .hs-form .hs-submit .actions::after{
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity 260ms cubic-bezier(.2,.8,.2,1), transform 260ms cubic-bezier(.2,.8,.2,1);
  background-color: currentColor;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='9' cy='10' r='1.2' fill='black'/%3E%3Cpath d='M14 10.2h3.5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M8.5 15c1.3 1.2 2.6 1.8 3.5 1.8s2.2-.6 3.5-1.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='9' cy='10' r='1.2' fill='black'/%3E%3Cpath d='M14 10.2h3.5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M8.5 15c1.3 1.2 2.6 1.8 3.5 1.8s2.2-.6 3.5-1.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.moma-footer .hs-form .hs-submit:hover .actions::before,
.moma-footer .hs-form .hs-submit:focus-within .actions::before{
  transform: scaleX(1);
}

.moma-footer .hs-form .hs-submit:hover .actions::after,
.moma-footer .hs-form .hs-submit:focus-within .actions::after{
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.moma-footer .hs-form input[type="submit"],
.moma-footer__stub button{
  appearance:none;
  border: 0;
  background: #f38c12;
  color: #0f0538;
  height: 30px;
  padding: 0 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  cursor:pointer;
}

.moma-footer .hs-form input[type="submit"]{
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 120px;
  height: 30px;
  padding: 0 2.55rem 0 2.55rem;
  background: transparent;
  color: #0f0538;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  font-family: "Epilogue", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 30px;
  transition: color 260ms cubic-bezier(.2,.8,.2,1);
}

.moma-footer .hs-form .hs-submit:hover input[type="submit"],
.moma-footer .hs-form .hs-submit:focus-within input[type="submit"]{
  color: #18085a;
}

.moma-footer .hs-form .submitted-message{
  margin-top: 10px;
  color: #0f0538;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.moma-footer .moma-hs-feedback{
  display: none;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.moma-footer .moma-hs-feedback.is-visible{
  display: block;
}

.moma-footer .moma-hs-feedback.is-error{
  color: #b42318;
}

.moma-footer .moma-hs-feedback.is-success{
  color: #0f0538;
}


.moma-footer__menu ul{ margin:0; padding:0; list-style:none; }
.moma-footer__menu li{ margin: 0 0 8px; }

.moma-footer__menu a{
  color: #0f0538;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.moma-footer__menu a::after{
  content: '.';
  margin-left: 1px;
}

.moma-footer__menu a:hover{ text-decoration: underline; }

.moma-footer__social{
  display:flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  padding-top: 2px;
}

.moma-footer__social a{
  color: #491caa;
  display:inline-flex;
}

.moma-footer__social svg{
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Claim */
.moma-footer__claim{ margin-top: 4px; }

.moma-footer__claim-top{
  font-size: 26px;
  line-height: 1.05;
  font-weight: 600;
  color: #0f0538;
}

.moma-footer__claim-bottom{
  font-size: 26px;
  line-height: 1.05;
  font-weight: 600;
  margin-top: 4px;
}

.moma-footer__claim-accent{ color: #f38c12; }
.moma-footer__claim-dot{ color: #0f0538; }

/* Case study */
.moma-footer__case{
  min-height: 240px;
}

.moma-footer__case-link{
  display:block;
  height: 100%;
  border-radius: 12px;
  overflow:hidden;
  background: #dedede;
  text-decoration:none;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.moma-footer__case-media{ position: relative; height: 100%; }

.moma-footer__case-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.moma-footer__case-img--placeholder{
  background: linear-gradient(135deg, rgba(73,28,170,0.25), rgba(243,140,18,0.20));
}

.moma-footer__case-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.0) 55%);
}

.moma-footer__case-text{
  position:absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #ffffff;
}

.moma-footer__case-title{
  font-size: 12px;
  font-weight: 700;
}

.moma-footer__case-subtitle{
  font-size: 11px;
  opacity: 0.9;
  margin-top: 2px;
}

.moma-footer__case-dot{
  position:absolute;
  right: 10px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #3b21b6;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.45);
}

.moma-footer__copyright{
  margin-top: 18px;
  font-size: 12px;
  color: rgba(15,5,56,0.55);
}

/* Responsive */
@media (max-width: 1024px){
  .moma-footer__layout{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .moma-footer__box{ grid-column: 1; grid-row: 1; }
  .moma-footer__claim{ grid-column: 1; grid-row: 2; }
  .moma-footer__case{ grid-column: 1; grid-row: 3; }

  .moma-footer__social{ flex-direction: row; justify-content:flex-start; align-items:center; }
  .moma-footer__boxgrid{ grid-template-columns: 1fr; }
  .moma-footer__hs,
  .moma-footer__stub{ max-width: 100%; }
}
