/* Controlli stage — pulsanti, input, header/menu mobile (dopo ds.css) */

/* ---------- Pulsanti (token sm / md / lg) ---------- */
body.body-stage :is(a, button, input[type="submit"], input[type="button"]).primary-button,
body.body-stage :is(a, button).btn--primary,
body.body-stage :is(a, button).btn--secondary,
body.body-stage :is(a, button).secondary-button,
body.body-stage :is(a, button).btn--dark,
body.body-stage :is(a, button).six-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  /* gap: 0.4rem; */
  width: max-content;
  max-width: 100%;
  flex: 0 0 auto;
  align-self: flex-start;
  height: var(--btn-md-h);
  min-height: var(--btn-md-h);
  padding: 0 var(--btn-md-px);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: var(--btn-md-fs);
  font-weight: var(--btn-fw);
  line-height: 1.2;
  padding-top: 0;
  padding-bottom: 0;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

body.body-stage :is(a, button).primary-button,
body.body-stage :is(a, button).btn--primary,
body.body-stage :is(a, button).primary-button:visited,
body.body-stage :is(a, button).btn--primary:visited {
  background-color: var(--c-primary);
  color: #fff;
}

body.body-stage .section-navbar a.primary-button,
body.body-stage .section-navbar a.btn--primary,
body.body-stage .section-navbar-mobile-top-cta {
  color: #fff;
}

body.body-stage :is(a, button).primary-button:hover,
body.body-stage :is(a, button).btn--primary:hover,
body.body-stage :is(a, button).primary-button:focus-visible,
body.body-stage :is(a, button).btn--primary:focus-visible,
body.body-stage :is(a, button).primary-button:active,
body.body-stage :is(a, button).btn--primary:active {
  background-color: var(--c-primary-hover);
  color: #fff;
}

body.body-stage :is(a, button).primary-button,
body.body-stage :is(a, button).btn--primary,
body.body-stage :is(a, button).primary-button:hover,
body.body-stage :is(a, button).btn--primary:hover,
body.body-stage :is(a, button).primary-button :is(span, .stage-btn__label),
body.body-stage :is(a, button).btn--primary :is(span, .stage-btn__label) {
  color: #fff;
}

body.body-stage :is(a, button).primary-button:hover .stage-btn__label,
body.body-stage :is(a, button).btn--primary:hover .stage-btn__label,
body.body-stage :is(a, button).primary-button:focus-visible .stage-btn__label,
body.body-stage :is(a, button).btn--primary:focus-visible .stage-btn__label {
  color: #fff;
}

body.body-stage :is(a, button).primary-button:disabled,
body.body-stage :is(a, button).btn--primary:disabled,
body.body-stage :is(a, button).primary-button.is-disabled,
body.body-stage :is(a, button).btn--primary.is-disabled {
  background-color: var(--c-primary);
  opacity: 0.4;
  color: #fff;
  cursor: not-allowed;
}

body.body-stage :is(a, button).btn--secondary,
body.body-stage :is(a, button).secondary-button {
  background-color: var(--c-neutral);
  color: var(--c-text);
}

body.body-stage :is(a, button).btn--secondary:hover,
body.body-stage :is(a, button).secondary-button:hover,
body.body-stage :is(a, button).btn--secondary:focus-visible,
body.body-stage :is(a, button).secondary-button:focus-visible {
  background-color: var(--c-neutral-hover);
  color: var(--c-text);
}

body.body-stage :is(a, button).btn--dark,
body.body-stage :is(a, button).six-button {
  background-color: var(--c-text);
  color: #fff;
}

body.body-stage :is(a, button).btn--dark:hover,
body.body-stage :is(a, button).six-button:hover,
body.body-stage :is(a, button).btn--dark:focus-visible,
body.body-stage :is(a, button).six-button:focus-visible {
  background-color: #3c3c3c;
  color: #fff;
}

body.body-stage .btn--lg,
body.body-stage .btn--lg.primary-button,
body.body-stage .btn--lg.btn--primary {
  height: var(--btn-lg-h);
  min-height: var(--btn-lg-h);
  padding: 0 var(--btn-lg-px);
  font-size: var(--btn-lg-fs);
}

