/* Quick actions are reserved for installed app sessions. */
html:not(.chefworld-app-mode):not(.chefworld-public-web) .app-quick {
  display: none !important;
}
.app-quick {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: clamp(1rem,3vw,2rem);
  border: 1px solid #b89b65;
  text-align: center;
}
.app-quick h2 { margin: 0 0 .65rem; }
.app-quick p { max-width: 42rem; margin: .6rem auto 1rem; }
.app-quick-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .7rem 1.2rem; }
.app-secondary { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: .3em; }
.app-actions { margin-top: 1.2rem; }
.app-actions summary { cursor: pointer; padding: .7rem; }
.app-actions button { min-height: 44px; margin: .25rem; }
.app-actions [role=status]:empty { display: none; }
#newsletter-app, #preventivo, #cofanetto { scroll-margin-top: 6rem; }
@media(max-width:520px) {
  .app-quick { margin: 1rem 0; }
  .app-quick-links { display: grid; justify-items: center; }
  .app-quick-links .button { width: 100%; }
}

/* Discreet installation control in the existing header. */
.chefworld-app-mode .header-install { display: none; }
.header-install { position: relative; justify-self: start; flex: 0 0 auto; }
.header-install button { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .65rem; border: 1px solid #b89b65; border-radius: .35rem; background: transparent; color: #e5cd98; font: inherit; font-size: .875rem; cursor: pointer; white-space: nowrap; }
.header-install button:hover, .header-install button:focus-visible { background: #d8bc831a; outline-offset: 3px; }
.header-install [role=status]:empty { display: none; }
.header-install [role=status] { position: absolute; z-index: 30; top: 100%; left: 0; width: min(280px, 80vw); padding: .8rem; background: #202422; border: 1px solid #b89b65; border-radius: .35rem; color: #f6efe4; font-size: .875rem; text-align: left; box-shadow: 0 4px 12px #0007; }
@media(min-width:761px) { .header-install { grid-column: 1; grid-row: 1; } }
@media(max-width:760px) {
  header .testata-superiore { flex-wrap: wrap; justify-content: space-between; gap: .4rem; }
  .header-install { order: 3; width: 100%; text-align: center; }
  .header-install [role=status] { left: 50%; transform: translateX(-50%); }
}

/* Commercial website: accessible newsletter and quick links without app mode. */
.chefworld-public-web .app-quick { margin-inline: auto; width: min(calc(100% - 2rem), 1100px); }
.chefworld-public-web .app-quick .app-actions [data-install-app] { display: none; }
.chefworld-public-web .app-quick .button { min-height: 44px; }

/* Editorial introduction on the public website only; preserve installed app navigation. */
.public-brand-motto { display: none; }
.chefworld-public-web .app-welcome { display: none !important; }
.chefworld-public-web .public-brand-motto { display: block; max-width: none; margin: 0 auto; padding: .25rem 1rem 1.5rem; text-align: center; color: #d8bc83; font-family: Georgia, serif; font-size: clamp(1rem, 3.3vw, 1.35rem); font-style: italic; letter-spacing: .04em; }

.public-footer-share { display: none; }
.chefworld-public-web .public-footer-share { display: flex; justify-content: center; margin: 0 auto 1.2rem; }
.public-footer-share button { min-height: 44px; background: transparent; color: #d8bc83; border: 1px solid #b89b65; padding: .55rem 1rem; }
