/* =====================================================
   mg-custom.css — Milliard Globe Custom Overrides
   Caricare DOPO style.css in tutte le pagine
   ===================================================== */

/* ─── 1. FIX iOS SAFARI: background-attachment: fixed ─── */
.slider-area,
.section-bg {
  background-attachment: fixed;
}
@media (max-width: 991px) {
  .slider-area,
  .section-bg {
    background-attachment: scroll !important;
  }
}

/* ─── 2. WHATSAPP FLOATING BUTTON ─── */
#wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
#wa-float:hover,
#wa-float:focus {
  transform: scale(1.12);
  box-shadow: 0 6px 22px rgba(0,0,0,0.5);
  background-color: #1ebe5d;
}
#wa-float svg { display: block; }

/* ─── 3. REMOVE OLD BROKEN WHATSAPP BUTTON ─── */
#back-top { display: none !important; }
.btn-wsp   { display: none !important; }

/* ─── 4. PROFESSIONAL FOOTER ─── */
.mg-footer {
  background: #000;
  border-top: 2px solid #1a1a1a;
  font-family: 'Roboto Condensed', sans-serif;
}
.mg-footer__top {
  padding: 60px 0 40px;
}
.mg-footer__brand img {
  max-width: 160px;
  margin-bottom: 16px;
  display: block;
}
.mg-footer__brand p {
  color: #aaa;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.mg-footer__title {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #222;
}
.mg-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mg-footer__links li {
  margin-bottom: 10px;
}
.mg-footer__links li a {
  color: #aaa;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mg-footer__links li a::before {
  content: '›';
  color: #c00;
  font-size: 18px;
  line-height: 1;
}
.mg-footer__links li a:hover { color: #fff; }

.mg-footer__contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mg-footer__contact li {
  color: #aaa;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.mg-footer__contact li .fc-icon {
  color: #c00;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.mg-footer__contact li a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}
.mg-footer__contact li a:hover { color: #fff; }

.mg-footer__social {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.mg-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #1a1a1a;
  border-radius: 50%;
  transition: background 0.2s;
}
.mg-footer__social a:hover { background: #c00; }
.mg-footer__social img { width: 22px; height: 22px; object-fit: contain; }

.mg-footer__social-wa a {
  background: #25D366;
}
.mg-footer__social-wa a:hover { background: #1ebe5d; }
.mg-footer__social-wa svg { display: block; }

.mg-footer__pi {
  color: #555;
  font-size: 13px;
  margin: 0;
}

.mg-footer__bottom {
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  padding: 18px 0;
}
.mg-footer__bottom p {
  color: #555;
  font-size: 13px;
  margin: 0;
  text-align: center;
}
.mg-footer__bottom a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}
.mg-footer__bottom a:hover { color: #fff; }

/* ─── 5. SHOPIFY BUY BUTTON (arte.html) ─── */
.shopify-buy-section {
  padding: 60px 0;
  background: #0a0a0a;
  text-align: center;
}
.shopify-buy-section h2 {
  color: #fff;
  margin-bottom: 10px;
}
.shopify-buy-section p {
  color: #aaa;
  margin-bottom: 30px;
}
.shopify-placeholder-btn {
  display: inline-block;
  background: #007bff;
  color: #fff !important;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 40px;
  border: 2px solid #007bff;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.shopify-placeholder-btn:hover {
  background: transparent;
  color: #007bff !important;
}

/* ─── 6. FORM IMPROVEMENTS (contatti.html) ─── */
#form-messages {
  margin: 15px 0;
  padding: 12px 16px;
  border-radius: 4px;
  display: none;
  font-size: 14px;
}
#form-messages.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
#form-messages.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.form-control.error-input { border-color: #dc3545; }
.error-message { color: #dc3545; font-size: 0.85em; margin-top: 4px; }

/* ─── 7. MOBILE GLOBAL FIXES ─── */
@media (max-width: 767px) {
  .mg-footer__top { padding: 40px 0 20px; }
  .mg-footer__top .col-md-6 { margin-bottom: 30px; }
  #wa-float { bottom: 20px; right: 18px; width: 52px; height: 52px; }
  .hero__caption h1 { font-size: 28px !important; }
  .hero__caption span { font-size: 14px !important; }
  .slider-height { min-height: 55vh !important; }
}
@media (max-width: 480px) {
  .marque { margin-top: 70px; }
}
