/* sitobasic09 Bubble — override e menu mobile */

body[data-template='sitobasic09'] {
  font-family: 'Manrope', 'DM Sans', sans-serif !important;
  background: var(--cream, #94b4c820);
}

[data-template='sitobasic09'] h1,
[data-template='sitobasic09'] h2,
[data-template='sitobasic09'] h3,
[data-template='sitobasic09'] .page-title,
[data-template='sitobasic09'] .hero-copy h1 {
  font-family: 'DM Sans', 'Manrope', sans-serif;
}

[data-template='sitobasic09'] .btn-light:hover,
[data-template='sitobasic09'] .btn-light:hover i {
  color: #fff !important;
}

/* Hero image locale se disponibile — disattivato: usa slider con slide multiple */
/* .hero-image {
  background-image: url('/img/home.jpg') !important;
} */

/* CTA header: testo su una riga */
[data-template='sitobasic09'] .header-cta {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 10px 8px 18px;
}

[data-template='sitobasic09'] .header-cta.is-open-mobile {
  white-space: nowrap;
  width: auto;
  justify-content: center;
}

/* Nav mobile drawer */
@media (max-width: 1050px) {
  [data-template='sitobasic09'] .nav.is-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 18px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 50px rgba(25, 40, 33, 0.12);
    max-height: min(70vh, 520px);
    overflow: auto;
  }

  [data-template='sitobasic09'] .nav.is-open > a,
  [data-template='sitobasic09'] .nav.is-open .nav-dropdown > a {
    padding: 12px 14px;
    border-radius: 14px;
  }

  [data-template='sitobasic09'] .nav.is-open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
    background: transparent;
  }

  [data-template='sitobasic09'] .header-cta.is-open-mobile {
    display: inline-flex !important;
    margin: 8px 0 0;
    width: 100%;
    justify-content: center;
  }

  [data-template='sitobasic09'] .header-inner {
    position: relative;
    gap: 12px;
  }

  [data-template='sitobasic09'] .logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  [data-template='sitobasic09'] .logo .logo-img {
    width: auto;
    max-width: min(200px, calc(100vw - 120px));
  }

  [data-template='sitobasic09'] .logo .logo-img img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 40px;
  }

  [data-template='sitobasic09'] .mobile-menu {
    flex: 0 0 42px;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    box-sizing: border-box;
    align-self: center;
  }

  [data-template='sitobasic09'] .mobile-menu i {
    font-size: 16px;
    line-height: 1;
  }
}

/* Empty state elenchi */
[data-template='sitobasic09'] .list-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: var(--radius-lg, 30px);
  box-shadow: var(--shadow);
}

/* Bottom mobile CTA bubble-friendly */
[data-template='sitobasic09'] .mobile-button {
  display: none;
}

@media (max-width: 700px) {
  [data-template='sitobasic09'] .mobile-button {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1200;
    gap: 8px;
  }

  [data-template='sitobasic09'] .mobile-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 999px;
    background: var(--ink, #17221e);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
  }

  [data-template='sitobasic09'] .mobile-button a:first-child {
    background: #25d366;
  }

  body[data-template='sitobasic09'] {
    padding-bottom: 72px;
  }
}

/* Form esito */
[data-template='sitobasic09'] #form-esito {
  scroll-margin-top: 120px;
}

/* =====================================================
   FOOTER Bubble — redesign
====================================================== */

[data-template='sitobasic09'] footer.footer.bubble-footer {
  margin-top: 40px;
  padding: 64px 0 28px;
  background: #fff;
  color: var(--ink, #17221e);
  border-radius: 0;
  box-shadow: 0 -18px 50px rgba(25, 40, 33, 0.06);
}

[data-template='sitobasic09'] .bubble-footer .footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.75fr 1.1fr;
  gap: 36px 28px;
  padding: 0 0 40px;
  align-items: start;
}

[data-template='sitobasic09'] .bubble-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

[data-template='sitobasic09'] .bubble-footer .footer-logo {
  display: block;
  width: auto;
  max-width: 180px;
  margin: 0;
}

[data-template='sitobasic09'] .bubble-footer .footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