body.body-stage .btn--sm,
body.body-stage .btn--sm.primary-button,
body.body-stage .btn--sm.btn--primary,
body.body-stage .btn--sm.secondary-button,
body.body-stage .btn--sm.btn--secondary {
  height: var(--btn-sm-h);
  min-height: var(--btn-sm-h);
  padding: 0 var(--btn-sm-px);
  font-size: var(--btn-sm-fs);
}

body.body-stage .section-navbar-actions > .primary-button,
body.body-stage .section-navbar-actions > .btn--primary {
  height: var(--btn-sm-h);
  min-height: var(--btn-sm-h);
  padding: 0 var(--btn-sm-px);
  font-size: var(--btn-sm-fs);
  font-weight: var(--btn-fw);
}

body.body-stage :is(.primary-button, .btn--primary, .secondary-button, .btn--secondary, .btn--dark, .btn--ghost):focus-visible {
  outline: 2px solid #136ef5;
  outline-offset: 2px;
}

body.body-stage .stage-copy-flow__cta,
body.body-stage .stage-accedi__form-actions,
body.body-stage .stage-pricing-card__cta-wrap,
body.body-stage [class*="__cta-row"] {
  align-items: flex-start;
}

body.body-stage .stage-copy-flow--center .stage-copy-flow__cta,
body.body-stage .stage-accedi__form-actions {
  align-items: center;
}

body.body-stage .section-hero-button-wrapper .primary-button,
body.body-stage .section-hero-button-wrapper .btn--primary {
  align-self: center;
}

/* Hero mobile — copy e CTA centrati (base.css allinea il main a sinistra sotto 56.25rem) */
@media (max-width: 56.25rem) {
  body.body-stage .section-hero-center-wrapper,
  body.body-stage .section-hero-content,
  body.body-stage .section-hero-body,
  body.body-stage .stage-servizi-hub-hero__head,
  body.body-stage .stage-servizi-hub-hero__head .stage-copy-head-body,
  body.body-stage .stage-servizi-hub-hero__head .stage-copy-desc,
  body.body-stage :is(.section-hero-center-wrapper, .stage-servizi-hub-hero__head).stage-copy-flow {
    align-items: center;
    text-align: center;
  }

  body.body-stage .section-hero-center-wrapper :where(h1, p, .section-badge-hero, .section-basic__brand),
  body.body-stage .stage-servizi-hub-hero__head :where(h1, p, .section-basic__brand, a, span) {
    text-align: center;
  }

  body.body-stage .section-hero-title,
  body.body-stage .section-hero-description {
    text-align: center;
  }

  body.body-stage .section-hero-button-wrapper,
  body.body-stage .section-hero-center-wrapper .stage-copy-cta,
  body.body-stage .stage-servizi-hub-hero__actions {
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  body.body-stage .section-hero-button-wrapper :is(.primary-button, .secondary-button, .btn--primary, .btn--secondary, .section-templates__card-link),
  body.body-stage .stage-servizi-hub-hero__actions :is(.primary-button, .section-templates__card-link) {
    align-self: center;
  }
}

@media (max-width: 47.9375rem) {
  body.body-stage :is(a, button).primary-button:not(.btn--sm):not(.btn--lg),
  body.body-stage :is(a, button).btn--primary:not(.btn--sm):not(.btn--lg),
  body.body-stage .section-navbar-mobile-sticky-foot__btn.primary-button {
    height: var(--btn-md-h-mobile);
    min-height: var(--btn-md-h-mobile);
    max-height: var(--btn-md-h-mobile);
    font-size: var(--btn-md-fs);
    padding: 0 var(--btn-md-px-mobile);
  }

  body.body-stage :is(a, button).secondary-button:not(.btn--sm):not(.btn--lg),
  body.body-stage :is(a, button).btn--secondary:not(.btn--sm):not(.btn--lg),
  body.body-stage :is(a, button).btn--dark:not(.btn--sm):not(.btn--lg),
  body.body-stage .section-navbar-mobile-sticky-foot__btn.secondary-button {
    height: var(--btn-md-h);
    min-height: var(--btn-md-h);
    font-size: var(--btn-md-fs);
    padding: 0 14px;
  }

  body.body-stage .btn--lg,
  body.body-stage .btn--lg.primary-button,
  body.body-stage .btn--lg.btn--primary {
    height: var(--btn-lg-h-mobile);
    min-height: var(--btn-lg-h-mobile);
    font-size: var(--btn-lg-fs-mobile);
    padding: 0 var(--btn-lg-px-mobile);
  }
}

/* Ghost sm (tool «Cambia immagine») */
body.body-stage .btn--ghost-sm,
body.body-stage.body-stage-img-opt .third-button,
body.body-stage.body-stage-img-fmt .third-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  height: var(--btn-sm-h);
  min-height: var(--btn-sm-h);
  padding: 0 var(--btn-sm-px);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--c-primary);
  font-size: var(--btn-sm-fs);
  font-weight: var(--btn-fw);
  line-height: 1.2;
  padding-top: 0;
  padding-bottom: 0;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

