/* Token allineati a OnlineBooking (theme blue / layout-light) */
:root {
  --primary: #70c6ff;
  --primary-text: #ffffff;
  --cta: #fec603;
  --text: #000000;
  --text-secondary: #676b89;
  --surface-700: #44486d;
  --surface-card: rgba(255, 255, 255, 0.9);
  --surface-border: rgba(68, 72, 109, 0.2);
  --surface-ground: linear-gradient(180deg, #f6f9fc 0%, #ececf9 100%);
  --border-radius: 6px;
  --topbar-pad-x: 7.5rem;
  --content-pad: 3rem 5.938rem 3rem 7.5rem;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warn: #b45309;
  --warn-bg: #fffbeb;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "adobe-clean", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background: var(--surface-ground);
}

body a {
  color: var(--primary);
  text-decoration: none;
}

.layout-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  background: var(--surface-ground);
  background-attachment: fixed;
}

.layout-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: inherit;
  position: relative;
}

.layout-topbar {
  z-index: 100;
  background: white;
  padding: 0 var(--topbar-pad-x);
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  min-height: 8vh;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 6px #e6e6e6;
}

.layout-topbar-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.layout-topbar-left .logo {
  margin-left: 20px;
  display: inline-flex;
}

.layout-topbar-left .logo img {
  height: 4rem;
}

.layout-topbar-right {
  flex: 0 0 auto;
}

.layout-topbar-right-items {
  list-style: none;
  margin: 0;
  padding-inline-start: 20px !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.topbar-studio {
  text-align: right;
  line-height: 1.35;
  padding-right: 8px;
}

.topbar-studio-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--surface-700);
}

.topbar-studio-license {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.layout-main-content {
  flex: 1 1 0;
  padding: var(--content-pad);
  padding-top: calc(3rem + 0.5rem);
  width: 100%;
  max-width: none;
}

.page-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.75rem 0 1.5rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--surface-700);
  margin: 0;
}

.page-subtitle {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.host-banner {
  display: none;
  border-radius: var(--border-radius);
  padding: 14px 16px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.host-banner.visible {
  display: block;
}

.host-banner h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.host-banner p {
  margin: 0 0 10px;
  line-height: 1.4;
}

.host-banner.danger {
  background: var(--danger-bg);
  border-color: #fecaca;
  color: #991b1b;
}

.host-banner.warn {
  background: var(--warn-bg);
  border-color: #fde68a;
  color: #92400e;
}

.host-banner .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.host-banner button {
  border: none;
  border-radius: 36px;
  padding: 10px 20px;
  cursor: pointer;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-family: inherit;
}

.wc-surface {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 16px;
  position: relative;
  min-height: 320px;
  width: 100%;
}

.wc-surface[hidden],
.wc-surface.is-hidden {
  display: none !important;
  min-height: 0;
  padding: 0;
  border: none;
  margin: 0;
}

.layout-footer {
  padding: 56px var(--topbar-pad-x) 64px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  background-color: var(--primary);
  color: #ffffff;
  justify-content: space-between;
  align-items: center;
}

.footer-logo-container img {
  height: 4rem;
}

.text-footer {
  color: #ffffff;
  line-height: 16px;
  font-size: 14px;
}

.text-footer a {
  color: #ffffff;
  text-decoration: none;
}

.col-3-footer {
  flex: 0 0 auto;
  padding: 0.5rem;
  max-width: 25%;
}

.social-row {
  display: flex;
  align-items: center;
}

.social-row a {
  margin: 0 15px;
  display: inline-flex;
}

.social-icon-footer {
  height: 33px;
  width: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 991px) {
  .layout-topbar {
    padding: 0 1rem;
  }

  .layout-topbar-left .logo {
    margin-left: 0;
  }

  .layout-main-content {
    padding: 30px;
  }

  .layout-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px;
  }

  .col-3-footer {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .layout-topbar-left .logo img {
    height: 2.7rem;
  }

  .page-title {
    font-size: 1.35rem;
  }
}
