/* ==========================================================================
   MODERN FOOTER & BOTTOM SECTION - MAMMAPRETAPORTER
   Coordinated Brand Design System:
   Teal: #58aba2, #4ea39a, #448d85 | Font: Amatic SC & Source Sans Pro | 16-20px Radii
   ========================================================================== */

/* 1. Top Video Banner (.sezione-video) */
.t3-footer .sezione-video {
  width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 25px !important;
  min-height: auto !important;
  display: block !important;
  background-color: #2b3336 !important;
  background-image: linear-gradient(135deg, #2d363a 0%, #1e2528 100%) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16) !important;
  overflow: hidden !important;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease !important;
}

.t3-footer .sezione-video:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25) !important;
}

.t3-footer .sezione-video .custom {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
}

.video-banner-link {
  display: block !important;
  padding: 20px 32px !important;
  text-decoration: none !important;
  background: transparent !important;
}

.video-banner-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 22px !important;
}

.video-banner-left {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex: 1 !important;
}

.video-banner-icon {
  flex-shrink: 0;
}

.video-banner-icon .yt-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e52d27;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 14px rgba(229, 45, 39, 0.45);
  transition: transform 0.25s ease;
}

.video-banner-link:hover .yt-icon-box {
  transform: scale(1.08);
}

.video-banner-info {
  flex: 1;
}

.video-banner-heading,
.t3-footer .sezione-video .custom h3.video-banner-heading {
  font-family: 'Amatic SC', cursive !important;
  font-size: 38px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  text-align: left !important;
  display: block !important;
}

.video-banner-caption,
.t3-footer .sezione-video .custom p.video-banner-caption {
  font-family: 'Source Sans Pro', sans-serif !important;
  font-size: 14.5px !important;
  color: #b6dbd8 !important;
  margin: 4px 0 0 0 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.2px !important;
  text-align: left !important;
  display: block !important;
}

.video-banner-cta {
  flex-shrink: 0;
}

.btn-video-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #58aba2 !important;
  color: #ffffff !important;
  font-family: 'Amatic SC', cursive !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  padding: 6px 24px !important;
  border-radius: 50px !important;
  text-transform: uppercase !important;
  box-shadow: 0 3px 10px rgba(88, 171, 162, 0.35) !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
}

.video-banner-link:hover .btn-video-pill {
  background: #448d85 !important;
  transform: scale(1.04) !important;
  box-shadow: 0 5px 14px rgba(88, 171, 162, 0.5) !important;
}

/* 2. Main Footer Box (.t3-footnav) */
.t3-footer .t3-footnav {
  margin-top: 10px !important;
  padding: 35px 35px 28px !important;
  background: linear-gradient(135deg, #58aba2 0%, #4ea39a 50%, #448d85 100%) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(78, 163, 154, 0.22) !important;
  position: relative !important;
  color: #ffffff !important;
}

.t3-footer .t3-footnav .t3-module {
  background: transparent !important;
  margin-bottom: 0 !important;
}

/* Common Widget Titles */
.footer-widget-title {
  font-family: 'Amatic SC', cursive !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  color: #ffffff !important;
  margin: 0 0 12px 0 !important;
  padding: 0 0 6px 0 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.35) !important;
  display: block !important;
  width: 100% !important;
}

/* 3. Column 1: Info */
.footer-info-widget {
  display: flex;
  flex-direction: column;
}

.footer-nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-nav-list li {
  margin-bottom: 8px !important;
}

.footer-nav-list li a {
  color: #ffffff !important;
  opacity: 0.92;
  font-family: 'Source Sans Pro', sans-serif !important;
  font-size: 14.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.footer-nav-list li a i {
  color: #c3e2df;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.footer-nav-list li a:hover {
  opacity: 1 !important;
  transform: translateX(4px) !important;
  color: #e4f9f7 !important;
}

.footer-nav-list li a:hover i {
  color: #ffffff;
  transform: translateX(2px);
}

/* 4. Columns 2 & 3: Sara & Cecilia */
.footer-author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-author-link {
  display: flex !important;
  justify-content: center !important;
  text-decoration: none !important;
  width: 100% !important;
}

.footer-author-img-wrap {
  width: 100% !important;
  max-width: 150px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 3px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  background: #ffffff !important;
  margin: 0 auto !important;
}

.footer-author-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border: none !important;
  transition: transform 0.35s ease !important;
}