body.body-stage .btn--ghost-sm:hover,
body.body-stage.body-stage-img-opt .third-button:hover,
body.body-stage.body-stage-img-fmt .third-button:hover {
  background: var(--c-primary-25);
  color: var(--c-primary);
}


/* ---------- Input token (form normali; esclusi input dentro pillole ricerca/newsletter) ---------- */
body.body-stage :is(input, select, textarea).input,
body.body-stage .tpl-mkt__search input,
body.body-stage .stage-accedi input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]),
body.body-stage .stage-consult-form input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]),
body.body-stage .stage-consult-form select,
body.body-stage .stage-consult-form textarea,
body.body-stage .stage-palette-tool input:not([type="checkbox"]):not([type="hidden"]):not([type="range"]),
body.body-stage input[type="email"],
body.body-stage input[type="search"]:not(.stage-blog-subnav__search-input),
body.body-stage input[type="url"],
body.body-stage input[type="text"] {
  box-sizing: border-box;
  min-height: var(--input-h);
  height: var(--input-h);
  padding: 0 var(--input-px);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-ui);
  font-size: var(--input-fs);
  line-height: 1.4;
}

body.body-stage textarea.input,
body.body-stage .stage-consult-form textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 16px;
}

body.body-stage :is(input, select, textarea).input:hover:not(:disabled):not(:focus),
body.body-stage .stage-consult-form input:hover:not(:disabled):not(:focus),
body.body-stage .stage-consult-form textarea:hover:not(:disabled):not(:focus),
body.body-stage .stage-accedi input:hover:not(:disabled):not(:focus) {
  border-color: var(--input-border-hover);
}

body.body-stage :is(input, select, textarea).input:focus,
body.body-stage :is(input, select, textarea).input:focus-visible,
body.body-stage .stage-consult-form input:focus,
body.body-stage .stage-consult-form select:focus,
body.body-stage .stage-consult-form textarea:focus,
body.body-stage .stage-accedi input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: var(--input-focus-shadow);
}

body.body-stage :is(input, textarea):disabled,
body.body-stage select:disabled {
  background: var(--input-disabled-bg);
  cursor: not-allowed;
}

body.body-stage :is(input, textarea).is-error,
body.body-stage :is(input, textarea)[aria-invalid="true"] {
  border-color: var(--input-error-border);
  box-shadow: var(--input-error-shadow);
}

body.body-stage :is(input, textarea)::placeholder {
  color: var(--input-placeholder);
}

/* ---------- Pillole: newsletter + ricerche (supporto, pagerank, blog) ---------- */
body.body-stage .section-footer-stage__newsletter-row,
body.body-stage .stage-support-search,
body.body-stage .stage-pagerank-tool__form.stage-support-search {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: var(--pill-row-h);
  height: var(--pill-row-h);
  padding: 4px 4px 4px 18px;
  background: #fff;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

body.body-stage .section-footer-stage__newsletter-row:focus-within,
body.body-stage .stage-support-search:focus-within,
body.body-stage .stage-pagerank-tool__form.stage-support-search:focus-within {
  border-color: var(--c-primary);
  box-shadow: var(--input-focus-shadow);
  outline: none;
}

body.body-stage .section-footer-stage__newsletter-field {
  flex: 1 1 auto;
  min-width: 0;
}

body.body-stage .section-footer-stage__newsletter-input,
body.body-stage .stage-support-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: var(--pill-inner-h);
  min-height: var(--pill-inner-h);
  max-height: var(--pill-inner-h);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: var(--input-fs);
  line-height: 1.4;
  outline: none;
  box-shadow: none;
}

