/* ============================================
   FOOTER.CSS — Studio Cambria
   Layout ispirato: 4 colonne con newsletter,
   social icons e brand identity premium
   ============================================ */

.site-footer {
  position: relative;
  background: var(--color-bg-dark);
  border-top: 1px solid rgba(253, 250, 246, 0.08);
  padding-top: var(--space-20);
  padding-bottom: var(--space-8);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

/* ── NEWSLETTER (Col 1) ── */
.footer-newsletter {
  position: relative;
}

.footer-newsletter-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
  letter-spacing: -0.01em;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.footer-newsletter-text {
  font-size: var(--text-sm);
  color: rgba(253, 250, 246, 0.55);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.footer-newsletter-form {
  position: relative;
  display: flex;
  align-items: center;
}

.footer-newsletter-input {
  width: 100%;
  height: 48px;
  padding: 0 56px 0 var(--space-4);
  background: rgba(253, 250, 246, 0.06);
  border: 1px solid rgba(253, 250, 246, 0.12);
  border-radius: var(--radius-lg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  backdrop-filter: blur(8px);
  transition: border-color var(--transition-normal), background var(--transition-normal);
  outline: none;
}

.footer-newsletter-input::placeholder {
  color: rgba(253, 250, 246, 0.35);
}

.footer-newsletter-input:focus {
  border-color: var(--color-accent);
  background: rgba(253, 250, 246, 0.08);
}

.footer-newsletter-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.footer-newsletter-btn:hover {
  background: var(--color-accent-light);
  transform: translateY(-50%) scale(1.08);
}

.footer-newsletter-glow {
  position: absolute;
  right: -20px;
  top: -10px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(201, 137, 42, 0.08);
  filter: blur(40px);
  pointer-events: none;
}

/* ── NAVIGAZIONE (Col 2) ── */
.footer-nav-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav-list a {
  font-size: var(--text-sm);
  color: rgba(253, 250, 246, 0.55);
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

/* ── CONTATTI (Col 3) ── */
.footer-contact-item {
  margin-bottom: var(--space-6);
}

.footer-contact-item strong {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.footer-contact-item p {
  font-size: var(--text-sm);
  color: rgba(253, 250, 246, 0.55);
  margin-bottom: var(--space-1);
}

.footer-contact-item a {
  color: rgba(253, 250, 246, 0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--color-accent);
}

.footer-hours {
  font-size: var(--text-xs);
  color: rgba(253, 250, 246, 0.35);
  font-style: italic;
}

/* ── SOCIAL + BRAND (Col 4) ── */
.footer-social-icons {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(253, 250, 246, 0.15);
  background: transparent;
  color: rgba(253, 250, 246, 0.6);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.footer-social-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(201, 137, 42, 0.08);
  transform: translateY(-2px);
}

/* ── THEME TOGGLE (footer) ── */
.footer-theme-toggle {
  margin-bottom: var(--space-6);
}

.theme-toggle-footer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  width: auto;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(253, 250, 246, 0.15);
  background: rgba(253, 250, 246, 0.06);
  color: rgba(253, 250, 246, 0.6);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: all var(--transition-normal);
  position: relative;
}

.theme-toggle-footer:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(201, 137, 42, 0.08);
}

.theme-toggle-footer .theme-toggle-sun,
.theme-toggle-footer .theme-toggle-moon {
  position: static;
  flex-shrink: 0;
}

.theme-toggle-footer .theme-toggle-sun {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.theme-toggle-footer .theme-toggle-moon {
  opacity: 1;
}

html[data-theme="night"] .theme-toggle-footer .theme-toggle-sun {
  opacity: 1;
  width: 16px;
}

html[data-theme="night"] .theme-toggle-footer .theme-toggle-moon {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

/* Brand mini */
.footer-brand-mini {
  margin-top: var(--space-4);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  letter-spacing: 0.06em;
}

.footer-logo-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  margin: 6px 0;
}

.footer-logo-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--font-light);
  font-style: italic;
  color: rgba(253, 250, 246, 0.4);
}

/* ── FOOTER BOTTOM ── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(253, 250, 246, 0.08);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(253, 250, 246, 0.35);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(253, 250, 246, 0.35);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-accent);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .footer-newsletter-title {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: var(--space-12);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .footer-newsletter-title {
    font-size: var(--text-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .footer-social-icons {
    justify-content: flex-start;
  }
}
