footer.page-footer {
  background: transparent;
  padding: 0;
}
footer.page-footer .footer-container {
  background: #000000;
  padding: 0 10px;
}
footer.page-footer .footer-container .footer-top {
  max-width: 1650px;
  margin: 0 auto;
  padding: 20px 0;
}
footer.page-footer .footer-container .footer-sections {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
footer.page-footer .footer-container .footer-sections .footer-logo {
  flex: 0 0 250px;
}
footer.page-footer .footer-container .footer-sections .footer-logo p {
  color: #847663;
}
footer.page-footer .footer-container .footer-sections .contact-section ul li {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
footer.page-footer .footer-container .footer-sections .social-section i:before {
  background: #bea482;
  margin-right: 10px;
  font-size: 15px;
  padding: 5px 7px;
  border-radius: 50px;
  color: #000000;
}
footer.page-footer .footer-container .footer-sections .evidenza-section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #bea482;
  padding: 5px 10px;
}
footer.page-footer .footer-container .footer-sections .evidenza-section ul li a {
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  color: #000000;
}
footer.page-footer .footer-container .footer-sections h3 {
  font-size: 20px;
  font-weight: normal;
  line-height: 22px;
  font-style: normal;
  text-align: left;
  margin-bottom: 25px;
  color: #ffffff;
}
footer.page-footer .footer-container .footer-sections ul {
  list-style: none;
  padding: 0;
}
footer.page-footer .footer-container .footer-sections ul li {
  margin-bottom: 5px;
}
footer.page-footer .footer-container .footer-sections ul li svg {
  width: 26px;
}
footer.page-footer .footer-container .footer-sections ul li a {
  color: #847663;
}
footer.page-footer .footer-container .footer-sections ul li a:hover {
  text-decoration: none;
}
footer.page-footer .footer-container .footer-middle {
  background: #1f1f1f;
  padding: 0 15px;
}
footer.page-footer .footer-container .footer-middle .footer-middle-container {
  max-width: 1650px;
  margin: 0 auto;
}
footer.page-footer .footer-container .footer-middle .newsletter-container {
  flex: 0 0 40%;
  max-width: 40%;
}
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter {
  max-width: 100%;
}
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .form.subscribe {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .field.newsletter {
  max-width: 100%;
  width: 100%;
}
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .field.newsletter .control:before {
  content: none;
}
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .field.newsletter .control input {
  padding: 10px;
  width: 100%;
  border-radius: 0;
  margin: 0;
}
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .actions {
  width: auto;
}
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .actions .action.subscribe {
  background: #bea482;
  border-color: #bea482;
  border-radius: 0;
}
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .content p.privacy-wrapper {
  font-size: 11px;
  font-weight: normal;
  line-height: 15px;
  font-style: italic;
  text-align: left;
  color: #ffffff;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .content p.privacy-wrapper input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  margin-right: 0;
}
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .content p.privacy-wrapper label {
  flex: 1;
  line-height: 1.5;
}
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .content p.privacy-wrapper div.mage-error {
  display: block;
  width: 100%;
  margin: 0;
}
footer.page-footer .footer-container .copyright-section .copyright-container {
  max-width: 1650px;
  margin: 0 auto;
}
footer.page-footer .footer-container .copyright-section .copyright-container .copyright-wrapper {
  display: flex;
  justify-content: center;
  column-gap: 60px;
  row-gap: 20px;
  flex-flow: wrap;
  padding: 15px;
  font-size: 15px;
  font-weight: normal;
  line-height: 20px;
  color: #ffffff;
}
footer.page-footer .footer-container .copyright-section .copyright-container .copyright-wrapper p {
  margin: 0;
}
footer.page-footer .footer-container .footer-middle-wrapper .footer-section:first-child {
  flex: 0 0 250px;
}
footer.page-footer .footer-container .footer-sections .ita-logo-wrap p.first {
    font-size: 18px;
    font-weight: normal;
    line-height: 15px;
    font-style: normal;
    text-align: left;
    margin-bottom: 0px;
    color: #ffffff;
    margin-top: 2rem;
}
footer.page-footer .footer-container .footer-sections .ita-logo-wrap p.second {
    font-size: 18px;
    font-weight: normal;
    font-style: normal;
    text-align: left;
    margin-bottom: 20px;
    color: #ffffff;
    margin-top: 5px;
}

/* -------------------------------------------------------
   FOOTER TOP — 6-column flex row
------------------------------------------------------- */

/* Ensure the inner wrapper fills width */
footer.page-footer .footer-container .footer-top .footer-top-container {
    width: 100%;
    max-width: 100%;
}

/* Override existing: use flex row, no wrap, align tops */
footer.page-footer .footer-container .footer-top .footer-sections {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Reset default section sizing (existing css has flex:1) */
footer.page-footer .footer-container .footer-top .footer-sections .footer-section {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding-right: 24px;
}

/* Col 1 — OUR COMPANY */
footer.page-footer .footer-container .footer-top .footer-sections .footer-section.social-section {
    flex: 0 0 19%;
    max-width: 19%;
    padding-right: 30px;
}

/* Col 2 — CONTACTS */
footer.page-footer .footer-container .footer-top .footer-sections .footer-section.contact-section {
    flex: 0 0 17%;
    max-width: 17%;
    padding-right: 24px;
}

/* Col 3 — MENU */
footer.page-footer .footer-container .footer-top .footer-sections .footer-section:nth-child(3) {
    flex: 0 0 12%;
    max-width: 12%;
    padding-right: 20px;
}

/* Col 4 — SYSTEM */
footer.page-footer .footer-container .footer-top .footer-sections .footer-section:nth-child(4) {
    flex: 0 0 17%;
    max-width: 17%;
    padding-right: 20px;
}

/* Col 5 — PROFESSIONALS */
footer.page-footer .footer-container .footer-top .footer-sections .footer-section:nth-child(5) {
    flex: 0 0 15%;
    max-width: 15%;
    padding-right: 20px;
}

/* Col 6 — FEATURED (evidenza-section) */
footer.page-footer .footer-container .footer-top .footer-sections .footer-section.evidenza-section {
    flex: 0 0 20%;
    max-width: 20%;
    padding-right: 0;
}

/* FEATURED: each li as a bordered box */
footer.page-footer .footer-container .footer-top .footer-sections .footer-section.evidenza-section ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

footer.page-footer .footer-container .footer-top .footer-sections .footer-section.evidenza-section ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 0;
    box-sizing: border-box;
    width: 100%;
}

/* Contact li: icon + text inline */
footer.page-footer .footer-container .footer-top .footer-sections .footer-section.contact-section ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
}

footer.page-footer .footer-container .footer-top .footer-sections .footer-section.contact-section ul li svg {
    flex-shrink: 0;
    width: 22px;
    height: auto;
    margin-top: 2px;
}


/* -------------------------------------------------------
   FOOTER MIDDLE — 4-column flex row
------------------------------------------------------- */

footer.page-footer .footer-container .footer-middle .footer-middle-container {
    max-width: 1650px;
    margin: 0 auto;
}

/* The 4-column wrapper */
footer.page-footer .footer-container .footer-middle .footer-middle-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Reset default section */
footer.page-footer .footer-container .footer-middle .footer-middle-wrapper .footer-section {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding-right: 30px;
}

/* Col 1 — ITA logos */
footer.page-footer .footer-container .footer-middle .footer-middle-wrapper .footer-section:nth-child(1) {
    flex: 0 0 20%;
    max-width: 20%;
    padding-right: 30px;
    margin-top: 20px;
}

/* ITA logo text reset - override existing large font-size in original CSS */
footer.page-footer .footer-container .footer-middle .footer-section .ita-logo-wrap p.first,
footer.page-footer .footer-container .footer-middle .footer-section .ita-logo-wrap p.second {
    margin-top: 0;
    margin-bottom: 4px;
    line-height: 1.4;
}

footer.page-footer .footer-container .footer-middle .footer-section .ita-logo-wrap p.first {
    margin-top: 0;
}

/* The logo images row */
footer.page-footer .footer-container .footer-middle .footer-section .ita-logo-wrap > div {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    flex-wrap: wrap;
}

footer.page-footer .footer-container .footer-middle .footer-section .ita-logo-wrap img {
    /*max-height: 52px;*/
    width: auto;
    flex-shrink: 0;
}

/* Col 2 — PAYMENT METHODS */
footer.page-footer .footer-container .footer-middle .footer-middle-wrapper .footer-section:nth-child(2) {
    flex: 0 0 38%;
    max-width: 38%;
    padding-right: 30px;
}

/* Payment image full width */
footer.page-footer .footer-container .footer-middle .footer-middle-wrapper .footer-section:nth-child(2) img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 10px;
}