body.body-stage .section-footer-stage__newsletter-input:focus,
body.body-stage .section-footer-stage__newsletter-input:focus-visible,
body.body-stage .stage-support-search input:focus,
body.body-stage .stage-support-search input:focus-visible {
  outline: none;
  border: none;
  box-shadow: none;
}

body.body-stage .section-footer-stage__newsletter-input::placeholder,
body.body-stage .stage-support-search input::placeholder {
  color: var(--input-placeholder);
}

body.body-stage .section-footer-stage__newsletter-button {
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  height: var(--pill-inner-h);
  min-height: var(--pill-inner-h);
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: var(--c-text);
  color: #fff;
  font-size: var(--btn-md-fs);
  font-weight: var(--btn-fw);
  line-height: 1.2;
}

body.body-stage .section-footer-stage__newsletter-button:hover,
body.body-stage .section-footer-stage__newsletter-button:focus-visible {
  background-color: #3c3c3c;
  color: #fff;
}

body.body-stage .stage-support-search__submit {
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  height: var(--pill-inner-h);
  min-height: var(--pill-inner-h);
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: var(--c-primary);
  color: #fff;
  font-size: var(--btn-md-fs);
  font-weight: var(--btn-fw);
  line-height: 1.2;
}

body.body-stage .stage-support-search__submit:hover,
body.body-stage .stage-support-search__submit:focus-visible {
  background-color: var(--c-primary-hover);
  color: #fff;
  outline: none;
}

body.body-stage .stage-support-search__submit-icon {
  display: none;
}

/* Blog subnav — ricerca: un solo contenitore pill (no bordo sull'input) */
body.body-stage .stage-blog-subnav__search {
  position: relative;
  flex: 0 0 auto;
  width: min(280px, 100%);
  min-width: 240px;
  max-width: 280px;
}

body.body-stage .stage-blog-subnav__search-form {
  width: 100%;
}

body.body-stage .stage-blog-subnav__search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #f0f0f0;
  border-radius: 9999px;
  background-color: #f6f6f6;
  color: #141414;
  cursor: text;
  box-sizing: border-box;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

body.body-stage .stage-blog-subnav__search-field:hover {
  background-color: #f2f2f0;
}

body.body-stage .stage-blog-subnav__search-field:focus-within {
  background-color: #fff;
  border-color: #136ef5;
  box-shadow: 0 0 0 3px #e7f0fe;
  outline: none;
}

body.body-stage .stage-blog-subnav__search-field:focus-within .stage-blog-subnav__search-icon {
  color: #5e5e5e;
}

body.body-stage .stage-blog-subnav__search-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #5e5e5e;
}

body.body-stage .stage-blog-subnav__search-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

body.body-stage .stage-blog-subnav__search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: #141414;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
}

body.body-stage .stage-blog-subnav__search-input::placeholder {
  color: #8a8a8a;
}

body.body-stage .stage-blog-subnav__search-input:focus,
body.body-stage .stage-blog-subnav__search-input:focus-visible {
  outline: none;
  box-shadow: none;
  border: 0;
}

@media (max-width: 47.9375rem) {
  body.body-stage .section-footer-stage__newsletter-input,
  body.body-stage .stage-support-search input {
    font-size: 16px;
  }

  body.body-stage .stage-blog-subnav__search-field {
    height: 34px;
    min-height: 34px;
  }

  body.body-stage .stage-blog-subnav__search-input {
    font-size: 16px;
  }
}

@media (max-width: 36rem) {
  body.body-stage .section-footer-stage__newsletter-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 4px 4px 4px 18px;
    border-radius: var(--radius-pill);
  }

  body.body-stage .section-footer-stage__newsletter-button {
    width: max-content;
    align-self: center;
  }
}