[data-template='sitobasic09'] .bubble-footer .footer-description {
  margin-top: 18px;
  max-width: 320px;
  color: var(--ink-soft, #52605a);
  font-size: 14px;
  line-height: 1.7;
}

[data-template='sitobasic09'] .bubble-footer .footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

[data-template='sitobasic09'] .bubble-footer .footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-light, #e9f0f4);
  color: var(--ink, #17221e);
  font-size: 14px;
  transition: 0.2s ease;
  margin: 0;
}

[data-template='sitobasic09'] .bubble-footer .footer-social a:hover {
  background: var(--green, #94b4c8);
  color: #fff;
}

[data-template='sitobasic09'] .bubble-footer .footer-cta {
  margin-top: 22px;
  min-height: 46px;
  padding: 0 18px;
  font-size: 13px;
}

[data-template='sitobasic09'] .bubble-footer .footer-column h4 {
  margin: 0 0 16px;
  font-family: 'DM Sans', 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink, #17221e);
}

[data-template='sitobasic09'] .bubble-footer .footer-column a {
  display: block;
  margin: 0 0 11px;
  color: var(--ink-soft, #52605a);
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

[data-template='sitobasic09'] .bubble-footer .footer-column a:hover {
  color: var(--cream-dark, #6190af);
}

[data-template='sitobasic09'] .bubble-footer .footer-column a.footer-contact {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  margin: 0 0 14px !important;
  color: var(--ink-soft, #52605a);
  font-size: 14px;
  line-height: 1.45;
}

[data-template='sitobasic09'] .bubble-footer .footer-contact > span:last-child {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 34px;
}

[data-template='sitobasic09'] .bubble-footer .footer-contact > span:last-child:has(br) {
  display: block;
  min-height: 0;
}

[data-template='sitobasic09'] .bubble-footer .footer-contact__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--green-light, #e9f0f4);
  color: var(--cream-dark, #6190af);
  font-size: 12px;
  line-height: 1;
}

[data-template='sitobasic09'] .bubble-footer .footer-contact__icon i {
  display: block;
  line-height: 1;
}

[data-template='sitobasic09'] .bubble-footer .footer-contact:hover {
  color: var(--ink, #17221e);
}

[data-template='sitobasic09'] .bubble-footer .footer-contact:hover .footer-contact__icon {
  background: var(--green, #94b4c8);
  color: #fff;
}

[data-template='sitobasic09'] .bubble-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line, #e6e7e2);
  color: #8a948e;
  font-size: 12px;
}

[data-template='sitobasic09'] .bubble-footer .footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

[data-template='sitobasic09'] .bubble-footer .footer-bottom__links a {
  color: #8a948e;
  font-size: 12px;
}

[data-template='sitobasic09'] .bubble-footer .footer-bottom__links a:hover {
  color: var(--cream-dark, #6190af);
}

@media (max-width: 1050px) {
  [data-template='sitobasic09'] .bubble-footer .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

  [data-template='sitobasic09'] .bubble-footer .footer-brand {
    grid-column: 1 / -1;
  }

  [data-template='sitobasic09'] .bubble-footer .footer-bottom {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  [data-template='sitobasic09'] .bubble-footer .footer-main {
    gap: 24px 20px;
  }
}

@media (max-width: 650px) {
  [data-template='sitobasic09'] footer.footer.bubble-footer {
    padding: 48px 0 24px;
    border-radius: 0;
  }

  [data-template='sitobasic09'] .bubble-footer .footer-main {
    grid-template-columns: 1fr;
    padding-bottom: 28px;
  }

  [data-template='sitobasic09'] .bubble-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Textarea: stesso font degli input */
[data-template='sitobasic09'] .form-group input,
[data-template='sitobasic09'] .form-group select,
[data-template='sitobasic09'] .form-group textarea,
[data-template='sitobasic09'] form.contactForm input,
[data-template='sitobasic09'] form.contactForm select,
[data-template='sitobasic09'] form.contactForm textarea {
  font-family: inherit !important;
}

[data-template='sitobasic09'] form.contactForm input.warning,
[data-template='sitobasic09'] form.contactForm textarea.warning,
[data-template='sitobasic09'] .form-group input.warning {
  border-color: #ffe500 !important;
  background-color: #fffacc !important;
}
