/* ============================
   FOOTER
============================ */

/* NEWSLETTER */
.footer-newsletter {
  background-color: transparent;
  border-bottom: 1px solid #eaeaea;
  padding: 0rem 1rem;
}

.footer-newsletter-inner {
  max-width: 1200px;
  margin: 0 auto -9rem auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem 1rem;
}

.footer-newsletter-icon {
  align-self: center;
  flex: 0 0 auto;
  margin-bottom: 0.5rem;
}

.footer-newsletter-title {
  width: 100%;
  color: #04211A;
  margin: 0 0 1rem;
  text-align: center;
}

.footer-newsletter-content {
  max-width: 500px;
  width: 100%;
  align-self: center;  
  text-align: left;
}

/* FOOTER BASE*/
.site-footer {
  background-color: #faf7f3;
  color: #04211A;
  padding-top: 3rem;
}

.site-footer a {
  color: #084537;
  text-decoration: none;
  transition: color 0.3s ease;
}
.site-footer a:hover {
  color: #c2380c;
  text-decoration: underline;
}

/* ============================
   BLOCCO CENTRALE FOOTER
=============================== */
.footer-core {
  padding: 10em 1rem 1rem;
  background-color: #04211A;
  color: #ffffff !important;
}

/* Layout 3 colonne */
.footer-core-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.footer-col {
  flex: 1 1 260px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* ✅ centra verticalmente il contenuto */
  text-align: center;
}

/* ✅ Logo più piccolo */
.footer-logo-link img {
  width: 200px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
}

/* ✅ Link e testi */
.footer-core a,
.footer-core p,
.footer-core strong,
.footer-copy,
.footer-policies a {
  color: #ffffff !important;
  text-decoration: none;
}

.footer-policies a:hover {
  text-decoration: underline;
}

/* ============================
   SOCIAL (centrati + dimensione aumentata)
=============================== */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center !important; /* ✅ centra verticalmente */
  gap: 1rem; /* ✅ maggiore spazio tra le icone */
  margin-bottom: 1.5rem;
}

.footer-social a {
  width: 44px; /* ✅ più grandi */
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.footer-social svg {
  width: 24px;
  height: 24px;
  fill: #04211A;
}

.footer-social a:hover {
  background-color: #c2380c !important;
}
.footer-social a:hover svg {
  fill: #ffffff !important;
}

/* ============================
   POLICY verticali con sfondo
=============================== */
.footer-policies {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
}

.footer-policies a {
  background: #ffffff;
  color: #04211A !important;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.footer-policies a:hover {
  background-color: #c2380c;
  color: #ffffff !important;
}
/* ============================
   BLOCCO INFERIORE: search + copyright
=============================== */
.site-footer .footer-bottom-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer .footer-search {
  flex: 1 1 500px;
  margin: 0;
  padding: 0;
}

.site-footer .site-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer .site-search-form input#footer-search {
  flex: 1;
  height: 2.5rem;
  padding: 0 1rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  background: #fff;
  line-height: 40px;
  box-sizing: border-box;
  margin: 0;
}

.site-footer .site-search-form button {
  height: 2.5rem;
  width: 2.5rem;
  font-size: 1.3rem;
  line-height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #c2380c !important;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0 !important;          /* rimuove qualsiasi margin-top di 16px */
}

.site-footer .site-search-form button:hover {
  background-color: #a52a0a;
}

.site-footer .footer-copy {
  flex: 1 1 300px;
  text-align: right;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

/* ============================
   MOBILE: colonna compatta e fluida
=============================== */
@media (max-width: 768px) {
  .site-footer .footer-bottom-grid {
    padding-bottom: 3rem;
  }

  .site-footer .footer-copy {
    padding-top: 2rem;
    text-align: center;
  }

  .site-footer .footer-search {
    padding-top: 2rem;
  }

  .site-footer .site-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 1rem;
    max-width: 80%;
    margin: 0 auto;
  }

  .site-footer .site-search-form label {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0;
    font-weight: bold;
    font-size: 1rem;
    color: #fff;
  }

  .site-footer .site-search-form input#footer-search {
    grid-column: 1 / 2;
    width: 100%;
    height: 2.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
    margin: 0;
  }

  .site-footer .site-search-form button {
    grid-column: 2 / 3;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    background-color: #c2380c;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 !important;        /* assicura nessun margine extra */
  }
}


/* Rimuove highlight tap su mobile */
* {
  -webkit-tap-highlight-color: transparent;
}