/* Col 3 — INFORMATION */
footer.page-footer .footer-container .footer-middle .footer-middle-wrapper .footer-section:nth-child(3) {
    flex: 0 0 20%;
    max-width: 20%;
    padding-right: 20px;
}

/* Col 4 — Newsletter */
footer.page-footer .footer-container .footer-middle .newsletter-container {
    flex: 0 0 22% !important;
    max-width: 22% !important;
    padding-right: 0;
    box-sizing: border-box;
}

/* ---- Newsletter internal layout fix ---- */

/* Title */
footer.page-footer .footer-container .footer-middle .newsletter-container h3 {
    margin-top: 0;
    margin-bottom: 14px;
}

/* Override existing grid that breaks layout */
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .form.subscribe {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100%;
}

/* Input row: field + button side by side */
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .form.subscribe .field.newsletter {
    flex: 1 1 auto;
    max-width: calc(100% - 90px); /* leave room for button */
    margin-bottom: 0;
}

footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .form.subscribe .actions {
    flex-shrink: 0;
    width: auto;
    margin-top: 0;
}

/* Put field + actions in a single flex row */
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .form.subscribe {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

/* Input fills remaining space */
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .form.subscribe .field.newsletter {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin-bottom: 0;
}

footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .form.subscribe .field.newsletter .control {
    width: 100%;
}

footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .form.subscribe .field.newsletter .control input {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* Button: no grow, no stretch */
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .form.subscribe .actions {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    margin-top: 0;
}

footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .form.subscribe .actions .action.subscribe {
    white-space: nowrap;
    display: block;
    height: 100%;
    box-sizing: border-box;
}

/* Privacy wrapper — below the input row, full width */
footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .content p.privacy-wrapper {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}


/* -------------------------------------------------------
   COPYRIGHT SECTION — Logo top, text centered below
------------------------------------------------------- */

footer.page-footer .footer-container .copyright-section .copyright-container .copyright-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    gap: 4px;
    padding: 20px 15px;
    /* override existing: justify-content:center column-gap:60px flex-flow:wrap */
    column-gap: 0 !important;
    flex-flow: column !important;
}

/* Logo */
footer.page-footer .footer-container .copyright-section .copyright-container .copyright-wrapper img {
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

/* All p tags centered, reset margin */
footer.page-footer .footer-container .copyright-section .copyright-container .copyright-wrapper p {
    margin: 2px 0;
    text-align: center;
}

@media (max-width: 500px) {
  footer.page-footer .footer-container .footer-top-container,
  footer.page-footer .footer-container .footer-middle-wrapper {
    padding: 0 5px;
  }
  footer.page-footer .footer-container .footer-middle {
    padding: 0;
  }
  footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .form.subscribe {
    grid-template-columns: repeat(1, 1fr);
  }
  footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .actions {
    margin-top: 10px;
  }
}


/* -------------------------------------------------------
   RESPONSIVE — Tablet (max-width: 1100px)
------------------------------------------------------- */
@media (max-width: 1100px) {

    footer.page-footer .footer-container .footer-top .footer-sections {
        flex-wrap: wrap;
    }

    footer.page-footer .footer-container .footer-top .footer-sections .footer-section.social-section,
    footer.page-footer .footer-container .footer-top .footer-sections .footer-section.contact-section,
    footer.page-footer .footer-container .footer-top .footer-sections .footer-section:nth-child(3),
    footer.page-footer .footer-container .footer-top .footer-sections .footer-section:nth-child(4),
    footer.page-footer .footer-container .footer-top .footer-sections .footer-section:nth-child(5),
    footer.page-footer .footer-container .footer-top .footer-sections .footer-section.evidenza-section {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        margin-bottom: 30px;
    }

    footer.page-footer .footer-container .footer-middle .footer-middle-wrapper {
        flex-wrap: wrap;
    }

    footer.page-footer .footer-container .footer-middle .footer-middle-wrapper .footer-section:nth-child(1),
    footer.page-footer .footer-container .footer-middle .footer-middle-wrapper .footer-section:nth-child(2),
    footer.page-footer .footer-container .footer-middle .footer-middle-wrapper .footer-section:nth-child(3),
    footer.page-footer .footer-container .footer-middle .newsletter-container {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 28px;
        padding-right: 20px;
    }
}

/* -------------------------------------------------------
   RESPONSIVE — Mobile (max-width: 768px)
------------------------------------------------------- */
@media (max-width: 768px) {

    footer.page-footer .footer-container .footer-top .footer-sections .footer-section.social-section,
    footer.page-footer .footer-container .footer-top .footer-sections .footer-section.contact-section,
    footer.page-footer .footer-container .footer-top .footer-sections .footer-section:nth-child(3),
    footer.page-footer .footer-container .footer-top .footer-sections .footer-section:nth-child(4),
    footer.page-footer .footer-container .footer-top .footer-sections .footer-section:nth-child(5),
    footer.page-footer .footer-container .footer-top .footer-sections .footer-section.evidenza-section {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-right: 0;
        margin-bottom: 28px;
    }

    footer.page-footer .footer-container .footer-middle .footer-middle-wrapper .footer-section:nth-child(1),
    footer.page-footer .footer-container .footer-middle .footer-middle-wrapper .footer-section:nth-child(2),
    footer.page-footer .footer-container .footer-middle .footer-middle-wrapper .footer-section:nth-child(3),
    footer.page-footer .footer-container .footer-middle .newsletter-container {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-right: 0;
        margin-bottom: 28px;
    }

    footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .form.subscribe {
        flex-direction: column !important;
    }

    footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .form.subscribe .field.newsletter {
        max-width: 100%;
    }

    footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .form.subscribe .actions {
        margin-top: 10px;
        width: 100%;
    }

    footer.page-footer .footer-container .footer-middle .newsletter-container .block.newsletter .form.subscribe .actions .action.subscribe {
        width: 100%;
    }
}