/* ---------- Header mobile: solo misure (layout = grid in sections.css; burger è primo nel DOM) ---------- */
@media (max-width: 56.25rem) {
  body.body-stage .section-navbar-container {
    height: 3.5rem;
  }

  body.body-stage .section-navbar[data-stage-user-logged-in="1"] .section-navbar-wrapper {
    column-gap: 4px;
  }

  body.body-stage a.primary-button.section-navbar-mobile-top-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-area: mobile-cta;
    justify-self: end;
    align-self: center;
    box-sizing: border-box;
    height: var(--btn-sm-h);
    min-height: var(--btn-sm-h);
    max-height: var(--btn-sm-h);
    padding: 0 var(--btn-sm-px);
    font-size: var(--btn-sm-fs);
    font-weight: var(--btn-fw);
    line-height: 1.2;
    width: max-content;
    max-width: none;
    margin: 0;
  }

  body.body-stage .section-navbar-mobile-notification-dropdown {
    display: inline-flex;
    align-items: center;
    align-self: center;
  }

  body.body-stage .section-navbar-mobile-notification-dropdown .section-navbar-notification-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--c-text);
  }

  /* 16px come dashboard; .icon-small altrimenti resta 16×16 mentre il svg era forzato a 18px */
  body.body-stage .section-navbar-mobile-notification-dropdown .section-navbar-notification-button-icon,
  body.body-stage .section-navbar-mobile-notification-dropdown .section-navbar-notification-button-icon.icon-small,
  body.body-stage .section-navbar-mobile-notification-dropdown .section-navbar-notification-button-icon svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
  }

  /* Campanella nel viewBox sale verso l’ansa: compensazione ottica vs hamburger (12px) */
  body.body-stage .section-navbar-mobile-notification-dropdown .section-navbar-notification-button-icon {
    transform: translateY(1px);
  }

  body.body-stage .section-navbar-mobile-notification-dropdown .section-navbar-notification-badge {
    top: 11px;
    right: 11px;
  }

  body.body-stage #section-navbar-burger.section-navbar-burger.JGX4kH {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    align-self: center;
  }
}

#section-navbar-burger.section-navbar-burger,
body.body-stage #section-navbar-burger.section-navbar-burger.JGX4kH {
  margin-right: -12px;
  background: transparent;
}

#section-navbar-burger.section-navbar-burger .Su3vrk,
body.body-stage #section-navbar-burger.section-navbar-burger.JGX4kH .Su3vrk {
  width: 18px;
  height: 12px;
}

#section-navbar-burger.section-navbar-burger .NjSewS,
#section-navbar-burger.section-navbar-burger .NjSewS::before,
#section-navbar-burger.section-navbar-burger .NjSewS::after,
body.body-stage #section-navbar-burger.section-navbar-burger.JGX4kH .NjSewS,
body.body-stage #section-navbar-burger.section-navbar-burger.JGX4kH .NjSewS::before,
body.body-stage #section-navbar-burger.section-navbar-burger.JGX4kH .NjSewS::after {
  width: 18px;
  border-radius: 2px;
  background-color: #141414;
}

body.body-stage #section-navbar-burger.section-navbar-burger.JGX4kH .NjSewS {
  background-color: #141414;
}

body.body-stage #section-navbar-burger.section-navbar-burger.JGX4kH .NjSewS::before {
  top: -4.5px;
}

body.body-stage #section-navbar-burger.section-navbar-burger.JGX4kH .NjSewS::after {
  bottom: -4.5px;
}

body.body-stage #section-navbar-burger.section-navbar-burger.JGX4kH.xaqGzH .NjSewS {
  background-color: transparent;
}

body.body-stage #section-navbar-burger.section-navbar-burger.JGX4kH.xaqGzH .NjSewS::before,
body.body-stage #section-navbar-burger.section-navbar-burger.JGX4kH.xaqGzH .NjSewS::after {
  background-color: #141414;
}

/* ---------- Pannello menu mobile ---------- */
body.body-stage .section-navbar-mobile-head {
  height: 56px;
  grid-template-columns: 44px 1fr 44px;
}

body.body-stage .section-navbar-mobile-head__start {
  width: 44px;
  height: 44px;
}

body.body-stage .section-navbar-mobile-back,
body.body-stage .section-navbar-mobile-close {
  width: 44px;
  height: 44px;
}