.footer-author-link:hover .footer-author-img-wrap {
  transform: scale(1.04) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25) !important;
  border-color: #ffffff !important;
}

.footer-author-link:hover .footer-author-img {
  transform: scale(1.05) !important;
}

/* 5. Column 4: Newsletter */
.footer-newsletter-widget {
  display: flex;
  flex-direction: column;
  max-width: 440px;
}

/* Hide legacy title bitmap and module title */
.t3-footer .t3-footnav .t3-module.newsletter h3.module-title,
div.t3-module.newsletter h3.module-title,
div.t3-module.newsletter h3.module-title span {
  display: none !important;
}

.footer-newsletter-desc {
  font-family: 'Source Sans Pro', sans-serif !important;
  font-size: 13.5px !important;
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.35 !important;
  margin: 0 0 12px 0 !important;
}

.footer-newsletter-form {
  margin: 0 !important;
  padding: 0 !important;
}

.footer-email-input {
  width: 100% !important;
  height: 38px !important;
  border-radius: 50px !important;
  border: 2px solid transparent !important;
  padding: 4px 16px !important;
  background-color: #ffffff !important;
  color: #383838 !important;
  font-family: 'Source Sans Pro', sans-serif !important;
  font-size: 13.5px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
  outline: none !important;
  margin-bottom: 8px !important;
  box-sizing: border-box !important;
  transition: all 0.25s ease !important;
}

.footer-email-input:focus {
  border-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45) !important;
}

.footer-email-input::placeholder {
  color: #8fa3a1 !important;
  font-size: 13.5px !important;
}

.footer-submit-btn {
  width: 100% !important;
  height: 38px !important;
  border-radius: 50px !important;
  border: none !important;
  background: #2b3336 !important;
  color: #ffffff !important;
  font-family: 'Amatic SC', cursive !important;
  font-size: 25px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  line-height: 38px !important;
  cursor: pointer !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22) !important;
  transition: all 0.25s ease !important;
  display: block !important;
  text-align: center !important;
  padding: 0 15px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.footer-submit-btn:hover {
  background: #191f21 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32) !important;
}

.footer-submit-btn:active {
  transform: translateY(0) !important;
}

/* 6. Column 5: Social Bookmark Ribbon */
.t3-footer .t3-footnav .t3-module.social .module-ct > .custom.social,
.t3-footer .t3-footnav .t3-module#Mod208 .module-ct > .custom.social,
.t3-footer .t3-footnav .t3-module .module-ct > .custom.social {
  z-index: 9 !important;
  width: 38px !important;
  height: 255px !important;
  padding: 22px 0 0 0 !important;
  margin-top: -50px !important;
  position: absolute !important;
  right: 25px !important;
  background-size: 38px 255px !important;
  background-repeat: no-repeat !important;
  background-image: url("../images/themes/mammapretaporter/bookmark-footer.png") !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25)) !important;
  transition: transform 0.25s ease !important;
}

