footer {
    background-image: url('/image/hero_ribaltata.png');
    background-size: cover;
    background-position: center top;  /* ancora l'immagine in cima */
    background-repeat: no-repeat;
    
    /* scura l'immagine per rendere il testo leggibile */
    position: relative;
    color: #c8d8e8;
    padding: 60px 0 0 0;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, sans-serif;
    width: 100%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Top grid --- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.certif {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 32px;
}

.certif img {
  max-width: 20%;
  height: auto;
}

.footer-tagline {
  font-size: 15px;
  line-height: 1.7;
  color: #8aa0b8;
  max-width: 280px;
  margin-bottom: 28px;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff0d;
  border: 1px solid #ffffff14;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8aa0b8;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-social a:hover {
  background: #1a6fff22;
  border-color: #1a6fff88;
  color: var(--ccy-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #1a6fff22;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Nav columns */
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color:  var(--ccy-primary);
  margin-bottom: 20px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  color: #8aa0b8;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s, padding-left 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav-list a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background:  var(--ccy-primary);
  opacity: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.footer-nav-list a:hover {
  color: #c8e4ff;
  padding-left: 4px;
}

.footer-nav-list a:hover::before {
  opacity: 1;
}

/* Contact info */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 15px;
  color: #8aa0b8;
}

.footer-contact-item svg {
  width: 17px;
  height: 17px;
  fill:  var(--ccy-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Divider */
.footer-divider {
  height: 2px;
  background: linear-gradient(90deg, #0056b3, #00d4ff); 
  margin-left: 0;
  margin-right: auto;
  width: 1000px; 
  border-radius: 0 50px 50px 0; 
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 15px;
  color: #ffffff;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  margin-right: 135px;
}

.footer-bottom-links a {
  font-size: 15px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color:  var(--ccy-primary);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}

#main-logo-footer {
    width: 200px;  /* era 500px, troppo grande */
    height: auto;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    margin-top: 0;        /* rimuove spazio sopra */
    padding-top: 0;
}