body.body-stage .section-navbar-mobile-back-icon {
  width: 20px;
  height: 20px;
}

/* Close pannello = stesso segno del burger in stato X (18×2px, #141414) */
body.body-stage .section-navbar-mobile-close-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
}

body.body-stage .section-navbar-mobile-close-icon svg {
  display: none;
}

body.body-stage .section-navbar-mobile-close-icon::before,
body.body-stage .section-navbar-mobile-close-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background-color: #141414;
}

body.body-stage .section-navbar-mobile-close-icon::before {
  transform: rotate(45deg);
}

body.body-stage .section-navbar-mobile-close-icon::after {
  transform: rotate(-45deg);
}

body.body-stage h2.section-navbar-mobile-head__title,
body.body-stage .section-navbar-mobile-head__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: #141414;
}

body.body-stage .section-navbar-mobile-group-title {
  margin: 0;
  padding: 16px 16px 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5e5e5e;
}

body.body-stage .section-navbar-mobile-link,
body.body-stage .section-navbar-mobile-drill-trigger {
  font-size: 16px;
  font-weight: 400;
  min-height: 44px;
  padding: 0 16px;
  box-sizing: border-box;
}

body.body-stage .section-navbar-mobile-sticky-foot {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

body.body-stage .section-navbar-mobile-sticky-foot__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  flex: 0 0 auto;
  line-height: 1.2;
  padding-top: 0;
  padding-bottom: 0;
  align-self: center;
}

/* Blog listing — CTA in griglia «Ultimi 10 articoli» (dopo 2ª riga) */
body.body-stage .stage-blog-page__latest-grid {
  display: grid;
}

body.body-stage .stage-blog-page__grid-card {
  order: var(--blog-card-order-mobile, 0);
}

@media (min-width: 56.26rem) {
  body.body-stage .stage-blog-page__grid-card {
    order: var(--blog-card-order-desktop, 0);
  }
}

body.body-stage .stage-blog-page__cta--in-grid {
  grid-column: 1 / -1;
  order: 3;
  width: 100%;
  margin: 0;
}

@media (min-width: 56.26rem) {
  body.body-stage .stage-blog-page__cta--in-grid {
    order: 7;
  }
}

body.body-stage .stage-blog-page__cta .stage-blog-page__cta-button {
  align-self: center;
  margin-inline: auto;
}

/* Blog subnav mobile — ricerca full width sotto brand + categorie */
@media (max-width: 56.25rem) {
  body.body-stage .stage-blog-subnav {
    height: auto;
  }

  body.body-stage .stage-blog-subnav__inner {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
    height: auto;
    min-height: var(--stage-blog-subnav-height);
    padding-block: 8px;
  }

  body.body-stage .stage-blog-subnav__actions {
    display: contents;
  }

  body.body-stage .stage-blog-subnav__brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  body.body-stage .stage-blog-subnav__menu {
    order: 2;
    margin-left: auto;
  }

  body.body-stage .stage-blog-subnav__search {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  body.body-stage .stage-blog-subnav.is-search-active .stage-blog-subnav__inner {
    gap: 8px;
  }

  body.body-stage .stage-blog-subnav.is-search-active .stage-blog-subnav__brand,
  body.body-stage .stage-blog-subnav.is-search-active .stage-blog-subnav__menu {
    display: revert;
  }

  body.body-stage .stage-blog-subnav.is-search-active .stage-blog-subnav__actions,
  body.body-stage .stage-blog-subnav.is-search-active .stage-blog-subnav__search {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
  }
}

/* Tool immagini — submit affiancato */
body.body-stage-img-opt .stage-img-opt__submit {
  flex: 0 0 auto;
  width: max-content;
}

/* Accedi — primary centrato, social full width */
body.body-stage.body-stage-accedi .stage-accedi__card .stage-accedi__btn.primary-button {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  font-weight: var(--btn-fw);
  font-size: var(--btn-md-fs);
}

body.body-stage.body-stage-accedi .stage-accedi__btn--social {
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius-pill);
}

/* Badge hero non cliccabile */
body.body-stage .section-badge-hero--rotator .section-badge-hero__link.section-badge-hero--link {
  cursor: default;
  pointer-events: none;
  text-decoration: none;
  color: inherit;
}