/* Bulletproof safeguard against any nested or duplicated custom.social elements */
.t3-footer .t3-footnav .t3-module .custom.social .custom.social {
  background: none !important;
  background-image: none !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

.t3-footer .t3-footnav .t3-module.social .module-ct > .custom.social a,
.t3-footer .t3-footnav .t3-module#Mod208 .module-ct > .custom.social a,
.t3-footer .t3-footnav .t3-module .module-ct > .custom.social a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 30px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  text-decoration: none !important;
  margin-bottom: 6px !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.t3-footer .t3-footnav .t3-module.social .module-ct > .custom.social a:hover,
.t3-footer .t3-footnav .t3-module#Mod208 .module-ct > .custom.social a:hover,
.t3-footer .t3-footnav .t3-module .module-ct > .custom.social a:hover {
  color: #c3e2df !important;
  transform: scale(1.22) !important;
}

/* 7. Copyright Bar (.t3-copyright) */
section.t3-copyright {
  border-top: none !important;
  padding: 22px 0 28px !important;
  text-align: center !important;
  background: transparent !important;
}

.footer-copyright-inner p {
  font-family: 'Source Sans Pro', sans-serif !important;
  font-size: 13.5px !important;
  color: #6b7d7b !important;
  margin: 0 0 5px 0 !important;
  line-height: 1.4 !important;
}

.footer-copyright-inner strong {
  color: #4a5957 !important;
}

.footer-copyright-links {
  font-size: 13px !important;
}

.footer-copyright-links a {
  color: #4ea39a !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.footer-copyright-links a:hover {
  color: #366f6a !important;
  text-decoration: underline !important;
}

/* 8. Mobile & Responsive Layout */
@media (max-width: 991px) {
  .t3-footer .t3-footnav {
    padding: 25px 20px !important;
  }
  .t3-footer .t3-footnav .t3-module.social .module-ct > .custom.social,
  .t3-footer .t3-footnav .t3-module#Mod208 .module-ct > .custom.social,
  .t3-footer .t3-footnav .t3-module .module-ct > .custom.social,
  .t3-footer .t3-footnav .t3-module .custom.social {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background-image: none !important;
    background: none !important;
    filter: none !important;
    margin-top: 20px !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
  }
  .t3-footer .t3-footnav .t3-module .custom.social .footer-social-wrap {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .t3-footer .t3-footnav .t3-module.social .module-ct > .custom.social a,
  .t3-footer .t3-footnav .t3-module#Mod208 .module-ct > .custom.social a,
  .t3-footer .t3-footnav .t3-module .module-ct > .custom.social a,
  .t3-footer .t3-footnav .t3-module .custom.social a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    margin: 0 !important;
    font-size: 17px !important;
    transition: all 0.25s ease !important;
  }
  .t3-footer .t3-footnav .t3-module .custom.social a:hover {
    background: #ffffff !important;
    color: #448d85 !important;
    transform: translateY(-2px) scale(1.08) !important;
  }
  .footer-author-img-wrap {
    max-width: 140px !important;
  }
}

@media (max-width: 767px) {
  .video-banner-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 14px !important;
    padding: 6px 0 !important;
  }
  .video-banner-left {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .video-banner-heading,
  .t3-footer .sezione-video .custom h3.video-banner-heading {
    font-size: 32px !important;
    text-align: center !important;
  }
  .video-banner-caption,
  .t3-footer .sezione-video .custom p.video-banner-caption {
    text-align: center !important;
  }
  .btn-video-pill {
    font-size: 20px !important;
    padding: 5px 20px !important;
  }
  .footer-author-card {
    align-items: center !important;
    margin-bottom: 20px !important;
  }
  .footer-author-img-wrap {
    max-width: 140px !important;
  }
  .footer-info-widget {
    margin-bottom: 20px !important;
  }
  .footer-newsletter-widget {
    margin-top: 10px !important;
  }
}

/* 9. Sleek Modern Cookie Banner (com_gdpr) */
.cc-window,
.cc-banner,
.cc-floating {
  background: rgba(30, 38, 41, 0.94) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(109, 184, 177, 0.3) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35) !important;
  padding: 18px 22px !important;
  font-family: 'Source Sans Pro', sans-serif !important;
  color: #ffffff !important;
  max-width: 440px !important;
  left: 20px !important;
  bottom: 20px !important;
  z-index: 99999 !important;
}

.cc-message {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  color: #e2eceb !important;
}

.cc-message a {
  color: #6db8b1 !important;
  text-decoration: underline !important;
}

.cc-message a:hover {
  color: #ffffff !important;
}

.cc-btn,
.cc-dismiss,
.cc-allow,
.cc-deny {
  background: #58aba2 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px !important;
  font-family: 'Amatic SC', cursive !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 4px 24px !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(88, 171, 162, 0.4) !important;
  transition: all 0.25s ease !important;
  display: inline-block !important;
  text-align: center !important;
  margin-top: 10px !important;
}

.cc-btn:hover,
.cc-dismiss:hover {
  background: #448d85 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(88, 171, 162, 0.55) !important;
  color: #ffffff !important;
}
