/* EffectLab fixes - versione integrata nel layout Squarespace */
.effectlab-donation-box,
.effectlab-contact-box,
.effectlab-video-box {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: min(6%, 28px);
  border: 2px solid rgba(67,48,29,.28);
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  color: #43301D;
  font-family: inherit;
}
.effectlab-donation-box h3,
.effectlab-contact-box h3,
.effectlab-video-box h3 { margin: 0; color:#43301D; line-height:1.12; font-size: clamp(22px, 2.2vw, 34px); }
.effectlab-donation-box p,
.effectlab-contact-box p,
.effectlab-video-box p { margin: 0; line-height:1.45; font-size: 15px; }
.effectlab-amount-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.effectlab-amount-grid label { cursor:pointer; min-width:0; }
.effectlab-amount-grid input { position:absolute; opacity:0; pointer-events:none; }
.effectlab-amount-grid span,
.effectlab-custom-amount,
.effectlab-contact-box input,
.effectlab-contact-box textarea {
  box-sizing:border-box; width:100%; border:1px solid rgba(67,48,29,.25); background:#fff; color:#43301D;
  border-radius:14px; padding:12px 14px; font-family:inherit; font-size:15px; outline:none;
}
.effectlab-amount-grid span { display:flex; align-items:center; justify-content:center; min-height:44px; text-align:center; }
.effectlab-amount-grid input:checked + span { border-color:#43301D; box-shadow:0 0 0 2px rgba(67,48,29,.15) inset; font-weight:700; }
.effectlab-payment-row { display:flex; gap:10px; flex-wrap:wrap; align-items:stretch; }
.effectlab-payment-row .effectlab-btn { flex:1 1 190px; }
.effectlab-btn { display:flex; align-items:center; justify-content:center; min-height:46px; border-radius:999px; border:1px solid #43301D; background:#43301D; color:#fff !important; text-decoration:none !important; font-weight:700; cursor:pointer; font-family:inherit; padding:12px 16px; line-height:1.1; text-align:center; }
.effectlab-btn.secondary { background:#fff; color:#43301D !important; }
.effectlab-note { font-size:12px !important; opacity:.72; text-align:center; }
.effectlab-contact-box textarea { min-height:120px; resize:vertical; }
.effectlab-map-frame { width:100%; height:100%; min-height:260px; border:0; border-radius:18px; overflow:hidden; display:block; }
.effectlab-video-box { margin:-55px auto 0; max-width:1180px; height:auto; border:0; background:transparent; padding: 0 min(5vw, 60px) 40px; }
.effectlab-video-placeholder, .effectlab-video-box video { width:100%; aspect-ratio:16/9; border-radius:22px; background:#1e1e1e; display:flex; align-items:center; justify-content:center; color:#fff; text-align:center; padding:24px; box-sizing:border-box; }
.language-picker-content.effectlab-open { display:block !important; opacity:1 !important; visibility:visible !important; pointer-events:auto !important; }
.effectlab-lang-option { display:block; padding:10px 14px; color:inherit; text-decoration:none; white-space:nowrap; }
.effectlab-lang-option:hover { text-decoration:underline; }
a.effectlab-mail-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .effectlab-donation-box, .effectlab-contact-box { height:auto; min-height:0; padding:20px; }
  .effectlab-payment-row { flex-direction:column; }
  .effectlab-payment-row .effectlab-btn { flex:1 1 auto; width:100%; }
  .effectlab-amount-grid { grid-template-columns:1fr 1fr; }
  .effectlab-map-frame { min-height:230px; }
  .effectlab-video-box { padding:0 20px 30px; margin-top:-25px; }
}

/* EffectLab safe mobile footer placement */
.effectlab-mobile-footer-logos { display:none; }
@media (max-width: 767px) {
  footer .effectlab-mobile-footer-logos {
    display:flex !important;
    position:relative !important;
    width:100% !important;
    box-sizing:border-box !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:14px !important;
    padding:22px 16px 26px !important;
    margin:0 !important;
    text-align:center !important;
    z-index:50 !important;
  }
  footer .effectlab-mobile-footer-logos .effectlab-footer-proloco-logo {
    position:static !important;
    display:block !important;
    width:86px !important;
    max-width:86px !important;
    height:auto !important;
    margin:0 auto !important;
    inset:auto !important;
  }
  footer .effectlab-mobile-footer-logos .effectlab-footer-bando {
    position:static !important;
    display:flex !important;
    width:min(92%, 430px) !important;
    max-width:430px !important;
    height:auto !important;
    margin:0 auto !important;
    inset:auto !important;
    align-items:center !important;
    justify-content:center !important;
    gap:12px !important;
    pointer-events:auto !important;
  }
  footer .effectlab-mobile-footer-logos .effectlab-footer-bando .bando-main {
    width:78% !important;
    max-width:78% !important;
    height:auto !important;
    object-fit:contain !important;
  }
  footer .effectlab-mobile-footer-logos .effectlab-footer-bando .comune {
    width:14% !important;
    max-width:64px !important;
    height:auto !important;
    object-fit:contain !important;
  }
}
