/* =========================================
   FOOTER SECTION - STYLING
   ========================================= */

/* --- 1. LAYOUT PRINCIPALE --- */
.footer-section {
  position: relative;
  background-color: #1a1512; /* Dark Brown/Black background */
  color: #e6ded1; /* Light Beige text */
  padding-top: 4rem;
  padding-bottom: 1.5rem;
  overflow: hidden;
  font-family: var(--font-secondary); /* Shantell Sans default */
}

/* Texture Overlay */
.footer-texture {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("https://www.transparenttextures.com/patterns/wood-pattern.png");
  pointer-events: none;
  z-index: 0;
}

.footer-container {
  position: relative;
  z-index: 10;
  max-width: 80rem; /* max-w-7xl */
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- 2. GRID SYSTEM --- */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(230, 222, 209, 0.1); /* Border bottom subtle */
  padding-bottom: 2rem;
}

/* Desktop: 3 Colonne */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet */
    align-items: center;
    justify-items: center;
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr); /* Desktop */
    gap: 3rem;
  }
}

/* --- 3. COLONNA 1: BRAND --- */
.footer-col.brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 1024px) {
  .footer-col.brand-col {
    align-items: start;
  }
}

.footer-logo {
  width: 6rem; /* w-24 */
  height: 6rem; /* h-24 */
  margin-bottom: 1.5rem;
}

.footer-logo svg {
  width: 100%;
  height: 100%;
}

.footer-title {
  font-family: var(--font-primary); /* Dongle */
  font-size: 4rem; /* text-6xl approx for Dongle */
  line-height: 0.8;
  color: var(--color-brand-green); /* #7a9939 */
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.footer-subtitle {
  font-family: var(--font-mono); /* Space Mono */
  font-size: 0.75rem; /* text-xs */
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- 4. COLONNA 2 & 3: HEADINGS & TEXT --- */
.footer-heading {
  font-family: var(--font-primary); /* Dongle */
  font-size: 1.2rem;
  letter-spacing: -0.15em;
  font-weight: 500;
  color: #e6ded1;
  margin-bottom: 1.5rem;
  line-height: 1;
  text-align: center;
}

.footer-info p {
  font-family: var(--font-secondary); /* Shantell Sans */
  font-size: 0.875rem; /* text-sm */
  opacity: 0.6;
  margin-bottom: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 1024px) {
  .footer-heading,
  .footer-info p {
    text-align: start;
  }
}

.info-label {
  font-weight: bold;
  opacity: 0.8;
}

.footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: var(--color-brand-green);
}

.footer-policies {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-items: center;
  align-items: center;
}

@media (min-width: 1024px) {
  .footer-policies {
    align-items: start;
  }
}

.policy-link {
  font-family: var(--font-mono);
  font-size: 0.75rem; /* text-xs */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(122, 153, 57, 0.3); /* green/30 */
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}
.policy-link:hover {
  color: var(--color-brand-green);
}

/* --- 5. COLONNA 3: CONTATTI --- */
.contact-block {
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem; /* 10px */
  text-transform: uppercase;
  letter-spacing: 0.15em; /* tracking-widest */
  color: var(--color-brand-green);
  margin-bottom: 0.25rem;
  opacity: 0.8;
  text-align: center;
}

.contact-text {
  font-family: var(--font-secondary);
  font-size: 0.875rem; /* text-sm */
  opacity: 0.7;
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 1024px) {
  .contact-block,
  .contact-label,
  .contact-text {
    text-align: start;
  }
}

.contact-email {
  font-family: var(--font-primary);
  font-size: 1rem;
  letter-spacing: -0.15em;
  font-weight: 500;
  line-height: 1;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-email:hover {
  color: var(--color-brand-green);
}

/* --- 6. BOTTOM SECTION --- */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.625rem; /* 10px */
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  order: 2; /* Su mobile va sotto */
}
@media (min-width: 768px) {
  .footer-copyright {
    text-align: left;
    order: 1;
  }
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  order: 1; /* Su mobile va sopra */
}
@media (min-width: 768px) {
  .footer-socials {
    order: 2;
  }
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e6ded1;
  fill: #e6ded1;
  opacity: 0.6;
  transition: all 0.3s ease;
  width: 1.5rem;
  height: 1.5rem;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.social-icon:hover {
  opacity: 1;
  color: var(--color-brand-green);
  fill: var(--color-brand-green);
  transform: scale(1.1);
}

/* --- 7. CREDITS --- */
.footer-credits {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(230, 222, 209, 0.05);
  text-align: center;
}

.footer-credits p {
  font-family: var(--font-mono);
  font-size: 0.625rem; /* 10px */
  color: rgba(230, 222, 209, 0.3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-credits p {
    font-size: 0.75rem; /* text-xs */
  }
}

.credit-highlight {
  color: rgba(122, 153, 57, 0.6);
  font-weight: bold;
}