body.body-stage .section-badge-hero--rotator .section-badge-hero__link.section-badge-hero--link:hover,
body.body-stage .section-badge-hero--rotator .section-badge-hero__link.section-badge-hero--link:focus-visible {
  color: inherit;
  text-decoration: none;
  outline: none;
}

/* Icon buttons stage (carousel ecc.) */
body.body-stage :is(a, button).btn--icon,
body.body-stage .tpl-detail__carousel-btn,
body.body-stage .section-templates__nav-btn,
body.body-stage .stage-portfolio-slider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  background: var(--c-bg);
  color: var(--c-text);
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
}

body.body-stage :is(a, button).btn--icon:hover,
body.body-stage .tpl-detail__carousel-btn:hover,
body.body-stage .section-templates__nav-btn:hover,
body.body-stage .stage-portfolio-slider__btn:hover {
  background: var(--c-surface);
}

body.body-stage :is(a, button).btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: var(--btn-md-h);
  padding: 0 var(--btn-md-px);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--c-primary);
  font-size: var(--btn-md-fs);
  font-weight: var(--btn-fw);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

body.body-stage :is(a, button).btn--ghost:hover,
body.body-stage :is(a, button).btn--ghost:focus-visible {
  background: var(--c-primary-25);
  color: var(--c-primary);
}

/* Anteprima snippet SEO */
body.body-stage-snippet-seo .stage-snippet-tool__input {
  height: var(--input-h);
  min-height: var(--input-h);
  border-radius: var(--radius-input);
  padding: 0 var(--input-px);
}

body.body-stage-snippet-seo .stage-snippet-tool__textarea {
  border-radius: var(--radius-input);
  padding: 12px 16px;
  min-height: 120px;
}

body.body-stage-snippet-seo .stage-snippet-tool__device-btn {
  min-height: 36px;
  padding: 0 0.85rem;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

@media (max-width: 47.9375rem) {
  body.body-stage-snippet-seo .stage-snippet-tool__device-btn {
    min-height: 44px;
    font-size: 14px;
  }
}

/* ---------- Badge «Made by» — FAB mobile (desktop = sections.css linguetta) ---------- */
@media (max-width: 47.9375rem) {
  body.body-stage .section-footer-stage__edge-credit {
    right: 12px;
    left: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--stage-edge-credit-stack-bottom, 0px));
    z-index: 2147482500;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-items: center;
  }

  body.body-stage.stage-nav-mobile-open .section-footer-stage__edge-credit,
  html.mfr-consent-open body.body-stage .section-footer-stage__edge-credit {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
  }

  body.body-stage .section-footer-stage__edge-credit.is-expanded {
    width: auto;
    max-width: calc(100vw - 24px);
  }

  body.body-stage .section-footer-stage__edge-credit-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    gap: 0;
    background-color: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition:
      width 0.22s ease,
      padding 0.22s ease,
      gap 0.22s ease,
      box-shadow 0.2s ease,
      background-color 0.2s ease;
  }

  body.body-stage .section-footer-stage__edge-credit.is-expanded .section-footer-stage__edge-credit-inner {
    width: auto;
    max-width: calc(100vw - 24px);
    min-width: 36px;
    padding: 0 12px 0 10px;
    gap: 8px;
  }

  body.body-stage .section-footer-stage__edge-credit:hover .section-footer-stage__edge-credit-inner,
  body.body-stage .section-footer-stage__edge-credit:focus-visible .section-footer-stage__edge-credit-inner {
    background-color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  }

  body.body-stage .section-footer-stage__edge-credit-logo {
    width: 16px;
    height: 16px;
    transform: none;
    flex: 0 0 auto;
  }

  body.body-stage .section-footer-stage__edge-credit-label {
    display: block;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    text-transform: none;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    color: #141414;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition:
      max-width 0.22s ease,
      opacity 0.18s ease;
  }

  body.body-stage .section-footer-stage__edge-credit.is-expanded .section-footer-stage__edge-credit-label {
    max-width: min(220px, calc(100vw - 80px));
    opacity: 1;
  }
}
