:root {
  --text: #000000;
  --line: rgba(0,0,0,.15);
  --accent: #4fa3ff; /* solo per focus outline */
}

/* ===== RIDUZIONE MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== ANIMAZIONE FADE-IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInFooter 0.8s ease-out forwards;
}
@keyframes fadeInFooter {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== FOOTER BASE ===== */
.icn-footer-line {
  /* background richiesto */
  background-color: rgba(40,61,0,.21); /* fallback */
  background-color: #283D0036;         /* 8-digit hex RRGGBBAA */

  color: var(--text);
  margin-top: 60px;
  padding: 44px 0 20px;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Link in nero (con focus accessibile) */
.icn-footer-line a { color: #000; text-underline-offset: 2px; }
.icn-footer-line a:hover { text-decoration: underline; color: #000; }
.icn-footer-line a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.icn-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== LAYOUT PRINCIPALE ===== */
.icn-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}

/* proporzioni colonne */
.icn-footer-col.brand { flex: 0 1 34%; min-width: 280px; }
.icn-footer-col.info  { flex: 1 1 36%; min-width: 360px; text-align: center; }
.icn-footer-col.right { flex: 0 1 30%; min-width: 300px; text-align: right; }

/* ===== ISOLA BERGAMASCA ===== */
.brand.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.logo-isola {
  max-height: 110px;
  width: auto;
  transition: transform .3s ease, filter .3s ease;
  will-change: transform;
}
.logo-isola:hover { transform: scale(1.03); filter: brightness(1.1); }
.icn-brand-text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  color: #000; /* nero */
}
.icn-brand-text p {
  margin: 4px 0 0;
  font-size: .95rem;
  color: #000; /* nero */
}

/* ===== EDITORE ===== */
.logo-editore {
  max-height: 130px;
  width: auto;
  margin-bottom: 10px;
  transition: transform .3s ease, filter .3s ease;
}
.logo-editore:hover { transform: scale(1.05); filter: brightness(1.1); }
.info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info li {
  color: #000; /* nero */
  font-size: .95rem;
  line-height: 1.6;
}

/* ===== ITALIA COMMUNICATION ===== */
.icn-footer-col.right { text-align: center; }
.icn-dealer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.logo-italia {
  max-height: 100px;
  width: auto;
  margin-left: 0;
  transition: transform .3s ease, filter .3s ease;
}
.logo-italia:hover { transform: scale(1.05); filter: brightness(1.1); }
.dealer-title {
  font-weight: 800;
  letter-spacing: .08em;
  color: #000; /* nero */
  text-transform: uppercase;
  font-size: .9rem;
  text-align: center;
  width: 100%;
  margin: 4px 0 8px;
}

/* Email + Telefono centrati */
.dealer-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .95rem;
  color: #000; /* nero */
  text-align: center;
  width: auto;
  margin: 0 auto;
}
.dealer-inline span { display: inline-block; }
.dealer-inline a {
  color: #000; /* link in nero */
  text-decoration: none;
}
.dealer-inline a:hover {
  color: #000;
  text-decoration: underline;
}

/* ===== HOVER GLOBALE ===== */
.icn-footer-col a:hover,
.icn-footer-line a:hover img {
  color: #000;
  text-decoration: underline;
  filter: brightness(1.1);
}

/* ===== COPYRIGHT + LINK LEGALI ===== */
.icn-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: .9rem;
  color: #000; /* nero */
  margin-top: 18px;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.icn-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .9rem;
}

.icn-bottom-links a {
  text-decoration: none;
  font-weight: 500;
}

.icn-bottom-links a:hover {
  text-decoration: underline;
}

.icn-bottom-links .sep {
  opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 950px) {
  .icn-footer-row {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .icn-footer-col { text-align: center !important; }
  .brand.stack { align-items: center; }
  .icn-dealer { align-items: center; }
  .logo-italia { margin-left: 0; }
  .dealer-inline { justify-content: center; }
  .icn-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* breakpoint in più per telefoni piccoli */
@media (max-width: 420px) {
  .logo-isola { max-height: 90px; }
  .logo-editore { max-height: 110px; }
  .logo-italia { max-height: 90px; }
  .icn-brand-text h3 { font-size: 1.2rem; }
  .icn-brand-text p, .info li, .dealer-inline { font-size: .9rem; }
}
