/* =====================================================================
   OSM Partner mc² — FOOTER GLOBALE (Theme Builder)
   File separato: footer.css (da accodare dopo style.css, vedi functions.php).
   Dipende dalle variabili di style.css (--mc2-*), con valori di riserva.

   Struttura attesa (classi in Divi):
   .Section_footer  >  .Section_footer_row_4col  >  4 colonne
     1 logo + .title_fucsia (tagline) + .social_icon
     2 .head_tit NAVIGAZIONE + link
     3 .head_tit CONTATTI E DATI SOCIETARI + dati societari
     4 .head_tit RESTA AGGIORNATO + form CF7 (.nl_row / .nl_check / .nl_submit)
   Riga sotto: Privacy Policy • Cookie Policy • © ...
   ===================================================================== */

.et-l--footer {
  --f-fucsia: var(--mc2-fucsia, #af2e6e);
  --f-label: 92px;          /* larghezza colonna etichette nel form */
  --f-gap: 14px;            /* spazio etichetta / campo */
  font-family: var(--mc2-font-body, 'Poppins', Arial, sans-serif);
}

/* ---- 1. SEZIONE + GRIGLIA A 4 COLONNE ---- */
.et-l--footer .Section_footer.et_pb_section {
  background-color: #fff;
  padding: 64px 0 24px !important;
}
.et-l--footer .Section_footer.et_pb_section > .et_pb_row {
  width: 90% !important;
  max-width: var(--mc2-container, 1080px) !important;
  margin-left: auto; margin-right: auto;
  padding: 0;
}
.et-l--footer .Section_footer_row_4col {
  display: grid !important;
  grid-template-columns: 19fr 19fr 31fr 31fr;
  column-gap: 28px;
  row-gap: 44px;
  align-items: start;
}
.et-l--footer .Section_footer_row_4col > .et_pb_column {
  flex: none !important; width: auto !important; max-width: none;
  margin: 0; padding: 0; min-width: 0;
  display: flex; flex-direction: column; row-gap: 0;
}

/* ---- 2. TESTI ---- */
.et-l--footer .Section_footer .et_pb_text { margin: 0; padding: 0; }
.et-l--footer .Section_footer .et_pb_text p {
  margin: 0; padding: 0;
  font-size: 14px; line-height: 1.75; font-weight: 700;
  color: var(--f-fucsia) !important;
}
.et-l--footer .Section_footer .et_pb_text a { color: inherit !important; text-decoration: none; }
.et-l--footer .Section_footer .et_pb_text a:hover { text-decoration: underline; text-underline-offset: 3px; }
.et-l--footer .Section_footer .et_pb_text p.head_tit {
  font-size: 15px; line-height: 1.45; text-transform: uppercase; letter-spacing: .01em;
  padding-bottom: 22px;
}
.et-l--footer .Section_footer .et_pb_text p.head_tit br + strong { text-transform: none; }   /* "Idee e occasioni…" */
/* nav: una voce per riga, piu' aria */
.et-l--footer .Section_footer_row_4col > .et_pb_column:nth-child(2) .et_pb_text p:not(.head_tit) { line-height: 2.05; }
/* dati societari: secondo blocco staccato dal primo */
.et-l--footer .Section_footer_row_4col > .et_pb_column:nth-child(3) .et_pb_text ~ .et_pb_text { margin-top: 22px; }
.et-l--footer .Section_footer_row_4col > .et_pb_column:nth-child(3) .et_pb_text p:not(.head_tit) { line-height: 1.65; }
/* testo di presentazione newsletter: leggero */
.et-l--footer .Section_footer_row_4col > .et_pb_column:nth-child(4) .et_pb_text:first-child p:not(.head_tit) { font-weight: 300; line-height: 1.7; }

/* ---- 3. COLONNA 1: logo, tagline, social ---- */
.et-l--footer .Section_footer_row_4col > .et_pb_column:first-child { align-items: center; text-align: center; }
.et-l--footer .Section_footer .et_pb_image { margin: 0; }
.et-l--footer .Section_footer .et_pb_image .et_pb_image_wrap,
.et-l--footer .Section_footer .et_pb_image img { display: block; width: 100%; max-width: 150px; height: auto; margin: 0 auto; }
.et-l--footer .Section_footer_row_4col > .et_pb_column:first-child .et_pb_text:nth-child(2) { margin-top: 26px; }
.et-l--footer .Section_footer_row_4col > .et_pb_column:first-child .et_pb_text p.title_fucsia {
  font-weight: 300; text-transform: uppercase; line-height: 1.45; text-align: center;
}
.et-l--footer .Section_footer_row_4col > .et_pb_column:first-child .et_pb_text:nth-child(3) { margin-top: 34px; }
.et-l--footer .social_icon { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 0; }
.et-l--footer .social_icon a { display: block; line-height: 0; }
.et-l--footer .social_icon img { display: block; width: 26px; height: 26px; object-fit: contain; margin: 0; }

/* ---- 4. FORM NEWSLETTER (CF7) ---- */
.et-l--footer .wpcf7 { margin-top: 20px; }
.et-l--footer .wpcf7 form { margin: 0; }
.et-l--footer .wpcf7 .hidden-fields-container { display: none; }
.et-l--footer .nl_row {
  display: grid; grid-template-columns: var(--f-label) minmax(0, 1fr);
  align-items: center; column-gap: var(--f-gap);
  margin: 0 0 14px;
}
.et-l--footer .nl_row label {
  font-size: 14px; font-weight: 300; line-height: 1.2; color: var(--f-fucsia); margin: 0;
}
.et-l--footer .wpcf7-form-control-wrap { display: block; width: 100%; }
.et-l--footer .nl_row input.wpcf7-form-control {
  display: block; width: 100%; height: 32px; margin: 0; padding: 0 16px;
  font: 400 14px/1 var(--mc2-font-body, 'Poppins', Arial, sans-serif); color: #222;
  background: transparent; border: 1px solid var(--f-fucsia); border-radius: 999px;
  box-shadow: none; outline: 0; appearance: none; -webkit-appearance: none;
}
.et-l--footer .nl_row input.wpcf7-form-control:focus { background: #fff; box-shadow: 0 0 0 2px rgba(175, 46, 110, .25); }
.et-l--footer .wpcf7-not-valid-tip { display: block; margin-top: 4px; padding-left: 16px; font-size: 12px; font-weight: 400; color: #b3261e; }

/* consensi */
.et-l--footer .nl_check { margin: 0 0 6px; }
.et-l--footer .nl_row + .nl_check { margin-top: 26px; }
.et-l--footer .nl_check .wpcf7-form-control-wrap { display: block; }
.et-l--footer .nl_check .wpcf7-list-item { display: block; margin: 0; }
.et-l--footer .nl_check label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.et-l--footer .nl_check .wpcf7-list-item-label {
  font-size: 13px; font-weight: 700; line-height: 1.55; color: var(--f-fucsia);
}
.et-l--footer .nl_check .wpcf7-list-item-label a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.et-l--footer .nl_check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 14px; width: 14px; height: 14px; margin: 4px 0 0; padding: 0;
  background: #fff; border: 1px solid #444; border-radius: 2px; cursor: pointer;
}
.et-l--footer .nl_check input[type="checkbox"]:checked {
  background: var(--f-fucsia) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.3l2.4 2.4 5-5.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
  border-color: var(--f-fucsia);
}
.et-l--footer .nl_check input[type="checkbox"]:focus-visible { outline: 2px solid var(--f-fucsia); outline-offset: 2px; }

/* bottone ISCRIVITI: stessa larghezza dei campi */
.et-l--footer .nl_submit { position: relative; margin-top: 22px; padding-left: calc(var(--f-label) + var(--f-gap)); }
.et-l--footer .nl_submit input.wpcf7-submit {
  display: block; width: 100%; height: 34px; margin: 0; padding: 0 16px;
  font: 400 14px/1 var(--mc2-font-body, 'Poppins', Arial, sans-serif); letter-spacing: .02em; text-transform: uppercase;
  color: var(--f-fucsia); background: transparent; border: 1px solid var(--f-fucsia); border-radius: 999px;
  cursor: pointer; appearance: none; -webkit-appearance: none; transition: background-color .2s, color .2s;
}
.et-l--footer .nl_submit input.wpcf7-submit:hover:not(:disabled),
.et-l--footer .nl_submit input.wpcf7-submit:focus-visible { background: var(--f-fucsia); color: #fff; }
.et-l--footer .nl_submit input.wpcf7-submit:disabled { opacity: .55; cursor: not-allowed; }
.et-l--footer .nl_submit .wpcf7-spinner { position: absolute; top: 50%; right: 10px; margin: -12px 0 0; }

/* messaggio di esito CF7 (nascosto se vuoto) */
.et-l--footer .wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0; padding: 8px 16px; font-size: 13px; line-height: 1.5; font-weight: 600;
  color: var(--f-fucsia); border: 1px solid var(--f-fucsia); border-radius: 18px;
}
.et-l--footer .wpcf7 form .wpcf7-response-output:empty { display: none; }
.et-l--footer .wpcf7 form.sent .wpcf7-response-output { background: var(--f-fucsia); color: #fff; }

/* ---- 5. RIGA FINALE (privacy / cookie / copyright) ---- */
.et-l--footer .et_pb_row_2_tb_footer { width: 90%; max-width: var(--mc2-container, 1080px); margin: 0 auto; padding: 0; }
.et-l--footer .et_pb_row_2_tb_footer .et_pb_column { padding: 0; }
.et-l--footer .et_pb_row_2_tb_footer .et_pb_text p {
  margin: 0; padding: 0; text-align: left; font-size: 13px; line-height: 1.6; font-weight: 600;
}
.et-l--footer .et_pb_row_2_tb_footer .et_pb_text p,
.et-l--footer .et_pb_row_2_tb_footer .et_pb_text a { color: #6b6b6b !important; }
.et-l--footer .et_pb_row_2_tb_footer .et_pb_text a:hover { color: var(--f-fucsia) !important; }

/* ---- 6. TABLET (≤ 980px): 2 colonne ---- */
@media (max-width: 980px) {
  .et-l--footer .Section_footer.et_pb_section { padding: 48px 0 20px !important; }
  .et-l--footer .Section_footer_row_4col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; }
}

/* ---- 7. MOBILE (≤ 600px): 1 colonna ---- */
@media (max-width: 600px) {
  .et-l--footer .Section_footer_row_4col { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .et-l--footer { --f-label: 78px; }
}
@media (max-width: 420px) {
  /* etichette sopra i campi */
  .et-l--footer .nl_row { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .et-l--footer .nl_submit { padding-left: 0; }
}

/* ---- 8. honeypot WP Armour (se il plugin non lo nasconde da solo) ---- */
.et-l--footer .altEmail_container { position: absolute !important; left: -9999px !important; height: 1px !important; width: 1px !important; overflow: hidden !important; }
